@confidencesystemsinc/sdk 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SelfShadowComponent.d.ts +11 -0
- package/dist/components/embedded-layout/EmbeddedLayout.d.ts +26 -0
- package/dist/components/my-playbooks/MyPlaybookListItem.d.ts +10 -0
- package/dist/components/my-playbooks/MyPlaybooks.d.ts +5 -0
- package/dist/components/my-playbooks/MyPlaybooksBar.d.ts +4 -0
- package/dist/components/playbook/ConfidencePlaybook.d.ts +8 -4
- package/dist/components/task/TaskStatusBadge.d.ts +3 -1
- package/dist/context/embedded-layout-context.d.ts +6 -0
- package/dist/hooks/useMyPlaybooks.d.ts +9 -0
- package/dist/index.cjs +24 -24
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6882 -6412
- package/dist/services/get-my-playbooks.service.d.ts +12 -0
- package/dist/stories/EmbeddedLayout.stories.d.ts +11 -0
- package/dist/stories/MyPlaybooks.stories.d.ts +9 -0
- package/dist/theme.css +1 -1
- package/dist/types/my-playbooks.types.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use strict";require('./index.css');var
|
|
1
|
+
"use strict";require('./index.css');var z1=Object.defineProperty;var Nm=e=>{throw TypeError(e)};var $1=(e,t,n)=>t in e?z1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>$1(e,typeof t!="symbol"?t+"":t,n),hl=(e,t,n)=>t.has(e)||Nm("Cannot "+n);var k=(e,t,n)=>(hl(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?Nm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(hl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(hl(e,t,"access private method"),n);var ha=(e,t,n,r)=>({set _(o){ne(e,t,o,n)},get _(){return k(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),T=require("react"),Wt=require("react-dom"),B1=require("react-dom/server");function m0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const C=m0(T),U1=m0(Wt);function W1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pa={exports:{}},ga={exports:{}},Ne={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
8
|
+
*/var Om;function K1(){if(Om)return Ne;Om=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(A){if(typeof A=="object"&&A!==null){var E=A.$$typeof;switch(E){case t:switch(A=A.type,A){case c:case l:case r:case i:case o:case u:return A;default:switch(A=A&&A.$$typeof,A){case a:case f:case h:case m:case s:return A;default:return E}}case n:return E}}}function w(A){return x(A)===l}return Ne.AsyncMode=c,Ne.ConcurrentMode=l,Ne.ContextConsumer=a,Ne.ContextProvider=s,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=r,Ne.Lazy=h,Ne.Memo=m,Ne.Portal=n,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=u,Ne.isAsyncMode=function(A){return w(A)||x(A)===c},Ne.isConcurrentMode=w,Ne.isContextConsumer=function(A){return x(A)===a},Ne.isContextProvider=function(A){return x(A)===s},Ne.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Ne.isForwardRef=function(A){return x(A)===f},Ne.isFragment=function(A){return x(A)===r},Ne.isLazy=function(A){return x(A)===h},Ne.isMemo=function(A){return x(A)===m},Ne.isPortal=function(A){return x(A)===n},Ne.isProfiler=function(A){return x(A)===i},Ne.isStrictMode=function(A){return x(A)===o},Ne.isSuspense=function(A){return x(A)===u},Ne.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===i||A===o||A===u||A===d||typeof A=="object"&&A!==null&&(A.$$typeof===h||A.$$typeof===m||A.$$typeof===s||A.$$typeof===a||A.$$typeof===f||A.$$typeof===p||A.$$typeof===y||A.$$typeof===b||A.$$typeof===g)},Ne.typeOf=x,Ne}var Oe={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
15
|
+
*/var Pm;function H1(){return Pm||(Pm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(G){return typeof G=="string"||typeof G=="function"||G===r||G===l||G===i||G===o||G===u||G===d||typeof G=="object"&&G!==null&&(G.$$typeof===h||G.$$typeof===m||G.$$typeof===s||G.$$typeof===a||G.$$typeof===f||G.$$typeof===p||G.$$typeof===y||G.$$typeof===b||G.$$typeof===g)}function w(G){if(typeof G=="object"&&G!==null){var qe=G.$$typeof;switch(qe){case t:var zt=G.type;switch(zt){case c:case l:case r:case i:case o:case u:return zt;default:var pt=zt&&zt.$$typeof;switch(pt){case a:case f:case h:case m:case s:return pt;default:return qe}}case n:return qe}}}var A=c,E=l,S=a,_=s,N=t,P=f,I=r,W=h,j=m,z=n,Y=i,Q=o,oe=u,M=!1;function re(G){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(G)||w(G)===c}function L(G){return w(G)===l}function F(G){return w(G)===a}function K(G){return w(G)===s}function U(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function J(G){return w(G)===f}function V(G){return w(G)===r}function ee(G){return w(G)===h}function te(G){return w(G)===m}function he(G){return w(G)===n}function ye(G){return w(G)===i}function pe(G){return w(G)===o}function ze(G){return w(G)===u}Oe.AsyncMode=A,Oe.ConcurrentMode=E,Oe.ContextConsumer=S,Oe.ContextProvider=_,Oe.Element=N,Oe.ForwardRef=P,Oe.Fragment=I,Oe.Lazy=W,Oe.Memo=j,Oe.Portal=z,Oe.Profiler=Y,Oe.StrictMode=Q,Oe.Suspense=oe,Oe.isAsyncMode=re,Oe.isConcurrentMode=L,Oe.isContextConsumer=F,Oe.isContextProvider=K,Oe.isElement=U,Oe.isForwardRef=J,Oe.isFragment=V,Oe.isLazy=ee,Oe.isMemo=te,Oe.isPortal=he,Oe.isProfiler=ye,Oe.isStrictMode=pe,Oe.isSuspense=ze,Oe.isValidElementType=x,Oe.typeOf=w})()),Oe}var Mm;function h0(){return Mm||(Mm=1,process.env.NODE_ENV==="production"?ga.exports=K1():ga.exports=H1()),ga.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var G=ze(te,
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Q1=function(e,t){return H1(e)||q1(e,t)||V1(e,t)||Y1()},l0=c0((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},t.apply(this,arguments)}e.exports=t})),G1=function(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},f0=function(e,t){if(e==null)return{};var n,r,o=G1(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},Z1=T.createContext(null);function u0(e){var t=e.children,n=t===void 0?"":t,r=f0(e,["children"]);return typeof n!="string"&&(n=M1.renderToString(n)),T.createElement("template",l0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function d0(e){var t=e.root,n=e.children;return Nn.createPortal(n===void 0?null:n,t)}function J1(e){var t=T.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,c=n.delegatesFocus,l=c!==void 0&&c,f=n.styleSheets,u=f===void 0?[]:f,d=n.ssr,p=d!==void 0&&d,h=n.children,g=f0(n,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(i=T.useRef((o=r)&&o.current),T.useEffect((function(){o&&(o.current=i.current)}),[o]),i),y=T.useState(null),v=Q1(y,2),b=v[0],w=v[1],A="node_".concat(a).concat(l);return T.useLayoutEffect((function(){if(m.current)try{if(typeof r=="function"&&r(m.current),p){var _=m.current.shadowRoot;return void w(_)}var E=m.current.attachShadow({mode:a,delegatesFocus:l});u.length>0&&(E.adoptedStyleSheets=u),w(E)}catch(S){(function(N){var P=N.error,I=N.styleSheets,W=N.root;switch(P.name){case"NotSupportedError":I.length>0&&(W.adoptedStyleSheets=I);break;default:throw P}})({error:S,styleSheets:u,root:b})}}),[r,m,u]),T.createElement(T.Fragment,null,T.createElement(e.tag,l0({key:A,ref:m},g),(b||p)&&T.createElement(Z1.Provider,{value:b},p?T.createElement(u0,{shadowroot:a,shadowrootmode:a},e.render({root:b,ssr:p,children:h})):T.createElement(d0,{root:b},e.render({root:b,ssr:p,children:h})))))}));return t.propTypes={mode:ge.oneOf(["open","closed"]),delegatesFocus:ge.bool,styleSheets:ge.arrayOf(ge.instanceOf(globalThis.CSSStyleSheet)),ssr:ge.bool,children:ge.node},t}u0.propTypes={children:ge.oneOfType([ge.string,ge.node])},d0.propTypes={root:ge.object.isRequired,children:ge.node};var vl=new Map;function X1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,o){var i=K1(o,{separator:"-"}),s="".concat(t,"-").concat(i);return vl.has(s)||vl.set(s,J1({tag:i,render:n})),vl.get(s)}})}var Ac=X1();const p0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var Ui=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ew={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gn,ao,Yg,tw=(Yg=class{constructor(){ue(this,gn,ew);ue(this,ao,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&k(this,ao)&&e!==k(this,gn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:k(this,gn),provider:e}),ne(this,gn,e),process.env.NODE_ENV!=="production"&&ne(this,ao,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,ao,!0),k(this,gn).setTimeout(e,t)}clearTimeout(e){k(this,gn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&ne(this,ao,!0),k(this,gn).setInterval(e,t)}clearInterval(e){k(this,gn).clearInterval(e)}},gn=new WeakMap,ao=new WeakMap,Yg),ro=new tw;function nw(e){setTimeout(e,0)}var _o=typeof window>"u"||"Deno"in globalThis;function kt(){}function rw(e,t){return typeof e=="function"?e(t):e}function uf(e){return typeof e=="number"&&e>=0&&e!==1/0}function h0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nr(e,t){return typeof e=="function"?e(t):e}function qt(e,t){return typeof e=="function"?e(t):e}function Rp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==qu(s,t.options))return!1}else if(!Es(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Dp(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Eo(t.options.mutationKey)!==Eo(i))return!1}else if(!Es(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function qu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Eo)(e)}function Eo(e){return JSON.stringify(e,(t,n)=>pf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Es(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Es(e[n],t[n])):!1}var ow=Object.prototype.hasOwnProperty;function df(e,t){if(e===t)return e;const n=Fp(e)&&Fp(t);if(!n&&!(pf(e)&&pf(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const f=n?l:i[l],u=e[f],d=t[f];if(u===d){a[f]=u,(n?l<o:ow.call(e,f))&&c++;continue}if(u===null||d===null||typeof u!="object"||typeof d!="object"){a[f]=d;continue}const p=df(u,d);a[f]=p,p===u&&c++}return o===s&&c===o?e:a}function Va(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pf(e){if(!jp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jp(e){return Object.prototype.toString.call(e)==="[object Object]"}function iw(e){return new Promise(t=>{ro.setTimeout(t,e)})}function hf(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return df(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return df(e,t)}return t}function sw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function aw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ya=Symbol();function m0(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Ya&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ya?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Vu(e,t){return typeof e=="function"?e(...t):!!e}function cw(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var co,vr,xi,Qg,lw=(Qg=class extends Ui{constructor(){super();ue(this,co);ue(this,vr);ue(this,xi);ne(this,xi,t=>{if(!_o&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,vr)||this.setEventListener(k(this,xi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,vr))==null||t.call(this),ne(this,vr,void 0))}setEventListener(t){var n;ne(this,xi,t),(n=k(this,vr))==null||n.call(this),ne(this,vr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,co)!==t&&(ne(this,co,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,co)=="boolean"?k(this,co):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},co=new WeakMap,vr=new WeakMap,xi=new WeakMap,Qg),Yu=new lw;function mf(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var fw=nw;function uw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=fw;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=uw(),wi,br,Ai,Gg,dw=(Gg=class extends Ui{constructor(){super();ue(this,wi,!0);ue(this,br);ue(this,Ai);ne(this,Ai,t=>{if(!_o&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,br)||this.setEventListener(k(this,Ai))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,br))==null||t.call(this),ne(this,br,void 0))}setEventListener(t){var n;ne(this,Ai,t),(n=k(this,br))==null||n.call(this),ne(this,br,t(this.setOnline.bind(this)))}setOnline(t){k(this,wi)!==t&&(ne(this,wi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,wi)}},wi=new WeakMap,br=new WeakMap,Ai=new WeakMap,Gg),Qa=new dw;function pw(e){return Math.min(1e3*2**e,3e4)}function g0(e){return(e??"online")==="online"?Qa.isOnline():!0}var gf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function y0(e){let t=!1,n=0,r;const o=mf(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const y=new gf(g);d(y),(m=e.onCancel)==null||m.call(e,y)}},a=()=>{t=!0},c=()=>{t=!1},l=()=>Yu.isFocused()&&(e.networkMode==="always"||Qa.isOnline())&&e.canRun(),f=()=>g0(e.networkMode)&&e.canRun(),u=g=>{i()||(r==null||r(),o.resolve(g))},d=g=>{i()||(r==null||r(),o.reject(g))},p=()=>new Promise(g=>{var m;r=y=>{(i()||l())&&g(y)},(m=e.onPause)==null||m.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),h=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(u).catch(y=>{var _;if(i())return;const v=e.retry??(_o?0:3),b=e.retryDelay??pw,w=typeof b=="function"?b(n,y):b,A=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!A){d(y);return}n++,(_=e.onFail)==null||_.call(e,n,y),iw(w).then(()=>l()?void 0:p()).then(()=>{t?d(y):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?h():p().then(h),o)}}var lo,Zg,v0=(Zg=class{constructor(){ue(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uf(this.gcTime)&&ne(this,lo,ro.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_o?1/0:300*1e3))}clearGcTimeout(){k(this,lo)&&(ro.clearTimeout(k(this,lo)),ne(this,lo,void 0))}},lo=new WeakMap,Zg),fo,Ci,Ht,uo,tt,Us,po,rn,$n,Jg,hw=(Jg=class extends v0{constructor(t){super();ue(this,rn);ue(this,fo);ue(this,Ci);ue(this,Ht);ue(this,uo);ue(this,tt);ue(this,Us);ue(this,po);ne(this,po,!1),ne(this,Us,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,uo,t.client),ne(this,Ht,k(this,uo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,fo,$p(this.options)),this.state=t.state??k(this,fo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,tt))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,Us),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=$p(this.options);n.data!==void 0&&(this.setState(zp(n.data,n.dataUpdatedAt)),ne(this,fo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Ht).remove(this)}setData(t,n){const r=hf(this.state.data,t,this.options);return ve(this,rn,$n).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ve(this,rn,$n).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,tt))==null?void 0:r.promise;return(o=k(this,tt))==null||o.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,fo))}isActive(){return this.observers.some(t=>qt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ya||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Nr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!h0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,tt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,tt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,Ht).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,tt)&&(k(this,po)?k(this,tt).cancel({revert:!0}):k(this,tt).cancelRetry()),this.scheduleGc()),k(this,Ht).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,rn,$n).call(this,{type:"invalidate"})}async fetch(t,n){var c,l,f,u,d,p,h,g,m,y,v,b;if(this.state.fetchStatus!=="idle"&&((c=k(this,tt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,tt))return k(this,tt).continueRetry(),k(this,tt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(A=>A.options.queryFn);w&&this.setOptions(w.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(ne(this,po,!0),r.signal)})},i=()=>{const w=m0(this.options,n),_=(()=>{const E={client:k(this,uo),queryKey:this.queryKey,meta:this.meta};return o(E),E})();return ne(this,po,!1),this.options.persister?this.options.persister(w,_,this):w(_)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,uo),state:this.state,fetchFn:i};return o(w),w})();(l=this.options.behavior)==null||l.onFetch(a,this),ne(this,Ci,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&ve(this,rn,$n).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta}),ne(this,tt,y0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:w=>{w instanceof gf&&w.revert&&this.setState({...k(this,Ci),fetchStatus:"idle"}),r.abort()},onFail:(w,A)=>{ve(this,rn,$n).call(this,{type:"failed",failureCount:w,error:A})},onPause:()=>{ve(this,rn,$n).call(this,{type:"pause"})},onContinue:()=>{ve(this,rn,$n).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await k(this,tt).start();if(w===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(d=k(this,Ht).config).onSuccess)==null||p.call(d,w,this),(g=(h=k(this,Ht).config).onSettled)==null||g.call(h,w,this.state.error,this),w}catch(w){if(w instanceof gf){if(w.silent)return k(this,tt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw ve(this,rn,$n).call(this,{type:"error",error:w}),(y=(m=k(this,Ht).config).onError)==null||y.call(m,w,this),(b=(v=k(this,Ht).config).onSettled)==null||b.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},fo=new WeakMap,Ci=new WeakMap,Ht=new WeakMap,uo=new WeakMap,tt=new WeakMap,Us=new WeakMap,po=new WeakMap,rn=new WeakSet,$n=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...b0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...zp(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Ci,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,Ht).notify({query:this,type:"updated",action:t})})},Jg);function b0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zp(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $p(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Lt,_e,Bs,Et,ho,_i,Hn,xr,Ws,Ei,Si,mo,go,wr,ki,Me,ps,yf,vf,bf,xf,wf,Af,Cf,x0,Xg,mw=(Xg=class extends Ui{constructor(t,n){super();ue(this,Me);ue(this,Lt);ue(this,_e);ue(this,Bs);ue(this,Et);ue(this,ho);ue(this,_i);ue(this,Hn);ue(this,xr);ue(this,Ws);ue(this,Ei);ue(this,Si);ue(this,mo);ue(this,go);ue(this,wr);ue(this,ki,new Set);this.options=n,ne(this,Lt,t),ne(this,xr,null),ne(this,Hn,mf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,_e).addObserver(this),Up(k(this,_e),this.options)?ve(this,Me,ps).call(this):this.updateResult(),ve(this,Me,xf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _f(k(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _f(k(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Me,wf).call(this),ve(this,Me,Af).call(this),k(this,_e).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,_e);if(this.options=k(this,Lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qt(this.options.enabled,k(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Me,Cf).call(this),k(this,_e).setOptions(this.options),n._defaulted&&!Va(this.options,n)&&k(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,_e),observer:this});const o=this.hasListeners();o&&Bp(k(this,_e),r,this.options,n)&&ve(this,Me,ps).call(this),this.updateResult(),o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||Nr(this.options.staleTime,k(this,_e))!==Nr(n.staleTime,k(this,_e)))&&ve(this,Me,yf).call(this);const i=ve(this,Me,vf).call(this);o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||i!==k(this,wr))&&ve(this,Me,bf).call(this,i)}getOptimisticResult(t){const n=k(this,Lt).getQueryCache().build(k(this,Lt),t),r=this.createResult(n,t);return yw(this,r)&&(ne(this,Et,r),ne(this,_i,this.options),ne(this,ho,k(this,_e).state)),r}getCurrentResult(){return k(this,Et)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,Hn).status==="pending"&&k(this,Hn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){k(this,ki).add(t)}getCurrentQuery(){return k(this,_e)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Lt).defaultQueryOptions(t),r=k(this,Lt).getQueryCache().build(k(this,Lt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ve(this,Me,ps).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Et)))}createResult(t,n){var N;const r=k(this,_e),o=this.options,i=k(this,Et),s=k(this,ho),a=k(this,_i),l=t!==r?t.state:k(this,Bs),{state:f}=t;let u={...f},d=!1,p;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&Up(t,n),W=P&&Bp(t,r,n,o);(I||W)&&(u={...u,...b0(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:m}=u;p=u.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&m==="pending"){let P;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(P=i.data,y=!0):P=typeof n.placeholderData=="function"?n.placeholderData((N=k(this,Si))==null?void 0:N.state.data,k(this,Si)):n.placeholderData,P!==void 0&&(m="success",p=hf(i==null?void 0:i.data,P,n),d=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(s==null?void 0:s.data)&&n.select===k(this,Ws))p=k(this,Ei);else try{ne(this,Ws,n.select),p=n.select(p),p=hf(i==null?void 0:i.data,p,n),ne(this,Ei,p),ne(this,xr,null)}catch(P){ne(this,xr,P)}k(this,xr)&&(h=k(this,xr),p=k(this,Ei),g=Date.now(),m="error");const v=u.fetchStatus==="fetching",b=m==="pending",w=m==="error",A=b&&v,_=p!==void 0,S={status:m,fetchStatus:u.fetchStatus,isPending:b,isSuccess:m==="success",isError:w,isInitialLoading:A,isLoading:A,data:p,dataUpdatedAt:u.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:w&&!_,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&_,isStale:Qu(t,n),refetch:this.refetch,promise:k(this,Hn),isEnabled:qt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=j=>{S.status==="error"?j.reject(S.error):S.data!==void 0&&j.resolve(S.data)},I=()=>{const j=ne(this,Hn,S.promise=mf());P(j)},W=k(this,Hn);switch(W.status){case"pending":t.queryHash===r.queryHash&&P(W);break;case"fulfilled":(S.status==="error"||S.data!==W.value)&&I();break;case"rejected":(S.status!=="error"||S.error!==W.reason)&&I();break}}return S}updateResult(){const t=k(this,Et),n=this.createResult(k(this,_e),this.options);if(ne(this,ho,k(this,_e).state),ne(this,_i,this.options),k(this,ho).data!==void 0&&ne(this,Si,k(this,_e)),Va(n,t))return;ne(this,Et,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!k(this,ki).size)return!0;const s=new Set(i??k(this,ki));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Et)).some(a=>{const c=a;return k(this,Et)[c]!==t[c]&&s.has(c)})};ve(this,Me,x0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Me,xf).call(this)}},Lt=new WeakMap,_e=new WeakMap,Bs=new WeakMap,Et=new WeakMap,ho=new WeakMap,_i=new WeakMap,Hn=new WeakMap,xr=new WeakMap,Ws=new WeakMap,Ei=new WeakMap,Si=new WeakMap,mo=new WeakMap,go=new WeakMap,wr=new WeakMap,ki=new WeakMap,Me=new WeakSet,ps=function(t){ve(this,Me,Cf).call(this);let n=k(this,_e).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},yf=function(){ve(this,Me,wf).call(this);const t=Nr(this.options.staleTime,k(this,_e));if(_o||k(this,Et).isStale||!uf(t))return;const r=h0(k(this,Et).dataUpdatedAt,t)+1;ne(this,mo,ro.setTimeout(()=>{k(this,Et).isStale||this.updateResult()},r))},vf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,_e)):this.options.refetchInterval)??!1},bf=function(t){ve(this,Me,Af).call(this),ne(this,wr,t),!(_o||qt(this.options.enabled,k(this,_e))===!1||!uf(k(this,wr))||k(this,wr)===0)&&ne(this,go,ro.setInterval(()=>{(this.options.refetchIntervalInBackground||Yu.isFocused())&&ve(this,Me,ps).call(this)},k(this,wr)))},xf=function(){ve(this,Me,yf).call(this),ve(this,Me,bf).call(this,ve(this,Me,vf).call(this))},wf=function(){k(this,mo)&&(ro.clearTimeout(k(this,mo)),ne(this,mo,void 0))},Af=function(){k(this,go)&&(ro.clearInterval(k(this,go)),ne(this,go,void 0))},Cf=function(){const t=k(this,Lt).getQueryCache().build(k(this,Lt),this.options);if(t===k(this,_e))return;const n=k(this,_e);ne(this,_e,t),ne(this,Bs,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},x0=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Et))}),k(this,Lt).getQueryCache().notify({query:k(this,_e),type:"observerResultsUpdated"})})},Xg);function gw(e,t){return qt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Up(e,t){return gw(e,t)||e.state.data!==void 0&&_f(e,t,t.refetchOnMount)}function _f(e,t,n){if(qt(t.enabled,e)!==!1&&Nr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qu(e,t)}return!1}function Bp(e,t,n,r){return(e!==t||qt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Qu(e,n)}function Qu(e,t){return qt(t.enabled,e)!==!1&&e.isStaleByTime(Nr(t.staleTime,e))}function yw(e,t){return!Va(e.getCurrentResult(),t)}function Wp(e){return{onFetch:(t,n)=>{var f,u,d,p,h;const r=t.options,o=(d=(u=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:u.fetchMore)==null?void 0:d.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const m=b=>{cw(b,()=>t.signal,()=>g=!0)},y=m0(t.options,t.fetchOptions),v=async(b,w,A)=>{if(g)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:w,direction:A?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(E),{maxPages:N}=t.options,P=A?aw:sw;return{pages:P(b.pages,S,N),pageParams:P(b.pageParams,w,N)}};if(o&&i.length){const b=o==="backward",w=b?vw:Kp,A={pages:i,pageParams:s},_=w(r,A);a=await v(A,_,b)}else{const b=e??i.length;do{const w=c===0?s[0]??r.initialPageParam:Kp(r,a);if(c>0&&w==null)break;a=await v(a,w),c++}while(c<b)}return a};t.options.persister?t.fetchFn=()=>{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Kp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vw(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ks,yn,St,yo,vn,mr,e0,bw=(e0=class extends v0{constructor(t){super();ue(this,vn);ue(this,Ks);ue(this,yn);ue(this,St);ue(this,yo);ne(this,Ks,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,yn,[]),this.state=t.state||w0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,yn).includes(t)||(k(this,yn).push(t),this.clearGcTimeout(),k(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,yn,k(this,yn).filter(n=>n!==t)),this.scheduleGc(),k(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,yn).length||(this.state.status==="pending"?this.scheduleGc():k(this,St).remove(this))}continue(){var t;return((t=k(this,yo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,c,l,f,u,d,p,h,g,m,y,v,b,w,A,_,E,S,N;const n=()=>{ve(this,vn,mr).call(this,{type:"continue"})},r={client:k(this,Ks),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,yo,y0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{ve(this,vn,mr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{ve(this,vn,mr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,St).canRun(this)}));const o=this.state.status==="pending",i=!k(this,yo).canStart();try{if(o)n();else{ve(this,vn,mr).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=k(this,St).config).onMutate)==null?void 0:a.call(s,t,this,r));const I=await((l=(c=this.options).onMutate)==null?void 0:l.call(c,t,r));I!==this.state.context&&ve(this,vn,mr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await k(this,yo).start();return await((u=(f=k(this,St).config).onSuccess)==null?void 0:u.call(f,P,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,P,t,this.state.context,r)),await((g=(h=k(this,St).config).onSettled)==null?void 0:g.call(h,P,null,this.state.variables,this.state.context,this,r)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,P,null,t,this.state.context,r)),ve(this,vn,mr).call(this,{type:"success",data:P}),P}catch(P){try{await((b=(v=k(this,St).config).onError)==null?void 0:b.call(v,P,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((A=(w=this.options).onError)==null?void 0:A.call(w,P,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((E=(_=k(this,St).config).onSettled)==null?void 0:E.call(_,void 0,P,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((N=(S=this.options).onSettled)==null?void 0:N.call(S,void 0,P,t,this.state.context,r))}catch(I){Promise.reject(I)}throw ve(this,vn,mr).call(this,{type:"error",error:P}),P}finally{k(this,St).runNext(this)}}},Ks=new WeakMap,yn=new WeakMap,St=new WeakMap,yo=new WeakMap,vn=new WeakSet,mr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ze.batch(()=>{k(this,yn).forEach(r=>{r.onMutationUpdate(t)}),k(this,St).notify({mutation:this,type:"updated",action:t})})},e0);function w0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qn,on,Hs,t0,xw=(t0=class extends Ui{constructor(t={}){super();ue(this,qn);ue(this,on);ue(this,Hs);this.config=t,ne(this,qn,new Set),ne(this,on,new Map),ne(this,Hs,0)}build(t,n,r){const o=new bw({client:t,mutationCache:this,mutationId:++la(this,Hs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,qn).add(t);const n=da(t);if(typeof n=="string"){const r=k(this,on).get(n);r?r.push(t):k(this,on).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,qn).delete(t)){const n=da(t);if(typeof n=="string"){const r=k(this,on).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&k(this,on).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=da(t);if(typeof n=="string"){const r=k(this,on).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=da(t);if(typeof n=="string"){const o=(r=k(this,on).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{k(this,qn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,qn).clear(),k(this,on).clear()})}getAll(){return Array.from(k(this,qn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Dp(n,r))}findAll(t={}){return this.getAll().filter(n=>Dp(t,n))}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},qn=new WeakMap,on=new WeakMap,Hs=new WeakMap,t0);function da(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Vn,Ar,Rt,Yn,Jn,Ma,Ef,n0,ww=(n0=class extends Ui{constructor(n,r){super();ue(this,Jn);ue(this,Vn);ue(this,Ar);ue(this,Rt);ue(this,Yn);ne(this,Vn,n),this.setOptions(r),this.bindMethods(),ve(this,Jn,Ma).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=k(this,Vn).defaultMutationOptions(n),Va(this.options,r)||k(this,Vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Eo(r.mutationKey)!==Eo(this.options.mutationKey)?this.reset():((o=k(this,Rt))==null?void 0:o.state.status)==="pending"&&k(this,Rt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,Rt))==null||n.removeObserver(this)}onMutationUpdate(n){ve(this,Jn,Ma).call(this),ve(this,Jn,Ef).call(this,n)}getCurrentResult(){return k(this,Ar)}reset(){var n;(n=k(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),ve(this,Jn,Ma).call(this),ve(this,Jn,Ef).call(this)}mutate(n,r){var o;return ne(this,Yn,r),(o=k(this,Rt))==null||o.removeObserver(this),ne(this,Rt,k(this,Vn).getMutationCache().build(k(this,Vn),this.options)),k(this,Rt).addObserver(this),k(this,Rt).execute(n)}},Vn=new WeakMap,Ar=new WeakMap,Rt=new WeakMap,Yn=new WeakMap,Jn=new WeakSet,Ma=function(){var r;const n=((r=k(this,Rt))==null?void 0:r.state)??w0();ne(this,Ar,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Ef=function(n){Ze.batch(()=>{var r,o,i,s,a,c,l,f;if(k(this,Yn)&&this.hasListeners()){const u=k(this,Ar).variables,d=k(this,Ar).context,p={client:k(this,Vn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=k(this,Yn)).onSuccess)==null||o.call(r,n.data,u,d,p)}catch(h){Promise.reject(h)}try{(s=(i=k(this,Yn)).onSettled)==null||s.call(i,n.data,null,u,d,p)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(c=(a=k(this,Yn)).onError)==null||c.call(a,n.error,u,d,p)}catch(h){Promise.reject(h)}try{(f=(l=k(this,Yn)).onSettled)==null||f.call(l,void 0,n.error,u,d,p)}catch(h){Promise.reject(h)}}}this.listeners.forEach(u=>{u(k(this,Ar))})})},n0),bn,r0,Aw=(r0=class extends Ui{constructor(t={}){super();ue(this,bn);this.config=t,ne(this,bn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??qu(o,n);let s=this.get(i);return s||(s=new hw({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){k(this,bn).has(t.queryHash)||(k(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,bn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,bn).get(t)}getAll(){return[...k(this,bn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Rp(t,r)):n}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bn=new WeakMap,r0),Ke,Cr,_r,Ti,Ni,Er,Oi,Pi,o0,A0=(o0=class{constructor(e={}){ue(this,Ke);ue(this,Cr);ue(this,_r);ue(this,Ti);ue(this,Ni);ue(this,Er);ue(this,Oi);ue(this,Pi);ne(this,Ke,e.queryCache||new Aw),ne(this,Cr,e.mutationCache||new xw),ne(this,_r,e.defaultOptions||{}),ne(this,Ti,new Map),ne(this,Ni,new Map),ne(this,Er,0)}mount(){la(this,Er)._++,k(this,Er)===1&&(ne(this,Oi,Yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ne(this,Pi,Qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var e,t;la(this,Er)._--,k(this,Er)===0&&((e=k(this,Oi))==null||e.call(this),ne(this,Oi,void 0),(t=k(this,Pi))==null||t.call(this),ne(this,Pi,void 0))}isFetching(e){return k(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Cr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Nr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,Ke).get(r.queryHash),i=o==null?void 0:o.state.data,s=rw(t,i);if(s!==void 0)return k(this,Ke).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=>k(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Ke);Ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Ke);return Ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ze.batch(()=>k(this,Ke).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Ze.batch(()=>(k(this,Ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ze.batch(()=>k(this,Ke).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(kt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Ke).build(this,t);return n.isStaleByTime(Nr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=Wp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Wp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Qa.isOnline()?k(this,Cr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,Cr)}getDefaultOptions(){return k(this,_r)}setDefaultOptions(e){ne(this,_r,e)}setQueryDefaults(e,t){k(this,Ti).set(Eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Ti).values()],n={};return t.forEach(r=>{Es(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Ni).set(Eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Ni).values()],n={};return t.forEach(r=>{Es(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,_r).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=qu(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ya&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,_r).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,Cr).clear()}},Ke=new WeakMap,Cr=new WeakMap,_r=new WeakMap,Ti=new WeakMap,Ni=new WeakMap,Er=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,o0),C0=C.createContext(void 0),_0=e=>{const t=C.useContext(C0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Cw=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(C0.Provider,{value:e,children:t})),E0=C.createContext(!1),_w=()=>C.useContext(E0);E0.Provider;function Ew(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Sw=C.createContext(Ew()),kw=()=>C.useContext(Sw),Tw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Vu(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Nw=e=>{C.useEffect(()=>{e.clearReset()},[e])},Ow=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Vu(n,[e.error,r])),Pw=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Mw=(e,t)=>e.isLoading&&e.isFetching&&!t,Iw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Hp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Lw(e,t,n){var d,p,h,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=_w(),o=kw(),i=_0(n),s=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,s);const a=i.getQueryCache().get(s.queryHash);process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=r?"isRestoring":"optimistic",Pw(s),Tw(s,o,a),Nw(o);const c=!i.getQueryCache().get(s.queryHash),[l]=C.useState(()=>new t(i,s)),f=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const y=u?l.subscribe(Ze.batchCalls(m)):kt;return l.updateResult(),y},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setOptions(s)},[s,l]),Iw(s,f))throw Hp(s,l,o);if(Ow({result:f,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw f.error;if((g=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,s,f),s.experimental_prefetchInRender&&!_o&&Mw(f,r)){const m=c?Hp(s,l,o):a==null?void 0:a.promise;m==null||m.catch(kt).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?f:l.trackResult(f)}function Cc(e,t){return Lw(e,mw,t)}function Gu(e,t){const n=_0(t),[r]=C.useState(()=>new ww(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(Ze.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=C.useCallback((s,a)=>{r.mutate(s,a).catch(kt)},[r]);if(o.error&&Vu(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Zu=T.createContext({queryClient:new A0});Zu.Provider;const jr=()=>{const e=T.useContext(Zu);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},S0=({children:e})=>{const[t]=T.useState(new A0);return x.jsx(Zu.Provider,{value:{queryClient:t},children:x.jsx(Cw,{client:t,children:e})})},Be={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},k0="https://marketplace.confidence.com/api",rr=k0+"/confidence",qp=k0+"/dropbox/prod",Rw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${rr}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Dw=()=>{const{queryClient:e}=jr(),t=Gu({mutationFn:async r=>Rw(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},Fw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${rr}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},jw=()=>{const{queryClient:e}=jr(),t=Gu({mutationFn:async r=>await Fw(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},T0=(e,t)=>{const{queryClient:n}=jr(),r=Cc({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var c;return((c=r.data)==null?void 0:c[a.toString()])??!1},i=(a,c)=>{var l;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:c!==void 0?c:!o(a)})),(l=t==null?void 0:t.onTaskExpanded)==null||l.call(t,a,o(a))},s=T.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},zw=(e,t)=>{const{queryClient:n}=jr(),{completeTask:r}=Dw(),{startTask:o}=jw(),{toggleTaskExpanded:i}=T0(e);return{completeTask:async(c,l)=>{const{status:f}=await r(c.toString());f&&(i(c,!1),n.setQueryData(["playbook",+e],u=>{if(!u)return u;const d=u.tasks.map(p=>p.sequenceOrder===l+1&&t.quickComplete?{...p,workflowStatus:Be.IN_PROGRESS}:p.taskInstanceId===c?{...p,workflowStatus:f}:p);return{...u,tasks:d}}))},startTask:async c=>{const{status:l}=await o(c.toString());l&&(i(c,!0),n.setQueryData(["playbook",+e],f=>{if(!f)return f;const u=f.tasks.map(d=>d.taskInstanceId===c?{...d,workflowStatus:l}:d);return{...f,tasks:u}}))}}},$w=e=>{var o;const{queryClient:t}=jr(),n=Cc({queryFn:async()=>{const i=new Headers,s=await fetch(`${rr}/playbook-details`,{method:"POST",cache:"no-store",headers:i,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const a=await s.json();if(a.error)throw new Error(a.error);return a},queryKey:["playbook",+e]},t),r=zw(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},fi={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},Uw={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},Bw=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:T.useMemo(()=>t===Be.OPEN&&n?[fi.START]:t===Be.IN_PROGRESS?[fi.PAUSE,fi.COMPLETE]:t===Be.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},N0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${rr}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},_c='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{:root,:host{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Pro";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Pro";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-regular:normal 400 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-light:normal 300 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-thin:normal 100 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands";--fa-font-sharp-solid:normal 900 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-light:normal 300 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-thin:normal 100 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-duotone-solid:normal 900 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-regular:normal 400 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-light:normal 300 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-thin:normal 100 1em/1 "Font Awesome 6 Sharp Duotone"}svg.svg-inline--fa:not(:root),svg.svg-inline--fa:not(:host){box-sizing:content-box;overflow:visible}.svg-inline--fa{display:var(--fa-display,inline-block);vertical-align:-.125em;height:1em;overflow:visible}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.07143em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fa-layers-counter,.fa-layers-text{text-align:center;display:inline-block;position:absolute}.fa-layers{text-align:center;vertical-align:-.125em;width:1em;height:1em;display:inline-block;position:relative}.fa-layers svg.svg-inline--fa{transform-origin:50%}.fa-layers-text{transform-origin:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);transform:scale(var(--fa-counter-scale,.25));transform-origin:100% 0;overflow:hidden}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 100%;top:auto}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 100%;top:auto;right:auto}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 0}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 0}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{vertical-align:.225em;font-size:.625em;line-height:.1em}.fa-xs{vertical-align:.125em;font-size:.75em;line-height:.08333em}.fa-sm{vertical-align:.05357em;font-size:.875em;line-height:.07143em}.fa-lg{vertical-align:-.075em;font-size:1.25em;line-height:.05em}.fa-xl{vertical-align:-.125em;font-size:1.5em;line-height:.04167em}.fa-2xl{vertical-align:-.1875em;font-size:2em;line-height:.03125em}.fa-fw{text-align:center;width:1.25em}.fa-ul{margin-left:var(--fa-li-margin,2.5em);padding-left:0;list-style-type:none}.fa-ul>li{position:relative}.fa-li{left:calc(-1*var(--fa-li-width,2em));text-align:center;width:var(--fa-li-width,2em);line-height:inherit;position:absolute}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media(prefers-reduced-motion:reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-iteration-count:1;animation-delay:-1ms}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1)translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9))translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1))translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95))translateY(0)}57%{transform:scale(1)translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1)translateY(0)}to{transform:scale(1)translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0)}}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{vertical-align:middle;width:2.5em;height:2em;display:inline-block;position:relative}.fa-stack-1x,.fa-stack-2x{z-index:var(--fa-stack-z-index,auto);margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.svg-inline--fa.fa-stack-1x{width:1.25em;height:1em}.svg-inline--fa.fa-stack-2x{width:2.5em;height:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.sr-only,.fa-sr-only,.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}@layer theme{:root,:host{--cnf-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--cnf-color-red-500:oklch(63.7% .237 25.331);--cnf-color-blue-500:oklch(62.3% .214 259.815);--cnf-color-blue-600:oklch(54.6% .245 262.881);--cnf-spacing:.25rem;--cnf-container-md:28rem;--cnf-container-lg:32rem;--cnf-text-xs:.75rem;--cnf-text-xs--line-height:calc(1/.75);--cnf-text-sm:.875rem;--cnf-text-sm--line-height:calc(1.25/.875);--cnf-text-base:1rem;--cnf-text-base--line-height: 1.5 ;--cnf-text-lg:1.125rem;--cnf-text-lg--line-height:calc(1.75/1.125);--cnf-text-xl:1.25rem;--cnf-text-xl--line-height:calc(1.75/1.25);--cnf-text-2xl:1.5rem;--cnf-text-2xl--line-height:calc(2/1.5);--cnf-font-weight-normal:400;--cnf-font-weight-medium:500;--cnf-font-weight-semibold:600;--cnf-font-weight-bold:700;--cnf-radius-sm:.25rem;--cnf-radius-md:.375rem;--cnf-radius-lg:.5rem;--cnf-ease-out:cubic-bezier(0,0,.2,1);--cnf-ease-in-out:cubic-bezier(.4,0,.2,1);--cnf-animate-spin:spin 1s linear infinite;--cnf-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--cnf-default-transition-duration:.15s;--cnf-default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer utilities{.cnf\\:pointer-events-none{pointer-events:none!important}.cnf\\:absolute{position:absolute!important}.cnf\\:fixed{position:fixed!important}.cnf\\:relative{position:relative!important}.cnf\\:sticky{position:sticky!important}.cnf\\:inset-0{inset:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0{top:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0\\.5{top:calc(var(--cnf-spacing)*.5)!important}.cnf\\:top-1{top:calc(var(--cnf-spacing)*1)!important}.cnf\\:top-3{top:calc(var(--cnf-spacing)*3)!important}.cnf\\:-right-0,.cnf\\:right-0{right:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-0{bottom:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-2{bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:left-0{left:calc(var(--cnf-spacing)*0)!important}.cnf\\:left-1{left:calc(var(--cnf-spacing)*1)!important}.cnf\\:left-1\\/2{left:50%!important}.cnf\\:left-4{left:calc(var(--cnf-spacing)*4)!important}.cnf\\:z-2{z-index:2!important}.cnf\\:z-10{z-index:10!important}.cnf\\:z-50{z-index:50!important}.cnf\\:z-\\[9999999997\\],.cnf\\:z-\\[9999999998\\],.cnf\\:z-\\[9999999999\\]{z-index:2147483647!important}.cnf\\:m-0{margin:calc(var(--cnf-spacing)*0)!important}.cnf\\:mx-1{margin-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:mx-2{margin-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:mx-4{margin-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:mx-auto{margin-inline:auto!important}.cnf\\:my-1{margin-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:my-2{margin-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mt-\\[1px\\]{margin-top:-1px!important}.cnf\\:mt-0{margin-top:calc(var(--cnf-spacing)*0)!important}.cnf\\:mt-3{margin-top:calc(var(--cnf-spacing)*3)!important}.cnf\\:mr-2{margin-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mb-3{margin-bottom:calc(var(--cnf-spacing)*-3)!important}.cnf\\:mb-1{margin-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:mb-2{margin-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:mb-4{margin-bottom:calc(var(--cnf-spacing)*4)!important}.cnf\\:ml-2{margin-left:calc(var(--cnf-spacing)*2)!important}.cnf\\:block{display:block!important}.cnf\\:flex{display:flex!important}.cnf\\:hidden{display:none!important}.cnf\\:inline-flex{display:inline-flex!important}.cnf\\:size-4{width:calc(var(--cnf-spacing)*4)!important;height:calc(var(--cnf-spacing)*4)!important}.cnf\\:size-9{width:calc(var(--cnf-spacing)*9)!important;height:calc(var(--cnf-spacing)*9)!important}.cnf\\:h-2{height:calc(var(--cnf-spacing)*2)!important}.cnf\\:h-3{height:calc(var(--cnf-spacing)*3)!important}.cnf\\:h-4{height:calc(var(--cnf-spacing)*4)!important}.cnf\\:h-16{height:calc(var(--cnf-spacing)*16)!important}.cnf\\:h-\\[18px\\]{height:18px!important}.cnf\\:h-\\[20px\\]{height:20px!important}.cnf\\:h-\\[22px\\]{height:22px!important}.cnf\\:h-\\[24px\\]{height:24px!important}.cnf\\:h-\\[30px\\]{height:30px!important}.cnf\\:h-\\[38px\\]{height:38px!important}.cnf\\:h-\\[40px\\]{height:40px!important}.cnf\\:h-\\[75px\\]{height:75px!important}.cnf\\:h-\\[100vh\\]{height:100vh!important}.cnf\\:h-\\[110px\\]{height:110px!important}.cnf\\:h-full{height:100%!important}.cnf\\:min-h-16{min-height:calc(var(--cnf-spacing)*16)!important}.cnf\\:min-h-screen{min-height:100vh!important}.cnf\\:w-1\\/3{width:33.3333%!important}.cnf\\:w-3{width:calc(var(--cnf-spacing)*3)!important}.cnf\\:w-4{width:calc(var(--cnf-spacing)*4)!important}.cnf\\:w-\\[20px\\]{width:20px!important}.cnf\\:w-\\[27px\\]{width:27px!important}.cnf\\:w-\\[38px\\]{width:38px!important}.cnf\\:w-\\[75px\\]{width:75px!important}.cnf\\:w-\\[400px\\]{width:400px!important}.cnf\\:w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.cnf\\:w-full{width:100%!important}.cnf\\:w-screen{width:100vw!important}.cnf\\:max-w-400{max-width:calc(var(--cnf-spacing)*400)!important}.cnf\\:max-w-\\[300px\\]{max-width:300px!important}.cnf\\:max-w-\\[420px\\]{max-width:420px!important}.cnf\\:max-w-lg{max-width:var(--cnf-container-lg)!important}.cnf\\:max-w-md{max-width:var(--cnf-container-md)!important}.cnf\\:min-w-0{min-width:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-w-\\[106px\\]{min-width:106px!important}.cnf\\:min-w-\\[140px\\]{min-width:140px!important}.cnf\\:min-w-\\[160px\\]{min-width:160px!important}.cnf\\:min-w-\\[172px\\]{min-width:172px!important}.cnf\\:min-w-\\[270px\\]{min-width:270px!important}.cnf\\:min-w-fit{min-width:fit-content!important}.cnf\\:flex-1{flex:1!important}.cnf\\:flex-shrink-0{flex-shrink:0!important}.cnf\\:-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-0{--tw-translate-y:calc(var(--cnf-spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:rotate-180{rotate:180deg!important}.cnf\\:animate-progress{animation:1.5s ease-in-out infinite progress!important}.cnf\\:animate-pulse{animation:var(--cnf-animate-pulse)!important}.cnf\\:animate-spin{animation:var(--cnf-animate-spin)!important}.cnf\\:cursor-not-allowed{cursor:not-allowed!important}.cnf\\:cursor-pointer{cursor:pointer!important}.cnf\\:cursor-zoom-in{cursor:zoom-in!important}.cnf\\:list-decimal{list-style-type:decimal!important}.cnf\\:list-disc{list-style-type:disc!important}.cnf\\:flex-col{flex-direction:column!important}.cnf\\:flex-wrap{flex-wrap:wrap!important}.cnf\\:items-center{align-items:center!important}.cnf\\:items-start{align-items:flex-start!important}.cnf\\:items-stretch{align-items:stretch!important}.cnf\\:justify-between{justify-content:space-between!important}.cnf\\:justify-center{justify-content:center!important}.cnf\\:justify-end{justify-content:flex-end!important}.cnf\\:justify-start{justify-content:flex-start!important}.cnf\\:gap-1{gap:calc(var(--cnf-spacing)*1)!important}.cnf\\:gap-2{gap:calc(var(--cnf-spacing)*2)!important}.cnf\\:gap-3{gap:calc(var(--cnf-spacing)*3)!important}.cnf\\:gap-4{gap:calc(var(--cnf-spacing)*4)!important}:where(.cnf\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.cnf\\:divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.cnf\\:divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.cnf\\:self-end{align-self:flex-end!important}.cnf\\:truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.cnf\\:overflow-hidden{overflow:hidden!important}.cnf\\:overflow-x-hidden{overflow-x:hidden!important}.cnf\\:overflow-y-auto{overflow-y:auto!important}.cnf\\:rounded{border-radius:.25rem!important}.cnf\\:rounded-full{border-radius:3.40282e38px!important}.cnf\\:rounded-lg{border-radius:var(--cnf-radius-lg)!important}.cnf\\:rounded-md{border-radius:var(--cnf-radius-md)!important}.cnf\\:rounded-none{border-radius:0!important}.cnf\\:rounded-sm{border-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-t-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-top-right-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-l-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-bottom-left-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-b-md{border-bottom-right-radius:var(--cnf-radius-md)!important;border-bottom-left-radius:var(--cnf-radius-md)!important}.cnf\\:border{border-style:var(--tw-border-style)!important;border-width:1px!important}.cnf\\:border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.cnf\\:border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.cnf\\:border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.cnf\\:border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.cnf\\:border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.cnf\\:border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.cnf\\:border-none{--tw-border-style:none!important;border-style:none!important}.cnf\\:border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.cnf\\:border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.cnf\\:border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.cnf\\:border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.cnf\\:border-danger-200{border-color:#f0aab1!important}.cnf\\:border-danger-500{border-color:#dc3545!important}.cnf\\:border-gray-50{border-color:#f5f6f7!important}.cnf\\:border-gray-100{border-color:#ebedef!important}.cnf\\:border-gray-200{border-color:#ced1d6!important}.cnf\\:border-gray-300{border-color:#b0b5bd!important}.cnf\\:border-gray-400{border-color:#757e8c!important}.cnf\\:border-gray-700{border-color:#2c3544!important}.cnf\\:border-gray-800{border-color:#232b37!important}.cnf\\:border-info-500{border-color:#17a2b8!important}.cnf\\:border-orange-500{border-color:#ff7800!important}.cnf\\:border-primary-200{border-color:#94c8ff!important}.cnf\\:border-primary-600{border-color:#0069d9!important}.cnf\\:border-purple-500{border-color:#a855f7!important}.cnf\\:border-red-500{border-color:var(--cnf-color-red-500)!important}.cnf\\:border-secondary-500{border-color:#6c757d!important}.cnf\\:border-secondary-600{border-color:#5a6268!important}.cnf\\:border-steel-500{border-color:#556987!important}.cnf\\:border-success-200{border-color:#a5dab1!important}.cnf\\:border-success-600{border-color:#218838!important}.cnf\\:border-warning-200{border-color:#ffe597!important}.cnf\\:border-warning-500{border-color:#ffc107!important}.cnf\\:border-white{border-color:#fff!important}.cnf\\:border-t-blue-500{border-top-color:var(--cnf-color-blue-500)!important}.cnf\\:border-l-danger-500{border-left-color:#dc3545!important}.cnf\\:border-l-primary-500{border-left-color:#007bff!important}.cnf\\:border-l-success-500{border-left-color:#28a745!important}.cnf\\:border-l-warning-500{border-left-color:#ffc107!important}.cnf\\:bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.cnf\\:bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.cnf\\:bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.cnf\\:bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.cnf\\:bg-black\\/30{background-color:oklab(0% none none/.3)!important}.cnf\\:bg-blue-500{background-color:var(--cnf-color-blue-500)!important}.cnf\\:bg-danger-100{background-color:#f6ccd0!important}.cnf\\:bg-danger-500{background-color:#dc3545!important}.cnf\\:bg-dark{background-color:#1c232d!important}.cnf\\:bg-fiserv-orange-500{background-color:#f60!important}.cnf\\:bg-gray-50{background-color:#f5f6f7!important}.cnf\\:bg-gray-100{background-color:#ebedef!important}.cnf\\:bg-gray-200{background-color:#ced1d6!important}.cnf\\:bg-gray-400{background-color:#757e8c!important}.cnf\\:bg-gray-500{background-color:#3a475b!important}.cnf\\:bg-gray-800{background-color:#232b37!important}.cnf\\:bg-gray-900{background-color:#1c232d!important}.cnf\\:bg-info-500{background-color:#17a2b8!important}.cnf\\:bg-orange-500{background-color:#ff7800!important}.cnf\\:bg-primary-100{background-color:#bfdeff!important}.cnf\\:bg-primary-600{background-color:#0069d9!important}.cnf\\:bg-primary-800{background-color:#0054af!important}.cnf\\:bg-purple-500{background-color:#a855f7!important}.cnf\\:bg-secondary-500{background-color:#6c757d!important}.cnf\\:bg-steel-500{background-color:#556987!important}.cnf\\:bg-success-100{background-color:#c9e9d0!important}.cnf\\:bg-success-500{background-color:#28a745!important}.cnf\\:bg-success-600{background-color:#218838!important}.cnf\\:bg-warning-100{background-color:#ffefc1!important}.cnf\\:bg-warning-500{background-color:#ffc107!important}.cnf\\:bg-white{background-color:#fff!important}.cnf\\:bg-yellow{background-color:#ffe600!important}.cnf\\:object-contain{object-fit:contain!important}.cnf\\:object-cover{object-fit:cover!important}.cnf\\:object-center{object-position:center!important}.cnf\\:p-1{padding:calc(var(--cnf-spacing)*1)!important}.cnf\\:p-2{padding:calc(var(--cnf-spacing)*2)!important}.cnf\\:p-3{padding:calc(var(--cnf-spacing)*3)!important}.cnf\\:p-4{padding:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-0{padding-inline:calc(var(--cnf-spacing)*0)!important}.cnf\\:px-1{padding-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:px-2{padding-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:px-3{padding-inline:calc(var(--cnf-spacing)*3)!important}.cnf\\:px-4{padding-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-\\[2px\\]{padding-inline:2px!important}.cnf\\:py-1{padding-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:py-1\\.5{padding-block:calc(var(--cnf-spacing)*1.5)!important}.cnf\\:py-2{padding-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:py-4{padding-block:calc(var(--cnf-spacing)*4)!important}.cnf\\:pt-2{padding-top:calc(var(--cnf-spacing)*2)!important}.cnf\\:pr-2{padding-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-1{padding-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:pb-2{padding-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-\\[102px\\]{padding-bottom:102px!important}.cnf\\:pl-4{padding-left:calc(var(--cnf-spacing)*4)!important}.cnf\\:text-center{text-align:center!important}.cnf\\:text-left{text-align:left!important}.cnf\\:font-mono{font-family:var(--cnf-font-mono)!important}.cnf\\:text-2xl{font-size:var(--cnf-text-2xl)!important;line-height:var(--tw-leading,var(--cnf-text-2xl--line-height))!important}.cnf\\:text-base{font-size:var(--cnf-text-base)!important;line-height:var(--tw-leading,var(--cnf-text-base--line-height))!important}.cnf\\:text-lg{font-size:var(--cnf-text-lg)!important;line-height:var(--tw-leading,var(--cnf-text-lg--line-height))!important}.cnf\\:text-sm{font-size:var(--cnf-text-sm)!important;line-height:var(--tw-leading,var(--cnf-text-sm--line-height))!important}.cnf\\:text-sm\\/6{font-size:var(--cnf-text-sm)!important;line-height:calc(var(--cnf-spacing)*6)!important}.cnf\\:text-xl{font-size:var(--cnf-text-xl)!important;line-height:var(--tw-leading,var(--cnf-text-xl--line-height))!important}.cnf\\:text-xs{font-size:var(--cnf-text-xs)!important;line-height:var(--tw-leading,var(--cnf-text-xs--line-height))!important}.cnf\\:text-\\[10px\\]{font-size:10px!important}.cnf\\:leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.cnf\\:leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.cnf\\:leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.cnf\\:font-bold{--tw-font-weight:var(--cnf-font-weight-bold)!important;font-weight:var(--cnf-font-weight-bold)!important}.cnf\\:font-medium{--tw-font-weight:var(--cnf-font-weight-medium)!important;font-weight:var(--cnf-font-weight-medium)!important}.cnf\\:font-normal{--tw-font-weight:var(--cnf-font-weight-normal)!important;font-weight:var(--cnf-font-weight-normal)!important}.cnf\\:font-semibold{--tw-font-weight:var(--cnf-font-weight-semibold)!important;font-weight:var(--cnf-font-weight-semibold)!important}.cnf\\:whitespace-nowrap{white-space:nowrap!important}.cnf\\:text-\\[\\#0069D9\\]{color:#0069d9!important}.cnf\\:text-black{color:#000!important}.cnf\\:text-blue-600{color:var(--cnf-color-blue-600)!important}.cnf\\:text-danger-500{color:#dc3545!important}.cnf\\:text-danger-600{color:#c82333!important}.cnf\\:text-danger-900{color:#721c24!important}.cnf\\:text-dark{color:#1c232d!important}.cnf\\:text-dark-300{color:#343a40!important}.cnf\\:text-fiserv-orange-500{color:#f60!important}.cnf\\:text-gray-50{color:#f5f6f7!important}.cnf\\:text-gray-200{color:#ced1d6!important}.cnf\\:text-gray-300{color:#b0b5bd!important}.cnf\\:text-gray-400{color:#757e8c!important}.cnf\\:text-gray-500{color:#3a475b!important}.cnf\\:text-gray-700{color:#2c3544!important}.cnf\\:text-gray-800{color:#232b37!important}.cnf\\:text-gray-900{color:#1c232d!important}.cnf\\:text-info-500{color:#17a2b8!important}.cnf\\:text-orange-500{color:#ff7800!important}.cnf\\:text-primary-600{color:#0069d9!important}.cnf\\:text-primary-900{color:#004085!important}.cnf\\:text-purple-500{color:#a855f7!important}.cnf\\:text-secondary{color:#6c757d!important}.cnf\\:text-secondary-400{color:#899197!important}.cnf\\:text-secondary-500{color:#6c757d!important}.cnf\\:text-secondary-600{color:#5a6268!important}.cnf\\:text-steel-500{color:#556987!important}.cnf\\:text-success-500{color:#28a745!important}.cnf\\:text-success-600{color:#218838!important}.cnf\\:text-success-900{color:#155724!important}.cnf\\:text-warning-500{color:#ffc107!important}.cnf\\:text-warning-600{color:#f59e0b!important}.cnf\\:text-warning-900{color:#935f07!important}.cnf\\:text-white{color:#fff!important}.cnf\\:text-yellow{color:#ffe600!important}.cnf\\:uppercase{text-transform:uppercase!important}.cnf\\:italic{font-style:italic!important}.cnf\\:line-through{text-decoration-line:line-through!important}.cnf\\:underline{text-decoration-line:underline!important}.cnf\\:opacity-0{opacity:0!important}.cnf\\:opacity-50{opacity:.5!important}.cnf\\:opacity-60{opacity:.6!important}.cnf\\:opacity-70{opacity:.7!important}.cnf\\:opacity-100{opacity:1!important}.cnf\\:shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.cnf\\:shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.cnf\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.cnf\\:ease-in-out{--tw-ease:var(--cnf-ease-in-out)!important;transition-timing-function:var(--cnf-ease-in-out)!important}.cnf\\:ease-out{--tw-ease:var(--cnf-ease-out)!important;transition-timing-function:var(--cnf-ease-out)!important}.cnf\\:outline-none{--tw-outline-style:none!important;outline-style:none!important}.cnf\\:\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.cnf\\:hover\\:border-primary-500:hover{border-color:#007bff!important}.cnf\\:hover\\:bg-danger-500:hover{background-color:#dc3545!important}.cnf\\:hover\\:bg-dark:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.cnf\\:hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.cnf\\:hover\\:bg-gray-100:hover{background-color:#ebedef!important}.cnf\\:hover\\:bg-gray-400:hover{background-color:#757e8c!important}.cnf\\:hover\\:bg-gray-500:hover{background-color:#3a475b!important}.cnf\\:hover\\:bg-gray-800:hover{background-color:#232b37!important}.cnf\\:hover\\:bg-gray-900:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-info-500:hover{background-color:#17a2b8!important}.cnf\\:hover\\:bg-orange-500:hover{background-color:#ff7800!important}.cnf\\:hover\\:bg-primary-700:hover{background-color:#0062cc!important}.cnf\\:hover\\:bg-primary-800:hover{background-color:#0054af!important}.cnf\\:hover\\:bg-purple-500:hover{background-color:#a855f7!important}.cnf\\:hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.cnf\\:hover\\:bg-steel-500:hover{background-color:#556987!important}.cnf\\:hover\\:bg-success-500:hover{background-color:#28a745!important}.cnf\\:hover\\:bg-transparent:hover{background-color:#0000!important}.cnf\\:hover\\:bg-warning-500:hover{background-color:#ffc107!important}.cnf\\:hover\\:bg-yellow:hover{background-color:#ffe600!important}.cnf\\:hover\\:text-black:hover{color:#000!important}.cnf\\:hover\\:text-blue-600:hover{color:var(--cnf-color-blue-600)!important}.cnf\\:hover\\:text-danger-600:hover{color:#c82333!important}.cnf\\:hover\\:text-danger-700:hover{color:#bd2130!important}.cnf\\:hover\\:text-danger-800:hover{color:#aa1927!important}.cnf\\:hover\\:text-dark:hover{color:#1c232d!important}.cnf\\:hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.cnf\\:hover\\:text-gray-400:hover{color:#757e8c!important}.cnf\\:hover\\:text-gray-700:hover{color:#2c3544!important}.cnf\\:hover\\:text-gray-800:hover{color:#232b37!important}.cnf\\:hover\\:text-gray-900:hover{color:#1c232d!important}.cnf\\:hover\\:text-info-800:hover{color:#026777!important}.cnf\\:hover\\:text-orange-800:hover{color:#c75d00!important}.cnf\\:hover\\:text-primary-600:hover{color:#0069d9!important}.cnf\\:hover\\:text-primary-700:hover{color:#0062cc!important}.cnf\\:hover\\:text-primary-800:hover{color:#0054af!important}.cnf\\:hover\\:text-purple-800:hover{color:#6f33a7!important}.cnf\\:hover\\:text-secondary-800:hover{color:#444a50!important}.cnf\\:hover\\:text-steel-800:hover{color:#333f51!important}.cnf\\:hover\\:text-success-600:hover{color:#218838!important}.cnf\\:hover\\:text-success-700:hover{color:#1e7e34!important}.cnf\\:hover\\:text-success-800:hover{color:#106c25!important}.cnf\\:hover\\:text-warning-600:hover{color:#f59e0b!important}.cnf\\:hover\\:text-warning-700:hover{color:#dd8e0a!important}.cnf\\:hover\\:text-warning-800:hover{color:#b87708!important}.cnf\\:hover\\:text-white:hover{color:#fff!important}.cnf\\:hover\\:text-yellow:hover{color:#ffe600!important}}.cnf\\:focus\\:border-red-500:focus{border-color:var(--cnf-color-red-500)!important}.cnf\\:focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.cnf\\:focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.cnf\\:focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.cnf\\:active\\:bg-gray-50:active{background-color:#f5f6f7!important}.cnf\\:active\\:bg-gray-800:active{background-color:#232b37!important}.cnf\\:active\\:text-black:active{color:#000!important}.cnf\\:active\\:text-white:active{color:#fff!important}.cnf\\:disabled\\:pointer-events-none:disabled{pointer-events:none!important}.cnf\\:disabled\\:opacity-15:disabled{opacity:.15!important}.cnf\\:data-closed\\:opacity-0[data-closed]{opacity:0!important}.cnf\\:data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.cnf\\:data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.cnf\\:md\\:min-w-fit{min-width:fit-content!important}}}@layer base{.confidence-playbook{all:revert}.confidence-playbook *,.confidence-playbook :before,.confidence-playbook :after{box-sizing:border-box}.confidence-playbook,.confidence-playbook *,.confidence-playbook :after,.confidence-playbook :before,.confidence-playbook ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.confidence-playbook hr{height:0;color:inherit;border-top-width:1px}.confidence-playbook abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.confidence-playbook h1,.confidence-playbook h2,.confidence-playbook h3,.confidence-playbook h4,.confidence-playbook h5,.confidence-playbook h6{font-size:inherit;font-weight:inherit}.confidence-playbook a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.confidence-playbook b,.confidence-playbook strong{font-weight:bolder}.confidence-playbook code,.confidence-playbook kbd,.confidence-playbook samp,.confidence-playbook pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.confidence-playbook small{font-size:80%}.confidence-playbook sub,.confidence-playbook sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.confidence-playbook sub{bottom:-.25em}.confidence-playbook sup{top:-.5em}.confidence-playbook table{text-indent:0;border-color:inherit;border-collapse:collapse}.confidence-playbook :-moz-focusring{outline:auto}.confidence-playbook progress{vertical-align:baseline}.confidence-playbook summary{display:list-item}.confidence-playbook ol,.confidence-playbook ul,.confidence-playbook menu{list-style:none}.confidence-playbook img,.confidence-playbook svg,.confidence-playbook video,.confidence-playbook canvas,.confidence-playbook audio,.confidence-playbook iframe,.confidence-playbook embed,.confidence-playbook object{vertical-align:middle;display:block}.confidence-playbook img,.confidence-playbook video{max-width:100%;height:auto}.confidence-playbook button,.confidence-playbook input,.confidence-playbook select,.confidence-playbook optgroup,.confidence-playbook textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.confidence-playbook :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.confidence-playbook ::file-selector-button{margin-inline-end:4px}.confidence-playbook ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.confidence-playbook ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.confidence-playbook ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.confidence-playbook textarea{resize:vertical}.confidence-playbook ::-webkit-search-decoration{-webkit-appearance:none}.confidence-playbook ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.confidence-playbook ::-webkit-datetime-edit{display:inline-flex}.confidence-playbook ::-webkit-datetime-edit-fields-wrapper{padding:0}.confidence-playbook ::-webkit-datetime-edit{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-year-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-month-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-day-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-hour-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-minute-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-second-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-millisecond-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-meridiem-field{padding-block:0}.confidence-playbook ::-webkit-calendar-picker-indicator{line-height:1}.confidence-playbook :-moz-ui-invalid{box-shadow:none}.confidence-playbook button,.confidence-playbook input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::-webkit-inner-spin-button{height:auto}.confidence-playbook ::-webkit-outer-spin-button{height:auto}.confidence-playbook [hidden]:where(:not([hidden=until-found])){display:none!important}}.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset!important;color:#1c232d!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme,base,components,utilities;.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',Ww=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Kw=(e,t)=>({classGroupId:e,validator:t}),O0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ga="-",Vp=[],Hw="arbitrary..",qw=e=>{const t=Yw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Vw(s);const a=s.split(Ga),c=a[0]===""&&a.length>1?1:0;return P0(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],l=n[s];return c?l?Ww(l,c):c:l||Vp}return n[s]||Vp}}},P0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const l=P0(e,t+1,i);if(l)return l}const s=n.validators;if(s===null)return;const a=t===0?e.join(Ga):e.slice(t).join(Ga),c=s.length;for(let l=0;l<c;l++){const f=s[l];if(f.validator(a))return f.classGroupId}},Vw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Hw+r:void 0})(),Yw=e=>{const{theme:t,classGroups:n}=e;return Qw(n,t)},Qw=(e,t)=>{const n=O0();for(const r in e){const o=e[r];Ju(o,n,r,t)}return n},Ju=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];Gw(s,t,n,r)}},Gw=(e,t,n,r)=>{if(typeof e=="string"){Zw(e,t,n);return}if(typeof e=="function"){Jw(e,t,n,r);return}Xw(e,t,n,r)},Zw=(e,t,n)=>{const r=e===""?t:M0(t,e);r.classGroupId=n},Jw=(e,t,n,r)=>{if(e2(e)){Ju(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Kw(n,e))},Xw=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];Ju(c,M0(t,a),n,r)}},M0=(e,t)=>{let n=e;const r=t.split(Ga),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=O0(),n.nextPart.set(s,a)),n=a}return n},e2=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,t2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Sf="!",Yp=":",n2=[],Qp=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),r2=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;const f=o.length;for(let g=0;g<f;g++){const m=o[g];if(s===0&&a===0){if(m===Yp){i.push(o.slice(c,g)),c=g+1;continue}if(m==="/"){l=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.slice(c);let d=u,p=!1;u.endsWith(Sf)?(d=u.slice(0,-1),p=!0):u.startsWith(Sf)&&(d=u.slice(1),p=!0);const h=l&&l>c?l-c:void 0;return Qp(i,p,d,h)};if(t){const o=t+Yp,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):Qp(n2,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},o2=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=t.has(s);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},i2=e=>({cache:t2(e.cacheSize),parseClassName:r2(e),sortModifiers:o2(e),...qw(e)}),s2=/\s+/,a2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(s2);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:u,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(f);if(u){c=f+(c.length>0?" "+c:c);continue}let m=!!g,y=r(m?h.substring(0,g):h);if(!y){if(!m){c=f+(c.length>0?" "+c:c);continue}if(y=r(h),!y){c=f+(c.length>0?" "+c:c);continue}m=!1}const v=d.length===0?"":d.length===1?d[0]:i(d).join(":"),b=p?v+Sf:v,w=b+y;if(s.indexOf(w)>-1)continue;s.push(w);const A=o(y,m);for(let _=0;_<A.length;++_){const E=A[_];s.push(b+E)}c=f+(c.length>0?" "+c:c)}return c},c2=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=I0(n))&&(o&&(o+=" "),o+=r);return o},I0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=I0(e[r]))&&(n&&(n+=" "),n+=t);return n},l2=(e,...t)=>{let n,r,o,i;const s=c=>{const l=t.reduce((f,u)=>u(f),e());return n=i2(l),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const l=r(c);if(l)return l;const f=a2(c,n);return o(c,f),f};return i=s,(...c)=>i(c2(...c))},f2=[],Ge=e=>{const t=n=>n[e]||f2;return t.isThemeGetter=!0,t},L0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,u2=/^\d+\/\d+$/,d2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p2=/\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$/,h2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,g2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jo=e=>u2.test(e),xe=e=>!!e&&!Number.isNaN(Number(e)),pr=e=>!!e&&Number.isInteger(Number(e)),bl=e=>e.endsWith("%")&&xe(e.slice(0,-1)),Fn=e=>d2.test(e),y2=()=>!0,v2=e=>p2.test(e)&&!h2.test(e),D0=()=>!1,b2=e=>m2.test(e),x2=e=>g2.test(e),w2=e=>!ae(e)&&!ce(e),A2=e=>Bi(e,z0,D0),ae=e=>L0.test(e),Gr=e=>Bi(e,$0,v2),xl=e=>Bi(e,k2,xe),Gp=e=>Bi(e,F0,D0),C2=e=>Bi(e,j0,x2),pa=e=>Bi(e,U0,b2),ce=e=>R0.test(e),os=e=>Wi(e,$0),_2=e=>Wi(e,T2),Zp=e=>Wi(e,F0),E2=e=>Wi(e,z0),S2=e=>Wi(e,j0),ha=e=>Wi(e,U0,!0),Bi=(e,t,n)=>{const r=L0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Wi=(e,t,n=!1)=>{const r=R0.exec(e);return r?r[1]?t(r[1]):n:!1},F0=e=>e==="position"||e==="percentage",j0=e=>e==="image"||e==="url",z0=e=>e==="length"||e==="size"||e==="bg-size",$0=e=>e==="length",k2=e=>e==="number",T2=e=>e==="family-name",U0=e=>e==="shadow",N2=()=>{const e=Ge("color"),t=Ge("font"),n=Ge("text"),r=Ge("font-weight"),o=Ge("tracking"),i=Ge("leading"),s=Ge("breakpoint"),a=Ge("container"),c=Ge("spacing"),l=Ge("radius"),f=Ge("shadow"),u=Ge("inset-shadow"),d=Ge("text-shadow"),p=Ge("drop-shadow"),h=Ge("blur"),g=Ge("perspective"),m=Ge("aspect"),y=Ge("ease"),v=Ge("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...w(),ce,ae],_=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],S=()=>[ce,ae,c],N=()=>[Jo,"full","auto",...S()],P=()=>[pr,"none","subgrid",ce,ae],I=()=>["auto",{span:["full",pr,ce,ae]},pr,ce,ae],W=()=>[pr,"auto",ce,ae],j=()=>["auto","min","max","fr",ce,ae],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...S()],oe=()=>[Jo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,ce,ae],re=()=>[...w(),Zp,Gp,{position:[ce,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",E2,A2,{size:[ce,ae]}],K=()=>[bl,os,Gr],B=()=>["","none","full",l,ce,ae],J=()=>["",xe,os,Gr],V=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[xe,bl,Zp,Gp],he=()=>["","none",h,ce,ae],ye=()=>["none",xe,ce,ae],me=()=>["none",xe,ce,ae],ze=()=>[xe,ce,ae],G=()=>[Jo,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fn],breakpoint:[Fn],color:[y2],container:[Fn],"drop-shadow":[Fn],ease:["in","out","in-out"],font:[w2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fn],shadow:[Fn],spacing:["px",xe],text:[Fn],"text-shadow":[Fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jo,ae,ce,m]}],container:["container"],columns:[{columns:[xe,ae,ce,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[pr,"auto",ce,ae]}],basis:[{basis:[Jo,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,Jo,"auto","initial","none",ae]}],grow:[{grow:["",xe,ce,ae]}],shrink:[{shrink:["",xe,ce,ae]}],order:[{order:[pr,"first","last","none",ce,ae]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],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":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],w:[{w:[a,"screen",...oe()]}],"min-w":[{"min-w":[a,"screen","none",...oe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,os,Gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ce,xl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bl,ae]}],"font-family":[{font:[_2,ae,t]}],"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:[o,ce,ae]}],"line-clamp":[{"line-clamp":[xe,"none",ce,xl]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",ce,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",ce,Gr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[xe,"auto",ce,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,ae]}],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",ce,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pr,ce,ae],radial:["",ce,ae],conic:[pr,ce,ae]},S2,C2]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,ce,ae]}],"outline-w":[{outline:["",xe,os,Gr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",f,ha,pa]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",u,ha,pa]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[xe,Gr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,ha,pa]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[xe,ce,ae]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[ce,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,ae]}],filter:[{filter:["","none",ce,ae]}],blur:[{blur:he()}],brightness:[{brightness:[xe,ce,ae]}],contrast:[{contrast:[xe,ce,ae]}],"drop-shadow":[{"drop-shadow":["","none",p,ha,pa]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",xe,ce,ae]}],"hue-rotate":[{"hue-rotate":[xe,ce,ae]}],invert:[{invert:["",xe,ce,ae]}],saturate:[{saturate:[xe,ce,ae]}],sepia:[{sepia:["",xe,ce,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,ae]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[xe,ce,ae]}],"backdrop-contrast":[{"backdrop-contrast":[xe,ce,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,ce,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,ce,ae]}],"backdrop-invert":[{"backdrop-invert":["",xe,ce,ae]}],"backdrop-opacity":[{"backdrop-opacity":[xe,ce,ae]}],"backdrop-saturate":[{"backdrop-saturate":[xe,ce,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,ce,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",ce,ae]}],ease:[{ease:["linear","initial",y,ce,ae]}],delay:[{delay:[xe,ce,ae]}],animate:[{animate:["none",v,ce,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ce,ae]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ce,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",ce,ae]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",ce,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[xe,os,Gr,xl]}],stroke:[{stroke:["none",...M()]}],"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"]}},ui=l2(N2);function B0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=B0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ss(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=B0(e))&&(r&&(r+=" "),r+=t);return r}function Ee(...e){return ui(Ss(e))}const Jp="confidence_playbook_",O2="confidence_playbook_expanded_",W0=30;function K0(e,t){return t?`${Jp}${e}_${t}`:`${Jp}${e}`}function H0(e,t,n,r){const o={playbookInstanceId:t,email:n},i=K0(e,r),s=new Date;s.setDate(s.getDate()+W0),document.cookie=`${i}=${encodeURIComponent(JSON.stringify(o))}; expires=${s.toUTCString()}; path=/; SameSite=Lax`}function q0(e,t){const n=K0(e,t),r=document.cookie.split(";");for(const o of r){const[i,s]=o.trim().split("=");if(i===n&&s)try{return JSON.parse(decodeURIComponent(s))}catch{return null}}return null}function V0(e){return`${O2}${e}`}function P2(e,t){const n=V0(e),r=new Date;r.setDate(r.getDate()+W0),document.cookie=`${n}=${t?"1":"0"}; expires=${r.toUTCString()}; path=/; SameSite=Lax`}function M2(e){const t=V0(e),n=document.cookie.split(";");for(const r of n){const[o,i]=r.trim().split("=");if(o===t&&i!==void 0)return i==="1"}return null}const I2=typeof document<"u"?T.useLayoutEffect:()=>{},zr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},oo=e=>e&&"window"in e&&e.window===e?e:zr(e).defaultView||window;function L2(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function R2(e){return L2(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let D2=!1;function Xu(){return D2}function Y0(e,t){if(!Xu())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:R2(n)?n=n.host:n=n.parentNode}return!1}const kf=(e=document)=>{var t;if(!Xu())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Q0(e){return Xu()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function F2(e){if(j2())e.focus({preventScroll:!0});else{let t=z2(e);e.focus(),$2(t)}}let ma=null;function j2(){if(ma==null){ma=!1;try{document.createElement("div").focus({get preventScroll(){return ma=!0,!0}})}catch{}}return ma}function z2(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function $2(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ec(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function ed(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function or(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const ks=or(function(){return ed(/^Mac/i)}),U2=or(function(){return ed(/^iPhone/i)}),G0=or(function(){return ed(/^iPad/i)||ks()&&navigator.maxTouchPoints>1}),B2=or(function(){return U2()||G0()});or(function(){return ks()||B2()});const W2=or(function(){return Ec(/AppleWebKit/i)&&!K2()}),K2=or(function(){return Ec(/Chrome/i)}),H2=or(function(){return Ec(/Android/i)}),q2=or(function(){return Ec(/Firefox/i)});function Ts(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}=t;q2()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ks()?i=!0:s=!0);let l=W2()&&ks()&&!G0()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Ts.isOpening=n,F2(e),e.dispatchEvent(l),Ts.isOpening=!1}Ts.isOpening=!1;function Z0(){let e=T.useRef(new Map),t=T.useCallback((o,i,s,a)=>{let c=a!=null&&a.once?(...l)=>{e.current.delete(s),s(...l)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:a}),o.addEventListener(i,c,a)},[]),n=T.useCallback((o,i,s,a)=>{var c;let l=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,l,a),e.current.delete(s)},[]),r=T.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return T.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function V2(e){return e.pointerType===""&&e.isTrusted?!0:H2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function J0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Y2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function X0(e){let t=T.useRef({isFocused:!1,observer:null});return I2(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),T.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let s=J0(i);e==null||e(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let s=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Q2=!1,qs=null,Tf=new Set,ys=new Map,So=!1,Nf=!1;const G2={Tab:!0,Escape:!0};function td(e,t){for(let n of Tf)n(e,t)}function Z2(e){return!(e.metaKey||!ks()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Za(e){So=!0,!Ts.isOpening&&Z2(e)&&(qs="keyboard",td("keyboard",e))}function Vt(e){qs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(So=!0,td("pointer",e))}function ey(e){!Ts.isOpening&&V2(e)&&(So=!0,qs="virtual")}function ty(e){e.target===window||e.target===document||Q2||!e.isTrusted||(!So&&!Nf&&(qs="virtual",td("virtual",e)),So=!1,Nf=!1)}function ny(){So=!1,Nf=!0}function Of(e){if(typeof window>"u"||typeof document>"u"||ys.get(oo(e)))return;const t=oo(e),n=zr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){So=!0,r.apply(this,arguments)},n.addEventListener("keydown",Za,!0),n.addEventListener("keyup",Za,!0),n.addEventListener("click",ey,!0),t.addEventListener("focus",ty,!0),t.addEventListener("blur",ny,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Vt,!0),n.addEventListener("pointermove",Vt,!0),n.addEventListener("pointerup",Vt,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Vt,!0),n.addEventListener("mousemove",Vt,!0),n.addEventListener("mouseup",Vt,!0)),t.addEventListener("beforeunload",()=>{ry(e)},{once:!0}),ys.set(t,{focus:r})}const ry=(e,t)=>{const n=oo(e),r=zr(e);t&&r.removeEventListener("DOMContentLoaded",t),ys.has(n)&&(n.HTMLElement.prototype.focus=ys.get(n).focus,r.removeEventListener("keydown",Za,!0),r.removeEventListener("keyup",Za,!0),r.removeEventListener("click",ey,!0),n.removeEventListener("focus",ty,!0),n.removeEventListener("blur",ny,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Vt,!0),r.removeEventListener("pointermove",Vt,!0),r.removeEventListener("pointerup",Vt,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Vt,!0),r.removeEventListener("mousemove",Vt,!0),r.removeEventListener("mouseup",Vt,!0)),ys.delete(n))};function J2(e){const t=zr(e);let n;return t.readyState!=="loading"?Of(e):(n=()=>{Of(e)},t.addEventListener("DOMContentLoaded",n)),()=>ry(e,n)}typeof document<"u"&&J2();function oy(){return qs!=="pointer"}const X2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eA(e,t,n){let r=zr(n==null?void 0:n.target);const o=typeof window<"u"?oo(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?oo(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?oo(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?oo(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!X2.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!G2[n.key])}function tA(e,t,n){Of(),T.useEffect(()=>{let r=(o,i)=>{eA(!!(n!=null&&n.isTextInput),o,i)&&e(oy())};return Tf.add(r),()=>{Tf.delete(r)}},t)}function nA(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=T.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),s=X0(i),a=T.useCallback(c=>{const l=zr(c.target),f=l?kf(l):kf();c.target===c.currentTarget&&f===Q0(c.nativeEvent)&&(n&&n(c),o&&o(!0),s(c))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function rA(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=T.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Z0(),c=T.useCallback(u=>{u.currentTarget.contains(u.target)&&i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(u),o&&o(!1))},[n,o,i,a]),l=X0(c),f=T.useCallback(u=>{if(!u.currentTarget.contains(u.target))return;const d=zr(u.target),p=kf(d);if(!i.current.isFocusWithin&&p===Q0(u.nativeEvent)){r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,l(u);let h=u.currentTarget;s(d,"focus",g=>{if(i.current.isFocusWithin&&!Y0(h,g.target)){let m=new d.defaultView.FocusEvent("blur",{relatedTarget:g.target});Y2(m,h);let y=J0(m);c(y)}},{capture:!0})}},[r,o,l,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}let Ja=!1,ga=0;function Pf(){Ja=!0,setTimeout(()=>{Ja=!1},50)}function Xp(e){e.pointerType==="touch"&&Pf()}function oA(){if(!(typeof document>"u"))return ga===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Xp):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Pf)),ga++,()=>{ga--,!(ga>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Xp):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Pf))}}function iA(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=T.useState(!1),a=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(oA,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=Z0(),{hoverProps:f,triggerHoverEnd:u}=T.useMemo(()=>{let d=(g,m)=>{if(a.pointerType=m,o||m==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let y=g.currentTarget;a.target=y,c(zr(g.target),"pointerover",v=>{a.isHovered&&a.target&&!Y0(a.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:m}),n&&n(!0),s(!0)},p=(g,m)=>{let y=a.target;a.pointerType="",a.target=null,!(m==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,l(),r&&r({type:"hoverend",target:y,pointerType:m}),n&&n(!1),s(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=g=>{Ja&&g.pointerType==="mouse"||d(g,g.pointerType)},h.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&p(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Ja&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&p(g,"mouse")}),{hoverProps:h,triggerHoverEnd:p}},[t,n,r,o,a,c,l]);return T.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:f,isHovered:i}}function sA(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=T.useRef({isFocused:!1,isFocusVisible:t||oy()}),[i,s]=T.useState(!1),[a,c]=T.useState(()=>o.current.isFocused&&o.current.isFocusVisible),l=T.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=T.useCallback(p=>{o.current.isFocused=p,s(p),l()},[l]);tA(p=>{o.current.isFocusVisible=p,l()},[],{isTextInput:n});let{focusProps:u}=nA({isDisabled:r,onFocusChange:f}),{focusWithinProps:d}=rA({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:a,focusProps:r?d:u}}var aA=Object.defineProperty,cA=(e,t,n)=>t in e?aA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wl=(e,t,n)=>(cA(e,typeof t!="symbol"?t+"":t,n),n);let lA=class{constructor(){wl(this,"current",this.detect()),wl(this,"handoffState","pending"),wl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},fA=new lA,nd=(e,t)=>{fA.isServer?T.useEffect(e,t):T.useLayoutEffect(e,t)};function uA(e){let t=T.useRef(e);return nd(()=>{t.current=e},[e]),t}let Sc=function(e){let t=uA(e);return T.useCallback((...n)=>t.current(...n),[t])};function kc(e){return T.useMemo(()=>e,Object.values(e))}let iy=T.createContext(void 0);function Tc(){return T.useContext(iy)}function dA({value:e,children:t}){return T.createElement(iy.Provider,{value:e},t)}function eh(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function sy(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,sy),r}var pA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(pA||{}),hA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(hA||{});function Vs(){let e=gA();return T.useCallback(t=>mA({mergeRefs:e,...t}),[e])}function mA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??yA;let c=ay(t,e);if(i)return ya(c,n,r,s,a);let l=o??0;if(l&2){let{static:f=!1,...u}=c;if(f)return ya(u,n,r,s,a)}if(l&1){let{unmount:f=!0,...u}=c;return sy(f?0:1,{0(){return null},1(){return ya({...u,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return ya(c,n,r,s,a)}function ya(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...c}=Al(e,["unmount","static"]),l=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let u={};if(t){let d=!1,p=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(d=!0),g===!0&&p.push(h.replace(/([A-Z])/g,m=>`-${m.toLowerCase()}`));if(d){u["data-headlessui-state"]=p.join(" ");for(let h of p)u[`data-${h}`]=""}}if(Ia(i)&&(Object.keys(Xo(c)).length>0||Object.keys(Xo(u)).length>0))if(!T.isValidElement(f)||Array.isArray(f)&&f.length>1||xA(f)){if(Object.keys(Xo(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Xo(c)).concat(Object.keys(Xo(u))).map(d=>` - ${d}`).join(`
|
|
19
|
+
*/var pl,Im;function q1(){if(Im)return pl;Im=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pl=o()?Object.assign:function(i,s){for(var a,c=r(i),l,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var u in a)t.call(a,u)&&(c[u]=a[u]);if(e){l=e(a);for(var d=0;d<l.length;d++)n.call(a,l[d])&&(c[l[d]]=a[l[d]])}}return c},pl}var gl,Lm;function Yu(){if(Lm)return gl;Lm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gl=e,gl}var yl,Rm;function p0(){return Rm||(Rm=1,yl=Function.call.bind(Object.prototype.hasOwnProperty)),yl}var bl,Dm;function V1(){if(Dm)return bl;Dm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yu(),n={},r=p0();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,c,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var u;try{if(typeof i[f]!="function"){var d=Error((c||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[f](s,f,c,a,null,t)}catch(h){u=h}if(u&&!(u instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var m=l?l():"";e("Failed "+a+" type: "+u.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},bl=o,bl}var vl,Fm;function Y1(){if(Fm)return vl;Fm=1;var e=h0(),t=q1(),n=Yu(),r=p0(),o=V1(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return vl=function(a,c){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(L){var F=L&&(l&&L[l]||L[f]);if(typeof F=="function")return F}var d="<<anonymous>>",m={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:x,element:w(),elementType:A(),instanceOf:E,node:P(),objectOf:_,oneOf:S,oneOfType:N,shape:W,exact:j};function h(L,F){return L===F?L!==0||1/L===1/F:L!==L&&F!==F}function g(L,F){this.message=L,this.data=F&&typeof F=="object"?F:{},this.stack=""}g.prototype=Error.prototype;function p(L){if(process.env.NODE_ENV!=="production")var F={},K=0;function U(V,ee,te,he,ye,pe,ze){if(he=he||d,pe=pe||te,ze!==n){if(c){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=he+":"+te;!F[qe]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+he+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[qe]=!0,K++)}}return ee[te]==null?V?ee[te]===null?new g("The "+ye+" `"+pe+"` is marked as required "+("in `"+he+"`, but its value is `null`.")):new g("The "+ye+" `"+pe+"` is marked as required in "+("`"+he+"`, but its value is `undefined`.")):null:L(ee,te,he,ye,pe)}var J=U.bind(null,!1);return J.isRequired=U.bind(null,!0),J}function y(L){function F(K,U,J,V,ee,te){var he=K[U],ye=Q(he);if(ye!==L){var pe=oe(he);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return p(F)}function b(){return p(s)}function x(L){function F(K,U,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var te=K[U];if(!Array.isArray(te)){var he=Q(te);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected an array."))}for(var ye=0;ye<te.length;ye++){var pe=L(te,ye,J,V,ee+"["+ye+"]",n);if(pe instanceof Error)return pe}return null}return p(F)}function w(){function L(F,K,U,J,V){var ee=F[K];if(!a(ee)){var te=Q(ee);return new g("Invalid "+J+" `"+V+"` of type "+("`"+te+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return p(L)}function A(){function L(F,K,U,J,V){var ee=F[K];if(!e.isValidElementType(ee)){var te=Q(ee);return new g("Invalid "+J+" `"+V+"` of type "+("`"+te+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return p(L)}function E(L){function F(K,U,J,V,ee){if(!(K[U]instanceof L)){var te=L.name||d,he=re(K[U]);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected ")+("instance of `"+te+"`."))}return null}return p(F)}function S(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function F(K,U,J,V,ee){for(var te=K[U],he=0;he<L.length;he++)if(h(te,L[he]))return null;var ye=JSON.stringify(L,function(ze,G){var qe=oe(G);return qe==="symbol"?String(G):G});return new g("Invalid "+V+" `"+ee+"` of value `"+String(te)+"` "+("supplied to `"+J+"`, expected one of "+ye+"."))}return p(F)}function _(L){function F(K,U,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var te=K[U],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected an object."));for(var ye in te)if(r(te,ye)){var pe=L(te,ye,J,V,ee+"."+ye,n);if(pe instanceof Error)return pe}return null}return p(F)}function N(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<L.length;F++){var K=L[F];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(K)+" at index "+F+"."),s}function U(J,V,ee,te,he){for(var ye=[],pe=0;pe<L.length;pe++){var ze=L[pe],G=ze(J,V,ee,te,he,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ye.push(G.data.expectedType)}var qe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new g("Invalid "+te+" `"+he+"` supplied to "+("`"+ee+"`"+qe+"."))}return p(U)}function P(){function L(F,K,U,J,V){return z(F[K])?null:new g("Invalid "+J+" `"+V+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return p(L)}function I(L,F,K,U,J){return new g((L||"React class")+": "+F+" type `"+K+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function W(L){function F(K,U,J,V,ee){var te=K[U],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+he+"` "+("supplied to `"+J+"`, expected `object`."));for(var ye in L){var pe=L[ye];if(typeof pe!="function")return I(J,V,ee,ye,oe(pe));var ze=pe(te,ye,J,V,ee+"."+ye,n);if(ze)return ze}return null}return p(F)}function j(L){function F(K,U,J,V,ee){var te=K[U],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+he+"` "+("supplied to `"+J+"`, expected `object`."));var ye=t({},K[U],L);for(var pe in ye){var ze=L[pe];if(r(L,pe)&&typeof ze!="function")return I(J,V,ee,pe,oe(ze));if(!ze)return new g("Invalid "+V+" `"+ee+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(K[U],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var G=ze(te,pe,J,V,ee+"."+pe,n);if(G)return G}return null}return p(F)}function z(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(z);if(L===null||a(L))return!0;var F=u(L);if(F){var K=F.call(L),U;if(F!==L.entries){for(;!(U=K.next()).done;)if(!z(U.value))return!1}else for(;!(U=K.next()).done;){var J=U.value;if(J&&!z(J[1]))return!1}}else return!1;return!0;default:return!1}}function Y(L,F){return L==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function Q(L){var F=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":Y(F,L)?"symbol":F}function oe(L){if(typeof L>"u"||L===null)return""+L;var F=Q(L);if(F==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return F}function M(L){var F=oe(L);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function re(L){return!L.constructor||!L.constructor.name?d:L.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},vl}var xl,jm;function Q1(){if(jm)return xl;jm=1;var e=Yu();function t(){}function n(){}return n.resetWarningCache=t,xl=function(){function r(s,a,c,l,f,u){if(u!==e){var d=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 d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},xl}var zm;function G1(){if(zm)return pa.exports;if(zm=1,process.env.NODE_ENV!=="production"){var e=h0(),t=!0;pa.exports=Y1()(e.isElement,t)}else pa.exports=Q1()();return pa.exports}var Z1=G1();const ge=W1(Z1);var J1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g0(e,t){return e(t={exports:{}},t.exports),t.exports}var X1=g0((function(e){(function(t){var n=function(p,y,b){if(!c(y)||f(y)||u(y)||d(y)||a(y))return y;var x,w=0,A=0;if(l(y))for(x=[],A=y.length;w<A;w++)x.push(n(p,y[w],b));else for(var E in x={},y)Object.prototype.hasOwnProperty.call(y,E)&&(x[p(E,b)]=n(p,y[E],b));return x},r=function(p){return m(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,(function(y,b){return b?b.toUpperCase():""}))).substr(0,1).toLowerCase()+p.substr(1)},o=function(p){var y=r(p);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(p,y){return(function(b,x){var w=(x=x||{}).separator||"_",A=x.split||/(?=[A-Z])/;return b.split(A).join(w)})(p,y).toLowerCase()},s=Object.prototype.toString,a=function(p){return typeof p=="function"},c=function(p){return p===Object(p)},l=function(p){return s.call(p)=="[object Array]"},f=function(p){return s.call(p)=="[object Date]"},u=function(p){return s.call(p)=="[object RegExp]"},d=function(p){return s.call(p)=="[object Boolean]"},m=function(p){return(p-=0)==p},h=function(p,y){var b=y&&"process"in y?y.process:y;return typeof b!="function"?p:function(x,w){return b(x,p,w)}},g={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(p,y){return n(h(r,y),p)},decamelizeKeys:function(p,y){return n(h(i,y),p,y)},pascalizeKeys:function(p,y){return n(h(o,y),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(J1)})).decamelize,ew=function(e){if(Array.isArray(e))return e},tw=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||a.return==null||a.return()}finally{if(o)throw i}}return n}},$m=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},nw=function(e,t){if(e){if(typeof e=="string")return $m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$m(e,t):void 0}},rw=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},ow=function(e,t){return ew(e)||tw(e,t)||nw(e,t)||rw()},y0=g0((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},t.apply(this,arguments)}e.exports=t})),iw=function(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},b0=function(e,t){if(e==null)return{};var n,r,o=iw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},sw=T.createContext(null);function v0(e){var t=e.children,n=t===void 0?"":t,r=b0(e,["children"]);return typeof n!="string"&&(n=B1.renderToString(n)),T.createElement("template",y0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function x0(e){var t=e.root,n=e.children;return Wt.createPortal(n===void 0?null:n,t)}function aw(e){var t=T.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,c=n.delegatesFocus,l=c!==void 0&&c,f=n.styleSheets,u=f===void 0?[]:f,d=n.ssr,m=d!==void 0&&d,h=n.children,g=b0(n,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(i=T.useRef((o=r)&&o.current),T.useEffect((function(){o&&(o.current=i.current)}),[o]),i),y=T.useState(null),b=ow(y,2),x=b[0],w=b[1],A="node_".concat(a).concat(l);return T.useLayoutEffect((function(){if(p.current)try{if(typeof r=="function"&&r(p.current),m){var E=p.current.shadowRoot;return void w(E)}var S=p.current.attachShadow({mode:a,delegatesFocus:l});u.length>0&&(S.adoptedStyleSheets=u),w(S)}catch(_){(function(N){var P=N.error,I=N.styleSheets,W=N.root;switch(P.name){case"NotSupportedError":I.length>0&&(W.adoptedStyleSheets=I);break;default:throw P}})({error:_,styleSheets:u,root:x})}}),[r,p,u]),T.createElement(T.Fragment,null,T.createElement(e.tag,y0({key:A,ref:p},g),(x||m)&&T.createElement(sw.Provider,{value:x},m?T.createElement(v0,{shadowroot:a,shadowrootmode:a},e.render({root:x,ssr:m,children:h})):T.createElement(x0,{root:x},e.render({root:x,ssr:m,children:h})))))}));return t.propTypes={mode:ge.oneOf(["open","closed"]),delegatesFocus:ge.bool,styleSheets:ge.arrayOf(ge.instanceOf(globalThis.CSSStyleSheet)),ssr:ge.bool,children:ge.node},t}v0.propTypes={children:ge.oneOfType([ge.string,ge.node])},x0.propTypes={root:ge.object.isRequired,children:ge.node};var wl=new Map;function cw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,o){var i=X1(o,{separator:"-"}),s="".concat(t,"-").concat(i);return wl.has(s)||wl.set(s,aw({tag:i,render:n})),wl.get(s)}})}var Uo=cw();const Qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var Wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},bn,ao,n0,fw=(n0=class{constructor(){ue(this,bn,lw);ue(this,ao,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&k(this,ao)&&e!==k(this,bn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:k(this,bn),provider:e}),ne(this,bn,e),process.env.NODE_ENV!=="production"&&ne(this,ao,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,ao,!0),k(this,bn).setTimeout(e,t)}clearTimeout(e){k(this,bn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&ne(this,ao,!0),k(this,bn).setInterval(e,t)}clearInterval(e){k(this,bn).clearInterval(e)}},bn=new WeakMap,ao=new WeakMap,n0),ro=new fw;function uw(e){setTimeout(e,0)}var _o=typeof window>"u"||"Deno"in globalThis;function kt(){}function dw(e,t){return typeof e=="function"?e(t):e}function hf(e){return typeof e=="number"&&e>=0&&e!==1/0}function w0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pr(e,t){return typeof e=="function"?e(t):e}function Vt(e,t){return typeof e=="function"?e(t):e}function Bm(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Gu(s,t.options))return!1}else if(!ks(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Um(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Eo(t.options.mutationKey)!==Eo(i))return!1}else if(!ks(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Gu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Eo)(e)}function Eo(e){return JSON.stringify(e,(t,n)=>gf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ks(e[n],t[n])):!1}var mw=Object.prototype.hasOwnProperty;function pf(e,t){if(e===t)return e;const n=Wm(e)&&Wm(t);if(!n&&!(gf(e)&&gf(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const f=n?l:i[l],u=e[f],d=t[f];if(u===d){a[f]=u,(n?l<o:mw.call(e,f))&&c++;continue}if(u===null||d===null||typeof u!="object"||typeof d!="object"){a[f]=d;continue}const m=pf(u,d);a[f]=m,m===u&&c++}return o===s&&c===o?e:a}function Ja(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Wm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gf(e){if(!Km(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Km(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Km(e){return Object.prototype.toString.call(e)==="[object Object]"}function hw(e){return new Promise(t=>{ro.setTimeout(t,e)})}function yf(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return pf(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return pf(e,t)}return t}function pw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function gw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xa=Symbol();function A0(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Xa&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Zu(e,t){return typeof e=="function"?e(...t):!!e}function yw(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var co,xr,Ai,r0,bw=(r0=class extends Wi{constructor(){super();ue(this,co);ue(this,xr);ue(this,Ai);ne(this,Ai,t=>{if(!_o&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,xr)||this.setEventListener(k(this,Ai))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,xr))==null||t.call(this),ne(this,xr,void 0))}setEventListener(t){var n;ne(this,Ai,t),(n=k(this,xr))==null||n.call(this),ne(this,xr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,co)!==t&&(ne(this,co,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,co)=="boolean"?k(this,co):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},co=new WeakMap,xr=new WeakMap,Ai=new WeakMap,r0),Ju=new bw;function bf(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var vw=uw;function xw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=vw;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=xw(),Ci,wr,_i,o0,ww=(o0=class extends Wi{constructor(){super();ue(this,Ci,!0);ue(this,wr);ue(this,_i);ne(this,_i,t=>{if(!_o&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,wr)||this.setEventListener(k(this,_i))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,wr))==null||t.call(this),ne(this,wr,void 0))}setEventListener(t){var n;ne(this,_i,t),(n=k(this,wr))==null||n.call(this),ne(this,wr,t(this.setOnline.bind(this)))}setOnline(t){k(this,Ci)!==t&&(ne(this,Ci,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Ci)}},Ci=new WeakMap,wr=new WeakMap,_i=new WeakMap,o0),ec=new ww;function Aw(e){return Math.min(1e3*2**e,3e4)}function C0(e){return(e??"online")==="online"?ec.isOnline():!0}var vf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function _0(e){let t=!1,n=0,r;const o=bf(),i=()=>o.status!=="pending",s=g=>{var p;if(!i()){const y=new vf(g);d(y),(p=e.onCancel)==null||p.call(e,y)}},a=()=>{t=!0},c=()=>{t=!1},l=()=>Ju.isFocused()&&(e.networkMode==="always"||ec.isOnline())&&e.canRun(),f=()=>C0(e.networkMode)&&e.canRun(),u=g=>{i()||(r==null||r(),o.resolve(g))},d=g=>{i()||(r==null||r(),o.reject(g))},m=()=>new Promise(g=>{var p;r=y=>{(i()||l())&&g(y)},(p=e.onPause)==null||p.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),h=()=>{if(i())return;let g;const p=n===0?e.initialPromise:void 0;try{g=p??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(u).catch(y=>{var E;if(i())return;const b=e.retry??(_o?0:3),x=e.retryDelay??Aw,w=typeof x=="function"?x(n,y):x,A=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!A){d(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),hw(w).then(()=>l()?void 0:m()).then(()=>{t?d(y):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?h():m().then(h),o)}}var lo,i0,E0=(i0=class{constructor(){ue(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hf(this.gcTime)&&ne(this,lo,ro.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_o?1/0:300*1e3))}clearGcTimeout(){k(this,lo)&&(ro.clearTimeout(k(this,lo)),ne(this,lo,void 0))}},lo=new WeakMap,i0),fo,Ei,qt,uo,tt,Ws,mo,on,Un,s0,Cw=(s0=class extends E0{constructor(t){super();ue(this,on);ue(this,fo);ue(this,Ei);ue(this,qt);ue(this,uo);ue(this,tt);ue(this,Ws);ue(this,mo);ne(this,mo,!1),ne(this,Ws,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,uo,t.client),ne(this,qt,k(this,uo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,fo,qm(this.options)),this.state=t.state??k(this,fo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,tt))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,Ws),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=qm(this.options);n.data!==void 0&&(this.setState(Hm(n.data,n.dataUpdatedAt)),ne(this,fo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,qt).remove(this)}setData(t,n){const r=yf(this.state.data,t,this.options);return be(this,on,Un).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){be(this,on,Un).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,tt))==null?void 0:r.promise;return(o=k(this,tt))==null||o.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,fo))}isActive(){return this.observers.some(t=>Vt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Pr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!w0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,tt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,tt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,qt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,tt)&&(k(this,mo)?k(this,tt).cancel({revert:!0}):k(this,tt).cancelRetry()),this.scheduleGc()),k(this,qt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,on,Un).call(this,{type:"invalidate"})}async fetch(t,n){var c,l,f,u,d,m,h,g,p,y,b,x;if(this.state.fetchStatus!=="idle"&&((c=k(this,tt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,tt))return k(this,tt).continueRetry(),k(this,tt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(A=>A.options.queryFn);w&&this.setOptions(w.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(ne(this,mo,!0),r.signal)})},i=()=>{const w=A0(this.options,n),E=(()=>{const S={client:k(this,uo),queryKey:this.queryKey,meta:this.meta};return o(S),S})();return ne(this,mo,!1),this.options.persister?this.options.persister(w,E,this):w(E)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,uo),state:this.state,fetchFn:i};return o(w),w})();(l=this.options.behavior)==null||l.onFetch(a,this),ne(this,Ei,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&be(this,on,Un).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta}),ne(this,tt,_0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:w=>{w instanceof vf&&w.revert&&this.setState({...k(this,Ei),fetchStatus:"idle"}),r.abort()},onFail:(w,A)=>{be(this,on,Un).call(this,{type:"failed",failureCount:w,error:A})},onPause:()=>{be(this,on,Un).call(this,{type:"pause"})},onContinue:()=>{be(this,on,Un).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await k(this,tt).start();if(w===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(w),(m=(d=k(this,qt).config).onSuccess)==null||m.call(d,w,this),(g=(h=k(this,qt).config).onSettled)==null||g.call(h,w,this.state.error,this),w}catch(w){if(w instanceof vf){if(w.silent)return k(this,tt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw be(this,on,Un).call(this,{type:"error",error:w}),(y=(p=k(this,qt).config).onError)==null||y.call(p,w,this),(x=(b=k(this,qt).config).onSettled)==null||x.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},fo=new WeakMap,Ei=new WeakMap,qt=new WeakMap,uo=new WeakMap,tt=new WeakMap,Ws=new WeakMap,mo=new WeakMap,on=new WeakSet,Un=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...S0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Hm(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Ei,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,qt).notify({query:this,type:"updated",action:t})})},s0);function S0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:C0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function qm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Lt,Ee,Ks,Et,ho,Si,Vn,Ar,Hs,ki,Ti,po,go,Cr,Ni,Me,ps,xf,wf,Af,Cf,_f,Ef,Sf,k0,a0,_w=(a0=class extends Wi{constructor(t,n){super();ue(this,Me);ue(this,Lt);ue(this,Ee);ue(this,Ks);ue(this,Et);ue(this,ho);ue(this,Si);ue(this,Vn);ue(this,Ar);ue(this,Hs);ue(this,ki);ue(this,Ti);ue(this,po);ue(this,go);ue(this,Cr);ue(this,Ni,new Set);this.options=n,ne(this,Lt,t),ne(this,Ar,null),ne(this,Vn,bf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Ee).addObserver(this),Vm(k(this,Ee),this.options)?be(this,Me,ps).call(this):this.updateResult(),be(this,Me,Cf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kf(k(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kf(k(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,Me,_f).call(this),be(this,Me,Ef).call(this),k(this,Ee).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,Ee);if(this.options=k(this,Lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,k(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");be(this,Me,Sf).call(this),k(this,Ee).setOptions(this.options),n._defaulted&&!Ja(this.options,n)&&k(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Ee),observer:this});const o=this.hasListeners();o&&Ym(k(this,Ee),r,this.options,n)&&be(this,Me,ps).call(this),this.updateResult(),o&&(k(this,Ee)!==r||Vt(this.options.enabled,k(this,Ee))!==Vt(n.enabled,k(this,Ee))||Pr(this.options.staleTime,k(this,Ee))!==Pr(n.staleTime,k(this,Ee)))&&be(this,Me,xf).call(this);const i=be(this,Me,wf).call(this);o&&(k(this,Ee)!==r||Vt(this.options.enabled,k(this,Ee))!==Vt(n.enabled,k(this,Ee))||i!==k(this,Cr))&&be(this,Me,Af).call(this,i)}getOptimisticResult(t){const n=k(this,Lt).getQueryCache().build(k(this,Lt),t),r=this.createResult(n,t);return Sw(this,r)&&(ne(this,Et,r),ne(this,Si,this.options),ne(this,ho,k(this,Ee).state)),r}getCurrentResult(){return k(this,Et)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,Vn).status==="pending"&&k(this,Vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){k(this,Ni).add(t)}getCurrentQuery(){return k(this,Ee)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Lt).defaultQueryOptions(t),r=k(this,Lt).getQueryCache().build(k(this,Lt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return be(this,Me,ps).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Et)))}createResult(t,n){var N;const r=k(this,Ee),o=this.options,i=k(this,Et),s=k(this,ho),a=k(this,Si),l=t!==r?t.state:k(this,Ks),{state:f}=t;let u={...f},d=!1,m;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&Vm(t,n),W=P&&Ym(t,r,n,o);(I||W)&&(u={...u,...S0(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:p}=u;m=u.data;let y=!1;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let P;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(P=i.data,y=!0):P=typeof n.placeholderData=="function"?n.placeholderData((N=k(this,Ti))==null?void 0:N.state.data,k(this,Ti)):n.placeholderData,P!==void 0&&(p="success",m=yf(i==null?void 0:i.data,P,n),d=!0)}if(n.select&&m!==void 0&&!y)if(i&&m===(s==null?void 0:s.data)&&n.select===k(this,Hs))m=k(this,ki);else try{ne(this,Hs,n.select),m=n.select(m),m=yf(i==null?void 0:i.data,m,n),ne(this,ki,m),ne(this,Ar,null)}catch(P){ne(this,Ar,P)}k(this,Ar)&&(h=k(this,Ar),m=k(this,ki),g=Date.now(),p="error");const b=u.fetchStatus==="fetching",x=p==="pending",w=p==="error",A=x&&b,E=m!==void 0,_={status:p,fetchStatus:u.fetchStatus,isPending:x,isSuccess:p==="success",isError:w,isInitialLoading:A,isLoading:A,data:m,dataUpdatedAt:u.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&E,isStale:Xu(t,n),refetch:this.refetch,promise:k(this,Vn),isEnabled:Vt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=j=>{_.status==="error"?j.reject(_.error):_.data!==void 0&&j.resolve(_.data)},I=()=>{const j=ne(this,Vn,_.promise=bf());P(j)},W=k(this,Vn);switch(W.status){case"pending":t.queryHash===r.queryHash&&P(W);break;case"fulfilled":(_.status==="error"||_.data!==W.value)&&I();break;case"rejected":(_.status!=="error"||_.error!==W.reason)&&I();break}}return _}updateResult(){const t=k(this,Et),n=this.createResult(k(this,Ee),this.options);if(ne(this,ho,k(this,Ee).state),ne(this,Si,this.options),k(this,ho).data!==void 0&&ne(this,Ti,k(this,Ee)),Ja(n,t))return;ne(this,Et,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!k(this,Ni).size)return!0;const s=new Set(i??k(this,Ni));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Et)).some(a=>{const c=a;return k(this,Et)[c]!==t[c]&&s.has(c)})};be(this,Me,k0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,Me,Cf).call(this)}},Lt=new WeakMap,Ee=new WeakMap,Ks=new WeakMap,Et=new WeakMap,ho=new WeakMap,Si=new WeakMap,Vn=new WeakMap,Ar=new WeakMap,Hs=new WeakMap,ki=new WeakMap,Ti=new WeakMap,po=new WeakMap,go=new WeakMap,Cr=new WeakMap,Ni=new WeakMap,Me=new WeakSet,ps=function(t){be(this,Me,Sf).call(this);let n=k(this,Ee).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},xf=function(){be(this,Me,_f).call(this);const t=Pr(this.options.staleTime,k(this,Ee));if(_o||k(this,Et).isStale||!hf(t))return;const r=w0(k(this,Et).dataUpdatedAt,t)+1;ne(this,po,ro.setTimeout(()=>{k(this,Et).isStale||this.updateResult()},r))},wf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Ee)):this.options.refetchInterval)??!1},Af=function(t){be(this,Me,Ef).call(this),ne(this,Cr,t),!(_o||Vt(this.options.enabled,k(this,Ee))===!1||!hf(k(this,Cr))||k(this,Cr)===0)&&ne(this,go,ro.setInterval(()=>{(this.options.refetchIntervalInBackground||Ju.isFocused())&&be(this,Me,ps).call(this)},k(this,Cr)))},Cf=function(){be(this,Me,xf).call(this),be(this,Me,Af).call(this,be(this,Me,wf).call(this))},_f=function(){k(this,po)&&(ro.clearTimeout(k(this,po)),ne(this,po,void 0))},Ef=function(){k(this,go)&&(ro.clearInterval(k(this,go)),ne(this,go,void 0))},Sf=function(){const t=k(this,Lt).getQueryCache().build(k(this,Lt),this.options);if(t===k(this,Ee))return;const n=k(this,Ee);ne(this,Ee,t),ne(this,Ks,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},k0=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Et))}),k(this,Lt).getQueryCache().notify({query:k(this,Ee),type:"observerResultsUpdated"})})},a0);function Ew(e,t){return Vt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vm(e,t){return Ew(e,t)||e.state.data!==void 0&&kf(e,t,t.refetchOnMount)}function kf(e,t,n){if(Vt(t.enabled,e)!==!1&&Pr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xu(e,t)}return!1}function Ym(e,t,n,r){return(e!==t||Vt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xu(e,n)}function Xu(e,t){return Vt(t.enabled,e)!==!1&&e.isStaleByTime(Pr(t.staleTime,e))}function Sw(e,t){return!Ja(e.getCurrentResult(),t)}function Qm(e){return{onFetch:(t,n)=>{var f,u,d,m,h;const r=t.options,o=(d=(u=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:u.fetchMore)==null?void 0:d.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],s=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const p=x=>{yw(x,()=>t.signal,()=>g=!0)},y=A0(t.options,t.fetchOptions),b=async(x,w,A)=>{if(g)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const S=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:w,direction:A?"backward":"forward",meta:t.options.meta};return p(I),I})(),_=await y(S),{maxPages:N}=t.options,P=A?gw:pw;return{pages:P(x.pages,_,N),pageParams:P(x.pageParams,w,N)}};if(o&&i.length){const x=o==="backward",w=x?kw:Gm,A={pages:i,pageParams:s},E=w(r,A);a=await b(A,E,x)}else{const x=e??i.length;do{const w=c===0?s[0]??r.initialPageParam:Gm(r,a);if(c>0&&w==null)break;a=await b(a,w),c++}while(c<x)}return a};t.options.persister?t.fetchFn=()=>{var g,p;return(p=(g=t.options).persister)==null?void 0:p.call(g,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Gm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kw(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var qs,vn,St,yo,xn,yr,c0,Tw=(c0=class extends E0{constructor(t){super();ue(this,xn);ue(this,qs);ue(this,vn);ue(this,St);ue(this,yo);ne(this,qs,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,vn,[]),this.state=t.state||T0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,vn).includes(t)||(k(this,vn).push(t),this.clearGcTimeout(),k(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,vn,k(this,vn).filter(n=>n!==t)),this.scheduleGc(),k(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,vn).length||(this.state.status==="pending"?this.scheduleGc():k(this,St).remove(this))}continue(){var t;return((t=k(this,yo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,c,l,f,u,d,m,h,g,p,y,b,x,w,A,E,S,_,N;const n=()=>{be(this,xn,yr).call(this,{type:"continue"})},r={client:k(this,qs),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,yo,_0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{be(this,xn,yr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{be(this,xn,yr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,St).canRun(this)}));const o=this.state.status==="pending",i=!k(this,yo).canStart();try{if(o)n();else{be(this,xn,yr).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=k(this,St).config).onMutate)==null?void 0:a.call(s,t,this,r));const I=await((l=(c=this.options).onMutate)==null?void 0:l.call(c,t,r));I!==this.state.context&&be(this,xn,yr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await k(this,yo).start();return await((u=(f=k(this,St).config).onSuccess)==null?void 0:u.call(f,P,t,this.state.context,this,r)),await((m=(d=this.options).onSuccess)==null?void 0:m.call(d,P,t,this.state.context,r)),await((g=(h=k(this,St).config).onSettled)==null?void 0:g.call(h,P,null,this.state.variables,this.state.context,this,r)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,P,null,t,this.state.context,r)),be(this,xn,yr).call(this,{type:"success",data:P}),P}catch(P){try{await((x=(b=k(this,St).config).onError)==null?void 0:x.call(b,P,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((A=(w=this.options).onError)==null?void 0:A.call(w,P,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((S=(E=k(this,St).config).onSettled)==null?void 0:S.call(E,void 0,P,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((N=(_=this.options).onSettled)==null?void 0:N.call(_,void 0,P,t,this.state.context,r))}catch(I){Promise.reject(I)}throw be(this,xn,yr).call(this,{type:"error",error:P}),P}finally{k(this,St).runNext(this)}}},qs=new WeakMap,vn=new WeakMap,St=new WeakMap,yo=new WeakMap,xn=new WeakSet,yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ze.batch(()=>{k(this,vn).forEach(r=>{r.onMutationUpdate(t)}),k(this,St).notify({mutation:this,type:"updated",action:t})})},c0);function T0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yn,sn,Vs,l0,Nw=(l0=class extends Wi{constructor(t={}){super();ue(this,Yn);ue(this,sn);ue(this,Vs);this.config=t,ne(this,Yn,new Set),ne(this,sn,new Map),ne(this,Vs,0)}build(t,n,r){const o=new Tw({client:t,mutationCache:this,mutationId:++ha(this,Vs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Yn).add(t);const n=ya(t);if(typeof n=="string"){const r=k(this,sn).get(n);r?r.push(t):k(this,sn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Yn).delete(t)){const n=ya(t);if(typeof n=="string"){const r=k(this,sn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&k(this,sn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ya(t);if(typeof n=="string"){const r=k(this,sn).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ya(t);if(typeof n=="string"){const o=(r=k(this,sn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{k(this,Yn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Yn).clear(),k(this,sn).clear()})}getAll(){return Array.from(k(this,Yn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Um(n,r))}findAll(t={}){return this.getAll().filter(n=>Um(t,n))}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},Yn=new WeakMap,sn=new WeakMap,Vs=new WeakMap,l0);function ya(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Qn,_r,Rt,Gn,er,Fa,Tf,f0,Ow=(f0=class extends Wi{constructor(n,r){super();ue(this,er);ue(this,Qn);ue(this,_r);ue(this,Rt);ue(this,Gn);ne(this,Qn,n),this.setOptions(r),this.bindMethods(),be(this,er,Fa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=k(this,Qn).defaultMutationOptions(n),Ja(this.options,r)||k(this,Qn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Eo(r.mutationKey)!==Eo(this.options.mutationKey)?this.reset():((o=k(this,Rt))==null?void 0:o.state.status)==="pending"&&k(this,Rt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,Rt))==null||n.removeObserver(this)}onMutationUpdate(n){be(this,er,Fa).call(this),be(this,er,Tf).call(this,n)}getCurrentResult(){return k(this,_r)}reset(){var n;(n=k(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),be(this,er,Fa).call(this),be(this,er,Tf).call(this)}mutate(n,r){var o;return ne(this,Gn,r),(o=k(this,Rt))==null||o.removeObserver(this),ne(this,Rt,k(this,Qn).getMutationCache().build(k(this,Qn),this.options)),k(this,Rt).addObserver(this),k(this,Rt).execute(n)}},Qn=new WeakMap,_r=new WeakMap,Rt=new WeakMap,Gn=new WeakMap,er=new WeakSet,Fa=function(){var r;const n=((r=k(this,Rt))==null?void 0:r.state)??T0();ne(this,_r,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Tf=function(n){Ze.batch(()=>{var r,o,i,s,a,c,l,f;if(k(this,Gn)&&this.hasListeners()){const u=k(this,_r).variables,d=k(this,_r).context,m={client:k(this,Qn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=k(this,Gn)).onSuccess)==null||o.call(r,n.data,u,d,m)}catch(h){Promise.reject(h)}try{(s=(i=k(this,Gn)).onSettled)==null||s.call(i,n.data,null,u,d,m)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(c=(a=k(this,Gn)).onError)==null||c.call(a,n.error,u,d,m)}catch(h){Promise.reject(h)}try{(f=(l=k(this,Gn)).onSettled)==null||f.call(l,void 0,n.error,u,d,m)}catch(h){Promise.reject(h)}}}this.listeners.forEach(u=>{u(k(this,_r))})})},f0),wn,u0,Pw=(u0=class extends Wi{constructor(t={}){super();ue(this,wn);this.config=t,ne(this,wn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Gu(o,n);let s=this.get(i);return s||(s=new Cw({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){k(this,wn).has(t.queryHash)||(k(this,wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,wn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,wn).get(t)}getAll(){return[...k(this,wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Bm(t,r)):n}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wn=new WeakMap,u0),Ke,Er,Sr,Oi,Pi,kr,Mi,Ii,d0,N0=(d0=class{constructor(e={}){ue(this,Ke);ue(this,Er);ue(this,Sr);ue(this,Oi);ue(this,Pi);ue(this,kr);ue(this,Mi);ue(this,Ii);ne(this,Ke,e.queryCache||new Pw),ne(this,Er,e.mutationCache||new Nw),ne(this,Sr,e.defaultOptions||{}),ne(this,Oi,new Map),ne(this,Pi,new Map),ne(this,kr,0)}mount(){ha(this,kr)._++,k(this,kr)===1&&(ne(this,Mi,Ju.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ne(this,Ii,ec.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var e,t;ha(this,kr)._--,k(this,kr)===0&&((e=k(this,Mi))==null||e.call(this),ne(this,Mi,void 0),(t=k(this,Ii))==null||t.call(this),ne(this,Ii,void 0))}isFetching(e){return k(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Er).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,Ke).get(r.queryHash),i=o==null?void 0:o.state.data,s=dw(t,i);if(s!==void 0)return k(this,Ke).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=>k(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Ke);Ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Ke);return Ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ze.batch(()=>k(this,Ke).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Ze.batch(()=>(k(this,Ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ze.batch(()=>k(this,Ke).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(kt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Ke).build(this,t);return n.isStaleByTime(Pr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=Qm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Qm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ec.isOnline()?k(this,Er).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,Er)}getDefaultOptions(){return k(this,Sr)}setDefaultOptions(e){ne(this,Sr,e)}setQueryDefaults(e,t){k(this,Oi).set(Eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Oi).values()],n={};return t.forEach(r=>{ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Pi).set(Eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Pi).values()],n={};return t.forEach(r=>{ks(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Sr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gu(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Sr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,Er).clear()}},Ke=new WeakMap,Er=new WeakMap,Sr=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,kr=new WeakMap,Mi=new WeakMap,Ii=new WeakMap,d0),O0=C.createContext(void 0),P0=e=>{const t=C.useContext(O0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mw=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(O0.Provider,{value:e,children:t})),M0=C.createContext(!1),Iw=()=>C.useContext(M0);M0.Provider;function Lw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rw=C.createContext(Lw()),Dw=()=>C.useContext(Rw),Fw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Zu(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},jw=e=>{C.useEffect(()=>{e.clearReset()},[e])},zw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Zu(n,[e.error,r])),$w=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Bw=(e,t)=>e.isLoading&&e.isFetching&&!t,Uw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Zm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ww(e,t,n){var d,m,h,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Iw(),o=Dw(),i=P0(n),s=i.defaultQueryOptions(e);(m=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||m.call(d,s);const a=i.getQueryCache().get(s.queryHash);process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=r?"isRestoring":"optimistic",$w(s),Fw(s,o,a),jw(o);const c=!i.getQueryCache().get(s.queryHash),[l]=C.useState(()=>new t(i,s)),f=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(p=>{const y=u?l.subscribe(Ze.batchCalls(p)):kt;return l.updateResult(),y},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setOptions(s)},[s,l]),Uw(s,f))throw Zm(s,l,o);if(zw({result:f,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw f.error;if((g=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,s,f),s.experimental_prefetchInRender&&!_o&&Bw(f,r)){const p=c?Zm(s,l,o):a==null?void 0:a.promise;p==null||p.catch(kt).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?f:l.trackResult(f)}function Ys(e,t){return Ww(e,_w,t)}function ed(e,t){const n=P0(t),[r]=C.useState(()=>new Ow(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(Ze.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=C.useCallback((s,a)=>{r.mutate(s,a).catch(kt)},[r]);if(o.error&&Zu(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const td=T.createContext({queryClient:new N0});td.Provider;const ir=()=>{const e=T.useContext(td);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},I0=({children:e})=>{const[t]=T.useState(new N0);return v.jsx(td.Provider,{value:{queryClient:t},children:v.jsx(Mw,{client:t,children:e})})},L0=T.createContext({isEmbedded:!1}),Kw=L0.Provider,nd=()=>T.useContext(L0),Ue={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},R0="https://marketplace.confidence.com/api",Ln=R0+"/confidence",Jm=R0+"/dropbox/prod",Hw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Ln}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},qw=()=>{const{queryClient:e}=ir(),t=ed({mutationFn:async r=>Hw(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},Vw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Ln}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Yw=()=>{const{queryClient:e}=ir(),t=ed({mutationFn:async r=>await Vw(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},D0=(e,t)=>{const{queryClient:n}=ir(),r=Ys({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var c;return((c=r.data)==null?void 0:c[a.toString()])??!1},i=(a,c)=>{var l;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:c!==void 0?c:!o(a)})),(l=t==null?void 0:t.onTaskExpanded)==null||l.call(t,a,o(a))},s=T.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},Qw=(e,t)=>{const{queryClient:n}=ir(),{completeTask:r}=qw(),{startTask:o}=Yw(),{toggleTaskExpanded:i}=D0(e);return{completeTask:async(c,l)=>{const{status:f}=await r(c.toString());f&&(i(c,!1),n.setQueryData(["playbook",+e],u=>{if(!u)return u;const d=u.tasks.map(m=>m.sequenceOrder===l+1&&t.quickComplete?{...m,workflowStatus:Ue.IN_PROGRESS}:m.taskInstanceId===c?{...m,workflowStatus:f}:m);return{...u,tasks:d}}))},startTask:async c=>{const{status:l}=await o(c.toString());l&&(i(c,!0),n.setQueryData(["playbook",+e],f=>{if(!f)return f;const u=f.tasks.map(d=>d.taskInstanceId===c?{...d,workflowStatus:l}:d);return{...f,tasks:u}}))}}},Gw=e=>{var o;const{queryClient:t}=ir(),n=Ys({queryFn:async()=>{const i=new Headers,s=await fetch(`${Ln}/playbook-details`,{method:"POST",cache:"no-store",headers:i,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const a=await s.json();if(a.error)throw new Error(a.error);return a},queryKey:["playbook",+e]},t),r=Qw(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},di={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},Zw={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},Jw=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:T.useMemo(()=>t===Ue.OPEN&&n?[di.START]:t===Ue.IN_PROGRESS?[di.PAUSE,di.COMPLETE]:t===Ue.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},F0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Ln}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},kc='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{:root,:host{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Pro";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Pro";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-regular:normal 400 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-light:normal 300 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-thin:normal 100 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands";--fa-font-sharp-solid:normal 900 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-light:normal 300 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-thin:normal 100 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-duotone-solid:normal 900 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-regular:normal 400 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-light:normal 300 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-thin:normal 100 1em/1 "Font Awesome 6 Sharp Duotone"}svg.svg-inline--fa:not(:root),svg.svg-inline--fa:not(:host){box-sizing:content-box;overflow:visible}.svg-inline--fa{display:var(--fa-display,inline-block);vertical-align:-.125em;height:1em;overflow:visible}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.07143em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fa-layers-counter,.fa-layers-text{text-align:center;display:inline-block;position:absolute}.fa-layers{text-align:center;vertical-align:-.125em;width:1em;height:1em;display:inline-block;position:relative}.fa-layers svg.svg-inline--fa{transform-origin:50%}.fa-layers-text{transform-origin:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);transform:scale(var(--fa-counter-scale,.25));transform-origin:100% 0;overflow:hidden}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 100%;top:auto}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 100%;top:auto;right:auto}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 0}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 0}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{vertical-align:.225em;font-size:.625em;line-height:.1em}.fa-xs{vertical-align:.125em;font-size:.75em;line-height:.08333em}.fa-sm{vertical-align:.05357em;font-size:.875em;line-height:.07143em}.fa-lg{vertical-align:-.075em;font-size:1.25em;line-height:.05em}.fa-xl{vertical-align:-.125em;font-size:1.5em;line-height:.04167em}.fa-2xl{vertical-align:-.1875em;font-size:2em;line-height:.03125em}.fa-fw{text-align:center;width:1.25em}.fa-ul{margin-left:var(--fa-li-margin,2.5em);padding-left:0;list-style-type:none}.fa-ul>li{position:relative}.fa-li{left:calc(-1*var(--fa-li-width,2em));text-align:center;width:var(--fa-li-width,2em);line-height:inherit;position:absolute}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media(prefers-reduced-motion:reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-iteration-count:1;animation-delay:-1ms}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1)translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9))translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1))translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95))translateY(0)}57%{transform:scale(1)translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1)translateY(0)}to{transform:scale(1)translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0)}}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{vertical-align:middle;width:2.5em;height:2em;display:inline-block;position:relative}.fa-stack-1x,.fa-stack-2x{z-index:var(--fa-stack-z-index,auto);margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.svg-inline--fa.fa-stack-1x{width:1.25em;height:1em}.svg-inline--fa.fa-stack-2x{width:2.5em;height:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.sr-only,.fa-sr-only,.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}@layer theme{:root,:host{--cnf-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--cnf-color-red-500:oklch(63.7% .237 25.331);--cnf-color-blue-500:oklch(62.3% .214 259.815);--cnf-color-blue-600:oklch(54.6% .245 262.881);--cnf-spacing:.25rem;--cnf-container-md:28rem;--cnf-container-lg:32rem;--cnf-text-xs:.75rem;--cnf-text-xs--line-height:calc(1/.75);--cnf-text-sm:.875rem;--cnf-text-sm--line-height:calc(1.25/.875);--cnf-text-base:1rem;--cnf-text-base--line-height: 1.5 ;--cnf-text-lg:1.125rem;--cnf-text-lg--line-height:calc(1.75/1.125);--cnf-text-xl:1.25rem;--cnf-text-xl--line-height:calc(1.75/1.25);--cnf-text-2xl:1.5rem;--cnf-text-2xl--line-height:calc(2/1.5);--cnf-font-weight-normal:400;--cnf-font-weight-medium:500;--cnf-font-weight-semibold:600;--cnf-font-weight-bold:700;--cnf-radius-sm:.25rem;--cnf-radius-md:.375rem;--cnf-radius-lg:.5rem;--cnf-ease-out:cubic-bezier(0,0,.2,1);--cnf-ease-in-out:cubic-bezier(.4,0,.2,1);--cnf-animate-spin:spin 1s linear infinite;--cnf-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--cnf-default-transition-duration:.15s;--cnf-default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer utilities{.cnf\\:pointer-events-none{pointer-events:none!important}.cnf\\:absolute{position:absolute!important}.cnf\\:fixed{position:fixed!important}.cnf\\:relative{position:relative!important}.cnf\\:sticky{position:sticky!important}.cnf\\:inset-0{inset:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0{top:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0\\.5{top:calc(var(--cnf-spacing)*.5)!important}.cnf\\:top-1{top:calc(var(--cnf-spacing)*1)!important}.cnf\\:top-3{top:calc(var(--cnf-spacing)*3)!important}.cnf\\:-right-0,.cnf\\:right-0{right:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-0{bottom:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-2{bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:left-0{left:calc(var(--cnf-spacing)*0)!important}.cnf\\:left-1{left:calc(var(--cnf-spacing)*1)!important}.cnf\\:left-1\\/2{left:50%!important}.cnf\\:left-4{left:calc(var(--cnf-spacing)*4)!important}.cnf\\:z-2{z-index:2!important}.cnf\\:z-10{z-index:10!important}.cnf\\:z-50{z-index:50!important}.cnf\\:z-\\[9999999997\\],.cnf\\:z-\\[9999999998\\],.cnf\\:z-\\[9999999999\\]{z-index:2147483647!important}.cnf\\:m-0{margin:calc(var(--cnf-spacing)*0)!important}.cnf\\:mx-1{margin-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:mx-2{margin-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:mx-4{margin-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:mx-auto{margin-inline:auto!important}.cnf\\:my-1{margin-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:my-2{margin-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mt-\\[1px\\]{margin-top:-1px!important}.cnf\\:mt-0{margin-top:calc(var(--cnf-spacing)*0)!important}.cnf\\:mt-3{margin-top:calc(var(--cnf-spacing)*3)!important}.cnf\\:mr-2{margin-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mb-3{margin-bottom:calc(var(--cnf-spacing)*-3)!important}.cnf\\:mb-1{margin-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:mb-2{margin-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:mb-4{margin-bottom:calc(var(--cnf-spacing)*4)!important}.cnf\\:ml-2{margin-left:calc(var(--cnf-spacing)*2)!important}.cnf\\:block{display:block!important}.cnf\\:flex{display:flex!important}.cnf\\:hidden{display:none!important}.cnf\\:inline-flex{display:inline-flex!important}.cnf\\:size-4{width:calc(var(--cnf-spacing)*4)!important;height:calc(var(--cnf-spacing)*4)!important}.cnf\\:size-9{width:calc(var(--cnf-spacing)*9)!important;height:calc(var(--cnf-spacing)*9)!important}.cnf\\:size-full{width:100%!important;height:100%!important}.cnf\\:h-2{height:calc(var(--cnf-spacing)*2)!important}.cnf\\:h-3{height:calc(var(--cnf-spacing)*3)!important}.cnf\\:h-4{height:calc(var(--cnf-spacing)*4)!important}.cnf\\:h-16{height:calc(var(--cnf-spacing)*16)!important}.cnf\\:h-\\[18px\\]{height:18px!important}.cnf\\:h-\\[20px\\]{height:20px!important}.cnf\\:h-\\[22px\\]{height:22px!important}.cnf\\:h-\\[24px\\]{height:24px!important}.cnf\\:h-\\[30px\\]{height:30px!important}.cnf\\:h-\\[38px\\]{height:38px!important}.cnf\\:h-\\[40px\\]{height:40px!important}.cnf\\:h-\\[75px\\]{height:75px!important}.cnf\\:h-\\[100vh\\]{height:100vh!important}.cnf\\:h-\\[110px\\]{height:110px!important}.cnf\\:h-\\[calc\\(100vh-10rem\\)\\]{height:calc(100vh - 10rem)!important}.cnf\\:h-full{height:100%!important}.cnf\\:min-h-0{min-height:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-h-16{min-height:calc(var(--cnf-spacing)*16)!important}.cnf\\:min-h-screen{min-height:100vh!important}.cnf\\:w-1\\/3{width:33.3333%!important}.cnf\\:w-3{width:calc(var(--cnf-spacing)*3)!important}.cnf\\:w-4{width:calc(var(--cnf-spacing)*4)!important}.cnf\\:w-16{width:calc(var(--cnf-spacing)*16)!important}.cnf\\:w-\\[20px\\]{width:20px!important}.cnf\\:w-\\[27px\\]{width:27px!important}.cnf\\:w-\\[38px\\]{width:38px!important}.cnf\\:w-\\[75px\\]{width:75px!important}.cnf\\:w-\\[400px\\]{width:400px!important}.cnf\\:w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.cnf\\:w-fit{width:fit-content!important}.cnf\\:w-full{width:100%!important}.cnf\\:w-screen{width:100vw!important}.cnf\\:max-w-400{max-width:calc(var(--cnf-spacing)*400)!important}.cnf\\:max-w-\\[300px\\]{max-width:300px!important}.cnf\\:max-w-\\[420px\\]{max-width:420px!important}.cnf\\:max-w-lg{max-width:var(--cnf-container-lg)!important}.cnf\\:max-w-md{max-width:var(--cnf-container-md)!important}.cnf\\:min-w-0{min-width:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-w-\\[106px\\]{min-width:106px!important}.cnf\\:min-w-\\[140px\\]{min-width:140px!important}.cnf\\:min-w-\\[160px\\]{min-width:160px!important}.cnf\\:min-w-\\[172px\\]{min-width:172px!important}.cnf\\:min-w-\\[270px\\]{min-width:270px!important}.cnf\\:min-w-fit{min-width:fit-content!important}.cnf\\:flex-1{flex:1!important}.cnf\\:flex-shrink-0,.cnf\\:shrink-0{flex-shrink:0!important}.cnf\\:-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-0{--tw-translate-y:calc(var(--cnf-spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:rotate-180{rotate:180deg!important}.cnf\\:animate-progress{animation:1.5s ease-in-out infinite progress!important}.cnf\\:animate-pulse{animation:var(--cnf-animate-pulse)!important}.cnf\\:animate-spin{animation:var(--cnf-animate-spin)!important}.cnf\\:cursor-not-allowed{cursor:not-allowed!important}.cnf\\:cursor-pointer{cursor:pointer!important}.cnf\\:cursor-zoom-in{cursor:zoom-in!important}.cnf\\:list-decimal{list-style-type:decimal!important}.cnf\\:list-disc{list-style-type:disc!important}.cnf\\:list-none{list-style-type:none!important}.cnf\\:flex-col{flex-direction:column!important}.cnf\\:flex-wrap{flex-wrap:wrap!important}.cnf\\:items-center{align-items:center!important}.cnf\\:items-start{align-items:flex-start!important}.cnf\\:items-stretch{align-items:stretch!important}.cnf\\:justify-between{justify-content:space-between!important}.cnf\\:justify-center{justify-content:center!important}.cnf\\:justify-end{justify-content:flex-end!important}.cnf\\:justify-start{justify-content:flex-start!important}.cnf\\:gap-1{gap:calc(var(--cnf-spacing)*1)!important}.cnf\\:gap-2{gap:calc(var(--cnf-spacing)*2)!important}.cnf\\:gap-3{gap:calc(var(--cnf-spacing)*3)!important}.cnf\\:gap-4{gap:calc(var(--cnf-spacing)*4)!important}.cnf\\:gap-8{gap:calc(var(--cnf-spacing)*8)!important}:where(.cnf\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.cnf\\:divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.cnf\\:divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.cnf\\:self-end{align-self:flex-end!important}.cnf\\:truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.cnf\\:overflow-auto{overflow:auto!important}.cnf\\:overflow-hidden{overflow:hidden!important}.cnf\\:overflow-x-hidden{overflow-x:hidden!important}.cnf\\:overflow-y-auto{overflow-y:auto!important}.cnf\\:rounded{border-radius:.25rem!important}.cnf\\:rounded-full{border-radius:3.40282e38px!important}.cnf\\:rounded-lg{border-radius:var(--cnf-radius-lg)!important}.cnf\\:rounded-md{border-radius:var(--cnf-radius-md)!important}.cnf\\:rounded-none{border-radius:0!important}.cnf\\:rounded-sm{border-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-t-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-top-right-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-l-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-bottom-left-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-b-md{border-bottom-right-radius:var(--cnf-radius-md)!important;border-bottom-left-radius:var(--cnf-radius-md)!important}.cnf\\:border{border-style:var(--tw-border-style)!important;border-width:1px!important}.cnf\\:border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.cnf\\:border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.cnf\\:border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.cnf\\:border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.cnf\\:border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.cnf\\:border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.cnf\\:border-none{--tw-border-style:none!important;border-style:none!important}.cnf\\:border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.cnf\\:border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.cnf\\:border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.cnf\\:border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.cnf\\:border-danger-200{border-color:#f0aab1!important}.cnf\\:border-danger-500{border-color:#dc3545!important}.cnf\\:border-gray-50{border-color:#f5f6f7!important}.cnf\\:border-gray-100{border-color:#ebedef!important}.cnf\\:border-gray-200{border-color:#ced1d6!important}.cnf\\:border-gray-300{border-color:#b0b5bd!important}.cnf\\:border-gray-400{border-color:#757e8c!important}.cnf\\:border-gray-700{border-color:#2c3544!important}.cnf\\:border-gray-800{border-color:#232b37!important}.cnf\\:border-info-500{border-color:#17a2b8!important}.cnf\\:border-orange-500{border-color:#ff7800!important}.cnf\\:border-primary-200{border-color:#94c8ff!important}.cnf\\:border-primary-600{border-color:#0069d9!important}.cnf\\:border-purple-500{border-color:#a855f7!important}.cnf\\:border-red-500{border-color:var(--cnf-color-red-500)!important}.cnf\\:border-secondary-500{border-color:#6c757d!important}.cnf\\:border-secondary-600{border-color:#5a6268!important}.cnf\\:border-steel-500{border-color:#556987!important}.cnf\\:border-success-200{border-color:#a5dab1!important}.cnf\\:border-success-600{border-color:#218838!important}.cnf\\:border-warning-200{border-color:#ffe597!important}.cnf\\:border-warning-500{border-color:#ffc107!important}.cnf\\:border-white{border-color:#fff!important}.cnf\\:border-t-blue-500{border-top-color:var(--cnf-color-blue-500)!important}.cnf\\:border-l-danger-500{border-left-color:#dc3545!important}.cnf\\:border-l-primary-500{border-left-color:#007bff!important}.cnf\\:border-l-success-500{border-left-color:#28a745!important}.cnf\\:border-l-warning-500{border-left-color:#ffc107!important}.cnf\\:bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.cnf\\:bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.cnf\\:bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.cnf\\:bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.cnf\\:bg-black\\/30{background-color:oklab(0% none none/.3)!important}.cnf\\:bg-blue-500{background-color:var(--cnf-color-blue-500)!important}.cnf\\:bg-danger-100{background-color:#f6ccd0!important}.cnf\\:bg-danger-500{background-color:#dc3545!important}.cnf\\:bg-dark{background-color:#1c232d!important}.cnf\\:bg-fiserv-orange-500{background-color:#f60!important}.cnf\\:bg-gray-50{background-color:#f5f6f7!important}.cnf\\:bg-gray-100{background-color:#ebedef!important}.cnf\\:bg-gray-200{background-color:#ced1d6!important}.cnf\\:bg-gray-400{background-color:#757e8c!important}.cnf\\:bg-gray-500{background-color:#3a475b!important}.cnf\\:bg-gray-800{background-color:#232b37!important}.cnf\\:bg-gray-900{background-color:#1c232d!important}.cnf\\:bg-info-500{background-color:#17a2b8!important}.cnf\\:bg-orange-500{background-color:#ff7800!important}.cnf\\:bg-primary-100{background-color:#bfdeff!important}.cnf\\:bg-primary-600{background-color:#0069d9!important}.cnf\\:bg-primary-800{background-color:#0054af!important}.cnf\\:bg-purple-500{background-color:#a855f7!important}.cnf\\:bg-secondary-500{background-color:#6c757d!important}.cnf\\:bg-steel-500{background-color:#556987!important}.cnf\\:bg-success-100{background-color:#c9e9d0!important}.cnf\\:bg-success-500{background-color:#28a745!important}.cnf\\:bg-success-600{background-color:#218838!important}.cnf\\:bg-warning-100{background-color:#ffefc1!important}.cnf\\:bg-warning-500{background-color:#ffc107!important}.cnf\\:bg-white{background-color:#fff!important}.cnf\\:bg-yellow{background-color:#ffe600!important}.cnf\\:object-contain{object-fit:contain!important}.cnf\\:object-cover{object-fit:cover!important}.cnf\\:object-center{object-position:center!important}.cnf\\:p-1{padding:calc(var(--cnf-spacing)*1)!important}.cnf\\:p-2{padding:calc(var(--cnf-spacing)*2)!important}.cnf\\:p-3{padding:calc(var(--cnf-spacing)*3)!important}.cnf\\:p-4{padding:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-0{padding-inline:calc(var(--cnf-spacing)*0)!important}.cnf\\:px-1{padding-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:px-2{padding-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:px-3{padding-inline:calc(var(--cnf-spacing)*3)!important}.cnf\\:px-4{padding-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-\\[2px\\]{padding-inline:2px!important}.cnf\\:py-1{padding-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:py-1\\.5{padding-block:calc(var(--cnf-spacing)*1.5)!important}.cnf\\:py-2{padding-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:py-4{padding-block:calc(var(--cnf-spacing)*4)!important}.cnf\\:pt-2{padding-top:calc(var(--cnf-spacing)*2)!important}.cnf\\:pr-2{padding-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-1{padding-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:pb-2{padding-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-\\[102px\\]{padding-bottom:102px!important}.cnf\\:pl-4{padding-left:calc(var(--cnf-spacing)*4)!important}.cnf\\:text-center{text-align:center!important}.cnf\\:text-left{text-align:left!important}.cnf\\:font-mono{font-family:var(--cnf-font-mono)!important}.cnf\\:text-2xl{font-size:var(--cnf-text-2xl)!important;line-height:var(--tw-leading,var(--cnf-text-2xl--line-height))!important}.cnf\\:text-base{font-size:var(--cnf-text-base)!important;line-height:var(--tw-leading,var(--cnf-text-base--line-height))!important}.cnf\\:text-lg{font-size:var(--cnf-text-lg)!important;line-height:var(--tw-leading,var(--cnf-text-lg--line-height))!important}.cnf\\:text-sm{font-size:var(--cnf-text-sm)!important;line-height:var(--tw-leading,var(--cnf-text-sm--line-height))!important}.cnf\\:text-sm\\/6{font-size:var(--cnf-text-sm)!important;line-height:calc(var(--cnf-spacing)*6)!important}.cnf\\:text-xl{font-size:var(--cnf-text-xl)!important;line-height:var(--tw-leading,var(--cnf-text-xl--line-height))!important}.cnf\\:text-xs{font-size:var(--cnf-text-xs)!important;line-height:var(--tw-leading,var(--cnf-text-xs--line-height))!important}.cnf\\:text-\\[10px\\]{font-size:10px!important}.cnf\\:leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.cnf\\:leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.cnf\\:leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.cnf\\:font-bold{--tw-font-weight:var(--cnf-font-weight-bold)!important;font-weight:var(--cnf-font-weight-bold)!important}.cnf\\:font-medium{--tw-font-weight:var(--cnf-font-weight-medium)!important;font-weight:var(--cnf-font-weight-medium)!important}.cnf\\:font-normal{--tw-font-weight:var(--cnf-font-weight-normal)!important;font-weight:var(--cnf-font-weight-normal)!important}.cnf\\:font-semibold{--tw-font-weight:var(--cnf-font-weight-semibold)!important;font-weight:var(--cnf-font-weight-semibold)!important}.cnf\\:whitespace-nowrap{white-space:nowrap!important}.cnf\\:text-\\[\\#0069D9\\]{color:#0069d9!important}.cnf\\:text-black{color:#000!important}.cnf\\:text-blue-600{color:var(--cnf-color-blue-600)!important}.cnf\\:text-danger-500{color:#dc3545!important}.cnf\\:text-danger-600{color:#c82333!important}.cnf\\:text-danger-900{color:#721c24!important}.cnf\\:text-dark{color:#1c232d!important}.cnf\\:text-dark-300{color:#343a40!important}.cnf\\:text-fiserv-orange-500{color:#f60!important}.cnf\\:text-gray-50{color:#f5f6f7!important}.cnf\\:text-gray-200{color:#ced1d6!important}.cnf\\:text-gray-300{color:#b0b5bd!important}.cnf\\:text-gray-400{color:#757e8c!important}.cnf\\:text-gray-500{color:#3a475b!important}.cnf\\:text-gray-700{color:#2c3544!important}.cnf\\:text-gray-800{color:#232b37!important}.cnf\\:text-gray-900{color:#1c232d!important}.cnf\\:text-info-500{color:#17a2b8!important}.cnf\\:text-orange-500{color:#ff7800!important}.cnf\\:text-primary-600{color:#0069d9!important}.cnf\\:text-primary-900{color:#004085!important}.cnf\\:text-purple-500{color:#a855f7!important}.cnf\\:text-secondary{color:#6c757d!important}.cnf\\:text-secondary-400{color:#899197!important}.cnf\\:text-secondary-500{color:#6c757d!important}.cnf\\:text-secondary-600{color:#5a6268!important}.cnf\\:text-steel-500{color:#556987!important}.cnf\\:text-success-500{color:#28a745!important}.cnf\\:text-success-600{color:#218838!important}.cnf\\:text-success-900{color:#155724!important}.cnf\\:text-warning-500{color:#ffc107!important}.cnf\\:text-warning-600{color:#f59e0b!important}.cnf\\:text-warning-900{color:#935f07!important}.cnf\\:text-white{color:#fff!important}.cnf\\:text-yellow{color:#ffe600!important}.cnf\\:uppercase{text-transform:uppercase!important}.cnf\\:italic{font-style:italic!important}.cnf\\:line-through{text-decoration-line:line-through!important}.cnf\\:underline{text-decoration-line:underline!important}.cnf\\:opacity-0{opacity:0!important}.cnf\\:opacity-50{opacity:.5!important}.cnf\\:opacity-60{opacity:.6!important}.cnf\\:opacity-70{opacity:.7!important}.cnf\\:opacity-100{opacity:1!important}.cnf\\:shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.cnf\\:shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.cnf\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.cnf\\:ease-in-out{--tw-ease:var(--cnf-ease-in-out)!important;transition-timing-function:var(--cnf-ease-in-out)!important}.cnf\\:ease-out{--tw-ease:var(--cnf-ease-out)!important;transition-timing-function:var(--cnf-ease-out)!important}.cnf\\:outline-none{--tw-outline-style:none!important;outline-style:none!important}.cnf\\:\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.cnf\\:hover\\:border-primary-500:hover{border-color:#007bff!important}.cnf\\:hover\\:bg-danger-500:hover{background-color:#dc3545!important}.cnf\\:hover\\:bg-dark:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.cnf\\:hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.cnf\\:hover\\:bg-gray-100:hover{background-color:#ebedef!important}.cnf\\:hover\\:bg-gray-200:hover{background-color:#ced1d6!important}.cnf\\:hover\\:bg-gray-400:hover{background-color:#757e8c!important}.cnf\\:hover\\:bg-gray-500:hover{background-color:#3a475b!important}.cnf\\:hover\\:bg-gray-800:hover{background-color:#232b37!important}.cnf\\:hover\\:bg-gray-900:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-info-500:hover{background-color:#17a2b8!important}.cnf\\:hover\\:bg-orange-500:hover{background-color:#ff7800!important}.cnf\\:hover\\:bg-primary-700:hover{background-color:#0062cc!important}.cnf\\:hover\\:bg-primary-800:hover{background-color:#0054af!important}.cnf\\:hover\\:bg-purple-500:hover{background-color:#a855f7!important}.cnf\\:hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.cnf\\:hover\\:bg-steel-500:hover{background-color:#556987!important}.cnf\\:hover\\:bg-success-500:hover{background-color:#28a745!important}.cnf\\:hover\\:bg-transparent:hover{background-color:#0000!important}.cnf\\:hover\\:bg-warning-500:hover{background-color:#ffc107!important}.cnf\\:hover\\:bg-yellow:hover{background-color:#ffe600!important}.cnf\\:hover\\:text-black:hover{color:#000!important}.cnf\\:hover\\:text-blue-600:hover{color:var(--cnf-color-blue-600)!important}.cnf\\:hover\\:text-danger-600:hover{color:#c82333!important}.cnf\\:hover\\:text-danger-700:hover{color:#bd2130!important}.cnf\\:hover\\:text-danger-800:hover{color:#aa1927!important}.cnf\\:hover\\:text-dark:hover{color:#1c232d!important}.cnf\\:hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.cnf\\:hover\\:text-gray-400:hover{color:#757e8c!important}.cnf\\:hover\\:text-gray-700:hover{color:#2c3544!important}.cnf\\:hover\\:text-gray-800:hover{color:#232b37!important}.cnf\\:hover\\:text-gray-900:hover{color:#1c232d!important}.cnf\\:hover\\:text-info-800:hover{color:#026777!important}.cnf\\:hover\\:text-orange-800:hover{color:#c75d00!important}.cnf\\:hover\\:text-primary-600:hover{color:#0069d9!important}.cnf\\:hover\\:text-primary-700:hover{color:#0062cc!important}.cnf\\:hover\\:text-primary-800:hover{color:#0054af!important}.cnf\\:hover\\:text-purple-800:hover{color:#6f33a7!important}.cnf\\:hover\\:text-secondary-800:hover{color:#444a50!important}.cnf\\:hover\\:text-steel-800:hover{color:#333f51!important}.cnf\\:hover\\:text-success-600:hover{color:#218838!important}.cnf\\:hover\\:text-success-700:hover{color:#1e7e34!important}.cnf\\:hover\\:text-success-800:hover{color:#106c25!important}.cnf\\:hover\\:text-warning-600:hover{color:#f59e0b!important}.cnf\\:hover\\:text-warning-700:hover{color:#dd8e0a!important}.cnf\\:hover\\:text-warning-800:hover{color:#b87708!important}.cnf\\:hover\\:text-white:hover{color:#fff!important}.cnf\\:hover\\:text-yellow:hover{color:#ffe600!important}}.cnf\\:focus\\:border-red-500:focus{border-color:var(--cnf-color-red-500)!important}.cnf\\:focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.cnf\\:focus\\:outline-2:focus{outline-style:var(--tw-outline-style)!important;outline-width:2px!important}.cnf\\:focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.cnf\\:focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.cnf\\:focus\\:outline-primary-600:focus{outline-color:#0069d9!important}.cnf\\:active\\:bg-gray-50:active{background-color:#f5f6f7!important}.cnf\\:active\\:bg-gray-800:active{background-color:#232b37!important}.cnf\\:active\\:text-black:active{color:#000!important}.cnf\\:active\\:text-white:active{color:#fff!important}.cnf\\:disabled\\:pointer-events-none:disabled{pointer-events:none!important}.cnf\\:disabled\\:opacity-15:disabled{opacity:.15!important}.cnf\\:data-closed\\:opacity-0[data-closed]{opacity:0!important}.cnf\\:data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.cnf\\:data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.cnf\\:md\\:min-w-fit{min-width:fit-content!important}}}@layer base{.confidence-playbook{all:revert}.confidence-playbook *,.confidence-playbook :before,.confidence-playbook :after{box-sizing:border-box}.confidence-playbook,.confidence-playbook *,.confidence-playbook :after,.confidence-playbook :before,.confidence-playbook ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.confidence-playbook hr{height:0;color:inherit;border-top-width:1px}.confidence-playbook abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.confidence-playbook h1,.confidence-playbook h2,.confidence-playbook h3,.confidence-playbook h4,.confidence-playbook h5,.confidence-playbook h6{font-size:inherit;font-weight:inherit}.confidence-playbook a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.confidence-playbook b,.confidence-playbook strong{font-weight:bolder}.confidence-playbook code,.confidence-playbook kbd,.confidence-playbook samp,.confidence-playbook pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.confidence-playbook small{font-size:80%}.confidence-playbook sub,.confidence-playbook sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.confidence-playbook sub{bottom:-.25em}.confidence-playbook sup{top:-.5em}.confidence-playbook table{text-indent:0;border-color:inherit;border-collapse:collapse}.confidence-playbook :-moz-focusring{outline:auto}.confidence-playbook progress{vertical-align:baseline}.confidence-playbook summary{display:list-item}.confidence-playbook ol,.confidence-playbook ul,.confidence-playbook menu{list-style:none}.confidence-playbook img,.confidence-playbook svg,.confidence-playbook video,.confidence-playbook canvas,.confidence-playbook audio,.confidence-playbook iframe,.confidence-playbook embed,.confidence-playbook object{vertical-align:middle;display:block}.confidence-playbook img,.confidence-playbook video{max-width:100%;height:auto}.confidence-playbook button,.confidence-playbook input,.confidence-playbook select,.confidence-playbook optgroup,.confidence-playbook textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.confidence-playbook :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.confidence-playbook ::file-selector-button{margin-inline-end:4px}.confidence-playbook ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.confidence-playbook ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.confidence-playbook ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.confidence-playbook textarea{resize:vertical}.confidence-playbook ::-webkit-search-decoration{-webkit-appearance:none}.confidence-playbook ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.confidence-playbook ::-webkit-datetime-edit{display:inline-flex}.confidence-playbook ::-webkit-datetime-edit-fields-wrapper{padding:0}.confidence-playbook ::-webkit-datetime-edit{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-year-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-month-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-day-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-hour-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-minute-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-second-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-millisecond-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-meridiem-field{padding-block:0}.confidence-playbook ::-webkit-calendar-picker-indicator{line-height:1}.confidence-playbook :-moz-ui-invalid{box-shadow:none}.confidence-playbook button,.confidence-playbook input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::-webkit-inner-spin-button{height:auto}.confidence-playbook ::-webkit-outer-spin-button{height:auto}.confidence-playbook [hidden]:where(:not([hidden=until-found])){display:none!important}}.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset!important;color:#1c232d!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme,base,components,utilities;.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',Xw=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},e2=(e,t)=>({classGroupId:e,validator:t}),j0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),tc="-",Xm=[],t2="arbitrary..",n2=e=>{const t=o2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return r2(s);const a=s.split(tc),c=a[0]===""&&a.length>1?1:0;return z0(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],l=n[s];return c?l?Xw(l,c):c:l||Xm}return n[s]||Xm}}},z0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const l=z0(e,t+1,i);if(l)return l}const s=n.validators;if(s===null)return;const a=t===0?e.join(tc):e.slice(t).join(tc),c=s.length;for(let l=0;l<c;l++){const f=s[l];if(f.validator(a))return f.classGroupId}},r2=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?t2+r:void 0})(),o2=e=>{const{theme:t,classGroups:n}=e;return i2(n,t)},i2=(e,t)=>{const n=j0();for(const r in e){const o=e[r];rd(o,n,r,t)}return n},rd=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];s2(s,t,n,r)}},s2=(e,t,n,r)=>{if(typeof e=="string"){a2(e,t,n);return}if(typeof e=="function"){c2(e,t,n,r);return}l2(e,t,n,r)},a2=(e,t,n)=>{const r=e===""?t:$0(t,e);r.classGroupId=n},c2=(e,t,n,r)=>{if(f2(e)){rd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(e2(n,e))},l2=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];rd(c,$0(t,a),n,r)}},$0=(e,t)=>{let n=e;const r=t.split(tc),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=j0(),n.nextPart.set(s,a)),n=a}return n},f2=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,u2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Nf="!",eh=":",d2=[],th=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),m2=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;const f=o.length;for(let g=0;g<f;g++){const p=o[g];if(s===0&&a===0){if(p===eh){i.push(o.slice(c,g)),c=g+1;continue}if(p==="/"){l=g;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const u=i.length===0?o:o.slice(c);let d=u,m=!1;u.endsWith(Nf)?(d=u.slice(0,-1),m=!0):u.startsWith(Nf)&&(d=u.slice(1),m=!0);const h=l&&l>c?l-c:void 0;return th(i,m,d,h)};if(t){const o=t+eh,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):th(d2,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},h2=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=t.has(s);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},p2=e=>({cache:u2(e.cacheSize),parseClassName:m2(e),sortModifiers:h2(e),...n2(e)}),g2=/\s+/,y2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(g2);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:u,modifiers:d,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}=n(f);if(u){c=f+(c.length>0?" "+c:c);continue}let p=!!g,y=r(p?h.substring(0,g):h);if(!y){if(!p){c=f+(c.length>0?" "+c:c);continue}if(y=r(h),!y){c=f+(c.length>0?" "+c:c);continue}p=!1}const b=d.length===0?"":d.length===1?d[0]:i(d).join(":"),x=m?b+Nf:b,w=x+y;if(s.indexOf(w)>-1)continue;s.push(w);const A=o(y,p);for(let E=0;E<A.length;++E){const S=A[E];s.push(x+S)}c=f+(c.length>0?" "+c:c)}return c},b2=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=B0(n))&&(o&&(o+=" "),o+=r);return o},B0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=B0(e[r]))&&(n&&(n+=" "),n+=t);return n},v2=(e,...t)=>{let n,r,o,i;const s=c=>{const l=t.reduce((f,u)=>u(f),e());return n=p2(l),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const l=r(c);if(l)return l;const f=y2(c,n);return o(c,f),f};return i=s,(...c)=>i(b2(...c))},x2=[],Ge=e=>{const t=n=>n[e]||x2;return t.isThemeGetter=!0,t},U0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w2=/^\d+\/\d+$/,A2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C2=/\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$/,_2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ei=e=>w2.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),pr=e=>!!e&&Number.isInteger(Number(e)),Al=e=>e.endsWith("%")&&we(e.slice(0,-1)),zn=e=>A2.test(e),k2=()=>!0,T2=e=>C2.test(e)&&!_2.test(e),K0=()=>!1,N2=e=>E2.test(e),O2=e=>S2.test(e),P2=e=>!ae(e)&&!ce(e),M2=e=>Ki(e,V0,K0),ae=e=>U0.test(e),Gr=e=>Ki(e,Y0,T2),Cl=e=>Ki(e,F2,we),nh=e=>Ki(e,H0,K0),I2=e=>Ki(e,q0,O2),ba=e=>Ki(e,Q0,N2),ce=e=>W0.test(e),ss=e=>Hi(e,Y0),L2=e=>Hi(e,j2),rh=e=>Hi(e,H0),R2=e=>Hi(e,V0),D2=e=>Hi(e,q0),va=e=>Hi(e,Q0,!0),Ki=(e,t,n)=>{const r=U0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hi=(e,t,n=!1)=>{const r=W0.exec(e);return r?r[1]?t(r[1]):n:!1},H0=e=>e==="position"||e==="percentage",q0=e=>e==="image"||e==="url",V0=e=>e==="length"||e==="size"||e==="bg-size",Y0=e=>e==="length",F2=e=>e==="number",j2=e=>e==="family-name",Q0=e=>e==="shadow",z2=()=>{const e=Ge("color"),t=Ge("font"),n=Ge("text"),r=Ge("font-weight"),o=Ge("tracking"),i=Ge("leading"),s=Ge("breakpoint"),a=Ge("container"),c=Ge("spacing"),l=Ge("radius"),f=Ge("shadow"),u=Ge("inset-shadow"),d=Ge("text-shadow"),m=Ge("drop-shadow"),h=Ge("blur"),g=Ge("perspective"),p=Ge("aspect"),y=Ge("ease"),b=Ge("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...w(),ce,ae],E=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],_=()=>[ce,ae,c],N=()=>[ei,"full","auto",..._()],P=()=>[pr,"none","subgrid",ce,ae],I=()=>["auto",{span:["full",pr,ce,ae]},pr,ce,ae],W=()=>[pr,"auto",ce,ae],j=()=>["auto","min","max","fr",ce,ae],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",..._()],oe=()=>[ei,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],M=()=>[e,ce,ae],re=()=>[...w(),rh,nh,{position:[ce,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",R2,M2,{size:[ce,ae]}],K=()=>[Al,ss,Gr],U=()=>["","none","full",l,ce,ae],J=()=>["",we,ss,Gr],V=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[we,Al,rh,nh],he=()=>["","none",h,ce,ae],ye=()=>["none",we,ce,ae],pe=()=>["none",we,ce,ae],ze=()=>[we,ce,ae],G=()=>[ei,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zn],breakpoint:[zn],color:[k2],container:[zn],"drop-shadow":[zn],ease:["in","out","in-out"],font:[P2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zn],shadow:[zn],spacing:["px",we],text:[zn],"text-shadow":[zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ei,ae,ce,p]}],container:["container"],columns:[{columns:[we,ae,ce,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[pr,"auto",ce,ae]}],basis:[{basis:[ei,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,ei,"auto","initial","none",ae]}],grow:[{grow:["",we,ce,ae]}],shrink:[{shrink:["",we,ce,ae]}],order:[{order:[pr,"first","last","none",ce,ae]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],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":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],w:[{w:[a,"screen",...oe()]}],"min-w":[{"min-w":[a,"screen","none",...oe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,ss,Gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ce,Cl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Al,ae]}],"font-family":[{font:[L2,ae,t]}],"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:[o,ce,ae]}],"line-clamp":[{"line-clamp":[we,"none",ce,Cl]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",ce,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ce,Gr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",ce,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,ae]}],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",ce,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pr,ce,ae],radial:["",ce,ae],conic:[pr,ce,ae]},D2,I2]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ce,ae]}],"outline-w":[{outline:["",we,ss,Gr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",f,va,ba]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",u,va,ba]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[we,Gr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,va,ba]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[we,ce,ae]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[ce,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,ae]}],filter:[{filter:["","none",ce,ae]}],blur:[{blur:he()}],brightness:[{brightness:[we,ce,ae]}],contrast:[{contrast:[we,ce,ae]}],"drop-shadow":[{"drop-shadow":["","none",m,va,ba]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,ce,ae]}],"hue-rotate":[{"hue-rotate":[we,ce,ae]}],invert:[{invert:["",we,ce,ae]}],saturate:[{saturate:[we,ce,ae]}],sepia:[{sepia:["",we,ce,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,ae]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[we,ce,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,ce,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ce,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ce,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,ce,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,ce,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,ce,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ce,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ce,ae]}],ease:[{ease:["linear","initial",y,ce,ae]}],delay:[{delay:[we,ce,ae]}],animate:[{animate:["none",b,ce,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ce,ae]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ce,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",ce,ae]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",ce,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,ss,Gr,Cl]}],stroke:[{stroke:["none",...M()]}],"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"]}},mi=v2(z2);function G0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=G0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ts(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=G0(e))&&(r&&(r+=" "),r+=t);return r}function xe(...e){return mi(Ts(e))}const oh="confidence_playbook_",$2="confidence_playbook_expanded_",Z0=30;function J0(e,t){return t?`${oh}${e}_${t}`:`${oh}${e}`}function X0(e,t,n,r){const o={playbookInstanceId:t,email:n},i=J0(e,r),s=new Date;s.setDate(s.getDate()+Z0),document.cookie=`${i}=${encodeURIComponent(JSON.stringify(o))}; expires=${s.toUTCString()}; path=/; SameSite=Lax`}function ey(e,t){const n=J0(e,t),r=document.cookie.split(";");for(const o of r){const[i,s]=o.trim().split("=");if(i===n&&s)try{return JSON.parse(decodeURIComponent(s))}catch{return null}}return null}function ty(e){return`${$2}${e}`}function B2(e,t){const n=ty(e),r=new Date;r.setDate(r.getDate()+Z0),document.cookie=`${n}=${t?"1":"0"}; expires=${r.toUTCString()}; path=/; SameSite=Lax`}function U2(e){const t=ty(e),n=document.cookie.split(";");for(const r of n){const[o,i]=r.trim().split("=");if(o===t&&i!==void 0)return i==="1"}return null}const W2=typeof document<"u"?T.useLayoutEffect:()=>{},$r=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},oo=e=>e&&"window"in e&&e.window===e?e:$r(e).defaultView||window;function K2(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function H2(e){return K2(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let q2=!1;function od(){return q2}function ny(e,t){if(!od())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:H2(n)?n=n.host:n=n.parentNode}return!1}const Of=(e=document)=>{var t;if(!od())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function ry(e){return od()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function V2(e){if(Y2())e.focus({preventScroll:!0});else{let t=Q2(e);e.focus(),G2(t)}}let xa=null;function Y2(){if(xa==null){xa=!1;try{document.createElement("div").focus({get preventScroll(){return xa=!0,!0}})}catch{}}return xa}function Q2(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function G2(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Tc(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function id(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function sr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ns=sr(function(){return id(/^Mac/i)}),Z2=sr(function(){return id(/^iPhone/i)}),oy=sr(function(){return id(/^iPad/i)||Ns()&&navigator.maxTouchPoints>1}),J2=sr(function(){return Z2()||oy()});sr(function(){return Ns()||J2()});const X2=sr(function(){return Tc(/AppleWebKit/i)&&!eA()}),eA=sr(function(){return Tc(/Chrome/i)}),tA=sr(function(){return Tc(/Android/i)}),nA=sr(function(){return Tc(/Firefox/i)});function Os(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}=t;nA()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ns()?i=!0:s=!0);let l=X2()&&Ns()&&!oy()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Os.isOpening=n,V2(e),e.dispatchEvent(l),Os.isOpening=!1}Os.isOpening=!1;function iy(){let e=T.useRef(new Map),t=T.useCallback((o,i,s,a)=>{let c=a!=null&&a.once?(...l)=>{e.current.delete(s),s(...l)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:a}),o.addEventListener(i,c,a)},[]),n=T.useCallback((o,i,s,a)=>{var c;let l=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,l,a),e.current.delete(s)},[]),r=T.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return T.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function rA(e){return e.pointerType===""&&e.isTrusted?!0:tA()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function sy(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function oA(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ay(e){let t=T.useRef({isFocused:!1,observer:null});return W2(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),T.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let s=sy(i);e==null||e(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let s=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let iA=!1,Qs=null,Pf=new Set,vs=new Map,So=!1,Mf=!1;const sA={Tab:!0,Escape:!0};function sd(e,t){for(let n of Pf)n(e,t)}function aA(e){return!(e.metaKey||!Ns()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nc(e){So=!0,!Os.isOpening&&aA(e)&&(Qs="keyboard",sd("keyboard",e))}function Yt(e){Qs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(So=!0,sd("pointer",e))}function cy(e){!Os.isOpening&&rA(e)&&(So=!0,Qs="virtual")}function ly(e){e.target===window||e.target===document||iA||!e.isTrusted||(!So&&!Mf&&(Qs="virtual",sd("virtual",e)),So=!1,Mf=!1)}function fy(){So=!1,Mf=!0}function If(e){if(typeof window>"u"||typeof document>"u"||vs.get(oo(e)))return;const t=oo(e),n=$r(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){So=!0,r.apply(this,arguments)},n.addEventListener("keydown",nc,!0),n.addEventListener("keyup",nc,!0),n.addEventListener("click",cy,!0),t.addEventListener("focus",ly,!0),t.addEventListener("blur",fy,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Yt,!0),n.addEventListener("pointermove",Yt,!0),n.addEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Yt,!0),n.addEventListener("mousemove",Yt,!0),n.addEventListener("mouseup",Yt,!0)),t.addEventListener("beforeunload",()=>{uy(e)},{once:!0}),vs.set(t,{focus:r})}const uy=(e,t)=>{const n=oo(e),r=$r(e);t&&r.removeEventListener("DOMContentLoaded",t),vs.has(n)&&(n.HTMLElement.prototype.focus=vs.get(n).focus,r.removeEventListener("keydown",nc,!0),r.removeEventListener("keyup",nc,!0),r.removeEventListener("click",cy,!0),n.removeEventListener("focus",ly,!0),n.removeEventListener("blur",fy,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Yt,!0),r.removeEventListener("pointermove",Yt,!0),r.removeEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Yt,!0),r.removeEventListener("mousemove",Yt,!0),r.removeEventListener("mouseup",Yt,!0)),vs.delete(n))};function cA(e){const t=$r(e);let n;return t.readyState!=="loading"?If(e):(n=()=>{If(e)},t.addEventListener("DOMContentLoaded",n)),()=>uy(e,n)}typeof document<"u"&&cA();function dy(){return Qs!=="pointer"}const lA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fA(e,t,n){let r=$r(n==null?void 0:n.target);const o=typeof window<"u"?oo(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?oo(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?oo(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?oo(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!lA.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!sA[n.key])}function uA(e,t,n){If(),T.useEffect(()=>{let r=(o,i)=>{fA(!!(n!=null&&n.isTextInput),o,i)&&e(dy())};return Pf.add(r),()=>{Pf.delete(r)}},t)}function dA(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=T.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),s=ay(i),a=T.useCallback(c=>{const l=$r(c.target),f=l?Of(l):Of();c.target===c.currentTarget&&f===ry(c.nativeEvent)&&(n&&n(c),o&&o(!0),s(c))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function mA(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=T.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=iy(),c=T.useCallback(u=>{u.currentTarget.contains(u.target)&&i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(u),o&&o(!1))},[n,o,i,a]),l=ay(c),f=T.useCallback(u=>{if(!u.currentTarget.contains(u.target))return;const d=$r(u.target),m=Of(d);if(!i.current.isFocusWithin&&m===ry(u.nativeEvent)){r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,l(u);let h=u.currentTarget;s(d,"focus",g=>{if(i.current.isFocusWithin&&!ny(h,g.target)){let p=new d.defaultView.FocusEvent("blur",{relatedTarget:g.target});oA(p,h);let y=sy(p);c(y)}},{capture:!0})}},[r,o,l,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}let rc=!1,wa=0;function Lf(){rc=!0,setTimeout(()=>{rc=!1},50)}function ih(e){e.pointerType==="touch"&&Lf()}function hA(){if(!(typeof document>"u"))return wa===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",ih):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Lf)),wa++,()=>{wa--,!(wa>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ih):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Lf))}}function pA(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=T.useState(!1),a=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(hA,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=iy(),{hoverProps:f,triggerHoverEnd:u}=T.useMemo(()=>{let d=(g,p)=>{if(a.pointerType=p,o||p==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let y=g.currentTarget;a.target=y,c($r(g.target),"pointerover",b=>{a.isHovered&&a.target&&!ny(a.target,b.target)&&m(b,b.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:p}),n&&n(!0),s(!0)},m=(g,p)=>{let y=a.target;a.pointerType="",a.target=null,!(p==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,l(),r&&r({type:"hoverend",target:y,pointerType:p}),n&&n(!1),s(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=g=>{rc&&g.pointerType==="mouse"||d(g,g.pointerType)},h.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&m(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!rc&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&m(g,"mouse")}),{hoverProps:h,triggerHoverEnd:m}},[t,n,r,o,a,c,l]);return T.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:f,isHovered:i}}function gA(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=T.useRef({isFocused:!1,isFocusVisible:t||dy()}),[i,s]=T.useState(!1),[a,c]=T.useState(()=>o.current.isFocused&&o.current.isFocusVisible),l=T.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=T.useCallback(m=>{o.current.isFocused=m,s(m),l()},[l]);uA(m=>{o.current.isFocusVisible=m,l()},[],{isTextInput:n});let{focusProps:u}=dA({isDisabled:r,onFocusChange:f}),{focusWithinProps:d}=mA({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:a,focusProps:r?d:u}}var yA=Object.defineProperty,bA=(e,t,n)=>t in e?yA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_l=(e,t,n)=>(bA(e,typeof t!="symbol"?t+"":t,n),n);let vA=class{constructor(){_l(this,"current",this.detect()),_l(this,"handoffState","pending"),_l(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},xA=new vA,ad=(e,t)=>{xA.isServer?T.useEffect(e,t):T.useLayoutEffect(e,t)};function wA(e){let t=T.useRef(e);return ad(()=>{t.current=e},[e]),t}let Nc=function(e){let t=wA(e);return T.useCallback((...n)=>t.current(...n),[t])};function Oc(e){return T.useMemo(()=>e,Object.values(e))}let my=T.createContext(void 0);function Pc(){return T.useContext(my)}function AA({value:e,children:t}){return T.createElement(my.Provider,{value:e},t)}function sh(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function hy(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,hy),r}var CA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(CA||{}),_A=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_A||{});function Gs(){let e=SA();return T.useCallback(t=>EA({mergeRefs:e,...t}),[e])}function EA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??kA;let c=py(t,e);if(i)return Aa(c,n,r,s,a);let l=o??0;if(l&2){let{static:f=!1,...u}=c;if(f)return Aa(u,n,r,s,a)}if(l&1){let{unmount:f=!0,...u}=c;return hy(f?0:1,{0(){return null},1(){return Aa({...u,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Aa(c,n,r,s,a)}function Aa(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...c}=El(e,["unmount","static"]),l=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let u={};if(t){let d=!1,m=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(d=!0),g===!0&&m.push(h.replace(/([A-Z])/g,p=>`-${p.toLowerCase()}`));if(d){u["data-headlessui-state"]=m.join(" ");for(let h of m)u[`data-${h}`]=""}}if(ja(i)&&(Object.keys(ti(c)).length>0||Object.keys(ti(u)).length>0))if(!T.isValidElement(f)||Array.isArray(f)&&f.length>1||OA(f)){if(Object.keys(ti(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ti(c)).concat(Object.keys(ti(u))).map(d=>` - ${d}`).join(`
|
|
22
22
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
23
23
|
`)].join(`
|
|
24
|
-
`))}else{let d=f.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...y)=>eh(p(...y),c.className):eh(p,c.className),g=h?{className:h}:{},m=ay(f.props,Xo(Al(c,["ref"])));for(let y in u)y in m&&delete u[y];return T.cloneElement(f,Object.assign({},m,u,l,{ref:o(bA(f),l.ref)},g))}return T.createElement(i,Object.assign({},Al(c,["ref"]),!Ia(i)&&l,!Ia(i)&&u),f)}function gA(){let e=T.useRef([]),t=T.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function yA(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function ay(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function vA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function Ys(e){var t;return Object.assign(T.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Xo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Al(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function bA(e){return T.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ia(e){return e===T.Fragment||e===Symbol.for("react.fragment")}function xA(e){return Ia(e.type)}let wA="span";var cy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cy||{});function AA(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Vs()({ourProps:i,theirProps:o,slot:{},defaultTag:wA,name:"Hidden"})}let CA=Ys(AA),_A=T.createContext(null);function EA(e){let[t,n]=T.useState(null);return T.createElement(_A.Provider,{value:{target:t}},e.children,T.createElement(CA,{features:cy.Hidden,ref:n}))}let ly=T.createContext(void 0);function fy(){return T.useContext(ly)}function SA({id:e,children:t}){return T.createElement(ly.Provider,{value:e},t)}function kA(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function uy(e){return kA(e)&&"tagName"in e}function dy(e){return uy(e)&&"accessKey"in e}function TA(e){return dy(e)&&e.nodeName==="INPUT"}function th(e){return dy(e)&&e.nodeName==="LABEL"}function NA(e){return uy(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let OA=Symbol();function py(...e){let t=T.useRef(e);T.useEffect(()=>{t.current=e},[e]);let n=Sc(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[OA]))?void 0:n}let Nc=T.createContext(null);Nc.displayName="DescriptionContext";function hy(){let e=T.useContext(Nc);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,hy),t}return e}function PA(){var e,t;return(t=(e=T.useContext(Nc))==null?void 0:e.value)!=null?t:void 0}function MA(){let[e,t]=T.useState([]);return[e.length>0?e.join(" "):void 0,T.useMemo(()=>function(n){let r=Sc(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}))),o=T.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return T.createElement(Nc.Provider,{value:o},n.children)},[t])]}let IA="p";function LA(e,t){let n=T.useId(),r=Tc(),{id:o=`headlessui-description-${n}`,...i}=e,s=hy(),a=py(t);nd(()=>s.register(o),[o,s.register]);let c=kc({...s.slot,disabled:r||!1}),l={ref:a,...s.props,id:o};return Vs()({ourProps:l,theirProps:i,slot:c,defaultTag:IA,name:s.name||"Description"})}let RA=Ys(LA),DA=Object.assign(RA,{}),Oc=T.createContext(null);Oc.displayName="LabelContext";function my(){let e=T.useContext(Oc);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,my),t}return e}function gy(e){var t,n,r;let o=(n=(t=T.useContext(Oc))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function FA({inherit:e=!1}={}){let t=gy(),[n,r]=T.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,T.useMemo(()=>function(i){let s=Sc(c=>(r(l=>[...l,c]),()=>r(l=>{let f=l.slice(),u=f.indexOf(c);return u!==-1&&f.splice(u,1),f}))),a=T.useMemo(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return T.createElement(Oc.Provider,{value:a},i.children)},[r])]}let jA="label";function zA(e,t){var n;let r=T.useId(),o=my(),i=fy(),s=Tc(),{id:a=`headlessui-label-${r}`,htmlFor:c=i??((n=o.props)==null?void 0:n.htmlFor),passive:l=!1,...f}=e,u=py(t);nd(()=>o.register(a),[a,o.register]);let d=Sc(g=>{let m=g.currentTarget;if(!(g.target!==g.currentTarget&&NA(g.target))&&(th(m)&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),th(m))){let y=document.getElementById(m.htmlFor);if(y){let v=y.getAttribute("disabled");if(v==="true"||v==="")return;let b=y.getAttribute("aria-disabled");if(b==="true"||b==="")return;(TA(y)&&(y.type==="file"||y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),p=kc({...o.slot,disabled:s||!1}),h={ref:u,...o.props,id:a,htmlFor:c,onClick:d};return l&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in f&&delete f.onClick),Vs()({ourProps:h,theirProps:f,slot:p,defaultTag:c?jA:"div",name:o.name||"Label"})}let $A=Ys(zA),UA=Object.assign($A,{});function Pc(){return typeof window<"u"}function Ki(e){return yy(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ir(e){var t;return(t=(yy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yy(e){return Pc()?e instanceof Node||e instanceof Ut(e).Node:!1}function He(e){return Pc()?e instanceof Element||e instanceof Ut(e).Element:!1}function ln(e){return Pc()?e instanceof HTMLElement||e instanceof Ut(e).HTMLElement:!1}function Mf(e){return!Pc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}const BA=new Set(["inline","contents"]);function Qs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!BA.has(o)}const WA=new Set(["table","td","th"]);function KA(e){return WA.has(Ki(e))}const HA=[":popover-open",":modal"];function Mc(e){return HA.some(t=>{try{return e.matches(t)}catch{return!1}})}const qA=["transform","translate","scale","rotate","perspective"],VA=["transform","translate","scale","rotate","perspective","filter"],YA=["paint","layout","strict","content"];function rd(e){const t=Ic(),n=He(e)?Qt(e):e;return qA.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||VA.some(r=>(n.willChange||"").includes(r))||YA.some(r=>(n.contain||"").includes(r))}function QA(e){let t=Xn(e);for(;ln(t)&&!Zn(t);){if(rd(t))return t;if(Mc(t))return null;t=Xn(t)}return null}function Ic(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GA=new Set(["html","body","#document"]);function Zn(e){return GA.has(Ki(e))}function Qt(e){return Ut(e).getComputedStyle(e)}function Lc(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Ki(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mf(e)&&e.host||ir(e);return Mf(t)?t.host:t}function vy(e){const t=Xn(e);return Zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&Qs(t)?t:vy(t)}function di(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ut(o);if(i){const a=If(s);return t.concat(s,s.visualViewport||[],Qs(o)?o:[],a&&n?di(a):[])}return t.concat(o,di(o,[],n))}function If(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const nh=Math.min,vs=Math.max,Xa=Math.round,En=e=>({x:e,y:e});function by(e){return e.split("-")[0]}function ZA(e){return e.split("-")[1]}function JA(e){return e==="x"?"y":"x"}function XA(e){return e==="y"?"height":"width"}const eC=new Set(["top","bottom"]);function xy(e){return eC.has(by(e))?"y":"x"}function tC(e){return JA(xy(e))}function wy(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function rh(e,t,n){let{reference:r,floating:o}=e;const i=xy(t),s=tC(t),a=XA(s),c=by(t),l=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(ZA(t)){case"start":p[s]-=d*(n&&l?-1:1);break;case"end":p[s]+=d*(n&&l?-1:1);break}return p}const nC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=rh(l,r,c),d=r,p={},h=0;for(let g=0;g<a.length;g++){const{name:m,fn:y}=a[g],{x:v,y:b,data:w,reset:A}=await y({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});f=v??f,u=b??u,p={...p,[m]:{...p[m],...w}},A&&h<=50&&(h++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(l=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:u}=rh(l,d,c)),g=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:p}};function Ay(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ln(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Xa(n)!==i||Xa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cy(e){return He(e)?e:e.contextElement}function pi(e){const t=Cy(e);if(!ln(t))return En(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ay(t);let s=(i?Xa(n.width):n.width)/r,a=(i?Xa(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const rC=En(0);function _y(e){const t=Ut(e);return!Ic()||!t.visualViewport?rC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ut(e)?!1:t}function Ns(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cy(e);let s=En(1);t&&(r?He(r)&&(s=pi(r)):s=pi(e));const a=oC(i,n,r)?_y(i):En(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const d=Ut(i),p=r&&He(r)?Ut(r):r;let h=d,g=If(h);for(;g&&r&&p!==h;){const m=pi(g),y=g.getBoundingClientRect(),v=Qt(g),b=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,w=y.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;c*=m.x,l*=m.y,f*=m.x,u*=m.y,c+=b,l+=w,h=Ut(g),g=If(h)}}return wy({width:f,height:u,x:c,y:l})}function Rc(e,t){const n=Lc(e).scrollLeft;return t?t.left+n:Ns(ir(e)).left+n}function Ey(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function iC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ir(r),a=t?Mc(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=En(1);const f=En(0),u=ln(r);if((u||!u&&!i)&&((Ki(r)!=="body"||Qs(s))&&(c=Lc(r)),ln(r))){const p=Ns(r);l=pi(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const d=s&&!u&&!i?Ey(s,c):En(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+d.x,y:n.y*l.y-c.scrollTop*l.y+f.y+d.y}}function sC(e){return Array.from(e.getClientRects())}function aC(e){const t=ir(e),n=Lc(e),r=e.ownerDocument.body,o=vs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Rc(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=vs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const oh=25;function cC(e,t){const n=Ut(e),r=ir(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const f=Ic();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Rc(r);if(l<=0){const f=r.ownerDocument,u=f.body,d=getComputedStyle(u),p=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-u.clientWidth-p);h<=oh&&(i-=h)}else l<=oh&&(i+=l);return{width:i,height:s,x:a,y:c}}const lC=new Set(["absolute","fixed"]);function fC(e,t){const n=Ns(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ln(e)?pi(e):En(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ih(e,t,n){let r;if(t==="viewport")r=cC(e,n);else if(t==="document")r=aC(ir(e));else if(He(t))r=fC(t,n);else{const o=_y(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wy(r)}function Sy(e,t){const n=Xn(e);return n===t||!He(n)||Zn(n)?!1:Qt(n).position==="fixed"||Sy(n,t)}function uC(e,t){const n=t.get(e);if(n)return n;let r=di(e,[],!1).filter(a=>He(a)&&Ki(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?Xn(e):e;for(;He(s)&&!Zn(s);){const a=Qt(s),c=rd(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&lC.has(o.position)||Qs(s)&&!c&&Sy(e,s))?r=r.filter(f=>f!==s):o=a,s=Xn(s)}return t.set(e,r),r}function dC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Mc(t)?[]:uC(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,f)=>{const u=ih(t,f,o);return l.top=vs(u.top,l.top),l.right=nh(u.right,l.right),l.bottom=nh(u.bottom,l.bottom),l.left=vs(u.left,l.left),l},ih(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function pC(e){const{width:t,height:n}=Ay(e);return{width:t,height:n}}function hC(e,t,n){const r=ln(t),o=ir(t),i=n==="fixed",s=Ns(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=En(0);function l(){c.x=Rc(o)}if(r||!r&&!i)if((Ki(t)!=="body"||Qs(o))&&(a=Lc(t)),r){const p=Ns(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?Ey(o,a):En(0),u=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:u,y:d,width:s.width,height:s.height}}function Cl(e){return Qt(e).position==="static"}function sh(e,t){if(!ln(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ir(e)===n&&(n=n.ownerDocument.body),n}function ky(e,t){const n=Ut(e);if(Mc(e))return n;if(!ln(e)){let o=Xn(e);for(;o&&!Zn(o);){if(He(o)&&!Cl(o))return o;o=Xn(o)}return n}let r=sh(e,t);for(;r&&KA(r)&&Cl(r);)r=sh(r,t);return r&&Zn(r)&&Cl(r)&&!rd(r)?n:r||QA(e)||n}const mC=async function(e){const t=this.getOffsetParent||ky,n=this.getDimensions,r=await n(e.floating);return{reference:hC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gC(e){return Qt(e).direction==="rtl"}const yC={convertOffsetParentRelativeRectToViewportRelativeRect:iC,getDocumentElement:ir,getClippingRect:dC,getOffsetParent:ky,getElementRects:mC,getClientRects:sC,getDimensions:pC,getScale:pi,isElement:He,isRTL:gC},vC=(e,t,n)=>{const r=new Map,o={platform:yC,...n},i={...o.platform,_c:r};return nC(e,t,{...o,platform:i})};var bC=typeof document<"u",xC=function(){},La=bC?T.useLayoutEffect:xC;function ec(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ec(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ec(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ty(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ah(e,t){const n=Ty(e);return Math.round(t*n)/n}function _l(e){const t=C.useRef(e);return La(()=>{t.current=e}),t}function wC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,u]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=C.useState(r);ec(d,r)||p(r);const[h,g]=C.useState(null),[m,y]=C.useState(null),v=C.useCallback(M=>{M!==_.current&&(_.current=M,g(M))},[]),b=C.useCallback(M=>{M!==E.current&&(E.current=M,y(M))},[]),w=i||h,A=s||m,_=C.useRef(null),E=C.useRef(null),S=C.useRef(f),N=c!=null,P=_l(c),I=_l(o),W=_l(l),j=C.useCallback(()=>{if(!_.current||!E.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),vC(_.current,E.current,M).then(re=>{const L={...re,isPositioned:W.current!==!1};z.current&&!ec(S.current,L)&&(S.current=L,I1.flushSync(()=>{u(L)}))})},[d,t,n,I,W]);La(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(M=>({...M,isPositioned:!1})))},[l]);const z=C.useRef(!1);La(()=>(z.current=!0,()=>{z.current=!1}),[]),La(()=>{if(w&&(_.current=w),A&&(E.current=A),w&&A){if(P.current)return P.current(w,A,j);j()}},[w,A,j,P,N]);const Y=C.useMemo(()=>({reference:_,floating:E,setReference:v,setFloating:b}),[v,b]),Q=C.useMemo(()=>({reference:w,floating:A}),[w,A]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const re=ah(Q.floating,f.x),L=ah(Q.floating,f.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...Ty(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,Q.floating,f.x,f.y]);return C.useMemo(()=>({...f,update:j,refs:Y,elements:Q,floatingStyles:oe}),[f,j,Y,Q,oe])}let AC="div";function CC(e,t){let n=`headlessui-control-${T.useId()}`,[r,o]=FA(),[i,s]=MA(),a=Tc(),{disabled:c=a||!1,...l}=e,f=kc({disabled:c}),u={ref:t,disabled:c||void 0,"aria-disabled":c||void 0},d=Vs();return T.createElement(dA,{value:c},T.createElement(o,{value:r},T.createElement(s,{value:i},T.createElement(SA,{id:n},d({ourProps:u,theirProps:{...l,children:T.createElement(EA,null,typeof l.children=="function"?l.children(f):l.children)},slot:f,defaultTag:AC,name:"Field"})))))}let _C=Ys(CC),EC="input";function SC(e,t){let n=T.useId(),r=fy(),o=Tc(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:c=!1,...l}=e,f=gy(),u=PA(),{isFocused:d,focusProps:p}=sA({autoFocus:a}),{isHovered:h,hoverProps:g}=iA({isDisabled:s}),m=vA({ref:t,id:i,"aria-labelledby":f,"aria-describedby":u,"aria-invalid":c?"true":void 0,disabled:s||void 0,autoFocus:a},p,g),y=kc({disabled:s,invalid:c,hover:h,focus:d,autofocus:a});return Vs()({ourProps:m,theirProps:l,slot:y,defaultTag:EC,name:"Input"})}let kC=Ys(SC);const Ny=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>x.jsx("div",{className:Ee("cnf:w-full cnf:max-w-md cnf:px-4",i),children:x.jsxs(_C,{children:[n&&x.jsx(UA,{className:"cnf:font-medium cnf:text-gray-900",children:n}),r&&x.jsx(DA,{className:"cnf:text-sm cnf:text-secondary",children:r}),x.jsx(kC,{type:e,className:Ee("cnf:mt-3 cnf:block cnf:w-full cnf:rounded-lg cnf:border cnf:border-gray-200 cnf:px-3 cnf:py-1.5 cnf:text-sm/6 cnf:text-gray-800","cnf:data-focus:-outline-offset-2 cnf:data-focus:outline-primary-500",t,o&&"cnf:border-red-500 cnf:focus:border-red-500"),...s})]})}),TC="cnf:whitespace-nowrap cnf:font-normal cnf:flex cnf:items-center cnf:justify-center",NC="cnf:focus:outline cnf:focus:outline-3 cnf:focus:outline-primary-500/[.3]",OC="cnf:disabled:opacity-15 cnf:disabled:pointer-events-none",Oy=e=>e==="grayLight"||e==="warning",Py=(e,t)=>!t||t==="none"?"":e(),PC=(e,t)=>Py(()=>{const n=e==="gray400"?"gray":e,r=Oy(n)?"cnf:active:text-black":"cnf:active:text-white";return e==="primary"?t?`cnf:bg-${n}-800 cnf:text-white`:`cnf:hover:bg-${n}-800 cnf:active:bg-${n}-800 cnf:hover:text-white ${r}`:n==="grayDark"?t?"cnf:bg-gray-800 cnf:text-white":`cnf:hover:bg-gray-800 cnf:active:bg-gray-800 cnf:hover:text-white ${r}`:n==="grayLight"?t?"cnf:bg-gray-50 cnf:text-black":`cnf:hover:bg-gray-50 cnf:active:bg-gray-50 cnf:hover:text-black ${r}`:e==="gray400"?t?`cnf:bg-${n}-500 cnf:text-white`:`cnf:hover:bg-${n}-500 cnf:active:bg-${n}-500 cnf:hover:text-white ${r}`:t?`cnf:bg-${n}-700 cnf:text-white`:`cnf:hover:bg-${n}-600 cnf:active:bg-${n}-700 cnf:hover:text-white ${r}`},e),MC=e=>Py(()=>{const t=Oy(e)?"cnf:text-black":"cnf:text-white";return e==="primary"?`cnf:bg-primary-600 ${t}`:e==="gray400"?`cnf:bg-gray-400 ${t}`:`cnf:bg-${e}-500 ${t}`},e),IC=e=>e&&{dark:"cnf:text-dark cnf:hover:text-dark",yellow:"cnf:text-yellow cnf:hover:text-yellow",gray:"cnf:text-gray-500 cnf:hover:text-gray-800",primary:"cnf:text-primary-600 cnf:hover:text-primary-800",secondary:"cnf:text-secondary-500 cnf:hover:text-secondary-800",success:"cnf:text-success-500 cnf:hover:text-success-800",info:"cnf:text-info-500 cnf:hover:text-info-800",warning:"cnf:text-warning-500 cnf:hover:text-warning-800",danger:"cnf:text-danger-500 cnf:hover:text-danger-800",steel:"cnf:text-steel-500 cnf:hover:text-steel-800",orange:"cnf:text-orange-500 cnf:hover:text-orange-800",purple:"cnf:text-purple-500 cnf:hover:text-purple-800","fiserv-orange":"cnf:text-fiserv-orange-500 cnf:hover:text-fiserv-orange-800",grayDark:"cnf:text-gray-800 cnf:hover:text-gray-900",grayLight:"cnf:text-gray-50 cnf:hover:text-gray-400",gray400:"cnf:text-gray-400 cnf:hover:text-gray-700"}[e]||"",LC=(e,t)=>e&&{dark:t?"cnf:bg-dark cnf:text-white":"cnf:text-dark cnf:hover:bg-dark cnf:hover:text-white",yellow:t?"cnf:bg-yellow cnf:text-white":"cnf:text-yellow cnf:hover:bg-yellow cnf:hover:text-white",gray:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-500 cnf:hover:bg-gray-500 cnf:hover:text-white",primary:t?"cnf:bg-primary-800 cnf:text-white":"cnf:text-primary-600 cnf:hover:bg-primary-800 cnf:hover:text-white",secondary:t?"cnf:bg-secondary-500 cnf:text-white":"cnf:text-secondary-500 cnf:hover:bg-secondary-500 cnf:hover:text-white",success:t?"cnf:bg-success-500 cnf:text-white":"cnf:text-success-500 cnf:hover:bg-success-500 cnf:hover:text-white",info:t?"cnf:bg-info-500 cnf:text-white":"cnf:text-info-500 cnf:hover:bg-info-500 cnf:hover:text-white",warning:t?"cnf:bg-warning-500 cnf:text-white":"cnf:text-warning-500 cnf:hover:bg-warning-500 cnf:hover:text-white",danger:t?"cnf:bg-danger-500 cnf:text-white":"cnf:text-danger-500 cnf:hover:bg-danger-500 cnf:hover:text-white",steel:t?"cnf:bg-steel-500 cnf:text-white":"cnf:text-steel-500 cnf:hover:bg-steel-500 cnf:hover:text-white",orange:t?"cnf:bg-orange-500 cnf:text-white":"cnf:text-orange-500 cnf:hover:bg-orange-500 cnf:hover:text-white",purple:t?"cnf:bg-purple-500 cnf:text-white":"cnf:text-purple-500 cnf:hover:bg-purple-500 cnf:hover:text-white","fiserv-orange":t?"cnf:bg-fiserv-orange-500 cnf:text-white":"cnf:text-fiserv-orange-500 cnf:hover:bg-fiserv-orange-500 cnf:hover:text-white",grayDark:t?"cnf:bg-gray-900 cnf:text-white":"cnf:text-gray-800 cnf:hover:bg-gray-900 cnf:hover:text-white",grayLight:t?"cnf:bg-gray-400 cnf:text-white":"cnf:text-gray-50 cnf:hover:bg-gray-400 cnf:hover:text-white",gray400:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-400 cnf:hover:bg-gray-500 cnf:hover:text-white"}[e]||"",RC=(e,t)=>!e||e==="none"?"":e==="primary"?`cnf:border cnf:border-primary-600 ${t?"":"cnf:text-primary-600"}`:e==="grayDark"?`cnf:border cnf:border-gray-800 ${t?"":"cnf:text-gray-800"}`:e==="grayLight"?`cnf:border cnf:border-gray-50 ${t?"":"cnf:text-gray-400"}`:e==="gray400"?`cnf:border cnf:border-gray-400 ${t?"":"cnf:text-gray-400"}`:`cnf:border cnf:border-${e}-500 ${t?"":`cnf:text-${e}-500`}`,DC=(e,t)=>({solid:MC(e),link:IC(e),linkHoverSolid:LC(e,t),outline:RC(e,t)}),FC={none:"",default:"cnf:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",base:"cnf:w-full cnf:md:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",small:"cnf:min-w-[106px] cnf:h-[30px] cnf:text-sm cnf:px-2",normal:"cnf:min-w-[140px] cnf:h-[38px] cnf:text-base cnf:px-3",large:"cnf:min-w-[160px] cnf:h-[40px] cnf:text-lg cnf:px-3",NormalBlock:"cnf:w-full cnf:h-[40px] cnf:text-lg cnf:px-3",box:"cnf:w-[38px] cnf:h-[38px]",smallCollapse:"cnf:h-[30px] cnf:text-sm cnf:px-2",normalCollapse:"cnf:h-[38px] cnf:text-base cnf:px-3"},jC={none:"",default:"cnf:rounded",pill:"cnf:rounded-pill"},zC=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:c={},primaryColor:l,...f},u)=>{var b;const d=OC,p=/link/.test(o)?null:PC(n,e),h=NC,g=FC[r],m=(b=DC(n,e))==null?void 0:b[o],y=ui(p,m),v=jC[a];return x.jsx("button",{...f,style:{...c,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:l?l+"!important":void 0},type:s,ref:u,className:ui(TC,h,d,g,y,v,i,"cnf:cursor-pointer"),children:t})},je=T.forwardRef(zC),$C=_c.replace(/:root,\s*:host/g,":host"),UC=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>x.jsx(x.Fragment,{children:e&&Nn.createPortal(x.jsxs(Ac.div,{className:Ee("cnf:relative cnf:z-50 cnf:transition cnf:duration-300 cnf:ease-out cnf:data-closed:opacity-0",s),children:[x.jsx("div",{className:"cnf:fixed cnf:inset-0 cnf:bg-black/30"}),x.jsx("div",{className:"cnf:fixed cnf:inset-0 cnf:flex cnf:w-screen cnf:items-center cnf:justify-center cnf:p-4",children:x.jsxs("div",{className:"cnf:max-w-lg cnf:divide-y cnf:divide-gray-100 cnf:bg-white cnf:rounded-sm cnf:shadow-xl",children:[n&&x.jsx("div",{className:"cnf:text-gray-900 cnf:p-4",children:n}),x.jsx("div",{className:"cnf:p-4",children:i}),r||o?x.jsxs("div",{className:"cnf:flex cnf:gap-4 cnf:p-4",children:[r?x.jsx(je,{className:"cnf:flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):x.jsx(x.Fragment,{}),o?x.jsx(je,{className:"cnf:flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):x.jsx(x.Fragment,{})]}):x.jsx(x.Fragment,{})]})}),x.jsx("style",{type:"text/css",children:$C})]}),document.body,"confidence-modal")}),BC=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=T.useState(""),[s,a]=T.useState(!1),[c,l]=T.useState(!1),f=async()=>{if(o)try{a(!0),await e(o),i("")}catch{l(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return x.jsx(UC,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:f,disabled:s||!o||c},children:x.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:items-center cnf:gap-4 cnf:w-[400px]",children:[x.jsxs("div",{children:[x.jsx("div",{className:"cnf:text-center cnf:text-2xl cnf:font-medium",children:c?"User already has access":r||"Access Playbook"}),x.jsx("div",{className:"cnf:text-center",children:c?x.jsxs(x.Fragment,{children:[x.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):x.jsx(x.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),x.jsx(Ny,{disabled:s||c,placeholder:"Enter company email address",onChange:u=>i(u.target.value)})]})})},WC=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[c,l]=T.useState(!1),[f,u]=T.useState(!1);function d(){l(!0)}function p(){l(!1)}const h=async g=>{try{u(!0);const{playbookInstanceId:m,errorCode:y,details:v,message:b}=await N0({bank:"public-sdk",email:g,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(y)throw new Error(`Error initiating playbook: ${b} (Code: ${y}) - Details: ${v}`);o(m,g)}finally{u(!1)}};return x.jsxs(x.Fragment,{children:[t?{buttonNode:t}:x.jsxs(je,{onClick:d,className:Ee(e,"cnf:flex cnf:items-center cnf:gap-1"),color:a,size:n,disabled:i||f,children:[x.jsx("img",{src:p0,alt:"Confidence Logo",className:"cnf:size-4 cnf:object-contain cnf:text-white"}),s]}),x.jsx(BC,{isOpen:c,onClose:p,onConfirm:async g=>{await h(g),p()}})]})};/*!
|
|
24
|
+
`))}else{let d=f.props,m=d==null?void 0:d.className,h=typeof m=="function"?(...y)=>sh(m(...y),c.className):sh(m,c.className),g=h?{className:h}:{},p=py(f.props,ti(El(c,["ref"])));for(let y in u)y in p&&delete u[y];return T.cloneElement(f,Object.assign({},p,u,l,{ref:o(NA(f),l.ref)},g))}return T.createElement(i,Object.assign({},El(c,["ref"]),!ja(i)&&l,!ja(i)&&u),f)}function SA(){let e=T.useRef([]),t=T.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function kA(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function py(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function TA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function Zs(e){var t;return Object.assign(T.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ti(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function El(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function NA(e){return T.version.split(".")[0]>="19"?e.props.ref:e.ref}function ja(e){return e===T.Fragment||e===Symbol.for("react.fragment")}function OA(e){return ja(e.type)}let PA="span";var gy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(gy||{});function MA(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Gs()({ourProps:i,theirProps:o,slot:{},defaultTag:PA,name:"Hidden"})}let IA=Zs(MA),LA=T.createContext(null);function RA(e){let[t,n]=T.useState(null);return T.createElement(LA.Provider,{value:{target:t}},e.children,T.createElement(IA,{features:gy.Hidden,ref:n}))}let yy=T.createContext(void 0);function by(){return T.useContext(yy)}function DA({id:e,children:t}){return T.createElement(yy.Provider,{value:e},t)}function FA(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function vy(e){return FA(e)&&"tagName"in e}function xy(e){return vy(e)&&"accessKey"in e}function jA(e){return xy(e)&&e.nodeName==="INPUT"}function ah(e){return xy(e)&&e.nodeName==="LABEL"}function zA(e){return vy(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let $A=Symbol();function wy(...e){let t=T.useRef(e);T.useEffect(()=>{t.current=e},[e]);let n=Nc(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[$A]))?void 0:n}let Mc=T.createContext(null);Mc.displayName="DescriptionContext";function Ay(){let e=T.useContext(Mc);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ay),t}return e}function BA(){var e,t;return(t=(e=T.useContext(Mc))==null?void 0:e.value)!=null?t:void 0}function UA(){let[e,t]=T.useState([]);return[e.length>0?e.join(" "):void 0,T.useMemo(()=>function(n){let r=Nc(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}))),o=T.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return T.createElement(Mc.Provider,{value:o},n.children)},[t])]}let WA="p";function KA(e,t){let n=T.useId(),r=Pc(),{id:o=`headlessui-description-${n}`,...i}=e,s=Ay(),a=wy(t);ad(()=>s.register(o),[o,s.register]);let c=Oc({...s.slot,disabled:r||!1}),l={ref:a,...s.props,id:o};return Gs()({ourProps:l,theirProps:i,slot:c,defaultTag:WA,name:s.name||"Description"})}let HA=Zs(KA),qA=Object.assign(HA,{}),Ic=T.createContext(null);Ic.displayName="LabelContext";function Cy(){let e=T.useContext(Ic);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Cy),t}return e}function _y(e){var t,n,r;let o=(n=(t=T.useContext(Ic))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function VA({inherit:e=!1}={}){let t=_y(),[n,r]=T.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,T.useMemo(()=>function(i){let s=Nc(c=>(r(l=>[...l,c]),()=>r(l=>{let f=l.slice(),u=f.indexOf(c);return u!==-1&&f.splice(u,1),f}))),a=T.useMemo(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return T.createElement(Ic.Provider,{value:a},i.children)},[r])]}let YA="label";function QA(e,t){var n;let r=T.useId(),o=Cy(),i=by(),s=Pc(),{id:a=`headlessui-label-${r}`,htmlFor:c=i??((n=o.props)==null?void 0:n.htmlFor),passive:l=!1,...f}=e,u=wy(t);ad(()=>o.register(a),[a,o.register]);let d=Nc(g=>{let p=g.currentTarget;if(!(g.target!==g.currentTarget&&zA(g.target))&&(ah(p)&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),ah(p))){let y=document.getElementById(p.htmlFor);if(y){let b=y.getAttribute("disabled");if(b==="true"||b==="")return;let x=y.getAttribute("aria-disabled");if(x==="true"||x==="")return;(jA(y)&&(y.type==="file"||y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),m=Oc({...o.slot,disabled:s||!1}),h={ref:u,...o.props,id:a,htmlFor:c,onClick:d};return l&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in f&&delete f.onClick),Gs()({ourProps:h,theirProps:f,slot:m,defaultTag:c?YA:"div",name:o.name||"Label"})}let GA=Zs(QA),ZA=Object.assign(GA,{});function Lc(){return typeof window<"u"}function qi(e){return Ey(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(Ey(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ey(e){return Lc()?e instanceof Node||e instanceof Bt(e).Node:!1}function He(e){return Lc()?e instanceof Element||e instanceof Bt(e).Element:!1}function fn(e){return Lc()?e instanceof HTMLElement||e instanceof Bt(e).HTMLElement:!1}function Rf(e){return!Lc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot}const JA=new Set(["inline","contents"]);function Js(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!JA.has(o)}const XA=new Set(["table","td","th"]);function eC(e){return XA.has(qi(e))}const tC=[":popover-open",":modal"];function Rc(e){return tC.some(t=>{try{return e.matches(t)}catch{return!1}})}const nC=["transform","translate","scale","rotate","perspective"],rC=["transform","translate","scale","rotate","perspective","filter"],oC=["paint","layout","strict","content"];function cd(e){const t=Dc(),n=He(e)?Gt(e):e;return nC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rC.some(r=>(n.willChange||"").includes(r))||oC.some(r=>(n.contain||"").includes(r))}function iC(e){let t=tr(e);for(;fn(t)&&!Xn(t);){if(cd(t))return t;if(Rc(t))return null;t=tr(t)}return null}function Dc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sC=new Set(["html","body","#document"]);function Xn(e){return sC.has(qi(e))}function Gt(e){return Bt(e).getComputedStyle(e)}function Fc(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tr(e){if(qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rf(e)&&e.host||ar(e);return Rf(t)?t.host:t}function Sy(e){const t=tr(e);return Xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:fn(t)&&Js(t)?t:Sy(t)}function hi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Sy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Bt(o);if(i){const a=Df(s);return t.concat(s,s.visualViewport||[],Js(o)?o:[],a&&n?hi(a):[])}return t.concat(o,hi(o,[],n))}function Df(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ch=Math.min,xs=Math.max,oc=Math.round,kn=e=>({x:e,y:e});function ky(e){return e.split("-")[0]}function aC(e){return e.split("-")[1]}function cC(e){return e==="x"?"y":"x"}function lC(e){return e==="y"?"height":"width"}const fC=new Set(["top","bottom"]);function Ty(e){return fC.has(ky(e))?"y":"x"}function uC(e){return cC(Ty(e))}function Ny(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function lh(e,t,n){let{reference:r,floating:o}=e;const i=Ty(t),s=uC(t),a=lC(s),c=ky(t),l=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}switch(aC(t)){case"start":m[s]-=d*(n&&l?-1:1);break;case"end":m[s]+=d*(n&&l?-1:1);break}return m}const dC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=lh(l,r,c),d=r,m={},h=0;for(let g=0;g<a.length;g++){const{name:p,fn:y}=a[g],{x:b,y:x,data:w,reset:A}=await y({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});f=b??f,u=x??u,m={...m,[p]:{...m[p],...w}},A&&h<=50&&(h++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(l=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:u}=lh(l,d,c)),g=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:m}};function Oy(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=oc(n)!==i||oc(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Py(e){return He(e)?e:e.contextElement}function pi(e){const t=Py(e);if(!fn(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Oy(t);let s=(i?oc(n.width):n.width)/r,a=(i?oc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const mC=kn(0);function My(e){const t=Bt(e);return!Dc()||!t.visualViewport?mC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bt(e)?!1:t}function Ps(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Py(e);let s=kn(1);t&&(r?He(r)&&(s=pi(r)):s=pi(e));const a=hC(i,n,r)?My(i):kn(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const d=Bt(i),m=r&&He(r)?Bt(r):r;let h=d,g=Df(h);for(;g&&r&&m!==h;){const p=pi(g),y=g.getBoundingClientRect(),b=Gt(g),x=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*p.x,w=y.top+(g.clientTop+parseFloat(b.paddingTop))*p.y;c*=p.x,l*=p.y,f*=p.x,u*=p.y,c+=x,l+=w,h=Bt(g),g=Df(h)}}return Ny({width:f,height:u,x:c,y:l})}function jc(e,t){const n=Fc(e).scrollLeft;return t?t.left+n:Ps(ar(e)).left+n}function Iy(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function pC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ar(r),a=t?Rc(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=kn(1);const f=kn(0),u=fn(r);if((u||!u&&!i)&&((qi(r)!=="body"||Js(s))&&(c=Fc(r)),fn(r))){const m=Ps(r);l=pi(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const d=s&&!u&&!i?Iy(s,c):kn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+d.x,y:n.y*l.y-c.scrollTop*l.y+f.y+d.y}}function gC(e){return Array.from(e.getClientRects())}function yC(e){const t=ar(e),n=Fc(e),r=e.ownerDocument.body,o=xs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=xs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jc(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(s+=xs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const fh=25;function bC(e,t){const n=Bt(e),r=ar(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const f=Dc();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=jc(r);if(l<=0){const f=r.ownerDocument,u=f.body,d=getComputedStyle(u),m=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-u.clientWidth-m);h<=fh&&(i-=h)}else l<=fh&&(i+=l);return{width:i,height:s,x:a,y:c}}const vC=new Set(["absolute","fixed"]);function xC(e,t){const n=Ps(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=fn(e)?pi(e):kn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function uh(e,t,n){let r;if(t==="viewport")r=bC(e,n);else if(t==="document")r=yC(ar(e));else if(He(t))r=xC(t,n);else{const o=My(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ny(r)}function Ly(e,t){const n=tr(e);return n===t||!He(n)||Xn(n)?!1:Gt(n).position==="fixed"||Ly(n,t)}function wC(e,t){const n=t.get(e);if(n)return n;let r=hi(e,[],!1).filter(a=>He(a)&&qi(a)!=="body"),o=null;const i=Gt(e).position==="fixed";let s=i?tr(e):e;for(;He(s)&&!Xn(s);){const a=Gt(s),c=cd(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&vC.has(o.position)||Js(s)&&!c&&Ly(e,s))?r=r.filter(f=>f!==s):o=a,s=tr(s)}return t.set(e,r),r}function AC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Rc(t)?[]:wC(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,f)=>{const u=uh(t,f,o);return l.top=xs(u.top,l.top),l.right=ch(u.right,l.right),l.bottom=ch(u.bottom,l.bottom),l.left=xs(u.left,l.left),l},uh(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function CC(e){const{width:t,height:n}=Oy(e);return{width:t,height:n}}function _C(e,t,n){const r=fn(t),o=ar(t),i=n==="fixed",s=Ps(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=kn(0);function l(){c.x=jc(o)}if(r||!r&&!i)if((qi(t)!=="body"||Js(o))&&(a=Fc(t)),r){const m=Ps(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?Iy(o,a):kn(0),u=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:u,y:d,width:s.width,height:s.height}}function Sl(e){return Gt(e).position==="static"}function dh(e,t){if(!fn(e)||Gt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ar(e)===n&&(n=n.ownerDocument.body),n}function Ry(e,t){const n=Bt(e);if(Rc(e))return n;if(!fn(e)){let o=tr(e);for(;o&&!Xn(o);){if(He(o)&&!Sl(o))return o;o=tr(o)}return n}let r=dh(e,t);for(;r&&eC(r)&&Sl(r);)r=dh(r,t);return r&&Xn(r)&&Sl(r)&&!cd(r)?n:r||iC(e)||n}const EC=async function(e){const t=this.getOffsetParent||Ry,n=this.getDimensions,r=await n(e.floating);return{reference:_C(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function SC(e){return Gt(e).direction==="rtl"}const kC={convertOffsetParentRelativeRectToViewportRelativeRect:pC,getDocumentElement:ar,getClippingRect:AC,getOffsetParent:Ry,getElementRects:EC,getClientRects:gC,getDimensions:CC,getScale:pi,isElement:He,isRTL:SC},TC=(e,t,n)=>{const r=new Map,o={platform:kC,...n},i={...o.platform,_c:r};return dC(e,t,{...o,platform:i})};var NC=typeof document<"u",OC=function(){},za=NC?T.useLayoutEffect:OC;function ic(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ic(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ic(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Dy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mh(e,t){const n=Dy(e);return Math.round(t*n)/n}function kl(e){const t=C.useRef(e);return za(()=>{t.current=e}),t}function PC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,u]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=C.useState(r);ic(d,r)||m(r);const[h,g]=C.useState(null),[p,y]=C.useState(null),b=C.useCallback(M=>{M!==E.current&&(E.current=M,g(M))},[]),x=C.useCallback(M=>{M!==S.current&&(S.current=M,y(M))},[]),w=i||h,A=s||p,E=C.useRef(null),S=C.useRef(null),_=C.useRef(f),N=c!=null,P=kl(c),I=kl(o),W=kl(l),j=C.useCallback(()=>{if(!E.current||!S.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),TC(E.current,S.current,M).then(re=>{const L={...re,isPositioned:W.current!==!1};z.current&&!ic(_.current,L)&&(_.current=L,U1.flushSync(()=>{u(L)}))})},[d,t,n,I,W]);za(()=>{l===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(M=>({...M,isPositioned:!1})))},[l]);const z=C.useRef(!1);za(()=>(z.current=!0,()=>{z.current=!1}),[]),za(()=>{if(w&&(E.current=w),A&&(S.current=A),w&&A){if(P.current)return P.current(w,A,j);j()}},[w,A,j,P,N]);const Y=C.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:x}),[b,x]),Q=C.useMemo(()=>({reference:w,floating:A}),[w,A]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const re=mh(Q.floating,f.x),L=mh(Q.floating,f.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...Dy(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,Q.floating,f.x,f.y]);return C.useMemo(()=>({...f,update:j,refs:Y,elements:Q,floatingStyles:oe}),[f,j,Y,Q,oe])}let MC="div";function IC(e,t){let n=`headlessui-control-${T.useId()}`,[r,o]=VA(),[i,s]=UA(),a=Pc(),{disabled:c=a||!1,...l}=e,f=Oc({disabled:c}),u={ref:t,disabled:c||void 0,"aria-disabled":c||void 0},d=Gs();return T.createElement(AA,{value:c},T.createElement(o,{value:r},T.createElement(s,{value:i},T.createElement(DA,{id:n},d({ourProps:u,theirProps:{...l,children:T.createElement(RA,null,typeof l.children=="function"?l.children(f):l.children)},slot:f,defaultTag:MC,name:"Field"})))))}let LC=Zs(IC),RC="input";function DC(e,t){let n=T.useId(),r=by(),o=Pc(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:c=!1,...l}=e,f=_y(),u=BA(),{isFocused:d,focusProps:m}=gA({autoFocus:a}),{isHovered:h,hoverProps:g}=pA({isDisabled:s}),p=TA({ref:t,id:i,"aria-labelledby":f,"aria-describedby":u,"aria-invalid":c?"true":void 0,disabled:s||void 0,autoFocus:a},m,g),y=Oc({disabled:s,invalid:c,hover:h,focus:d,autofocus:a});return Gs()({ourProps:p,theirProps:l,slot:y,defaultTag:RC,name:"Input"})}let FC=Zs(DC);const Fy=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>v.jsx("div",{className:xe("cnf:w-full cnf:max-w-md cnf:px-4",i),children:v.jsxs(LC,{children:[n&&v.jsx(ZA,{className:"cnf:font-medium cnf:text-gray-900",children:n}),r&&v.jsx(qA,{className:"cnf:text-sm cnf:text-secondary",children:r}),v.jsx(FC,{type:e,className:xe("cnf:mt-3 cnf:block cnf:w-full cnf:rounded-lg cnf:border cnf:border-gray-200 cnf:px-3 cnf:py-1.5 cnf:text-sm/6 cnf:text-gray-800","cnf:data-focus:-outline-offset-2 cnf:data-focus:outline-primary-500",t,o&&"cnf:border-red-500 cnf:focus:border-red-500"),...s})]})}),jC="cnf:whitespace-nowrap cnf:font-normal cnf:flex cnf:items-center cnf:justify-center",zC="cnf:focus:outline cnf:focus:outline-3 cnf:focus:outline-primary-500/[.3]",$C="cnf:disabled:opacity-15 cnf:disabled:pointer-events-none",jy=e=>e==="grayLight"||e==="warning",zy=(e,t)=>!t||t==="none"?"":e(),BC=(e,t)=>zy(()=>{const n=e==="gray400"?"gray":e,r=jy(n)?"cnf:active:text-black":"cnf:active:text-white";return e==="primary"?t?`cnf:bg-${n}-800 cnf:text-white`:`cnf:hover:bg-${n}-800 cnf:active:bg-${n}-800 cnf:hover:text-white ${r}`:n==="grayDark"?t?"cnf:bg-gray-800 cnf:text-white":`cnf:hover:bg-gray-800 cnf:active:bg-gray-800 cnf:hover:text-white ${r}`:n==="grayLight"?t?"cnf:bg-gray-50 cnf:text-black":`cnf:hover:bg-gray-50 cnf:active:bg-gray-50 cnf:hover:text-black ${r}`:e==="gray400"?t?`cnf:bg-${n}-500 cnf:text-white`:`cnf:hover:bg-${n}-500 cnf:active:bg-${n}-500 cnf:hover:text-white ${r}`:t?`cnf:bg-${n}-700 cnf:text-white`:`cnf:hover:bg-${n}-600 cnf:active:bg-${n}-700 cnf:hover:text-white ${r}`},e),UC=e=>zy(()=>{const t=jy(e)?"cnf:text-black":"cnf:text-white";return e==="primary"?`cnf:bg-primary-600 ${t}`:e==="gray400"?`cnf:bg-gray-400 ${t}`:`cnf:bg-${e}-500 ${t}`},e),WC=e=>e&&{dark:"cnf:text-dark cnf:hover:text-dark",yellow:"cnf:text-yellow cnf:hover:text-yellow",gray:"cnf:text-gray-500 cnf:hover:text-gray-800",primary:"cnf:text-primary-600 cnf:hover:text-primary-800",secondary:"cnf:text-secondary-500 cnf:hover:text-secondary-800",success:"cnf:text-success-500 cnf:hover:text-success-800",info:"cnf:text-info-500 cnf:hover:text-info-800",warning:"cnf:text-warning-500 cnf:hover:text-warning-800",danger:"cnf:text-danger-500 cnf:hover:text-danger-800",steel:"cnf:text-steel-500 cnf:hover:text-steel-800",orange:"cnf:text-orange-500 cnf:hover:text-orange-800",purple:"cnf:text-purple-500 cnf:hover:text-purple-800","fiserv-orange":"cnf:text-fiserv-orange-500 cnf:hover:text-fiserv-orange-800",grayDark:"cnf:text-gray-800 cnf:hover:text-gray-900",grayLight:"cnf:text-gray-50 cnf:hover:text-gray-400",gray400:"cnf:text-gray-400 cnf:hover:text-gray-700"}[e]||"",KC=(e,t)=>e&&{dark:t?"cnf:bg-dark cnf:text-white":"cnf:text-dark cnf:hover:bg-dark cnf:hover:text-white",yellow:t?"cnf:bg-yellow cnf:text-white":"cnf:text-yellow cnf:hover:bg-yellow cnf:hover:text-white",gray:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-500 cnf:hover:bg-gray-500 cnf:hover:text-white",primary:t?"cnf:bg-primary-800 cnf:text-white":"cnf:text-primary-600 cnf:hover:bg-primary-800 cnf:hover:text-white",secondary:t?"cnf:bg-secondary-500 cnf:text-white":"cnf:text-secondary-500 cnf:hover:bg-secondary-500 cnf:hover:text-white",success:t?"cnf:bg-success-500 cnf:text-white":"cnf:text-success-500 cnf:hover:bg-success-500 cnf:hover:text-white",info:t?"cnf:bg-info-500 cnf:text-white":"cnf:text-info-500 cnf:hover:bg-info-500 cnf:hover:text-white",warning:t?"cnf:bg-warning-500 cnf:text-white":"cnf:text-warning-500 cnf:hover:bg-warning-500 cnf:hover:text-white",danger:t?"cnf:bg-danger-500 cnf:text-white":"cnf:text-danger-500 cnf:hover:bg-danger-500 cnf:hover:text-white",steel:t?"cnf:bg-steel-500 cnf:text-white":"cnf:text-steel-500 cnf:hover:bg-steel-500 cnf:hover:text-white",orange:t?"cnf:bg-orange-500 cnf:text-white":"cnf:text-orange-500 cnf:hover:bg-orange-500 cnf:hover:text-white",purple:t?"cnf:bg-purple-500 cnf:text-white":"cnf:text-purple-500 cnf:hover:bg-purple-500 cnf:hover:text-white","fiserv-orange":t?"cnf:bg-fiserv-orange-500 cnf:text-white":"cnf:text-fiserv-orange-500 cnf:hover:bg-fiserv-orange-500 cnf:hover:text-white",grayDark:t?"cnf:bg-gray-900 cnf:text-white":"cnf:text-gray-800 cnf:hover:bg-gray-900 cnf:hover:text-white",grayLight:t?"cnf:bg-gray-400 cnf:text-white":"cnf:text-gray-50 cnf:hover:bg-gray-400 cnf:hover:text-white",gray400:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-400 cnf:hover:bg-gray-500 cnf:hover:text-white"}[e]||"",HC=(e,t)=>!e||e==="none"?"":e==="primary"?`cnf:border cnf:border-primary-600 ${t?"":"cnf:text-primary-600"}`:e==="grayDark"?`cnf:border cnf:border-gray-800 ${t?"":"cnf:text-gray-800"}`:e==="grayLight"?`cnf:border cnf:border-gray-50 ${t?"":"cnf:text-gray-400"}`:e==="gray400"?`cnf:border cnf:border-gray-400 ${t?"":"cnf:text-gray-400"}`:`cnf:border cnf:border-${e}-500 ${t?"":`cnf:text-${e}-500`}`,qC=(e,t)=>({solid:UC(e),link:WC(e),linkHoverSolid:KC(e,t),outline:HC(e,t)}),VC={none:"",default:"cnf:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",base:"cnf:w-full cnf:md:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",small:"cnf:min-w-[106px] cnf:h-[30px] cnf:text-sm cnf:px-2",normal:"cnf:min-w-[140px] cnf:h-[38px] cnf:text-base cnf:px-3",large:"cnf:min-w-[160px] cnf:h-[40px] cnf:text-lg cnf:px-3",NormalBlock:"cnf:w-full cnf:h-[40px] cnf:text-lg cnf:px-3",box:"cnf:w-[38px] cnf:h-[38px]",smallCollapse:"cnf:h-[30px] cnf:text-sm cnf:px-2",normalCollapse:"cnf:h-[38px] cnf:text-base cnf:px-3"},YC={none:"",default:"cnf:rounded",pill:"cnf:rounded-pill"},QC=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:c={},primaryColor:l,...f},u)=>{var x;const d=$C,m=/link/.test(o)?null:BC(n,e),h=zC,g=VC[r],p=(x=qC(n,e))==null?void 0:x[o],y=mi(m,p),b=YC[a];return v.jsx("button",{...f,style:{...c,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:l?l+"!important":void 0},type:s,ref:u,className:mi(jC,h,d,g,y,b,i,"cnf:cursor-pointer"),children:t})},je=T.forwardRef(QC),GC=kc.replace(/:root,\s*:host/g,":host"),ZC=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>v.jsx(v.Fragment,{children:e&&Wt.createPortal(v.jsxs(Uo.div,{className:xe("cnf:relative cnf:z-50 cnf:transition cnf:duration-300 cnf:ease-out cnf:data-closed:opacity-0",s),children:[v.jsx("div",{className:"cnf:fixed cnf:inset-0 cnf:bg-black/30"}),v.jsx("div",{className:"cnf:fixed cnf:inset-0 cnf:flex cnf:w-screen cnf:items-center cnf:justify-center cnf:p-4",children:v.jsxs("div",{className:"cnf:max-w-lg cnf:divide-y cnf:divide-gray-100 cnf:bg-white cnf:rounded-sm cnf:shadow-xl",children:[n&&v.jsx("div",{className:"cnf:text-gray-900 cnf:p-4",children:n}),v.jsx("div",{className:"cnf:p-4",children:i}),r||o?v.jsxs("div",{className:"cnf:flex cnf:gap-4 cnf:p-4",children:[r?v.jsx(je,{className:"cnf:flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):v.jsx(v.Fragment,{}),o?v.jsx(je,{className:"cnf:flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):v.jsx(v.Fragment,{})]}):v.jsx(v.Fragment,{})]})}),v.jsx("style",{type:"text/css",children:GC})]}),document.body,"confidence-modal")}),JC=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=T.useState(""),[s,a]=T.useState(!1),[c,l]=T.useState(!1),f=async()=>{if(o)try{a(!0),await e(o),i("")}catch{l(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return v.jsx(ZC,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:f,disabled:s||!o||c},children:v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:items-center cnf:gap-4 cnf:w-[400px]",children:[v.jsxs("div",{children:[v.jsx("div",{className:"cnf:text-center cnf:text-2xl cnf:font-medium",children:c?"User already has access":r||"Access Playbook"}),v.jsx("div",{className:"cnf:text-center",children:c?v.jsxs(v.Fragment,{children:[v.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):v.jsx(v.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),v.jsx(Fy,{disabled:s||c,placeholder:"Enter company email address",onChange:u=>i(u.target.value)})]})})},XC=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[c,l]=T.useState(!1),[f,u]=T.useState(!1);function d(){l(!0)}function m(){l(!1)}const h=async g=>{try{u(!0);const{playbookInstanceId:p,errorCode:y,details:b,message:x}=await F0({bank:"public-sdk",email:g,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(y)throw new Error(`Error initiating playbook: ${x} (Code: ${y}) - Details: ${b}`);o(p,g)}finally{u(!1)}};return v.jsxs(v.Fragment,{children:[t?{buttonNode:t}:v.jsxs(je,{onClick:d,className:xe(e,"cnf:flex cnf:items-center cnf:gap-1"),color:a,size:n,disabled:i||f,children:[v.jsx("img",{src:Qu,alt:"Confidence Logo",className:"cnf:size-4 cnf:object-contain cnf:text-white"}),s]}),v.jsx(JC,{isOpen:c,onClose:m,onConfirm:async g=>{await h(g),m()}})]})};/*!
|
|
25
25
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
26
26
|
* License - https://fontawesome.com/license (Commercial License)
|
|
27
27
|
* Copyright 2024 Fonticons, Inc.
|
|
28
|
-
*/const KC={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},HC={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]},qC={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},VC=qC,YC={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},QC={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},My={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},GC=My,ZC={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Iy=ZC,JC={prefix:"fas",iconName:"square-exclamation",icon:[448,512,["exclamation-square"],"f321","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm160 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM192 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Ly={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Ry=Ly,XC={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]},e_={prefix:"fas",iconName:"file-powerpoint",icon:[384,512,[],"f1c4","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM136 240l68 0c42 0 76 34 76 76s-34 76-76 76l-44 0 0 32c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-104c0-13.3 10.7-24 24-24zm68 104c15.5 0 28-12.5 28-28s-12.5-28-28-28l-44 0 0 56 44 0z"]},t_={prefix:"fas",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM96 48c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm-6.3 71.8c3.7-14 16.4-23.8 30.9-23.8l14.8 0c14.5 0 27.2 9.7 30.9 23.8l23.5 88.2c1.4 5.4 2.1 10.9 2.1 16.4c0 35.2-28.8 63.7-64 63.7s-64-28.5-64-63.7c0-5.5 .7-11.1 2.1-16.4l23.5-88.2zM112 336c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0z"]},n_=t_,ch={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]},r_={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},o_={prefix:"fas",iconName:"file-audio",icon:[384,512,[],"f1c7","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zm2 226.3c37.1 22.4 62 63.1 62 109.7s-24.9 87.3-62 109.7c-7.6 4.6-17.4 2.1-22-5.4s-2.1-17.4 5.4-22C269.4 401.5 288 370.9 288 336s-18.6-65.5-46.5-82.3c-7.6-4.6-10-14.4-5.4-22s14.4-10 22-5.4zm-91.9 30.9c6 2.5 9.9 8.3 9.9 14.8l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L113.4 376 80 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l33.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5zm51 34.9c6.6-5.9 16.7-5.3 22.6 1.3C249.8 304.6 256 319.6 256 336s-6.2 31.4-16.3 42.7c-5.9 6.6-16 7.1-22.6 1.3s-7.1-16-1.3-22.6c5.1-5.7 8.1-13.1 8.1-21.3s-3.1-15.7-8.1-21.3c-5.9-6.6-5.3-16.7 1.3-22.6z"]},i_={prefix:"fas",iconName:"file-code",icon:[384,512,[],"f1c9","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM153 289l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L71 337c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM265 255l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},s_={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},a_={prefix:"fas",iconName:"file-video",icon:[384,512,[],"f1c8","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96zM300.9 397.9L256 368l0-64 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1z"]},c_={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]},Dy={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},l_=Dy,f_={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},u_={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},Fy={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Dc={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},jy=Dc,zy={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},$y={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},d_=$y,p_={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};/*!
|
|
28
|
+
*/const e_={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},t_={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]},n_={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},r_=n_,o_={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},i_={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},$y={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},s_=$y,a_={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},By=a_,c_={prefix:"fas",iconName:"square-exclamation",icon:[448,512,["exclamation-square"],"f321","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm160 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM192 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Uy={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Wy=Uy,l_={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]},f_={prefix:"fas",iconName:"file-powerpoint",icon:[384,512,[],"f1c4","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM136 240l68 0c42 0 76 34 76 76s-34 76-76 76l-44 0 0 32c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-104c0-13.3 10.7-24 24-24zm68 104c15.5 0 28-12.5 28-28s-12.5-28-28-28l-44 0 0 56 44 0z"]},u_={prefix:"fas",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM96 48c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm-6.3 71.8c3.7-14 16.4-23.8 30.9-23.8l14.8 0c14.5 0 27.2 9.7 30.9 23.8l23.5 88.2c1.4 5.4 2.1 10.9 2.1 16.4c0 35.2-28.8 63.7-64 63.7s-64-28.5-64-63.7c0-5.5 .7-11.1 2.1-16.4l23.5-88.2zM112 336c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0z"]},d_=u_,hh={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]},m_={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},h_={prefix:"fas",iconName:"file-audio",icon:[384,512,[],"f1c7","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zm2 226.3c37.1 22.4 62 63.1 62 109.7s-24.9 87.3-62 109.7c-7.6 4.6-17.4 2.1-22-5.4s-2.1-17.4 5.4-22C269.4 401.5 288 370.9 288 336s-18.6-65.5-46.5-82.3c-7.6-4.6-10-14.4-5.4-22s14.4-10 22-5.4zm-91.9 30.9c6 2.5 9.9 8.3 9.9 14.8l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L113.4 376 80 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l33.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5zm51 34.9c6.6-5.9 16.7-5.3 22.6 1.3C249.8 304.6 256 319.6 256 336s-6.2 31.4-16.3 42.7c-5.9 6.6-16 7.1-22.6 1.3s-7.1-16-1.3-22.6c5.1-5.7 8.1-13.1 8.1-21.3s-3.1-15.7-8.1-21.3c-5.9-6.6-5.3-16.7 1.3-22.6z"]},p_={prefix:"fas",iconName:"file-code",icon:[384,512,[],"f1c9","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM153 289l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L71 337c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM265 255l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},g_={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},y_={prefix:"fas",iconName:"file-video",icon:[384,512,[],"f1c8","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96zM300.9 397.9L256 368l0-64 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1z"]},b_={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]},Ky={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},v_=Ky,x_={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},w_={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},Hy={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},A_={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},zc={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},qy=zc,Vy={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Yy={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},C_=Yy,__={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};/*!
|
|
29
29
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
30
30
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
31
31
|
* Copyright 2024 Fonticons, Inc.
|
|
32
|
-
*/function h_(e,t,n){return(t=g_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){h_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m_(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g_(e){var t=m_(e,"string");return typeof t=="symbol"?t:t+""}const fh=()=>{};let od={},Uy={},By=null,Wy={mark:fh,measure:fh};try{typeof window<"u"&&(od=window),typeof document<"u"&&(Uy=document),typeof MutationObserver<"u"&&(By=MutationObserver),typeof performance<"u"&&(Wy=performance)}catch{}const{userAgent:uh=""}=od.navigator||{},Ir=od,$e=Uy,dh=By,va=Wy;Ir.document;const sr=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",Ky=~uh.indexOf("MSIE")||~uh.indexOf("Trident/");var y_=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,v_=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Hy={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},b_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},qy=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Fc="duotone",x_="sharp",w_="sharp-duotone",Vy=[wt,Fc,x_,w_],A_={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},C_={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},__=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),E_={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},S_=["fak","fa-kit","fakd","fa-kit-duotone"],ph={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},k_=["kit"],T_={kit:{"fa-kit":"fak"}},N_=["fak","fakd"],O_={kit:{fak:"fa-kit"}},hh={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ba={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},P_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],M_=["fak","fa-kit","fakd","fa-kit-duotone"],I_={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},L_={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},R_={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Lf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},D_=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Rf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...P_,...D_],F_=["solid","regular","light","thin","duotone","brands"],Yy=[1,2,3,4,5,6,7,8,9,10],j_=Yy.concat([11,12,13,14,15,16,17,18,19,20]),z_=[...Object.keys(R_),...F_,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ba.GROUP,ba.SWAP_OPACITY,ba.PRIMARY,ba.SECONDARY].concat(Yy.map(e=>"".concat(e,"x"))).concat(j_.map(e=>"w-".concat(e))),$_={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const er="___FONT_AWESOME___",Df=16,Qy="fa",Gy="svg-inline--fa",ko="data-fa-i2svg",Ff="data-fa-pseudo-element",U_="data-fa-pseudo-element-pending",id="data-prefix",sd="data-icon",mh="fontawesome-i2svg",B_="async",W_=["HTML","HEAD","STYLE","SCRIPT"],Zy=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Gs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jy=H({},Hy);Jy[wt]=H(H(H(H({},{"fa-duotone":"duotone"}),Hy[wt]),ph.kit),ph["kit-duotone"]);const K_=Gs(Jy),jf=H({},E_);jf[wt]=H(H(H(H({},{duotone:"fad"}),jf[wt]),hh.kit),hh["kit-duotone"]);const gh=Gs(jf),zf=H({},Lf);zf[wt]=H(H({},zf[wt]),O_.kit);const ad=Gs(zf),$f=H({},L_);$f[wt]=H(H({},$f[wt]),T_.kit);Gs($f);const H_=y_,Xy="fa-layers-text",q_=v_,V_=H({},A_);Gs(V_);const Y_=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],El=b_,Q_=[...k_,...z_],bs=Ir.FontAwesomeConfig||{};function G_(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Z_(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}$e&&typeof $e.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=Z_(G_(n));o!=null&&(bs[r]=o)});const ev={styleDefault:"solid",familyDefault:wt,cssPrefix:Qy,replacementClass:Gy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};bs.familyPrefix&&(bs.cssPrefix=bs.familyPrefix);const Mi=H(H({},ev),bs);Mi.autoReplaceSvg||(Mi.observeMutations=!1);const fe={};Object.keys(ev).forEach(e=>{Object.defineProperty(fe,e,{enumerable:!0,set:function(t){Mi[e]=t,xs.forEach(n=>n(fe))},get:function(){return Mi[e]}})});Object.defineProperty(fe,"familyPrefix",{enumerable:!0,set:function(e){Mi.cssPrefix=e,xs.forEach(t=>t(fe))},get:function(){return Mi.cssPrefix}});Ir.FontAwesomeConfig=fe;const xs=[];function J_(e){return xs.push(e),()=>{xs.splice(xs.indexOf(e),1)}}const hr=Df,An={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function X_(e){if(!e||!sr)return;const t=$e.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$e.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return $e.head.insertBefore(t,r),e}const eE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Os(){let e=12,t="";for(;e-- >0;)t+=eE[Math.random()*62|0];return t}function Hi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function cd(e){return e.classList?Hi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function tv(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function tE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(tv(e[n]),'" '),"").trim()}function jc(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function ld(e){return e.size!==An.size||e.x!==An.x||e.y!==An.y||e.rotate!==An.rotate||e.flipX||e.flipY}function nE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(i," ").concat(s," ").concat(a)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:c,path:l}}function rE(e){let{transform:t,width:n=Df,height:r=Df,startCentered:o=!1}=e,i="";return o&&Ky?i+="translate(".concat(t.x/hr-n/2,"em, ").concat(t.y/hr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/hr,"em), calc(-50% + ").concat(t.y/hr,"em)) "):i+="translate(".concat(t.x/hr,"em, ").concat(t.y/hr,"em) "),i+="scale(".concat(t.size/hr*(t.flipX?-1:1),", ").concat(t.size/hr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var oE=`:root, :host {
|
|
32
|
+
*/function E_(e,t,n){return(t=k_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(n),!0).forEach(function(r){E_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S_(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k_(e){var t=S_(e,"string");return typeof t=="symbol"?t:t+""}const gh=()=>{};let ld={},Qy={},Gy=null,Zy={mark:gh,measure:gh};try{typeof window<"u"&&(ld=window),typeof document<"u"&&(Qy=document),typeof MutationObserver<"u"&&(Gy=MutationObserver),typeof performance<"u"&&(Zy=performance)}catch{}const{userAgent:yh=""}=ld.navigator||{},Rr=ld,$e=Qy,bh=Gy,Ca=Zy;Rr.document;const cr=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",Jy=~yh.indexOf("MSIE")||~yh.indexOf("Trident/");var T_=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,N_=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Xy={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},O_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},eb=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",$c="duotone",P_="sharp",M_="sharp-duotone",tb=[wt,$c,P_,M_],I_={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},L_={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},R_=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),D_={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},F_=["fak","fa-kit","fakd","fa-kit-duotone"],vh={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},j_=["kit"],z_={kit:{"fa-kit":"fak"}},$_=["fak","fakd"],B_={kit:{fak:"fa-kit"}},xh={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},_a={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},U_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],W_=["fak","fa-kit","fakd","fa-kit-duotone"],K_={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},H_={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},q_={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Ff={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},V_=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],jf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...U_,...V_],Y_=["solid","regular","light","thin","duotone","brands"],nb=[1,2,3,4,5,6,7,8,9,10],Q_=nb.concat([11,12,13,14,15,16,17,18,19,20]),G_=[...Object.keys(q_),...Y_,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",_a.GROUP,_a.SWAP_OPACITY,_a.PRIMARY,_a.SECONDARY].concat(nb.map(e=>"".concat(e,"x"))).concat(Q_.map(e=>"w-".concat(e))),Z_={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const nr="___FONT_AWESOME___",zf=16,rb="fa",ob="svg-inline--fa",ko="data-fa-i2svg",$f="data-fa-pseudo-element",J_="data-fa-pseudo-element-pending",fd="data-prefix",ud="data-icon",wh="fontawesome-i2svg",X_="async",eE=["HTML","HEAD","STYLE","SCRIPT"],ib=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Xs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const sb=H({},Xy);sb[wt]=H(H(H(H({},{"fa-duotone":"duotone"}),Xy[wt]),vh.kit),vh["kit-duotone"]);const tE=Xs(sb),Bf=H({},D_);Bf[wt]=H(H(H(H({},{duotone:"fad"}),Bf[wt]),xh.kit),xh["kit-duotone"]);const Ah=Xs(Bf),Uf=H({},Ff);Uf[wt]=H(H({},Uf[wt]),B_.kit);const dd=Xs(Uf),Wf=H({},H_);Wf[wt]=H(H({},Wf[wt]),z_.kit);Xs(Wf);const nE=T_,ab="fa-layers-text",rE=N_,oE=H({},I_);Xs(oE);const iE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tl=O_,sE=[...j_,...G_],ws=Rr.FontAwesomeConfig||{};function aE(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function cE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}$e&&typeof $e.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=cE(aE(n));o!=null&&(ws[r]=o)});const cb={styleDefault:"solid",familyDefault:wt,cssPrefix:rb,replacementClass:ob,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ws.familyPrefix&&(ws.cssPrefix=ws.familyPrefix);const Li=H(H({},cb),ws);Li.autoReplaceSvg||(Li.observeMutations=!1);const fe={};Object.keys(cb).forEach(e=>{Object.defineProperty(fe,e,{enumerable:!0,set:function(t){Li[e]=t,As.forEach(n=>n(fe))},get:function(){return Li[e]}})});Object.defineProperty(fe,"familyPrefix",{enumerable:!0,set:function(e){Li.cssPrefix=e,As.forEach(t=>t(fe))},get:function(){return Li.cssPrefix}});Rr.FontAwesomeConfig=fe;const As=[];function lE(e){return As.push(e),()=>{As.splice(As.indexOf(e),1)}}const gr=zf,_n={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fE(e){if(!e||!cr)return;const t=$e.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$e.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return $e.head.insertBefore(t,r),e}const uE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ms(){let e=12,t="";for(;e-- >0;)t+=uE[Math.random()*62|0];return t}function Vi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function md(e){return e.classList?Vi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function lb(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function dE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(lb(e[n]),'" '),"").trim()}function Bc(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function hd(e){return e.size!==_n.size||e.x!==_n.x||e.y!==_n.y||e.rotate!==_n.rotate||e.flipX||e.flipY}function mE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(i," ").concat(s," ").concat(a)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:c,path:l}}function hE(e){let{transform:t,width:n=zf,height:r=zf,startCentered:o=!1}=e,i="";return o&&Jy?i+="translate(".concat(t.x/gr-n/2,"em, ").concat(t.y/gr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/gr,"em), calc(-50% + ").concat(t.y/gr,"em)) "):i+="translate(".concat(t.x/gr,"em, ").concat(t.y/gr,"em) "),i+="scale(".concat(t.size/gr*(t.flipX?-1:1),", ").concat(t.size/gr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var pE=`:root, :host {
|
|
33
33
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
34
34
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
35
35
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -582,25 +582,25 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
582
582
|
.svg-inline--fa mask .fa-primary,
|
|
583
583
|
.svg-inline--fa mask .fa-secondary {
|
|
584
584
|
fill: black;
|
|
585
|
-
}`;function nv(){const e=Qy,t=Gy,n=fe.cssPrefix,r=fe.replacementClass;let o=oE;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let yh=!1;function Sl(){fe.autoAddCss&&!yh&&(X_(nv()),yh=!0)}var iE={mixout(){return{dom:{css:nv,insertCss:Sl}}},hooks(){return{beforeDOMElementCreation(){Sl()},beforeI2svg(){Sl()}}}};const tr=Ir||{};tr[er]||(tr[er]={});tr[er].styles||(tr[er].styles={});tr[er].hooks||(tr[er].hooks={});tr[er].shims||(tr[er].shims=[]);var Cn=tr[er];const rv=[],ov=function(){$e.removeEventListener("DOMContentLoaded",ov),tc=1,rv.map(e=>e())};let tc=!1;sr&&(tc=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),tc||$e.addEventListener("DOMContentLoaded",ov));function sE(e){sr&&(tc?setTimeout(e,0):rv.push(e))}function Zs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?tv(e):"<".concat(t," ").concat(tE(n),">").concat(r.map(Zs).join(""),"</").concat(t,">")}function vh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var kl=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,c,l,f;for(r===void 0?(c=1,f=t[i[0]]):(c=0,f=r);c<s;c++)l=i[c],f=a(f,t[l],l,t);return f};function aE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function Uf(e){const t=aE(e);return t.length===1?t[0].toString(16):null}function cE(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function bh(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Bf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=bh(t);typeof Cn.hooks.addPack=="function"&&!r?Cn.hooks.addPack(e,bh(t)):Cn.styles[e]=H(H({},Cn.styles[e]||{}),o),e==="fas"&&Bf("fa",t)}const{styles:Ps,shims:lE}=Cn,iv=Object.keys(ad),fE=iv.reduce((e,t)=>(e[t]=Object.keys(ad[t]),e),{});let fd=null,sv={},av={},cv={},lv={},fv={};function uE(e){return~Q_.indexOf(e)}function dE(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!uE(o)?o:null}const uv=()=>{const e=r=>kl(Ps,(o,i,s)=>(o[s]=kl(i,r,{}),o),{});sv=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),av=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),fv=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Ps||fe.autoFetchSvg,n=kl(lE,(r,o)=>{const i=o[0];let s=o[1];const a=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});cv=n.names,lv=n.unicodes,fd=zc(fe.styleDefault,{family:fe.familyDefault})};J_(e=>{fd=zc(e.styleDefault,{family:fe.familyDefault})});uv();function ud(e,t){return(sv[e]||{})[t]}function pE(e,t){return(av[e]||{})[t]}function io(e,t){return(fv[e]||{})[t]}function dv(e){return cv[e]||{prefix:null,iconName:null}}function hE(e){const t=lv[e],n=ud("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Lr(){return fd}const pv=()=>({prefix:null,iconName:null,rest:[]});function mE(e){let t=wt;const n=iv.reduce((r,o)=>(r[o]="".concat(fe.cssPrefix,"-").concat(o),r),{});return Vy.forEach(r=>{(e.includes(n[r])||e.some(o=>fE[r].includes(o)))&&(t=r)}),t}function zc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=K_[n][e];if(n===Fc&&!e)return"fad";const o=gh[n][e]||gh[n][r],i=e in Cn.styles?e:null;return o||i||null}function gE(e){let t=[],n=null;return e.forEach(r=>{const o=dE(fe.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function xh(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function $c(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Rf.concat(M_),i=xh(e.filter(u=>o.includes(u))),s=xh(e.filter(u=>!Rf.includes(u))),a=i.filter(u=>(r=u,!qy.includes(u))),[c=null]=a,l=mE(i),f=H(H({},gE(s)),{},{prefix:zc(c,{family:l})});return H(H(H({},f),xE({values:e,family:l,styles:Ps,config:fe,canonical:f,givenPrefix:r})),yE(n,r,f))}function yE(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?dv(o):{},s=io(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Ps.far&&Ps.fas&&!fe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const vE=Vy.filter(e=>e!==wt||e!==Fc),bE=Object.keys(Lf).filter(e=>e!==wt).map(e=>Object.keys(Lf[e])).flat();function xE(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Fc,c=t.includes("fa-duotone")||t.includes("fad"),l=s.familyDefault==="duotone",f=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(c||l||f)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&vE.includes(n)&&(Object.keys(i).find(d=>bE.includes(d))||s.autoFetchSvg)){const d=__.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=io(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Lr()||"fas"),r}class wE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=H(H({},this.definitions[i]||{}),o[i]),Bf(i,o[i]);const s=ad[wt][i];s&&Bf(s,o[i]),uv()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:a}=r[o],c=a[2];t[i]||(t[i]={}),c.length>0&&c.forEach(l=>{typeof l=="string"&&(t[i][l]=a)}),t[i][s]=a}),t}}let wh=[],ci={};const hi={},AE=Object.keys(hi);function CE(e,t){let{mixoutsTo:n}=t;return wh=e,ci={},Object.keys(hi).forEach(r=>{AE.indexOf(r)===-1&&delete hi[r]}),wh.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{ci[s]||(ci[s]=[]),ci[s].push(i[s])})}r.provides&&r.provides(hi)}),n}function Wf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(ci[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function To(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ci[e]||[]).forEach(i=>{i.apply(null,n)})}function Rr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return hi[e]?hi[e].apply(null,t):void 0}function Kf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Lr();if(t)return t=io(n,t)||t,vh(hv.definitions,n,t)||vh(Cn.styles,n,t)}const hv=new wE,_E=()=>{fe.autoReplaceSvg=!1,fe.observeMutations=!1,To("noAuto")},EE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return sr?(To("beforeI2svg",e),Rr("pseudoElements2svg",e),Rr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;fe.autoReplaceSvg===!1&&(fe.autoReplaceSvg=!0),fe.observeMutations=!0,sE(()=>{kE({autoReplaceSvgRoot:t}),To("watch",e)})}},SE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:io(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=zc(e[0]);return{prefix:n,iconName:io(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(fe.cssPrefix,"-"))>-1||e.match(H_))){const t=$c(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Lr(),iconName:io(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Lr();return{prefix:t,iconName:io(t,e)||e}}}},Wt={noAuto:_E,config:fe,dom:EE,parse:SE,library:hv,findIconDefinition:Kf,toHtml:Zs},kE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(Cn.styles).length>0||fe.autoFetchSvg)&&sr&&fe.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function Uc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Zs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!sr)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function TE(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(ld(s)&&n.found&&!r.found){const{width:a,height:c}=n,l={x:a/c/2,y:.5};o.style=jc(H(H({},i),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function NE(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(fe.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},o),{},{id:s}),children:r}]}]}function dd(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:c,titleId:l,extra:f,watchable:u=!1}=e,{width:d,height:p}=n.found?n:t,h=N_.includes(r),g=[fe.replacementClass,o?"".concat(fe.cssPrefix,"-").concat(o):""].filter(A=>f.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(f.classes).join(" ");let m={children:[],attributes:H(H({},f.attributes),{},{"data-prefix":r,"data-icon":o,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)})};const y=h&&!~f.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};u&&(m.attributes[ko]=""),a&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(l||Os())},children:[a]}),delete m.attributes.title);const v=H(H({},m),{},{prefix:r,iconName:o,main:t,mask:n,maskId:c,transform:i,symbol:s,styles:H(H({},y),f.styles)}),{children:b,attributes:w}=n.found&&t.found?Rr("generateAbstractMask",v)||{children:[],attributes:{}}:Rr("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=w,s?NE(v):TE(v)}function Ah(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,c=H(H(H({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(c[ko]="");const l=H({},s.styles);ld(o)&&(l.transform=rE({transform:o,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);const f=jc(l);f.length>0&&(c.style=f);const u=[];return u.push({tag:"span",attributes:c,children:[t]}),i&&u.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),u}function OE(e){const{content:t,title:n,extra:r}=e,o=H(H(H({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=jc(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Tl}=Cn;function Hf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(fe.cssPrefix,"-").concat(El.GROUP)},children:[{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(El.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(El.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const PE={found:!1,width:512,height:512};function ME(e,t){!Zy&&!fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function qf(e,t){let n=t;return t==="fa"&&fe.styleDefault!==null&&(t=Lr()),new Promise((r,o)=>{if(n==="fa"){const i=dv(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Tl[t]&&Tl[t][e]){const i=Tl[t][e];return r(Hf(i))}ME(e,t),r(H(H({},PE),{},{icon:fe.showMissingIcons&&e?Rr("missingIconAbstract")||{}:{}}))})}const Ch=()=>{},Vf=fe.measurePerformance&&va&&va.mark&&va.measure?va:{mark:Ch,measure:Ch},hs='FA "6.7.2"',IE=e=>(Vf.mark("".concat(hs," ").concat(e," begins")),()=>mv(e)),mv=e=>{Vf.mark("".concat(hs," ").concat(e," ends")),Vf.measure("".concat(hs," ").concat(e),"".concat(hs," ").concat(e," begins"),"".concat(hs," ").concat(e," ends"))};var pd={begin:IE,end:mv};const Ra=()=>{};function _h(e){return typeof(e.getAttribute?e.getAttribute(ko):null)=="string"}function LE(e){const t=e.getAttribute?e.getAttribute(id):null,n=e.getAttribute?e.getAttribute(sd):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(fe.replacementClass)}function DE(){return fe.autoReplaceSvg===!0?Da.replace:Da[fe.autoReplaceSvg]||Da.replace}function FE(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function jE(e){return $e.createElement(e)}function gv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?FE:jE}=t;if(typeof e=="string")return $e.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(gv(i,{ceFn:n}))}),r}function zE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Da={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(gv(n),t)}),t.getAttribute(ko)===null&&fe.keepOriginalSource){let n=$e.createComment(zE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~cd(t).indexOf(fe.replacementClass))return Da.replace(e);const r=new RegExp("".concat(fe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===fe.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>Zs(i)).join(`
|
|
586
|
-
`);t.setAttribute(ko,""),t.innerHTML=o}};function
|
|
587
|
-
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function
|
|
588
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
589
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(n),!0).forEach(function(r){gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wS(e,t){if(e==null)return{};var n,r,o=AS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function AS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Fh(e,t){return mS(e)||vS(e,t)||xv(e,t)||bS()}function Jf(e){return gS(e)||yS(e)||xv(e)||xS()}function CS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _S(e){var t=CS(e,"string");return typeof t=="symbol"?t:t+""}function rc(e){"@babel/helpers - typeof";return rc=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},rc(e)}function xv(e,t){if(e){if(typeof e=="string")return Zf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zf(e,t):void 0}}var ES="7.0.0",Xf;try{var SS=require("@fortawesome/fontawesome-svg-core/package.json");Xf=SS.version}catch{Xf=typeof process<"u"&&process.env.FA_VERSION||"7.0.0"}function kS(e){var t=e.beat,n=e.fade,r=e.beatFade,o=e.bounce,i=e.shake,s=e.flash,a=e.spin,c=e.spinPulse,l=e.spinReverse,f=e.pulse,u=e.fixedWidth,d=e.inverse,p=e.border,h=e.listItem,g=e.flip,m=e.size,y=e.rotation,v=e.pull,b=e.swapOpacity,w=e.rotateBy,A=e.widthAuto,_=TS(Xf,ES),E=gr(gr(gr(gr(gr(gr({"fa-beat":t,"fa-fade":n,"fa-beat-fade":r,"fa-bounce":o,"fa-shake":i,"fa-flash":s,"fa-spin":a,"fa-spin-reverse":l,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":u,"fa-inverse":d,"fa-border":p,"fa-li":h,"fa-flip":g===!0,"fa-flip-horizontal":g==="horizontal"||g==="both","fa-flip-vertical":g==="vertical"||g==="both"},"fa-".concat(m),typeof m<"u"&&m!==null),"fa-rotate-".concat(y),typeof y<"u"&&y!==null&&y!==0),"fa-pull-".concat(v),typeof v<"u"&&v!==null),"fa-swap-opacity",b),"fa-rotate-by",_&&w),"fa-width-auto",_&&A);return Object.keys(E).map(function(S){return E[S]?S:null}).filter(function(S){return S})}function TS(e,t){for(var n=e.split("-"),r=Fh(n,2),o=r[0],i=r[1],s=t.split("-"),a=Fh(s,2),c=a[0],l=a[1],f=o.split("."),u=c.split("."),d=0;d<Math.max(f.length,u.length);d++){var p=f[d]||"0",h=u[d]||"0",g=parseInt(p,10),m=parseInt(h,10);if(g!==m)return g>m}for(var y=0;y<Math.max(f.length,u.length);y++){var v=f[y]||"0",b=u[y]||"0";if(v!==b&&v.length!==b.length)return v.length<b.length}return!(i&&!l)}function NS(e){return e=e-0,e===e}function wv(e){return NS(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var OS=["style"];function PS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function MS(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=wv(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[PS(o)]=i:t[o]=i,t},{})}function Av(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(c){return Av(e,c)}),o=Object.keys(t.attributes||{}).reduce(function(c,l){var f=t.attributes[l];switch(l){case"class":c.attrs.className=f,delete t.attributes.class;break;case"style":c.attrs.style=MS(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=f:c.attrs[wv(l)]=f}return c},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=wS(n,OS);return o.attrs.style=xn(xn({},o.attrs.style),s),e.apply(void 0,[t.tag,xn(xn({},o.attrs),a)].concat(Jf(r)))}var Cv=!1;try{Cv=process.env.NODE_ENV==="production"}catch{}function IS(){if(!Cv&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function jh(e){if(e&&rc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Gf.icon)return Gf.icon(e);if(e===null)return null;if(e&&rc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Ol(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?gr({},e,t):{}}var zh={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},Ce=T.forwardRef(function(e,t){var n=xn(xn({},zh),e),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,l=n.maskId,f=jh(r),u=Ol("classes",[].concat(Jf(kS(n)),Jf((s||"").split(" ")))),d=Ol("transform",typeof n.transform=="string"?Gf.transform(n.transform):n.transform),p=Ol("mask",jh(o)),h=hS(f,xn(xn(xn(xn({},u),d),p),{},{symbol:i,title:a,titleId:c,maskId:l}));if(!h)return IS("Could not find icon",f),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach(function(y){zh.hasOwnProperty(y)||(m[y]=n[y])}),LS(g[0],m)});Ce.displayName="FontAwesomeIcon";Ce.propTypes={beat:ge.bool,border:ge.bool,beatFade:ge.bool,bounce:ge.bool,className:ge.string,fade:ge.bool,flash:ge.bool,mask:ge.oneOfType([ge.object,ge.array,ge.string]),maskId:ge.string,fixedWidth:ge.bool,inverse:ge.bool,flip:ge.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ge.oneOfType([ge.object,ge.array,ge.string]),listItem:ge.bool,pull:ge.oneOf(["right","left"]),pulse:ge.bool,rotation:ge.oneOf([0,90,180,270]),rotateBy:ge.bool,shake:ge.bool,size:ge.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ge.bool,spinPulse:ge.bool,spinReverse:ge.bool,symbol:ge.oneOfType([ge.bool,ge.string]),title:ge.string,titleId:ge.string,transform:ge.oneOfType([ge.string,ge.object]),swapOpacity:ge.bool,widthAuto:ge.bool};var LS=Av.bind(null,T.createElement);const RS=async e=>await(await fetch(`${rr}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),DS=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=jr(),o=async()=>RS({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Cc({queryKey:i,queryFn:o,enabled:n,staleTime:1/0},r),a=()=>{r.prefetchQuery({queryFn:o,queryKey:i,staleTime:1/0})};return{taskDetails:s.data,prefetchQuery:a,...s}},FS=({buttons:e,onButtonClick:t,disabled:n})=>x.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-end",children:e.map(r=>x.jsx(je,{size:"smallCollapse",className:"cnf:ml-2",disabled:n,onClick:()=>{t(r)},children:Uw[r]},r))});function $h(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mf(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function is(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Pl(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function jS(e){return e.matches("html,body")}function Uh(e){return(e==null?void 0:e.ownerDocument)||document}function Fa(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Fa(e,o.id,n)])}function zS(e){return"nativeEvent"in e}var $S=typeof document<"u",US=function(){},eu=$S?T.useLayoutEffect:US;const BS={...C},WS=BS.useInsertionEffect,KS=WS||(e=>e());function oi(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return KS(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const HS="data-floating-ui-focusable",Bh="active",Wh="selected",qS={...C};let Kh=!1,VS=0;const Hh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+VS++;function YS(){const[e,t]=C.useState(()=>Kh?Hh():void 0);return eu(()=>{e==null&&t(Hh())},[]),C.useEffect(()=>{Kh=!0},[]),e}const QS=qS.useId,GS=QS||YS;let tu;process.env.NODE_ENV!=="production"&&(tu=new Set);function ZS(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=tu)!=null&&e.has(o))){var i;(i=tu)==null||i.add(o),console.error(o)}}function JS(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const XS=C.createContext(null),e4=C.createContext(null),t4=()=>{var e;return((e=C.useContext(XS))==null?void 0:e.id)||null},_v=()=>C.useContext(e4);function n4(e){return"data-floating-ui-"+e}const r4={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},o4={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},qh=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Ev(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:u="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,g=_v(),m=oi(typeof c=="function"?c:()=>!1),y=typeof c=="function"?m:c,v=C.useRef(!1),{escapeKey:b,outsidePress:w}=qh(p),{escapeKey:A,outsidePress:_}=qh(h),E=C.useRef(!1),S=oi(z=>{var Y;if(!n||!s||!a||z.key!=="Escape"||E.current)return;const Q=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,oe=g?Fa(g.nodesRef.current,Q):[];if(!b&&(z.stopPropagation(),oe.length>0)){let M=!0;if(oe.forEach(re=>{var L;if((L=re.context)!=null&&L.open&&!re.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}r(!1,zS(z)?z.nativeEvent:z,"escape-key")}),N=oi(z=>{var Y;const Q=()=>{var oe;S(z),(oe=is(z))==null||oe.removeEventListener("keydown",Q)};(Y=is(z))==null||Y.addEventListener("keydown",Q)}),P=oi(z=>{var Y;const Q=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=v.current;if(v.current=!1,l==="click"&&oe||Q||typeof y=="function"&&!y(z))return;const M=is(z),re="["+n4("inert")+"]",L=Uh(o.floating).querySelectorAll(re);let F=He(M)?M:null;for(;F&&!Zn(F);){const V=Xn(F);if(Zn(V)||!He(V))break;F=V}if(L.length&&He(M)&&!jS(M)&&!$h(M,o.floating)&&Array.from(L).every(V=>!$h(F,V)))return;if(ln(M)&&j){const V=Zn(M),ee=Qt(M),te=/auto|scroll/,he=V||te.test(ee.overflowX),ye=V||te.test(ee.overflowY),me=he&&M.clientWidth>0&&M.scrollWidth>M.clientWidth,ze=ye&&M.clientHeight>0&&M.scrollHeight>M.clientHeight,G=ee.direction==="rtl",qe=ze&&(G?z.offsetX<=M.offsetWidth-M.clientWidth:z.offsetX>M.clientWidth),zt=me&&z.offsetY>M.clientHeight;if(qe||zt)return}const K=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,B=g&&Fa(g.nodesRef.current,K).some(V=>{var ee;return Pl(z,(ee=V.context)==null?void 0:ee.elements.floating)});if(Pl(z,o.floating)||Pl(z,o.domReference)||B)return;const J=g?Fa(g.nodesRef.current,K):[];if(J.length>0){let V=!0;if(J.forEach(ee=>{var te;if((te=ee.context)!=null&&te.open&&!ee.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}r(!1,z,"outside-press")}),I=oi(z=>{var Y;const Q=()=>{var oe;P(z),(oe=is(z))==null||oe.removeEventListener(l,Q)};(Y=is(z))==null||Y.addEventListener(l,Q)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=b,i.current.__outsidePressBubbles=w;let z=-1;function Y(L){r(!1,L,"ancestor-scroll")}function Q(){window.clearTimeout(z),E.current=!0}function oe(){z=window.setTimeout(()=>{E.current=!1},Ic()?5:0)}const M=Uh(o.floating);a&&(M.addEventListener("keydown",A?N:S,A),M.addEventListener("compositionstart",Q),M.addEventListener("compositionend",oe)),y&&M.addEventListener(l,_?I:P,_);let re=[];return d&&(He(o.domReference)&&(re=di(o.domReference)),He(o.floating)&&(re=re.concat(di(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(di(o.reference.contextElement)))),re=re.filter(L=>{var F;return L!==((F=M.defaultView)==null?void 0:F.visualViewport)}),re.forEach(L=>{L.addEventListener("scroll",Y,{passive:!0})}),()=>{a&&(M.removeEventListener("keydown",A?N:S,A),M.removeEventListener("compositionstart",Q),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(l,_?I:P,_),re.forEach(L=>{L.removeEventListener("scroll",Y)}),window.clearTimeout(z)}},[i,o,a,y,l,n,r,d,s,b,w,S,A,N,P,_,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,l]);const W=C.useMemo(()=>({onKeyDown:S,...f&&{[r4[u]]:z=>{r(!1,z.nativeEvent,"reference-press")},...u!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[S,r,f,u]),j=C.useMemo(()=>({onKeyDown:S,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[o4[l]]:()=>{i.current.insideReactTree=!0}}),[S,l,i]);return C.useMemo(()=>s?{reference:W,floating:j}:{},[s,W,j])}function i4(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=GS(),i=C.useRef({}),[s]=C.useState(()=>JS()),a=t4()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!He(p)&&ZS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=C.useState(r.reference),f=oi((p,h,g)=>{i.current.openEvent=p?h:void 0,s.emit("openchange",{open:p,event:h,reason:g,nested:a}),n==null||n(p,h,g)}),u=C.useMemo(()=>({setPositionReference:l}),[]),d=C.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:s,floatingId:o,refs:u}),[t,f,d,s,o,u])}function Sv(e){e===void 0&&(e={});const{nodeId:t}=e,n=i4({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,c]=C.useState(null),f=(o==null?void 0:o.domReference)||i,u=C.useRef(null),d=_v();eu(()=>{f&&(u.current=f)},[f]);const p=wC({...e,elements:{...o,...a&&{reference:a}}}),h=C.useCallback(b=>{const w=He(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;c(w),p.refs.setReference(w)},[p.refs]),g=C.useCallback(b=>{(He(b)||b===null)&&(u.current=b,s(b)),(He(p.refs.reference.current)||p.refs.reference.current===null||b!==null&&!He(b))&&p.refs.setReference(b)},[p.refs]),m=C.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:u}),[p.refs,g,h]),y=C.useMemo(()=>({...p.elements,domReference:f}),[p.elements,f]),v=C.useMemo(()=>({...p,...r,refs:m,elements:y,nodeId:t}),[p,m,y,t,r]);return eu(()=>{r.dataRef.current.floatingContext=v;const b=d==null?void 0:d.nodesRef.current.find(w=>w.id===t);b&&(b.context=v)}),C.useMemo(()=>({...p,context:v,refs:m,elements:y}),[p,m,y,v])}function Ml(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Bh]:s,[Wh]:a,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[HS]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[l,f]=c;if(!(o&&[Bh,Wh].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof f=="function"){var u;(u=r.get(l))==null||u.push(f),s[l]=function(){for(var d,p=arguments.length,h=new Array(p),g=0;g<p;g++)h[g]=arguments[g];return(d=r.get(l))==null?void 0:d.map(m=>m(...h)).find(m=>m!==void 0)}}}else s[l]=f}),s),{})}}function kv(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=C.useCallback(a=>Ml(a,e,"reference"),t),i=C.useCallback(a=>Ml(a,e,"floating"),n),s=C.useCallback(a=>Ml(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const s4={white:"cnf:bg-white cnf:text-dark-300 cnf:border cnf:border-gray-300",primary:"cnf:bg-primary-600",secondary:"cnf:bg-secondary-500",success:"cnf:bg-success-600",info:"cnf:bg-info-500",warning:"cnf:bg-warning-500 cnf:text-gray-800",danger:"cnf:bg-danger-500",steel:"cnf:bg-steel-500",orange:"cnf:bg-orange-500",purple:"cnf:bg-purple-500",grayDark:"cnf:bg-gray-900",grayLight:"cnf:bg-gray-100 cnf:text-gray-800"},a4={white:"cnf:text-white cnf:border cnf:border-white",primary:"cnf:text-primary-600 cnf:border cnf:border-primary-600",secondary:"cnf:text-secondary-500 cnf:border cnf:border-secondary-500",success:"cnf:text-success-600 cnf:border cnf:border-success-600",info:"cnf:text-info-500 cnf:border cnf:border-info-500",warning:"cnf:text-warning-500 cnf:border cnf:border-warning-500",danger:"cnf:text-danger-500 cnf:border cnf:border-danger-500",steel:"cnf:text-steel-500 cnf:border cnf:border-steel-500",orange:"cnf:text-orange-500 cnf:border cnf:border-orange-500",purple:"cnf:text-purple-500 cnf:border cnf:border-purple-500",grayDark:"cnf:text-gray-700 cnf:border cnf:border-gray-700",grayLight:"cnf:text-gray-500 cnf:border cnf:border-gray-100"},c4={white:"cnf:text-dark-300",primary:"cnf:text-white",secondary:"cnf:text-white",success:"cnf:text-white",info:"cnf:text-black",warning:"cnf:text-gray-800",danger:"cnf:text-white",steel:"cnf:text-white",orange:"cnf:text-black",purple:"cnf:text-white",grayDark:"cnf:text-white",grayLight:"cnf:text-gray-800"},l4={normal:"cnf:rounded",pill:"cnf:rounded-pill"},f4={big:"cnf:h-[24px] cnf:leading-[24px] cnf:text-md cnf:px-1",medium:"cnf:h-[22px] cnf:leading-[22px] cnf:text-sm cnf:px-[2px]",small:"cnf:h-[18px] cnf:leading-[18px] cnf:text-xs cnf:px-[2px]"},Tv=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="cnf:uppercase",children:i,className:s,...a})=>{const c=T.useMemo(()=>c4[t]??"cnf:text-white",[t]),l=T.useMemo(()=>ui(c,e==="outline"?a4[t]:s4[t],l4[n],f4[r]),[c,e,t,r,n]);return x.jsx("div",{className:ui("ui-badge cnf:flex cnf:items-center cnf:font-bold",l,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:x.jsx("p",{className:ui("cnf:mx-1",o),children:i})})},u4={default:"cnf:text-secondary-600 cnf:border-secondary-600",primary:"cnf:text-primary-600 cnf:border-primary-600",success:"cnf:text-success-600 cnf:border-success-600"},d4=({transition:e,onClick:t})=>x.jsxs("div",{className:Ee("cnf:py-1 cnf:px-3 cnf:space-x-2 cnf:flex cnf:items-center cnf:hover:bg-gray-100 cnf:cursor-pointer",e.disabled&&"cnf:opacity-50 cnf:cursor-not-allowed cnf:hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[x.jsx("span",{className:"cnf:text-base cnf:text-dark cnf:flex-1",children:e.action}),x.jsx(Ce,{icon:r_,className:"cnf:text-gray-400 cnf:size-4"}),x.jsx(Tv,{category:"outline",color:e.color,children:e.to})]}),p4=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=T.useState(!1),{refs:c,floatingStyles:l,context:f}=Sv({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),u=Ev(f,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:p}=kv([u]);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{onClick:n!=null&&n.length?()=>a(h=>!h):void 0,ref:c.setReference,className:Ee("cnf:px-1 cnf:uppercase cnf:border cnf:rounded-sm cnf:inline-flex cnf:items-center cnf:space-x-1 cnf:flex-shrink-0 cnf:whitespace-nowrap",n.length?"cnf:cursor-pointer":"cnf:pointer-events-none",u4[t]),...d(),children:[r===Bn.COMMENT&&x.jsx(Ce,{icon:o?Iy:JC,className:Ee("cnf:size-4",e==="In progress"&&(o?"cnf:text-success-600":"cnf:text-danger-600"))}),x.jsx("span",{className:"cnf:text-sm cnf:font-bold",children:e}),n.length>0?x.jsx(Ce,{icon:Fy,className:"cnf:size-4"}):x.jsx(x.Fragment,{})]}),s&&n.length&&x.jsx("div",{ref:c.setFloating,style:l,className:Ee("cnf:border cnf:border-gray-200 cnf:py-1.5 cnf:rounded-sm cnf:min-w-[172px] cnf:bg-white cnf:shadow-dark/50"),...p(),children:n.map(h=>x.jsx(d4,{transition:h,onClick:()=>{i==null||i(h.id),a(!1)}},h.id))})]})},Vh=({description:e})=>{const t=T.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${qp}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${qp}`),a=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return a==null||a.forEach(c=>{const l=c.getAttribute("src");l&&(new Image().src=l)}),o},[e]);return T.useEffect(()=>{},[t]),x.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-4",children:x.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},h4={SEQUENTIAL:"Sequential"},m4={[Be.IN_REVIEW]:"In Review"},g4={[Be.OPEN]:"cnf:bg-secondary-500",[Be.IN_PROGRESS]:"cnf:bg-primary-600",[Be.IN_REVIEW]:"cnf:bg-success-600",[Be.COMPLETED]:"cnf:bg-success-600"},y4=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>x.jsx("div",{className:Ss("cnf:flex cnf:flex-col cnf:items-center cnf:justify-center",r?"cnf:bg-[#FFE600]":g4[t],o&&"cnf:cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:x.jsx("span",{className:Ss("cnf:text-orientation-mixed cnf:w-[27px] cnf:flex cnf:items-center cnf:whitespace-nowrap cnf:px-2 cnf:text-sm cnf:font-bold cnf:[writing-mode:vertical-lr]",r?"cnf:text-black":"cnf:text-white"),children:e===h4.SEQUENTIAL?`STEP ${n}`:(m4[t]||t).toUpperCase()})}),v4={[Be.OPEN]:"secondary",[Be.IN_PROGRESS]:"primary",[Be.IN_REVIEW]:"success",[Be.COMPLETED]:"success"},b4=({status:e})=>x.jsx(Tv,{category:"outline",color:v4[e],children:e}),dt={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
585
|
+
}`;function fb(){const e=rb,t=ob,n=fe.cssPrefix,r=fe.replacementClass;let o=pE;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let Ch=!1;function Nl(){fe.autoAddCss&&!Ch&&(fE(fb()),Ch=!0)}var gE={mixout(){return{dom:{css:fb,insertCss:Nl}}},hooks(){return{beforeDOMElementCreation(){Nl()},beforeI2svg(){Nl()}}}};const rr=Rr||{};rr[nr]||(rr[nr]={});rr[nr].styles||(rr[nr].styles={});rr[nr].hooks||(rr[nr].hooks={});rr[nr].shims||(rr[nr].shims=[]);var En=rr[nr];const ub=[],db=function(){$e.removeEventListener("DOMContentLoaded",db),sc=1,ub.map(e=>e())};let sc=!1;cr&&(sc=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),sc||$e.addEventListener("DOMContentLoaded",db));function yE(e){cr&&(sc?setTimeout(e,0):ub.push(e))}function ea(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?lb(e):"<".concat(t," ").concat(dE(n),">").concat(r.map(ea).join(""),"</").concat(t,">")}function _h(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ol=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,c,l,f;for(r===void 0?(c=1,f=t[i[0]]):(c=0,f=r);c<s;c++)l=i[c],f=a(f,t[l],l,t);return f};function bE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function Kf(e){const t=bE(e);return t.length===1?t[0].toString(16):null}function vE(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Eh(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Hf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Eh(t);typeof En.hooks.addPack=="function"&&!r?En.hooks.addPack(e,Eh(t)):En.styles[e]=H(H({},En.styles[e]||{}),o),e==="fas"&&Hf("fa",t)}const{styles:Is,shims:xE}=En,mb=Object.keys(dd),wE=mb.reduce((e,t)=>(e[t]=Object.keys(dd[t]),e),{});let pd=null,hb={},pb={},gb={},yb={},bb={};function AE(e){return~sE.indexOf(e)}function CE(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!AE(o)?o:null}const vb=()=>{const e=r=>Ol(Is,(o,i,s)=>(o[s]=Ol(i,r,{}),o),{});hb=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),pb=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),bb=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Is||fe.autoFetchSvg,n=Ol(xE,(r,o)=>{const i=o[0];let s=o[1];const a=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});gb=n.names,yb=n.unicodes,pd=Uc(fe.styleDefault,{family:fe.familyDefault})};lE(e=>{pd=Uc(e.styleDefault,{family:fe.familyDefault})});vb();function gd(e,t){return(hb[e]||{})[t]}function _E(e,t){return(pb[e]||{})[t]}function io(e,t){return(bb[e]||{})[t]}function xb(e){return gb[e]||{prefix:null,iconName:null}}function EE(e){const t=yb[e],n=gd("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Dr(){return pd}const wb=()=>({prefix:null,iconName:null,rest:[]});function SE(e){let t=wt;const n=mb.reduce((r,o)=>(r[o]="".concat(fe.cssPrefix,"-").concat(o),r),{});return tb.forEach(r=>{(e.includes(n[r])||e.some(o=>wE[r].includes(o)))&&(t=r)}),t}function Uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=tE[n][e];if(n===$c&&!e)return"fad";const o=Ah[n][e]||Ah[n][r],i=e in En.styles?e:null;return o||i||null}function kE(e){let t=[],n=null;return e.forEach(r=>{const o=CE(fe.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function Sh(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function Wc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=jf.concat(W_),i=Sh(e.filter(u=>o.includes(u))),s=Sh(e.filter(u=>!jf.includes(u))),a=i.filter(u=>(r=u,!eb.includes(u))),[c=null]=a,l=SE(i),f=H(H({},kE(s)),{},{prefix:Uc(c,{family:l})});return H(H(H({},f),PE({values:e,family:l,styles:Is,config:fe,canonical:f,givenPrefix:r})),TE(n,r,f))}function TE(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?xb(o):{},s=io(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Is.far&&Is.fas&&!fe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const NE=tb.filter(e=>e!==wt||e!==$c),OE=Object.keys(Ff).filter(e=>e!==wt).map(e=>Object.keys(Ff[e])).flat();function PE(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===$c,c=t.includes("fa-duotone")||t.includes("fad"),l=s.familyDefault==="duotone",f=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(c||l||f)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&NE.includes(n)&&(Object.keys(i).find(d=>OE.includes(d))||s.autoFetchSvg)){const d=R_.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=io(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Dr()||"fas"),r}class ME{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=H(H({},this.definitions[i]||{}),o[i]),Hf(i,o[i]);const s=dd[wt][i];s&&Hf(s,o[i]),vb()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:a}=r[o],c=a[2];t[i]||(t[i]={}),c.length>0&&c.forEach(l=>{typeof l=="string"&&(t[i][l]=a)}),t[i][s]=a}),t}}let kh=[],fi={};const gi={},IE=Object.keys(gi);function LE(e,t){let{mixoutsTo:n}=t;return kh=e,fi={},Object.keys(gi).forEach(r=>{IE.indexOf(r)===-1&&delete gi[r]}),kh.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{fi[s]||(fi[s]=[]),fi[s].push(i[s])})}r.provides&&r.provides(gi)}),n}function qf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(fi[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function To(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(fi[e]||[]).forEach(i=>{i.apply(null,n)})}function Fr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return gi[e]?gi[e].apply(null,t):void 0}function Vf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Dr();if(t)return t=io(n,t)||t,_h(Ab.definitions,n,t)||_h(En.styles,n,t)}const Ab=new ME,RE=()=>{fe.autoReplaceSvg=!1,fe.observeMutations=!1,To("noAuto")},DE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return cr?(To("beforeI2svg",e),Fr("pseudoElements2svg",e),Fr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;fe.autoReplaceSvg===!1&&(fe.autoReplaceSvg=!0),fe.observeMutations=!0,yE(()=>{jE({autoReplaceSvgRoot:t}),To("watch",e)})}},FE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:io(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Uc(e[0]);return{prefix:n,iconName:io(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(fe.cssPrefix,"-"))>-1||e.match(nE))){const t=Wc(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Dr(),iconName:io(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Dr();return{prefix:t,iconName:io(t,e)||e}}}},Kt={noAuto:RE,config:fe,dom:DE,parse:FE,library:Ab,findIconDefinition:Vf,toHtml:ea},jE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(En.styles).length>0||fe.autoFetchSvg)&&cr&&fe.autoReplaceSvg&&Kt.dom.i2svg({node:t})};function Kc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>ea(n))}}),Object.defineProperty(e,"node",{get:function(){if(!cr)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function zE(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(hd(s)&&n.found&&!r.found){const{width:a,height:c}=n,l={x:a/c/2,y:.5};o.style=Bc(H(H({},i),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function $E(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(fe.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},o),{},{id:s}),children:r}]}]}function yd(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:c,titleId:l,extra:f,watchable:u=!1}=e,{width:d,height:m}=n.found?n:t,h=$_.includes(r),g=[fe.replacementClass,o?"".concat(fe.cssPrefix,"-").concat(o):""].filter(A=>f.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(f.classes).join(" ");let p={children:[],attributes:H(H({},f.attributes),{},{"data-prefix":r,"data-icon":o,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(m)})};const y=h&&!~f.classes.indexOf("fa-fw")?{width:"".concat(d/m*16*.0625,"em")}:{};u&&(p.attributes[ko]=""),a&&(p.children.push({tag:"title",attributes:{id:p.attributes["aria-labelledby"]||"title-".concat(l||Ms())},children:[a]}),delete p.attributes.title);const b=H(H({},p),{},{prefix:r,iconName:o,main:t,mask:n,maskId:c,transform:i,symbol:s,styles:H(H({},y),f.styles)}),{children:x,attributes:w}=n.found&&t.found?Fr("generateAbstractMask",b)||{children:[],attributes:{}}:Fr("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=x,b.attributes=w,s?$E(b):zE(b)}function Th(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,c=H(H(H({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(c[ko]="");const l=H({},s.styles);hd(o)&&(l.transform=hE({transform:o,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);const f=Bc(l);f.length>0&&(c.style=f);const u=[];return u.push({tag:"span",attributes:c,children:[t]}),i&&u.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),u}function BE(e){const{content:t,title:n,extra:r}=e,o=H(H(H({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Bc(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Pl}=En;function Yf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Tl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Tl.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Tl.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const UE={found:!1,width:512,height:512};function WE(e,t){!ib&&!fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Qf(e,t){let n=t;return t==="fa"&&fe.styleDefault!==null&&(t=Dr()),new Promise((r,o)=>{if(n==="fa"){const i=xb(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Pl[t]&&Pl[t][e]){const i=Pl[t][e];return r(Yf(i))}WE(e,t),r(H(H({},UE),{},{icon:fe.showMissingIcons&&e?Fr("missingIconAbstract")||{}:{}}))})}const Nh=()=>{},Gf=fe.measurePerformance&&Ca&&Ca.mark&&Ca.measure?Ca:{mark:Nh,measure:Nh},gs='FA "6.7.2"',KE=e=>(Gf.mark("".concat(gs," ").concat(e," begins")),()=>Cb(e)),Cb=e=>{Gf.mark("".concat(gs," ").concat(e," ends")),Gf.measure("".concat(gs," ").concat(e),"".concat(gs," ").concat(e," begins"),"".concat(gs," ").concat(e," ends"))};var bd={begin:KE,end:Cb};const $a=()=>{};function Oh(e){return typeof(e.getAttribute?e.getAttribute(ko):null)=="string"}function HE(e){const t=e.getAttribute?e.getAttribute(fd):null,n=e.getAttribute?e.getAttribute(ud):null;return t&&n}function qE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(fe.replacementClass)}function VE(){return fe.autoReplaceSvg===!0?Ba.replace:Ba[fe.autoReplaceSvg]||Ba.replace}function YE(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function QE(e){return $e.createElement(e)}function _b(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?YE:QE}=t;if(typeof e=="string")return $e.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(_b(i,{ceFn:n}))}),r}function GE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Ba={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(_b(n),t)}),t.getAttribute(ko)===null&&fe.keepOriginalSource){let n=$e.createComment(GE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~md(t).indexOf(fe.replacementClass))return Ba.replace(e);const r=new RegExp("".concat(fe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===fe.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>ea(i)).join(`
|
|
586
|
+
`);t.setAttribute(ko,""),t.innerHTML=o}};function Ph(e){e()}function Eb(e,t){const n=typeof t=="function"?t:$a;if(e.length===0)n();else{let r=Ph;fe.mutateApproach===X_&&(r=Rr.requestAnimationFrame||Ph),r(()=>{const o=VE(),i=bd.begin("mutate");e.map(o),i(),n()})}}let vd=!1;function Sb(){vd=!0}function Zf(){vd=!1}let ac=null;function Mh(e){if(!bh||!fe.observeMutations)return;const{treeCallback:t=$a,nodeCallback:n=$a,pseudoElementsCallback:r=$a,observeMutationsRoot:o=$e}=e;ac=new bh(i=>{if(vd)return;const s=Dr();Vi(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Oh(a.addedNodes[0])&&(fe.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&fe.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Oh(a.target)&&~iE.indexOf(a.attributeName))if(a.attributeName==="class"&&HE(a.target)){const{prefix:c,iconName:l}=Wc(md(a.target));a.target.setAttribute(fd,c||s),l&&a.target.setAttribute(ud,l)}else qE(a.target)&&n(a.target)})}),cr&&ac.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ZE(){ac&&ac.disconnect()}function JE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),s=i[0],a=i.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function XE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=Wc(md(e));return o.prefix||(o.prefix=Dr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=_E(o.prefix,e.innerText)||gd(o.prefix,Kf(e.innerText))),!o.iconName&&fe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function e4(e){const t=Vi(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return fe.autoA11y&&(n?t["aria-labelledby"]="".concat(fe.replacementClass,"-title-").concat(r||Ms()):(t["aria-hidden"]="true",t.focusable="false")),t}function t4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:_n,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ih(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=XE(e),i=e4(e),s=qf("parseNodeAttributes",{},e);let a=t.styleParser?JE(e):[];return H({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:_n,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:n4}=En;function kb(e){const t=fe.autoReplaceSvg==="nest"?Ih(e,{styleParser:!1}):Ih(e);return~t.extra.classes.indexOf(ab)?Fr("generateLayersText",e,t):Fr("generateSvgReplacementMutation",e,t)}function r4(){return[...F_,...jf]}function Lh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!cr)return Promise.resolve();const n=$e.documentElement.classList,r=f=>n.add("".concat(wh,"-").concat(f)),o=f=>n.remove("".concat(wh,"-").concat(f)),i=fe.autoFetchSvg?r4():eb.concat(Object.keys(n4));i.includes("fa")||i.push("fa");const s=[".".concat(ab,":not([").concat(ko,"])")].concat(i.map(f=>".".concat(f,":not([").concat(ko,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=Vi(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const c=bd.begin("onTree"),l=a.reduce((f,u)=>{try{const d=kb(u);d&&f.push(d)}catch(d){ib||d.name==="MissingIcon"&&console.error(d)}return f},[]);return new Promise((f,u)=>{Promise.all(l).then(d=>{Eb(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),c(),f()})}).catch(d=>{c(),u(d)})})}function o4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kb(e).then(n=>{n&&Eb([n],t)})}function i4(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Vf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Vf(o||{})),e(r,H(H({},n),{},{mask:o}))}}const s4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=_n,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:c=[],attributes:l={},styles:f={}}=t;if(!e)return;const{prefix:u,iconName:d,icon:m}=e;return Kc(H({type:"icon"},e),()=>(To("beforeDOMElementCreation",{iconDefinition:e,params:t}),fe.autoA11y&&(s?l["aria-labelledby"]="".concat(fe.replacementClass,"-title-").concat(a||Ms()):(l["aria-hidden"]="true",l.focusable="false")),yd({icons:{main:Yf(m),mask:o?Yf(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:u,iconName:d,transform:H(H({},_n),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:l,styles:f,classes:c}})))};var a4={mixout(){return{icon:i4(s4)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Lh,e.nodeCallback=o4,e}}},provides(e){e.i2svg=function(t){const{node:n=$e,callback:r=()=>{}}=t;return Lh(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:c,mask:l,maskId:f,extra:u}=n;return new Promise((d,m)=>{Promise.all([Qf(r,s),l.iconName?Qf(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[g,p]=h;d([t,yd({icons:{main:g,mask:p},prefix:s,iconName:r,transform:a,symbol:c,maskId:f,title:o,titleId:i,extra:u,watchable:!0})])}).catch(m)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=Bc(s);a.length>0&&(r.style=a);let c;return hd(i)&&(c=Fr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(c||o.icon),{children:n,attributes:r}}}},c4={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Kc({type:"layer"},()=>{To("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(fe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},l4={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Kc({type:"counter",content:e},()=>(To("beforeDOMElementCreation",{content:e,params:t}),BE({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(fe.cssPrefix,"-layers-counter"),...r]}})))}}}},f4={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=_n,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return Kc({type:"text",content:e},()=>(To("beforeDOMElementCreation",{content:e,params:t}),Th({content:e,transform:H(H({},_n),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(fe.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let s=null,a=null;if(Jy){const c=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();s=l.width/c,a=l.height/c}return fe.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Th({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const u4=new RegExp('"',"ug"),Rh=[1105920,1112319],Dh=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),L_),Z_),K_),Jf=Object.keys(Dh).reduce((e,t)=>(e[t.toLowerCase()]=Dh[t],e),{}),d4=Object.keys(Jf).reduce((e,t)=>{const n=Jf[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function m4(e){const t=e.replace(u4,""),n=vE(t,0),r=n>=Rh[0]&&n<=Rh[1],o=t.length===2?t[0]===t[1]:!1;return{value:Kf(o?t[0]:t),isSecondary:r||o}}function h4(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Jf[n]||{})[o]||d4[n]}function Fh(e,t){const n="".concat(J_).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Vi(e.children).filter(d=>d.getAttribute($f)===t)[0],a=Rr.getComputedStyle(e,t),c=a.getPropertyValue("font-family"),l=c.match(rE),f=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&u!=="none"&&u!==""){const d=a.getPropertyValue("content");let m=h4(c,f);const{value:h,isSecondary:g}=m4(d),p=l[0].startsWith("FontAwesome");let y=gd(m,h),b=y;if(p){const x=EE(h);x.iconName&&x.prefix&&(y=x.iconName,m=x.prefix)}if(y&&!g&&(!s||s.getAttribute(fd)!==m||s.getAttribute(ud)!==b)){e.setAttribute(n,b),s&&e.removeChild(s);const x=t4(),{extra:w}=x;w.attributes[$f]=t,Qf(y,m).then(A=>{const E=yd(H(H({},x),{},{icons:{main:A,mask:wb()},prefix:m,iconName:b,extra:w,watchable:!0})),S=$e.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(S,e.firstChild):e.appendChild(S),S.outerHTML=E.map(_=>ea(_)).join(`
|
|
587
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function p4(e){return Promise.all([Fh(e,"::before"),Fh(e,"::after")])}function g4(e){return e.parentNode!==document.head&&!~eE.indexOf(e.tagName.toUpperCase())&&!e.getAttribute($f)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function jh(e){if(cr)return new Promise((t,n)=>{const r=Vi(e.querySelectorAll("*")).filter(g4).map(p4),o=bd.begin("searchPseudoElements");Sb(),Promise.all(r).then(()=>{o(),Zf(),t()}).catch(()=>{o(),Zf(),n()})})}var y4={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=jh,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=$e}=t;fe.searchPseudoElements&&jh(n)}}};let zh=!1;var b4={mixout(){return{dom:{unwatch(){Sb(),zh=!0}}}},hooks(){return{bootstrap(){Mh(qf("mutationObserverCallbacks",{}))},noAuto(){ZE()},watch(e){const{observeMutationsRoot:t}=e;zh?Zf():Mh(qf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const $h=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var v4={mixout(){return{parse:{transform:e=>$h(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=$h(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const s={transform:"translate(".concat(o/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(a," ").concat(c," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:f,path:u};return{tag:"g",attributes:H({},d.outer),children:[{tag:"g",attributes:H({},d.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:H(H({},n.icon.attributes),d.path)}]}]}}}};const Ml={x:0,y:0,width:"100%",height:"100%"};function Bh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function x4(e){return e.tag==="g"?e.children:[e]}var w4={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Wc(n.split(" ").map(o=>o.trim())):wb();return r.prefix||(r.prefix=Dr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:s,transform:a}=t;const{width:c,icon:l}=o,{width:f,icon:u}=i,d=mE({transform:a,containerWidth:f,iconWidth:c}),m={tag:"rect",attributes:H(H({},Ml),{},{fill:"white"})},h=l.children?{children:l.children.map(Bh)}:{},g={tag:"g",attributes:H({},d.inner),children:[Bh(H({tag:l.tag,attributes:H(H({},l.attributes),d.path)},h))]},p={tag:"g",attributes:H({},d.outer),children:[g]},y="mask-".concat(s||Ms()),b="clip-".concat(s||Ms()),x={tag:"mask",attributes:H(H({},Ml),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,p]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:x4(u)},x]};return n.push(w,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},Ml)}),{children:n,attributes:r}}}},A4={provides(e){let t=!1;Rr.matchMedia&&(t=Rr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:H(H({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=H(H({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:H(H({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:H(H({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:H(H({},i),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:H(H({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:H(H({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:H(H({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:H(H({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},C4={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},_4=[gE,a4,c4,l4,f4,y4,b4,v4,w4,A4,C4];LE(_4,{mixoutsTo:Kt});Kt.noAuto;Kt.config;Kt.library;Kt.dom;const Xf=Kt.parse;Kt.findIconDefinition;Kt.toHtml;const E4=Kt.icon;Kt.layer;Kt.text;Kt.counter;function eu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S4(e){if(Array.isArray(e))return e}function k4(e){if(Array.isArray(e))return eu(e)}function br(e,t,n){return(t=R4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){l=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}function O4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
588
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
589
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(n),!0).forEach(function(r){br(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M4(e,t){if(e==null)return{};var n,r,o=I4(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function I4(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Wh(e,t){return S4(e)||N4(e,t)||Tb(e,t)||O4()}function tu(e){return k4(e)||T4(e)||Tb(e)||P4()}function L4(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R4(e){var t=L4(e,"string");return typeof t=="symbol"?t:t+""}function cc(e){"@babel/helpers - typeof";return cc=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},cc(e)}function Tb(e,t){if(e){if(typeof e=="string")return eu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eu(e,t):void 0}}var D4="7.0.0",nu;try{var F4=require("@fortawesome/fontawesome-svg-core/package.json");nu=F4.version}catch{nu=typeof process<"u"&&process.env.FA_VERSION||"7.0.0"}function j4(e){var t=e.beat,n=e.fade,r=e.beatFade,o=e.bounce,i=e.shake,s=e.flash,a=e.spin,c=e.spinPulse,l=e.spinReverse,f=e.pulse,u=e.fixedWidth,d=e.inverse,m=e.border,h=e.listItem,g=e.flip,p=e.size,y=e.rotation,b=e.pull,x=e.swapOpacity,w=e.rotateBy,A=e.widthAuto,E=z4(nu,D4),S=br(br(br(br(br(br({"fa-beat":t,"fa-fade":n,"fa-beat-fade":r,"fa-bounce":o,"fa-shake":i,"fa-flash":s,"fa-spin":a,"fa-spin-reverse":l,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":u,"fa-inverse":d,"fa-border":m,"fa-li":h,"fa-flip":g===!0,"fa-flip-horizontal":g==="horizontal"||g==="both","fa-flip-vertical":g==="vertical"||g==="both"},"fa-".concat(p),typeof p<"u"&&p!==null),"fa-rotate-".concat(y),typeof y<"u"&&y!==null&&y!==0),"fa-pull-".concat(b),typeof b<"u"&&b!==null),"fa-swap-opacity",x),"fa-rotate-by",E&&w),"fa-width-auto",E&&A);return Object.keys(S).map(function(_){return S[_]?_:null}).filter(function(_){return _})}function z4(e,t){for(var n=e.split("-"),r=Wh(n,2),o=r[0],i=r[1],s=t.split("-"),a=Wh(s,2),c=a[0],l=a[1],f=o.split("."),u=c.split("."),d=0;d<Math.max(f.length,u.length);d++){var m=f[d]||"0",h=u[d]||"0",g=parseInt(m,10),p=parseInt(h,10);if(g!==p)return g>p}for(var y=0;y<Math.max(f.length,u.length);y++){var b=f[y]||"0",x=u[y]||"0";if(b!==x&&b.length!==x.length)return b.length<x.length}return!(i&&!l)}function $4(e){return e=e-0,e===e}function Nb(e){return $4(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var B4=["style"];function U4(e){return e.charAt(0).toUpperCase()+e.slice(1)}function W4(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=Nb(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[U4(o)]=i:t[o]=i,t},{})}function Ob(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(c){return Ob(e,c)}),o=Object.keys(t.attributes||{}).reduce(function(c,l){var f=t.attributes[l];switch(l){case"class":c.attrs.className=f,delete t.attributes.class;break;case"style":c.attrs.style=W4(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=f:c.attrs[Nb(l)]=f}return c},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=M4(n,B4);return o.attrs.style=An(An({},o.attrs.style),s),e.apply(void 0,[t.tag,An(An({},o.attrs),a)].concat(tu(r)))}var Pb=!1;try{Pb=process.env.NODE_ENV==="production"}catch{}function K4(){if(!Pb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Kh(e){if(e&&cc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xf.icon)return Xf.icon(e);if(e===null)return null;if(e&&cc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Il(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?br({},e,t):{}}var Hh={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},Ce=T.forwardRef(function(e,t){var n=An(An({},Hh),e),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,l=n.maskId,f=Kh(r),u=Il("classes",[].concat(tu(j4(n)),tu((s||"").split(" ")))),d=Il("transform",typeof n.transform=="string"?Xf.transform(n.transform):n.transform),m=Il("mask",Kh(o)),h=E4(f,An(An(An(An({},u),d),m),{},{symbol:i,title:a,titleId:c,maskId:l}));if(!h)return K4("Could not find icon",f),null;var g=h.abstract,p={ref:t};return Object.keys(n).forEach(function(y){Hh.hasOwnProperty(y)||(p[y]=n[y])}),H4(g[0],p)});Ce.displayName="FontAwesomeIcon";Ce.propTypes={beat:ge.bool,border:ge.bool,beatFade:ge.bool,bounce:ge.bool,className:ge.string,fade:ge.bool,flash:ge.bool,mask:ge.oneOfType([ge.object,ge.array,ge.string]),maskId:ge.string,fixedWidth:ge.bool,inverse:ge.bool,flip:ge.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ge.oneOfType([ge.object,ge.array,ge.string]),listItem:ge.bool,pull:ge.oneOf(["right","left"]),pulse:ge.bool,rotation:ge.oneOf([0,90,180,270]),rotateBy:ge.bool,shake:ge.bool,size:ge.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ge.bool,spinPulse:ge.bool,spinReverse:ge.bool,symbol:ge.oneOfType([ge.bool,ge.string]),title:ge.string,titleId:ge.string,transform:ge.oneOfType([ge.string,ge.object]),swapOpacity:ge.bool,widthAuto:ge.bool};var H4=Ob.bind(null,T.createElement);const q4=async e=>await(await fetch(`${Ln}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),V4=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=ir(),o=async()=>q4({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Ys({queryKey:i,queryFn:o,enabled:n,staleTime:1/0},r),a=()=>{r.prefetchQuery({queryFn:o,queryKey:i,staleTime:1/0})};return{taskDetails:s.data,prefetchQuery:a,...s}},Y4=({buttons:e,onButtonClick:t,disabled:n})=>v.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-end",children:e.map(r=>v.jsx(je,{size:"smallCollapse",className:"cnf:ml-2",disabled:n,onClick:()=>{t(r)},children:Zw[r]},r))});function qh(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Rf(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function as(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ll(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Q4(e){return e.matches("html,body")}function Vh(e){return(e==null?void 0:e.ownerDocument)||document}function Ua(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Ua(e,o.id,n)])}function G4(e){return"nativeEvent"in e}var Z4=typeof document<"u",J4=function(){},ru=Z4?T.useLayoutEffect:J4;const X4={...C},eS=X4.useInsertionEffect,tS=eS||(e=>e());function si(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return tS(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const nS="data-floating-ui-focusable",Yh="active",Qh="selected",rS={...C};let Gh=!1,oS=0;const Zh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oS++;function iS(){const[e,t]=C.useState(()=>Gh?Zh():void 0);return ru(()=>{e==null&&t(Zh())},[]),C.useEffect(()=>{Gh=!0},[]),e}const sS=rS.useId,aS=sS||iS;let ou;process.env.NODE_ENV!=="production"&&(ou=new Set);function cS(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=ou)!=null&&e.has(o))){var i;(i=ou)==null||i.add(o),console.error(o)}}function lS(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const fS=C.createContext(null),uS=C.createContext(null),dS=()=>{var e;return((e=C.useContext(fS))==null?void 0:e.id)||null},Mb=()=>C.useContext(uS);function mS(e){return"data-floating-ui-"+e}const hS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Jh=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Ib(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:u="pointerdown",ancestorScroll:d=!1,bubbles:m,capture:h}=t,g=Mb(),p=si(typeof c=="function"?c:()=>!1),y=typeof c=="function"?p:c,b=C.useRef(!1),{escapeKey:x,outsidePress:w}=Jh(m),{escapeKey:A,outsidePress:E}=Jh(h),S=C.useRef(!1),_=si(z=>{var Y;if(!n||!s||!a||z.key!=="Escape"||S.current)return;const Q=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,oe=g?Ua(g.nodesRef.current,Q):[];if(!x&&(z.stopPropagation(),oe.length>0)){let M=!0;if(oe.forEach(re=>{var L;if((L=re.context)!=null&&L.open&&!re.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}r(!1,G4(z)?z.nativeEvent:z,"escape-key")}),N=si(z=>{var Y;const Q=()=>{var oe;_(z),(oe=as(z))==null||oe.removeEventListener("keydown",Q)};(Y=as(z))==null||Y.addEventListener("keydown",Q)}),P=si(z=>{var Y;const Q=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=b.current;if(b.current=!1,l==="click"&&oe||Q||typeof y=="function"&&!y(z))return;const M=as(z),re="["+mS("inert")+"]",L=Vh(o.floating).querySelectorAll(re);let F=He(M)?M:null;for(;F&&!Xn(F);){const V=tr(F);if(Xn(V)||!He(V))break;F=V}if(L.length&&He(M)&&!Q4(M)&&!qh(M,o.floating)&&Array.from(L).every(V=>!qh(F,V)))return;if(fn(M)&&j){const V=Xn(M),ee=Gt(M),te=/auto|scroll/,he=V||te.test(ee.overflowX),ye=V||te.test(ee.overflowY),pe=he&&M.clientWidth>0&&M.scrollWidth>M.clientWidth,ze=ye&&M.clientHeight>0&&M.scrollHeight>M.clientHeight,G=ee.direction==="rtl",qe=ze&&(G?z.offsetX<=M.offsetWidth-M.clientWidth:z.offsetX>M.clientWidth),zt=pe&&z.offsetY>M.clientHeight;if(qe||zt)return}const K=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,U=g&&Ua(g.nodesRef.current,K).some(V=>{var ee;return Ll(z,(ee=V.context)==null?void 0:ee.elements.floating)});if(Ll(z,o.floating)||Ll(z,o.domReference)||U)return;const J=g?Ua(g.nodesRef.current,K):[];if(J.length>0){let V=!0;if(J.forEach(ee=>{var te;if((te=ee.context)!=null&&te.open&&!ee.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}r(!1,z,"outside-press")}),I=si(z=>{var Y;const Q=()=>{var oe;P(z),(oe=as(z))==null||oe.removeEventListener(l,Q)};(Y=as(z))==null||Y.addEventListener(l,Q)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let z=-1;function Y(L){r(!1,L,"ancestor-scroll")}function Q(){window.clearTimeout(z),S.current=!0}function oe(){z=window.setTimeout(()=>{S.current=!1},Dc()?5:0)}const M=Vh(o.floating);a&&(M.addEventListener("keydown",A?N:_,A),M.addEventListener("compositionstart",Q),M.addEventListener("compositionend",oe)),y&&M.addEventListener(l,E?I:P,E);let re=[];return d&&(He(o.domReference)&&(re=hi(o.domReference)),He(o.floating)&&(re=re.concat(hi(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(hi(o.reference.contextElement)))),re=re.filter(L=>{var F;return L!==((F=M.defaultView)==null?void 0:F.visualViewport)}),re.forEach(L=>{L.addEventListener("scroll",Y,{passive:!0})}),()=>{a&&(M.removeEventListener("keydown",A?N:_,A),M.removeEventListener("compositionstart",Q),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(l,E?I:P,E),re.forEach(L=>{L.removeEventListener("scroll",Y)}),window.clearTimeout(z)}},[i,o,a,y,l,n,r,d,s,x,w,_,A,N,P,E,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,l]);const W=C.useMemo(()=>({onKeyDown:_,...f&&{[hS[u]]:z=>{r(!1,z.nativeEvent,"reference-press")},...u!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[_,r,f,u]),j=C.useMemo(()=>({onKeyDown:_,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[pS[l]]:()=>{i.current.insideReactTree=!0}}),[_,l,i]);return C.useMemo(()=>s?{reference:W,floating:j}:{},[s,W,j])}function gS(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=aS(),i=C.useRef({}),[s]=C.useState(()=>lS()),a=dS()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!He(m)&&cS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=C.useState(r.reference),f=si((m,h,g)=>{i.current.openEvent=m?h:void 0,s.emit("openchange",{open:m,event:h,reason:g,nested:a}),n==null||n(m,h,g)}),u=C.useMemo(()=>({setPositionReference:l}),[]),d=C.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:s,floatingId:o,refs:u}),[t,f,d,s,o,u])}function Lb(e){e===void 0&&(e={});const{nodeId:t}=e,n=gS({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,c]=C.useState(null),f=(o==null?void 0:o.domReference)||i,u=C.useRef(null),d=Mb();ru(()=>{f&&(u.current=f)},[f]);const m=PC({...e,elements:{...o,...a&&{reference:a}}}),h=C.useCallback(x=>{const w=He(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;c(w),m.refs.setReference(w)},[m.refs]),g=C.useCallback(x=>{(He(x)||x===null)&&(u.current=x,s(x)),(He(m.refs.reference.current)||m.refs.reference.current===null||x!==null&&!He(x))&&m.refs.setReference(x)},[m.refs]),p=C.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:u}),[m.refs,g,h]),y=C.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),b=C.useMemo(()=>({...m,...r,refs:p,elements:y,nodeId:t}),[m,p,y,t,r]);return ru(()=>{r.dataRef.current.floatingContext=b;const x=d==null?void 0:d.nodesRef.current.find(w=>w.id===t);x&&(x.context=b)}),C.useMemo(()=>({...m,context:b,refs:p,elements:y}),[m,p,y,b])}function Rl(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Yh]:s,[Qh]:a,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[nS]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[l,f]=c;if(!(o&&[Yh,Qh].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof f=="function"){var u;(u=r.get(l))==null||u.push(f),s[l]=function(){for(var d,m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return(d=r.get(l))==null?void 0:d.map(p=>p(...h)).find(p=>p!==void 0)}}}else s[l]=f}),s),{})}}function Rb(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=C.useCallback(a=>Rl(a,e,"reference"),t),i=C.useCallback(a=>Rl(a,e,"floating"),n),s=C.useCallback(a=>Rl(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const yS={white:"cnf:bg-white cnf:text-dark-300 cnf:border cnf:border-gray-300",primary:"cnf:bg-primary-600",secondary:"cnf:bg-secondary-500",success:"cnf:bg-success-600",info:"cnf:bg-info-500",warning:"cnf:bg-warning-500 cnf:text-gray-800",danger:"cnf:bg-danger-500",steel:"cnf:bg-steel-500",orange:"cnf:bg-orange-500",purple:"cnf:bg-purple-500",grayDark:"cnf:bg-gray-900",grayLight:"cnf:bg-gray-100 cnf:text-gray-800"},bS={white:"cnf:text-white cnf:border cnf:border-white",primary:"cnf:text-primary-600 cnf:border cnf:border-primary-600",secondary:"cnf:text-secondary-500 cnf:border cnf:border-secondary-500",success:"cnf:text-success-600 cnf:border cnf:border-success-600",info:"cnf:text-info-500 cnf:border cnf:border-info-500",warning:"cnf:text-warning-500 cnf:border cnf:border-warning-500",danger:"cnf:text-danger-500 cnf:border cnf:border-danger-500",steel:"cnf:text-steel-500 cnf:border cnf:border-steel-500",orange:"cnf:text-orange-500 cnf:border cnf:border-orange-500",purple:"cnf:text-purple-500 cnf:border cnf:border-purple-500",grayDark:"cnf:text-gray-700 cnf:border cnf:border-gray-700",grayLight:"cnf:text-gray-500 cnf:border cnf:border-gray-100"},vS={white:"cnf:text-dark-300",primary:"cnf:text-white",secondary:"cnf:text-white",success:"cnf:text-white",info:"cnf:text-black",warning:"cnf:text-gray-800",danger:"cnf:text-white",steel:"cnf:text-white",orange:"cnf:text-black",purple:"cnf:text-white",grayDark:"cnf:text-white",grayLight:"cnf:text-gray-800"},xS={normal:"cnf:rounded",pill:"cnf:rounded-pill"},wS={big:"cnf:h-[24px] cnf:leading-[24px] cnf:text-md cnf:px-1",medium:"cnf:h-[22px] cnf:leading-[22px] cnf:text-sm cnf:px-[2px]",small:"cnf:h-[18px] cnf:leading-[18px] cnf:text-xs cnf:px-[2px]"},Db=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="cnf:uppercase",children:i,className:s,...a})=>{const c=T.useMemo(()=>vS[t]??"cnf:text-white",[t]),l=T.useMemo(()=>mi(c,e==="outline"?bS[t]:yS[t],xS[n],wS[r]),[c,e,t,r,n]);return v.jsx("div",{className:mi("ui-badge cnf:flex cnf:items-center cnf:font-bold",l,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:v.jsx("p",{className:mi("cnf:mx-1",o),children:i})})},AS={default:"cnf:text-secondary-600 cnf:border-secondary-600",primary:"cnf:text-primary-600 cnf:border-primary-600",success:"cnf:text-success-600 cnf:border-success-600"},CS=({transition:e,onClick:t})=>v.jsxs("div",{className:xe("cnf:py-1 cnf:px-3 cnf:space-x-2 cnf:flex cnf:items-center cnf:hover:bg-gray-100 cnf:cursor-pointer",e.disabled&&"cnf:opacity-50 cnf:cursor-not-allowed cnf:hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[v.jsx("span",{className:"cnf:text-base cnf:text-dark cnf:flex-1",children:e.action}),v.jsx(Ce,{icon:m_,className:"cnf:text-gray-400 cnf:size-4"}),v.jsx(Db,{category:"outline",color:e.color,children:e.to})]}),_S=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=T.useState(!1),{refs:c,floatingStyles:l,context:f}=Lb({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),u=Ib(f,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:m}=Rb([u]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{onClick:n!=null&&n.length?()=>a(h=>!h):void 0,ref:c.setReference,className:xe("cnf:px-1 cnf:uppercase cnf:border cnf:rounded-sm cnf:inline-flex cnf:items-center cnf:space-x-1 cnf:flex-shrink-0 cnf:whitespace-nowrap",n.length?"cnf:cursor-pointer":"cnf:pointer-events-none",AS[t]),...d(),children:[r===Kn.COMMENT&&v.jsx(Ce,{icon:o?By:c_,className:xe("cnf:size-4",e==="In progress"&&(o?"cnf:text-success-600":"cnf:text-danger-600"))}),v.jsx("span",{className:"cnf:text-sm cnf:font-bold",children:e}),n.length>0?v.jsx(Ce,{icon:Hy,className:"cnf:size-4"}):v.jsx(v.Fragment,{})]}),s&&n.length&&v.jsx("div",{ref:c.setFloating,style:l,className:xe("cnf:border cnf:border-gray-200 cnf:py-1.5 cnf:rounded-sm cnf:min-w-[172px] cnf:bg-white cnf:shadow-dark/50"),...m(),children:n.map(h=>v.jsx(CS,{transition:h,onClick:()=>{i==null||i(h.id),a(!1)}},h.id))})]})},Xh=({description:e})=>{const t=T.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${Jm}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${Jm}`),a=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return a==null||a.forEach(c=>{const l=c.getAttribute("src");l&&(new Image().src=l)}),o},[e]);return T.useEffect(()=>{},[t]),v.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-4",children:v.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},ES={SEQUENTIAL:"Sequential"},SS={[Ue.IN_REVIEW]:"In Review"},kS={[Ue.OPEN]:"cnf:bg-secondary-500",[Ue.IN_PROGRESS]:"cnf:bg-primary-600",[Ue.IN_REVIEW]:"cnf:bg-success-600",[Ue.COMPLETED]:"cnf:bg-success-600"},TS=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>v.jsx("div",{className:Ts("cnf:flex cnf:flex-col cnf:items-center cnf:justify-center",r?"cnf:bg-[#FFE600]":kS[t],o&&"cnf:cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:v.jsx("span",{className:Ts("cnf:text-orientation-mixed cnf:w-[27px] cnf:flex cnf:items-center cnf:whitespace-nowrap cnf:px-2 cnf:text-sm cnf:font-bold cnf:[writing-mode:vertical-lr]",r?"cnf:text-black":"cnf:text-white"),children:e===ES.SEQUENTIAL?`STEP ${n}`:(SS[t]||t).toUpperCase()})}),NS={[Ue.OPEN]:"secondary",[Ue.IN_PROGRESS]:"primary",[Ue.IN_REVIEW]:"success",[Ue.COMPLETED]:"success"},Fb=({status:e,category:t="outline",className:n=""})=>v.jsx(Db,{category:t,color:NS[e],className:n,children:e}),dt={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
590
590
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
591
591
|
* License - https://fontawesome.com/license (Commercial License)
|
|
592
592
|
* Copyright 2024 Fonticons, Inc.
|
|
593
|
-
*/const x4={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"]},w4={prefix:"far",iconName:"strikethrough",icon:[512,512,[],"f0cc","M145.5 138c4-21.5 17.9-37.4 41.7-47.4c24.7-10.4 59.4-13.7 99.9-7.5c12.8 2 52.4 9.5 64.9 12.8c12.8 3.3 25.9-4.3 29.3-17.2s-4.3-25.9-17.2-29.3c-14.7-3.8-56.1-11.7-69.7-13.8c-46.2-7.1-90.4-4.1-125.7 10.7c-36.1 15.1-63.3 43.1-70.5 83.9c-.1 .4-.1 .9-.2 1.3c-2.8 23.4 .5 44.2 9.8 62.2c9.2 17.8 23.2 31.2 38.8 41.5c2.4 1.6 5 3.2 7.5 4.7L24 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-192.2 0c-9.9-3.1-19.7-6-29.2-8.8l-.3-.1c-37.7-11.1-70.5-20.7-93.3-35.8c-10.9-7.2-18.2-14.9-22.6-23.5c-4.2-8.2-6.6-18.9-4.9-33.8zM364 337.1c3.7 8.6 5.5 20.1 2.6 36.3c-3.8 21.8-17.8 37.9-41.8 48c-24.7 10.4-59.4 13.7-99.8 7.5c-20.1-3.2-54.3-14.6-81.2-23.6c0 0 0 0 0 0s0 0 0 0c-5.9-2-11.4-3.8-16.3-5.4c-12.6-4.1-26.1 2.8-30.3 15.4s2.8 26.2 15.4 30.3c4 1.3 8.8 2.9 14 4.7c26.6 8.9 66.4 22.2 90.9 26.2l.1 0c46.2 7.1 90.4 4.1 125.7-10.7c36.1-15.1 63.3-43.1 70.5-83.9c4-22.9 2.4-43.5-5-61.7l-57.2 0c5.7 5.3 9.7 11 12.3 17.1z"]},A4={prefix:"far",iconName:"underline",icon:[448,512,[],"f0cd","M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"]},C4={prefix:"far",iconName:"bold",icon:[384,512,[],"f032","M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"]},_4={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},E4={prefix:"far",iconName:"text-slash",icon:[640,512,["remove-format"],"f87d","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-281.9-221L396.4 80l124.8 0-8.5 34.2c-3.2 12.9 4.6 25.9 17.5 29.1s25.9-4.6 29.1-17.5l11-44.1C576.6 56.5 557.5 32 531.5 32l-335 0c-18.4 0-34.4 12.5-38.8 30.3l-7.5 30.1L38.8 5.1zM191.5 124.8L202.7 80l143.8 0L308.1 216.2 191.5 124.8zm57.4 300.7l-1.8 6.5L192 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.1 0 23.6-83.5-40.8-32.1L248.9 425.5z"]},S4={prefix:"far",iconName:"italic",icon:[384,512,[],"f033","M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"]},k4={prefix:"far",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24l0 120 16 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l16 0 0-96-8 0C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432l33.2 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM216 72l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},T4={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},N4={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},O4={prefix:"far",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"]},P4={prefix:"far",iconName:"font",icon:[448,512,[],"f031","M246.2 46.9C242.5 37.9 233.8 32 224 32s-18.5 5.9-22.2 14.9L44.6 432 24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-39.5 0 32.7-80 189.8 0 32.7 80L312 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-20.6 0L246.2 46.9zM299.3 304l-150.6 0L224 119.5 299.3 304z"]},M4={prefix:"far",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z"]},I4={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},Yh=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var a,c;const o=n>0,i={[dt.INFO]:{icon:HC,color:"cnf:text-primary-600 cnf:hover:text-primary-600"},[dt.WARNING]:{icon:p_,color:"cnf:text-warning-600 cnf:hover:text-warning-600"},[dt.DANGER]:{icon:Dc,color:"cnf:text-danger-600 cnf:hover:text-danger-600"},[dt.SUCCESS]:{icon:zy,color:"cnf:text-success-600 cnf:hover:text-success-600"}},s=l=>{l.preventDefault(),l.stopPropagation(),t()};return x.jsxs(je,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:s,className:Ee("cnf:relative",(a=i[r])==null?void 0:a.color),title:"View comments",children:[x.jsx("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center",children:o?x.jsxs(x.Fragment,{children:[x.jsx(Ce,{icon:KC,size:"lg"}),x.jsx(Ce,{icon:(c=i[r])==null?void 0:c.icon,className:"cnf:font-bold cnf:absolute cnf:left-1/2 cnf:-translate-x-1/2 cnf:top-0.5",size:"xs",color:"white"})]}):x.jsx(Ce,{icon:x4,size:"lg"})}),o&&x.jsx("span",{className:"cnf:absolute cnf:top-0.5 cnf:-right-0 cnf:flex cnf:h-3 cnf:w-3 cnf:items-center cnf:justify-center cnf:rounded-full cnf:bg-primary-600 cnf:text-[10px] cnf:text-white",children:n})]})},L4=document.getElementById("lexical-root")??(()=>{const e=document.createElement("div");return e.id="lexical-root",e.style.position="relative",e.style.zIndex="2147483647",document.body.appendChild(e),e})();/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Nv,setPrototypeOf:Qh,isFrozen:R4,getPrototypeOf:D4,getOwnPropertyDescriptor:F4}=Object;let{freeze:Nt,seal:Gt,create:nu}=Object,{apply:ru,construct:ou}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Gt||(Gt=function(t){return t});ru||(ru=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});ou||(ou=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const xa=Ot(Array.prototype.forEach),j4=Ot(Array.prototype.lastIndexOf),Gh=Ot(Array.prototype.pop),ss=Ot(Array.prototype.push),z4=Ot(Array.prototype.splice),ja=Ot(String.prototype.toLowerCase),Il=Ot(String.prototype.toString),Ll=Ot(String.prototype.match),as=Ot(String.prototype.replace),$4=Ot(String.prototype.indexOf),U4=Ot(String.prototype.trim),tn=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),cs=B4(TypeError);function Ot(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ru(e,t,r)}}function B4(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ou(e,n)}}function Ae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ja;Qh&&Qh(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(R4(t)||(t[r]=i),o=i)}e[o]=!0}return e}function W4(e){for(let t=0;t<e.length;t++)tn(e,t)||(e[t]=null);return e}function hn(e){const t=nu(null);for(const[n,r]of Nv(e))tn(e,n)&&(Array.isArray(r)?t[n]=W4(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=hn(r):t[n]=r);return t}function ls(e,t){for(;e!==null;){const r=F4(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=D4(e)}function n(){return null}return n}const Zh=Nt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Rl=Nt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dl=Nt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),K4=Nt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fl=Nt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H4=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jh=Nt(["#text"]),Xh=Nt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),jl=Nt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),em=Nt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wa=Nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q4=Gt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V4=Gt(/<%[\w\W]*|[\w\W]*%>/gm),Y4=Gt(/\$\{[\w\W]*/gm),Q4=Gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),G4=Gt(/^aria-[\-\w]+$/),Ov=Gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z4=Gt(/^(?:\w+script|data):/i),J4=Gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pv=Gt(/^html$/i),X4=Gt(/^[a-z][.\w]*(-[.\w]+)+$/i);var tm=Object.freeze({__proto__:null,ARIA_ATTR:G4,ATTR_WHITESPACE:J4,CUSTOM_ELEMENT:X4,DATA_ATTR:Q4,DOCTYPE_NAME:Pv,ERB_EXPR:V4,IS_ALLOWED_URI:Ov,IS_SCRIPT_OR_DATA:Z4,MUSTACHE_EXPR:q4,TMPLIT_EXPR:Y4});const fs={element:1,text:3,progressingInstruction:7,comment:8,document:9},ek=function(){return typeof window>"u"?null:window},tk=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},nm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Mv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ek();const t=de=>Mv(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==fs.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:p}=e,h=c.prototype,g=ls(h,"cloneNode"),m=ls(h,"remove"),y=ls(h,"nextSibling"),v=ls(h,"childNodes"),b=ls(h,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let w,A="";const{implementation:_,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:N}=n,{importNode:P}=r;let I=nm();t.isSupported=typeof Nv=="function"&&typeof b=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:W,ERB_EXPR:j,TMPLIT_EXPR:z,DATA_ATTR:Y,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:re}=tm;let{IS_ALLOWED_URI:L}=tm,F=null;const K=Ae({},[...Zh,...Rl,...Dl,...Fl,...Jh]);let B=null;const J=Ae({},[...Xh,...jl,...em,...wa]);let V=Object.seal(nu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,te=null;const he=Object.seal(nu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,me=!0,ze=!1,G=!0,qe=!1,zt=!0,mt=!1,qo=!1,ns=!1,In=!1,qr=!1,Vo=!1,se=!0,De=!1;const ct="user-content-";let Mt=!0,et=!1,Kt={},At=null;const fr=Ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Yo=null;const $t=Ae({},["audio","video","img","source","image","track"]);let Vr=null;const ur=Ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yr="http://www.w3.org/1998/Math/MathML",dr="http://www.w3.org/2000/svg",Ln="http://www.w3.org/1999/xhtml";let Qo=Ln,sl=!1,al=null;const C1=Ae({},[Yr,dr,Ln],Il);let aa=Ae({},["mi","mo","mn","ms","mtext"]),ca=Ae({},["annotation-xml"]);const _1=Ae({},["title","style","font","a","script"]);let rs=null;const E1=["application/xhtml+xml","text/html"],S1="text/html";let Qe=null,Go=null;const k1=n.createElement("form"),up=function(O){return O instanceof RegExp||O instanceof Function},cl=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Go&&Go===O)){if((!O||typeof O!="object")&&(O={}),O=hn(O),rs=E1.indexOf(O.PARSER_MEDIA_TYPE)===-1?S1:O.PARSER_MEDIA_TYPE,Qe=rs==="application/xhtml+xml"?Il:ja,F=tn(O,"ALLOWED_TAGS")?Ae({},O.ALLOWED_TAGS,Qe):K,B=tn(O,"ALLOWED_ATTR")?Ae({},O.ALLOWED_ATTR,Qe):J,al=tn(O,"ALLOWED_NAMESPACES")?Ae({},O.ALLOWED_NAMESPACES,Il):C1,Vr=tn(O,"ADD_URI_SAFE_ATTR")?Ae(hn(ur),O.ADD_URI_SAFE_ATTR,Qe):ur,Yo=tn(O,"ADD_DATA_URI_TAGS")?Ae(hn($t),O.ADD_DATA_URI_TAGS,Qe):$t,At=tn(O,"FORBID_CONTENTS")?Ae({},O.FORBID_CONTENTS,Qe):fr,ee=tn(O,"FORBID_TAGS")?Ae({},O.FORBID_TAGS,Qe):hn({}),te=tn(O,"FORBID_ATTR")?Ae({},O.FORBID_ATTR,Qe):hn({}),Kt=tn(O,"USE_PROFILES")?O.USE_PROFILES:!1,ye=O.ALLOW_ARIA_ATTR!==!1,me=O.ALLOW_DATA_ATTR!==!1,ze=O.ALLOW_UNKNOWN_PROTOCOLS||!1,G=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=O.SAFE_FOR_TEMPLATES||!1,zt=O.SAFE_FOR_XML!==!1,mt=O.WHOLE_DOCUMENT||!1,In=O.RETURN_DOM||!1,qr=O.RETURN_DOM_FRAGMENT||!1,Vo=O.RETURN_TRUSTED_TYPE||!1,ns=O.FORCE_BODY||!1,se=O.SANITIZE_DOM!==!1,De=O.SANITIZE_NAMED_PROPS||!1,Mt=O.KEEP_CONTENT!==!1,et=O.IN_PLACE||!1,L=O.ALLOWED_URI_REGEXP||Ov,Qo=O.NAMESPACE||Ln,aa=O.MATHML_TEXT_INTEGRATION_POINTS||aa,ca=O.HTML_INTEGRATION_POINTS||ca,V=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&up(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&up(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(me=!1),qr&&(In=!0),Kt&&(F=Ae({},Jh),B=[],Kt.html===!0&&(Ae(F,Zh),Ae(B,Xh)),Kt.svg===!0&&(Ae(F,Rl),Ae(B,jl),Ae(B,wa)),Kt.svgFilters===!0&&(Ae(F,Dl),Ae(B,jl),Ae(B,wa)),Kt.mathMl===!0&&(Ae(F,Fl),Ae(B,em),Ae(B,wa))),O.ADD_TAGS&&(typeof O.ADD_TAGS=="function"?he.tagCheck=O.ADD_TAGS:(F===K&&(F=hn(F)),Ae(F,O.ADD_TAGS,Qe))),O.ADD_ATTR&&(typeof O.ADD_ATTR=="function"?he.attributeCheck=O.ADD_ATTR:(B===J&&(B=hn(B)),Ae(B,O.ADD_ATTR,Qe))),O.ADD_URI_SAFE_ATTR&&Ae(Vr,O.ADD_URI_SAFE_ATTR,Qe),O.FORBID_CONTENTS&&(At===fr&&(At=hn(At)),Ae(At,O.FORBID_CONTENTS,Qe)),O.ADD_FORBID_CONTENTS&&(At===fr&&(At=hn(At)),Ae(At,O.ADD_FORBID_CONTENTS,Qe)),Mt&&(F["#text"]=!0),mt&&Ae(F,["html","head","body"]),F.table&&(Ae(F,["tbody"]),delete ee.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=O.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=tk(p,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));Nt&&Nt(O),Go=O}},dp=Ae({},[...Rl,...Dl,...K4]),pp=Ae({},[...Fl,...H4]),T1=function(O){let q=b(O);(!q||!q.tagName)&&(q={namespaceURI:Qo,tagName:"template"});const le=ja(O.tagName),Ue=ja(q.tagName);return al[O.namespaceURI]?O.namespaceURI===dr?q.namespaceURI===Ln?le==="svg":q.namespaceURI===Yr?le==="svg"&&(Ue==="annotation-xml"||aa[Ue]):!!dp[le]:O.namespaceURI===Yr?q.namespaceURI===Ln?le==="math":q.namespaceURI===dr?le==="math"&&ca[Ue]:!!pp[le]:O.namespaceURI===Ln?q.namespaceURI===dr&&!ca[Ue]||q.namespaceURI===Yr&&!aa[Ue]?!1:!pp[le]&&(_1[le]||!dp[le]):!!(rs==="application/xhtml+xml"&&al[O.namespaceURI]):!1},pn=function(O){ss(t.removed,{element:O});try{b(O).removeChild(O)}catch{m(O)}},Qr=function(O,q){try{ss(t.removed,{attribute:q.getAttributeNode(O),from:q})}catch{ss(t.removed,{attribute:null,from:q})}if(q.removeAttribute(O),O==="is")if(In||qr)try{pn(q)}catch{}else try{q.setAttribute(O,"")}catch{}},hp=function(O){let q=null,le=null;if(ns)O="<remove></remove>"+O;else{const Ve=Ll(O,/^[\r\n\t ]+/);le=Ve&&Ve[0]}rs==="application/xhtml+xml"&&Qo===Ln&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const Ue=w?w.createHTML(O):O;if(Qo===Ln)try{q=new d().parseFromString(Ue,rs)}catch{}if(!q||!q.documentElement){q=_.createDocument(Qo,"template",null);try{q.documentElement.innerHTML=sl?A:Ue}catch{}}const gt=q.body||q.documentElement;return O&&le&>.insertBefore(n.createTextNode(le),gt.childNodes[0]||null),Qo===Ln?N.call(q,mt?"html":"body")[0]:mt?q.documentElement:gt},mp=function(O){return E.call(O.ownerDocument||O,O,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ll=function(O){return O instanceof u&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof f)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},gp=function(O){return typeof a=="function"&&O instanceof a};function Rn(de,O,q){xa(de,le=>{le.call(t,O,q,Go)})}const yp=function(O){let q=null;if(Rn(I.beforeSanitizeElements,O,null),ll(O))return pn(O),!0;const le=Qe(O.nodeName);if(Rn(I.uponSanitizeElement,O,{tagName:le,allowedTags:F}),zt&&O.hasChildNodes()&&!gp(O.firstElementChild)&&Ct(/<[/\w!]/g,O.innerHTML)&&Ct(/<[/\w!]/g,O.textContent)||O.nodeType===fs.progressingInstruction||zt&&O.nodeType===fs.comment&&Ct(/<[/\w]/g,O.data))return pn(O),!0;if(!(he.tagCheck instanceof Function&&he.tagCheck(le))&&(!F[le]||ee[le])){if(!ee[le]&&bp(le)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,le)||V.tagNameCheck instanceof Function&&V.tagNameCheck(le)))return!1;if(Mt&&!At[le]){const Ue=b(O)||O.parentNode,gt=v(O)||O.childNodes;if(gt&&Ue){const Ve=gt.length;for(let It=Ve-1;It>=0;--It){const Dn=g(gt[It],!0);Dn.__removalCount=(O.__removalCount||0)+1,Ue.insertBefore(Dn,y(O))}}}return pn(O),!0}return O instanceof c&&!T1(O)||(le==="noscript"||le==="noembed"||le==="noframes")&&Ct(/<\/no(script|embed|frames)/i,O.innerHTML)?(pn(O),!0):(qe&&O.nodeType===fs.text&&(q=O.textContent,xa([W,j,z],Ue=>{q=as(q,Ue," ")}),O.textContent!==q&&(ss(t.removed,{element:O.cloneNode()}),O.textContent=q)),Rn(I.afterSanitizeElements,O,null),!1)},vp=function(O,q,le){if(se&&(q==="id"||q==="name")&&(le in n||le in k1))return!1;if(!(me&&!te[q]&&Ct(Y,q))){if(!(ye&&Ct(Q,q))){if(!(he.attributeCheck instanceof Function&&he.attributeCheck(q,O))){if(!B[q]||te[q]){if(!(bp(O)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,O)||V.tagNameCheck instanceof Function&&V.tagNameCheck(O))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,q)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(q,O))||q==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,le)||V.tagNameCheck instanceof Function&&V.tagNameCheck(le))))return!1}else if(!Vr[q]){if(!Ct(L,as(le,M,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&O!=="script"&&$4(le,"data:")===0&&Yo[O])){if(!(ze&&!Ct(oe,as(le,M,"")))){if(le)return!1}}}}}}}return!0},bp=function(O){return O!=="annotation-xml"&&Ll(O,re)},xp=function(O){Rn(I.beforeSanitizeAttributes,O,null);const{attributes:q}=O;if(!q||ll(O))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let Ue=q.length;for(;Ue--;){const gt=q[Ue],{name:Ve,namespaceURI:It,value:Dn}=gt,Zo=Qe(Ve),fl=Dn;let lt=Ve==="value"?fl:U4(fl);if(le.attrName=Zo,le.attrValue=lt,le.keepAttr=!0,le.forceKeepAttr=void 0,Rn(I.uponSanitizeAttribute,O,le),lt=le.attrValue,De&&(Zo==="id"||Zo==="name")&&(Qr(Ve,O),lt=ct+lt),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,lt)){Qr(Ve,O);continue}if(Zo==="attributename"&&Ll(lt,"href")){Qr(Ve,O);continue}if(le.forceKeepAttr)continue;if(!le.keepAttr){Qr(Ve,O);continue}if(!G&&Ct(/\/>/i,lt)){Qr(Ve,O);continue}qe&&xa([W,j,z],Ap=>{lt=as(lt,Ap," ")});const wp=Qe(O.nodeName);if(!vp(wp,Zo,lt)){Qr(Ve,O);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!It)switch(p.getAttributeType(wp,Zo)){case"TrustedHTML":{lt=w.createHTML(lt);break}case"TrustedScriptURL":{lt=w.createScriptURL(lt);break}}if(lt!==fl)try{It?O.setAttributeNS(It,Ve,lt):O.setAttribute(Ve,lt),ll(O)?pn(O):Gh(t.removed)}catch{Qr(Ve,O)}}Rn(I.afterSanitizeAttributes,O,null)},N1=function de(O){let q=null;const le=mp(O);for(Rn(I.beforeSanitizeShadowDOM,O,null);q=le.nextNode();)Rn(I.uponSanitizeShadowNode,q,null),yp(q),xp(q),q.content instanceof i&&de(q.content);Rn(I.afterSanitizeShadowDOM,O,null)};return t.sanitize=function(de){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,le=null,Ue=null,gt=null;if(sl=!de,sl&&(de="<!-->"),typeof de!="string"&&!gp(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw cs("dirty is not a string, aborting")}else throw cs("toString is not a function");if(!t.isSupported)return de;if(qo||cl(O),t.removed=[],typeof de=="string"&&(et=!1),et){if(de.nodeName){const Dn=Qe(de.nodeName);if(!F[Dn]||ee[Dn])throw cs("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)q=hp("<!---->"),le=q.ownerDocument.importNode(de,!0),le.nodeType===fs.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?q=le:q.appendChild(le);else{if(!In&&!qe&&!mt&&de.indexOf("<")===-1)return w&&Vo?w.createHTML(de):de;if(q=hp(de),!q)return In?null:Vo?A:""}q&&ns&&pn(q.firstChild);const Ve=mp(et?de:q);for(;Ue=Ve.nextNode();)yp(Ue),xp(Ue),Ue.content instanceof i&&N1(Ue.content);if(et)return de;if(In){if(qr)for(gt=S.call(q.ownerDocument);q.firstChild;)gt.appendChild(q.firstChild);else gt=q;return(B.shadowroot||B.shadowrootmode)&&(gt=P.call(r,gt,!0)),gt}let It=mt?q.outerHTML:q.innerHTML;return mt&&F["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ct(Pv,q.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
594
|
-
`+It),qe&&xa([W,j,z],Dn=>{It=as(It,Dn," ")}),w&&Vo?w.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cl(de),qo=!0},t.clearConfig=function(){Go=null,qo=!1},t.isValidAttribute=function(de,O,q){Go||cl({});const le=Qe(de),Ue=Qe(O);return vp(le,Ue,q)},t.addHook=function(de,O){typeof O=="function"&&ss(I[de],O)},t.removeHook=function(de,O){if(O!==void 0){const q=j4(I[de],O);return q===-1?void 0:z4(I[de],q,1)[0]}return Gh(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=nm()},t}var iu=Mv();const nk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABpCAYAAAB/GGzVAAAEtWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgdGlmZjpJbWFnZUxlbmd0aD0iMTA1IgogICB0aWZmOkltYWdlV2lkdGg9IjIwMCIKICAgdGlmZjpSZXNvbHV0aW9uVW5pdD0iMiIKICAgdGlmZjpYUmVzb2x1dGlvbj0iNzIvMSIKICAgdGlmZjpZUmVzb2x1dGlvbj0iNzIvMSIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjIwMCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEwNSIKICAgZXhpZjpDb2xvclNwYWNlPSIxIgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIj4KICAgPHhtcE1NOkhpc3Rvcnk+CiAgICA8cmRmOlNlcT4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0icHJvZHVjZWQiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFmZmluaXR5IFBob3RvIDIgMi42LjIiCiAgICAgIHN0RXZ0OndoZW49IjIwMjUtMDUtMTRUMTE6NTA6MjAtMDQ6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KPD94cGFja2V0IGVuZD0iciI/PpjjR1oAAAGCaUNDUHNSR0IgSUVDNjE5NjYtMi4xAAAokXWRzStEURiHH8M0YhjFwkKZNKzQDDWxUUZCSRqjfG3u3Jk7o+bjdu9Mkq2yVZTY+FrwF7BV1koRKVmzJTboeu/M1EzinM77Pv3Oed/O+R1wRFJq2qzxQzqTM8JjIe/c/ILX9YKTRjz00q6opj48PT3Jv+Pjjio73/TYvf4/9+eoj8VNFapqhYdU3cgJjwtPruR0m7eFW9SkEhM+Fe425ILCt7YeLfKzzYkif9lsRMIj4GgS9iYqOFrBatJIC8vL8aVTebV0H/sl7nhmdkZyh6w2TMKMEcLLBKOMECTAoMQgPfSJQwHx7u96f6F+iqzUqhJ1VjFYJkGSHN2i5qV7XLImelxmilXb/9++mlp/X7G7OwTOJ8t66wTXFnxvWtbnoWV9H0H1I1xkyvXZAxh4F32zrPn2wbMOZ5dlLboD5xvQ+qArhlKQqmU5NA1eT6BhHpqvoW6x6Flpn+N7iKzJV13B7h50yXnP0g9yqmfr0vdvXAAAAAlwSFlzAAALEwAACxMBAJqcGAAAFnlJREFUeJztnXm4XEWVwH95gQAhCbJKQVEsogKKKCAugEZDWCQsAh+o7AwooI4DguOniCJLHBAIMoojqCwjoLIG2ZR12FSCQRAiEAJUSkpCQCAkZH1v/jjVdL/u6tfbvbe3+/u+/vr1Xet131NV59RZRtGlWOdXAw4FjgS2BwaAvwFXAL8wWr3axubl9Aij2t2AZrDOrwk8DLyryiGvANsYrf6RXatqY51fGVgFGAOsDIxGBLvAELA8vJYCS4xWS7NuZxKEDmxL4DPAmsBM4Faj1SttbViDdJ2AWOfHAH8B3hc2LQVuARYDewGrh+3zgfcYrf6VeSNLsM5/ENgb2APYiAYFBPDA3cD1wJ+MVisya3yTWOc3Av4PMAz//94ADjda3dCWhjVBNwrIAcBvw8fbgWOMVnPDvnWAc4HDwv4TjFbTMm7fDsD+wMeArYC1E7z8AmAW0kFcA9xrtFqe4PVbxjq/NzLNnVDlEA9sZrRanF2rmqcbBeRK4PPh4xZGq6fK9q8HvACsCjxstNoh5fYMAO8F9gSOQqYVWTEXuBy4AfiL0Woww3tXYJ0/FrgQWKnGoScarc7PoEkt040C8hiwNeCNVhtUOeZ3yAO7yGi1euyYBNqxEvBuZMTaI417NMhfgWOBR7PuncN3MRU4qc5TbjRa7ZtikxJjoPYhHUdBaR1rna8m4OPDeyrTD+v8FsBjyEPZCcIBsA1wP/C4df4zWd3UOr8KcDPw9QZOez6d1iRPraGwE/kzsB2wBrAj8lC8jXX+PcBO4eOfkryxdX5L4CxE6a63c1kGPAL8ERGoF4F5iMK6IOxfjijsKwPjkPn7uoAC3g98FNFpxtS412hgc+Am6/z9wLeMVg/U2c6Gsc6vD/wa+EQDpy1CRt2uoBunWJ8C7gofnwWOBu4DBoFtgR8DHwn7DzZaXZnAPVcDjgO+R3F0qsYg8AwiENOBO41WryfQhjHAJGAK0jFsTW0hHQQuAM5M2rwaOovrgC0aPPVUo9XpSbalEazzo4FdgMOBTZHR7FeICbrCQth1AgJvK+qfo9j+QWAF0gMXmAF8rFUrj3V+c+A2qq+5FFiAjG4nG61mtnLPOtu1GXAeMBEZTUfidWBn4IlWFfkwrd0aeJCiSb1efm60OrqV+7eKdf4k4JzIrlORjmTY99ONOgiI9F9e8nmA4cJxDzAxAeE4BniUkYVjMfDdcMyuWQgHgNFqTlB0N0VG0ZEU8zWQad53Erj1gUhH0Khw3A58OYH7N411fjvEmFCgdI3sNIpT87fpyhGkgHV+R2AfxNVkNKI4TwfuMFoNtXDdMchU7XCGC14py5Ev++LCOkw7sc6vBRwBnIKsXFdjOnBQM5Yu6/x3gW9RWxcq525gitFqUaP3TBLr/DmIpW0ZMlX9A7A7stAMcLrR6tTSc7paQNIgLDZeipiJY6xAplxfNVo9l1W76sU6vwEy9dqf6kaYWcBu9Qp20MF+hIxUjXIXMrK23QPAOv8LxHfvTWBTo9V867xCDCcAPzVaHVd6TrdOsVIh+HjdTnXheAM42mg1pROFA8Bo9aLR6nOIIvpSlcO2BGYF/WpEwsh0H80Jx0PA7p0gHIG/hvdxwJnWeQOcXLL/sfIT8hEkEBwJZ1L08SqnoV63E7DOvwOx0FRbF3nUaPWhEc7fBLgX8alqlGeAHYxWrzVxbipY58cCTwMbhk0rkKk5yJR5I6PVP0vPyUcQwDo/HlFiY8IxBFwEbNdNwgEQHs4DgG8jD0Mp/wL+vdq51vnJiKWqGeF4CrEgdoxwAAQdaHfgibCpIBxzgO3LhQPyEQTr/ATEnj8psnsZ8H2j1RnZtipZgmn2GOCHyDrOY8CeRisXOXY04ut2CeJ53CiPAzsnsfaTFsE1ZjJiAXwBuK3aNLCvBSQ8DBcQNz+uQDyFf5ltq9LDOr8P4lC5b8zKF6aZ3wS+3+QtHLCt0erl5lvZWXSjq0mSnAgcH9m+ArH3d03cQj0YrW4EbhzhkF8DzToRLgQ+0UvCAX08gljnP4AE9ZSvQg8C3wDOb7f7eFYE0/Z0xN+rGeYDHzVaPZtcqzqDvhSQYM14Etg4srvCFt7LhACvGxDHyGZ4EdjFaDUruVZ1Dn1nxQoK67eJC8e9xKdcPYl1fgrwAM0LxwJgr14VDujDEcQ6/2HE07a8c1gBvMto9UL2rcqW0EmchehgjbqNlPIRo9Wfk2lVZ9KPSvpUKoVjOWL27AfhGA/8D3AQzc8gFiEr5D0tHNBnAmKdP4j4escdwJ0ZNydzrPMbAz8n/h3Uy+vAF4xW9yXTqs6mrwQEmVKU8yrw2Q7yF0qFIBwPUHSzaIYlyNrQLTWP7BH6Rkm3zu+BuMWXc1G3pKBpFuv8JCTrZCvCAXCI0eq3tQ/rHSoExDp/mnV+kXX+onY0KA3CCvG5VP6/c4Gz6zh/fev8tmG9oKuwzp+CeCiPa+Eyy4BDgGsTaVQXEZtiTQJWAw5G4rB7AUM8KvAco9Ub1U6yzm8P/Bfw6bBp0Dr/e+AM4MFWgrLSJqz1/AQJ+mqFxYhZ/Mqs/99gbVsHWcxdAryUdSrWftFBTqLSnLmcYobGCqzzGyKRcKU97wDiDborMNU6P9VotTDhtrZMGOnuRxLatcIK4Ayj1Xmtt6p+rPPjEJeX7zG8Y3vLOv9LpIP6ZxYC2/M6SAj4iQX7XBRzbw7nDCC5nqpNSwaQXnVWWFfpGKzzWyPu5q0KB4jj4tSaRyWIdf7jwHNIzoHyUX81ZCF3DjAtOJumyijr/DTE9bfAJsBYxCfp7yXbH0USD3dULthaBOW83OqyBElb+nyVcyYgP9JaddxiEfBL4KR2K/vW+UMQ7+R62j0Sg0giih9k+Xtb5w9E3OwLqZVeRTqq2UiusF2QBHkFrgYOTbONKwFfQvLYljOAJF8usBUSnvhi5NhOZvfItnlIEuWRqNfLYCziLj/ZOn+s0eruRhqXBCG+4QTgTKonmaiXQSRALGvh2AD4b0Q4liP606nlcSXW+X2R+PiNkNRPs0kmW0uUUdb5I5Evt8BmSEqXQYqRV4NITqML02pIGgQlbzbyP5VyntGqaqrM8MA9FTmvHqYBp2Slm4SEChcC/5bA5YaQ3/mYBK5VN2FKez/iTTwIfMdoddYIx6+NhM6uhfiDrZ9WxpSKXjKkrNwRWGC0qpbCvisIOXRjjnS6VnEd6/ynkRX2Rv3VhoB/IK4rFUkAksQ6vzriAfCRWsfWyUXA14xWy6rca0kao4p1fl1kSrs6YhiZVEsBDyPJ9eHjD41WJ490fLP0upL+yci25+qpPGW0ugvJMdUoowANPGKd/0nQZxIn5CB+mOSE43IkK2RMOLYCLOklftuCYiK6y+qxToUiPLPDx/3TUthjAlLoISq+qC4k9vA8FdkWJQzzzc5vV0LWkR6xzu8aphGJEFbGZ5BcLZJbgC/GpoXW+W2Q5A1rIUm006DUEnh/1aMqKQRojaO5+PmaxH60K5F8SqelccOM2SSyraHYhZCwYSoyN26GzZGV7ItDGp6msc4PWOcPRaZ+tZJo18sfjFZ7Gq2WRO63KTKFK0RdpmXSLjUsVLRjBAqd+ChSmg3FLnoxku2hqxTyKsQK7Pylieucgqyot8JRwOwwd26Wc4FftNiOUu5GUrdW406Gl5DbNNQDSZrS5YT3N3BewbdsKcW6MYlSsZIe5n9vpXGzNrBeZNuTjV4kxKZ/K1i3WlEG1wZ+Y52fDnyp3pIE1vlVkbp/+5FcT/kQcKDRaqTfutz3bACpqvW3hNpQYAYycqyCuDjdVuuEYIAp5DF7MC0XlJ5V0sPDHJvSNJ1YwGj1DVov/rIykjd3tnX+C6GdVQkuL7chCeCS+r3+igQ8za9xXKzWvE6oDaXMp1h1ar+QlLwqwc/sGsR9aAkproP0rIAgC0nlJtq3Wk1oZrQ6CZl+tuoHVEgL+rtg168gxHA8SNwa1yxPAh8eyUmzhNgIt36CbQEg6D9HIjrFWOD31vkdYpapYBK+heLocbPR6u/lxyVFLwtIbHqVVM6mExD3kiTYDXjWOn9Y6Ubr/LZIruBmUn9WYw7wyZgptwpvRraNVFqhaYxWDwGFyrdjkeCuP1vnj7bOb2Odn2yd/xWS87fQYcxGdLvU6GVv3piVJxHdymi1wjp/dLheEmsDawCXWecPRkoXbI1kN1wtgWsX+CdShqDWtKqUmG9ZzC0pKb6N5Ayeijyb2yJGoxj3IX5YqaY47eURJJatIzFnwmDM+CqSACEpdkX0jXNIVjg8koGkUf0rZtpOsl3DMFotN1r9ADEn/47hFaBApmAzEUPJpCySbPTyCBKbRiTa+xmthqzzxyP6xIF0Zhqll5HM9LWcM2PEVqdT91g2Ws0A9gq+dFsgyw4LgRlZx9/0soDE5s+JTw+MVoNh8W41pDx0J7EQ6WmbEQ6IewZn5uEbRulZNLi4myS9PMWaF9nWapxElKD07gdclcb1m2QZUvDn8RauEQsYS7ScdKfTywIyl0pT7PjglZo4IW3QEYwQxpshC4FPGa0eaPE6sfLSsY6nZ+lZAQkrqzFbfzMxHo3c82DE4a5dCR0WIxVlWxUOgHUj27qqylar9KyABGK9XVIesFHCdGsyYsdvBwcbre5p9SKhoGlsBOm5Egcj0esCElNOP5j2TUNs+mTq8ClKmEOMVtcldK1dqbTKzTVaLUjo+l1BrwvI85FtW2dx4yAkByDF6tNmGRLP8asEr7lXZFszntBdTa8LyMzItvdkdfNgs9+PYmx/GixHYrirrTg3TMhEOTGyqyezuVvnR1nnx8eC2npdQO6KbNu8mnNgGhit3gQKuZ7S4HSjVauxKuVMCK9yenUE+S7y+1SUxe51Afkb4oNUygDwlSwbETxnd0DKLyfJ94DTE74miKdsbA2k4ViaLuFrSKzOZ8t39LSAhECn6ZFdR4ZpRJZtmY9Mt+YkcLlBJDfUGSml3/wGlQr6341WNoV7dQKjy97fpqcFJHBrZNs7idv4UyU4C+6NLOQ1yyDwG+CENGqahACtPSO7Wg0U6yhCfP9Aud5Rvr1tvlgh4dmxwCeQUMuZwM9S8ND8Y2TbqsAxtCExhdHqiVBZdgbNecZehaSATatE9S6RbW8h3rU9gXX+TGRBtzBKFrwrtqdEV7TOX5i592lIJj0NMYGWPyDLEcX6OKNVElORwj2vRaY3pSwCNm4wPiIxrPOTgetorG7HFYg5NxWP2uA9OwOJwyjlaeB93ZaXOUZIcVozL1pgSaZTLOv8ekhPVPB+BfH5n4e4ZqyELFA9Yp1/X/QizfEdKr1Qx9JG71uj1R+QeJJ6H/Y7kI4jTXfzvagUDoDTekE4Ai8hMTwzkYTsj1KMe1lYsm0mcHamI4h1/kaKD+WLyFThjrBvMyS738eRoW8BYIxWryVw31WRXnCjsl1zkCzvbUuSZ50/AimsOVJn9QLw/mAyTrMtd1O5/vGC0WqTNO/bbqzzbyARqA8YrXYq3ZfZCGKd35Ki8vccsGVBOADClOpTiHUGpMGtVkcqXHsx8TSimxEv7JkllyMjajWdwgLbZyAcExF9sJxO8E5uG1lOsc5AzGhLkTiFCk/b0JOfSTEJ2GHlx7TAFQxPUFbgK2GEaQtB2b4KEdbJwOeRDB+HIh3Kx9LWk0Iandgo9ho9Zr2qwlDZ+9tkYsUK6VsKaSufNlo9U+1Yo9XLIbHaAcAHrfNjkkgKFsJjf0xlxkgNXGKdPyxFy9CIhLWMF8KrHRyFhLWWc261Klw9xs+QTunm8h1ZjSCjKS7C1OMN+nx4H6BogkuCHxP3izoQ+ECC9+kaQsm2C4nkEEMenJ7HaHWy0WqdkDBiGFkJyDKKKXfKFeUYBVv8m8gwnwihp47pHCsD91rn35nUvbqBsBgWy/U7hKQl7avowRiZCEh4MC8PHze0zlfNJRUW0QoxG7en4EpxJ5LRsJwJwE+SLFPQBUxDFsfKmQn8PuO2dCRZPgznICloRgFnW+f3LE8tGYb7S0s2XZJ0I4J7xpeJZ1ncD0nY1tME9+5Dkfol5bwK7JtWMuhuI+t1kBMRQSkI5r3Ios2byMN5KKKrDAE3AvulVQs7FKG5lcrUNkPAQcA1WdThbgfW+Q8h2d3LSxkMAScaraZl36rOJGsBGQD+g9qmw9uBfWJFXRJuzwVEYgAomqLvSfP+7cA6vx2StjPmB3YpcHQaTpDdSqbz7WBGPR9ZkJpOZfbDh5HSvp9JWzgC/0ncHX4McJt1fv8M2pAZ1vmdEFefmHA8hdR6z4WjhLamygwlyd6LTHOebSEDYCttUMhU792R3cuAY4xWl2XbqmQJToiTgKsZXjGqwEvAtkarFzNtWBfQiblkMyd4GD+JxInEOBWY2o0Oe8EQsi8iHLGF4deR3L19lc6nXnIBCVjn10dirlVk9xCSDG5KnYVnOoKg812MZHyMTaeXARONVg9m2a5uop9s/iMSXCp2I54qaBSwMzDDOj8ly3Y1i3X+w4hOdxTx33kxsEsuHCOTjyBlWOc3B26gWOKrnOXARciUK3OdqRZhungskqkjViMFwAF7GK2SLsbZc+QCEiGEA9+LrDJX+44GkanLdVnXrIgRyjN/GvFYKK9OW8rjiIdw29vcDeRTrAihNPKOyKJmNQaAy4CnrfPHt9NFJdRefwq4iZGF4xJy4WiIfASpgXV+T6RgZ60sKM8hq/+XGK3SzKRYaJcBvoRYqLaqcfibwBcR74C2RU92I7mA1IF1fg3gp0hisXL3jHIGETeOq4E/AU8m0WOHKdQWSAK6/RGP51iJtPK23Ax82WjVV2ULkiIXkAawzn8c+F9gE+r/7pYB9wDXI3rNq8CSsH1FeBUYQNYqVkYEcQKwExJZuDf1B7gNAfOBo4xWPZOupx3kAtIgITx3IhKr3UjKHpAHd0l4LQ+vkQRkFRr/jRYgddyvznWN1skFpEms8+OQXv3rxFPlZM0ziBPo9XmgU3LkAtIiwXo1EVGCdwY2yPD285FKVpcCN+WOhsmTC0jCWOd3R0aVbRAdopZS3whLkSnUHGS0uLYb/cO6iVxAUiJU050AfAiYAuyBKPeN4pEqVTcheYZf77cyaO0kF5AMCUKzHlKvfTySsaWglBesWouQ6rz/Al7uJufInJycnJycnJycnJycnJycnJycnJycnA4jXwdpghBxuB4SnLR2eC/8PR4p7zYWWUUfgxQNLYS/rkQxUC0WEruMYp2KpSXvS5E48sL7AqRk2CvhNb/0lS8mJkMuIGUEb12N+FStD2yM1M7YLGzfEHhH2xpYPwuQMndzkUQUz4V3H15zc2/f2vS1gISEahOQaMF9kUCkHeifUOTHgWuAaxFher1dRYQ6lb4VEOu8RmpjbA+sQf8IRYwhxL1lFnC80Wpmm9vTMfSlgIQS0zMQ3SBnOEuAI41WV7W7IZ1Av/aar9K+eoCdzjzEnT6HPh1BCljnDwe+iaQbHU9/dhiDiDXsNeAC4Ed55pMifS0g8HZy5wmIHrIbsDuSgG1CO9uVMouRBBK3IbVY5iEKeh58VUbfC0iMYN1aBzHzrodYuTakaObdIGxbBzH5dsrI8xqyDvIK8I/wcuE1Hylz8BIwL7dW1UcuIC0SRqA1EYFZCxl5xiIZT8aFvycgBoFRSPGaUeEVMxIspZjp5C3EwrSQ4YuDC4ksFOYjQPL8P/fGGg4HNsWXAAAAAElFTkSuQmCC",su=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),zl=e=>atob(e),rk=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:c})=>{const l={...t?{action:t}:{},taskInstanceId:n,taskVerified:c,timezone:r,commentId:o,...i?{comment:su(i)}:{},commentType:s,hasAssets:a},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",e||""),await(await fetch(`${rr}/manage-comment`,{method:"POST",headers:f,body:JSON.stringify(l)})).json()},Iv=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return c_;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return ch;case"csv":return YC;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return ch;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return XC;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return VC;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return e_;case"3g2":case"3gp":case"asf":case"avi":case"f4v":case"flv":case"h264":case"h265":case"m4v":case"mjpeg":case"mk3d":case"mks":case"mkv":case"mov":case"mp4":case"mxf":case"qt":case"rm":case"rmvb":case"rv":case"srt":case"vob":case"vp6":case"vp8":case"vp9":case"webm":case"wmv":case"xvid":return a_;case"aac":case"ac3":case"alac":case"flac":case"m3u":case"mid":case"mka":case"mp3":case"mpc":case"ogg":case"opus":case"ra":case"sdt":case"stap":case"wav":case"wma":return o_;case"adb":case"ads":case"ahk":case"applescript":case"as":case"au3":case"bat":case"bas":case"btm":case"class":case"cljs":case"cmd":case"coffee":case"c":case"cpp":case"cs":case"css":case"ino":case"egt":case"erb":case"go":case"hta":case"html":case"ibi":case"ici":case"ijs":case"itcl":case"jar":case"java":case"js":case"jsx":case"jsp":case"less":case"lua":case"m":case"mrc":case"nuc":case"nud":case"o":case"pde":case"php":case"pl":case"pm":case"ps1":case"ps1xml":case"psc1":case"psd1":case"py":case"pyc":case"pyo":case"rb":case"rdp":case"red":case"rs":case"sb2/sb3":case"scpt":case"scptd":case"sdl":case"sh":case"syjs":case"sypy":case"dcl":case"tns":case"vbs":return i_;case"7z":case"arc":case"arj":case"b6z":case"bz2":case"daa":case"dar":case"deb":case"gz":case"ice":case"mpkg":case"rar":case"tar":case"tbz":case"tgs":case"xapk":case"zim":case"zip":return n_;default:return u_}},ok=(e,t)=>{const n=URL.createObjectURL(e);return{sequenceOrder:t,originFile:e,name:e.name,url:n,type:e.type,mimeType:e.type,uploading:{value:0,title:"Uploading..."}}},za=e=>e.assetPath.includes("blob:")?e.assetPath:ik({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),ik=({assetPath:e,mimeType:t,fileName:n})=>e?`${rr}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",md=e=>e.startsWith("image/"),sk=async e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onerror=()=>n(new Error("Unable to convert file to base64")),r.onload=()=>{const o=r.result,i=btoa(new Uint8Array(o).reduce((s,a)=>s+String.fromCharCode(a),""));return t(i)}}),ak=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",ck=async(e,t,n,r)=>{var h;const o=e.name.split(".").pop(),i=ak(e,o),s=await sk(e),a=((h=e.name)==null?void 0:h.split("."))||[];a.pop();const c=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,l=s.length,f={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:c,fileSize:l,sequenceOrder:n},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",r||""),await(await fetch(`${rr}/upload-comment-asset`,{method:"POST",headers:u,body:JSON.stringify(f)})).json()},rm=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${rr}/comments/${e}`,{method:"GET",headers:n})).json()},No=e=>["comments",+e],lk=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=jr(),o={queryKey:No(e),queryFn:async()=>await rm({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Cc(o,r),s=c=>{r.prefetchQuery({...o,queryKey:No(c),queryFn:async()=>await rm({taskInstanceId:c.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},fk=(e,t,n,r)=>{const o=No(t),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},uk=(e,t,n)=>{const r=No(t),o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},dk=(e,t,n)=>{const r=No(t),o=e.getQueryData(r);if(o){const i=o.taskComments.map(s=>s.commentId===n.commentId?n:s);e.setQueryData(r,{...o,taskComments:i})}},pk=({playbookInstanceId:e})=>{const{queryClient:t}=jr(),n=Gu({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,attachments:d,username:p,taskVerified:h}=o,g=await rk({username:p,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,taskVerified:h});return g.commentId&&u&&d&&await Promise.all(d.map(m=>ck(m.originFile,g.commentId,m.sequenceOrder,p))),g},onMutate:async o=>{var u;const{action:i,taskInstanceId:s}=o,a=["comments",s],c=`temp-${crypto.randomUUID()}`,l=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const f=t.getQueryData(a);return i==="delete"&&o.commentId&&uk(t,s,o.commentId),i==="add"&&fk(t,s,+e,{commentId:c,author:o.username,comment:su(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((u=o.attachments)==null?void 0:u.map(d=>({assetId:l,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&dk(t,s,{author:o.username,comment:su(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:f,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(No(s.taskInstanceId),s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:No(s.taskInstanceId)}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function $a(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const Lv="carousel",Rv="controller",hk="navigation",mk="no-scroll",gd="portal",gk="root",Dv="toolbar",om="zoom",$l="loading",Ul="error",Bl="complete",yk="placeholder",vk=e=>`active-slide-${e}`,bk="fullsize",yd="flex_center",xk="no_scroll",Fv="no_scroll_padding",vd="slide",jv="slide_wrapper",wk="slide_wrapper_interactive",eo="prev",to="next",im="swipe",Ii="close",zv="onPointerDown",$v="onPointerMove",Uv="onPointerUp",Bv="onPointerLeave",Wv="onPointerCancel",bd="onKeyDown",Ak="onKeyUp",xd="onWheel",Ck="Escape",_k="ArrowLeft",Ek="ArrowRight",Sk="button",au="icon",Kv="contain",sm="cover",Hv="Unknown action type",qv="yarl__";function Sn(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${qv}${e}`}function Dt(e){return`--${qv}${e}`}function Js(e,t){return`${e}${t?`_${t}`:""}`}function wd(e){return t=>Js(e,t)}function Li(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function kk(e,t,n){return Li(e,"{index} of {total}").replace(/\{index}/g,`${Sd(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Ad(...e){return()=>{e.forEach(t=>{t()})}}function ar(e,t,n){return()=>{const r=C.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function Cd(){return typeof window<"u"}function _d(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function qi(e){return e.type===void 0||e.type==="image"}function Ed(e,t){return e.imageFit===sm||e.imageFit!==Kv&&t===sm}function Bc(e){return typeof e=="string"?Number.parseInt(e,10):e}function oc(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Bc(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Tk(e,t){const n=oc(t),r=n.percent!==void 0?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function Nk(){return(Cd()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Sd(e,t){return t>0?(e%t+t)%t:0}function Vv(e){return e.length>0}function Yv(e,t){return e[Sd(t,e.length)]}function cu(e,t){return Vv(e)?Yv(e,t):void 0}function Ok(e){return qi(e)?e.src:void 0}function Pk(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(a=>a===t),s=C.isValidElement(n)?C.cloneElement(n,{key:t},null):n;if(i>=0){const a=[...r];return a.splice(i,1,s),{buttons:a,...o}}return{buttons:[s,...r],...o}}function Mk(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const Ik=Number(C.version.split(".")[0])>=19;function Lk(e){return{inert:Ik?e:e?"":void 0}}function Rk(e){e.scrollTop}const lu={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Ii]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Kv,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function $r(e,t){return{name:e,component:t}}function nt(e,t){return{module:e,children:t}}function Qv(e,t,n){return e.module.name===t?n(e):e.children?[nt(e.module,e.children.flatMap(r=>{var o;return(o=Qv(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function ei(e,t,n){return e.flatMap(r=>{var o;return(o=Qv(r,t,n))!==null&&o!==void 0?o:[]})}function Dk(e,t=[],n=[]){let r=e;const o=p=>{const h=[...r];for(;h.length>0;){const g=h.pop();if((g==null?void 0:g.module.name)===p)return!0;g!=null&&g.children&&h.push(...g.children)}return!1},i=(p,h)=>{if(p===""){r=[nt(h,r)];return}r=ei(r,p,g=>[nt(h,[g])])},s=(p,h)=>{r=ei(r,p,g=>[nt(g.module,[nt(h,g.children)])])},a=(p,h,g)=>{r=ei(r,p,m=>{var y;return[nt(m.module,[...g?[nt(h)]:[],...(y=m.children)!==null&&y!==void 0?y:[],...g?[]:[nt(h)]])]})},c=(p,h,g)=>{r=ei(r,p,m=>[...g?[nt(h)]:[],m,...g?[]:[nt(h)]])},l=p=>{s(Rv,p)},f=(p,h)=>{r=ei(r,p,g=>[nt(h,g.children)])},u=p=>{r=ei(r,p,h=>h.children)},d=p=>{n.push(p)};return t.forEach(p=>{p({contains:o,addParent:i,append:s,addChild:a,addSibling:c,addModule:l,replace:f,remove:u,augment:d})}),{config:r,augmentation:p=>n.reduce((h,g)=>g(h),p)}}const Gv=C.createContext(null),Zv=ar("useA11yContext","A11yContext",Gv);function Fk({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,c)=>{const l=f=>u=>{var d;u.currentTarget.contains(u.relatedTarget)||n(f),(d=f?a:c)===null||d===void 0||d(u)};return{onFocus:l(!0),onBlur:l(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(Gv.Provider,{value:i},e)}const Jv=C.createContext(null),Wc=ar("useDocument","DocumentContext",Jv);function jk({nodeRef:e,children:t}){const n=C.useMemo(()=>{const r=i=>{var s;return((s=i||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:i=>{var s;return((s=r(i))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return C.createElement(Jv.Provider,{value:n},t)}const Xv=C.createContext(null),Kc=ar("useEvents","EventsContext",Xv);function zk({children:e}){const[t]=C.useState({});C.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const n=C.useMemo(()=>{const r=(s,a)=>{var c;(c=t[s])===null||c===void 0||c.splice(0,t[s].length,...t[s].filter(l=>l!==a))};return{publish:(...[s,a])=>{var c;(c=t[s])===null||c===void 0||c.forEach(l=>l(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(Xv.Provider,{value:n},e)}const eb=C.createContext(null),Jt=ar("useLightboxProps","LightboxPropsContext",eb);function $k({children:e,...t}){return C.createElement(eb.Provider,{value:t},e)}const tb=C.createContext(null),Ur=ar("useLightboxState","LightboxStateContext",tb),nb=C.createContext(null),Uk=ar("useLightboxDispatch","LightboxDispatchContext",nb);function Bk(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Sd(o,n.length),s=cu(n,i),a=r||t.duration!==void 0?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:n,currentIndex:i,globalIndex:o,currentSlide:s,animation:a}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:cu(t.slides,t.index)}:e;default:throw new Error(Hv)}}function Wk({slides:e,index:t,children:n}){const[r,o]=C.useReducer(Bk,{slides:e,currentIndex:t,globalIndex:t,currentSlide:cu(e,t)});C.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);const i=C.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return C.createElement(nb.Provider,{value:o},C.createElement(tb.Provider,{value:i},n))}const rb=C.createContext(null),Hc=ar("useTimeouts","TimeoutsContext",rb);function Kk({children:e}){const[t]=C.useState([]);C.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const n=C.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const c=window.setTimeout(()=>{r(c),s()},a);return t.push(c),c},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(rb.Provider,{value:n},e)}const kd=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},c){const{styles:l,labels:f}=Jt(),u=Li(f,t);return C.createElement("button",{ref:c,type:"button",title:u,"aria-label":u,className:Sn(Se(Sk),n),onClick:i,style:{...s,...l.button},...a},o?o():C.createElement(r,{className:Se(au),style:l.icon}))});function Hk(e,t){const n=r=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},t);return n.displayName=e,n}function Bo(e,t){return Hk(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const qk=Bo("Close",C.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Vk=Bo("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Yk=Bo("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Qk=Bo("Loading",C.createElement(C.Fragment,null,Array.from({length:8}).map((e,t,n)=>C.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),Gk=Bo("Error",C.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),On=Cd()?C.useLayoutEffect:C.useEffect;function Td(){const[e,t]=C.useState(!1);return C.useEffect(()=>{var n,r;const o=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");t(o==null?void 0:o.matches);const i=s=>t(s.matches);return(r=o==null?void 0:o.addEventListener)===null||r===void 0||r.call(o,"change",i),()=>{var s;return(s=o==null?void 0:o.removeEventListener)===null||s===void 0?void 0:s.call(o,"change",i)}},[]),e}function Zk(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Bc);s.length===6?(t=s[4],n=s[5]):s.length===16&&(t=s[12],n=s[13],r=s[14])}return{x:t,y:n,z:r}}function am(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=Td();return On(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:c,duration:l,easing:f,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),Zk(e.current))||{};if(c&&l){(i=r.current)===null||i===void 0||i.cancel(),r.current=void 0;try{r.current=(a=(s=e.current).animate)===null||a===void 0?void 0:a.call(s,c,{duration:l,easing:f})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,u==null||u()})}}n.current=void 0}),{prepareAnimation:i=>{n.current=i},isAnimationPlaying:()=>{var i;return((i=r.current)===null||i===void 0?void 0:i.playState)==="running"}}}function ob(){const e=C.useRef(null),t=C.useRef(void 0),[n,r]=C.useState();return{setContainerRef:C.useCallback(i=>{e.current=i,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(i){const a=window.getComputedStyle(i),c=l=>parseFloat(l)||0;r({width:Math.round(i.clientWidth-c(a.paddingLeft)-c(a.paddingRight)),height:Math.round(i.clientHeight-c(a.paddingTop)-c(a.paddingBottom))})}else r(void 0)};s(),i&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(i))},[]),containerRef:e,containerRect:n}}function Ua(){const e=C.useRef(void 0),{setTimeout:t,clearTimeout:n}=Hc();return C.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function Le(e){const t=C.useRef(e);return On(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function cm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function fu(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{cm(e,n),cm(t,n)},[e,t])}function Jk(e,t=!1){const n=C.useRef(!1);On(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);const r=C.useCallback(()=>{n.current=!0},[]),o=C.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:o}}function Nd(){const[e,t]=C.useState(!1);return On(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function Xk(){const[e]=C.useState({}),t=C.useCallback((o,i)=>{var s;(s=e[o])===null||s===void 0||s.forEach(a=>{i.isPropagationStopped()||a(i)})},[e]),n=C.useMemo(()=>({onPointerDown:o=>t(zv,o),onPointerMove:o=>t($v,o),onPointerUp:o=>t(Uv,o),onPointerLeave:o=>t(Bv,o),onPointerCancel:o=>t(Wv,o),onKeyDown:o=>t(bd,o),onKeyUp:o=>t(Ak,o),onWheel:o=>t(xd,o)}),[t]),r=C.useCallback((o,i)=>(e[o]||(e[o]=[]),e[o].unshift(i),()=>{const s=e[o];s&&s.splice(0,s.length,...s.filter(a=>a!==i))}),[e]);return{registerSensors:n,subscribeSensors:r}}function lm(e,t){const n=C.useRef(0),r=Ua(),o=Le((...i)=>{n.current=Date.now(),e(i)});return C.useCallback((...i)=>{r(()=>{o(i)},t-(Date.now()-n.current))},[t,o,r])}const Wl=wd("slide"),Kl=wd("slide_image");function ic({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:c,style:l}){var f,u,d,p,h,g,m,y;const[v,b]=C.useState($l),{publish:w}=Kc(),{setTimeout:A}=Hc(),_=C.useRef(null);C.useEffect(()=>{t===0&&w(vk(v))},[t,v,w]);const E=Le(K=>{("decode"in K?K.decode():Promise.resolve()).catch(()=>{}).then(()=>{K.parentNode&&(b(Bl),A(()=>{a==null||a(K)},0))})}),S=C.useCallback(K=>{_.current=K,K!=null&&K.complete&&E(K)},[E]),N=C.useCallback(K=>{E(K.currentTarget)},[E]),P=Le(()=>{b(Ul),c==null||c()}),I=Ed(e,o),W=(K,B)=>Number.isFinite(K)?K:B,j=W(Math.max(...((u=(f=e.srcSet)===null||f===void 0?void 0:f.map(K=>K.width))!==null&&u!==void 0?u:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((d=_.current)===null||d===void 0?void 0:d.naturalWidth)||0),z=W(Math.max(...((h=(p=e.srcSet)===null||p===void 0?void 0:p.map(K=>K.height))!==null&&h!==void 0?h:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((g=_.current)===null||g===void 0?void 0:g.naturalHeight)||0),Y=j&&z?{maxWidth:`min(${j}px, 100%)`,maxHeight:`min(${z}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},Q=(m=e.srcSet)===null||m===void 0?void 0:m.sort((K,B)=>K.width-B.width).map(K=>`${K.src} ${K.width}w`).join(", "),oe=()=>r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,M=Q&&r&&Cd()?`${Math.round(Math.min(oe(),r.width))}px`:void 0,{style:re,className:L,...F}=i||{};return C.createElement(C.Fragment,null,C.createElement("img",{ref:S,onLoad:N,onError:P,onClick:s,draggable:!1,className:Sn(Se(Kl()),I&&Se(Kl("cover")),v!==Bl&&Se(Kl("loading")),L),style:{...Y,...l,...re},...F,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:Q,src:e.src}),v!==Bl&&C.createElement("div",{className:Se(Wl(yk))},v===$l&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(Qk,{className:Sn(Se(au),Se(Wl($l)))})),v===Ul&&(n!=null&&n.iconError?n.iconError():C.createElement(Gk,{className:Sn(Se(au),Se(Wl(Ul)))}))))}const eT=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:c}=Zv();return C.createElement(jk,{nodeRef:a},C.createElement("div",{ref:fu(s,a),className:Sn(Se("root"),t),...c(r,o),...i},n))});var yt;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(yt||(yt={}));function ib(e,t,n,r,o){C.useEffect(()=>o?()=>{}:Ad(e(zv,t),e($v,n),e(Uv,r),e(Bv,r),e(Wv,r)),[e,t,n,r,o])}var nn;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(nn||(nn={}));const Hl=30;function tT({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,c,l,f,u,d,p,h,g,m){const y=C.useRef(0),v=C.useRef([]),b=C.useRef(void 0),w=C.useRef(0),A=C.useRef(nn.NONE),_=C.useCallback(j=>{b.current===j.pointerId&&(b.current=void 0,A.current=nn.NONE);const z=v.current;z.splice(0,z.length,...z.filter(Y=>Y.pointerId!==j.pointerId))},[]),E=C.useCallback(j=>{_(j),j.persist(),v.current.push(j)},[_]),S=C.useCallback(j=>v.current.find(({pointerId:z})=>j.pointerId===z),[]),N=Le(j=>{E(j)}),P=(j,z)=>u&&j>z||f&&j<-z,I=Le(j=>{const z=S(j);if(z)if(b.current===j.pointerId){const Y=Date.now()-w.current,Q=y.current;A.current===nn.SWIPE?Math.abs(Q)>.3*o||Math.abs(Q)>5&&Y<i?c(Q,Y):l(Q):A.current===nn.PULL&&(P(Q,2*Hl)?h(Q,Y):g(Q)),y.current=0,A.current=nn.NONE}else{const{target:Y}=j;t&&Y instanceof HTMLElement&&Y===z.target&&(Y.classList.contains(Se(vd))||Y.classList.contains(Se(jv)))&&m()}_(j)}),W=Le(j=>{const z=S(j);if(z){const Y=b.current===j.pointerId;if(j.buttons===0){Y&&y.current!==0?I(j):_(z);return}const Q=j.clientX-z.clientX,oe=j.clientY-z.clientY;if(b.current===void 0){const M=re=>{E(j),b.current=j.pointerId,w.current=Date.now(),A.current=re};Math.abs(Q)>Math.abs(oe)&&Math.abs(Q)>Hl&&r(Q)?e||(M(nn.SWIPE),s()):Math.abs(oe)>Math.abs(Q)&&P(oe,Hl)&&(M(nn.PULL),d())}else Y&&(A.current===nn.SWIPE?(y.current=Q,a(Q)):A.current===nn.PULL&&(y.current=oe,p(oe)))}});ib(n,N,W,I)}function nT({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=C.useRef(null),r=Le(o=>{const i=Math.abs(o.deltaX)>Math.abs(o.deltaY);(i&&e||!i&&t||o.ctrlKey)&&o.preventDefault()});return C.useCallback(o=>{var i;o?o.addEventListener("wheel",r,{passive:!1}):(i=n.current)===null||i===void 0||i.removeEventListener("wheel",r),n.current=o},[r])}function rT(e,t,n,r,o,i,s,a,c){const l=C.useRef(0),f=C.useRef(0),u=C.useRef(void 0),d=C.useRef(void 0),p=C.useRef(0),h=C.useRef(void 0),g=C.useRef(0),{setTimeout:m,clearTimeout:y}=Hc(),v=C.useCallback(()=>{u.current&&(y(u.current),u.current=void 0)},[y]),b=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),w=Le(()=>{e!==yt.SWIPE&&(l.current=0,g.current=0,v(),b())});C.useEffect(w,[e,w]);const A=Le(E=>{d.current=void 0,l.current===E&&c(l.current)}),_=Le(E=>{if(E.ctrlKey||Math.abs(E.deltaY)>Math.abs(E.deltaX))return;const S=N=>{p.current=N,y(h.current),h.current=N>0?m(()=>{p.current=0,h.current=void 0},300):void 0};if(e===yt.NONE){if(Math.abs(E.deltaX)<=1.2*Math.abs(p.current)){S(E.deltaX);return}if(!n(-E.deltaX))return;if(f.current+=E.deltaX,v(),Math.abs(f.current)>30)f.current=0,S(0),g.current=Date.now(),i();else{const N=f.current;u.current=m(()=>{u.current=void 0,N===f.current&&(f.current=0)},o)}}else if(e===yt.SWIPE){let N=l.current-E.deltaX;if(N=Math.min(Math.abs(N),r)*Math.sign(N),l.current=N,s(N),b(),Math.abs(N)>.2*r){S(E.deltaX),a(N,Date.now()-g.current);return}d.current=m(()=>A(N),2*o)}else S(E.deltaX)});C.useEffect(()=>t(xd,_),[t,_])}const fm=wd("container"),sb=C.createContext(null),cr=ar("useController","ControllerContext",sb);function oT({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:c}=t,{closeOnPullUp:l,closeOnPullDown:f,preventDefaultWheelX:u,preventDefaultWheelY:d}=i,[p,h]=C.useState(),g=Ur(),m=Uk(),[y,v]=C.useState(yt.NONE),b=C.useRef(0),w=C.useRef(0),A=C.useRef(1),{registerSensors:_,subscribeSensors:E}=Xk(),{subscribe:S,publish:N}=Kc(),P=Ua(),I=Ua(),W=Ua(),{containerRef:j,setContainerRef:z,containerRect:Y}=ob(),Q=fu(nT({preventDefaultWheelX:u,preventDefaultWheelY:d}),z),oe=C.useRef(null),M=fu(oe,void 0),{getOwnerDocument:re}=Wc(),L=Nd(),F=se=>(L?-1:1)*(typeof se=="number"?se:1),K=Le(()=>{var se;return(se=j.current)===null||se===void 0?void 0:se.focus()}),B=Le(()=>t),J=Le(()=>g),V=C.useCallback(se=>N(eo,se),[N]),ee=C.useCallback(se=>N(to,se),[N]),te=C.useCallback(()=>N(Ii),[N]),he=se=>!(r.finite&&(F(se)>0&&g.currentIndex===0||F(se)<0&&g.currentIndex===g.slides.length-1)),ye=se=>{var De;b.current=se,(De=j.current)===null||De===void 0||De.style.setProperty(Dt("swipe_offset"),`${Math.round(se)}px`)},me=se=>{var De,ct;w.current=se,A.current=(()=>{const Kt=f&&se>0?se:l&&se<0?-se:0;return Math.min(Math.max(_d(1-Kt/60*(1-.5),2),.5),1)})(),(De=j.current)===null||De===void 0||De.style.setProperty(Dt("pull_offset"),`${Math.round(se)}px`),(ct=j.current)===null||ct===void 0||ct.style.setProperty(Dt("pull_opacity"),`${A.current}`)},{prepareAnimation:ze}=am(oe,(se,De,ct)=>{if(oe.current&&Y)return{keyframes:[{transform:`translate(0, ${se.rect.y-De.y+ct.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),G=(se,De)=>{if(l||f){me(se);let ct=0;oe.current&&(ct=o.fade*(De?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:A.current,duration:ct})),W(()=>{me(0),v(yt.NONE)},ct),v(yt.ANIMATION),De||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=am(oe,(se,De,ct)=>{var Mt;if(oe.current&&Y&&(!((Mt=g.animation)===null||Mt===void 0)&&Mt.duration)){const et=oc(r.spacing),Kt=(et.percent?et.percent*Y.width/100:et.pixel)||0;return{keyframes:[{transform:`translate(${F(g.globalIndex-se.index)*(Y.width+Kt)+se.rect.x-De.x+ct.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),mt=Le(se=>{var De,ct;const Mt=se.offset||0,et=Mt?o.swipe:(De=o.navigation)!==null&&De!==void 0?De:o.swipe,Kt=!Mt&&!zt()?o.easing.navigation:o.easing.swipe;let{direction:At}=se;const fr=(ct=se.count)!==null&&ct!==void 0?ct:1;let Yo=yt.ANIMATION,$t=et*fr;if(!At){const ur=Y==null?void 0:Y.width,Yr=se.duration||0,dr=ur?et/ur*Math.abs(Mt):et;fr!==0?(Yr<dr?$t=$t/dr*Math.max(Yr,dr/5):ur&&($t=et/ur*(ur-Math.abs(Mt))),At=F(Mt)>0?eo:to):$t=et/2}let Vr=0;At===eo?he(F(1))?Vr=-fr:(Yo=yt.NONE,$t=et):At===to&&(he(F(-1))?Vr=fr:(Yo=yt.NONE,$t=et)),$t=Math.round($t),I(()=>{ye(0),v(yt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:g.globalIndex}),v(Yo),N(im,{type:"swipe",increment:Vr,duration:$t,easing:Kt})});C.useEffect(()=>{var se,De;!((se=g.animation)===null||se===void 0)&&se.increment&&(!((De=g.animation)===null||De===void 0)&&De.duration)&&P(()=>m({type:"swipe",increment:0}),g.animation.duration)},[g.animation,m,P]);const qo=[E,he,(Y==null?void 0:Y.width)||0,o.swipe,()=>v(yt.SWIPE),se=>ye(se),(se,De)=>mt({offset:se,duration:De,count:1}),se=>mt({offset:se,count:0})],ns=[()=>{f&&v(yt.PULL)},se=>me(se),se=>G(se),se=>G(se,!0)];tT(i,...qo,l,f,...ns,te),rT(y,...qo);const In=Le(()=>{i.focus&&re().querySelector(`.${Se(gd)} .${Se(fm())}`)&&K()});C.useEffect(In,[In]);const qr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:g.currentIndex})});C.useEffect(qr,[g.globalIndex,qr]),C.useEffect(()=>Ad(S(eo,se=>mt({direction:eo,...se})),S(to,se=>mt({direction:to,...se})),S(im,se=>m(se))),[S,mt,m]);const Vo=C.useMemo(()=>({prev:V,next:ee,close:te,focus:K,slideRect:Y?Tk(Y,r.padding):{width:0,height:0},containerRect:Y||{width:0,height:0},subscribeSensors:E,containerRef:j,setCarouselRef:M,toolbarWidth:p,setToolbarWidth:h}),[V,ee,te,K,E,Y,j,M,p,h,r.padding]);return C.useImperativeHandle(i.ref,()=>({prev:V,next:ee,close:te,focus:K,getLightboxProps:B,getLightboxState:J}),[V,ee,te,K,B,J]),C.createElement("div",{ref:Q,className:Sn(Se(fm()),Se(yd)),style:{...y===yt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(b.current)}px`}:null,...y===yt.PULL?{[Dt("pull_offset")]:`${Math.round(w.current)}px`,[Dt("pull_opacity")]:`${A.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,..._},Y&&C.createElement(sb.Provider,{value:Vo},e,(n=c.controls)===null||n===void 0?void 0:n.call(c)))}const iT=$r(Rv,oT);function Zr(e){return Js(Lv,e)}function um(e){return Js(vd,e)}function sT({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=Ur(),{slideRect:i,focus:s}=cr(),{render:a,carousel:{imageFit:c,imageProps:l},on:{click:f},styles:{slide:u},labels:d}=Jt(),{getOwnerDocument:p}=Wc(),h=t!==0;C.useEffect(()=>{var m;h&&(!((m=n.current)===null||m===void 0)&&m.contains(p().activeElement))&&s()},[h,s,p]);const g=()=>{var m,y,v,b;let w=(m=a.slide)===null||m===void 0?void 0:m.call(a,{slide:e,offset:t,rect:i});return!w&&qi(e)&&(w=C.createElement(ic,{slide:e,offset:t,render:a,rect:i,imageFit:c,imageProps:l,onClick:h?void 0:()=>f==null?void 0:f({index:r})})),w?C.createElement(C.Fragment,null,(y=a.slideHeader)===null||y===void 0?void 0:y.call(a,{slide:e}),((v=a.slideContainer)!==null&&v!==void 0?v:(({children:A})=>A))({slide:e,children:w}),(b=a.slideFooter)===null||b===void 0?void 0:b.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:Sn(Se(um()),!h&&Se(um("current")),Se(yd)),...Lk(h),style:u,role:"group","aria-roledescription":Li(d,"Slide"),"aria-label":kk(d,o,r+t)},g())}function aT(){const e=Jt().styles.slide;return C.createElement("div",{className:Se(vd),style:e})}function cT({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=Ur(),{setCarouselRef:i}=cr(),{autoPlaying:s,focusWithin:a}=Zv(),c=oc(e.spacing),l=oc(e.padding),f=Mk(e,n,1),u=[];if(Vv(n))for(let d=r-f;d<=r+f;d+=1){const p=Yv(n,d),h=o-r+d,g=e.finite&&(d<0||d>n.length-1);u.push(g?{key:h}:{key:[`${h}`,Ok(p)].filter(Boolean).join("|"),offset:d-r,slide:p})}return C.createElement("div",{ref:i,className:Sn(Se(Zr()),u.length>0&&Se(Zr("with_slides"))),style:{[`${Dt(Zr("slides_count"))}`]:u.length,[`${Dt(Zr("spacing_px"))}`]:c.pixel||0,[`${Dt(Zr("spacing_percent"))}`]:c.percent||0,[`${Dt(Zr("padding_px"))}`]:l.pixel||0,[`${Dt(Zr("padding_percent"))}`]:l.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Li(t,"Carousel"),"aria-label":Li(t,"Photo gallery")},u.map(({key:d,slide:p,offset:h})=>p?C.createElement(sT,{key:d,slide:p,offset:h}):C.createElement(aT,{key:d})))}const lT=$r(Lv,cT);function ab(){const{carousel:e}=Jt(),{slides:t,currentIndex:n}=Ur(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function fT(e){var t;const n=Nd(),{publish:r}=Kc(),{animation:o}=Jt(),{prevDisabled:i,nextDisabled:s}=ab(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,c=lm(()=>r(eo),a),l=lm(()=>r(to),a),f=Le(u=>{switch(u.key){case Ck:r(Ii);break;case _k:(n?s:i)||(n?l:c)();break;case Ek:(n?i:s)||(n?c:l)();break}});C.useEffect(()=>e(bd,f),[e,f])}function dm({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return C.createElement(kd,{label:e,icon:t,renderIcon:n,className:Se(`navigation_${r}`),disabled:i,onClick:o,style:s,...Jk(cr().focus,i)})}function uT({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=cr(),{prevDisabled:c,nextDisabled:l}=ab();return fT(a),C.createElement(C.Fragment,null,e?e():C.createElement(dm,{label:"Previous",action:eo,icon:Vk,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:i}),t?t():C.createElement(dm,{label:"Next",action:to,icon:Yk,renderIcon:r,style:o.navigationNext,disabled:l,onClick:s}))}const dT=$r(hk,uT),pm=Se(xk),pT=Se(Fv);function hT(e){return"style"in e}function hm(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,s=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(Bc(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function mT({noScroll:{disabled:e},children:t}){const n=Nd(),{getOwnerDocument:r,getOwnerWindow:o}=Wc();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:c}=r(),l=Math.round(s.innerWidth-c.clientWidth);if(l>0){i.push(hm(a,l,n));const f=a.getElementsByTagName("*");for(let u=0;u<f.length;u+=1){const d=f[u];hT(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(pT)&&i.push(hm(d,l,n))}}return a.classList.add(pm),()=>{a.classList.remove(pm),i.forEach(f=>f())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const gT=$r(mk,mT);function mm(e){return Js(gd,e)}function gm(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function yT({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[c,l]=C.useState(!1),[f,u]=C.useState(!1),d=C.useRef([]),p=C.useRef(null),{setTimeout:h}=Hc(),{subscribe:g}=Kc(),y=Td()?0:t.fade;C.useEffect(()=>(l(!0),()=>{l(!1),u(!1)}),[]);const v=Le(()=>{d.current.forEach(_=>_()),d.current=[]}),b=Le(()=>{var _;u(!1),v(),(_=o.exiting)===null||_===void 0||_.call(o),h(()=>{var E;(E=o.exited)===null||E===void 0||E.call(o),s()},y)});C.useEffect(()=>g(Ii,b),[g,b]);const w=Le(_=>{var E,S,N;Rk(_),u(!0),(E=o.entering)===null||E===void 0||E.call(o);const P=(N=(S=_.parentNode)===null||S===void 0?void 0:S.children)!==null&&N!==void 0?N:[];for(let I=0;I<P.length;I+=1){const W=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf(W.tagName)===-1&&W!==_&&(d.current.push(gm(W,"inert","")),d.current.push(gm(W,"aria-hidden","true")))}d.current.push(()=>{var I,W;(W=(I=p.current)===null||I===void 0?void 0:I.focus)===null||W===void 0||W.call(I)}),h(()=>{var I;(I=o.entered)===null||I===void 0||I.call(o)},y)}),A=C.useCallback(_=>{_?w(_):v()},[w,v]);return c?Nn.createPortal(C.createElement(eT,{ref:A,className:Sn(r,Se(mm()),Se(Fv),f&&Se(mm("open"))),"aria-modal":!0,role:"dialog","aria-label":Li(a,"Lightbox"),style:{...t.fade!==lu.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==lu.animation.easing.fade?{[Dt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:_=>{p.current||(p.current=_.relatedTarget)}},e),i.root||document.body):null}const vT=$r(gd,yT);function bT({children:e}){return C.createElement(C.Fragment,null,e)}const xT=$r(gk,bT);function wT(e){return Js(Dv,e)}function AT({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=cr(),{setContainerRef:s,containerRect:a}=ob();On(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const c=()=>t?t():C.createElement(kd,{key:Ii,label:"Close",icon:qk,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(wT())},e==null?void 0:e.map(l=>l===Ii?c():l))}const CT=$r(Dv,AT);function cb(e,t){var n;return C.createElement(e.module.component,{key:e.module.name,...t},(n=e.children)===null||n===void 0?void 0:n.map(r=>cb(r,t)))}function _T(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function ET({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:c,index:l,...f}){const{animation:u,carousel:d,render:p,toolbar:h,controller:g,noScroll:m,on:y,slides:v,index:b,plugins:w,...A}=lu,{config:_,augmentation:E}=Dk([nt(vT,[nt(gT,[nt(iT,[nt(lT),nt(CT),nt(dT)])])])],a||w),S=E({animation:_T(u,t),carousel:{...d,...e},render:{...p,...n},toolbar:{...h,...r},controller:{...g,...o},noScroll:{...m,...i},on:{...y,...s},...A,...f});return S.open?C.createElement($k,{...S},C.createElement(Wk,{slides:c||v,index:Bc(l||b)},C.createElement(Kk,null,C.createElement(zk,null,C.createElement(Fk,null,cb(nt(xT,_),S)))))):null}const ST={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function kT(e){return Math.min(Math.max(e,Number.EPSILON),1)}function lb(e){const{minZoom:t,...n}={...ST,...e};return{minZoom:kT(t),...n}}function TT(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Jt().animation,a=Td(),c=Le(()=>{var l,f,u;if((l=o.current)===null||l===void 0||l.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(u=(f=r.current).animate)===null||u===void 0?void 0:u.call(f,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:a?0:s??500,easing:o.current?"ease-out":"ease-in-out"})}catch(d){console.error(d)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return On(c,[e,t,n,c]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function NT(e,t){const{on:n}=Jt(),r=Le(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});C.useEffect(r,[e,r])}function qc(){const{zoom:e}=Jt();return lb(e)}function OT(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=Ur(),{imageFit:a}=Jt().carousel,{maxZoomPixelRatio:c}=qc();if(e&&s){const f={...s,...t};if(qi(f)){const u=Ed(f,a),d=Math.max(...(((n=f.srcSet)===null||n===void 0?void 0:n.map(h=>h.width))||[]).concat(f.width?[f.width]:[])),p=Math.max(...(((r=f.srcSet)===null||r===void 0?void 0:r.map(h=>h.height))||[]).concat(f.height?[f.height]:[]));d>0&&p>0&&e.width>0&&e.height>0&&(i=u?{width:Math.round(Math.min(d,e.width/e.height*p)),height:Math.round(Math.min(p,e.height/e.width*d))}:{width:d,height:p},i={width:i.width*c,height:i.height*c},o=u?{width:Math.min(e.width,i.width,d),height:Math.min(e.height,i.height,p)}:{width:Math.round(Math.min(e.width,e.height/p*d,d)),height:Math.round(Math.min(e.height,e.width/d*p,p))})}}const l=o.width?Math.max(_d(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:l}}function ym(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function vm(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function PT(e,t,n,r,o,i,s,a,c){const l=C.useRef([]),f=C.useRef(0),u=C.useRef(void 0),{globalIndex:d}=Ur(),{getOwnerWindow:p}=Wc(),{containerRef:h,subscribeSensors:g}=cr(),{keyboardMoveDistance:m,zoomInMultiplier:y,wheelZoomDistanceFactor:v,scrollToZoom:b,doubleTapDelay:w,doubleClickDelay:A,doubleClickMaxStops:_,pinchZoomDistanceFactor:E,pinchZoomV4:S}=qc(),N=C.useCallback(M=>{if(h.current){const{pageX:re,pageY:L}=M,{scrollX:F,scrollY:K}=p(),{left:B,top:J,width:V,height:ee}=h.current.getBoundingClientRect();return[re-B-F-V/2,L-J-K-ee/2]}return[]},[h,p]),P=Le(M=>{const{key:re,metaKey:L,ctrlKey:F}=M,K=L||F,B=()=>{M.preventDefault(),M.stopPropagation()};if(e>1){const J=(V,ee)=>{B(),a(V,ee)};re==="ArrowDown"?J(0,m):re==="ArrowUp"?J(0,-m):re==="ArrowLeft"?J(-m,0):re==="ArrowRight"&&J(m,0)}re==="+"||K&&re==="="?(B(),o()):re==="-"||K&&re==="_"?(B(),i()):K&&re==="0"&&(B(),s(1))}),I=Le(M=>{if((M.ctrlKey||b)&&Math.abs(M.deltaY)>Math.abs(M.deltaX)){M.stopPropagation(),s(vm(e,-M.deltaY,v),!0,...N(M));return}e>1&&(M.stopPropagation(),b||a(M.deltaX,M.deltaY))}),W=C.useCallback(M=>{const re=l.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),j=C.useCallback(M=>{W(M),M.persist(),l.current.push(M)},[W]),z=Le(M=>{var re;const L=l.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=c==null?void 0:c.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:F}=M;if(L.length===0&&F-f.current<(M.pointerType==="touch"?w:A)){f.current=0;const K=e>=1?e!==n?e*Math.max(n**(1/_),y):1:e!==t?e/Math.max(t**(-1/_),y):1;s(K,!1,...N(M))}else f.current=F;if(j(M),L.length===2){const K=ym(L[0],L[1]);u.current={previousDistance:K,initialDistance:Math.max(K,1),initialZoom:e}}}),Y=Le(M=>{const re=l.current,L=re.find(F=>F.pointerId===M.pointerId);if(re.length===2&&u.current){M.stopPropagation(),j(M);const F=ym(re[0],re[1]),K=S?u.current.initialZoom/u.current.initialDistance*F:vm(e,F-u.current.previousDistance,E);s(K,!0,...re.map(B=>N(B)).reduce((B,J)=>J.map((V,ee)=>B[ee]+V/2))),u.current.previousDistance=F;return}e>1&&(M.stopPropagation(),L&&(re.length===1&&a((L.clientX-M.clientX)/e,(L.clientY-M.clientY)/e),j(M)))}),Q=C.useCallback(M=>{const re=l.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(u.current=void 0),W(M)},[W]),oe=C.useCallback(()=>{const M=l.current;M.splice(0,M.length),f.current=0,u.current=void 0},[]);ib(g,z,Y,Q,r),C.useEffect(oe,[d,oe]),C.useEffect(()=>r?()=>{}:Ad(oe,g(bd,P),g(xd,I)),[r,g,oe,P,I])}function MT(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,c]=C.useState(0),l=TT(r,i,a,n),{currentSlide:f,globalIndex:u}=Ur(),{containerRect:d,slideRect:p}=cr(),{minZoom:h,zoomInMultiplier:g}=qc(),m=f&&qi(f)?f.src:void 0,y=!m||!(n!=null&&n.current);On(()=>{o(1),s(0),c(0)},[u,m]);const v=C.useCallback((E,S,N)=>{const P=N||r,I=i-(E||0),W=a-(S||0),j=(e.width*P-p.width)/2/P,z=(e.height*P-p.height)/2/P;s(Math.min(Math.abs(I),Math.max(j,0))*Math.sign(I)),c(Math.min(Math.abs(W),Math.max(z,0))*Math.sign(W))},[r,i,a,p,e.width,e.height]),b=C.useCallback((E,S,N,P)=>{const I=_d(E+.01<t?E-.01>h?E:h:t,5);S||l(),v(N?N*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,h,t,v,l]),w=Le(()=>{r>1&&(r>t&&b(t,!0),v())});On(w,[d.width,d.height,w]);const A=C.useCallback(()=>{const E=r*g;b(r<1&&E>1?1:E)},[r,g,b]),_=C.useCallback(()=>{const E=r/g;b(r>1&&E<1?1:E)},[r,g,b]);return{zoom:r,offsetX:i,offsetY:a,disabled:y,changeOffsets:v,changeZoom:b,zoomIn:A,zoomOut:_}}const fb=C.createContext(null),Od=ar("useZoom","ZoomControllerContext",fb);function IT({children:e}){const[t,n]=C.useState(),{slideRect:r}=cr(),{ref:o,minZoom:i}=qc(),{imageRect:s,maxZoom:a}=OT(r,t==null?void 0:t.imageDimensions),{zoom:c,offsetX:l,offsetY:f,disabled:u,changeZoom:d,changeOffsets:p,zoomIn:h,zoomOut:g}=MT(s,a,t==null?void 0:t.zoomWrapperRef);NT(c,u),PT(c,i,a,u,h,g,d,p,t==null?void 0:t.zoomWrapperRef);const m=C.useMemo(()=>({zoom:c,minZoom:i,maxZoom:a,offsetX:l,offsetY:f,disabled:u,zoomIn:h,zoomOut:g,changeZoom:d}),[c,i,a,l,f,u,h,g,d]);C.useImperativeHandle(o,()=>m,[m]);const y=C.useMemo(()=>({...m,setZoomWrapper:n}),[m,n]);return C.createElement(fb.Provider,{value:y},e)}const LT=Bo("ZoomIn",C.createElement(C.Fragment,null,C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),C.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),RT=Bo("ZoomOut",C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),bm=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:c,zoomIn:l,zoomOut:f,disabled:u}=Od(),{render:d}=Jt(),p=u||(t?s>=c:s<=a);return C.useEffect(()=>{p&&o.current&&i.current&&n(),p||(o.current=!0)},[p,n]),C.createElement(kd,{ref:r,disabled:p,label:t?"Zoom in":"Zoom out",icon:t?LT:RT,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?l:f,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function DT(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=cr(),r=C.useCallback(s=>{var a,c;!((a=s.current)===null||a===void 0)&&a.disabled?n():(c=s.current)===null||c===void 0||c.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(bm,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(bm,{ref:t,onLoseFocus:o}))}function FT(){const{render:e}=Jt(),t=Od();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(DT,null)}function jT(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function zT({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(Hv)}}function $T(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(zT,{}),{slide:s,rect:a,imageFit:c,render:l,interactive:f}=e,u=s.srcSet.sort((A,_)=>A.width-_.width),d=(t=s.width)!==null&&t!==void 0?t:u[u.length-1].width,p=(n=s.height)!==null&&n!==void 0?n:u[u.length-1].height,h=Ed(s,c),g=Math.max(...u.map(A=>A.width)),m=Math.min((h?Math.max:Math.min)(a.width,d*(a.height/p)),g),y=Nk(),v=Le(()=>{var A;const _=(A=u.find(E=>E.width>=m*y))!==null&&A!==void 0?A:u[u.length-1];(!r||u.findIndex(E=>E.src===r)<u.findIndex(E=>E===_))&&i({type:"fetch",source:_.src})});On(v,[a.width,a.height,y,v]);const b=Le(A=>i({type:"done",source:A})),w={WebkitTransform:f?"initial":"translateZ(0)"};return h||Object.assign(w,a.width/a.height<d/p?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(ic,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...w},onLoad:()=>b(o),render:{...l,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(ic,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:w}))}function UT({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:c,maxZoom:l,offsetX:f,offsetY:u,setZoomWrapper:d}=Od(),p=c>1,{carousel:h,on:g}=Jt(),{currentIndex:m}=Ur();On(()=>n===0?(d({zoomWrapperRef:a,imageDimensions:i}),()=>d(void 0)):()=>{},[n,i,d]);let y=(o=e.slide)===null||o===void 0?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:c,maxZoom:l});if(!y&&qi(t)){const v={slide:t,offset:n,rect:r,render:e,imageFit:h.imageFit,imageProps:h.imageProps,onClick:n===0?()=>{var b;return(b=g.click)===null||b===void 0?void 0:b.call(g,{index:m})}:void 0};y=jT(t)?C.createElement($T,{...v,slide:t,interactive:p,rect:n===0?{width:r.width*c,height:r.height*c}:r}):C.createElement(ic,{onLoad:b=>s({width:b.naturalWidth,height:b.naturalHeight}),...v})}return y?C.createElement("div",{ref:a,className:Sn(Se(bk),Se(yd),Se(jv),p&&Se(wk)),style:n===0?{transform:`scale(${c}) translateX(${f}px) translateY(${u}px)`}:void 0},y):null}const BT=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=lb(n);return{zoom:a,toolbar:Pk(r,om,C.createElement(FT,null)),render:{...o,slide:c=>{var l;return qi(c.slide)?C.createElement(UT,{render:o,...c}):(l=o.slide)===null||l===void 0?void 0:l.call(o,c)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t($r(om,IT))},WT="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgMDAwMDAwMDAwMBAQEBAQEBAQEBAQICAQICAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA//CABEIAZABkAMBEQACEQEDEQH/xAAdAAEAAgIDAQEAAAAAAAAAAAAAAQcGCAIDBQQK/9oACAEBAAAAAP29AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4dNV5jnPJLHuX1AAAAAAAp7Xb50ofbsraAAAAAABS2usgGz1qAAAAAAYjp7xEwTH0bme8AAAAADVqsgEoXNsYAAAAAHVov1AA9bdwAAAAAMX00kTAHXvN6AAAAAAw/T0ADhu964AAAAA87RznACYd29PMAAAAANOMUACbB2wAAAAABUGtiUCYRtZY4AAAAAOOpmBAlC0doQAAAAAHwaqYOAsjaL6AAAAAADrpOlfGmeGQXjcUgAAAAAA4YpjfLJ8okAAAAAAAAAAAAAAefUdfY/1Z9Z2a+jHl4RV+E9+R2JbP1gAAAAU9r18kB197p5iY9LZC0AAAAAoOiRJBMJQGxlzAAAAFZasyAAA5bb5yAAABx0vx8AACUZrt6AAABgGpcgATAJiNzcmAAABRNCQAAAGyVwAAAA1zpmYJgJgmBMF+3qAAADXCnBMEwmEwAX3e4AAANcKdgAACUL7vcAAAFB0SBMAAJjYy5gAAAY9pz8hMBMJhMJiY9Tcv0wAAAMZpbyISIkAHvXX7oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQQDAgX/2gAIAQIQAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB679vTxyzwAAAAAAO+uorzk4gAAAAAGjUKlTHxAAAAAA976IqWfP8gAAAAA2dwRYubKAAAAAD6SyksL5+cAAAAAHv6EsKio+dAAAAAB03WUEsX53kAAAAAX6JZZSD5oAAAAAN/SUEscsQAAAAAO+xLKQuHkAAAAABt7ADhjAAAAAAXb0spHLHAAAAAABo0e0vjNwAAAAAAAe/bx4AAAAAAAAAAAAAAC9+vq8uPOL17dJ548YAAAAB31epZSFQvnJxAAAADTpLCpUKi4+AAAAB22iKlhYsqMPMAAAB9D2lioqFErlhAAAA67kqWKlSpYV8/wAAAAA06VCWVKRUpj4AAAA16JSWUlhUFmbMAAADXolSyywWKlJmzAAAA16BFSyyiKlZcwAAANOmhFlhQIuTOAAAD19AsssKgqF8/PgAAAHvR6AAAeM/kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQMEAv/aAAgBAxAAAADiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZZ+b6960AAAAAAMsYsVvoAAAAAAZYVCo6NAAAAAAPPNCyyxeqgAAAAA587LFlS6bgAAAAA47LAFvUAAAAAHnlCossdgAAAAAeeUsFQddAAAAADjWLFip2AAAAAA5fIWWWNOgAAAAAGfOsFljp9gAAAAAc3iwomnQAAAAAAc3gBp0AAAAAABjlLF21AAAAAAAefL16AAAAAAAAAAAAAABlnHvT1U8ePD171AAAAAZ4IALLK30AAAADHFZRFgLG+oAAABnz0ikVKSk6fYAAADl81FIFCVPXUAAAB45lQFlgpLHV6AAABjjUsWVLFlRZdtQAAAY40gLLKQF12AAABhnFQqWURZTXYAAAGGSkBYssWU12AAABjjYsUSxUWU21AAABOVFiywqFlHVQAAAPOUAAAXagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//EAE4QAAIBAQMFCgcMBwgDAAAAAAECAwQABREGEiExURMWIjJAQWFxlNQUMEJQUnKBFSMzU2JzgpGSobGyICSTorPBwhA0Q1VkdJDwYGOj/9oACAEBAAE/Af8AgJrbxoruTPrKhIceIp4UkmHNHEuMj+wWrMtJDit30oUfHVZxbrEEZ0e1/Zae/r5qDi9fMnNm0+bTr/8AMBvvs1RUvjn1NS2PpVEx/F7JU1UZBSqqkI1FaiYfg9oMob5p+LXSSj0alUnH1sBJ+9aiy0GhLxpM3mM9ISy9bQOc8exm6rUtbS10e60k8c6c5RtKnY6nB426CAfNV+ZTrRs9Hd+bLVLiss54UNM3OgH+LULs4qnXstLLLUSNPPI80z8aWRs5zhqGPMo5gNA/Tp6moo5hPSzPBMPLQ8YejIpxSRDsYEWuPKSK8s2mqgsFdhoA+BqcNZhJOIfah07MebzPlLf5p8+7aF8KhlHhNQp00yMPgoyNVQ68/kKdpGHR4nVgQSCCGUqSGVhpDKw0qynUbZOX97op4JVMBXQpiG1CriGjdVHNKnlj2jRq8y33eYuuhkn0GZ/eaZD5U7g5pPyIwCx6BZmZmZ3Znd2Z3djizuxzmdjzlj4uGaWnljqIGzJoXWSJ9jDbtVhoI5xa7a+O8qKCsj0bovDTnilU5ssZ9Vx7Rp8y5V13hV5+Dq2MNAu5jZ4RIA8zdajNX2HxuR1cY6qe73bgVKmeEbJ4gBKF+ciwP0PMjusaPI3FRWdvVUYn7hZ5Wnkknc4tPJJM3XK5c/m8bQVHgldR1PNDUws3qFsyQfs3PmS+pDFdF4uNYo5x9pCn9Xjm4rdR/C1K5lpaaQ65IIXPW0asfx8x5QLnXLeQ/wBK5+zg38vHNxW9U/hagGbQ0S7KSmH1QoPMdXD4RS1MHx1PNF+0jZP52GOGnjDQesa/v8bHEZ5IoFGLTSxwgbd1dU/nZQFUKNAUADqGgeZL7o/Ab1rIcOA8nhMOzc6gmTAepJnL7PG5MUfhd7xOfg6NTVP6/wAHCPttj9HzLlddpqaVK+JcZqLO3XDW1I2mQ9O4sM7qx8ZjhpPNpNsmLtNBd4eVc2prCJ5QeMiYYQRHpSPSdjMfMpAIIIBBGBB0gg6wRzg2v65mumpzolPgFQx8HfSRC5xJpXPMV8jHjL0g+LyauQ1861tQv6lTvigYaKqdDoUY64YWHC5i2jb5nqaaCsgkpqmMSwyrmuh+sEEaVZTpBGkG183HUXRIWGdNQsfeqnDSmOqKpw0K45m4rdB0eJuPJ6a9CtRUB4Lv153FlqvkQ86xbX+ztEUUcEaQwoscUahERRgqqowAA80MqurI6q6MCrKwDKynQVZToIIteeR8bkzXXIsB1mkmzjAfmpBi8OOzhL1Wq6CtoDhWU0sGnDdGGdC2HozJnRn68ba9P9uOGs4Wo7rvC8CPBKWR1Jw3ZhuVOOuZ8FOHycTa7MkaenKzXi61kowIhAIpEI9JW4VR9LBfk2Aw0DQBoAHN5rIDAhgGB1gjEHrBtPcNz1JzpaCDO9KIGBuvGEx4mzZH3OdQqk9Wpb+sNZMkLnU6VqZOh6mTA/YzDanuS6aU50NBThvSdN1cdTS57C2r/wAZqaumo4zNVTxwRjypGC49CjWzdA02rMs6dCVoaaSoPxsx3CL6KYNMw6wtp8qr5lJzJoadT5MMCnD6c26nGxvq9213nV/RkC/lUW9172/zOu/bt/PRaiywrYcFrYUrE+MTCCf2jAwv9S2psqrnqNDztSt6NVGYx+0XPh/etFWUk/wNTTy4/FzRv+Vj/bLXUUAJmq6aLD4yeNfxa1TlZdEGIikkrG2U8ZzcfnZNzj+om1bldeFQClKkdDGfKHv1RgflsojQ9Snrt7rXt/mdd2h7LfV8LpF5Vej0nV/zo2NoMrL4iPvj09UuyWEIftwGPT7Dajyyo5cFroZKRtW6JjUQdZKqJU+yR02gnhqY1mp5Y5om1SROHU+1SdPmC+sqY6QvS3dmVFUMVkmPCp6c6iugjdphsGgc+y1RUT1cpnqpnnmPlyHHN6EXQsadCgD9PNXXgMerT9dgzrxZJV9WR1/BrFnbjPI3rSO34tbNUeSAduGn9OkrKqgl3ajneB/KzdMcnRLEeBIOvTa5cpYLxzaeqC01dqVcfeaj5hmJIfah07MeXZS5QtnPdt3yFc0lKypQ4EHU1NC3Mw8thq1DTjhoGrm5uR/jrBGIII1EEaQQbZN5QGqzbvr3xqgP1edtHhSKMcx+bwhAPpjTrx5ZlNe7XdSiCnfNrKvOVGB4UEI+Fn6G04J8o481v+/928lBZSrozI6MHR1ODI6nFXUjUynVa4L191aIPJm+FQHcqpRoBbWkqjmSZdPQcRzcqJABJOAAxJOgADWTa9K9ryr6irPEZsynU+TTx4iIdBbjHpbk+T9f7n3nCzHCCpwpajZhIRuUh+blw+iTyrKaqNLc9TmnB6jNpUI1jdzhJh0iENym5qs112UdSxxkeELKf/bETFKT0l0PKctpeBd0GOuSeZh82iRr/FPKcjJc67qiHnhrH+zLHHIP3seU5an9coF/005+uVB/LlORB97vIbJaY/XHIP6eU5a/3+h/2k38ZeU5EcW8/nKX8kvKctf79Q/7Sb+MvKciOLefzlL+SXlOW0DY3fVAcEbvTs2xnzZYwfWCNynIuBkoquoOqepzU2lYECE9W6MR7OU3pQJedDPSPwS4zopPipk4UUnsbXtGNp4JqWaSnqIzFPEc2RD9zKfKjcaVYaCOT0dHPeFTHSUy4yya2w4EMflTSnyUT7zoGm1HSxUVLBSQj3uCMIu1vSdvlOxJPSeVXldFFeiBaqPhqMI54zmTxeq+nFeg4r0WqMi61W/VaunmTm3dXgk6uAJUPXotvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZR9pfu9t6N9bKPtL93tvRvrZR9pfu9t6N87KLtL93tvRvrZRdpfu9t6N87KLtL93tvRvnZRdpfu9t6N87KPtL93tvRvrZRdpfu9t6N87KLtL93tTZF1LNjWVkUaaODTK0kjbRnyqip9lrUF3Ud2xbjSRCMNgZHJLSysBhnSSHhMfuHN/waf/EACsQAQABAgUCBgMBAQEBAAAAAAERACEQMUFR8GFxgZGhscHhUNHxQCCQYP/aAAgBAQABPxD/AMCTpIspVmBbNmQNUpmX6EyIsPHOXjUhB75CPV/ut60wl7lVZ1VWaug0Xy+YilNTICUENIp4CkLAmCIyIJTnM2oVn8AlU7cHkj8Vb+4plwDEy+1TRrHTWaLqFj2EFYCuFTXvRradWu/btT/aiGKArDMUmLsKSlOmIJlaGEqQXQn8Qn0MRUiFJSl0xLygAAIAsbds5XDn8rtWX6/dc8Yx4UKkPCoy4EBBES1WnATEBQILKO1y8T8NDstokBcM7o4ZlKTe95eVSqqtbV9V+65yNq1237eu9eFba4W7e/SMEsnhq2wyllWVHOixiw6KbW5YCxYyJ+FZYgkMpVforuVy1b88q5zOudcM+bYX52Kt/fnDrn6dMLyCqqAYmBlPwhmYeC6LcLZUMoVTdZ2c7MKGs/n5w5zvh3+/1XOThbmvW1c5NdnkemDSyQRaTzuofwjDwBXS+HUydaCACxEW2iK9tK967Rr9da5fp71zKPnCc+vxXLauHdwyM86nasjCaIoTZGnDlq3UPF/BkAnZbSPSg2+a2+OlfON6a52w3w/UVzSrU0ly6pjyp1Jlmc5Qnrb8Ha8YkYhQJmxepALQhyS0UdQJhaueFeOG3Jivhwi086+9Gfrf0mK5/MGoBVmoUi9RVhXsIHgH4RgYMsJmwZiUb4c8Z86y2krzwvz5rwrxw57107en6pgl1NxMuElbtX4VSZYCrhABYTpr9pzMnav3zwrnn9Vn9edc3w5zthl27e1c0y/tXzy/dIDAAU6F1e1J3L8lndWEQQIDl+FRM4YAQhIBhHOnjSRXAQVAK8hEuK15512rk+PrXtauc8K5wrnPKuR7UiOPnRoLDCskXhH8Mwi0jCSIAVFgQiINRlfFC7gZFmIQYcw8ywnv1+K5H6x229qtrprl1ntQkg6sVvku6c5SZoCwu4sHWAD8QfIZ5qIr6EREpXDlBKJi8zWSNo09LSHuUjsQuyoQAROiIztGEWy5Ns6QFAbqAeLW3LwiSoQjToiafg6+FI3EIZPUUAAAAAACAAsAfizilAwHMAiNMQ0MpC6luoy0moSzCQ6EmDqtBE4ZQug5TslZBfiZC8rZ1EaAAAAAAEAFgAsAf/MyMOtxZzGdoCtChjqQdMNlGRRh9Sz49Jfqt2qaSzK+ghQoFG4I51y5JJHRkaOElumyQRDbu0EI8F5HaYJ6JoATcl/7YTK7YKJH5pMi8Qatss6OAow+xo2VdaB6xSYjIYum1BpqrlHzSotISC6SA8VFmEBPYakB1IdKmlaXAtcFp3JQaKzaKFIgE3G5r+AkomRlzmIc2nzyNUsat6CrGBtCG1dWvv2bYTXLX4YSPZkEO2ajoENBs9AqIg/YLyYmhkmqAC7sS4+Xf9tfX9rP53jhhMIWxQDfe1Q0RvTKmYKHhZACLlOozH+0C0SoSQN2WvM8SUAAAFgLQGkGVc3w38q2rpFejU74bZ8+sLX48vXPP+V5Zc7VpOEVztFeW33WaMoEQQpWAyRIRyo+VYjJBLZPK2h0Jf64nACoEBCUYM21EygAAm2sqzmqt0rKt1w5zejn78Ky9vCo+uNda5yK5414kbZVzw74+dcgrTDnL1zrhz907EFRkzSSKMmpUAhJAwXI4mQh/qAmWQAEobABdpkm+hvhCUCpGtjzvXPn2qdf+M+czp9utadtviuda126ciufz/nk+tGlcv71zt+6efQRYBUwtOlzN3/qfHe4i4XUA2iaICCwWA0NIrLOudMPnnrTzv8AVcjnavTL1rnNa2w5ztjznStuedc52rjhE1H9vatWt8qSRJSSJG5OSJkmnWrtoIldoBJ4/wCmIG624gTJvF2o9518K8PvD7qPbDn7r6ijhr9Vz+43w5rhNdeccY74bca5wqelVCWxGhoT/wBN3SHjaJ/a3nOua1/OmF9NdvWta7u9tcf38VffLU7VznnWWXHP0r68a3j7rfkca512rf5rz+q8PHpllW/POnar10H4ox/rEbc9a729PSuc8688PPx+ay0ry564etePjhGHDvWXNa5H7w/nO9cmveuc64X/AOrdjzzw/f7xy8/5715cKyvp6fyu3GP3hx5tWdPLfOJpWnxXPciuvPKutd3bm9eujG1Z/v8A197gNprEYbQfUrhzvUZVpzTH2r1z7Vz+Y/NbWttNPNfCufzDrz6rn8r+Y855V00rryfPAgQO8Oiziwuq/wBLxA6iVUCywYAuo1pI+w2zsQawCkw5naunj2rpWm9dfrD+71z62ip235OlTXhzeufVTzX7mnnn8V5861vq+/fvh0328Yz61fKp4VpTwmSyRoGCCdbxTIKVAMzmF9w8tU/1JxXXYGUICOZs3ZXpFq8BOp7deHEsU8y/4xYsU4X54CnCvbEUOfJ9KkE/98bFGjR4WlSQFJZYN9TFFR9SLJzN018ClayhBQVRCwWkQBb/AMNP/8QAMREAAQICBwcEAgIDAAAAAAAAAQIDABEQEhMhMDFhBCAyQFBRcUFCUoEikZCxM2Ch/9oACAECAQE/AP4CUpUrhEJ2ce5UBpA9sBIGQiqn4iC0g+39QrZ/iYUkpMlDpTbNb8lZQAAJASG+UhQIIuhxoovF6ekNNT/NWW7nvOt1DWHD0ZtFdQHpEpZDDIBEjlC0lCik9FYTVRP1NP3geKH0zAWPTogvMoAkAMHSJUrFZKhp0RsTWga46rlEa9Da/wAifOJ2pVxK89DSZKB1wvXcJkCeitqrIB9cGe48qSCPU9FYXIlJyP8AdPnCeXWVdkOjNOVxfxYbzlUVRxHo4JSQQb4bcCxL3dt+6hx0IuF6oJJMyb+kZZQh8i5f7hKkqvSZ0ihTiU5mFvk3JEh/3pocWMlGLdzSLdzSC4s5qP8ArQSVGQEzCdnJ4jKAy2JTE4s2/iIs0fAQphJmUmUFlY9JwUqGaTSEqOSTAYWcxKEsJGZmYs0fAQW0fAQWEeIUwocJnBBBkRf0BtkqvVlASEiQF29fRIdokO27fSpIUJEQ40UXpvTzzLWS1fXJeKP6h1qr+SeHnGUV1TPCML6xCJw6ioq7h5tCaiQOXdTWQe45plNZwaUnDvw3E1VqGvM7OL1GjXAz357n3ubQPzB05nZ+FXmjxjecHaM08zs/Crzi/eJtHs5nZ+FXnkO5wdozRzOzniGF274+0GakjTmUKqKCoBCgCDdRLlVKCBM5QolRJPNIWpBuMJ2hPuBi3b1i3b1i3b7mLdvWLdvWLdvWLdvuYt29Yt2+5i3b1i3b1i3b1i3b1i3b1i3b7mLdvuYt29Yt29Yt2+5/UW7fcwdoHtF8KUpZmo/waf/EADIRAAECAwYFAwMEAwEAAAAAAAEAAhARMQMgIUFhcRITUFGBMkCxQlLwIpCRoTBgYnL/2gAIAQMBAT8A/YJLmtqUbUn0hcbzVyxzcpnuUHvH1IWv3BAg4g9KfaSwbVVMyvCwjhAEtIIMimWgdgcHdItHy/S2qpkso5XO6Ks38QkfV0Z7uFpOa3qtV5xhRfMN4+FMgzFU13EAei2hm6WQhouyzjip94y7QsnYkZHosySSqqtLku4hj4WirDVAyc0zz6I/BrtlkIYxEKx3MOyKFB0N/odsgtoUhNVXfupCHlZw84JtBt0MiYIQ/uPeanASyhO6MZDPorxJxwvFYrwvNxgm4adFtWzHEKi7RYXcYWbeFuNT0Z7eA/8AK2W0PC8r4UlRYrVWbeI8RoOjkAiRonNLP/Nz4uYJrC/E+lASwFOkuss2lFpHqaqw0gGud6Qm2QHqx6aWMNWrlM1XKZqgxoo3/WiQKlG1H0iaNo/uAuJ/3FcT/uKFqRPixCFow5yUwaGJcBUo2rBTFG1caYBcTvuK43/cULV1ckLUGokgQcQegPtJYNqjMmZMzDFbQptDBY+ISVFnCUQS0zacUy0DsDg731o+rWrZbI/0vm53WBJhisIaw7qVyzfP9Lq+8tHcIkPUbsrud4w8LuprJVpVMdxN192TxEuWUDc1W0ahb0ub3dIWbi1wJofdWhkwyqgskY6Ka8XMIaIXJow+YZJhm0H3NsfSIUyu+V8Lz/gBj5UoZQsjgRr7m1q27NTzRqtL1LlY63LH6vc2tW7KizhotLtZxyxhvHDuq3NIWP1e5tfU3aHiG1zutoZx1WynhDNTj4jZfV7m2HpNzNfN/S/8QncsRgT7lzeJpCxEwaxwu94z/lbLWO6l/KrDRYLugCTwtCAAAAp7pzGuqjYnIhcp+i5TspLlP0XKfp+eFyn6LlO0/PC5T9PzwuU/Rcp+i5T9Fynafnhcp+FPzwuU/Rcp2i5T8KLlO0XKdKWC5T9Fy36LlPPZCyOZ/hNaGiQH7Gn/2Q==",KT=({src:e,alt:t,size:n=40})=>x.jsx("img",{src:e||WT,alt:t,width:n,height:n,className:"cnf:rounded-full cnf:object-cover cnf:border cnf:border-gray-200"}),HT=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},uu=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=T.useState(!1),{refs:a,floatingStyles:c,context:l}=Sv({strategy:"fixed",placement:e,open:i,onOpenChange:s}),f=Ev(l,{outsidePress:!0}),{getReferenceProps:u,getFloatingProps:d}=kv([f]),p=T.Children.map(t,h=>{if(!T.isValidElement(h))return h;const g=h.props;return T.cloneElement(h,{onClick:HT(g.onClick,()=>s(!1))})});return x.jsxs(x.Fragment,{children:[T.cloneElement(n,{ref:a.setReference,...u(),onClick:()=>s(h=>!h),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&x.jsx("div",{ref:a.setFloating,style:{...c,minWidth:o},className:Ee("cnf:border cnf:border-gray-200 cnf:rounded-sm cnf:bg-white cnf:z-[9999999999]"),...d(),children:p})]})},qT=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>x.jsxs(uu,{trigger:x.jsx(je,{category:"link",size:"none",className:"cnf:text-gray-400",disabled:!i,children:x.jsx(Ce,{icon:f_})}),children:[x.jsxs("ul",{className:"cnf:py-2 cnf:m-0",children:[x.jsx("li",{children:x.jsx("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:hover:text-primary-600 cnf:cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&x.jsx("li",{children:x.jsx("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:hover:text-primary-600 cnf:cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),x.jsx("ul",{className:"cnf:border-t cnf:border-gray-200 cnf:flex cnf:items-center cnf:justify-center cnf:gap-2 cnf:py-2",children:y1.map(s=>x.jsx("li",{children:x.jsx(je,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:Ee(s.color,e===s.type?s.color:"cnf:text-gray-400"),children:x.jsx(Ce,{icon:s.icon,size:"lg"})})},s.type))})]}),ub=T.createContext(null);function VT(e,t){return{getTheme:function(){return t??null}}}function pt(){const e=T.useContext(ub);return e==null&&(function(t,...n){const r=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of n)o.append("v",i);throw r.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),e}function U(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function db(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const dn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,YT=dn&&"documentMode"in document?document.documentMode:null,sn=dn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Oo=dn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sc=!(!dn||!("InputEvent"in window)||YT)&&"getTargetRanges"in new window.InputEvent("input"),Xs=dn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Vi=dn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,QT=dn&&/Android/.test(navigator.userAgent),pb=dn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),xm=dn&&QT&&pb,ea=dn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&sn&&!pb;function hb(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}const GT=0,ZT=1,JT=2,mb=128,XT=1,e3=2,t3=3,n3=4,r3=5,o3=6,Vc=Xs||Vi||ea?" ":"",Dr=`
|
|
593
|
+
*/const OS={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"]},PS={prefix:"far",iconName:"strikethrough",icon:[512,512,[],"f0cc","M145.5 138c4-21.5 17.9-37.4 41.7-47.4c24.7-10.4 59.4-13.7 99.9-7.5c12.8 2 52.4 9.5 64.9 12.8c12.8 3.3 25.9-4.3 29.3-17.2s-4.3-25.9-17.2-29.3c-14.7-3.8-56.1-11.7-69.7-13.8c-46.2-7.1-90.4-4.1-125.7 10.7c-36.1 15.1-63.3 43.1-70.5 83.9c-.1 .4-.1 .9-.2 1.3c-2.8 23.4 .5 44.2 9.8 62.2c9.2 17.8 23.2 31.2 38.8 41.5c2.4 1.6 5 3.2 7.5 4.7L24 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-192.2 0c-9.9-3.1-19.7-6-29.2-8.8l-.3-.1c-37.7-11.1-70.5-20.7-93.3-35.8c-10.9-7.2-18.2-14.9-22.6-23.5c-4.2-8.2-6.6-18.9-4.9-33.8zM364 337.1c3.7 8.6 5.5 20.1 2.6 36.3c-3.8 21.8-17.8 37.9-41.8 48c-24.7 10.4-59.4 13.7-99.8 7.5c-20.1-3.2-54.3-14.6-81.2-23.6c0 0 0 0 0 0s0 0 0 0c-5.9-2-11.4-3.8-16.3-5.4c-12.6-4.1-26.1 2.8-30.3 15.4s2.8 26.2 15.4 30.3c4 1.3 8.8 2.9 14 4.7c26.6 8.9 66.4 22.2 90.9 26.2l.1 0c46.2 7.1 90.4 4.1 125.7-10.7c36.1-15.1 63.3-43.1 70.5-83.9c4-22.9 2.4-43.5-5-61.7l-57.2 0c5.7 5.3 9.7 11 12.3 17.1z"]},MS={prefix:"far",iconName:"underline",icon:[448,512,[],"f0cd","M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"]},IS={prefix:"far",iconName:"bold",icon:[384,512,[],"f032","M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"]},LS={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},RS={prefix:"far",iconName:"text-slash",icon:[640,512,["remove-format"],"f87d","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-281.9-221L396.4 80l124.8 0-8.5 34.2c-3.2 12.9 4.6 25.9 17.5 29.1s25.9-4.6 29.1-17.5l11-44.1C576.6 56.5 557.5 32 531.5 32l-335 0c-18.4 0-34.4 12.5-38.8 30.3l-7.5 30.1L38.8 5.1zM191.5 124.8L202.7 80l143.8 0L308.1 216.2 191.5 124.8zm57.4 300.7l-1.8 6.5L192 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.1 0 23.6-83.5-40.8-32.1L248.9 425.5z"]},DS={prefix:"far",iconName:"italic",icon:[384,512,[],"f033","M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"]},FS={prefix:"far",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24l0 120 16 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l16 0 0-96-8 0C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432l33.2 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM216 72l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},jS={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},zS={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},$S={prefix:"far",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"]},BS={prefix:"far",iconName:"font",icon:[448,512,[],"f031","M246.2 46.9C242.5 37.9 233.8 32 224 32s-18.5 5.9-22.2 14.9L44.6 432 24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-39.5 0 32.7-80 189.8 0 32.7 80L312 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-20.6 0L246.2 46.9zM299.3 304l-150.6 0L224 119.5 299.3 304z"]},US={prefix:"far",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z"]},WS={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},ep=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var a,c;const o=n>0,i={[dt.INFO]:{icon:t_,color:"cnf:text-primary-600 cnf:hover:text-primary-600"},[dt.WARNING]:{icon:__,color:"cnf:text-warning-600 cnf:hover:text-warning-600"},[dt.DANGER]:{icon:zc,color:"cnf:text-danger-600 cnf:hover:text-danger-600"},[dt.SUCCESS]:{icon:Vy,color:"cnf:text-success-600 cnf:hover:text-success-600"}},s=l=>{l.preventDefault(),l.stopPropagation(),t()};return v.jsxs(je,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:s,className:xe("cnf:relative",(a=i[r])==null?void 0:a.color),title:"View comments",children:[v.jsx("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center",children:o?v.jsxs(v.Fragment,{children:[v.jsx(Ce,{icon:e_,size:"lg"}),v.jsx(Ce,{icon:(c=i[r])==null?void 0:c.icon,className:"cnf:font-bold cnf:absolute cnf:left-1/2 cnf:-translate-x-1/2 cnf:top-0.5",size:"xs",color:"white"})]}):v.jsx(Ce,{icon:OS,size:"lg"})}),o&&v.jsx("span",{className:"cnf:absolute cnf:top-0.5 cnf:-right-0 cnf:flex cnf:h-3 cnf:w-3 cnf:items-center cnf:justify-center cnf:rounded-full cnf:bg-primary-600 cnf:text-[10px] cnf:text-white",children:n})]})},KS=document.getElementById("lexical-root")??(()=>{const e=document.createElement("div");return e.id="lexical-root",e.style.position="relative",e.style.zIndex="2147483647",document.body.appendChild(e),e})();/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:jb,setPrototypeOf:tp,isFrozen:HS,getPrototypeOf:qS,getOwnPropertyDescriptor:VS}=Object;let{freeze:Nt,seal:Zt,create:iu}=Object,{apply:su,construct:au}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Zt||(Zt=function(t){return t});su||(su=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});au||(au=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const Ea=Ot(Array.prototype.forEach),YS=Ot(Array.prototype.lastIndexOf),np=Ot(Array.prototype.pop),cs=Ot(Array.prototype.push),QS=Ot(Array.prototype.splice),Wa=Ot(String.prototype.toLowerCase),Dl=Ot(String.prototype.toString),Fl=Ot(String.prototype.match),ls=Ot(String.prototype.replace),GS=Ot(String.prototype.indexOf),ZS=Ot(String.prototype.trim),nn=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),fs=JS(TypeError);function Ot(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return su(e,t,r)}}function JS(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return au(e,n)}}function _e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wa;tp&&tp(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(HS(t)||(t[r]=i),o=i)}e[o]=!0}return e}function XS(e){for(let t=0;t<e.length;t++)nn(e,t)||(e[t]=null);return e}function gn(e){const t=iu(null);for(const[n,r]of jb(e))nn(e,n)&&(Array.isArray(r)?t[n]=XS(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=gn(r):t[n]=r);return t}function us(e,t){for(;e!==null;){const r=VS(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=qS(e)}function n(){return null}return n}const rp=Nt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jl=Nt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zl=Nt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ek=Nt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$l=Nt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),tk=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),op=Nt(["#text"]),ip=Nt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bl=Nt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sp=Nt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Sa=Nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nk=Zt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rk=Zt(/<%[\w\W]*|[\w\W]*%>/gm),ok=Zt(/\$\{[\w\W]*/gm),ik=Zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),sk=Zt(/^aria-[\-\w]+$/),zb=Zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ak=Zt(/^(?:\w+script|data):/i),ck=Zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$b=Zt(/^html$/i),lk=Zt(/^[a-z][.\w]*(-[.\w]+)+$/i);var ap=Object.freeze({__proto__:null,ARIA_ATTR:sk,ATTR_WHITESPACE:ck,CUSTOM_ELEMENT:lk,DATA_ATTR:ik,DOCTYPE_NAME:$b,ERB_EXPR:rk,IS_ALLOWED_URI:zb,IS_SCRIPT_OR_DATA:ak,MUSTACHE_EXPR:nk,TMPLIT_EXPR:ok});const ds={element:1,text:3,progressingInstruction:7,comment:8,document:9},fk=function(){return typeof window>"u"?null:window},uk=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},cp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Bb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fk();const t=de=>Bb(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==ds.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:m}=e,h=c.prototype,g=us(h,"cloneNode"),p=us(h,"remove"),y=us(h,"nextSibling"),b=us(h,"childNodes"),x=us(h,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let w,A="";const{implementation:E,createNodeIterator:S,createDocumentFragment:_,getElementsByTagName:N}=n,{importNode:P}=r;let I=cp();t.isSupported=typeof jb=="function"&&typeof x=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:W,ERB_EXPR:j,TMPLIT_EXPR:z,DATA_ATTR:Y,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:re}=ap;let{IS_ALLOWED_URI:L}=ap,F=null;const K=_e({},[...rp,...jl,...zl,...$l,...op]);let U=null;const J=_e({},[...ip,...Bl,...sp,...Sa]);let V=Object.seal(iu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,te=null;const he=Object.seal(iu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,pe=!0,ze=!1,G=!0,qe=!1,zt=!0,pt=!1,Yo=!1,os=!1,Rn=!1,qr=!1,Qo=!1,se=!0,De=!1;const ct="user-content-";let Mt=!0,et=!1,Ht={},At=null;const dr=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Go=null;const $t=_e({},["audio","video","img","source","image","track"]);let Vr=null;const mr=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yr="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",Dn="http://www.w3.org/1999/xhtml";let Zo=Dn,ll=!1,fl=null;const M1=_e({},[Yr,hr,Dn],Dl);let da=_e({},["mi","mo","mn","ms","mtext"]),ma=_e({},["annotation-xml"]);const I1=_e({},["title","style","font","a","script"]);let is=null;const L1=["application/xhtml+xml","text/html"],R1="text/html";let Qe=null,Jo=null;const D1=n.createElement("form"),ym=function(O){return O instanceof RegExp||O instanceof Function},ul=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Jo&&Jo===O)){if((!O||typeof O!="object")&&(O={}),O=gn(O),is=L1.indexOf(O.PARSER_MEDIA_TYPE)===-1?R1:O.PARSER_MEDIA_TYPE,Qe=is==="application/xhtml+xml"?Dl:Wa,F=nn(O,"ALLOWED_TAGS")?_e({},O.ALLOWED_TAGS,Qe):K,U=nn(O,"ALLOWED_ATTR")?_e({},O.ALLOWED_ATTR,Qe):J,fl=nn(O,"ALLOWED_NAMESPACES")?_e({},O.ALLOWED_NAMESPACES,Dl):M1,Vr=nn(O,"ADD_URI_SAFE_ATTR")?_e(gn(mr),O.ADD_URI_SAFE_ATTR,Qe):mr,Go=nn(O,"ADD_DATA_URI_TAGS")?_e(gn($t),O.ADD_DATA_URI_TAGS,Qe):$t,At=nn(O,"FORBID_CONTENTS")?_e({},O.FORBID_CONTENTS,Qe):dr,ee=nn(O,"FORBID_TAGS")?_e({},O.FORBID_TAGS,Qe):gn({}),te=nn(O,"FORBID_ATTR")?_e({},O.FORBID_ATTR,Qe):gn({}),Ht=nn(O,"USE_PROFILES")?O.USE_PROFILES:!1,ye=O.ALLOW_ARIA_ATTR!==!1,pe=O.ALLOW_DATA_ATTR!==!1,ze=O.ALLOW_UNKNOWN_PROTOCOLS||!1,G=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=O.SAFE_FOR_TEMPLATES||!1,zt=O.SAFE_FOR_XML!==!1,pt=O.WHOLE_DOCUMENT||!1,Rn=O.RETURN_DOM||!1,qr=O.RETURN_DOM_FRAGMENT||!1,Qo=O.RETURN_TRUSTED_TYPE||!1,os=O.FORCE_BODY||!1,se=O.SANITIZE_DOM!==!1,De=O.SANITIZE_NAMED_PROPS||!1,Mt=O.KEEP_CONTENT!==!1,et=O.IN_PLACE||!1,L=O.ALLOWED_URI_REGEXP||zb,Zo=O.NAMESPACE||Dn,da=O.MATHML_TEXT_INTEGRATION_POINTS||da,ma=O.HTML_INTEGRATION_POINTS||ma,V=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&ym(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&ym(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(pe=!1),qr&&(Rn=!0),Ht&&(F=_e({},op),U=[],Ht.html===!0&&(_e(F,rp),_e(U,ip)),Ht.svg===!0&&(_e(F,jl),_e(U,Bl),_e(U,Sa)),Ht.svgFilters===!0&&(_e(F,zl),_e(U,Bl),_e(U,Sa)),Ht.mathMl===!0&&(_e(F,$l),_e(U,sp),_e(U,Sa))),O.ADD_TAGS&&(typeof O.ADD_TAGS=="function"?he.tagCheck=O.ADD_TAGS:(F===K&&(F=gn(F)),_e(F,O.ADD_TAGS,Qe))),O.ADD_ATTR&&(typeof O.ADD_ATTR=="function"?he.attributeCheck=O.ADD_ATTR:(U===J&&(U=gn(U)),_e(U,O.ADD_ATTR,Qe))),O.ADD_URI_SAFE_ATTR&&_e(Vr,O.ADD_URI_SAFE_ATTR,Qe),O.FORBID_CONTENTS&&(At===dr&&(At=gn(At)),_e(At,O.FORBID_CONTENTS,Qe)),O.ADD_FORBID_CONTENTS&&(At===dr&&(At=gn(At)),_e(At,O.ADD_FORBID_CONTENTS,Qe)),Mt&&(F["#text"]=!0),pt&&_e(F,["html","head","body"]),F.table&&(_e(F,["tbody"]),delete ee.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw fs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=O.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=uk(m,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));Nt&&Nt(O),Jo=O}},bm=_e({},[...jl,...zl,...ek]),vm=_e({},[...$l,...tk]),F1=function(O){let q=x(O);(!q||!q.tagName)&&(q={namespaceURI:Zo,tagName:"template"});const le=Wa(O.tagName),Be=Wa(q.tagName);return fl[O.namespaceURI]?O.namespaceURI===hr?q.namespaceURI===Dn?le==="svg":q.namespaceURI===Yr?le==="svg"&&(Be==="annotation-xml"||da[Be]):!!bm[le]:O.namespaceURI===Yr?q.namespaceURI===Dn?le==="math":q.namespaceURI===hr?le==="math"&&ma[Be]:!!vm[le]:O.namespaceURI===Dn?q.namespaceURI===hr&&!ma[Be]||q.namespaceURI===Yr&&!da[Be]?!1:!vm[le]&&(I1[le]||!bm[le]):!!(is==="application/xhtml+xml"&&fl[O.namespaceURI]):!1},pn=function(O){cs(t.removed,{element:O});try{x(O).removeChild(O)}catch{p(O)}},Qr=function(O,q){try{cs(t.removed,{attribute:q.getAttributeNode(O),from:q})}catch{cs(t.removed,{attribute:null,from:q})}if(q.removeAttribute(O),O==="is")if(Rn||qr)try{pn(q)}catch{}else try{q.setAttribute(O,"")}catch{}},xm=function(O){let q=null,le=null;if(os)O="<remove></remove>"+O;else{const Ve=Fl(O,/^[\r\n\t ]+/);le=Ve&&Ve[0]}is==="application/xhtml+xml"&&Zo===Dn&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const Be=w?w.createHTML(O):O;if(Zo===Dn)try{q=new d().parseFromString(Be,is)}catch{}if(!q||!q.documentElement){q=E.createDocument(Zo,"template",null);try{q.documentElement.innerHTML=ll?A:Be}catch{}}const gt=q.body||q.documentElement;return O&&le&>.insertBefore(n.createTextNode(le),gt.childNodes[0]||null),Zo===Dn?N.call(q,pt?"html":"body")[0]:pt?q.documentElement:gt},wm=function(O){return S.call(O.ownerDocument||O,O,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},dl=function(O){return O instanceof u&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof f)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},Am=function(O){return typeof a=="function"&&O instanceof a};function Fn(de,O,q){Ea(de,le=>{le.call(t,O,q,Jo)})}const Cm=function(O){let q=null;if(Fn(I.beforeSanitizeElements,O,null),dl(O))return pn(O),!0;const le=Qe(O.nodeName);if(Fn(I.uponSanitizeElement,O,{tagName:le,allowedTags:F}),zt&&O.hasChildNodes()&&!Am(O.firstElementChild)&&Ct(/<[/\w!]/g,O.innerHTML)&&Ct(/<[/\w!]/g,O.textContent)||O.nodeType===ds.progressingInstruction||zt&&O.nodeType===ds.comment&&Ct(/<[/\w]/g,O.data))return pn(O),!0;if(!(he.tagCheck instanceof Function&&he.tagCheck(le))&&(!F[le]||ee[le])){if(!ee[le]&&Em(le)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,le)||V.tagNameCheck instanceof Function&&V.tagNameCheck(le)))return!1;if(Mt&&!At[le]){const Be=x(O)||O.parentNode,gt=b(O)||O.childNodes;if(gt&&Be){const Ve=gt.length;for(let It=Ve-1;It>=0;--It){const jn=g(gt[It],!0);jn.__removalCount=(O.__removalCount||0)+1,Be.insertBefore(jn,y(O))}}}return pn(O),!0}return O instanceof c&&!F1(O)||(le==="noscript"||le==="noembed"||le==="noframes")&&Ct(/<\/no(script|embed|frames)/i,O.innerHTML)?(pn(O),!0):(qe&&O.nodeType===ds.text&&(q=O.textContent,Ea([W,j,z],Be=>{q=ls(q,Be," ")}),O.textContent!==q&&(cs(t.removed,{element:O.cloneNode()}),O.textContent=q)),Fn(I.afterSanitizeElements,O,null),!1)},_m=function(O,q,le){if(se&&(q==="id"||q==="name")&&(le in n||le in D1))return!1;if(!(pe&&!te[q]&&Ct(Y,q))){if(!(ye&&Ct(Q,q))){if(!(he.attributeCheck instanceof Function&&he.attributeCheck(q,O))){if(!U[q]||te[q]){if(!(Em(O)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,O)||V.tagNameCheck instanceof Function&&V.tagNameCheck(O))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,q)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(q,O))||q==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,le)||V.tagNameCheck instanceof Function&&V.tagNameCheck(le))))return!1}else if(!Vr[q]){if(!Ct(L,ls(le,M,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&O!=="script"&&GS(le,"data:")===0&&Go[O])){if(!(ze&&!Ct(oe,ls(le,M,"")))){if(le)return!1}}}}}}}return!0},Em=function(O){return O!=="annotation-xml"&&Fl(O,re)},Sm=function(O){Fn(I.beforeSanitizeAttributes,O,null);const{attributes:q}=O;if(!q||dl(O))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Be=q.length;for(;Be--;){const gt=q[Be],{name:Ve,namespaceURI:It,value:jn}=gt,Xo=Qe(Ve),ml=jn;let lt=Ve==="value"?ml:ZS(ml);if(le.attrName=Xo,le.attrValue=lt,le.keepAttr=!0,le.forceKeepAttr=void 0,Fn(I.uponSanitizeAttribute,O,le),lt=le.attrValue,De&&(Xo==="id"||Xo==="name")&&(Qr(Ve,O),lt=ct+lt),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,lt)){Qr(Ve,O);continue}if(Xo==="attributename"&&Fl(lt,"href")){Qr(Ve,O);continue}if(le.forceKeepAttr)continue;if(!le.keepAttr){Qr(Ve,O);continue}if(!G&&Ct(/\/>/i,lt)){Qr(Ve,O);continue}qe&&Ea([W,j,z],Tm=>{lt=ls(lt,Tm," ")});const km=Qe(O.nodeName);if(!_m(km,Xo,lt)){Qr(Ve,O);continue}if(w&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!It)switch(m.getAttributeType(km,Xo)){case"TrustedHTML":{lt=w.createHTML(lt);break}case"TrustedScriptURL":{lt=w.createScriptURL(lt);break}}if(lt!==ml)try{It?O.setAttributeNS(It,Ve,lt):O.setAttribute(Ve,lt),dl(O)?pn(O):np(t.removed)}catch{Qr(Ve,O)}}Fn(I.afterSanitizeAttributes,O,null)},j1=function de(O){let q=null;const le=wm(O);for(Fn(I.beforeSanitizeShadowDOM,O,null);q=le.nextNode();)Fn(I.uponSanitizeShadowNode,q,null),Cm(q),Sm(q),q.content instanceof i&&de(q.content);Fn(I.afterSanitizeShadowDOM,O,null)};return t.sanitize=function(de){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,le=null,Be=null,gt=null;if(ll=!de,ll&&(de="<!-->"),typeof de!="string"&&!Am(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw fs("dirty is not a string, aborting")}else throw fs("toString is not a function");if(!t.isSupported)return de;if(Yo||ul(O),t.removed=[],typeof de=="string"&&(et=!1),et){if(de.nodeName){const jn=Qe(de.nodeName);if(!F[jn]||ee[jn])throw fs("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)q=xm("<!---->"),le=q.ownerDocument.importNode(de,!0),le.nodeType===ds.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?q=le:q.appendChild(le);else{if(!Rn&&!qe&&!pt&&de.indexOf("<")===-1)return w&&Qo?w.createHTML(de):de;if(q=xm(de),!q)return Rn?null:Qo?A:""}q&&os&&pn(q.firstChild);const Ve=wm(et?de:q);for(;Be=Ve.nextNode();)Cm(Be),Sm(Be),Be.content instanceof i&&j1(Be.content);if(et)return de;if(Rn){if(qr)for(gt=_.call(q.ownerDocument);q.firstChild;)gt.appendChild(q.firstChild);else gt=q;return(U.shadowroot||U.shadowrootmode)&&(gt=P.call(r,gt,!0)),gt}let It=pt?q.outerHTML:q.innerHTML;return pt&&F["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ct($b,q.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
594
|
+
`+It),qe&&Ea([W,j,z],jn=>{It=ls(It,jn," ")}),w&&Qo?w.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ul(de),Yo=!0},t.clearConfig=function(){Jo=null,Yo=!1},t.isValidAttribute=function(de,O,q){Jo||ul({});const le=Qe(de),Be=Qe(O);return _m(le,Be,q)},t.addHook=function(de,O){typeof O=="function"&&cs(I[de],O)},t.removeHook=function(de,O){if(O!==void 0){const q=YS(I[de],O);return q===-1?void 0:QS(I[de],q,1)[0]}return np(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=cp()},t}var cu=Bb();const dk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABpCAYAAAB/GGzVAAAEtWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgdGlmZjpJbWFnZUxlbmd0aD0iMTA1IgogICB0aWZmOkltYWdlV2lkdGg9IjIwMCIKICAgdGlmZjpSZXNvbHV0aW9uVW5pdD0iMiIKICAgdGlmZjpYUmVzb2x1dGlvbj0iNzIvMSIKICAgdGlmZjpZUmVzb2x1dGlvbj0iNzIvMSIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjIwMCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEwNSIKICAgZXhpZjpDb2xvclNwYWNlPSIxIgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIj4KICAgPHhtcE1NOkhpc3Rvcnk+CiAgICA8cmRmOlNlcT4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0icHJvZHVjZWQiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFmZmluaXR5IFBob3RvIDIgMi42LjIiCiAgICAgIHN0RXZ0OndoZW49IjIwMjUtMDUtMTRUMTE6NTA6MjAtMDQ6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KPD94cGFja2V0IGVuZD0iciI/PpjjR1oAAAGCaUNDUHNSR0IgSUVDNjE5NjYtMi4xAAAokXWRzStEURiHH8M0YhjFwkKZNKzQDDWxUUZCSRqjfG3u3Jk7o+bjdu9Mkq2yVZTY+FrwF7BV1koRKVmzJTboeu/M1EzinM77Pv3Oed/O+R1wRFJq2qzxQzqTM8JjIe/c/ILX9YKTRjz00q6opj48PT3Jv+Pjjio73/TYvf4/9+eoj8VNFapqhYdU3cgJjwtPruR0m7eFW9SkEhM+Fe425ILCt7YeLfKzzYkif9lsRMIj4GgS9iYqOFrBatJIC8vL8aVTebV0H/sl7nhmdkZyh6w2TMKMEcLLBKOMECTAoMQgPfSJQwHx7u96f6F+iqzUqhJ1VjFYJkGSHN2i5qV7XLImelxmilXb/9++mlp/X7G7OwTOJ8t66wTXFnxvWtbnoWV9H0H1I1xkyvXZAxh4F32zrPn2wbMOZ5dlLboD5xvQ+qArhlKQqmU5NA1eT6BhHpqvoW6x6Flpn+N7iKzJV13B7h50yXnP0g9yqmfr0vdvXAAAAAlwSFlzAAALEwAACxMBAJqcGAAAFnlJREFUeJztnXm4XEWVwH95gQAhCbJKQVEsogKKKCAugEZDWCQsAh+o7AwooI4DguOniCJLHBAIMoojqCwjoLIG2ZR12FSCQRAiEAJUSkpCQCAkZH1v/jjVdL/u6tfbvbe3+/u+/vr1Xet131NV59RZRtGlWOdXAw4FjgS2BwaAvwFXAL8wWr3axubl9Aij2t2AZrDOrwk8DLyryiGvANsYrf6RXatqY51fGVgFGAOsDIxGBLvAELA8vJYCS4xWS7NuZxKEDmxL4DPAmsBM4Faj1SttbViDdJ2AWOfHAH8B3hc2LQVuARYDewGrh+3zgfcYrf6VeSNLsM5/ENgb2APYiAYFBPDA3cD1wJ+MVisya3yTWOc3Av4PMAz//94ADjda3dCWhjVBNwrIAcBvw8fbgWOMVnPDvnWAc4HDwv4TjFbTMm7fDsD+wMeArYC1E7z8AmAW0kFcA9xrtFqe4PVbxjq/NzLNnVDlEA9sZrRanF2rmqcbBeRK4PPh4xZGq6fK9q8HvACsCjxstNoh5fYMAO8F9gSOQqYVWTEXuBy4AfiL0Woww3tXYJ0/FrgQWKnGoScarc7PoEkt040C8hiwNeCNVhtUOeZ3yAO7yGi1euyYBNqxEvBuZMTaI417NMhfgWOBR7PuncN3MRU4qc5TbjRa7ZtikxJjoPYhHUdBaR1rna8m4OPDeyrTD+v8FsBjyEPZCcIBsA1wP/C4df4zWd3UOr8KcDPw9QZOez6d1iRPraGwE/kzsB2wBrAj8lC8jXX+PcBO4eOfkryxdX5L4CxE6a63c1kGPAL8ERGoF4F5iMK6IOxfjijsKwPjkPn7uoAC3g98FNFpxtS412hgc+Am6/z9wLeMVg/U2c6Gsc6vD/wa+EQDpy1CRt2uoBunWJ8C7gofnwWOBu4DBoFtgR8DHwn7DzZaXZnAPVcDjgO+R3F0qsYg8AwiENOBO41WryfQhjHAJGAK0jFsTW0hHQQuAM5M2rwaOovrgC0aPPVUo9XpSbalEazzo4FdgMOBTZHR7FeICbrCQth1AgJvK+qfo9j+QWAF0gMXmAF8rFUrj3V+c+A2qq+5FFiAjG4nG61mtnLPOtu1GXAeMBEZTUfidWBn4IlWFfkwrd0aeJCiSb1efm60OrqV+7eKdf4k4JzIrlORjmTY99ONOgiI9F9e8nmA4cJxDzAxAeE4BniUkYVjMfDdcMyuWQgHgNFqTlB0N0VG0ZEU8zWQad53Erj1gUhH0Khw3A58OYH7N411fjvEmFCgdI3sNIpT87fpyhGkgHV+R2AfxNVkNKI4TwfuMFoNtXDdMchU7XCGC14py5Ev++LCOkw7sc6vBRwBnIKsXFdjOnBQM5Yu6/x3gW9RWxcq525gitFqUaP3TBLr/DmIpW0ZMlX9A7A7stAMcLrR6tTSc7paQNIgLDZeipiJY6xAplxfNVo9l1W76sU6vwEy9dqf6kaYWcBu9Qp20MF+hIxUjXIXMrK23QPAOv8LxHfvTWBTo9V867xCDCcAPzVaHVd6TrdOsVIh+HjdTnXheAM42mg1pROFA8Bo9aLR6nOIIvpSlcO2BGYF/WpEwsh0H80Jx0PA7p0gHIG/hvdxwJnWeQOcXLL/sfIT8hEkEBwJZ1L08SqnoV63E7DOvwOx0FRbF3nUaPWhEc7fBLgX8alqlGeAHYxWrzVxbipY58cCTwMbhk0rkKk5yJR5I6PVP0vPyUcQwDo/HlFiY8IxBFwEbNdNwgEQHs4DgG8jD0Mp/wL+vdq51vnJiKWqGeF4CrEgdoxwAAQdaHfgibCpIBxzgO3LhQPyEQTr/ATEnj8psnsZ8H2j1RnZtipZgmn2GOCHyDrOY8CeRisXOXY04ut2CeJ53CiPAzsnsfaTFsE1ZjJiAXwBuK3aNLCvBSQ8DBcQNz+uQDyFf5ltq9LDOr8P4lC5b8zKF6aZ3wS+3+QtHLCt0erl5lvZWXSjq0mSnAgcH9m+ArH3d03cQj0YrW4EbhzhkF8DzToRLgQ+0UvCAX08gljnP4AE9ZSvQg8C3wDOb7f7eFYE0/Z0xN+rGeYDHzVaPZtcqzqDvhSQYM14Etg4srvCFt7LhACvGxDHyGZ4EdjFaDUruVZ1Dn1nxQoK67eJC8e9xKdcPYl1fgrwAM0LxwJgr14VDujDEcQ6/2HE07a8c1gBvMto9UL2rcqW0EmchehgjbqNlPIRo9Wfk2lVZ9KPSvpUKoVjOWL27AfhGA/8D3AQzc8gFiEr5D0tHNBnAmKdP4j4escdwJ0ZNydzrPMbAz8n/h3Uy+vAF4xW9yXTqs6mrwQEmVKU8yrw2Q7yF0qFIBwPUHSzaIYlyNrQLTWP7BH6Rkm3zu+BuMWXc1G3pKBpFuv8JCTrZCvCAXCI0eq3tQ/rHSoExDp/mnV+kXX+onY0KA3CCvG5VP6/c4Gz6zh/fev8tmG9oKuwzp+CeCiPa+Eyy4BDgGsTaVQXEZtiTQJWAw5G4rB7AUM8KvAco9Ub1U6yzm8P/Bfw6bBp0Dr/e+AM4MFWgrLSJqz1/AQJ+mqFxYhZ/Mqs/99gbVsHWcxdAryUdSrWftFBTqLSnLmcYobGCqzzGyKRcKU97wDiDborMNU6P9VotTDhtrZMGOnuRxLatcIK4Ayj1Xmtt6p+rPPjEJeX7zG8Y3vLOv9LpIP6ZxYC2/M6SAj4iQX7XBRzbw7nDCC5nqpNSwaQXnVWWFfpGKzzWyPu5q0KB4jj4tSaRyWIdf7jwHNIzoHyUX81ZCF3DjAtOJumyijr/DTE9bfAJsBYxCfp7yXbH0USD3dULthaBOW83OqyBElb+nyVcyYgP9JaddxiEfBL4KR2K/vW+UMQ7+R62j0Sg0giih9k+Xtb5w9E3OwLqZVeRTqq2UiusF2QBHkFrgYOTbONKwFfQvLYljOAJF8usBUSnvhi5NhOZvfItnlIEuWRqNfLYCziLj/ZOn+s0eruRhqXBCG+4QTgTKonmaiXQSRALGvh2AD4b0Q4liP606nlcSXW+X2R+PiNkNRPs0kmW0uUUdb5I5Evt8BmSEqXQYqRV4NITqML02pIGgQlbzbyP5VyntGqaqrM8MA9FTmvHqYBp2Slm4SEChcC/5bA5YaQ3/mYBK5VN2FKez/iTTwIfMdoddYIx6+NhM6uhfiDrZ9WxpSKXjKkrNwRWGC0qpbCvisIOXRjjnS6VnEd6/ynkRX2Rv3VhoB/IK4rFUkAksQ6vzriAfCRWsfWyUXA14xWy6rca0kao4p1fl1kSrs6YhiZVEsBDyPJ9eHjD41WJ490fLP0upL+yci25+qpPGW0ugvJMdUoowANPGKd/0nQZxIn5CB+mOSE43IkK2RMOLYCLOklftuCYiK6y+qxToUiPLPDx/3TUthjAlLoISq+qC4k9vA8FdkWJQzzzc5vV0LWkR6xzu8aphGJEFbGZ5BcLZJbgC/GpoXW+W2Q5A1rIUm006DUEnh/1aMqKQRojaO5+PmaxH60K5F8SqelccOM2SSyraHYhZCwYSoyN26GzZGV7ItDGp6msc4PWOcPRaZ+tZJo18sfjFZ7Gq2WRO63KTKFK0RdpmXSLjUsVLRjBAqd+ChSmg3FLnoxku2hqxTyKsQK7Pylieucgqyot8JRwOwwd26Wc4FftNiOUu5GUrdW406Gl5DbNNQDSZrS5YT3N3BewbdsKcW6MYlSsZIe5n9vpXGzNrBeZNuTjV4kxKZ/K1i3WlEG1wZ+Y52fDnyp3pIE1vlVkbp/+5FcT/kQcKDRaqTfutz3bACpqvW3hNpQYAYycqyCuDjdVuuEYIAp5DF7MC0XlJ5V0sPDHJvSNJ1YwGj1DVov/rIykjd3tnX+C6GdVQkuL7chCeCS+r3+igQ8za9xXKzWvE6oDaXMp1h1ar+QlLwqwc/sGsR9aAkproP0rIAgC0nlJtq3Wk1oZrQ6CZl+tuoHVEgL+rtg168gxHA8SNwa1yxPAh8eyUmzhNgIt36CbQEg6D9HIjrFWOD31vkdYpapYBK+heLocbPR6u/lxyVFLwtIbHqVVM6mExD3kiTYDXjWOn9Y6Ubr/LZIruBmUn9WYw7wyZgptwpvRraNVFqhaYxWDwGFyrdjkeCuP1vnj7bOb2Odn2yd/xWS87fQYcxGdLvU6GVv3piVJxHdymi1wjp/dLheEmsDawCXWecPRkoXbI1kN1wtgWsX+CdShqDWtKqUmG9ZzC0pKb6N5Ayeijyb2yJGoxj3IX5YqaY47eURJJatIzFnwmDM+CqSACEpdkX0jXNIVjg8koGkUf0rZtpOsl3DMFotN1r9ADEn/47hFaBApmAzEUPJpCySbPTyCBKbRiTa+xmthqzzxyP6xIF0Zhqll5HM9LWcM2PEVqdT91g2Ws0A9gq+dFsgyw4LgRlZx9/0soDE5s+JTw+MVoNh8W41pDx0J7EQ6WmbEQ6IewZn5uEbRulZNLi4myS9PMWaF9nWapxElKD07gdclcb1m2QZUvDn8RauEQsYS7ScdKfTywIyl0pT7PjglZo4IW3QEYwQxpshC4FPGa0eaPE6sfLSsY6nZ+lZAQkrqzFbfzMxHo3c82DE4a5dCR0WIxVlWxUOgHUj27qqylar9KyABGK9XVIesFHCdGsyYsdvBwcbre5p9SKhoGlsBOm5Egcj0esCElNOP5j2TUNs+mTq8ClKmEOMVtcldK1dqbTKzTVaLUjo+l1BrwvI85FtW2dx4yAkByDF6tNmGRLP8asEr7lXZFszntBdTa8LyMzItvdkdfNgs9+PYmx/GixHYrirrTg3TMhEOTGyqyezuVvnR1nnx8eC2npdQO6KbNu8mnNgGhit3gQKuZ7S4HSjVauxKuVMCK9yenUE+S7y+1SUxe51Afkb4oNUygDwlSwbETxnd0DKLyfJ94DTE74miKdsbA2k4ViaLuFrSKzOZ8t39LSAhECn6ZFdR4ZpRJZtmY9Mt+YkcLlBJDfUGSml3/wGlQr6341WNoV7dQKjy97fpqcFJHBrZNs7idv4UyU4C+6NLOQ1yyDwG+CENGqahACtPSO7Wg0U6yhCfP9Aud5Rvr1tvlgh4dmxwCeQUMuZwM9S8ND8Y2TbqsAxtCExhdHqiVBZdgbNecZehaSATatE9S6RbW8h3rU9gXX+TGRBtzBKFrwrtqdEV7TOX5i592lIJj0NMYGWPyDLEcX6OKNVElORwj2vRaY3pSwCNm4wPiIxrPOTgetorG7HFYg5NxWP2uA9OwOJwyjlaeB93ZaXOUZIcVozL1pgSaZTLOv8ekhPVPB+BfH5n4e4ZqyELFA9Yp1/X/QizfEdKr1Qx9JG71uj1R+QeJJ6H/Y7kI4jTXfzvagUDoDTekE4Ai8hMTwzkYTsj1KMe1lYsm0mcHamI4h1/kaKD+WLyFThjrBvMyS738eRoW8BYIxWryVw31WRXnCjsl1zkCzvbUuSZ50/AimsOVJn9QLw/mAyTrMtd1O5/vGC0WqTNO/bbqzzbyARqA8YrXYq3ZfZCGKd35Ki8vccsGVBOADClOpTiHUGpMGtVkcqXHsx8TSimxEv7JkllyMjajWdwgLbZyAcExF9sJxO8E5uG1lOsc5AzGhLkTiFCk/b0JOfSTEJ2GHlx7TAFQxPUFbgK2GEaQtB2b4KEdbJwOeRDB+HIh3Kx9LWk0Iandgo9ho9Zr2qwlDZ+9tkYsUK6VsKaSufNlo9U+1Yo9XLIbHaAcAHrfNjkkgKFsJjf0xlxkgNXGKdPyxFy9CIhLWMF8KrHRyFhLWWc261Klw9xs+QTunm8h1ZjSCjKS7C1OMN+nx4H6BogkuCHxP3izoQ+ECC9+kaQsm2C4nkEEMenJ7HaHWy0WqdkDBiGFkJyDKKKXfKFeUYBVv8m8gwnwihp47pHCsD91rn35nUvbqBsBgWy/U7hKQl7avowRiZCEh4MC8PHze0zlfNJRUW0QoxG7en4EpxJ5LRsJwJwE+SLFPQBUxDFsfKmQn8PuO2dCRZPgznICloRgFnW+f3LE8tGYb7S0s2XZJ0I4J7xpeJZ1ncD0nY1tME9+5Dkfol5bwK7JtWMuhuI+t1kBMRQSkI5r3Ios2byMN5KKKrDAE3AvulVQs7FKG5lcrUNkPAQcA1WdThbgfW+Q8h2d3LSxkMAScaraZl36rOJGsBGQD+g9qmw9uBfWJFXRJuzwVEYgAomqLvSfP+7cA6vx2StjPmB3YpcHQaTpDdSqbz7WBGPR9ZkJpOZfbDh5HSvp9JWzgC/0ncHX4McJt1fv8M2pAZ1vmdEFefmHA8hdR6z4WjhLamygwlyd6LTHOebSEDYCttUMhU792R3cuAY4xWl2XbqmQJToiTgKsZXjGqwEvAtkarFzNtWBfQiblkMyd4GD+JxInEOBWY2o0Oe8EQsi8iHLGF4deR3L19lc6nXnIBCVjn10dirlVk9xCSDG5KnYVnOoKg812MZHyMTaeXARONVg9m2a5uop9s/iMSXCp2I54qaBSwMzDDOj8ly3Y1i3X+w4hOdxTx33kxsEsuHCOTjyBlWOc3B26gWOKrnOXARciUK3OdqRZhungskqkjViMFwAF7GK2SLsbZc+QCEiGEA9+LrDJX+44GkanLdVnXrIgRyjN/GvFYKK9OW8rjiIdw29vcDeRTrAihNPKOyKJmNQaAy4CnrfPHt9NFJdRefwq4iZGF4xJy4WiIfASpgXV+T6RgZ60sKM8hq/+XGK3SzKRYaJcBvoRYqLaqcfibwBcR74C2RU92I7mA1IF1fg3gp0hisXL3jHIGETeOq4E/AU8m0WOHKdQWSAK6/RGP51iJtPK23Ax82WjVV2ULkiIXkAawzn8c+F9gE+r/7pYB9wDXI3rNq8CSsH1FeBUYQNYqVkYEcQKwExJZuDf1B7gNAfOBo4xWPZOupx3kAtIgITx3IhKr3UjKHpAHd0l4LQ+vkQRkFRr/jRYgddyvznWN1skFpEms8+OQXv3rxFPlZM0ziBPo9XmgU3LkAtIiwXo1EVGCdwY2yPD285FKVpcCN+WOhsmTC0jCWOd3R0aVbRAdopZS3whLkSnUHGS0uLYb/cO6iVxAUiJU050AfAiYAuyBKPeN4pEqVTcheYZf77cyaO0kF5AMCUKzHlKvfTySsaWglBesWouQ6rz/Al7uJufInJycnJycnJycnJycnJycnJycnJycnA4jXwdpghBxuB4SnLR2eC/8PR4p7zYWWUUfgxQNLYS/rkQxUC0WEruMYp2KpSXvS5E48sL7AqRk2CvhNb/0lS8mJkMuIGUEb12N+FStD2yM1M7YLGzfEHhH2xpYPwuQMndzkUQUz4V3H15zc2/f2vS1gISEahOQaMF9kUCkHeifUOTHgWuAaxFher1dRYQ6lb4VEOu8RmpjbA+sQf8IRYwhxL1lFnC80Wpmm9vTMfSlgIQS0zMQ3SBnOEuAI41WV7W7IZ1Av/aar9K+eoCdzjzEnT6HPh1BCljnDwe+iaQbHU9/dhiDiDXsNeAC4Ed55pMifS0g8HZy5wmIHrIbsDuSgG1CO9uVMouRBBK3IbVY5iEKeh58VUbfC0iMYN1aBzHzrodYuTakaObdIGxbBzH5dsrI8xqyDvIK8I/wcuE1Hylz8BIwL7dW1UcuIC0SRqA1EYFZCxl5xiIZT8aFvycgBoFRSPGaUeEVMxIspZjp5C3EwrSQ4YuDC4ksFOYjQPL8P/fGGg4HNsWXAAAAAElFTkSuQmCC",lu=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),Ul=e=>atob(e),mk=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:c})=>{const l={...t?{action:t}:{},taskInstanceId:n,taskVerified:c,timezone:r,commentId:o,...i?{comment:lu(i)}:{},commentType:s,hasAssets:a},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",e||""),await(await fetch(`${Ln}/manage-comment`,{method:"POST",headers:f,body:JSON.stringify(l)})).json()},Ub=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return b_;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return hh;case"csv":return o_;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return hh;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return l_;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return r_;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return f_;case"3g2":case"3gp":case"asf":case"avi":case"f4v":case"flv":case"h264":case"h265":case"m4v":case"mjpeg":case"mk3d":case"mks":case"mkv":case"mov":case"mp4":case"mxf":case"qt":case"rm":case"rmvb":case"rv":case"srt":case"vob":case"vp6":case"vp8":case"vp9":case"webm":case"wmv":case"xvid":return y_;case"aac":case"ac3":case"alac":case"flac":case"m3u":case"mid":case"mka":case"mp3":case"mpc":case"ogg":case"opus":case"ra":case"sdt":case"stap":case"wav":case"wma":return h_;case"adb":case"ads":case"ahk":case"applescript":case"as":case"au3":case"bat":case"bas":case"btm":case"class":case"cljs":case"cmd":case"coffee":case"c":case"cpp":case"cs":case"css":case"ino":case"egt":case"erb":case"go":case"hta":case"html":case"ibi":case"ici":case"ijs":case"itcl":case"jar":case"java":case"js":case"jsx":case"jsp":case"less":case"lua":case"m":case"mrc":case"nuc":case"nud":case"o":case"pde":case"php":case"pl":case"pm":case"ps1":case"ps1xml":case"psc1":case"psd1":case"py":case"pyc":case"pyo":case"rb":case"rdp":case"red":case"rs":case"sb2/sb3":case"scpt":case"scptd":case"sdl":case"sh":case"syjs":case"sypy":case"dcl":case"tns":case"vbs":return p_;case"7z":case"arc":case"arj":case"b6z":case"bz2":case"daa":case"dar":case"deb":case"gz":case"ice":case"mpkg":case"rar":case"tar":case"tbz":case"tgs":case"xapk":case"zim":case"zip":return d_;default:return w_}},hk=(e,t)=>{const n=URL.createObjectURL(e);return{sequenceOrder:t,originFile:e,name:e.name,url:n,type:e.type,mimeType:e.type,uploading:{value:0,title:"Uploading..."}}},Ka=e=>e.assetPath.includes("blob:")?e.assetPath:pk({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),pk=({assetPath:e,mimeType:t,fileName:n})=>e?`${Ln}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",xd=e=>e.startsWith("image/"),gk=async e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onerror=()=>n(new Error("Unable to convert file to base64")),r.onload=()=>{const o=r.result,i=btoa(new Uint8Array(o).reduce((s,a)=>s+String.fromCharCode(a),""));return t(i)}}),yk=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",bk=async(e,t,n,r)=>{var h;const o=e.name.split(".").pop(),i=yk(e,o),s=await gk(e),a=((h=e.name)==null?void 0:h.split("."))||[];a.pop();const c=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,l=s.length,f={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:c,fileSize:l,sequenceOrder:n},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",r||""),await(await fetch(`${Ln}/upload-comment-asset`,{method:"POST",headers:u,body:JSON.stringify(f)})).json()},lp=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${Ln}/comments/${e}`,{method:"GET",headers:n})).json()},No=e=>["comments",+e],vk=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=ir(),o={queryKey:No(e),queryFn:async()=>await lp({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Ys(o,r),s=c=>{r.prefetchQuery({...o,queryKey:No(c),queryFn:async()=>await lp({taskInstanceId:c.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},xk=(e,t,n,r)=>{const o=No(t),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},wk=(e,t,n)=>{const r=No(t),o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},Ak=(e,t,n)=>{const r=No(t),o=e.getQueryData(r);if(o){const i=o.taskComments.map(s=>s.commentId===n.commentId?n:s);e.setQueryData(r,{...o,taskComments:i})}},Ck=({playbookInstanceId:e})=>{const{queryClient:t}=ir(),n=ed({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,attachments:d,username:m,taskVerified:h}=o,g=await mk({username:m,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,taskVerified:h});return g.commentId&&u&&d&&await Promise.all(d.map(p=>bk(p.originFile,g.commentId,p.sequenceOrder,m))),g},onMutate:async o=>{var u;const{action:i,taskInstanceId:s}=o,a=["comments",s],c=`temp-${crypto.randomUUID()}`,l=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const f=t.getQueryData(a);return i==="delete"&&o.commentId&&wk(t,s,o.commentId),i==="add"&&xk(t,s,+e,{commentId:c,author:o.username,comment:lu(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((u=o.attachments)==null?void 0:u.map(d=>({assetId:l,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&Ak(t,s,{author:o.username,comment:lu(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:f,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(No(s.taskInstanceId),s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:No(s.taskInstanceId)}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function Ha(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const Wb="carousel",Kb="controller",_k="navigation",Ek="no-scroll",wd="portal",Sk="root",Hb="toolbar",fp="zoom",Wl="loading",Kl="error",Hl="complete",kk="placeholder",Tk=e=>`active-slide-${e}`,Nk="fullsize",Ad="flex_center",Ok="no_scroll",qb="no_scroll_padding",Cd="slide",Vb="slide_wrapper",Pk="slide_wrapper_interactive",eo="prev",to="next",up="swipe",Ri="close",Yb="onPointerDown",Qb="onPointerMove",Gb="onPointerUp",Zb="onPointerLeave",Jb="onPointerCancel",_d="onKeyDown",Mk="onKeyUp",Ed="onWheel",Ik="Escape",Lk="ArrowLeft",Rk="ArrowRight",Dk="button",fu="icon",Xb="contain",dp="cover",ev="Unknown action type",tv="yarl__";function Tn(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${tv}${e}`}function Dt(e){return`--${tv}${e}`}function ta(e,t){return`${e}${t?`_${t}`:""}`}function Sd(e){return t=>ta(e,t)}function Di(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function Fk(e,t,n){return Di(e,"{index} of {total}").replace(/\{index}/g,`${Pd(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function kd(...e){return()=>{e.forEach(t=>{t()})}}function lr(e,t,n){return()=>{const r=C.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function Td(){return typeof window<"u"}function Nd(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function Yi(e){return e.type===void 0||e.type==="image"}function Od(e,t){return e.imageFit===dp||e.imageFit!==Xb&&t===dp}function Hc(e){return typeof e=="string"?Number.parseInt(e,10):e}function lc(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Hc(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function jk(e,t){const n=lc(t),r=n.percent!==void 0?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function zk(){return(Td()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Pd(e,t){return t>0?(e%t+t)%t:0}function nv(e){return e.length>0}function rv(e,t){return e[Pd(t,e.length)]}function uu(e,t){return nv(e)?rv(e,t):void 0}function $k(e){return Yi(e)?e.src:void 0}function Bk(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(a=>a===t),s=C.isValidElement(n)?C.cloneElement(n,{key:t},null):n;if(i>=0){const a=[...r];return a.splice(i,1,s),{buttons:a,...o}}return{buttons:[s,...r],...o}}function Uk(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const Wk=Number(C.version.split(".")[0])>=19;function Kk(e){return{inert:Wk?e:e?"":void 0}}function Hk(e){e.scrollTop}const du={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Ri]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Xb,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function Br(e,t){return{name:e,component:t}}function nt(e,t){return{module:e,children:t}}function ov(e,t,n){return e.module.name===t?n(e):e.children?[nt(e.module,e.children.flatMap(r=>{var o;return(o=ov(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function ni(e,t,n){return e.flatMap(r=>{var o;return(o=ov(r,t,n))!==null&&o!==void 0?o:[]})}function qk(e,t=[],n=[]){let r=e;const o=m=>{const h=[...r];for(;h.length>0;){const g=h.pop();if((g==null?void 0:g.module.name)===m)return!0;g!=null&&g.children&&h.push(...g.children)}return!1},i=(m,h)=>{if(m===""){r=[nt(h,r)];return}r=ni(r,m,g=>[nt(h,[g])])},s=(m,h)=>{r=ni(r,m,g=>[nt(g.module,[nt(h,g.children)])])},a=(m,h,g)=>{r=ni(r,m,p=>{var y;return[nt(p.module,[...g?[nt(h)]:[],...(y=p.children)!==null&&y!==void 0?y:[],...g?[]:[nt(h)]])]})},c=(m,h,g)=>{r=ni(r,m,p=>[...g?[nt(h)]:[],p,...g?[]:[nt(h)]])},l=m=>{s(Kb,m)},f=(m,h)=>{r=ni(r,m,g=>[nt(h,g.children)])},u=m=>{r=ni(r,m,h=>h.children)},d=m=>{n.push(m)};return t.forEach(m=>{m({contains:o,addParent:i,append:s,addChild:a,addSibling:c,addModule:l,replace:f,remove:u,augment:d})}),{config:r,augmentation:m=>n.reduce((h,g)=>g(h),m)}}const iv=C.createContext(null),sv=lr("useA11yContext","A11yContext",iv);function Vk({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,c)=>{const l=f=>u=>{var d;u.currentTarget.contains(u.relatedTarget)||n(f),(d=f?a:c)===null||d===void 0||d(u)};return{onFocus:l(!0),onBlur:l(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(iv.Provider,{value:i},e)}const av=C.createContext(null),qc=lr("useDocument","DocumentContext",av);function Yk({nodeRef:e,children:t}){const n=C.useMemo(()=>{const r=i=>{var s;return((s=i||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:i=>{var s;return((s=r(i))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return C.createElement(av.Provider,{value:n},t)}const cv=C.createContext(null),Vc=lr("useEvents","EventsContext",cv);function Qk({children:e}){const[t]=C.useState({});C.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const n=C.useMemo(()=>{const r=(s,a)=>{var c;(c=t[s])===null||c===void 0||c.splice(0,t[s].length,...t[s].filter(l=>l!==a))};return{publish:(...[s,a])=>{var c;(c=t[s])===null||c===void 0||c.forEach(l=>l(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(cv.Provider,{value:n},e)}const lv=C.createContext(null),Xt=lr("useLightboxProps","LightboxPropsContext",lv);function Gk({children:e,...t}){return C.createElement(lv.Provider,{value:t},e)}const fv=C.createContext(null),Ur=lr("useLightboxState","LightboxStateContext",fv),uv=C.createContext(null),Zk=lr("useLightboxDispatch","LightboxDispatchContext",uv);function Jk(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Pd(o,n.length),s=uu(n,i),a=r||t.duration!==void 0?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:n,currentIndex:i,globalIndex:o,currentSlide:s,animation:a}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:uu(t.slides,t.index)}:e;default:throw new Error(ev)}}function Xk({slides:e,index:t,children:n}){const[r,o]=C.useReducer(Jk,{slides:e,currentIndex:t,globalIndex:t,currentSlide:uu(e,t)});C.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);const i=C.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return C.createElement(uv.Provider,{value:o},C.createElement(fv.Provider,{value:i},n))}const dv=C.createContext(null),Yc=lr("useTimeouts","TimeoutsContext",dv);function e3({children:e}){const[t]=C.useState([]);C.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const n=C.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const c=window.setTimeout(()=>{r(c),s()},a);return t.push(c),c},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(dv.Provider,{value:n},e)}const Md=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},c){const{styles:l,labels:f}=Xt(),u=Di(f,t);return C.createElement("button",{ref:c,type:"button",title:u,"aria-label":u,className:Tn(Se(Dk),n),onClick:i,style:{...s,...l.button},...a},o?o():C.createElement(r,{className:Se(fu),style:l.icon}))});function t3(e,t){const n=r=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},t);return n.displayName=e,n}function Wo(e,t){return t3(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const n3=Wo("Close",C.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),r3=Wo("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),o3=Wo("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),i3=Wo("Loading",C.createElement(C.Fragment,null,Array.from({length:8}).map((e,t,n)=>C.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),s3=Wo("Error",C.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Pn=Td()?C.useLayoutEffect:C.useEffect;function Id(){const[e,t]=C.useState(!1);return C.useEffect(()=>{var n,r;const o=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");t(o==null?void 0:o.matches);const i=s=>t(s.matches);return(r=o==null?void 0:o.addEventListener)===null||r===void 0||r.call(o,"change",i),()=>{var s;return(s=o==null?void 0:o.removeEventListener)===null||s===void 0?void 0:s.call(o,"change",i)}},[]),e}function a3(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Hc);s.length===6?(t=s[4],n=s[5]):s.length===16&&(t=s[12],n=s[13],r=s[14])}return{x:t,y:n,z:r}}function mp(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=Id();return Pn(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:c,duration:l,easing:f,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),a3(e.current))||{};if(c&&l){(i=r.current)===null||i===void 0||i.cancel(),r.current=void 0;try{r.current=(a=(s=e.current).animate)===null||a===void 0?void 0:a.call(s,c,{duration:l,easing:f})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,u==null||u()})}}n.current=void 0}),{prepareAnimation:i=>{n.current=i},isAnimationPlaying:()=>{var i;return((i=r.current)===null||i===void 0?void 0:i.playState)==="running"}}}function mv(){const e=C.useRef(null),t=C.useRef(void 0),[n,r]=C.useState();return{setContainerRef:C.useCallback(i=>{e.current=i,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(i){const a=window.getComputedStyle(i),c=l=>parseFloat(l)||0;r({width:Math.round(i.clientWidth-c(a.paddingLeft)-c(a.paddingRight)),height:Math.round(i.clientHeight-c(a.paddingTop)-c(a.paddingBottom))})}else r(void 0)};s(),i&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(i))},[]),containerRef:e,containerRect:n}}function qa(){const e=C.useRef(void 0),{setTimeout:t,clearTimeout:n}=Yc();return C.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function Le(e){const t=C.useRef(e);return Pn(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function hp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mu(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{hp(e,n),hp(t,n)},[e,t])}function c3(e,t=!1){const n=C.useRef(!1);Pn(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);const r=C.useCallback(()=>{n.current=!0},[]),o=C.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:o}}function Ld(){const[e,t]=C.useState(!1);return Pn(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function l3(){const[e]=C.useState({}),t=C.useCallback((o,i)=>{var s;(s=e[o])===null||s===void 0||s.forEach(a=>{i.isPropagationStopped()||a(i)})},[e]),n=C.useMemo(()=>({onPointerDown:o=>t(Yb,o),onPointerMove:o=>t(Qb,o),onPointerUp:o=>t(Gb,o),onPointerLeave:o=>t(Zb,o),onPointerCancel:o=>t(Jb,o),onKeyDown:o=>t(_d,o),onKeyUp:o=>t(Mk,o),onWheel:o=>t(Ed,o)}),[t]),r=C.useCallback((o,i)=>(e[o]||(e[o]=[]),e[o].unshift(i),()=>{const s=e[o];s&&s.splice(0,s.length,...s.filter(a=>a!==i))}),[e]);return{registerSensors:n,subscribeSensors:r}}function pp(e,t){const n=C.useRef(0),r=qa(),o=Le((...i)=>{n.current=Date.now(),e(i)});return C.useCallback((...i)=>{r(()=>{o(i)},t-(Date.now()-n.current))},[t,o,r])}const ql=Sd("slide"),Vl=Sd("slide_image");function fc({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:c,style:l}){var f,u,d,m,h,g,p,y;const[b,x]=C.useState(Wl),{publish:w}=Vc(),{setTimeout:A}=Yc(),E=C.useRef(null);C.useEffect(()=>{t===0&&w(Tk(b))},[t,b,w]);const S=Le(K=>{("decode"in K?K.decode():Promise.resolve()).catch(()=>{}).then(()=>{K.parentNode&&(x(Hl),A(()=>{a==null||a(K)},0))})}),_=C.useCallback(K=>{E.current=K,K!=null&&K.complete&&S(K)},[S]),N=C.useCallback(K=>{S(K.currentTarget)},[S]),P=Le(()=>{x(Kl),c==null||c()}),I=Od(e,o),W=(K,U)=>Number.isFinite(K)?K:U,j=W(Math.max(...((u=(f=e.srcSet)===null||f===void 0?void 0:f.map(K=>K.width))!==null&&u!==void 0?u:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((d=E.current)===null||d===void 0?void 0:d.naturalWidth)||0),z=W(Math.max(...((h=(m=e.srcSet)===null||m===void 0?void 0:m.map(K=>K.height))!==null&&h!==void 0?h:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((g=E.current)===null||g===void 0?void 0:g.naturalHeight)||0),Y=j&&z?{maxWidth:`min(${j}px, 100%)`,maxHeight:`min(${z}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},Q=(p=e.srcSet)===null||p===void 0?void 0:p.sort((K,U)=>K.width-U.width).map(K=>`${K.src} ${K.width}w`).join(", "),oe=()=>r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,M=Q&&r&&Td()?`${Math.round(Math.min(oe(),r.width))}px`:void 0,{style:re,className:L,...F}=i||{};return C.createElement(C.Fragment,null,C.createElement("img",{ref:_,onLoad:N,onError:P,onClick:s,draggable:!1,className:Tn(Se(Vl()),I&&Se(Vl("cover")),b!==Hl&&Se(Vl("loading")),L),style:{...Y,...l,...re},...F,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:Q,src:e.src}),b!==Hl&&C.createElement("div",{className:Se(ql(kk))},b===Wl&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(i3,{className:Tn(Se(fu),Se(ql(Wl)))})),b===Kl&&(n!=null&&n.iconError?n.iconError():C.createElement(s3,{className:Tn(Se(fu),Se(ql(Kl)))}))))}const f3=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:c}=sv();return C.createElement(Yk,{nodeRef:a},C.createElement("div",{ref:mu(s,a),className:Tn(Se("root"),t),...c(r,o),...i},n))});var yt;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(yt||(yt={}));function hv(e,t,n,r,o){C.useEffect(()=>o?()=>{}:kd(e(Yb,t),e(Qb,n),e(Gb,r),e(Zb,r),e(Jb,r)),[e,t,n,r,o])}var rn;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(rn||(rn={}));const Yl=30;function u3({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,c,l,f,u,d,m,h,g,p){const y=C.useRef(0),b=C.useRef([]),x=C.useRef(void 0),w=C.useRef(0),A=C.useRef(rn.NONE),E=C.useCallback(j=>{x.current===j.pointerId&&(x.current=void 0,A.current=rn.NONE);const z=b.current;z.splice(0,z.length,...z.filter(Y=>Y.pointerId!==j.pointerId))},[]),S=C.useCallback(j=>{E(j),j.persist(),b.current.push(j)},[E]),_=C.useCallback(j=>b.current.find(({pointerId:z})=>j.pointerId===z),[]),N=Le(j=>{S(j)}),P=(j,z)=>u&&j>z||f&&j<-z,I=Le(j=>{const z=_(j);if(z)if(x.current===j.pointerId){const Y=Date.now()-w.current,Q=y.current;A.current===rn.SWIPE?Math.abs(Q)>.3*o||Math.abs(Q)>5&&Y<i?c(Q,Y):l(Q):A.current===rn.PULL&&(P(Q,2*Yl)?h(Q,Y):g(Q)),y.current=0,A.current=rn.NONE}else{const{target:Y}=j;t&&Y instanceof HTMLElement&&Y===z.target&&(Y.classList.contains(Se(Cd))||Y.classList.contains(Se(Vb)))&&p()}E(j)}),W=Le(j=>{const z=_(j);if(z){const Y=x.current===j.pointerId;if(j.buttons===0){Y&&y.current!==0?I(j):E(z);return}const Q=j.clientX-z.clientX,oe=j.clientY-z.clientY;if(x.current===void 0){const M=re=>{S(j),x.current=j.pointerId,w.current=Date.now(),A.current=re};Math.abs(Q)>Math.abs(oe)&&Math.abs(Q)>Yl&&r(Q)?e||(M(rn.SWIPE),s()):Math.abs(oe)>Math.abs(Q)&&P(oe,Yl)&&(M(rn.PULL),d())}else Y&&(A.current===rn.SWIPE?(y.current=Q,a(Q)):A.current===rn.PULL&&(y.current=oe,m(oe)))}});hv(n,N,W,I)}function d3({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=C.useRef(null),r=Le(o=>{const i=Math.abs(o.deltaX)>Math.abs(o.deltaY);(i&&e||!i&&t||o.ctrlKey)&&o.preventDefault()});return C.useCallback(o=>{var i;o?o.addEventListener("wheel",r,{passive:!1}):(i=n.current)===null||i===void 0||i.removeEventListener("wheel",r),n.current=o},[r])}function m3(e,t,n,r,o,i,s,a,c){const l=C.useRef(0),f=C.useRef(0),u=C.useRef(void 0),d=C.useRef(void 0),m=C.useRef(0),h=C.useRef(void 0),g=C.useRef(0),{setTimeout:p,clearTimeout:y}=Yc(),b=C.useCallback(()=>{u.current&&(y(u.current),u.current=void 0)},[y]),x=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),w=Le(()=>{e!==yt.SWIPE&&(l.current=0,g.current=0,b(),x())});C.useEffect(w,[e,w]);const A=Le(S=>{d.current=void 0,l.current===S&&c(l.current)}),E=Le(S=>{if(S.ctrlKey||Math.abs(S.deltaY)>Math.abs(S.deltaX))return;const _=N=>{m.current=N,y(h.current),h.current=N>0?p(()=>{m.current=0,h.current=void 0},300):void 0};if(e===yt.NONE){if(Math.abs(S.deltaX)<=1.2*Math.abs(m.current)){_(S.deltaX);return}if(!n(-S.deltaX))return;if(f.current+=S.deltaX,b(),Math.abs(f.current)>30)f.current=0,_(0),g.current=Date.now(),i();else{const N=f.current;u.current=p(()=>{u.current=void 0,N===f.current&&(f.current=0)},o)}}else if(e===yt.SWIPE){let N=l.current-S.deltaX;if(N=Math.min(Math.abs(N),r)*Math.sign(N),l.current=N,s(N),x(),Math.abs(N)>.2*r){_(S.deltaX),a(N,Date.now()-g.current);return}d.current=p(()=>A(N),2*o)}else _(S.deltaX)});C.useEffect(()=>t(Ed,E),[t,E])}const gp=Sd("container"),pv=C.createContext(null),fr=lr("useController","ControllerContext",pv);function h3({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:c}=t,{closeOnPullUp:l,closeOnPullDown:f,preventDefaultWheelX:u,preventDefaultWheelY:d}=i,[m,h]=C.useState(),g=Ur(),p=Zk(),[y,b]=C.useState(yt.NONE),x=C.useRef(0),w=C.useRef(0),A=C.useRef(1),{registerSensors:E,subscribeSensors:S}=l3(),{subscribe:_,publish:N}=Vc(),P=qa(),I=qa(),W=qa(),{containerRef:j,setContainerRef:z,containerRect:Y}=mv(),Q=mu(d3({preventDefaultWheelX:u,preventDefaultWheelY:d}),z),oe=C.useRef(null),M=mu(oe,void 0),{getOwnerDocument:re}=qc(),L=Ld(),F=se=>(L?-1:1)*(typeof se=="number"?se:1),K=Le(()=>{var se;return(se=j.current)===null||se===void 0?void 0:se.focus()}),U=Le(()=>t),J=Le(()=>g),V=C.useCallback(se=>N(eo,se),[N]),ee=C.useCallback(se=>N(to,se),[N]),te=C.useCallback(()=>N(Ri),[N]),he=se=>!(r.finite&&(F(se)>0&&g.currentIndex===0||F(se)<0&&g.currentIndex===g.slides.length-1)),ye=se=>{var De;x.current=se,(De=j.current)===null||De===void 0||De.style.setProperty(Dt("swipe_offset"),`${Math.round(se)}px`)},pe=se=>{var De,ct;w.current=se,A.current=(()=>{const Ht=f&&se>0?se:l&&se<0?-se:0;return Math.min(Math.max(Nd(1-Ht/60*(1-.5),2),.5),1)})(),(De=j.current)===null||De===void 0||De.style.setProperty(Dt("pull_offset"),`${Math.round(se)}px`),(ct=j.current)===null||ct===void 0||ct.style.setProperty(Dt("pull_opacity"),`${A.current}`)},{prepareAnimation:ze}=mp(oe,(se,De,ct)=>{if(oe.current&&Y)return{keyframes:[{transform:`translate(0, ${se.rect.y-De.y+ct.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),G=(se,De)=>{if(l||f){pe(se);let ct=0;oe.current&&(ct=o.fade*(De?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:A.current,duration:ct})),W(()=>{pe(0),b(yt.NONE)},ct),b(yt.ANIMATION),De||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=mp(oe,(se,De,ct)=>{var Mt;if(oe.current&&Y&&(!((Mt=g.animation)===null||Mt===void 0)&&Mt.duration)){const et=lc(r.spacing),Ht=(et.percent?et.percent*Y.width/100:et.pixel)||0;return{keyframes:[{transform:`translate(${F(g.globalIndex-se.index)*(Y.width+Ht)+se.rect.x-De.x+ct.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),pt=Le(se=>{var De,ct;const Mt=se.offset||0,et=Mt?o.swipe:(De=o.navigation)!==null&&De!==void 0?De:o.swipe,Ht=!Mt&&!zt()?o.easing.navigation:o.easing.swipe;let{direction:At}=se;const dr=(ct=se.count)!==null&&ct!==void 0?ct:1;let Go=yt.ANIMATION,$t=et*dr;if(!At){const mr=Y==null?void 0:Y.width,Yr=se.duration||0,hr=mr?et/mr*Math.abs(Mt):et;dr!==0?(Yr<hr?$t=$t/hr*Math.max(Yr,hr/5):mr&&($t=et/mr*(mr-Math.abs(Mt))),At=F(Mt)>0?eo:to):$t=et/2}let Vr=0;At===eo?he(F(1))?Vr=-dr:(Go=yt.NONE,$t=et):At===to&&(he(F(-1))?Vr=dr:(Go=yt.NONE,$t=et)),$t=Math.round($t),I(()=>{ye(0),b(yt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:g.globalIndex}),b(Go),N(up,{type:"swipe",increment:Vr,duration:$t,easing:Ht})});C.useEffect(()=>{var se,De;!((se=g.animation)===null||se===void 0)&&se.increment&&(!((De=g.animation)===null||De===void 0)&&De.duration)&&P(()=>p({type:"swipe",increment:0}),g.animation.duration)},[g.animation,p,P]);const Yo=[S,he,(Y==null?void 0:Y.width)||0,o.swipe,()=>b(yt.SWIPE),se=>ye(se),(se,De)=>pt({offset:se,duration:De,count:1}),se=>pt({offset:se,count:0})],os=[()=>{f&&b(yt.PULL)},se=>pe(se),se=>G(se),se=>G(se,!0)];u3(i,...Yo,l,f,...os,te),m3(y,...Yo);const Rn=Le(()=>{i.focus&&re().querySelector(`.${Se(wd)} .${Se(gp())}`)&&K()});C.useEffect(Rn,[Rn]);const qr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:g.currentIndex})});C.useEffect(qr,[g.globalIndex,qr]),C.useEffect(()=>kd(_(eo,se=>pt({direction:eo,...se})),_(to,se=>pt({direction:to,...se})),_(up,se=>p(se))),[_,pt,p]);const Qo=C.useMemo(()=>({prev:V,next:ee,close:te,focus:K,slideRect:Y?jk(Y,r.padding):{width:0,height:0},containerRect:Y||{width:0,height:0},subscribeSensors:S,containerRef:j,setCarouselRef:M,toolbarWidth:m,setToolbarWidth:h}),[V,ee,te,K,S,Y,j,M,m,h,r.padding]);return C.useImperativeHandle(i.ref,()=>({prev:V,next:ee,close:te,focus:K,getLightboxProps:U,getLightboxState:J}),[V,ee,te,K,U,J]),C.createElement("div",{ref:Q,className:Tn(Se(gp()),Se(Ad)),style:{...y===yt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(x.current)}px`}:null,...y===yt.PULL?{[Dt("pull_offset")]:`${Math.round(w.current)}px`,[Dt("pull_opacity")]:`${A.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,...E},Y&&C.createElement(pv.Provider,{value:Qo},e,(n=c.controls)===null||n===void 0?void 0:n.call(c)))}const p3=Br(Kb,h3);function Zr(e){return ta(Wb,e)}function yp(e){return ta(Cd,e)}function g3({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=Ur(),{slideRect:i,focus:s}=fr(),{render:a,carousel:{imageFit:c,imageProps:l},on:{click:f},styles:{slide:u},labels:d}=Xt(),{getOwnerDocument:m}=qc(),h=t!==0;C.useEffect(()=>{var p;h&&(!((p=n.current)===null||p===void 0)&&p.contains(m().activeElement))&&s()},[h,s,m]);const g=()=>{var p,y,b,x;let w=(p=a.slide)===null||p===void 0?void 0:p.call(a,{slide:e,offset:t,rect:i});return!w&&Yi(e)&&(w=C.createElement(fc,{slide:e,offset:t,render:a,rect:i,imageFit:c,imageProps:l,onClick:h?void 0:()=>f==null?void 0:f({index:r})})),w?C.createElement(C.Fragment,null,(y=a.slideHeader)===null||y===void 0?void 0:y.call(a,{slide:e}),((b=a.slideContainer)!==null&&b!==void 0?b:(({children:A})=>A))({slide:e,children:w}),(x=a.slideFooter)===null||x===void 0?void 0:x.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:Tn(Se(yp()),!h&&Se(yp("current")),Se(Ad)),...Kk(h),style:u,role:"group","aria-roledescription":Di(d,"Slide"),"aria-label":Fk(d,o,r+t)},g())}function y3(){const e=Xt().styles.slide;return C.createElement("div",{className:Se(Cd),style:e})}function b3({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=Ur(),{setCarouselRef:i}=fr(),{autoPlaying:s,focusWithin:a}=sv(),c=lc(e.spacing),l=lc(e.padding),f=Uk(e,n,1),u=[];if(nv(n))for(let d=r-f;d<=r+f;d+=1){const m=rv(n,d),h=o-r+d,g=e.finite&&(d<0||d>n.length-1);u.push(g?{key:h}:{key:[`${h}`,$k(m)].filter(Boolean).join("|"),offset:d-r,slide:m})}return C.createElement("div",{ref:i,className:Tn(Se(Zr()),u.length>0&&Se(Zr("with_slides"))),style:{[`${Dt(Zr("slides_count"))}`]:u.length,[`${Dt(Zr("spacing_px"))}`]:c.pixel||0,[`${Dt(Zr("spacing_percent"))}`]:c.percent||0,[`${Dt(Zr("padding_px"))}`]:l.pixel||0,[`${Dt(Zr("padding_percent"))}`]:l.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Di(t,"Carousel"),"aria-label":Di(t,"Photo gallery")},u.map(({key:d,slide:m,offset:h})=>m?C.createElement(g3,{key:d,slide:m,offset:h}):C.createElement(y3,{key:d})))}const v3=Br(Wb,b3);function gv(){const{carousel:e}=Xt(),{slides:t,currentIndex:n}=Ur(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function x3(e){var t;const n=Ld(),{publish:r}=Vc(),{animation:o}=Xt(),{prevDisabled:i,nextDisabled:s}=gv(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,c=pp(()=>r(eo),a),l=pp(()=>r(to),a),f=Le(u=>{switch(u.key){case Ik:r(Ri);break;case Lk:(n?s:i)||(n?l:c)();break;case Rk:(n?i:s)||(n?c:l)();break}});C.useEffect(()=>e(_d,f),[e,f])}function bp({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return C.createElement(Md,{label:e,icon:t,renderIcon:n,className:Se(`navigation_${r}`),disabled:i,onClick:o,style:s,...c3(fr().focus,i)})}function w3({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=fr(),{prevDisabled:c,nextDisabled:l}=gv();return x3(a),C.createElement(C.Fragment,null,e?e():C.createElement(bp,{label:"Previous",action:eo,icon:r3,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:i}),t?t():C.createElement(bp,{label:"Next",action:to,icon:o3,renderIcon:r,style:o.navigationNext,disabled:l,onClick:s}))}const A3=Br(_k,w3),vp=Se(Ok),C3=Se(qb);function _3(e){return"style"in e}function xp(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,s=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(Hc(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function E3({noScroll:{disabled:e},children:t}){const n=Ld(),{getOwnerDocument:r,getOwnerWindow:o}=qc();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:c}=r(),l=Math.round(s.innerWidth-c.clientWidth);if(l>0){i.push(xp(a,l,n));const f=a.getElementsByTagName("*");for(let u=0;u<f.length;u+=1){const d=f[u];_3(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(C3)&&i.push(xp(d,l,n))}}return a.classList.add(vp),()=>{a.classList.remove(vp),i.forEach(f=>f())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const S3=Br(Ek,E3);function wp(e){return ta(wd,e)}function Ap(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function k3({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[c,l]=C.useState(!1),[f,u]=C.useState(!1),d=C.useRef([]),m=C.useRef(null),{setTimeout:h}=Yc(),{subscribe:g}=Vc(),y=Id()?0:t.fade;C.useEffect(()=>(l(!0),()=>{l(!1),u(!1)}),[]);const b=Le(()=>{d.current.forEach(E=>E()),d.current=[]}),x=Le(()=>{var E;u(!1),b(),(E=o.exiting)===null||E===void 0||E.call(o),h(()=>{var S;(S=o.exited)===null||S===void 0||S.call(o),s()},y)});C.useEffect(()=>g(Ri,x),[g,x]);const w=Le(E=>{var S,_,N;Hk(E),u(!0),(S=o.entering)===null||S===void 0||S.call(o);const P=(N=(_=E.parentNode)===null||_===void 0?void 0:_.children)!==null&&N!==void 0?N:[];for(let I=0;I<P.length;I+=1){const W=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf(W.tagName)===-1&&W!==E&&(d.current.push(Ap(W,"inert","")),d.current.push(Ap(W,"aria-hidden","true")))}d.current.push(()=>{var I,W;(W=(I=m.current)===null||I===void 0?void 0:I.focus)===null||W===void 0||W.call(I)}),h(()=>{var I;(I=o.entered)===null||I===void 0||I.call(o)},y)}),A=C.useCallback(E=>{E?w(E):b()},[w,b]);return c?Wt.createPortal(C.createElement(f3,{ref:A,className:Tn(r,Se(wp()),Se(qb),f&&Se(wp("open"))),"aria-modal":!0,role:"dialog","aria-label":Di(a,"Lightbox"),style:{...t.fade!==du.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==du.animation.easing.fade?{[Dt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:E=>{m.current||(m.current=E.relatedTarget)}},e),i.root||document.body):null}const T3=Br(wd,k3);function N3({children:e}){return C.createElement(C.Fragment,null,e)}const O3=Br(Sk,N3);function P3(e){return ta(Hb,e)}function M3({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=fr(),{setContainerRef:s,containerRect:a}=mv();Pn(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const c=()=>t?t():C.createElement(Md,{key:Ri,label:"Close",icon:n3,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(P3())},e==null?void 0:e.map(l=>l===Ri?c():l))}const I3=Br(Hb,M3);function yv(e,t){var n;return C.createElement(e.module.component,{key:e.module.name,...t},(n=e.children)===null||n===void 0?void 0:n.map(r=>yv(r,t)))}function L3(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function R3({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:c,index:l,...f}){const{animation:u,carousel:d,render:m,toolbar:h,controller:g,noScroll:p,on:y,slides:b,index:x,plugins:w,...A}=du,{config:E,augmentation:S}=qk([nt(T3,[nt(S3,[nt(p3,[nt(v3),nt(I3),nt(A3)])])])],a||w),_=S({animation:L3(u,t),carousel:{...d,...e},render:{...m,...n},toolbar:{...h,...r},controller:{...g,...o},noScroll:{...p,...i},on:{...y,...s},...A,...f});return _.open?C.createElement(Gk,{..._},C.createElement(Xk,{slides:c||b,index:Hc(l||x)},C.createElement(e3,null,C.createElement(Qk,null,C.createElement(Vk,null,yv(nt(O3,E),_)))))):null}const D3={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function F3(e){return Math.min(Math.max(e,Number.EPSILON),1)}function bv(e){const{minZoom:t,...n}={...D3,...e};return{minZoom:F3(t),...n}}function j3(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Xt().animation,a=Id(),c=Le(()=>{var l,f,u;if((l=o.current)===null||l===void 0||l.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(u=(f=r.current).animate)===null||u===void 0?void 0:u.call(f,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:a?0:s??500,easing:o.current?"ease-out":"ease-in-out"})}catch(d){console.error(d)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return Pn(c,[e,t,n,c]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function z3(e,t){const{on:n}=Xt(),r=Le(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});C.useEffect(r,[e,r])}function Qc(){const{zoom:e}=Xt();return bv(e)}function $3(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=Ur(),{imageFit:a}=Xt().carousel,{maxZoomPixelRatio:c}=Qc();if(e&&s){const f={...s,...t};if(Yi(f)){const u=Od(f,a),d=Math.max(...(((n=f.srcSet)===null||n===void 0?void 0:n.map(h=>h.width))||[]).concat(f.width?[f.width]:[])),m=Math.max(...(((r=f.srcSet)===null||r===void 0?void 0:r.map(h=>h.height))||[]).concat(f.height?[f.height]:[]));d>0&&m>0&&e.width>0&&e.height>0&&(i=u?{width:Math.round(Math.min(d,e.width/e.height*m)),height:Math.round(Math.min(m,e.height/e.width*d))}:{width:d,height:m},i={width:i.width*c,height:i.height*c},o=u?{width:Math.min(e.width,i.width,d),height:Math.min(e.height,i.height,m)}:{width:Math.round(Math.min(e.width,e.height/m*d,d)),height:Math.round(Math.min(e.height,e.width/d*m,m))})}}const l=o.width?Math.max(Nd(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:l}}function Cp(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function _p(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function B3(e,t,n,r,o,i,s,a,c){const l=C.useRef([]),f=C.useRef(0),u=C.useRef(void 0),{globalIndex:d}=Ur(),{getOwnerWindow:m}=qc(),{containerRef:h,subscribeSensors:g}=fr(),{keyboardMoveDistance:p,zoomInMultiplier:y,wheelZoomDistanceFactor:b,scrollToZoom:x,doubleTapDelay:w,doubleClickDelay:A,doubleClickMaxStops:E,pinchZoomDistanceFactor:S,pinchZoomV4:_}=Qc(),N=C.useCallback(M=>{if(h.current){const{pageX:re,pageY:L}=M,{scrollX:F,scrollY:K}=m(),{left:U,top:J,width:V,height:ee}=h.current.getBoundingClientRect();return[re-U-F-V/2,L-J-K-ee/2]}return[]},[h,m]),P=Le(M=>{const{key:re,metaKey:L,ctrlKey:F}=M,K=L||F,U=()=>{M.preventDefault(),M.stopPropagation()};if(e>1){const J=(V,ee)=>{U(),a(V,ee)};re==="ArrowDown"?J(0,p):re==="ArrowUp"?J(0,-p):re==="ArrowLeft"?J(-p,0):re==="ArrowRight"&&J(p,0)}re==="+"||K&&re==="="?(U(),o()):re==="-"||K&&re==="_"?(U(),i()):K&&re==="0"&&(U(),s(1))}),I=Le(M=>{if((M.ctrlKey||x)&&Math.abs(M.deltaY)>Math.abs(M.deltaX)){M.stopPropagation(),s(_p(e,-M.deltaY,b),!0,...N(M));return}e>1&&(M.stopPropagation(),x||a(M.deltaX,M.deltaY))}),W=C.useCallback(M=>{const re=l.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),j=C.useCallback(M=>{W(M),M.persist(),l.current.push(M)},[W]),z=Le(M=>{var re;const L=l.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=c==null?void 0:c.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:F}=M;if(L.length===0&&F-f.current<(M.pointerType==="touch"?w:A)){f.current=0;const K=e>=1?e!==n?e*Math.max(n**(1/E),y):1:e!==t?e/Math.max(t**(-1/E),y):1;s(K,!1,...N(M))}else f.current=F;if(j(M),L.length===2){const K=Cp(L[0],L[1]);u.current={previousDistance:K,initialDistance:Math.max(K,1),initialZoom:e}}}),Y=Le(M=>{const re=l.current,L=re.find(F=>F.pointerId===M.pointerId);if(re.length===2&&u.current){M.stopPropagation(),j(M);const F=Cp(re[0],re[1]),K=_?u.current.initialZoom/u.current.initialDistance*F:_p(e,F-u.current.previousDistance,S);s(K,!0,...re.map(U=>N(U)).reduce((U,J)=>J.map((V,ee)=>U[ee]+V/2))),u.current.previousDistance=F;return}e>1&&(M.stopPropagation(),L&&(re.length===1&&a((L.clientX-M.clientX)/e,(L.clientY-M.clientY)/e),j(M)))}),Q=C.useCallback(M=>{const re=l.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(u.current=void 0),W(M)},[W]),oe=C.useCallback(()=>{const M=l.current;M.splice(0,M.length),f.current=0,u.current=void 0},[]);hv(g,z,Y,Q,r),C.useEffect(oe,[d,oe]),C.useEffect(()=>r?()=>{}:kd(oe,g(_d,P),g(Ed,I)),[r,g,oe,P,I])}function U3(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,c]=C.useState(0),l=j3(r,i,a,n),{currentSlide:f,globalIndex:u}=Ur(),{containerRect:d,slideRect:m}=fr(),{minZoom:h,zoomInMultiplier:g}=Qc(),p=f&&Yi(f)?f.src:void 0,y=!p||!(n!=null&&n.current);Pn(()=>{o(1),s(0),c(0)},[u,p]);const b=C.useCallback((S,_,N)=>{const P=N||r,I=i-(S||0),W=a-(_||0),j=(e.width*P-m.width)/2/P,z=(e.height*P-m.height)/2/P;s(Math.min(Math.abs(I),Math.max(j,0))*Math.sign(I)),c(Math.min(Math.abs(W),Math.max(z,0))*Math.sign(W))},[r,i,a,m,e.width,e.height]),x=C.useCallback((S,_,N,P)=>{const I=Nd(S+.01<t?S-.01>h?S:h:t,5);_||l(),b(N?N*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,h,t,b,l]),w=Le(()=>{r>1&&(r>t&&x(t,!0),b())});Pn(w,[d.width,d.height,w]);const A=C.useCallback(()=>{const S=r*g;x(r<1&&S>1?1:S)},[r,g,x]),E=C.useCallback(()=>{const S=r/g;x(r>1&&S<1?1:S)},[r,g,x]);return{zoom:r,offsetX:i,offsetY:a,disabled:y,changeOffsets:b,changeZoom:x,zoomIn:A,zoomOut:E}}const vv=C.createContext(null),Rd=lr("useZoom","ZoomControllerContext",vv);function W3({children:e}){const[t,n]=C.useState(),{slideRect:r}=fr(),{ref:o,minZoom:i}=Qc(),{imageRect:s,maxZoom:a}=$3(r,t==null?void 0:t.imageDimensions),{zoom:c,offsetX:l,offsetY:f,disabled:u,changeZoom:d,changeOffsets:m,zoomIn:h,zoomOut:g}=U3(s,a,t==null?void 0:t.zoomWrapperRef);z3(c,u),B3(c,i,a,u,h,g,d,m,t==null?void 0:t.zoomWrapperRef);const p=C.useMemo(()=>({zoom:c,minZoom:i,maxZoom:a,offsetX:l,offsetY:f,disabled:u,zoomIn:h,zoomOut:g,changeZoom:d}),[c,i,a,l,f,u,h,g,d]);C.useImperativeHandle(o,()=>p,[p]);const y=C.useMemo(()=>({...p,setZoomWrapper:n}),[p,n]);return C.createElement(vv.Provider,{value:y},e)}const K3=Wo("ZoomIn",C.createElement(C.Fragment,null,C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),C.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),H3=Wo("ZoomOut",C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),Ep=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:c,zoomIn:l,zoomOut:f,disabled:u}=Rd(),{render:d}=Xt(),m=u||(t?s>=c:s<=a);return C.useEffect(()=>{m&&o.current&&i.current&&n(),m||(o.current=!0)},[m,n]),C.createElement(Md,{ref:r,disabled:m,label:t?"Zoom in":"Zoom out",icon:t?K3:H3,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?l:f,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function q3(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=fr(),r=C.useCallback(s=>{var a,c;!((a=s.current)===null||a===void 0)&&a.disabled?n():(c=s.current)===null||c===void 0||c.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(Ep,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(Ep,{ref:t,onLoseFocus:o}))}function V3(){const{render:e}=Xt(),t=Rd();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(q3,null)}function Y3(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function Q3({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(ev)}}function G3(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(Q3,{}),{slide:s,rect:a,imageFit:c,render:l,interactive:f}=e,u=s.srcSet.sort((A,E)=>A.width-E.width),d=(t=s.width)!==null&&t!==void 0?t:u[u.length-1].width,m=(n=s.height)!==null&&n!==void 0?n:u[u.length-1].height,h=Od(s,c),g=Math.max(...u.map(A=>A.width)),p=Math.min((h?Math.max:Math.min)(a.width,d*(a.height/m)),g),y=zk(),b=Le(()=>{var A;const E=(A=u.find(S=>S.width>=p*y))!==null&&A!==void 0?A:u[u.length-1];(!r||u.findIndex(S=>S.src===r)<u.findIndex(S=>S===E))&&i({type:"fetch",source:E.src})});Pn(b,[a.width,a.height,y,b]);const x=Le(A=>i({type:"done",source:A})),w={WebkitTransform:f?"initial":"translateZ(0)"};return h||Object.assign(w,a.width/a.height<d/m?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(fc,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...w},onLoad:()=>x(o),render:{...l,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(fc,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:w}))}function Z3({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:c,maxZoom:l,offsetX:f,offsetY:u,setZoomWrapper:d}=Rd(),m=c>1,{carousel:h,on:g}=Xt(),{currentIndex:p}=Ur();Pn(()=>n===0?(d({zoomWrapperRef:a,imageDimensions:i}),()=>d(void 0)):()=>{},[n,i,d]);let y=(o=e.slide)===null||o===void 0?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:c,maxZoom:l});if(!y&&Yi(t)){const b={slide:t,offset:n,rect:r,render:e,imageFit:h.imageFit,imageProps:h.imageProps,onClick:n===0?()=>{var x;return(x=g.click)===null||x===void 0?void 0:x.call(g,{index:p})}:void 0};y=Y3(t)?C.createElement(G3,{...b,slide:t,interactive:m,rect:n===0?{width:r.width*c,height:r.height*c}:r}):C.createElement(fc,{onLoad:x=>s({width:x.naturalWidth,height:x.naturalHeight}),...b})}return y?C.createElement("div",{ref:a,className:Tn(Se(Nk),Se(Ad),Se(Vb),m&&Se(Pk)),style:n===0?{transform:`scale(${c}) translateX(${f}px) translateY(${u}px)`}:void 0},y):null}const J3=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=bv(n);return{zoom:a,toolbar:Bk(r,fp,C.createElement(V3,null)),render:{...o,slide:c=>{var l;return Yi(c.slide)?C.createElement(Z3,{render:o,...c}):(l=o.slide)===null||l===void 0?void 0:l.call(o,c)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t(Br(fp,W3))},xv="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgMDAwMDAwMDAwMBAQEBAQEBAQEBAQICAQICAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA//CABEIAZABkAMBEQACEQEDEQH/xAAdAAEAAgIDAQEAAAAAAAAAAAAAAQcGCAIDBQQK/9oACAEBAAAAAP29AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4dNV5jnPJLHuX1AAAAAAAp7Xb50ofbsraAAAAAABS2usgGz1qAAAAAAYjp7xEwTH0bme8AAAAADVqsgEoXNsYAAAAAHVov1AA9bdwAAAAAMX00kTAHXvN6AAAAAAw/T0ADhu964AAAAA87RznACYd29PMAAAAANOMUACbB2wAAAAABUGtiUCYRtZY4AAAAAOOpmBAlC0doQAAAAAHwaqYOAsjaL6AAAAAADrpOlfGmeGQXjcUgAAAAAA4YpjfLJ8okAAAAAAAAAAAAAAefUdfY/1Z9Z2a+jHl4RV+E9+R2JbP1gAAAAU9r18kB197p5iY9LZC0AAAAAoOiRJBMJQGxlzAAAAFZasyAAA5bb5yAAABx0vx8AACUZrt6AAABgGpcgATAJiNzcmAAABRNCQAAAGyVwAAAA1zpmYJgJgmBMF+3qAAADXCnBMEwmEwAX3e4AAANcKdgAACUL7vcAAAFB0SBMAAJjYy5gAAAY9pz8hMBMJhMJiY9Tcv0wAAAMZpbyISIkAHvXX7oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQQDAgX/2gAIAQIQAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB679vTxyzwAAAAAAO+uorzk4gAAAAAGjUKlTHxAAAAAA976IqWfP8gAAAAA2dwRYubKAAAAAD6SyksL5+cAAAAAHv6EsKio+dAAAAAB03WUEsX53kAAAAAX6JZZSD5oAAAAAN/SUEscsQAAAAAO+xLKQuHkAAAAABt7ADhjAAAAAAXb0spHLHAAAAAABo0e0vjNwAAAAAAAe/bx4AAAAAAAAAAAAAAC9+vq8uPOL17dJ548YAAAAB31epZSFQvnJxAAAADTpLCpUKi4+AAAAB22iKlhYsqMPMAAAB9D2lioqFErlhAAAA67kqWKlSpYV8/wAAAAA06VCWVKRUpj4AAAA16JSWUlhUFmbMAAADXolSyywWKlJmzAAAA16BFSyyiKlZcwAAANOmhFlhQIuTOAAAD19AsssKgqF8/PgAAAHvR6AAAeM/kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQMEAv/aAAgBAxAAAADiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZZ+b6960AAAAAAMsYsVvoAAAAAAZYVCo6NAAAAAAPPNCyyxeqgAAAAA587LFlS6bgAAAAA47LAFvUAAAAAHnlCossdgAAAAAeeUsFQddAAAAADjWLFip2AAAAAA5fIWWWNOgAAAAAGfOsFljp9gAAAAAc3iwomnQAAAAAAc3gBp0AAAAAABjlLF21AAAAAAAefL16AAAAAAAAAAAAAABlnHvT1U8ePD171AAAAAZ4IALLK30AAAADHFZRFgLG+oAAABnz0ikVKSk6fYAAADl81FIFCVPXUAAAB45lQFlgpLHV6AAABjjUsWVLFlRZdtQAAAY40gLLKQF12AAABhnFQqWURZTXYAAAGGSkBYssWU12AAABjjYsUSxUWU21AAABOVFiywqFlHVQAAAPOUAAAXagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//EAE4QAAIBAQMFCgcMBwgDAAAAAAECAwQABREGEiExURMWIjJAQWFxlNQUMEJQUnKBFSMzU2JzgpGSobGyICSTorPBwhA0Q1VkdJDwYGOj/9oACAEBAAE/Af8AgJrbxoruTPrKhIceIp4UkmHNHEuMj+wWrMtJDit30oUfHVZxbrEEZ0e1/Zae/r5qDi9fMnNm0+bTr/8AMBvvs1RUvjn1NS2PpVEx/F7JU1UZBSqqkI1FaiYfg9oMob5p+LXSSj0alUnH1sBJ+9aiy0GhLxpM3mM9ISy9bQOc8exm6rUtbS10e60k8c6c5RtKnY6nB426CAfNV+ZTrRs9Hd+bLVLiss54UNM3OgH+LULs4qnXstLLLUSNPPI80z8aWRs5zhqGPMo5gNA/Tp6moo5hPSzPBMPLQ8YejIpxSRDsYEWuPKSK8s2mqgsFdhoA+BqcNZhJOIfah07MebzPlLf5p8+7aF8KhlHhNQp00yMPgoyNVQ68/kKdpGHR4nVgQSCCGUqSGVhpDKw0qynUbZOX97op4JVMBXQpiG1CriGjdVHNKnlj2jRq8y33eYuuhkn0GZ/eaZD5U7g5pPyIwCx6BZmZmZ3Znd2Z3djizuxzmdjzlj4uGaWnljqIGzJoXWSJ9jDbtVhoI5xa7a+O8qKCsj0bovDTnilU5ssZ9Vx7Rp8y5V13hV5+Dq2MNAu5jZ4RIA8zdajNX2HxuR1cY6qe73bgVKmeEbJ4gBKF+ciwP0PMjusaPI3FRWdvVUYn7hZ5Wnkknc4tPJJM3XK5c/m8bQVHgldR1PNDUws3qFsyQfs3PmS+pDFdF4uNYo5x9pCn9Xjm4rdR/C1K5lpaaQ65IIXPW0asfx8x5QLnXLeQ/wBK5+zg38vHNxW9U/hagGbQ0S7KSmH1QoPMdXD4RS1MHx1PNF+0jZP52GOGnjDQesa/v8bHEZ5IoFGLTSxwgbd1dU/nZQFUKNAUADqGgeZL7o/Ab1rIcOA8nhMOzc6gmTAepJnL7PG5MUfhd7xOfg6NTVP6/wAHCPttj9HzLlddpqaVK+JcZqLO3XDW1I2mQ9O4sM7qx8ZjhpPNpNsmLtNBd4eVc2prCJ5QeMiYYQRHpSPSdjMfMpAIIIBBGBB0gg6wRzg2v65mumpzolPgFQx8HfSRC5xJpXPMV8jHjL0g+LyauQ1861tQv6lTvigYaKqdDoUY64YWHC5i2jb5nqaaCsgkpqmMSwyrmuh+sEEaVZTpBGkG183HUXRIWGdNQsfeqnDSmOqKpw0K45m4rdB0eJuPJ6a9CtRUB4Lv153FlqvkQ86xbX+ztEUUcEaQwoscUahERRgqqowAA80MqurI6q6MCrKwDKynQVZToIIteeR8bkzXXIsB1mkmzjAfmpBi8OOzhL1Wq6CtoDhWU0sGnDdGGdC2HozJnRn68ba9P9uOGs4Wo7rvC8CPBKWR1Jw3ZhuVOOuZ8FOHycTa7MkaenKzXi61kowIhAIpEI9JW4VR9LBfk2Aw0DQBoAHN5rIDAhgGB1gjEHrBtPcNz1JzpaCDO9KIGBuvGEx4mzZH3OdQqk9Wpb+sNZMkLnU6VqZOh6mTA/YzDanuS6aU50NBThvSdN1cdTS57C2r/wAZqaumo4zNVTxwRjypGC49CjWzdA02rMs6dCVoaaSoPxsx3CL6KYNMw6wtp8qr5lJzJoadT5MMCnD6c26nGxvq9213nV/RkC/lUW9172/zOu/bt/PRaiywrYcFrYUrE+MTCCf2jAwv9S2psqrnqNDztSt6NVGYx+0XPh/etFWUk/wNTTy4/FzRv+Vj/bLXUUAJmq6aLD4yeNfxa1TlZdEGIikkrG2U8ZzcfnZNzj+om1bldeFQClKkdDGfKHv1RgflsojQ9Snrt7rXt/mdd2h7LfV8LpF5Vej0nV/zo2NoMrL4iPvj09UuyWEIftwGPT7Dajyyo5cFroZKRtW6JjUQdZKqJU+yR02gnhqY1mp5Y5om1SROHU+1SdPmC+sqY6QvS3dmVFUMVkmPCp6c6iugjdphsGgc+y1RUT1cpnqpnnmPlyHHN6EXQsadCgD9PNXXgMerT9dgzrxZJV9WR1/BrFnbjPI3rSO34tbNUeSAduGn9OkrKqgl3ajneB/KzdMcnRLEeBIOvTa5cpYLxzaeqC01dqVcfeaj5hmJIfah07MeXZS5QtnPdt3yFc0lKypQ4EHU1NC3Mw8thq1DTjhoGrm5uR/jrBGIII1EEaQQbZN5QGqzbvr3xqgP1edtHhSKMcx+bwhAPpjTrx5ZlNe7XdSiCnfNrKvOVGB4UEI+Fn6G04J8o481v+/928lBZSrozI6MHR1ODI6nFXUjUynVa4L191aIPJm+FQHcqpRoBbWkqjmSZdPQcRzcqJABJOAAxJOgADWTa9K9ryr6irPEZsynU+TTx4iIdBbjHpbk+T9f7n3nCzHCCpwpajZhIRuUh+blw+iTyrKaqNLc9TmnB6jNpUI1jdzhJh0iENym5qs112UdSxxkeELKf/bETFKT0l0PKctpeBd0GOuSeZh82iRr/FPKcjJc67qiHnhrH+zLHHIP3seU5an9coF/005+uVB/LlORB97vIbJaY/XHIP6eU5a/3+h/2k38ZeU5EcW8/nKX8kvKctf79Q/7Sb+MvKciOLefzlL+SXlOW0DY3fVAcEbvTs2xnzZYwfWCNynIuBkoquoOqepzU2lYECE9W6MR7OU3pQJedDPSPwS4zopPipk4UUnsbXtGNp4JqWaSnqIzFPEc2RD9zKfKjcaVYaCOT0dHPeFTHSUy4yya2w4EMflTSnyUT7zoGm1HSxUVLBSQj3uCMIu1vSdvlOxJPSeVXldFFeiBaqPhqMI54zmTxeq+nFeg4r0WqMi61W/VaunmTm3dXgk6uAJUPXotvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZR9pfu9t6N9bKPtL93tvRvrZR9pfu9t6N87KLtL93tvRvrZRdpfu9t6N87KLtL93tvRvnZRdpfu9t6N87KPtL93tvRvrZRdpfu9t6N87KLtL93tTZF1LNjWVkUaaODTK0kjbRnyqip9lrUF3Ud2xbjSRCMNgZHJLSysBhnSSHhMfuHN/waf/EACsQAQABAgUCBgMBAQEBAAAAAAERACEQMUFR8GFxgZGhscHhUNHxQCCQYP/aAAgBAQABPxD/AMCTpIspVmBbNmQNUpmX6EyIsPHOXjUhB75CPV/ut60wl7lVZ1VWaug0Xy+YilNTICUENIp4CkLAmCIyIJTnM2oVn8AlU7cHkj8Vb+4plwDEy+1TRrHTWaLqFj2EFYCuFTXvRradWu/btT/aiGKArDMUmLsKSlOmIJlaGEqQXQn8Qn0MRUiFJSl0xLygAAIAsbds5XDn8rtWX6/dc8Yx4UKkPCoy4EBBES1WnATEBQILKO1y8T8NDstokBcM7o4ZlKTe95eVSqqtbV9V+65yNq1237eu9eFba4W7e/SMEsnhq2wyllWVHOixiw6KbW5YCxYyJ+FZYgkMpVforuVy1b88q5zOudcM+bYX52Kt/fnDrn6dMLyCqqAYmBlPwhmYeC6LcLZUMoVTdZ2c7MKGs/n5w5zvh3+/1XOThbmvW1c5NdnkemDSyQRaTzuofwjDwBXS+HUydaCACxEW2iK9tK967Rr9da5fp71zKPnCc+vxXLauHdwyM86nasjCaIoTZGnDlq3UPF/BkAnZbSPSg2+a2+OlfON6a52w3w/UVzSrU0ly6pjyp1Jlmc5Qnrb8Ha8YkYhQJmxepALQhyS0UdQJhaueFeOG3Jivhwi086+9Gfrf0mK5/MGoBVmoUi9RVhXsIHgH4RgYMsJmwZiUb4c8Z86y2krzwvz5rwrxw57107en6pgl1NxMuElbtX4VSZYCrhABYTpr9pzMnav3zwrnn9Vn9edc3w5zthl27e1c0y/tXzy/dIDAAU6F1e1J3L8lndWEQQIDl+FRM4YAQhIBhHOnjSRXAQVAK8hEuK15512rk+PrXtauc8K5wrnPKuR7UiOPnRoLDCskXhH8Mwi0jCSIAVFgQiINRlfFC7gZFmIQYcw8ywnv1+K5H6x229qtrprl1ntQkg6sVvku6c5SZoCwu4sHWAD8QfIZ5qIr6EREpXDlBKJi8zWSNo09LSHuUjsQuyoQAROiIztGEWy5Ns6QFAbqAeLW3LwiSoQjToiafg6+FI3EIZPUUAAAAAACAAsAfizilAwHMAiNMQ0MpC6luoy0moSzCQ6EmDqtBE4ZQug5TslZBfiZC8rZ1EaAAAAAAEAFgAsAf/MyMOtxZzGdoCtChjqQdMNlGRRh9Sz49Jfqt2qaSzK+ghQoFG4I51y5JJHRkaOElumyQRDbu0EI8F5HaYJ6JoATcl/7YTK7YKJH5pMi8Qatss6OAow+xo2VdaB6xSYjIYum1BpqrlHzSotISC6SA8VFmEBPYakB1IdKmlaXAtcFp3JQaKzaKFIgE3G5r+AkomRlzmIc2nzyNUsat6CrGBtCG1dWvv2bYTXLX4YSPZkEO2ajoENBs9AqIg/YLyYmhkmqAC7sS4+Xf9tfX9rP53jhhMIWxQDfe1Q0RvTKmYKHhZACLlOozH+0C0SoSQN2WvM8SUAAAFgLQGkGVc3w38q2rpFejU74bZ8+sLX48vXPP+V5Zc7VpOEVztFeW33WaMoEQQpWAyRIRyo+VYjJBLZPK2h0Jf64nACoEBCUYM21EygAAm2sqzmqt0rKt1w5zejn78Ky9vCo+uNda5yK5414kbZVzw74+dcgrTDnL1zrhz907EFRkzSSKMmpUAhJAwXI4mQh/qAmWQAEobABdpkm+hvhCUCpGtjzvXPn2qdf+M+czp9utadtviuda126ciufz/nk+tGlcv71zt+6efQRYBUwtOlzN3/qfHe4i4XUA2iaICCwWA0NIrLOudMPnnrTzv8AVcjnavTL1rnNa2w5ztjznStuedc52rjhE1H9vatWt8qSRJSSJG5OSJkmnWrtoIldoBJ4/wCmIG624gTJvF2o9518K8PvD7qPbDn7r6ijhr9Vz+43w5rhNdeccY74bca5wqelVCWxGhoT/wBN3SHjaJ/a3nOua1/OmF9NdvWta7u9tcf38VffLU7VznnWWXHP0r68a3j7rfkca512rf5rz+q8PHpllW/POnar10H4ox/rEbc9a729PSuc8688PPx+ay0ry564etePjhGHDvWXNa5H7w/nO9cmveuc64X/AOrdjzzw/f7xy8/5715cKyvp6fyu3GP3hx5tWdPLfOJpWnxXPciuvPKutd3bm9eujG1Z/v8A197gNprEYbQfUrhzvUZVpzTH2r1z7Vz+Y/NbWttNPNfCufzDrz6rn8r+Y855V00rryfPAgQO8Oiziwuq/wBLxA6iVUCywYAuo1pI+w2zsQawCkw5naunj2rpWm9dfrD+71z62ip235OlTXhzeufVTzX7mnnn8V5861vq+/fvh0328Yz61fKp4VpTwmSyRoGCCdbxTIKVAMzmF9w8tU/1JxXXYGUICOZs3ZXpFq8BOp7deHEsU8y/4xYsU4X54CnCvbEUOfJ9KkE/98bFGjR4WlSQFJZYN9TFFR9SLJzN018ClayhBQVRCwWkQBb/AMNP/8QAMREAAQICBwcEAgIDAAAAAAAAAQIDABEQEhMhMDFhBCAyQFBRcUFCUoEikZCxM2Ch/9oACAECAQE/AP4CUpUrhEJ2ce5UBpA9sBIGQiqn4iC0g+39QrZ/iYUkpMlDpTbNb8lZQAAJASG+UhQIIuhxoovF6ekNNT/NWW7nvOt1DWHD0ZtFdQHpEpZDDIBEjlC0lCik9FYTVRP1NP3geKH0zAWPTogvMoAkAMHSJUrFZKhp0RsTWga46rlEa9Da/wAifOJ2pVxK89DSZKB1wvXcJkCeitqrIB9cGe48qSCPU9FYXIlJyP8AdPnCeXWVdkOjNOVxfxYbzlUVRxHo4JSQQb4bcCxL3dt+6hx0IuF6oJJMyb+kZZQh8i5f7hKkqvSZ0ihTiU5mFvk3JEh/3pocWMlGLdzSLdzSC4s5qP8ArQSVGQEzCdnJ4jKAy2JTE4s2/iIs0fAQphJmUmUFlY9JwUqGaTSEqOSTAYWcxKEsJGZmYs0fAQW0fAQWEeIUwocJnBBBkRf0BtkqvVlASEiQF29fRIdokO27fSpIUJEQ40UXpvTzzLWS1fXJeKP6h1qr+SeHnGUV1TPCML6xCJw6ioq7h5tCaiQOXdTWQe45plNZwaUnDvw3E1VqGvM7OL1GjXAz357n3ubQPzB05nZ+FXmjxjecHaM08zs/Crzi/eJtHs5nZ+FXnkO5wdozRzOzniGF274+0GakjTmUKqKCoBCgCDdRLlVKCBM5QolRJPNIWpBuMJ2hPuBi3b1i3b1i3b7mLdvWLdvWLdvWLdvuYt29Yt2+5i3b1i3b1i3b1i3b1i3b1i3b7mLdvuYt29Yt29Yt2+5/UW7fcwdoHtF8KUpZmo/waf/EADIRAAECAwYFAwMEAwEAAAAAAAEAAhARMQMgIUFhcRITUFGBMkCxQlLwIpCRoTBgYnL/2gAIAQMBAT8A/YJLmtqUbUn0hcbzVyxzcpnuUHvH1IWv3BAg4g9KfaSwbVVMyvCwjhAEtIIMimWgdgcHdItHy/S2qpkso5XO6Ks38QkfV0Z7uFpOa3qtV5xhRfMN4+FMgzFU13EAei2hm6WQhouyzjip94y7QsnYkZHosySSqqtLku4hj4WirDVAyc0zz6I/BrtlkIYxEKx3MOyKFB0N/odsgtoUhNVXfupCHlZw84JtBt0MiYIQ/uPeanASyhO6MZDPorxJxwvFYrwvNxgm4adFtWzHEKi7RYXcYWbeFuNT0Z7eA/8AK2W0PC8r4UlRYrVWbeI8RoOjkAiRonNLP/Nz4uYJrC/E+lASwFOkuss2lFpHqaqw0gGud6Qm2QHqx6aWMNWrlM1XKZqgxoo3/WiQKlG1H0iaNo/uAuJ/3FcT/uKFqRPixCFow5yUwaGJcBUo2rBTFG1caYBcTvuK43/cULV1ckLUGokgQcQegPtJYNqjMmZMzDFbQptDBY+ISVFnCUQS0zacUy0DsDg731o+rWrZbI/0vm53WBJhisIaw7qVyzfP9Lq+8tHcIkPUbsrud4w8LuprJVpVMdxN192TxEuWUDc1W0ahb0ub3dIWbi1wJofdWhkwyqgskY6Ka8XMIaIXJow+YZJhm0H3NsfSIUyu+V8Lz/gBj5UoZQsjgRr7m1q27NTzRqtL1LlY63LH6vc2tW7KizhotLtZxyxhvHDuq3NIWP1e5tfU3aHiG1zutoZx1WynhDNTj4jZfV7m2HpNzNfN/S/8QncsRgT7lzeJpCxEwaxwu94z/lbLWO6l/KrDRYLugCTwtCAAAAp7pzGuqjYnIhcp+i5TspLlP0XKfp+eFyn6LlO0/PC5T9PzwuU/Rcp+i5T9Fynafnhcp+FPzwuU/Rcp2i5T8KLlO0XKdKWC5T9Fy36LlPPZCyOZ/hNaGiQH7Gn/2Q==",X3=({src:e,alt:t,size:n=40})=>v.jsx("img",{src:e||xv,alt:t,width:n,height:n,className:"cnf:rounded-full cnf:object-cover cnf:border cnf:border-gray-200"}),eT=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},hu=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=T.useState(!1),{refs:a,floatingStyles:c,context:l}=Lb({strategy:"fixed",placement:e,open:i,onOpenChange:s}),f=Ib(l,{outsidePress:!0}),{getReferenceProps:u,getFloatingProps:d}=Rb([f]),m=T.Children.map(t,h=>{if(!T.isValidElement(h))return h;const g=h.props;return T.cloneElement(h,{onClick:eT(g.onClick,()=>s(!1))})});return v.jsxs(v.Fragment,{children:[T.cloneElement(n,{ref:a.setReference,...u(),onClick:()=>s(h=>!h),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&v.jsx("div",{ref:a.setFloating,style:{...c,minWidth:o},className:xe("cnf:border cnf:border-gray-200 cnf:rounded-sm cnf:bg-white cnf:z-[9999999999]"),...d(),children:m})]})},tT=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>v.jsxs(hu,{trigger:v.jsx(je,{category:"link",size:"none",className:"cnf:text-gray-400",disabled:!i,children:v.jsx(Ce,{icon:x_})}),children:[v.jsxs("ul",{className:"cnf:py-2 cnf:m-0",children:[v.jsx("li",{children:v.jsx("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:hover:text-primary-600 cnf:cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&v.jsx("li",{children:v.jsx("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:hover:text-primary-600 cnf:cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),v.jsx("ul",{className:"cnf:border-t cnf:border-gray-200 cnf:flex cnf:items-center cnf:justify-center cnf:gap-2 cnf:py-2",children:k1.map(s=>v.jsx("li",{children:v.jsx(je,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:xe(s.color,e===s.type?s.color:"cnf:text-gray-400"),children:v.jsx(Ce,{icon:s.icon,size:"lg"})})},s.type))})]}),wv=T.createContext(null);function nT(e,t){return{getTheme:function(){return t??null}}}function mt(){const e=T.useContext(wv);return e==null&&(function(t,...n){const r=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of n)o.append("v",i);throw r.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),e}function B(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Av(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const mn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,rT=mn&&"documentMode"in document?document.documentMode:null,an=mn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Oo=mn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),uc=!(!mn||!("InputEvent"in window)||rT)&&"getTargetRanges"in new window.InputEvent("input"),na=mn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Qi=mn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,oT=mn&&/Android/.test(navigator.userAgent),Cv=mn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Sp=mn&&oT&&Cv,ra=mn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&an&&!Cv;function _v(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}const iT=0,sT=1,aT=2,Ev=128,cT=1,lT=2,fT=3,uT=4,dT=5,mT=6,Gc=na||Qi||ra?" ":"",jr=`
|
|
595
595
|
|
|
596
|
-
`,i3=Oo?" ":Vc,Po={bold:1,capitalize:1024,code:16,highlight:mb,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},s3={directionless:1,unmergeable:2},wm={center:2,end:6,justify:4,left:1,right:3,start:5},a3={[e3]:"center",[o3]:"end",[n3]:"justify",[XT]:"left",[t3]:"right",[r3]:"start"},c3={normal:0,segmented:2,token:1},l3={[GT]:"normal",[JT]:"segmented",[ZT]:"token"},Am="$config";function gb(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&gb(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let du=!1,Pd=0;function f3(e){Pd=e.timeStamp}function ql(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&tl(e,n)!==void 0}function u3(e,t,n){const r=en(Xt(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&Qd(t,s,o,i,!1)}function d3(e,t,n){if($(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return lr(t)&&n.isAttached()}function p3(e,t,n,r){for(let o=e;o&&!b6(o);o=ia(o)){const i=tl(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!ht(o)?void 0:[o,s]}else if(o===r)return[r,Cx(n)]}}function yb(e,t,n){du=!0;const r=performance.now()-Pd>100;try{kn(e,()=>{const o=Z()||(function(d){return d.getEditorState().read(()=>{const p=Z();return p!==null?p.clone():null})})(e),i=new Map,s=e.getRootElement(),a=e._editorState,c=e._blockCursorElement;let l=!1,f="";for(let d=0;d<t.length;d++){const p=t[d],h=p.type,g=p.target,m=p3(g,e,a,s);if(!m)continue;const[y,v]=m;if(h==="characterData")r&&X(v)&&lr(g)&&d3(o,g,v)&&u3(g,v,e);else if(h==="childList"){l=!0;const b=p.addedNodes;for(let _=0;_<b.length;_++){const E=b[_],S=wx(E),N=E.parentNode;if(N!=null&&E!==c&&S===null&&!ql(E,N,e)){if(Oo){const P=(ht(E)?E.innerText:null)||E.nodeValue;P&&(f+=P)}N.removeChild(E)}}const w=p.removedNodes,A=w.length;if(A>0){let _=0;for(let E=0;E<A;E++){const S=w[E];(ql(S,g,e)||c===S)&&(g.appendChild(S),_++)}A!==_&&i.set(y,v)}}}if(i.size>0)for(const[d,p]of i)p.reconcileObservedMutation(d,e);const u=n.takeRecords();if(u.length>0){for(let d=0;d<u.length;d++){const p=u[d],h=p.addedNodes,g=p.target;for(let m=0;m<h.length;m++){const y=h[m],v=y.parentNode;v==null||y.nodeName!=="BR"||ql(y,g,e)||v.removeChild(y)}}n.takeRecords()}o!==null&&(l&&Pt(o),Oo&&kx(e)&&o.insertRawText(f))})}finally{du=!1}}function vb(e){const t=e._observer;t!==null&&yb(e,t.takeRecords(),t)}function bb(e){(function(t){Pd===0&&Xt(t).addEventListener("textInput",f3,!0)})(e),e._observer=new MutationObserver((t,n)=>{yb(e,t,n)})}function h3(e){const t=new Map,n=new Set;for(let r=typeof e=="function"?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:o}=rl(r);if(o&&o.stateConfigs)for(const i of o.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,t.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:t}}let m3=class xb{constructor(t,n,r=void 0,o=new Map,i=void 0){D(this,"node");D(this,"knownState");D(this,"unknownState");D(this,"sharedNodeState");D(this,"size");this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,a=i!==void 0?i:(function(c,l,f){let u=f.size;if(l)for(const d in l){const p=c.get(d);p&&f.has(p)||u++}return u})(s,r,o);this.size=a}getValue(t){const n=this.knownState.get(t);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const o=this.unknownState[t.key];o!==void 0&&(r=t.parse(o)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},n={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in t&&(n[r]=t[r],delete t[r]);return Cm(t)&&(n.$=t),n}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new xb(t,n,(function(i,s,a){let c;if(a)for(const[l,f]of Object.entries(a)){const u=i.get(l);u?s.has(u)||s.set(u,u.parse(f)):(c=c||{},c[l]=f)}return c})(n.sharedConfigMap,o,r),o,this.size)}updateFromKnown(t,n){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:o,unknownState:i}=this;o.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=Cm(i)),this.size++),o.set(t,n)}updateFromUnknown(t,n){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=n)}updateFromJSON(t){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,t)for(const[r,o]of Object.entries(t))this.updateFromUnknown(r,o)}};function g3(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new m3(t,wb(t));return t.__state=n,n}function wb(e){return e.__state?e.__state.sharedNodeState:gx(Jd(),e.getType()).sharedNodeState}function Cm(e){if(e)for(const t in e)return e}function _m(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const i=n?n.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function Em(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!e.has(i)&&(e.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function Sm(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function km(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,c=e.__state,l=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||c===l||(function(f,u){if(f===u)return!0;if(f&&u&&f.size!==u.size)return!1;const d=new Set;return!(f&&_m(d,f,u)||u&&_m(d,u,f)||f&&Em(d,f,u)||u&&Em(d,u,f))})(c,l))}function Tm(e,t){const n=e.mergeWithSibling(t),r=Re()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Nm(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&X(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(km(t,r)){r=Tm(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(km(r,n)){r=Tm(r,n);break}break}n.remove()}}else r.remove()}function Ri(e){return Om(e.anchor),Om(e.focus),e}function Om(e){for(;e.type==="element";){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),X(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!R(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Mo,bt,Ms,Yc,pu,hu,Io,an,mu,Is,Je="",mn=null,Xr=null,Kn="",ii=!1,ac=!1;function cc(e,t){const n=Io.get(e);if(t!==null){const r=bu(e);r.parentNode===t&&t.removeChild(r)}if(an.has(e)||bt._keyToDOMMap.delete(e),R(n)){const r=fc(n,Io);gu(r,0,r.length-1,null)}n!==void 0&&Gd(Is,Ms,Yc,n,"destroyed")}function gu(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&cc(i,r)}}function Jr(e,t){e.setProperty("text-align",t)}const y3="40px";function Ab(e,t){const n=Mo.theme.indent;if(typeof n=="string"){const o=e.classList.contains(n);t>0&&!o?e.classList.add(n):t<1&&o&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||y3;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function Cb(e,t){const n=e.style;t===0?Jr(n,""):t===1?Jr(n,"left"):t===2?Jr(n,"center"):t===3?Jr(n,"right"):t===4?Jr(n,"justify"):t===5?Jr(n,"start"):t===6&&Jr(n,"end")}function yu(e,t){const n=(function(r){const o=r.__dir;if(o!==null)return o;if(Ye(r))return null;const i=r.getParentOrThrow();return Ye(i)&&i.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}function lc(e,t){const n=an.get(e);n===void 0&&U(60);const r=n.createDOM(Mo,bt);if((function(o,i,s){const a=s._keyToDOMMap;(function(c,l,f){const u=`__lexicalKey_${l._key}`;c[u]=f})(i,s,o),a.set(o,i)})(e,r,bt),X(n)?r.setAttribute("data-lexical-text","true"):Te(n)&&r.setAttribute("data-lexical-decorator","true"),R(n)){const o=n.__indent,i=n.__size;if(yu(r,n),o!==0&&Ab(r,o),i!==0){const a=i-1;vu(fc(n,an),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&Cb(r,s),n.isInline()||_b(null,n,r),nl(n)&&(Je+=Dr,Kn+=Dr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(bt,Mo);i!==null&&Eb(e,i),r.contentEditable="false"}Je+=o,Kn+=o}return t!==null&&t.insertChild(r),Gd(Is,Ms,Yc,n,"created"),r}function vu(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){lc(e[s],o);const a=an.get(e[s]);a!==null&&X(a)&&mn===null&&(mn=a.getFormat(),Xr=a.getStyle())}nl(t)&&(Je+=Dr),o.element.__lexicalTextContent=Je,Je=i+Je}function Pm(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return xo(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function _b(e,t,n){const r=Pm(e,Io),o=Pm(t,an);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function v3(e,t,n){var r;mn=null,Xr=null,(function(o,i,s){const a=Je,c=o.__size,l=i.__size;Je="";const f=s.element;if(c===1&&l===1){const u=o.__first,d=i.__first;if(u===d)ms(u,f);else{const h=bu(u),g=lc(d,null);try{f.replaceChild(g,h)}catch(m){if(typeof m=="object"&&m!=null){const y=`${m.toString()} Parent: ${f.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${h.tagName}, key: ${u}}.`;throw new Error(y)}throw m}cc(u,null)}const p=an.get(d);X(p)&&mn===null&&(mn=p.getFormat(),Xr=p.getStyle())}else{const u=fc(o,Io),d=fc(i,an);if(u.length!==c&&U(227),d.length!==l&&U(228),c===0)l!==0&&vu(d,i,0,l-1,s);else if(l===0){if(c!==0){const p=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;gu(u,0,c-1,p?null:f),p&&(f.textContent="")}}else(function(p,h,g,m,y,v){const b=m-1,w=y-1;let A,_,E=v.getFirstChild(),S=0,N=0;for(;S<=b&&N<=w;){const W=h[S],j=g[N];if(W===j)E=Vl(ms(j,v.element)),S++,N++;else{A===void 0&&(A=new Set(h)),_===void 0&&(_=new Set(g));const Y=_.has(W),Q=A.has(j);if(Y)if(Q){const oe=Do(bt,j);oe===E?E=Vl(ms(j,v.element)):(v.withBefore(E).insertChild(oe),ms(j,v.element)),S++,N++}else lc(j,v.withBefore(E)),N++;else E=Vl(bu(W)),cc(W,v.element),S++}const z=an.get(j);z!==null&&X(z)&&mn===null&&(mn=z.getFormat(),Xr=z.getStyle())}const P=S>b,I=N>w;if(P&&!I){const W=g[w+1],j=W===void 0?null:bt.getElementByKey(W);vu(g,p,N,w,v.withBefore(j))}else I&&!P&&gu(h,S,b,v.element)})(i,u,d,c,l,s)}nl(i)&&(Je+=Dr),f.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,mn==null||mn===r.__textFormat||ac||r.setTextFormat(mn),(function(o){Xr==null||Xr===o.__textStyle||ac||o.setTextStyle(Xr)})(t)}function fc(e,t){const n=[];let r=e.__first;for(;r!==null;){const o=t.get(r);o===void 0&&U(101),n.push(r),r=o.__next}return n}function ms(e,t){const n=Io.get(e);let r=an.get(e);n!==void 0&&r!==void 0||U(61);const o=ii||hu.has(e)||pu.has(e),i=Do(bt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,Kn+=s)}else{const s=n.getTextContent();Kn+=s,Je+=s}return i}if(n!==r&&o&&Gd(Is,Ms,Yc,r,"updated"),r.updateDOM(n,i,Mo)){const s=lc(e,null);return t===null&&U(62),t.replaceChild(s,i),cc(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(ii||s!==n.__indent)&&Ab(i,s);const a=r.__format;if((ii||a!==n.__format)&&Cb(i,a),o&&(v3(n,r,i),Ye(r)||r.isInline()||_b(n,r,i)),nl(r)&&(Je+=Dr,Kn+=Dr),(ii||r.__dir!==n.__dir)&&(yu(i,r),Ye(r)&&!ii))for(const c of r.getChildren())R(c)&&yu(Do(bt,c.getKey()),c)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(bt,Mo);a!==null&&Eb(e,a)}Je+=s,Kn+=s}if(!ac&&Ye(r)&&r.__cachedText!==Kn){const s=r.getWritable();s.__cachedText=Kn,r=s}return i}function Eb(e,t){let n=bt._pendingDecorators;const r=bt._decorators;if(n===null){if(r[e]===t)return;n=Ax(bt)}n[e]=t}function Vl(e){let t=e.nextSibling;return t!==null&&t===bt._blockCursorElement&&(t=t.nextSibling),t}function b3(e,t,n,r,o,i){Je="",Kn="",ii=r===2,bt=n,Mo=n._config,Ms=n._nodes,Yc=bt._listeners.mutation,pu=o,hu=i,Io=e._nodeMap,an=t._nodeMap,ac=t._readOnly,mu=new Map(n._keyToDOMMap);const s=new Map;return Is=s,ms("root",null),bt=void 0,Ms=void 0,pu=void 0,hu=void 0,Io=void 0,an=void 0,Mo=void 0,mu=void 0,Is=void 0,s}function bu(e){const t=mu.get(e);return t===void 0&&U(75,e),t}function pe(e){return{type:e}}const Qc=pe("SELECTION_CHANGE_COMMAND"),x3=pe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Md=pe("CLICK_COMMAND"),Sb=pe("BEFORE_INPUT_COMMAND"),kb=pe("INPUT_COMMAND"),Tb=pe("COMPOSITION_START_COMMAND"),Nb=pe("COMPOSITION_END_COMMAND"),vo=pe("DELETE_CHARACTER_COMMAND"),mi=pe("INSERT_LINE_BREAK_COMMAND"),Ls=pe("INSERT_PARAGRAPH_COMMAND"),gi=pe("CONTROLLED_TEXT_INSERTION_COMMAND"),Gc=pe("PASTE_COMMAND"),xu=pe("REMOVE_TEXT_COMMAND"),Rs=pe("DELETE_WORD_COMMAND"),Ds=pe("DELETE_LINE_COMMAND"),_n=pe("FORMAT_TEXT_COMMAND"),Id=pe("UNDO_COMMAND"),Ld=pe("REDO_COMMAND"),Ob=pe("KEYDOWN_COMMAND"),Pb=pe("KEY_ARROW_RIGHT_COMMAND"),w3=pe("MOVE_TO_END"),Mb=pe("KEY_ARROW_LEFT_COMMAND"),A3=pe("MOVE_TO_START"),Ib=pe("KEY_ARROW_UP_COMMAND"),Lb=pe("KEY_ARROW_DOWN_COMMAND"),Fs=pe("KEY_ENTER_COMMAND"),Rb=pe("KEY_SPACE_COMMAND"),Db=pe("KEY_BACKSPACE_COMMAND"),Rd=pe("KEY_ESCAPE_COMMAND"),Fb=pe("KEY_DELETE_COMMAND"),jb=pe("KEY_TAB_COMMAND"),C3=pe("INSERT_TAB_COMMAND"),_3=pe("INDENT_CONTENT_COMMAND"),Mm=pe("OUTDENT_CONTENT_COMMAND"),zb=pe("DROP_COMMAND"),E3=pe("FORMAT_ELEMENT_COMMAND"),$b=pe("DRAGSTART_COMMAND"),Ub=pe("DRAGOVER_COMMAND"),S3=pe("DRAGEND_COMMAND"),Zc=pe("COPY_COMMAND"),Dd=pe("CUT_COMMAND"),wu=pe("SELECT_ALL_COMMAND"),k3=pe("CLEAR_EDITOR_COMMAND"),T3=pe("CLEAR_HISTORY_COMMAND"),Aa=pe("CAN_REDO_COMMAND"),Ca=pe("CAN_UNDO_COMMAND"),N3=pe("FOCUS_COMMAND"),O3=pe("BLUR_COMMAND"),P3=pe("KEY_MODIFIER_COMMAND"),jn=Object.freeze({}),Au=[["keydown",function(e,t){js=e.timeStamp,Bb=e.key,!t.isComposing()&&ie(t,Ob,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Xi(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&kn(t,()=>{yx(n)||(Eu=!0)})}],["compositionstart",function(e,t){ie(t,Tb,e)}],["compositionend",function(e,t){Oo?gs=!0:Vi||!Xs&&!ea?ie(t,Nb,e):(Su=!0,ku=e.data)}],["input",function(e,t){e.stopPropagation(),kn(t,()=>{t.dispatchCommand(kb,e)},{event:e}),si=null}],["click",function(e,t){kn(t,()=>{const n=Z(),r=en(Xt(t)),o=Gi();if(r){if($(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!Ye(s)&&We().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const a=at(s,c=>R(c)&&!c.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(ht(i)||lr(i))&&Pt(jd(o,r,t,e))}}ie(t,Md,e)})}],["cut",jn],["copy",jn],["dragstart",jn],["dragover",jn],["dragend",jn],["paste",jn],["focus",jn],["blur",jn],["drop",jn]];sc&&Au.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||Oo&&kx(r)||o!=="insertCompositionText"&&ie(r,Sb,n)})(e,t)]);let js=0,Bb=null,Wb=0,si=null;const Cu=new WeakMap,uc=new WeakMap;let _u=!1,Eu=!1,ws=!1,gs=!1,Su=!1,ku="",no=null,Kb=[0,"",0,"root",0];function Hb(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),c=Re(),l=en(Xt(c)),f=l!==null?l.anchorNode:null,u=i.key,d=c.getElementByKey(u),p=n.length;return u!==s.key||!X(a)||(!o&&(!sc||Wb<r+50)||a.isDirty()&&p<2||_x(n))&&i.offset!==s.offset&&!a.isComposing()||Wn(a)||a.isDirty()&&p>1||(o||!sc)&&d!==null&&!a.isComposing()&&f!==Di(d)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||(function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const m=h.anchor.offset,y=g.getParentOrThrow(),v=wo(g);return m===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||v||(function(b){const w=b.getPreviousSibling();return(X(w)||R(w)&&w.isInline())&&!w.canInsertTextAfter()})(g):m===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||v)})(e,a)}function Im(e,t){return lr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Lm(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;_u&&(_u=!1,Im(r,o)&&Im(i,s)&&!no)||kn(t,()=>{if(!n)return void Pt(null);if(!oa(t,r,i))return;let a=Z();if(no&&$(a)&&a.isCollapsed()){const c=a.anchor,l=no.anchor;(c.key===l.key&&c.offset===l.offset+1||c.offset===1&&l.getNode().is(c.getNode().getPreviousSibling()))&&(a=no.clone(),Pt(a))}if(no=null,$(a)){const c=a.anchor,l=c.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const f=Xt(t).event,u=f?f.timeStamp:performance.now(),[d,p,h,g,m]=Kb,y=We(),v=t.isComposing()===!1&&y.getTextContent()==="";if(u<m+200&&c.offset===h&&c.key===g)Ba(a,d,p);else if(c.type==="text")X(l)||U(141),qb(a,l);else if(c.type==="element"&&!v){R(l)||U(259);const b=c.getNode();b.isEmpty()?(function(w,A){const _=A.getTextFormat(),E=A.getTextStyle();Ba(w,_,E)})(a,b):Ba(a,0,"")}}else{const f=c.key,u=a.focus.key,d=a.getNodes(),p=d.length,h=a.isBackward(),g=h?s:o,m=h?o:s,y=h?u:f,v=h?f:u;let b=2047,w=!1;for(let A=0;A<p;A++){const _=d[A],E=_.getTextContentSize();if(X(_)&&E!==0&&!(A===0&&_.__key===y&&g===E||A===p-1&&_.__key===v&&m===0)&&(w=!0,b&=_.getFormat(),b===0))break}a.format=w?b:0}}ie(t,Qc,void 0)})}function Ba(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function qb(e,t){Ba(e,t.getFormat(),t.getStyle())}function Vb(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function M3(e){const t=e.inputType,n=Vb(e),r=Re(),o=Z();if(t==="deleteContentBackward"){if(o===null){const u=Gi();if(!$(u))return!0;Pt(u.clone())}if($(o)){const u=o.anchor.key===o.focus.key;if(i=e.timeStamp,Bb==="MediaLast"&&i<js+30&&r.isComposing()&&u){if(ut(null),js=0,setTimeout(()=>{kn(r,()=>{ut(null)})},30),$(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||U(142),qb(o,d)}}else{ut(null),e.preventDefault();const d=o.anchor.getNode(),p=d.getTextContent(),h=d.canInsertTextAfter(),g=o.anchor.offset===0&&o.focus.offset===p.length;let m=xm&&u&&!g&&h;if(m&&o.isCollapsed()&&(m=!Te(Iu(o.anchor,!0))),!m){ie(r,vo,!0);const y=Z();xm&&$(y)&&y.isCollapsed()&&(no=y,setTimeout(()=>no=null))}}return!0}}var i;if(!$(o))return!0;const s=e.data;si!==null&&Yd(!1,r,si),o.dirty&&si===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),si=null;const a=o.anchor,c=o.focus,l=a.getNode(),f=c.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
597
|
-
`)e.preventDefault(),ie(r,
|
|
598
|
-
`){const r=Z();if($(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,Fs,null)}}}Yd(!0,e,t)}function D3(e){const t=Re();if(e.key==null)return!0;if(Su&&ig(e))return kn(t,()=>{dc(t,ku)}),Su=!1,ku="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,Pb,e);else if((function(n){return Ie(n,"ArrowRight",Un)})(e))ie(t,w3,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,Mb,e);else if((function(n){return Ie(n,"ArrowLeft",Un)})(e))ie(t,A3,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,Ib,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,Lb,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))ws=!0,ie(t,Fs,e);else if((function(n){return n.key===" "})(e))ie(t,Rb,e);else if((function(n){return sn&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),ws=!0,ie(t,mi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))ws=!1,ie(t,Fs,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||sn&&Ie(n,"h",{ctrlKey:!0})})(e))ig(e)?ie(t,Db,e):(e.preventDefault(),ie(t,vo,!0));else if((function(n){return n.key==="Escape"})(e))ie(t,Rd,e);else if((function(n){return Ie(n,"Delete",{})||sn&&Ie(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?ie(t,Fb,e):(e.preventDefault(),ie(t,vo,!1));else if((function(n){return Ie(n,"Backspace",og)})(e))e.preventDefault(),ie(t,Rs,!0);else if((function(n){return Ie(n,"Delete",og)})(e))e.preventDefault(),ie(t,Rs,!1);else if((function(n){return sn&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,Ds,!0);else if((function(n){return sn&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,Ds,!1);else if((function(n){return Ie(n,"b",Un)})(e))e.preventDefault(),ie(t,_n,"bold");else if((function(n){return Ie(n,"u",Un)})(e))e.preventDefault(),ie(t,_n,"underline");else if((function(n){return Ie(n,"i",Un)})(e))e.preventDefault(),ie(t,_n,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,jb,e);else if((function(n){return Ie(n,"z",Un)})(e))e.preventDefault(),ie(t,Id,void 0);else if((function(n){return sn?Ie(n,"z",{metaKey:!0,shiftKey:!0}):Ie(n,"y",{ctrlKey:!0})||Ie(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),ie(t,Ld,void 0);else{const n=t._editorState._selection;n===null||$(n)?sg(e)&&(e.preventDefault(),ie(t,wu,e)):(function(r){return Ie(r,"c",Un)})(e)?(e.preventDefault(),ie(t,Zc,e)):(function(r){return Ie(r,"x",Un)})(e)?(e.preventDefault(),ie(t,Dd,e)):sg(e)&&(e.preventDefault(),ie(t,wu,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(P3,e),!0}function Yb(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const yi=new Map;function Qb(e){const t=m6(e.target);if(t===null)return;const n=vx(t.anchorNode);if(n===null)return;Eu&&(Eu=!1,kn(n,()=>{const c=Gi(),l=t.anchorNode;(ht(l)||lr(l))&&Pt(jd(c,t,n,e))}));const r=Vd(n),o=r[r.length-1],i=o._key,s=yi.get(i),a=s||o;a!==n&&Lm(t,a,!1),Lm(t,n,!0),n!==o?yi.set(i,n):s&&yi.delete(i)}function Rm(e){e._lexicalHandled=!0}function Dm(e){return e._lexicalHandled===!0}function F3(e){const t=Cu.get(e);if(t===void 0)return;const n=uc.get(t);if(n===void 0)return;const r=n-1;r>=0||U(164),Cu.delete(e),uc.set(t,r),r===0&&t.removeEventListener("selectionchange",Qb);const o=el(e);qd(o)?((function(s){if(s._parentEditor!==null){const a=Vd(s),c=a[a.length-1]._key;yi.get(c)===s&&yi.delete(c)}else yi.delete(s._key)})(o),e.__lexicalEditor=null):o&&U(198);const i=Yb(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function Tu(e,t,n){vt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const c=Z();if(!$(c)||!R(a))return c;const{anchor:l,focus:f}=c,u=l.getNode(),d=f.getNode();return Lu(u,a)&&l.set(a.__key,0,"element"),Lu(d,a)&&f.set(a.__key,0,"element"),c})(e);let s=!1;if($(i)&&t){const a=i.anchor,c=i.focus;a.key===r&&(mc(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),c.key===r&&(mc(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else ot(i)&&t&&e.isSelected()&&e.selectPrevious();if($(i)&&t&&!s){const a=e.getIndexWithinParent();Ao(e),hc(i,o,a,-1)}else Ao(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||Tu(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const Gb=Symbol.for("ephemeral");function pc(e){return e[Gb]||!1}class cn{constructor(t){D(this,"__type");D(this,"__key");D(this,"__parent");D(this,"__prev");D(this,"__next");D(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),c6(this,t)}static getType(){const{ownNodeType:t}=rl(this);return t===void 0&&U(64,this.name),t}static clone(t){U(65,this.name)}$config(){return{}}config(t,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:t}),{[t]:n}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){U(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const n=Xe(t);if(n===null)break;t=n.__parent}return!1}isSelected(t){const n=t||Z();if(n==null)return!1;const r=n.getNodes().some(o=>o.__key===this.__key);if(X(this))return r;if($(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const o=this.getParent();if(Te(this)&&this.isInline()&&o){const i=n.isBackward()?n.focus:n.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let n=t.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Xe(t)}getParentOrThrow(){const t=this.getParent();return t===null&&U(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const n=t.getParent();if(jt(n))return R(t)||t===this&&Te(t)||U(194),t;t=n}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&U(67,this.__key),t}getParents(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n),n=n.getParent();return t}getParentKeys(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n.__key),n=n.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Xe(t)}getPreviousSiblings(){const t=[],n=this.getParent();if(n===null)return t;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Xe(t)}getNextSiblings(){const t=[];let n=this.getNextSibling();for(;n!==null;)t.push(n),n=n.getNextSibling();return t}getCommonAncestor(t){const n=R(this)?this:this.getParent(),r=R(t)?t:t.getParent(),o=n&&r?Ka(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=Ka(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Ix(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&U(279),!1)))}isParentOf(t){const n=Ka(this,t);return n!==null&&n.type==="ancestor"}getNodesBetween(t){const n=this.isBefore(t),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===t)break;const a=R(i)?n?i.getFirstChild():i.getLastChild():null;if(a!==null){i=a;continue}const c=n?i.getNextSibling():i.getPreviousSibling();if(c!==null){i=c;continue}const l=i.getParentOrThrow();if(o.has(l.__key)||r.push(l),l===t)break;let f=null,u=l;do{if(u===null&&U(68),f=n?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;f!==null||o.has(u.__key)||r.push(u)}while(f===null);i=f}return n||r.reverse(),r}isDirty(){const t=Re()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(pc(this))return this;const t=Xe(this.__key);return t===null&&U(113),t}getWritable(){if(pc(this))return this;vt();const t=Wr(),n=Re(),r=t._nodeMap,o=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,a=Z();if(a!==null&&a.setCachedNodes(null),s.has(o))return yc(i),i;const c=Ox(i);return s.add(o),yc(c),r.set(o,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,n){U(70)}updateDOM(t,n,r){U(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){U(18,this.name)}updateFromJSON(t){return(function(n,r){const o=n.getWritable(),i=r.$;let s=i;for(const a of wb(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&g3(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){Tu(this,!0,t)}replace(t,n){vt();let r=Z();r!==null&&(r=r.clone()),Xl(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),c=this.getParentOrThrow().getWritable(),l=c.__size;Ao(a);const f=o.getPreviousSibling(),u=o.getNextSibling(),d=o.__prev,p=o.__next,h=o.__parent;if(Tu(o,!1,!0),f===null?c.__first=s:f.getWritable().__next=s,a.__prev=d,u===null?c.__last=s:u.getWritable().__prev=s,a.__next=p,a.__parent=h,c.__size=l,n&&(R(this)&&R(a)||U(139),this.getChildren().forEach(g=>{a.append(g)})),$(r)){Pt(r);const g=r.anchor,m=r.focus;g.key===i&&$m(g,a),m.key===i&&$m(m,a)}return Sr()===i&&ut(s),a}insertAfter(t,n=!0){vt(),Xl(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,c=!1;if(i!==null){const p=t.getIndexWithinParent();if(Ao(o),$(s)){const h=i.__key,g=s.anchor,m=s.focus;a=g.type==="element"&&g.key===h&&g.offset===p+1,c=m.type==="element"&&m.key===h&&m.offset===p+1}}const l=this.getNextSibling(),f=this.getParentOrThrow().getWritable(),u=o.__key,d=r.__next;if(l===null?f.__last=u:l.getWritable().__prev=u,f.__size++,r.__next=u,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&$(s)){const p=this.getIndexWithinParent();hc(s,f,p+1);const h=f.__key;a&&s.anchor.set(h,p+2,"element"),c&&s.focus.set(h,p+2,"element")}return t}insertBefore(t,n=!0){vt(),Xl(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;Ao(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),c=r.__prev,l=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=c,o.__next=r.__key,o.__parent=r.__parent;const f=Z();return n&&$(f)&&hc(f,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){vt();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(R(r))return r.select();if(!X(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(t,n)}selectNext(t,n){vt();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(R(r))return r.select(0,0);if(!X(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(t,n)}markDirty(){this.getWritable()}reconcileObservedMutation(t,n){this.markDirty()}}D(cn,"importDOM");const Nu="historic",j3="history-push",bo="history-merge",z3="paste",$3="collaboration",U3="skip-scroll-into-view",B3="skip-dom-selection",W3="skip-selection-focus";class Yi extends cn{static getType(){return"linebreak"}static clone(t){return new Yi(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
599
|
-
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(n){const r=n.parentElement;if(r!==null&&
|
|
596
|
+
`,hT=Oo?" ":Gc,Po={bold:1,capitalize:1024,code:16,highlight:Ev,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},pT={directionless:1,unmergeable:2},kp={center:2,end:6,justify:4,left:1,right:3,start:5},gT={[lT]:"center",[mT]:"end",[uT]:"justify",[cT]:"left",[fT]:"right",[dT]:"start"},yT={normal:0,segmented:2,token:1},bT={[iT]:"normal",[aT]:"segmented",[sT]:"token"},Tp="$config";function Sv(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&Sv(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let pu=!1,Dd=0;function vT(e){Dd=e.timeStamp}function Ql(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&ol(e,n)!==void 0}function xT(e,t,n){const r=tn(en(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&em(t,s,o,i,!1)}function wT(e,t,n){if($(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return ur(t)&&n.isAttached()}function AT(e,t,n,r){for(let o=e;o&&!T6(o);o=ca(o)){const i=ol(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!ht(o)?void 0:[o,s]}else if(o===r)return[r,Ix(n)]}}function kv(e,t,n){pu=!0;const r=performance.now()-Dd>100;try{Nn(e,()=>{const o=Z()||(function(d){return d.getEditorState().read(()=>{const m=Z();return m!==null?m.clone():null})})(e),i=new Map,s=e.getRootElement(),a=e._editorState,c=e._blockCursorElement;let l=!1,f="";for(let d=0;d<t.length;d++){const m=t[d],h=m.type,g=m.target,p=AT(g,e,a,s);if(!p)continue;const[y,b]=p;if(h==="characterData")r&&X(b)&&ur(g)&&wT(o,g,b)&&xT(g,b,e);else if(h==="childList"){l=!0;const x=m.addedNodes;for(let E=0;E<x.length;E++){const S=x[E],_=Px(S),N=S.parentNode;if(N!=null&&S!==c&&_===null&&!Ql(S,N,e)){if(Oo){const P=(ht(S)?S.innerText:null)||S.nodeValue;P&&(f+=P)}N.removeChild(S)}}const w=m.removedNodes,A=w.length;if(A>0){let E=0;for(let S=0;S<A;S++){const _=w[S];(Ql(_,g,e)||c===_)&&(g.appendChild(_),E++)}A!==E&&i.set(y,b)}}}if(i.size>0)for(const[d,m]of i)m.reconcileObservedMutation(d,e);const u=n.takeRecords();if(u.length>0){for(let d=0;d<u.length;d++){const m=u[d],h=m.addedNodes,g=m.target;for(let p=0;p<h.length;p++){const y=h[p],b=y.parentNode;b==null||y.nodeName!=="BR"||Ql(y,g,e)||b.removeChild(y)}}n.takeRecords()}o!==null&&(l&&Pt(o),Oo&&Fx(e)&&o.insertRawText(f))})}finally{pu=!1}}function Tv(e){const t=e._observer;t!==null&&kv(e,t.takeRecords(),t)}function Nv(e){(function(t){Dd===0&&en(t).addEventListener("textInput",vT,!0)})(e),e._observer=new MutationObserver((t,n)=>{kv(e,t,n)})}function CT(e){const t=new Map,n=new Set;for(let r=typeof e=="function"?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:o}=sl(r);if(o&&o.stateConfigs)for(const i of o.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,t.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:t}}let _T=class Ov{constructor(t,n,r=void 0,o=new Map,i=void 0){D(this,"node");D(this,"knownState");D(this,"unknownState");D(this,"sharedNodeState");D(this,"size");this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,a=i!==void 0?i:(function(c,l,f){let u=f.size;if(l)for(const d in l){const m=c.get(d);m&&f.has(m)||u++}return u})(s,r,o);this.size=a}getValue(t){const n=this.knownState.get(t);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const o=this.unknownState[t.key];o!==void 0&&(r=t.parse(o)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},n={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in t&&(n[r]=t[r],delete t[r]);return Np(t)&&(n.$=t),n}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new Ov(t,n,(function(i,s,a){let c;if(a)for(const[l,f]of Object.entries(a)){const u=i.get(l);u?s.has(u)||s.set(u,u.parse(f)):(c=c||{},c[l]=f)}return c})(n.sharedConfigMap,o,r),o,this.size)}updateFromKnown(t,n){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:o,unknownState:i}=this;o.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=Np(i)),this.size++),o.set(t,n)}updateFromUnknown(t,n){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=n)}updateFromJSON(t){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,t)for(const[r,o]of Object.entries(t))this.updateFromUnknown(r,o)}};function ET(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new _T(t,Pv(t));return t.__state=n,n}function Pv(e){return e.__state?e.__state.sharedNodeState:Sx(rm(),e.getType()).sharedNodeState}function Np(e){if(e)for(const t in e)return e}function Op(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const i=n?n.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function Pp(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!e.has(i)&&(e.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function Mp(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ip(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,c=e.__state,l=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||c===l||(function(f,u){if(f===u)return!0;if(f&&u&&f.size!==u.size)return!1;const d=new Set;return!(f&&Op(d,f,u)||u&&Op(d,u,f)||f&&Pp(d,f,u)||u&&Pp(d,u,f))})(c,l))}function Lp(e,t){const n=e.mergeWithSibling(t),r=Re()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Rp(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&X(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Ip(t,r)){r=Lp(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Ip(r,n)){r=Lp(r,n);break}break}n.remove()}}else r.remove()}function Fi(e){return Dp(e.anchor),Dp(e.focus),e}function Dp(e){for(;e.type==="element";){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),X(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!R(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Mo,vt,Ls,Zc,gu,yu,Io,cn,bu,Rs,Je="",yn=null,Xr=null,qn="",ai=!1,dc=!1;function mc(e,t){const n=Io.get(e);if(t!==null){const r=Au(e);r.parentNode===t&&t.removeChild(r)}if(cn.has(e)||vt._keyToDOMMap.delete(e),R(n)){const r=pc(n,Io);vu(r,0,r.length-1,null)}n!==void 0&&tm(Rs,Ls,Zc,n,"destroyed")}function vu(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&mc(i,r)}}function Jr(e,t){e.setProperty("text-align",t)}const ST="40px";function Mv(e,t){const n=Mo.theme.indent;if(typeof n=="string"){const o=e.classList.contains(n);t>0&&!o?e.classList.add(n):t<1&&o&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||ST;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function Iv(e,t){const n=e.style;t===0?Jr(n,""):t===1?Jr(n,"left"):t===2?Jr(n,"center"):t===3?Jr(n,"right"):t===4?Jr(n,"justify"):t===5?Jr(n,"start"):t===6&&Jr(n,"end")}function xu(e,t){const n=(function(r){const o=r.__dir;if(o!==null)return o;if(Ye(r))return null;const i=r.getParentOrThrow();return Ye(i)&&i.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}function hc(e,t){const n=cn.get(e);n===void 0&&B(60);const r=n.createDOM(Mo,vt);if((function(o,i,s){const a=s._keyToDOMMap;(function(c,l,f){const u=`__lexicalKey_${l._key}`;c[u]=f})(i,s,o),a.set(o,i)})(e,r,vt),X(n)?r.setAttribute("data-lexical-text","true"):Te(n)&&r.setAttribute("data-lexical-decorator","true"),R(n)){const o=n.__indent,i=n.__size;if(xu(r,n),o!==0&&Mv(r,o),i!==0){const a=i-1;wu(pc(n,cn),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&Iv(r,s),n.isInline()||Lv(null,n,r),il(n)&&(Je+=jr,qn+=jr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(vt,Mo);i!==null&&Rv(e,i),r.contentEditable="false"}Je+=o,qn+=o}return t!==null&&t.insertChild(r),tm(Rs,Ls,Zc,n,"created"),r}function wu(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){hc(e[s],o);const a=cn.get(e[s]);a!==null&&X(a)&&yn===null&&(yn=a.getFormat(),Xr=a.getStyle())}il(t)&&(Je+=jr),o.element.__lexicalTextContent=Je,Je=i+Je}function Fp(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return xo(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function Lv(e,t,n){const r=Fp(e,Io),o=Fp(t,cn);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function kT(e,t,n){var r;yn=null,Xr=null,(function(o,i,s){const a=Je,c=o.__size,l=i.__size;Je="";const f=s.element;if(c===1&&l===1){const u=o.__first,d=i.__first;if(u===d)ys(u,f);else{const h=Au(u),g=hc(d,null);try{f.replaceChild(g,h)}catch(p){if(typeof p=="object"&&p!=null){const y=`${p.toString()} Parent: ${f.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${h.tagName}, key: ${u}}.`;throw new Error(y)}throw p}mc(u,null)}const m=cn.get(d);X(m)&&yn===null&&(yn=m.getFormat(),Xr=m.getStyle())}else{const u=pc(o,Io),d=pc(i,cn);if(u.length!==c&&B(227),d.length!==l&&B(228),c===0)l!==0&&wu(d,i,0,l-1,s);else if(l===0){if(c!==0){const m=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;vu(u,0,c-1,m?null:f),m&&(f.textContent="")}}else(function(m,h,g,p,y,b){const x=p-1,w=y-1;let A,E,S=b.getFirstChild(),_=0,N=0;for(;_<=x&&N<=w;){const W=h[_],j=g[N];if(W===j)S=Gl(ys(j,b.element)),_++,N++;else{A===void 0&&(A=new Set(h)),E===void 0&&(E=new Set(g));const Y=E.has(W),Q=A.has(j);if(Y)if(Q){const oe=Do(vt,j);oe===S?S=Gl(ys(j,b.element)):(b.withBefore(S).insertChild(oe),ys(j,b.element)),_++,N++}else hc(j,b.withBefore(S)),N++;else S=Gl(Au(W)),mc(W,b.element),_++}const z=cn.get(j);z!==null&&X(z)&&yn===null&&(yn=z.getFormat(),Xr=z.getStyle())}const P=_>x,I=N>w;if(P&&!I){const W=g[w+1],j=W===void 0?null:vt.getElementByKey(W);wu(g,m,N,w,b.withBefore(j))}else I&&!P&&vu(h,_,x,b.element)})(i,u,d,c,l,s)}il(i)&&(Je+=jr),f.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,yn==null||yn===r.__textFormat||dc||r.setTextFormat(yn),(function(o){Xr==null||Xr===o.__textStyle||dc||o.setTextStyle(Xr)})(t)}function pc(e,t){const n=[];let r=e.__first;for(;r!==null;){const o=t.get(r);o===void 0&&B(101),n.push(r),r=o.__next}return n}function ys(e,t){const n=Io.get(e);let r=cn.get(e);n!==void 0&&r!==void 0||B(61);const o=ai||yu.has(e)||gu.has(e),i=Do(vt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,qn+=s)}else{const s=n.getTextContent();qn+=s,Je+=s}return i}if(n!==r&&o&&tm(Rs,Ls,Zc,r,"updated"),r.updateDOM(n,i,Mo)){const s=hc(e,null);return t===null&&B(62),t.replaceChild(s,i),mc(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(ai||s!==n.__indent)&&Mv(i,s);const a=r.__format;if((ai||a!==n.__format)&&Iv(i,a),o&&(kT(n,r,i),Ye(r)||r.isInline()||Lv(n,r,i)),il(r)&&(Je+=jr,qn+=jr),(ai||r.__dir!==n.__dir)&&(xu(i,r),Ye(r)&&!ai))for(const c of r.getChildren())R(c)&&xu(Do(vt,c.getKey()),c)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(vt,Mo);a!==null&&Rv(e,a)}Je+=s,qn+=s}if(!dc&&Ye(r)&&r.__cachedText!==qn){const s=r.getWritable();s.__cachedText=qn,r=s}return i}function Rv(e,t){let n=vt._pendingDecorators;const r=vt._decorators;if(n===null){if(r[e]===t)return;n=Mx(vt)}n[e]=t}function Gl(e){let t=e.nextSibling;return t!==null&&t===vt._blockCursorElement&&(t=t.nextSibling),t}function TT(e,t,n,r,o,i){Je="",qn="",ai=r===2,vt=n,Mo=n._config,Ls=n._nodes,Zc=vt._listeners.mutation,gu=o,yu=i,Io=e._nodeMap,cn=t._nodeMap,dc=t._readOnly,bu=new Map(n._keyToDOMMap);const s=new Map;return Rs=s,ys("root",null),vt=void 0,Ls=void 0,gu=void 0,yu=void 0,Io=void 0,cn=void 0,Mo=void 0,bu=void 0,Rs=void 0,s}function Au(e){const t=bu.get(e);return t===void 0&&B(75,e),t}function me(e){return{type:e}}const Jc=me("SELECTION_CHANGE_COMMAND"),NT=me("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Fd=me("CLICK_COMMAND"),Dv=me("BEFORE_INPUT_COMMAND"),Fv=me("INPUT_COMMAND"),jv=me("COMPOSITION_START_COMMAND"),zv=me("COMPOSITION_END_COMMAND"),bo=me("DELETE_CHARACTER_COMMAND"),yi=me("INSERT_LINE_BREAK_COMMAND"),Ds=me("INSERT_PARAGRAPH_COMMAND"),bi=me("CONTROLLED_TEXT_INSERTION_COMMAND"),Xc=me("PASTE_COMMAND"),Cu=me("REMOVE_TEXT_COMMAND"),Fs=me("DELETE_WORD_COMMAND"),js=me("DELETE_LINE_COMMAND"),Sn=me("FORMAT_TEXT_COMMAND"),jd=me("UNDO_COMMAND"),zd=me("REDO_COMMAND"),$v=me("KEYDOWN_COMMAND"),Bv=me("KEY_ARROW_RIGHT_COMMAND"),OT=me("MOVE_TO_END"),Uv=me("KEY_ARROW_LEFT_COMMAND"),PT=me("MOVE_TO_START"),Wv=me("KEY_ARROW_UP_COMMAND"),Kv=me("KEY_ARROW_DOWN_COMMAND"),zs=me("KEY_ENTER_COMMAND"),Hv=me("KEY_SPACE_COMMAND"),qv=me("KEY_BACKSPACE_COMMAND"),$d=me("KEY_ESCAPE_COMMAND"),Vv=me("KEY_DELETE_COMMAND"),Yv=me("KEY_TAB_COMMAND"),MT=me("INSERT_TAB_COMMAND"),IT=me("INDENT_CONTENT_COMMAND"),jp=me("OUTDENT_CONTENT_COMMAND"),Qv=me("DROP_COMMAND"),LT=me("FORMAT_ELEMENT_COMMAND"),Gv=me("DRAGSTART_COMMAND"),Zv=me("DRAGOVER_COMMAND"),RT=me("DRAGEND_COMMAND"),el=me("COPY_COMMAND"),Bd=me("CUT_COMMAND"),_u=me("SELECT_ALL_COMMAND"),DT=me("CLEAR_EDITOR_COMMAND"),FT=me("CLEAR_HISTORY_COMMAND"),ka=me("CAN_REDO_COMMAND"),Ta=me("CAN_UNDO_COMMAND"),jT=me("FOCUS_COMMAND"),zT=me("BLUR_COMMAND"),$T=me("KEY_MODIFIER_COMMAND"),$n=Object.freeze({}),Eu=[["keydown",function(e,t){$s=e.timeStamp,Jv=e.key,!t.isComposing()&&ie(t,$v,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;ts(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&Nn(t,()=>{kx(n)||(Tu=!0)})}],["compositionstart",function(e,t){ie(t,jv,e)}],["compositionend",function(e,t){Oo?bs=!0:Qi||!na&&!ra?ie(t,zv,e):(Nu=!0,Ou=e.data)}],["input",function(e,t){e.stopPropagation(),Nn(t,()=>{t.dispatchCommand(Fv,e)},{event:e}),ci=null}],["click",function(e,t){Nn(t,()=>{const n=Z(),r=tn(en(t)),o=Ji();if(r){if($(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!Ye(s)&&We().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const a=at(s,c=>R(c)&&!c.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(ht(i)||ur(i))&&Pt(Wd(o,r,t,e))}}ie(t,Fd,e)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];uc&&Eu.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||Oo&&Fx(r)||o!=="insertCompositionText"&&ie(r,Dv,n)})(e,t)]);let $s=0,Jv=null,Xv=0,ci=null;const Su=new WeakMap,gc=new WeakMap;let ku=!1,Tu=!1,Cs=!1,bs=!1,Nu=!1,Ou="",no=null,ex=[0,"",0,"root",0];function tx(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),c=Re(),l=tn(en(c)),f=l!==null?l.anchorNode:null,u=i.key,d=c.getElementByKey(u),m=n.length;return u!==s.key||!X(a)||(!o&&(!uc||Xv<r+50)||a.isDirty()&&m<2||Lx(n))&&i.offset!==s.offset&&!a.isComposing()||Hn(a)||a.isDirty()&&m>1||(o||!uc)&&d!==null&&!a.isComposing()&&f!==ji(d)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||(function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const p=h.anchor.offset,y=g.getParentOrThrow(),b=wo(g);return p===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||b||(function(x){const w=x.getPreviousSibling();return(X(w)||R(w)&&w.isInline())&&!w.canInsertTextAfter()})(g):p===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||b)})(e,a)}function zp(e,t){return ur(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function $p(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;ku&&(ku=!1,zp(r,o)&&zp(i,s)&&!no)||Nn(t,()=>{if(!n)return void Pt(null);if(!aa(t,r,i))return;let a=Z();if(no&&$(a)&&a.isCollapsed()){const c=a.anchor,l=no.anchor;(c.key===l.key&&c.offset===l.offset+1||c.offset===1&&l.getNode().is(c.getNode().getPreviousSibling()))&&(a=no.clone(),Pt(a))}if(no=null,$(a)){const c=a.anchor,l=c.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const f=en(t).event,u=f?f.timeStamp:performance.now(),[d,m,h,g,p]=ex,y=We(),b=t.isComposing()===!1&&y.getTextContent()==="";if(u<p+200&&c.offset===h&&c.key===g)Va(a,d,m);else if(c.type==="text")X(l)||B(141),nx(a,l);else if(c.type==="element"&&!b){R(l)||B(259);const x=c.getNode();x.isEmpty()?(function(w,A){const E=A.getTextFormat(),S=A.getTextStyle();Va(w,E,S)})(a,x):Va(a,0,"")}}else{const f=c.key,u=a.focus.key,d=a.getNodes(),m=d.length,h=a.isBackward(),g=h?s:o,p=h?o:s,y=h?u:f,b=h?f:u;let x=2047,w=!1;for(let A=0;A<m;A++){const E=d[A],S=E.getTextContentSize();if(X(E)&&S!==0&&!(A===0&&E.__key===y&&g===S||A===m-1&&E.__key===b&&p===0)&&(w=!0,x&=E.getFormat(),x===0))break}a.format=w?x:0}}ie(t,Jc,void 0)})}function Va(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function nx(e,t){Va(e,t.getFormat(),t.getStyle())}function rx(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function BT(e){const t=e.inputType,n=rx(e),r=Re(),o=Z();if(t==="deleteContentBackward"){if(o===null){const u=Ji();if(!$(u))return!0;Pt(u.clone())}if($(o)){const u=o.anchor.key===o.focus.key;if(i=e.timeStamp,Jv==="MediaLast"&&i<$s+30&&r.isComposing()&&u){if(ut(null),$s=0,setTimeout(()=>{Nn(r,()=>{ut(null)})},30),$(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||B(142),nx(o,d)}}else{ut(null),e.preventDefault();const d=o.anchor.getNode(),m=d.getTextContent(),h=d.canInsertTextAfter(),g=o.anchor.offset===0&&o.focus.offset===m.length;let p=Sp&&u&&!g&&h;if(p&&o.isCollapsed()&&(p=!Te(Du(o.anchor,!0))),!p){ie(r,bo,!0);const y=Z();Sp&&$(y)&&y.isCollapsed()&&(no=y,setTimeout(()=>no=null))}}return!0}}var i;if(!$(o))return!0;const s=e.data;ci!==null&&Xd(!1,r,ci),o.dirty&&ci===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),ci=null;const a=o.anchor,c=o.focus,l=a.getNode(),f=c.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
597
|
+
`)e.preventDefault(),ie(r,yi,!1);else if(s===jr)e.preventDefault(),ie(r,Ds,void 0);else if(s==null&&e.dataTransfer){const u=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(u)}else s!=null&&tx(o,n,s,e.timeStamp,!0)?(e.preventDefault(),ie(r,bi,s)):ci=s;return Xv=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(r,bi,e);break;case"insertFromComposition":ut(null),ie(r,bi,e);break;case"insertLineBreak":ut(null),ie(r,yi,!1);break;case"insertParagraph":ut(null),Cs&&!Qi?(Cs=!1,ie(r,yi,!1)):ie(r,Ds,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(r,Xc,e);break;case"deleteByComposition":(function(u,d){return u!==d||R(u)||R(d)||!wo(u)||!wo(d)})(l,f)&&ie(r,Cu,e);break;case"deleteByDrag":case"deleteByCut":ie(r,Cu,e);break;case"deleteContent":ie(r,bo,!1);break;case"deleteWordBackward":ie(r,Fs,!0);break;case"deleteWordForward":ie(r,Fs,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(r,js,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(r,js,!1);break;case"formatStrikeThrough":ie(r,Sn,"strikethrough");break;case"formatBold":ie(r,Sn,"bold");break;case"formatItalic":ie(r,Sn,"italic");break;case"formatUnderline":ie(r,Sn,"underline");break;case"historyUndo":ie(r,jd,void 0);break;case"historyRedo":ie(r,zd,void 0)}return!0}function UT(e){if(ht(e.target)&&kx(e.target))return!0;const t=Re(),n=Z(),r=e.data,o=rx(e);if(r!=null&&$(n)&&tx(n,o,r,e.timeStamp,!1)){bs&&(yc(t,r),bs=!1);const i=n.anchor.getNode(),s=tn(en(t));if(s===null)return!0;const a=n.isBackward(),c=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;uc&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,c)+r+i.getTextContent().slice(c+l)===Dx(s.anchorNode)||ie(t,bi,r);const f=r.length;Oo&&f>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=f),na||Qi||ra||!t.isComposing()||($s=0,ut(null))}else Xd(!1,t,r!==null?r:void 0),bs&&(yc(t,r||void 0),bs=!1);return(function(){bt();const i=Re();Tv(i)})(),!0}function WT(e){const t=Re(),n=Z();if($(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ut(r.key),(e.timeStamp<$s+30||r.type==="element"||!n.isCollapsed()||o.getFormat()!==n.format||X(o)&&o.getStyle()!==n.style)&&ie(t,bi,hT)}return!0}function KT(e){return yc(Re(),e.data),!0}function yc(e,t){const n=e._compositionKey;if(ut(null),n!==null&&t!=null){if(t===""){const r=Xe(n),o=ji(e.getElementByKey(n));return void(o!==null&&o.nodeValue!==null&&X(r)&&em(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
|
|
598
|
+
`){const r=Z();if($(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,zs,null)}}}Xd(!0,e,t)}function HT(e){const t=Re();if(e.key==null)return!0;if(Nu&&ug(e))return Nn(t,()=>{yc(t,Ou)}),Nu=!1,Ou="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,Bv,e);else if((function(n){return Ie(n,"ArrowRight",Wn)})(e))ie(t,OT,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,Uv,e);else if((function(n){return Ie(n,"ArrowLeft",Wn)})(e))ie(t,PT,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,Wv,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,Kv,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))Cs=!0,ie(t,zs,e);else if((function(n){return n.key===" "})(e))ie(t,Hv,e);else if((function(n){return an&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),Cs=!0,ie(t,yi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))Cs=!1,ie(t,zs,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||an&&Ie(n,"h",{ctrlKey:!0})})(e))ug(e)?ie(t,qv,e):(e.preventDefault(),ie(t,bo,!0));else if((function(n){return n.key==="Escape"})(e))ie(t,$d,e);else if((function(n){return Ie(n,"Delete",{})||an&&Ie(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?ie(t,Vv,e):(e.preventDefault(),ie(t,bo,!1));else if((function(n){return Ie(n,"Backspace",fg)})(e))e.preventDefault(),ie(t,Fs,!0);else if((function(n){return Ie(n,"Delete",fg)})(e))e.preventDefault(),ie(t,Fs,!1);else if((function(n){return an&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,js,!0);else if((function(n){return an&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,js,!1);else if((function(n){return Ie(n,"b",Wn)})(e))e.preventDefault(),ie(t,Sn,"bold");else if((function(n){return Ie(n,"u",Wn)})(e))e.preventDefault(),ie(t,Sn,"underline");else if((function(n){return Ie(n,"i",Wn)})(e))e.preventDefault(),ie(t,Sn,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,Yv,e);else if((function(n){return Ie(n,"z",Wn)})(e))e.preventDefault(),ie(t,jd,void 0);else if((function(n){return an?Ie(n,"z",{metaKey:!0,shiftKey:!0}):Ie(n,"y",{ctrlKey:!0})||Ie(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),ie(t,zd,void 0);else{const n=t._editorState._selection;n===null||$(n)?dg(e)&&(e.preventDefault(),ie(t,_u,e)):(function(r){return Ie(r,"c",Wn)})(e)?(e.preventDefault(),ie(t,el,e)):(function(r){return Ie(r,"x",Wn)})(e)?(e.preventDefault(),ie(t,Bd,e)):dg(e)&&(e.preventDefault(),ie(t,_u,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand($T,e),!0}function ox(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const vi=new Map;function ix(e){const t=_6(e.target);if(t===null)return;const n=Tx(t.anchorNode);if(n===null)return;Tu&&(Tu=!1,Nn(n,()=>{const c=Ji(),l=t.anchorNode;(ht(l)||ur(l))&&Pt(Wd(c,t,n,e))}));const r=Jd(n),o=r[r.length-1],i=o._key,s=vi.get(i),a=s||o;a!==n&&$p(t,a,!1),$p(t,n,!0),n!==o?vi.set(i,n):s&&vi.delete(i)}function Bp(e){e._lexicalHandled=!0}function Up(e){return e._lexicalHandled===!0}function qT(e){const t=Su.get(e);if(t===void 0)return;const n=gc.get(t);if(n===void 0)return;const r=n-1;r>=0||B(164),Su.delete(e),gc.set(t,r),r===0&&t.removeEventListener("selectionchange",ix);const o=rl(e);Zd(o)?((function(s){if(s._parentEditor!==null){const a=Jd(s),c=a[a.length-1]._key;vi.get(c)===s&&vi.delete(c)}else vi.delete(s._key)})(o),e.__lexicalEditor=null):o&&B(198);const i=ox(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function Pu(e,t,n){bt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const c=Z();if(!$(c)||!R(a))return c;const{anchor:l,focus:f}=c,u=l.getNode(),d=f.getNode();return Fu(u,a)&&l.set(a.__key,0,"element"),Fu(d,a)&&f.set(a.__key,0,"element"),c})(e);let s=!1;if($(i)&&t){const a=i.anchor,c=i.focus;a.key===r&&(xc(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),c.key===r&&(xc(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else ot(i)&&t&&e.isSelected()&&e.selectPrevious();if($(i)&&t&&!s){const a=e.getIndexWithinParent();Ao(e),vc(i,o,a,-1)}else Ao(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||Pu(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const sx=Symbol.for("ephemeral");function bc(e){return e[sx]||!1}class ln{constructor(t){D(this,"__type");D(this,"__key");D(this,"__parent");D(this,"__prev");D(this,"__next");D(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),y6(this,t)}static getType(){const{ownNodeType:t}=sl(this);return t===void 0&&B(64,this.name),t}static clone(t){B(65,this.name)}$config(){return{}}config(t,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:t}),{[t]:n}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){B(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const n=Xe(t);if(n===null)break;t=n.__parent}return!1}isSelected(t){const n=t||Z();if(n==null)return!1;const r=n.getNodes().some(o=>o.__key===this.__key);if(X(this))return r;if($(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const o=this.getParent();if(Te(this)&&this.isInline()&&o){const i=n.isBackward()?n.focus:n.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let n=t.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Xe(t)}getParentOrThrow(){const t=this.getParent();return t===null&&B(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const n=t.getParent();if(jt(n))return R(t)||t===this&&Te(t)||B(194),t;t=n}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&B(67,this.__key),t}getParents(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n),n=n.getParent();return t}getParentKeys(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n.__key),n=n.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Xe(t)}getPreviousSiblings(){const t=[],n=this.getParent();if(n===null)return t;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Xe(t)}getNextSiblings(){const t=[];let n=this.getNextSibling();for(;n!==null;)t.push(n),n=n.getNextSibling();return t}getCommonAncestor(t){const n=R(this)?this:this.getParent(),r=R(t)?t:t.getParent(),o=n&&r?Qa(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=Qa(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Wx(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&B(279),!1)))}isParentOf(t){const n=Qa(this,t);return n!==null&&n.type==="ancestor"}getNodesBetween(t){const n=this.isBefore(t),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===t)break;const a=R(i)?n?i.getFirstChild():i.getLastChild():null;if(a!==null){i=a;continue}const c=n?i.getNextSibling():i.getPreviousSibling();if(c!==null){i=c;continue}const l=i.getParentOrThrow();if(o.has(l.__key)||r.push(l),l===t)break;let f=null,u=l;do{if(u===null&&B(68),f=n?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;f!==null||o.has(u.__key)||r.push(u)}while(f===null);i=f}return n||r.reverse(),r}isDirty(){const t=Re()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(bc(this))return this;const t=Xe(this.__key);return t===null&&B(113),t}getWritable(){if(bc(this))return this;bt();const t=Kr(),n=Re(),r=t._nodeMap,o=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,a=Z();if(a!==null&&a.setCachedNodes(null),s.has(o))return Ac(i),i;const c=$x(i);return s.add(o),Ac(c),r.set(o,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,n){B(70)}updateDOM(t,n,r){B(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){B(18,this.name)}updateFromJSON(t){return(function(n,r){const o=n.getWritable(),i=r.$;let s=i;for(const a of Pv(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&ET(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){Pu(this,!0,t)}replace(t,n){bt();let r=Z();r!==null&&(r=r.clone()),nf(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),c=this.getParentOrThrow().getWritable(),l=c.__size;Ao(a);const f=o.getPreviousSibling(),u=o.getNextSibling(),d=o.__prev,m=o.__next,h=o.__parent;if(Pu(o,!1,!0),f===null?c.__first=s:f.getWritable().__next=s,a.__prev=d,u===null?c.__last=s:u.getWritable().__prev=s,a.__next=m,a.__parent=h,c.__size=l,n&&(R(this)&&R(a)||B(139),this.getChildren().forEach(g=>{a.append(g)})),$(r)){Pt(r);const g=r.anchor,p=r.focus;g.key===i&&qp(g,a),p.key===i&&qp(p,a)}return Tr()===i&&ut(s),a}insertAfter(t,n=!0){bt(),nf(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,c=!1;if(i!==null){const m=t.getIndexWithinParent();if(Ao(o),$(s)){const h=i.__key,g=s.anchor,p=s.focus;a=g.type==="element"&&g.key===h&&g.offset===m+1,c=p.type==="element"&&p.key===h&&p.offset===m+1}}const l=this.getNextSibling(),f=this.getParentOrThrow().getWritable(),u=o.__key,d=r.__next;if(l===null?f.__last=u:l.getWritable().__prev=u,f.__size++,r.__next=u,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&$(s)){const m=this.getIndexWithinParent();vc(s,f,m+1);const h=f.__key;a&&s.anchor.set(h,m+2,"element"),c&&s.focus.set(h,m+2,"element")}return t}insertBefore(t,n=!0){bt(),nf(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;Ao(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),c=r.__prev,l=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=c,o.__next=r.__key,o.__parent=r.__parent;const f=Z();return n&&$(f)&&vc(f,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){bt();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(R(r))return r.select();if(!X(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(t,n)}selectNext(t,n){bt();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(R(r))return r.select(0,0);if(!X(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(t,n)}markDirty(){this.getWritable()}reconcileObservedMutation(t,n){this.markDirty()}}D(ln,"importDOM");const Mu="historic",VT="history-push",vo="history-merge",YT="paste",QT="collaboration",GT="skip-scroll-into-view",ZT="skip-dom-selection",JT="skip-selection-focus";class Gi extends ln{static getType(){return"linebreak"}static clone(t){return new Gi(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
599
|
+
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(n){const r=n.parentElement;if(r!==null&&Cc(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Na(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&Na(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&Cc(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Na(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&Na(i))return!0}return!1})(t)?null:{conversion:XT,priority:0}}}static importJSON(t){return Lo().updateFromJSON(t)}}function XT(e){return{node:Lo()}}function Lo(){return Hr(new Gi)}function xo(e){return e instanceof Gi}function Na(e){return ur(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Zl(e,t){return 16&t?"code":t&Ev?"mark":32&t?"sub":64&t?"sup":null}function Jl(e,t){return 1&t?"strong":2&t?"em":"span"}function ax(e,t,n,r,o){const i=r.classList;let s=xi(o,"base");s!==void 0&&i.add(...s),s=xi(o,"underlineStrikethrough");let a=!1;const c=8&t&&4&t;s!==void 0&&(8&n&&4&n?(a=!0,c||i.add(...s)):c&&i.remove(...s));for(const l in Po){const f=Po[l];if(s=xi(o,l),s!==void 0)if(n&f){if(a&&(l==="underline"||l==="strikethrough")){t&f&&i.remove(...s);continue}((t&f)===0||c&&l==="underline"||l==="strikethrough")&&i.add(...s)}else t&f&&i.remove(...s)}}function cx(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?Gc:"");if(r==null)t.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||Oo){const[a,c,l]=(function(f,u){const d=f.length,m=u.length;let h=0,g=0;for(;h<d&&h<m&&f[h]===u[h];)h++;for(;g+h<d&&g+h<m&&f[d-g-1]===u[m-g-1];)g++;return[h,d-h-g,u.slice(h,m-g)]})(s,i);c!==0&&r.deleteData(a,c),r.insertData(a,l)}else r.nodeValue=i}}function Wp(e,t,n,r,o,i){cx(o,e,t);const s=i.theme.text;s!==void 0&&ax(0,0,r,e,s)}function Oa(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Wr extends ln{constructor(n="",r){super(r);D(this,"__text");D(this,"__format");D(this,"__style");D(this,"__mode");D(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new Wr(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return bT[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Tr()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const r=Po[n];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,r){return wc(this.getLatest().__format,n,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,r){const o=this.__format,i=Zl(0,o),s=Jl(0,o),a=i===null?s:i,c=document.createElement(a);let l=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),i!==null&&(l=document.createElement(s),c.appendChild(l)),Wp(l,this,0,o,this.__text,n);const f=this.__style;return f!==""&&(c.style.cssText=f),c}updateDOM(n,r,o){const i=this.__text,s=n.__format,a=this.__format,c=Zl(0,s),l=Zl(0,a),f=Jl(0,s),u=Jl(0,a);if((c===null?f:c)!==(l===null?u:l))return!0;if(c===l&&f!==u){const p=r.firstChild;p==null&&B(48);const y=document.createElement(u);return Wp(y,this,0,a,i,o),r.replaceChild(y,p),!1}let d=r;l!==null&&c!==null&&(d=r.firstChild,d==null&&B(49)),cx(i,d,this);const m=o.theme.text;m!==void 0&&s!==a&&ax(0,s,a,d,m);const h=n.__style,g=this.__style;return h!==g&&(r.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:r6,priority:0}),b:()=>({conversion:t6,priority:0}),code:()=>({conversion:Bn,priority:0}),em:()=>({conversion:Bn,priority:0}),i:()=>({conversion:Bn,priority:0}),mark:()=>({conversion:Bn,priority:0}),s:()=>({conversion:Bn,priority:0}),span:()=>({conversion:e6,priority:0}),strong:()=>({conversion:Bn,priority:0}),sub:()=>({conversion:Bn,priority:0}),sup:()=>({conversion:Bn,priority:0}),u:()=>({conversion:Bn,priority:0})}}static importJSON(n){return rt().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:r}=super.exportDOM(n);return ht(r)||B(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Oa(r,"b")),this.hasFormat("italic")&&(r=Oa(r,"i")),this.hasFormat("strikethrough")&&(r=Oa(r,"s")),this.hasFormat("underline")&&(r=Oa(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,r){}setFormat(n){const r=this.getWritable();return r.__format=typeof n=="string"?Po[n]:n,r}setDetail(n){const r=this.getWritable();return r.__detail=typeof n=="string"?pT[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=wc(this.getFormat(),n,null);return this.setFormat(r)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const r=yT[n];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(n){if(this.__text===n)return this;const r=this.getWritable();return r.__text=n,r}select(n,r){bt();let o=n,i=r;const s=Z(),a=this.getTextContent(),c=this.__key;if(typeof a=="string"){const l=a.length;o===void 0&&(o=l),i===void 0&&(i=l)}else o=0,i=0;if(!$(s))return dx(c,o,c,i,"text","text");{const l=Tr();l!==s.anchor.key&&l!==s.focus.key||ut(c),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,r,o,i){const s=this.getWritable(),a=s.__text,c=o.length;let l=n;l<0&&(l=c+l,l<0&&(l=0));const f=Z();if(i&&$(f)){const d=n+c;f.setTextNodeRange(s,d,s,d)}const u=a.slice(0,l)+o+a.slice(l+r);return s.__text=u,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){bt();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Tr(),a=o.length;n.sort((N,P)=>N-P),n.push(a);const c=[],l=n.length;for(let N=0,P=0;N<a&&P<=l;P++){const I=n[P];I>N&&(c.push(o.slice(N,I)),N=I)}const f=c.length;if(f===1)return[r];const u=c[0],d=r.getParent();let m;const h=r.getFormat(),g=r.getStyle(),p=r.__detail;let y=!1,b=null,x=null;const w=Z();if($(w)){const[N,P]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];N.type==="text"&&N.key===i&&(b=N),P.type==="text"&&P.key===i&&(x=P)}r.isSegmented()?(m=rt(u),m.__format=h,m.__style=g,m.__detail=p,m.__state=Mp(r,m),y=!0):m=r.setTextContent(u);const A=[m];for(let N=1;N<f;N++){const P=rt(c[N]);P.__format=h,P.__style=g,P.__detail=p,P.__state=Mp(r,P);const I=P.__key;s===i&&ut(I),A.push(P)}const E=b?b.offset:null,S=x?x.offset:null;let _=0;for(const N of A){if(!b&&!x)break;const P=_+N.getTextContentSize();if(b!==null&&E!==null&&E<=P&&E>=_&&(b.set(N.getKey(),E-_,"text"),E<P&&(b=null)),x!==null&&S!==null&&S<=P&&S>=_){x.set(N.getKey(),S-_,"text");break}_=P}if(d!==null){(function(I){const W=I.getPreviousSibling(),j=I.getNextSibling();W!==null&&Ac(W),j!==null&&Ac(j)})(this);const N=d.getWritable(),P=this.getIndexWithinParent();y?(N.splice(P,0,A),this.remove()):N.splice(P,1,A),$(w)&&vc(w,d,P,f-1)}return A}mergeWithSibling(n){const r=n===this.getPreviousSibling();r||n===this.getNextSibling()||B(50);const o=this.__key,i=n.__key,s=this.__text,a=s.length;Tr()===i&&ut(o);const c=Z();if($(c)){const d=c.anchor,m=c.focus;d!==null&&d.key===i&&Xp(d,r,o,n,a),m!==null&&m.key===i&&Xp(m,r,o,n,a)}const l=n.__text,f=r?l+s:s+l;this.setTextContent(f);const u=this.getWritable();return n.remove(),u}isTextEntity(){return!1}}function e6(e){return{forChild:Ud(e.style),node:null}}function t6(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Ud(t.style,n?void 0:"bold"),node:null}}const Kp=new WeakMap;function n6(e){if(!ht(e))return!1;if(e.nodeName==="PRE")return!0;const t=e.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function r6(e){const t=e;e.parentElement===null&&B(129);let n=t.textContent||"";if((function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=Kp.get(i))===void 0&&!n6(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let c=0;c<s.length;c++)Kp.set(s[c],a);return a})(t)!==null){const r=n.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const a=r[s];a===`
|
|
600
600
|
`||a===`\r
|
|
601
|
-
`?o.push(Lo()):a===" "?o.push(
|
|
602
|
-
`),f=!d.isEmpty();else if(f=!1,X(d)){let
|
|
601
|
+
`?o.push(Lo()):a===" "?o.push(oa()):a!==""&&o.push(rt(a))}return{node:o}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=t,o=!0;for(;r!==null&&(r=Hp(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(n=n.slice(1)),o=!1;break}}o&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=t,o=!0;for(;r!==null&&(r=Hp(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:rt(n)}}function Hp(e,t){let n=e;for(;;){let r;for(;(r=t?n.nextSibling:n.previousSibling)===null;){const i=n.parentElement;if(i===null)return null;n=i}if(n=r,ht(n)){const i=n.style.display;if(i===""&&!$u(n)||i!==""&&!i.startsWith("inline"))return null}let o=n;for(;(o=t?n.firstChild:n.lastChild)!==null;)n=o;if(ur(n))return n;if(n.nodeName==="BR")return null}}const o6={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Bn(e){const t=o6[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Ud(e.style,t),node:null}}function rt(e=""){return Hr(new Wr(e))}function X(e){return e instanceof Wr}function Ud(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o=n==="700"||n==="bold",i=r.includes("line-through"),s=e.fontStyle==="italic",a=r.includes("underline"),c=e.verticalAlign;return l=>(X(l)&&(o&&!l.hasFormat("bold")&&l.toggleFormat("bold"),i&&!l.hasFormat("strikethrough")&&l.toggleFormat("strikethrough"),s&&!l.hasFormat("italic")&&l.toggleFormat("italic"),a&&!l.hasFormat("underline")&&l.toggleFormat("underline"),c!=="sub"||l.hasFormat("subscript")||l.toggleFormat("subscript"),c!=="super"||l.hasFormat("superscript")||l.toggleFormat("superscript"),t&&!l.hasFormat(t)&&l.toggleFormat(t)),l)}class Zi extends Wr{static getType(){return"tab"}static clone(t){return new Zi(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const n=super.createDOM(t),r=xi(t.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(t){return oa().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&Av(126),super.setTextContent(" ")}spliceText(t,n,r,o){return r===""&&n===0||r===" "&&n===1||B(286),this}setDetail(t){return t!==2&&B(127),this}setMode(t){return t!=="normal"&&B(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function oa(){return Hr(new Zi)}function lx(e){return e instanceof Zi}class i6{constructor(t,n,r){D(this,"key");D(this,"offset");D(this,"type");D(this,"_selection");this._selection=null,this.key=t,this.offset=n,this.type=r}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:Ux(Qt(or(this,"next")),Qt(or(t,"next")))<0}getNode(){const t=Xe(this.key);return t===null&&B(20),t}set(t,n,r,o){const i=this._selection,s=this.key;o&&this.key===t&&this.offset===n&&this.type===r||(this.key=t,this.offset=n,this.type=r,ia()||(Tr()===s&&ut(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function Mn(e,t,n){return new i6(e,t,n)}function Xl(e,t){let n=t.__key,r=e.offset,o="element";if(X(t)){o="text";const i=t.getTextContentSize();r>i&&(r=i)}else if(!R(t)){const i=t.getNextSibling();if(X(i))n=i.__key,r=0,o="text";else{const s=t.getParent();s&&(n=s.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function qp(e,t){if(R(t)){const n=t.getLastDescendant();R(n)||X(n)?Xl(e,n):Xl(e,t)}else Xl(e,t)}class tl{constructor(t){D(this,"_nodes");D(this,"_cachedNodes");D(this,"dirty");this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!ot(t))return!1;const n=this._nodes,r=t._nodes;return n.size===r.size&&Array.from(n).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new tl(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const n=this.getNodes(),r=n.length,o=n[r-1];let i;if(X(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s<r;s++)n[s].remove()}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=this._nodes,r=[];for(const o of n){const i=Xe(o);i!==null&&r.push(i)}return ia()||(this._cachedNodes=r),r}getTextContent(){const t=this.getNodes();let n="";for(let r=0;r<t.length;r++)n+=t[r].getTextContent();return n}deleteNodes(){const t=this.getNodes();if((Z()||Ji())===this&&t[0]){const n=xt(t[0],"next");F6(zr(n,n))}for(const n of t)n.remove()}}function $(e){return e instanceof Ko}class Ko{constructor(t,n,r,o){D(this,"format");D(this,"style");D(this,"anchor");D(this,"focus");D(this,"_cachedNodes");D(this,"dirty");this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!$(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=(function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const a=new Set,c=new Set;for(const l of r)if(On(l)){const{origin:f}=l;o.length===0?a.add(f):(c.add(f),o.push(f))}else{const{origin:f}=l;R(f)&&c.has(f)||o.push(f)}if(s&&o.push(s.caret.origin),$i(r.focus)&&R(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let l=un(r.focus.origin,"previous");On(l)&&a.has(l.origin)&&!l.origin.isEmpty()&&l.origin.is(o[o.length-1]);l=sm(l))a.delete(l.origin),o.pop();for(;o.length>1;){const l=o[o.length-1];if(!R(l)||c.has(l)||l.isEmpty()||a.has(l))break;o.pop()}if(o.length===0&&r.isCollapsed()){const l=Qt(r.anchor),f=Qt(r.anchor.getFlipped()),u=m=>Mr(m)?m.origin:m.getNodeAtCaret(),d=u(l)||u(f)||(r.anchor.getNodeAtCaret()?l.origin:f.origin);o.push(d)}return o})(Hx(bg(this),"next"));return ia()||(this._cachedNodes=n),n}setTextNodeRange(t,n,r,o){this.anchor.set(t.__key,n,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const n=t[0],r=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,c]=Iu(this);let l="",f=!0;for(let u=0;u<t.length;u++){const d=t[u];if(R(d)&&!d.isInline())f||(l+=`
|
|
602
|
+
`),f=!d.isEmpty();else if(f=!1,X(d)){let m=d.getTextContent();d===n?d===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(m=a<c?m.slice(a,c):m.slice(c,a)):m=s?m.slice(a):m.slice(c):d===r&&(m=s?m.slice(0,c):m.slice(0,a)),l+=m}else!Te(d)&&!xo(d)||d===r&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(t){const n=Re(),r=n.getEditorState()._selection,o=ux(t.startContainer,t.startOffset,t.endContainer,t.endOffset,n,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Fi(this)}clone(){const t=this.anchor,n=this.focus;return new Ko(Mn(t.key,t.offset,t.type),Mn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(t){this.format=wc(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const n=Po[t];return(this.format&n)!==0}insertRawText(t){const n=t.split(/(\r?\n|\t)/),r=[],o=n.length;for(let i=0;i<o;i++){const s=n[i];s===`
|
|
603
603
|
`||s===`\r
|
|
604
|
-
`?r.push(Lo()):s===" "?r.push(ta()):r.push(rt(s))}this.insertNodes(r)}insertText(t){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,a=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,a=n),s.type==="element"&&(function(m,y,v,b){const w=m.getNode(),A=w.getChildAtIndex(m.offset),_=rt();if(_.setFormat(v),_.setStyle(b),Bd(A))A.splice(0,0,[_]);else{const E=Ye(w)?Tt().append(_):_;A===null?w.append(E):A.insertBefore(E)}m.is(y)&&y.set(_.__key,0,"text"),m.set(_.__key,0,"text")})(s,a,o,i),a.type==="element"&&$o(a,Yt(nr(a,"next")));const c=s.offset;let l=a.offset;const f=this.getNodes(),u=f.length;let d=f[0];X(d)||U(26);const p=d.getTextContent().length,h=d.getParentOrThrow();let g=f[u-1];if(u===1&&a.type==="element"&&(l=p,a.set(s.key,l,"text")),this.isCollapsed()&&c===p&&(Wn(d)||!d.canInsertTextAfter()||!h.canInsertTextAfter()&&d.getNextSibling()===null)){let m=d.getNextSibling();if(X(m)&&m.canInsertTextBefore()&&!Wn(m)||(m=rt(),m.setFormat(o),m.setStyle(i),h.canInsertTextAfter()?d.insertAfter(m):h.insertAfter(m)),m.select(0,0),d=m,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&c===0&&(Wn(d)||!d.canInsertTextBefore()||!h.canInsertTextBefore()&&d.getPreviousSibling()===null)){let m=d.getPreviousSibling();if(X(m)&&!Wn(m)||(m=rt(),m.setFormat(o),h.canInsertTextBefore()?d.insertBefore(m):h.insertBefore(m)),m.select(),d=m,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&c!==p){const m=rt(d.getTextContent());m.setFormat(o),d.replace(m),d=m}else if(!this.isCollapsed()&&t!==""){const m=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(m)&&(!m.canInsertTextBefore()||!m.canInsertTextAfter()))return this.insertText(""),ex(this.anchor,this.focus,null),void this.insertText(t)}if(u===1){if(wo(d)){const b=rt(t);return b.select(),void d.replace(b)}const m=d.getFormat(),y=d.getStyle();if(c!==l||m===o&&y===i){if(Xb(d)){const b=rt(t);return b.setFormat(o),b.setStyle(i),b.select(),void d.replace(b)}}else{if(d.getTextContent()!==""){const b=rt(t);if(b.setFormat(o),b.setStyle(i),b.select(),c===0)d.insertBefore(b,!1);else{const[w]=d.splitText(c);w.insertAfter(b,!1)}return void(b.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const v=l-c;d=d.spliceText(c,v,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=m,this.style=y))}else{const m=new Set([...d.getParentKeys(),...g.getParentKeys()]),y=R(d)?d:d.getParentOrThrow();let v=R(g)?g:g.getParentOrThrow(),b=g;if(!y.is(v)&&v.isInline())do b=v,v=v.getParentOrThrow();while(v.isInline());if(a.type==="text"&&(l!==0||g.getTextContent()==="")||a.type==="element"&&g.getIndexWithinParent()<l)if(X(g)&&!wo(g)&&l!==g.getTextContentSize()){if(g.isSegmented()){const S=rt(g.getTextContent());g.replace(S),g=S}Ye(a.getNode())||a.type!=="text"||(g=g.spliceText(0,l,"")),m.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else m.add(g.__key);const w=v.getChildren(),A=new Set(f),_=y.is(v),E=y.isInline()&&d.getNextSibling()===null?y:d;for(let S=w.length-1;S>=0;S--){const N=w[S];if(N.is(d)||R(N)&&N.isParentOf(d))break;N.isAttached()&&(!A.has(N)||N.is(b)?_||E.insertAfter(N,!1):N.remove())}if(!_){let S=v,N=null;for(;S!==null;){const P=S.getChildren(),I=P.length;(I===0||P[I-1].is(N))&&(m.delete(S.__key),N=S),S=S.getParent()}}if(wo(d))if(c===p)d.select();else{const S=rt(t);S.select(),d.replace(S)}else d=d.spliceText(c,p-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let S=1;S<u;S++){const N=f[S],P=N.__key;m.has(P)||N.remove()}}}removeText(){const t=Z()===this;Ha(this,N6(dg(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void ut(null);const r=this.getNodes(),o=[];for(const w of r)X(w)&&o.push(w);const i=w=>{r.forEach(A=>{if(R(A)){const _=A.getFormatFlags(t,w);A.setTextFormat(_)}})},s=o.length;if(s===0)return this.toggleFormat(t),ut(null),void i(n);const a=this.anchor,c=this.focus,l=this.isBackward(),f=l?c:a,u=l?a:c;let d=0,p=o[0],h=f.type==="element"?0:f.offset;if(f.type==="text"&&h===p.getTextContentSize()&&(d=1,p=o[1],h=0),p==null)return;const g=p.getFormatFlags(t,n);i(g);const m=s-1;let y=o[m];const v=u.type==="text"?u.offset:y.getTextContentSize();if(p.is(y)){if(h===v)return;if(Wn(p)||h===0&&v===p.getTextContentSize())p.setFormat(g);else{const w=p.splitText(h,v),A=h===0?w[0]:w[1];A.setFormat(g),f.type==="text"&&f.set(A.__key,0,"text"),u.type==="text"&&u.set(A.__key,v-h,"text")}return void(this.format=g)}h===0||Wn(p)||([,p]=p.splitText(h),h=0),p.setFormat(g);const b=y.getFormatFlags(t,g);v>0&&(v===y.getTextContentSize()||Wn(y)||([y]=y.splitText(v)),y.setFormat(b));for(let w=d+1;w<m;w++){const A=o[w],_=A.getFormatFlags(t,b);A.setFormat(_)}f.type==="text"&&f.set(p.__key,h,"text"),u.type==="text"&&u.set(y.__key,v,"text"),this.format=g|b}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=Z();return $(h)||U(134),h.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=at(n,yr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const h=Zl(this);r.splice(h,0,t),o.selectEnd()}return}if(!t.some(h=>(R(h)||Te(h))&&!h.isInline())){R(r)||U(211,n.constructor.name,n.getType());const h=Zl(this);return r.splice(h,0,t),void o.selectEnd()}const i=(function(h){const g=Tt();let m=null;for(let y=0;y<h.length;y++){const v=h[y],b=xo(v);if(b||Te(v)&&v.isInline()||R(v)&&v.isInline()||X(v)||v.isParentRequired()){if(m===null&&(m=v.createParentElementNode(),g.append(m),b))continue;m!==null&&m.append(v)}else g.append(v),m=null}return g})(t),s=i.getLastDescendant(),a=i.getChildren(),c=!R(r)||!r.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let f=a[0];var u;R(u=f)&&yr(u)&&!u.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||U(211,n.constructor.name,n.getType()),r.append(...f.getChildren()),f=a[1]),f&&(r===null&&U(212,n.constructor.name,n.getType()),(function(h,g){const m=g.getParentOrThrow().getLastChild();let y=g;const v=[g];for(;y!==m;)y.getNextSibling()||U(140),y=y.getNextSibling(),v.push(y);let b=h;for(const w of v)b=b.insertAfter(w)})(r,f));const d=at(s,yr);c&&R(d)&&(c.canMergeWhenEmpty()||yr(l))&&(d.append(...c.getChildren()),c.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const p=R(r)?r.getLastChild():null;xo(p)&&d!==r&&p.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Tt();return We().splice(this.anchor.offset,0,[s]),s.select(),s}const t=Zl(this),n=at(this.anchor.getNode(),yr);R(n)||U(213);const r=n.getChildAtIndex(t),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const n=Lo();if(this.insertNodes([n]),t){const r=n.getParentOrThrow(),o=n.getIndexWithinParent();r.select(o,o)}}extract(){const t=[...this.getNodes()],n=t.length;let r=t[0],o=t[n-1];const[i,s]=Ou(this),a=this.isBackward(),[c,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[f,u]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(f,u),p=f===0?d[0]:d[1];return p?(c.set(p.getKey(),0,"text"),l.set(p.getKey(),p.getTextContentSize(),"text"),[p]):[]}return[r]}if(X(r)&&(f===r.getTextContentSize()?t.shift():f!==0&&([,r]=r.splitText(f),t[0]=r,c.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;u===0?t.pop():u!==d&&([o]=o.splitText(u),t[t.length-1]=o,l.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(Ym(this,t,n,r))return;const o=t==="move",i=Re(),s=en(Xt(i));if(!s)return;const a=i._blockCursorElement,c=i._rootElement,l=this.focus.getNode();if(c===null||a===null||!R(l)||l.isInline()||l.canBeEmpty()||Ru(a,i,c),this.dirty){let f=Do(i,this.anchor.key),u=Do(i,this.focus.key);this.anchor.type==="text"&&(f=Di(f)),this.focus.type==="text"&&(u=Di(u)),f&&u&&ix(s,f,this.anchor.offset,u,this.focus.offset)}if((function(f,u,d,p){f.modify(u,d,p)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const f=s.getRangeAt(0),u=this.anchor.getNode(),d=Ye(u)?u:p6(u);if(this.applyDOMRange(f),this.dirty=!0,!o){const p=this.getNodes(),h=[];let g=!1;for(let m=0;m<p.length;m++){const y=p[m];Lu(y,d)?h.push(y):g=!0}if(g&&h.length>0)if(n){const m=h[0];R(m)?m.selectStart():m.getParentOrThrow().selectStart()}else{const m=h[h.length-1];R(m)?m.selectEnd():m.getParentOrThrow().selectEnd()}s.anchorNode===f.startContainer&&s.anchorOffset===f.startOffset||(function(m){const y=m.focus,v=m.anchor,b=v.key,w=v.offset,A=v.type;v.set(y.key,y.offset,y.type,!0),y.set(b,w,A,!0)})(this)}}r==="lineboundary"&&Ym(this,t,n,r,"decorators")}forwardDeletion(t,n,r){if(!r&&(t.type==="element"&&R(n)&&t.offset===n.getChildrenSize()||t.type==="text"&&t.offset===n.getTextContentSize())){const o=n.getParent(),i=n.getNextSibling()||(o===null?null:o.getNextSibling());if(R(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,t))return;const i=rp(nr(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const c of i.iterNodeCarets("shadowRoot"))if(Tn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const l=Yt(c);Ha(this,Fr(l,l)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:c,type:"merge-block"})}}else{if(a.type==="merge-block")break;if(ji(c)){if(R(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(i.anchor.origin))break}else a={block:c.origin,type:"merge-next-block"};continue}if(Te(c.origin)){if(!c.origin.isIsolated())if(a.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const l=ox();l.add(c.origin.getKey()),Pt(l)}else c.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:c,block:l}=a;return Ha(this,Fr(!c.origin.isEmpty()&&l.isEmpty()?op(xt(l,c.direction)):i.anchor,c)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&Bm(this,r.getNode()))return}else{const a=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const c=s.offset,l=a.getTextContentSize();if(a.is(o)||t&&c!==l||!t&&c!==0)return void Wm(a,t,c)}else if(o!==null&&o.isSegmented()){const c=r.offset,l=o.getTextContentSize();if(o.is(a)||t&&c!==0||!t&&c!==l)return void Wm(o,t,c)}(function(c,l){const f=c.anchor,u=c.focus,d=f.getNode(),p=u.getNode();if(d===p&&f.type==="text"&&u.type==="text"){const h=f.offset,g=u.offset,m=h<g,y=m?h:g,v=m?g:h,b=v-1;y!==b&&(function(w){return!(_x(w)||Z3(w))})(d.getTextContent().slice(y,v))&&(l?u.set(u.key,b,u.type):f.set(f.key,b,f.type))}})(this,t)}}if(this.removeText(),t&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Ye(r.getParent())&&r.getPreviousSibling()===null&&Bm(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function ot(e){return e instanceof Jc}function Um(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Ou(e){const t=e.getStartEndPoints();if(t===null)return[0,0];const[n,r]=t;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[Um(n),Um(r)]}function Bm(e,t){for(let n=t;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(e))return!0;if(jt(n))break}if(n.getPreviousSibling())break}return!1}const Z3=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function Wm(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let l=0;l<i;l++){const f=l===i-1;if(a=s,s+=o[l].length,t&&s===n||s>n||f){o.splice(l,1),f&&(a=void 0);break}}const c=o.join("").trim();c===""?r.remove():(r.setTextContent(c),r.select(a,a))}function Km(e,t,n,r){let o,i=t;if(ht(e)){let s=!1;const a=e.childNodes,c=a.length,l=r._blockCursorElement;i===c&&(s=!0,i=c-1);let f=a[i],u=!1;if(f===l)f=a[i+1],u=!0;else if(l!==null){const d=l.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,l)&&i--}if(o=li(f),X(o))i=Pr(o,s?"next":"previous");else{let d=li(e);if(d===null)return null;if(R(d)){const p=r.getElementByKey(d.getKey());p===null&&U(214),[d,i]=d.getDOMSlot(p).resolveChildIndex(d,p,e,t),R(d)||U(215),s&&i>=d.getChildrenSize()&&(i=Math.max(0,d.getChildrenSize()-1));let g=d.getChildAtIndex(i);if(R(g)&&(function(m,y,v){const b=m.getParent();return v===null||b===null||!b.canBeEmpty()||b!==v.getNode()})(g,0,n)){const m=s?g.getLastDescendant():g.getFirstDescendant();m===null?d=g:(g=m,d=R(g)?g:g.getParentOrThrow()),i=0}X(g)?(o=g,d=null,i=Pr(g,s?"next":"previous")):g!==d&&s&&!u&&(R(d)||U(216),i=Math.min(d.getChildrenSize(),i+1))}else{const p=d.getIndexWithinParent();i=t===0&&Te(d)&&li(e)===d?p:p+1,d=d.getParentOrThrow()}if(R(d))return Pn(d.__key,i,"element")}}else o=li(e);return X(o)?Pn(o.__key,Pr(o,i,"clamp"),"text"):null}function Hm(e,t,n){const r=e.offset,o=e.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((n||!t)&&i===null&&R(s)&&s.isInline()){const a=s.getPreviousSibling();X(a)&&e.set(a.__key,a.getTextContent().length,"text")}}else R(i)&&!n&&i.isInline()?e.set(i.__key,i.getChildrenSize(),"element"):X(i)&&e.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&R(i)&&i.isInline())e.set(i.__key,0,"element");else if((n||t)&&i===null&&R(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();X(a)&&e.set(a.__key,0,"text")}}}function ex(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Hm(e,r,o),Hm(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=Re();if(i.isComposing()&&i._compositionKey!==e.key&&$(n)){const s=n.anchor,a=n.focus;e.set(s.key,s.offset,s.type,!0),t.set(a.key,a.offset,a.type,!0)}}}function tx(e,t,n,r,o,i){if(e===null||n===null||!oa(o,e,n))return null;const s=Km(e,t,$(i)?i.anchor:null,o);if(s===null)return null;const a=Km(n,r,$(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const c=li(e),l=li(n);if(Te(c)&&Te(l))return null}return ex(s,a,i),[s,a]}function Pu(e){return R(e)&&!e.isInline()}function nx(e,t,n,r,o,i){const s=Wr(),a=new Wo(Pn(e,t,o),Pn(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function rx(){const e=Pn("root",0,"element"),t=Pn("root",0,"element");return new Wo(e,t,0,"")}function ox(){return new Jc(new Set)}function jd(e,t,n,r){const o=n._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,a=s==="selectionchange",c=!du&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,f,u,d;if($(e)&&!c)return e.clone();if(t===null)return null;if(l=t.anchorNode,f=t.focusNode,u=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&$(e)&&!oa(n,l,f))return e.clone();const p=tx(l,u,f,d,n,e);if(p===null)return null;const[h,g]=p;return new Wo(h,g,$(e)?e.format:0,$(e)?e.style:"")}function Z(){return Wr()._selection}function Gi(){return Re()._editorState._selection}function hc(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const c=t.__key;if(e.isCollapsed()){const l=o.offset;if(n<=l&&r>0||n<l&&r<0){const f=Math.max(0,l+r);o.set(c,f,"element"),i.set(c,f,"element"),qm(e)}}else{const l=e.isBackward(),f=l?i:o,u=f.getNode(),d=l?o:i,p=d.getNode();if(t.is(u)){const h=f.offset;(n<=h&&r>0||n<h&&r<0)&&f.set(c,Math.max(0,h+r),"element")}if(t.is(p)){const h=d.offset;(n<=h&&r>0||n<h&&r<0)&&d.set(c,Math.max(0,h+r),"element")}}qm(e)}function qm(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!R(i))return;const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text"),r.set(l.__key,f,"text")}return}if(R(i)){const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text")}}if(R(s)){const a=s.getChildrenSize(),c=o>=a,l=c?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),r.set(l.__key,f,"text")}}}function mc(e,t,n,r,o){let i=null,s=0,a=null;r!==null?(i=r.__key,X(r)?(s=r.getTextContentSize(),a="text"):R(r)&&(s=r.getChildrenSize(),a="element")):o!==null&&(i=o.__key,X(o)?a="text":R(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Vm(e,t,n,r,o){e.type==="text"?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function ix(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function J3(e,t,n,r,o,i,s){const a=r.anchorNode,c=r.focusNode,l=r.anchorOffset,f=r.focusOffset,u=document.activeElement;if(o.has($3)&&u!==i||u!==null&&Hd(u))return;if(!$(t))return void(e!==null&&oa(n,a,c)&&r.removeAllRanges());const d=t.anchor,p=t.focus,h=d.key,g=p.key,m=Do(n,h),y=Do(n,g),v=d.offset,b=p.offset,w=t.format,A=t.style,_=t.isCollapsed();let E=m,S=y,N=!1;if(d.type==="text"){E=Di(m);const Y=d.getNode();N=Y.getFormat()!==w||Y.getStyle()!==A}else $(e)&&e.anchor.type==="text"&&(N=!0);var P,I,W,j,z;if(p.type==="text"&&(S=Di(y)),E!==null&&S!==null&&(_&&(e===null||N||$(e)&&(e.format!==w||e.style!==A))&&(P=w,I=A,W=v,j=h,z=performance.now(),Kb=[P,I,W,j,z]),l!==v||f!==b||a!==E||c!==S||r.type==="Range"&&_||(u!==null&&i.contains(u)||o.has(W3)||i.focus({preventScroll:!0}),d.type==="element"))){if(ix(r,E,v,S,b),!o.has(U3)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const Y=$(t)&&t.anchor.type==="element"?E.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(Y!==null){let Q;if(Y instanceof Text){const oe=document.createRange();oe.selectNode(Y),Q=oe.getBoundingClientRect()}else Q=Y.getBoundingClientRect();(function(oe,M,re){const L=Tx(re),F=Zd(L);if(L===null||F===null)return;let{top:K,bottom:B}=M,J=0,V=0,ee=re;for(;ee!==null;){const te=ee===L.body;if(te)J=0,V=Xt(oe).innerHeight;else{const ye=ee.getBoundingClientRect();J=ye.top,V=ye.bottom}let he=0;if(K<J?he=-(J-K):B>V&&(he=B-V),he!==0)if(te)F.scrollBy(0,he);else{const ye=ee.scrollTop;ee.scrollTop+=he;const me=ee.scrollTop-ye;K-=me,B-=me}if(te)break;ee=ia(ee)}})(n,Q,i)}}_u=!0}}function sx(e){let t=Z()||Gi();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function Zl(e){let t=e;e.isCollapsed()||t.removeText();const n=Z();$(n)&&(t=n),$(t)||U(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!yr(o);){const s=o;if([o,i]=X3(o,i),s.is(o))break}return i}function X3(e,t){const n=e.getParent();if(!n){const o=Tt();return We().append(o),o.select(),[We(),0]}if(X(e)){const o=e.splitText(t);if(o.length===0)return[n,e.getIndexWithinParent()];const i=t===0?0:1;return[n,o[0].getIndexWithinParent()+i]}if(!R(e)||t===0)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const o=new Wo(Pn(e.__key,t,"element"),Pn(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Ym(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[f,u]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return u.set(f.key,f.offset,f.type),!0}const i=nr(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let c=i,l=o==="decorators-and-blocks";if(!Lx(c)){for(const f of c){l=!1;const{origin:u}=f;if(!Te(u)||u.isIsolated()||(c=f,!s||!u.isInline()))break}if(l)for(const f of rp(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(Tn(f))f.origin.isInline()||(c=f);else{if(R(f.origin))continue;Te(f.origin)&&!f.origin.isInline()&&(c=f)}break}}if(c===i)return!1;if(a&&!s&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const f=ox();return f.add(c.origin.getKey()),Pt(f),!0}return c=Yt(c),a&&$o(e.anchor,c),$o(e.focus,c),l||!s}let it=null,st=null,Ft=!1,Jl=!1,Wa=0;const Qm={characterData:!0,childList:!0,subtree:!0};function na(){return Ft||it!==null&&it._readOnly}function vt(){Ft&&U(13)}function ax(){Wa>99&&U(14)}function Wr(){return it===null&&U(195,cx()),it}function Re(){return st===null&&U(196,cx()),st}function cx(){let e=0;const t=new Set,n=Ro.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=el(o);if(qd(i))e++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),t.add(s)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function e6(){return st}function Gm(e,t,n){const r=t.__type,o=gx(e,r);let i=n.get(r);i===void 0&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let a=0;a<s&&(i[a](t),t.isAttached());a++);}function Zm(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function lx(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const o of r)n.add(o)}function t6(e){return zd(e,Re()._nodes)}function zd(e,t){const n=e.type,r=t.get(n);r===void 0&&U(17,n);const o=r.klass;e.type!==o.getType()&&U(18,o.name);const i=o.importJSON(e),s=e.children;if(R(i)&&Array.isArray(s))for(let a=0;a<s.length;a++){const c=zd(s[a],t);i.append(c)}return i}function Jm(e,t,n){const r=it,o=Ft,i=st;it=t,Ft=!0,st=e;try{return n()}finally{it=r,Ft=o,st=i}}function Qn(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||r===null;if(n===null)return;const i=e._editorState,s=i._selection,a=n._selection,c=e._dirtyType!==0,l=it,f=Ft,u=st,d=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&c&&p!==null){st=e,it=n,Ft=!1,e._updating=!0;try{const _=e._dirtyType,E=e._dirtyElements,S=e._dirtyLeaves;p.disconnect(),h=b3(i,n,e,_,E,S)}catch(_){if(_ instanceof Error&&e._onError(_),Jl)throw _;return hx(e,null,r,n),bb(e),e._dirtyType=2,Jl=!0,Qn(e,i),void(Jl=!1)}finally{p.observe(r,Qm),e._updating=d,it=l,Ft=f,st=u}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,b=e._deferred;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),(function(_,E){const S=_._decorators;let N=_._pendingDecorators||S;const P=E._nodeMap;let I;for(I in N)P.has(I)||(N===S&&(N=Ax(_)),delete N[I])})(e,n);const w=o?null:en(Xt(e));if(e._editable&&w!==null&&(c||a===null||a.dirty||!a.is(s))&&r!==null&&!v.has(B3)){st=e,it=n;try{if(p!==null&&p.disconnect(),c||a===null||a.dirty){const _=e._blockCursorElement;_!==null&&Ru(_,e,r),J3(s,a,e,w,v,r)}(function(_,E,S){let N=_._blockCursorElement;if($(S)&&S.isCollapsed()&&S.anchor.type==="element"&&E.contains(document.activeElement)){const P=S.anchor,I=P.getNode(),W=P.offset;let j=!1,z=null;if(W===I.getChildrenSize())ef(I.getChildAtIndex(W-1))&&(j=!0);else{const Y=I.getChildAtIndex(W);if(Y!==null&&ef(Y)){const Q=Y.getPreviousSibling();(Q===null||ef(Q))&&(j=!0,z=_.getElementByKey(Y.__key))}}if(j){const Y=_.getElementByKey(I.__key);return N===null&&(_._blockCursorElement=N=(function(Q){const oe=Q.theme,M=document.createElement("div");M.contentEditable="false",M.setAttribute("data-lexical-cursor","true");let re=oe.blockCursor;if(re!==void 0){if(typeof re=="string"){const L=hb(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(_._config)),E.style.caretColor="transparent",void(z===null?Y.appendChild(N):Y.insertBefore(N,z))}}N!==null&&Ru(N,_,E)})(e,r,a)}finally{p!==null&&p.observe(r,Qm),st=u,it=l}}h!==null&&(function(_,E,S,N,P){const I=Array.from(_._listeners.mutation),W=I.length;for(let j=0;j<W;j++){const[z,Y]=I[j];for(const Q of Y){const oe=E.get(Q);oe!==void 0&&z(oe,{dirtyLeaves:N,prevEditorState:P,updateTags:S})}}})(e,h,v,g,i),$(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(Qc,void 0);const A=e._pendingDecorators;A!==null&&(e._decorators=A,e._pendingDecorators=null,As("decorator",e,!0,A)),(function(_,E,S){const N=ng(E),P=ng(S);N!==P&&As("textcontent",_,!0,P)})(e,t||i,n),As("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:t||i,tags:v}),(function(_,E){if(_._deferred=[],E.length!==0){const S=_._updating;_._updating=!0;try{for(let N=0;N<E.length;N++)E[N]()}finally{_._updating=S}}})(e,b),(function(_){const E=_._updates;if(E.length!==0){const S=E.shift();if(S){const[N,P]=S;Xc(_,N,P)}}})(e)}function As(e,t,n,...r){const o=t._updating;t._updating=n;try{const i=Array.from(t._listeners[e]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{t._updating=o}}function Xm(e,t){const n=e._updates;let r=t||!1;for(;n.length!==0;){const o=n.shift();if(o){const[i,s]=o,a=e._pendingEditorState;let c;s!==void 0&&(c=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&U(191),a._flushSync=!0),c&&e._deferred.push(c),lx(e,s.tag)),a==null?Xc(e,i,s):i()}}return r}function Xc(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,lx(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=ux(c||a),l=!0),c._flushSync=s;const f=it,u=Ft,d=st,p=e._updating;it=c,Ft=!1,e._updating=!0,st=e;const h=e._headless||e.getRootElement()===null;Wd(null);try{l&&(h?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=(function(v,b){const w=v.getEditorState()._selection,A=en(Xt(v));return $(w)||w==null?jd(w,A,v,b):w.clone()})(e,n&&n.event||null));const m=e._compositionKey;t(),i=Xm(e,i),(function(v,b){const w=b.getEditorState()._selection,A=v._selection;if($(A)){const _=A.anchor,E=A.focus;let S;if(_.type==="text"&&(S=_.getNode(),S.selectionTransform(w,A)),E.type==="text"){const N=E.getNode();S!==N&&N.selectionTransform(w,A)}}})(c,e),e._dirtyType!==0&&(i?(function(v,b){const w=b._dirtyLeaves,A=v._nodeMap;for(const _ of w){const E=A.get(_);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&Nm(E)}})(c,e):(function(v,b){const w=b._dirtyLeaves,A=b._dirtyElements,_=v._nodeMap,E=Sr(),S=new Map;let N=w,P=N.size,I=A,W=I.size;for(;P>0||W>0;){if(P>0){b._dirtyLeaves=new Set;for(const j of N){const z=_.get(j);X(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&Nm(z),z!==void 0&&Zm(z,E)&&Gm(b,z,S),w.add(j)}if(N=b._dirtyLeaves,P=N.size,P>0){Wa++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const j of I){const z=j[0],Y=j[1];if(A.set(z,Y),!Y)continue;const Q=_.get(z);Q!==void 0&&Zm(Q,E)&&Gm(b,Q,S)}N=b._dirtyLeaves,P=N.size,I=b._dirtyElements,W=I.size,Wa++}b._dirtyLeaves=w,b._dirtyElements=A})(c,e),Xm(e),(function(v,b,w,A){const _=v._nodeMap,E=b._nodeMap,S=[];for(const[N]of A){const P=E.get(N);P!==void 0&&(P.isAttached()||(R(P)&&gb(P,N,_,E,S,A),_.has(N)||A.delete(N),S.push(N)))}for(const N of S)E.delete(N);for(const N of w){const P=E.get(N);P===void 0||P.isAttached()||(_.has(N)||w.delete(N),E.delete(N))}})(a,c,e._dirtyLeaves,e._dirtyElements)),m!==e._compositionKey&&(c._flushSync=!0);const y=c._selection;if($(y)){const v=c._nodeMap,b=y.anchor.key,w=y.focus.key;v.get(b)!==void 0&&v.get(w)!==void 0||U(19)}else ot(y)&&y._nodes.size===0&&(c._selection=null)}catch(m){return m instanceof Error&&e._onError(m),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Qn(e)}finally{it=f,Ft=u,st=d,e._updating=p,Wa=0}e._dirtyType!==0||e._deferred.length>0||(function(m,y){const v=y.getEditorState()._selection,b=m._selection;if(b!==null){if(b.dirty||!b.is(v))return!0}else if(v!==null)return!0;return!1})(c,e)?c._flushSync?(c._flushSync=!1,Qn(e)):l&&a6(()=>{Qn(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function kn(e,t,n){st===e&&n===void 0?t():Xc(e,t,n)}class Cs{constructor(t,n,r){D(this,"element");D(this,"before");D(this,"after");this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new Cs(this.element,t,this.after)}withAfter(t){return new Cs(this.element,this.before,t)}withElement(t){return this.element===t?this:new Cs(t,this.before,this.after)}insertChild(t){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&U(222),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&U(223),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&U(224),this.element.replaceChild(t,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const n=t==="decorator"&&(ea||Vi||Xs);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const n=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&n.removeChild(r),n.removeChild(t),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const n=this.getManagedLineBreak();if(n){if(t===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),t){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let n=this.after;n!==null;n=n.previousSibling)t++;return t}resolveChildIndex(t,n,r,o){if(r===this.element){const c=this.getFirstChildOffset();return[t,Math.min(c+t.getChildrenSize(),Math.max(c,o))]}const i=eg(n,r);i.push(o);const s=eg(n,this.element);let a=t.getIndexWithinParent();for(let c=0;c<s.length;c++){const l=i[c],f=s[c];if(l===void 0||l<f)break;if(l>f){a+=1;break}}return[t.getParentOrThrow(),a]}}function eg(e,t){const n=[];let r=t;for(;r!==e&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;n.push(o)}return r!==e&&U(225),n.reverse()}class Mn extends cn{constructor(n){super(n);D(this,"__first");D(this,"__last");D(this,"__size");D(this,"__format");D(this,"__style");D(this,"__indent");D(this,"__dir");D(this,"__textFormat");D(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return a3[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r),r=r.getNextSibling();return n}getChildrenKeys(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r.__key),r=r.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Re()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(n)}getAllTextNodes(){const n=[];let r=this.getFirstChild();for(;r!==null;){if(X(r)&&n.push(r),R(r)){const o=r.getAllTextNodes();n.push(...o)}r=r.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const r=n.getFirstChild();if(r===null)break;n=r}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const r=n.getLastChild();if(r===null)break;n=r}return n}getDescendantByIndex(n){const r=this.getChildren(),o=r.length;if(n>=o){const s=r[o-1];return R(s)&&s.getLastDescendant()||s||null}const i=r[n];return R(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Xe(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&U(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Xe(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&U(96,this.__key),n}getChildAtIndex(n){const r=this.getChildrenSize();let o,i;if(n<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=n;){if(i===n)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=n;){if(i===n)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let n="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContent(),R(s)&&i!==o-1&&!s.isInline()&&(n+=Dr)}return n}getTextContentSize(){let n=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContentSize(),R(s)&&i!==o-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const r=wm[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=Po[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return gc(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){vt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const l=this.getFirstChild();if(X(l)||R(l))return l.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const l=this.getLastChild();if(X(l)||R(l))return l.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const c=this.__key;return $(o)?(o.anchor.set(c,i,"element"),o.focus.set(c,s,"element"),o.dirty=!0,o):nx(c,i,c,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(r=>r.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const r=this.getWritable();return r.__dir=n,r}setFormat(n){return this.getWritable().__format=n!==""?wm[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const r=this.getWritable();return r.__textFormat=n,r}setTextStyle(n){const r=this.getWritable();return r.__textStyle=n,r}setIndent(n){return this.getWritable().__indent=n,this}splice(n,r,o){pc(this)&&U(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+r<=i||U(226,String(n),String(r),String(i));const a=s.__key,c=[],l=[],f=this.getChildAtIndex(n+r);let u=null,d=i-r+o.length;if(n!==0)if(n===i)u=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(u=h.getPreviousSibling())}if(r>0){let h=u===null?this.getFirstChild():u.getNextSibling();for(let g=0;g<r;g++){h===null&&U(100);const m=h.getNextSibling(),y=h.__key;Ao(h.getWritable()),l.push(y),h=m}}let p=u;for(const h of o){p!==null&&h.is(p)&&(u=p=p.getPreviousSibling());const g=h.getWritable();g.__parent===a&&d--,Ao(g);const m=h.__key;if(p===null)s.__first=m,g.__prev=null;else{const y=p.getWritable();y.__next=m,g.__prev=y.__key}h.__key===a&&U(76),g.__parent=a,c.push(m),p=h}if(n+r===i)p!==null&&(p.getWritable().__next=null,s.__last=p.__key);else if(f!==null){const h=f.getWritable();if(p!==null){const g=p.getWritable();h.__prev=p.__key,g.__next=f.__key}else h.__prev=null}if(s.__size=d,l.length){const h=Z();if($(h)){const g=new Set(l),m=new Set(c),{anchor:y,focus:v}=h;tg(y,g,m)&&mc(y,y.getNode(),this,u,f),tg(v,g,m)&&mc(v,v.getNode(),this,u,f),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new Cs(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(ht(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r===0&&o===""||jt(this)||this.getChildren().some(X)||(r!==0&&(n.textFormat=r),o!==""&&(n.textStyle=o)),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,r){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,r){const o=this.getDOMSlot(n);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const a=r.getElementByKey(s.getKey());a!==null&&(i==null?(o.insertChild(a),i=a):i!==a&&o.replaceChild(a,i),i=i.nextSibling)}}}function R(e){return e instanceof Mn}function tg(e,t,n){let r=e.getNode();for(;r;){const o=r.__key;if(t.has(o)&&!n.has(o))return!0;r=r.getParent()}return!1}class fx extends cn{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof fx}class Zi extends Mn{constructor(){super("root");D(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Zi}getTopLevelElementOrThrow(){U(51)}getTextContent(){const n=this.__cachedText;return!na()&&Re()._dirtyType!==0||n===null?super.getTextContent():n}remove(){U(52)}replace(n){U(53)}insertBefore(n){U(54)}insertAfter(n){U(55)}updateDOM(n,r){return!1}splice(n,r,o){for(const i of o)R(i)||Te(i)||U(282);return super.splice(n,r,o)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Ye(e){return e instanceof Zi}function ux(e){return new ra(new Map(e._nodeMap))}function $d(){return new ra(new Map([["root",new Zi]]))}function dx(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&U(130,n.name),R(e)){const r=t.children;Array.isArray(r)||U(59,n.name);const o=e.getChildren();for(let i=0;i<o.length;i++){const s=dx(o[i]);r.push(s)}}return t}function n6(e){return e instanceof ra}class ra{constructor(t,n){D(this,"_nodeMap");D(this,"_selection");D(this,"_flushSync");D(this,"_readOnly");this._nodeMap=t,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,n){return Jm(n&&n.editor||null,this,t)}clone(t){const n=new ra(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Jm(null,this,()=>({root:dx(We())}))}}class Ud extends Mn{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Ji extends Mn{static getType(){return"paragraph"}static clone(t){return new Ji(t.__key)}createDOM(t){const n=document.createElement("p"),r=vi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:r6,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(ht(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(t){return Tt().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(t.textFormat===void 0||t.textStyle===void 0){const n=this.getChildren().find(X);n?(t.textFormat=n.getFormat(),t.textStyle=n.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,n){const r=Tt();r.setTextFormat(t.format),r.setTextStyle(t.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||X(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function r6(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),v6(e,t)),{node:t}}function Tt(){return Kr(new Ji)}function Bd(e){return e instanceof Ji}const we=0,Gn=1,o6=3,px=4;function hx(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=$d(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),n!==null&&(n.textContent="",o.set("root",n))}function i6(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=rl(r),i=r.transform;if(!n.has(i)){n.add(i);const s=r.transform();s&&t.add(s)}if(o){const s=o.$transform;s&&t.add(s),r=o.extends}else{const s=Object.getPrototypeOf(r);r=s.prototype instanceof cn&&s!==cn?s:void 0}}return t}function mx(e){const t=e||{},n=e6(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=$d(),a=t.namespace||(o!==null?o._config.namespace:Ex()),c=t.editorState,l=[Zi,Br,Yi,Qi,Ji,Ud,...t.nodes||[]],{onError:f,html:u}=t,d=t.editable===void 0||t.editable;let p;if(e===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let g=0;g<l.length;g++){let m=l[g],y=null,v=null;if(typeof m!="function"){const A=m;m=A.replace,y=A.with,v=A.withKlass||null}rl(m);const b=m.getType(),w=i6(m);p.set(b,{exportDOM:u&&u.export?u.export.get(m):void 0,klass:m,replace:y,replaceWithKlass:v,sharedNodeState:h3(l[g]),transforms:w})}}const h=new Ro(s,o,p,{disableEvents:i,namespace:a,theme:r},f||console.error,(function(g,m){const y=new Map,v=new Set,b=w=>{Object.keys(w).forEach(A=>{let _=y.get(A);_===void 0&&(_=[],y.set(A,_)),_.push(w[A])})};return g.forEach(w=>{const A=w.klass.importDOM;if(A==null||v.has(A))return;v.add(A);const _=A.call(w.klass);_!==null&&b(_)}),m&&b(m),y})(p,u?u.import:void 0),d,e);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),(function(g){g.registerCommand(Sb,M3,we),g.registerCommand(kb,I3,we),g.registerCommand(Tb,L3,we),g.registerCommand(Nb,R3,we),g.registerCommand(Ob,D3,we)})(h),h}class Ro{constructor(t,n,r,o,i,s,a,c){D(this,"_headless");D(this,"_parentEditor");D(this,"_rootElement");D(this,"_editorState");D(this,"_pendingEditorState");D(this,"_compositionKey");D(this,"_deferred");D(this,"_keyToDOMMap");D(this,"_updates");D(this,"_updating");D(this,"_listeners");D(this,"_commands");D(this,"_nodes");D(this,"_decorators");D(this,"_pendingDecorators");D(this,"_config");D(this,"_dirtyType");D(this,"_cloneNotNeeded");D(this,"_dirtyLeaves");D(this,"_dirtyElements");D(this,"_normalizedNodes");D(this,"_updateTags");D(this,"_observer");D(this,"_key");D(this,"_onError");D(this,"_htmlConversions");D(this,"_window");D(this,"_editable");D(this,"_blockCursorElement");D(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ex(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const n=this._listeners.update;return n.add(t),()=>{n.delete(t)}}registerEditableListener(t){const n=this._listeners.editable;return n.add(t),()=>{n.delete(t)}}registerDecoratorListener(t){const n=this._listeners.decorator;return n.add(t),()=>{n.delete(t)}}registerTextContentListener(t){const n=this._listeners.textcontent;return n.add(t),()=>{n.delete(t)}}registerRootListener(t){const n=this._listeners.root;return t(this._rootElement,null),n.add(t),()=>{t(null,this._rootElement),n.delete(t)}}registerCommand(t,n,r){r===void 0&&U(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&U(36,String(t));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,n,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(o);const a=r&&r.skipInitialization;return a!==void 0&&a||this.initializeMutationListener(n,o),()=>{s.delete(o),s.size===0&&i.delete(n)}}getRegisteredNode(t){const n=this._nodes.get(t.getType());return n===void 0&&U(37,t.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,n){const r=this._editorState,o=lg(r).get(n.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,n){const r=this.getRegisteredNode(t);return r.transforms.add(n),r}registerNodeTransform(t,n){const r=this.registerNodeTransformToKlass(t,n),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);o.push(s)}return(function(s,a){const c=lg(s.getEditorState()),l=[];for(const f of a){const u=c.get(f);u&&l.push(u)}l.length!==0&&s.update(()=>{for(const f of l)for(const u of f.keys()){const d=Xe(u);d&&d.markDirty()}},s._pendingEditorState===null?{tag:bo}:void 0)})(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(n))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,n){return ie(this,t,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const n=this._rootElement;if(t!==n){const r=vi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,hx(this,n,t,o),n!==null&&(this._config.disableEvents||F3(n),r!=null&&n.classList.remove(...r)),t!==null){const i=Zd(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,bb(this),this._updateTags.add(bo),Qn(this),this._config.disableEvents||(function(a,c){const l=a.ownerDocument;Cu.set(a,l);const f=uc.get(l)??0;f<1&&l.addEventListener("selectionchange",Qb),uc.set(l,f+1),a.__lexicalEditor=c;const u=Yb(a);for(let d=0;d<Au.length;d++){const[p,h]=Au[d],g=typeof h=="function"?m=>{Dm(m)||(Rm(m),(c.isEditable()||p==="click")&&h(m,c))}:m=>{if(Dm(m))return;Rm(m);const y=c.isEditable();switch(p){case"cut":return y&&ie(c,Dd,m);case"copy":return ie(c,Zc,m);case"paste":return y&&ie(c,Gc,m);case"dragstart":return y&&ie(c,$b,m);case"dragover":return y&&ie(c,Ub,m);case"dragend":return y&&ie(c,S3,m);case"focus":return y&&ie(c,N3,m);case"blur":return y&&ie(c,O3,m);case"drop":return y&&ie(c,zb,m)}};a.addEventListener(p,g),u.push(()=>{a.removeEventListener(p,g)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(bo),Qn(this);As("root",this,!1,t,n)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,n){t.isEmpty()&&U(38);let r=t;r._readOnly&&(r=ux(t),r._selection=t._selection?t._selection.clone():null),vb(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Qn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Qn(this)}parseEditorState(t,n){return(function(r,o,i){const s=$d(),a=it,c=Ft,l=st,f=o._dirtyElements,u=o._dirtyLeaves,d=o._cloneNotNeeded,p=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,it=s,Ft=!1,st=o,Wd(null);try{const h=o._nodes;zd(r.root,h),i&&i(),s._readOnly=!0}catch(h){h instanceof Error&&o._onError(h)}finally{o._dirtyElements=f,o._dirtyLeaves=u,o._cloneNotNeeded=d,o._dirtyType=p,it=a,Ft=c,st=l}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Qn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):Xc(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),kn(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),u6("focus"),d6(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=en(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,As("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}D(Ro,"version");Ro.version="0.39.0+prod.esm";let Mu=null;function Wd(e){Mu=e}let s6=1;function gx(e,t){const n=Kd(e,t);return n===void 0&&U(30,t),n}function Kd(e,t){return e._nodes.get(t)}const a6=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function yx(e){return Te(Fi(e))}function Hd(e){const t=document.activeElement;if(!ht(t))return!1;const n=t.nodeName;return Te(Fi(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&el(t)==null)}function oa(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Hd(t)&&vx(t)===e}catch{return!1}}function qd(e){return e instanceof Ro}function vx(e){let t=e;for(;t!=null;){const n=el(t);if(qd(n))return n;t=ia(t)}return null}function el(e){return e?e.__lexicalEditor:null}function wo(e){return Xb(e)||e.isToken()}function Wn(e){return wo(e)||e.isSegmented()}function lr(e){return Xi(e)&&e.nodeType===3}function bx(e){return Xi(e)&&e.nodeType===9}function Di(e){let t=e;for(;t!=null;){if(lr(t))return t;t=t.firstChild}return null}function gc(e,t,n){const r=Po[t];if(n!==null&&(e&r)===(n&r))return e;let o=e^r;return t==="subscript"?o&=-65:t==="superscript"?o&=-33:t==="lowercase"?(o&=-513,o&=-1025):t==="uppercase"?(o&=-257,o&=-1025):t==="capitalize"&&(o&=-257,o&=-513),o}function xx(e){return X(e)||xo(e)||Te(e)}function c6(e,t){const n=(function(){const s=Mu;return Mu=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);vt(),ax();const r=Re(),o=Wr(),i=""+s6++;o._nodeMap.set(i,e),R(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Ao(e){const t=e.getParent();if(t!==null){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=i!==null?i.__key:null,a=o!==null?o.__key:null,c=o!==null?o.getWritable():null,l=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),c!==null&&(c.__next=s),l!==null&&(l.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function yc(e){ax(),pc(e)&&U(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=Wr(),o=Re(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(c,l,f){let u=c;for(;u!==null;){if(f.has(u))return;const d=l.get(u);if(d===void 0)break;f.set(u,!1),u=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function ut(e){vt();const t=Re(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){const r=Xe(n);r!==null&&r.getWritable()}if(e!==null){const r=Xe(e);r!==null&&r.getWritable()}}}function Sr(){return na()?null:Re()._compositionKey}function Xe(e,t){const n=(t||Wr())._nodeMap.get(e);return n===void 0?null:n}function wx(e,t){const n=tl(e,Re());return n!==void 0?Xe(n,t):null}function tl(e,t){return e[`__lexicalKey_${t._key}`]}function Fi(e,t){let n=e;for(;n!=null;){const r=wx(n,t);if(r!==null)return r;n=ia(n)}return null}function Ax(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function ng(e){return e.read(()=>We().getTextContent())}function We(){return Cx(Wr())}function Cx(e){return e._nodeMap.get("root")}function Pt(e){vt();const t=Wr();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function li(e){const t=Re(),n=(function(r,o){let i=r;for(;i!=null;){const s=tl(i,o);if(s!==void 0)return s;i=ia(i)}return null})(e,t);return n===null?e===t.getRootElement()?Xe("root"):null:Xe(n)}function _x(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Vd(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function Ex(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Sx(e){return lr(e)?e.nodeValue:null}function Yd(e,t,n){const r=en(Xt(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let a=Sx(o);const c=Fi(o);if(a!==null&&X(c)){if(a===Vc&&n){const l=n.length;a=n,i=l,s=l}a!==null&&Qd(c,a,i,s,e)}}}function Qd(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===Vc&&(a=t.slice(0,-1));const c=i.getTextContent();if(o||a!==c){if(a===""){if(ut(null),Xs||Vi||ea)i.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=Gi(),u=i.getTextContentSize(),d=Sr(),p=i.getKey();if(i.isToken()||d!==null&&p===d&&!s||$(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===e.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===e.__key&&f.focus.offset===u&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=Z();if(!$(h)||n===null||r===null)return void rg(i,a,h);if(h.setTextNodeRange(i,n,i,r),i.isSegmented()){const g=rt(i.getTextContent());i.replace(g),i=g}rg(i,a,h)}}}function rg(e,t,n){if(e.setTextContent(t),$(n)){const r=e.getKey();for(const o of["anchor","focus"]){const i=n[o];i.type==="text"&&i.key===r&&(i.offset=Pr(e,i.offset,"clamp"))}}}function Sa(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function l6(e,t){return Sa(e,t,"altKey")&&Sa(e,t,"ctrlKey")&&Sa(e,t,"shiftKey")&&Sa(e,t,"metaKey")}function Ie(e,t,n){return l6(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Un={ctrlKey:!sn,metaKey:sn},og={altKey:sn,ctrlKey:!sn};function ig(e){return e.key==="Backspace"}function sg(e){return Ie(e,"a",Un)}function f6(e){const t=We();if($(e)){const n=e.anchor,r=e.focus,o=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(o.getKey(),0,"element"),r.set(o.getKey(),o.getChildrenSize(),"element"),Ri(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(Ri(n)),n}}function vi(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;const o=e[t];if(typeof o=="string"){const i=hb(o);return n[t]=i,i}return o}function Gd(e,t,n,r,o){if(n.size===0)return;const i=r.__type,s=r.__key,a=t.get(i);a===void 0&&U(33,i);const c=a.klass;let l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));const f=l.get(s),u=f==="destroyed"&&o==="created";(f===void 0||u)&&l.set(s,u?"updated":o)}function ag(e,t,n){const r=e.getParent();let o=n,i=e;return r!==null&&(t&&n===0?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Iu(e,t){const n=e.offset;if(e.type==="element")return ag(e.getNode(),t,n);{const r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){const o=t?r.getPreviousSibling():r.getNextSibling();return o===null?ag(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function kx(e){const t=Xt(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(e,t,n){return(function(r,o,i){const s=Vd(r);for(let a=4;a>=0;a--)for(let c=0;c<s.length;c++){const l=s[c],f=l._commands.get(o);if(f!==void 0){const u=f[a];if(u!==void 0){const d=Array.from(u),p=d.length;let h=!1;if(kn(l,()=>{for(let g=0;g<p;g++)if(d[g](i,r))return void(h=!0)}),h)return h}}}return!1})(e,t,n)}function nl(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function Do(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&U(75,t),n}function ia(e){const t=e.assignedSlot||e.parentElement;return Du(t)?t.host:t}function Tx(e){return bx(e)?e:ht(e)?e.ownerDocument:null}function u6(e){vt(),Re()._updateTags.add(e)}function d6(e){vt(),Re()._deferred.push(e)}function Lu(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function Zd(e){const t=Tx(e);return t?t.defaultView:null}function Xt(e){const t=e._window;return t===null&&U(78),t}function p6(e){let t=e.getParentOrThrow();for(;t!==null;){if(jt(t))return t;t=t.getParentOrThrow()}return t}function jt(e){return Ye(e)||R(e)&&e.isShadowRoot()}function Kr(e){const t=Re(),n=e.getType(),r=Kd(t,n);r===void 0&&U(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(e),a=s.constructor;return i!==null?s instanceof i||U(201,i.name,i.getType(),a.name,a.getType(),e.constructor.name,n):s instanceof e.constructor&&a!==e.constructor||U(202,a.name,a.getType(),e.constructor.name,n),s.__key===e.__key&&U(203,e.constructor.name,n,a.name,a.getType()),s}return e}function Xl(e,t){!Ye(e.getParent())||R(t)||Te(t)||U(99)}function h6(e){const t=Xe(e);return t===null&&U(63,e),t}function ef(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function Ru(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function en(e){return dn?(e||window).getSelection():null}function m6(e){const t=Zd(e);return t?t.getSelection():null}function Nx(e){return ht(e)&&e.tagName==="A"}function ht(e){return Xi(e)&&e.nodeType===1}function Xi(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function Du(e){return Xi(e)&&e.nodeType===11}function Fu(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return e.nodeName.match(t)!==null}function vc(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return e.nodeName.match(t)!==null}function yr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||xo(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function Jd(){return Re()}const cg=new WeakMap,g6=new Map;function lg(e){if(!e._readOnly&&e.isEmpty())return g6;e._readOnly||U(192);let t=cg.get(e);return t||(t=(function(n){const r=new Map;for(const[o,i]of n._nodeMap){const s=i.__type;let a=r.get(s);a||(a=new Map,r.set(s,a)),a.set(o,i)}return r})(e),cg.set(e,t)),t}function Ox(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function y6(e){return(t=Ox(e))[Gb]=!0,t;var t}function v6(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function b6(e){return e.__lexicalUnmanaged===!0}function us(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==cn[t]}function rl(e){const t=Am in e.prototype?e.prototype[Am]():void 0,n=(function(s){if(!(s===cn||s.prototype instanceof cn)){let a="<unknown>",c="<unknown>";try{a=s.getType()}catch{}try{Ro.version&&(c=JSON.parse(Ro.version))}catch{}U(290,s.name,a,c)}return s===fx||s===Mn||s===cn})(e),r=!n&&us(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[s,a]of Object.entries(t))i=s,o=a;if(!n&&i&&(us(e,"getType")||(e.getType=()=>i),us(e,"clone")||(e.clone=s=>(Wd(s),new e)),us(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!us(e,"importDOM")&&o)){const{importDOM:s}=o;s&&(e.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const at=(e,t)=>{let n=e;for(;n!=null&&!Ye(n);){if(t(n))return n;n=n.getParent()}return null},x6={next:"previous",previous:"next"};class Xd{constructor(t){D(this,"origin");this.origin=t}[Symbol.iterator](){return Px({hasNext:ji,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return xt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return xt(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,n){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,n)),this}splice(t,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),a=new Map;for(let c=i.getAdjacentCaret();c!==null&&a.size<t;c=c.getAdjacentCaret()){const l=c.origin.getWritable();a.set(l.getKey(),l)}for(const c of o){if(a.size>0){const l=i.getNodeAtCaret();if(l){if(a.delete(l.getKey()),a.delete(c.getKey()),!(l.is(c)||i.origin.is(c))){const f=c.getParent();f&&f.is(s)&&c.remove(),l.replace(c)}}else l===null&&U(263,Array.from(a).join(" "))}else i.insert(c);i=xt(c,this.direction)}for(const c of a.values())c.remove();return this}}class zs extends Xd{constructor(){super(...arguments);D(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:fn(n,this.direction)}getParentCaret(n="root"){return xt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=es(this.direction);return xt(this.getNodeAtCaret(),n)||fn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof zs&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const w6={root:Ye,shadowRoot:jt};function es(e){return x6[e]}function ep(e,t="root"){return w6[t](e)?null:e}class Fo extends Xd{constructor(){super(...arguments);D(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:xt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?fn(this.origin,this.direction):null}getParentCaret(n="root"){return xt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=es(this.direction);return xt(this.getNodeAtCaret(),n)||fn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Fo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Fo||n instanceof jo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class jo extends Xd{constructor(n,r){super(n);D(this,"type","text");D(this,"offset");this.offset=r}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:zo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return xt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){return zo(this.origin,es(this.direction),this.offset)}isSamePointCaret(n){return n instanceof jo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Fo||n instanceof jo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return xt(this.origin,this.direction)}}function Or(e){return e instanceof jo}function ji(e){return e instanceof Fo}function Tn(e){return e instanceof zs}const A6={next:class extends jo{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends jo{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},C6={next:class extends Fo{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Fo{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},_6={next:class extends zs{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends zs{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function xt(e,t){return e?new C6[t](e):null}function zo(e,t,n){return e?new A6[t](e,Pr(e,n)):null}function Pr(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&db(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function fg(e,t){return new S6(e,t)}function fn(e,t){return R(e)?new _6[t](e):null}function E6(e){return e&&e.getChildCaret()||e}function tp(e){return e&&E6(e.getAdjacentCaret())}class np{constructor(t,n,r){D(this,"type","node-caret-range");D(this,"direction");D(this,"anchor");D(this,"focus");this.anchor=t,this.focus=n,this.direction=r}getLatest(){const t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new np(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Or(i)?(function(s,a){const{direction:c,origin:l}=s,f=Pr(l,a==="focus"?es(c):c);return fg(s,f-s.offset)})(i,o):null},n=t("anchor"),r=t("focus");if(n&&r){const{caret:o}=n,{caret:i}=r;if(o.isSameNodeCaret(i))return[fg(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Or(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Or(r),i=s=>s.isSameNodeCaret(r)?null:tp(s)||s.getParentCaret(t);return Px({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:n.isSameNodeCaret(r)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class S6{constructor(t,n){D(this,"type","slice");D(this,"caret");D(this,"distance");this.caret=t,this.distance=n}getSliceIndices(){const{distance:t,caret:{offset:n}}=this,r=n+t;return r<n?[r,n]:[n,r]}getTextContent(){const[t,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:n}}=this,[r,o]=this.getSliceIndices(),i=t.getTextContent();return zo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function rp(e){return Fr(e,xt(We(),e.direction))}function k6(e){return Fr(e,e)}function Fr(e,t){return e.direction!==t.direction&&U(265),new np(e,t,e.direction)}function Px(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function Mx(e,t){const n=Ka(e.origin,t.origin);switch(n===null&&U(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const r=e.type==="text",o=t.type==="text";return r&&o?(function(i,s){return Math.sign(i-s)})(e.offset,t.offset):e.type===t.type?0:r?-1:o?1:e.type==="child"?-1:1}case"ancestor":return e.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return Ix(n)}}function Ix(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function ka(e,t){return t.is(e)}function ug(e){return R(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Ka(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=ug(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=ug(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(ka(e,r)||U(276),{commonAncestor:r,type:"ancestor"}):o===null?(ka(t,r)||U(277),{commonAncestor:r,type:"descendant"}):((R(i)||ka(e,i))&&(R(o)||ka(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||U(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function nr(e,t){const{type:n,key:r,offset:o}=e,i=h6(e.key);return n==="text"?(X(i)||U(266,i.getType(),r),zo(i,t,o)):(R(i)||U(267,i.getType(),r),O6(i,e.offset,t))}function $o(e,t){const{origin:n,direction:r}=t,o=r==="next";Or(t)?e.set(n.getKey(),t.offset,"text"):ji(t)?X(n)?e.set(n.getKey(),Pr(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(Tn(t)&&R(n)||U(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function T6(e){const t=Z(),n=$(t)?t:rx();return Ha(n,e),Pt(n),n}function Ha(e,t){$o(e.anchor,t.anchor),$o(e.focus,t.focus)}function dg(e){const{anchor:t,focus:n}=e,r=nr(t,"next"),o=nr(n,"next"),i=Mx(r,o)<=0?"next":"previous";return Fr(zi(r,i),zi(o,i))}function op(e){const{direction:t,origin:n}=e,r=xt(n,es(t)).getNodeAtCaret();return r?xt(r,t):fn(n.getParentOrThrow(),t)}function pg(e,t="root"){const n=[e];for(let r=Tn(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(op(r));return n}function tf(e){return!!e&&e.origin.isAttached()}function N6(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Rx(e,r),s=pg(i.anchor,n),a=pg(i.focus.getFlipped(),n),c=new Set,l=[];for(const h of i.iterNodeCarets(n))if(Tn(h))c.add(h.origin.getKey());else if(ji(h)){const{origin:g}=h;R(g)&&!c.has(g.getKey())||l.push(g)}for(const h of l)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,m=g.getTextContentSize(),y=op(xt(g,r)),v=g.getMode();if(Math.abs(h.distance)===m&&o==="removeEmptySlices"||v==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){o="removeEmptySlices";let b=h.removeTextSlice();const w=h.caret.origin;if(v==="segmented"){const A=b.origin,_=rt(A.getTextContent()).setStyle(A.getStyle()).setFormat(A.getFormat());y.replaceOrInsert(_),b=zo(_,r,b.offset)}w.is(s[0].origin)&&(s[0]=b),w.is(a[0].origin)&&(a[0]=b.getFlipped())}}let f,u;for(const h of s)if(tf(h)){f=Yt(h);break}for(const h of a)if(tf(h)){u=Yt(h);break}const d=(function(h,g,m){if(!h||!g)return null;const y=h.getParentAtCaret(),v=g.getParentAtCaret();if(!y||!v)return null;const b=y.getParents().reverse();b.push(y);const w=v.getParents().reverse();w.push(v);const A=Math.min(b.length,w.length);let _;for(_=0;_<A&&b[_]===w[_];_++);const E=(P,I)=>{let W;for(let j=_;j<P.length;j++){const z=P[j];if(jt(z))return;!W&&I(z)&&(W=z)}return W},S=E(b,yr),N=S&&E(w,P=>m.has(P.getKey())&&yr(P));return S&&N?[S,N]:null})(f,u,c);if(d){const[h,g]=d;fn(h,"previous").splice(0,g.getChildren()),g.remove()}const p=[f,u,...s,...a].find(tf);if(p)return k6(zi(Yt(p),e.direction));U(269,JSON.stringify(s.map(h=>h.origin.__key)))}function Yt(e){const t=(function(o){let i=o;for(;Tn(i);){const s=tp(i);if(!Tn(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Or(t)?t:zo(t.origin,n,n);const r=t.getAdjacentCaret();return ji(r)&&X(r.origin)?zo(r.origin,n,es(n)):t}function Lx(e){return Or(e)&&e.offset!==Pr(e.origin,e.direction)}function zi(e,t){return e.direction===t?e:e.getFlipped()}function Rx(e,t){return e.direction===t?e:Fr(zi(e.focus,t),zi(e.anchor,t))}function O6(e,t,n){let r=fn(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return zi(r,n)}function P6(...e){return e}function M6(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const Dx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,I6=Dx?T.useLayoutEffect:T.useEffect,Ta={tag:bo};function L6({initialConfig:e,children:t}){const n=T.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:c}=e,l=VT(null,r),f=mx({editable:e.editable,html:c,namespace:o,nodes:i,onError:u=>s(u,f),theme:r});return(function(u,d){if(d!==null){if(d===void 0)u.update(()=>{const p=We();if(p.isEmpty()){const h=Tt();p.append(h);const g=Dx?document.activeElement:null;(Z()!==null||g!==null&&g===u.getRootElement())&&h.select()}},Ta);else if(d!==null)switch(typeof d){case"string":{const p=u.parseEditorState(d);u.setEditorState(p,Ta);break}case"object":u.setEditorState(d,Ta);break;case"function":u.update(()=>{We().isEmpty()&&d(u)},Ta)}}})(f,a),[f,l]},[]);return I6(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),x.jsx(ub.Provider,{value:n,children:t})}const R6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function D6(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function F6(){return(function(e){const[t]=pt(),n=T.useMemo(()=>e(t),[t,e]),[r,o]=T.useState(()=>n.initialValueFn()),i=T.useRef(r);return R6(()=>{const{initialValueFn:s,subscribe:a}=n,c=s();return i.current!==c&&(i.current=c,o(c)),a(l=>{i.current=l,o(l)})},[n,e]),r})(D6)}function j6(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const ju=new Map;function Fx(e){const t={};if(!e)return t;const n=e.split(";");for(const r of n)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function hg(e){let t=ju.get(e);return t===void 0&&(t=Fx(e),ju.set(e,t)),t}function jx(e){const t=Jd().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function zx(e){return jx(Ye(e)?e:e.getParentOrThrow())}function mg(e){const t=zx(e);return t!==null&&t.direction==="rtl"}function $x(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Wn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),c=i.getNode(),l=t.is(a),f=t.is(c);if(l||f){const[u,d]=Ou(e),p=a.is(c),h=t.is(s?c:a),g=t.is(s?a:c);let m,y=0;p?(y=u>d?d:u,m=u>d?u:d):h?(y=s?d:u,m=void 0):g&&(y=0,m=s?u:d);const v=t.__text.slice(y,m);v!==t.__text&&(n==="clone"&&(t=y6(t)),t.__text=v)}}return t}function gg(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||j6(177),e.offset===t.getChildrenSize()}function z6(e){const t=e.getStyle(),n=Fx(t);ju.set(t,n)}function Ux(e){const t=Bx(e);return t!==null&&t.writingMode==="vertical-rl"}function Bx(e){const t=e.anchor.getNode();return R(t)?jx(t):zx(t)}function yg(e,t){let n=Ux(e)?!t:t;Wx(e)&&(n=!n);const r=nr(e.focus,n?"previous":"next");if(Lx(r))return!1;for(const o of rp(r)){if(Tn(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function $6(e,t,n,r){e.modify(t?"extend":"move",n,r)}function Wx(e){const t=Bx(e);return t!==null&&t.direction==="rtl"}function vg(e,t,n){const r=Wx(e);let o;o=Ux(e)||r?!n:n,$6(e,t,o,"character")}function U6(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Kx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,B6=Kx&&"documentMode"in document?document.documentMode:null;!(!Kx||!("InputEvent"in window)||B6)&&"getTargetRanges"in new window.InputEvent("input");function Hx(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}function un(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ip(e,...t){const n=Hx(...t);n.length>0&&e.classList.add(...n)}function qx(e,...t){const n=Hx(...t);n.length>0&&e.classList.remove(...n)}function W6(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function K6(e){const t=at(e,n=>R(n)&&!n.isInline());return R(t)||U6(4,e.__key),t}function kr(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const H6=Symbol.for("preact-signals");function ol(){if(Mr>1)return void Mr--;let e,t=!1;for(;_s!==void 0;){let n=_s;for(_s=void 0,zu++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Vx(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(zu=0,Mr--,t)throw e}function q6(e){if(Mr>0)return e();Mr++;try{return e()}finally{ol()}}let Pe,_s;function bg(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Mr=0,zu=0,qa=0;function xg(e){if(Pe===void 0)return;let t=e.n;return t===void 0||t.t!==Pe?(t={i:0,S:e,p:Pe.s,n:void 0,t:Pe,e:void 0,x:void 0,r:t},Pe.s!==void 0&&(Pe.s.n=t),Pe.s=t,e.n=t,32&Pe.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Pe.s,t.n=void 0,Pe.s.n=t,Pe.s=t),t):void 0}function _t(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function V6(e,t){return new _t(e,t)}function Vx(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function wg(e){for(let t=e.s;t!==void 0;t=t.n){const n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Yx(e){let t,n=e.s;for(;n!==void 0;){const r=n.p;n.i===-1?(n.S.U(n),r!==void 0&&(r.n=n.n),n.n!==void 0&&(n.n.p=r)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=r}e.s=t}function ti(e,t){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=qa-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function Qx(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Mr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,sp(e),r}finally{Pe=n,ol()}}}function sp(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Qx(e)}function Y6(e){if(Pe!==this)throw new Error("Out-of-order effect");Yx(this),Pe=e,this.f&=-2,8&this.f&&sp(this),ol()}function ai(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function $s(e,t){const n=new ai(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Gx(e,t={}){const n={};for(const r in e){const o=t[r],i=V6(o===void 0?e[r]:o);n[r]=i}return n}_t.prototype.brand=H6,_t.prototype.h=function(){return!0},_t.prototype.S=function(e){const t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t!==void 0?t.e=e:bg(()=>{var n;(n=this.W)==null||n.call(this)}))},_t.prototype.U=function(e){if(this.t!==void 0){const t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&bg(()=>{var r;(r=this.Z)==null||r.call(this)}))}},_t.prototype.subscribe=function(e){return $s(()=>{const t=this.value,n=Pe;Pe=void 0;try{e(t)}finally{Pe=n}},{name:"sub"})},_t.prototype.valueOf=function(){return this.value},_t.prototype.toString=function(){return this.value+""},_t.prototype.toJSON=function(){return this.value},_t.prototype.peek=function(){const e=Pe;Pe=void 0;try{return this.value}finally{Pe=e}},Object.defineProperty(_t.prototype,"value",{get(){const e=xg(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(zu>100)throw new Error("Cycle detected");this.v=e,this.i++,qa++,Mr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ol()}}}}),ti.prototype=new _t,ti.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===qa))return!0;if(this.g=qa,this.f|=1,this.i>0&&!Vx(this))return this.f&=-2,!0;const e=Pe;try{wg(this),Pe=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Pe=e,Yx(this),this.f&=-2,!0},ti.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}_t.prototype.S.call(this,e)},ti.prototype.U=function(e){if(this.t!==void 0&&(_t.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},ti.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(ti.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=xg(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ai.prototype.c=function(){const e=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},ai.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Qx(this),wg(this),Mr++;const e=Pe;return Pe=this,Y6.bind(this,e)},ai.prototype.N=function(){2&this.f||(this.f|=2,this.o=_s,_s=this)},ai.prototype.d=function(){this.f|=8,1&this.f||sp(this)},ai.prototype.dispose=function(){this.d()};function Q6(e){return(typeof e.nodes=="function"?e.nodes():e.nodes)||[]}function Fe(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Zx(e,t){if(e&&t&&!Array.isArray(t)&&typeof e=="object"&&typeof t=="object"){const n=e,r=t;for(const o in r)n[o]=Zx(n[o],r[o]);return e}return t}const ap=0,$u=1,Jx=2,nf=3,Na=4,ni=5,rf=6,ds=7;function of(e){return e.id===ap}function Xx(e){return e.id===Jx}function G6(e){return(function(t){return t.id===$u})(e)||Fe(305,String(e.id),String($u)),Object.assign(e,{id:Jx})}const Z6=new Set;class J6{constructor(t,n){D(this,"builder");D(this,"configs");D(this,"_dependency");D(this,"_peerNameSet");D(this,"extension");D(this,"state");D(this,"_signal");this.builder=t,this.extension=n,this.configs=new Set,this.state={id:ap}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):M6;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;Xx(n)||Fe(306,String(n.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},o={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(a,c,l){return Object.assign(a,{config:c,id:nf,registerState:l})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,c,l){return Object.assign(a,{id:Na,initResult:c,registerState:l})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Na&&Fe(307,String(n.id),String(ni)),this.extension.build&&(r=this.extension.build(t,n.config,n.registerState));const o={...n.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,s,a){return Object.assign(i,{id:ni,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==ni&&Fe(308,String(r.id),String(ni));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:rf})})(r),()=>{const i=this.state;i.id!==ds&&Fe(309,String(r.id),String(ds)),this.state=(function(s){return Object.assign(s,{id:ni})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==rf&&Fe(310,String(n.id),String(rf)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:ds})})(n),r}getSignal(){return this._signal===void 0&&Fe(311),this._signal}getInitResult(){this.extension.init===void 0&&Fe(312,this.extension.name);const t=this.state;return(function(n){return n.id>=Na})(t)||Fe(313,String(t.id),String(Na)),t.initResult}getInitPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(n){return n.id>=nf})(t)||Fe(314,String(t.id),String(nf)),{config:t.config}}getPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}getInitDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Fe(315,this.extension.name,t.name),n.getExtensionInitDependency()}getDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Fe(315,this.extension.name,t.name),n.getExtensionDependency()}getState(){const t=this.state;return(function(n){return n.id>=ds})(t)||Fe(316,String(t.id),String(ds)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||Z6}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([n])=>n)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(n){return n.id>=ni})(t)||Fe(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const Ag={tag:bo};function X6(){const e=We();e.isEmpty()&&e.append(Tt())}const eN={config:{setOptions:Ag,updateOptions:Ag},init:({$initialEditorState:e=X6})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:i}=o;if(n6(i))e.setEditorState(i,n);else if(typeof i=="function")e.update(()=>{i(e)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const s=e.parseEditorState(i);e.setEditorState(s,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Zi,Br,Yi,Qi,Ji]},Cg=Symbol.for("@lexical/extension/LexicalBuilder");function _g(){}function tN(e){throw e}function Oa(e){return Array.isArray(e)?e:[e]}const sf="0.39.0+prod.esm";class bi{constructor(t){D(this,"roots");D(this,"extensionNameMap");D(this,"outgoingConfigEdges");D(this,"incomingEdges");D(this,"conflicts");D(this,"_sortedExtensionReps");D(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=sf,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Oa(eN)];for(const r of t)n.push(Oa(r));return new bi(n)}static maybeFromEditor(t){const n=t[Cg];return n&&(n.PACKAGE_VERSION!==sf&&Fe(292,n.PACKAGE_VERSION,sf),n instanceof bi||Fe(293)),n}static fromEditor(t){const n=bi.maybeFromEditor(t);return n===void 0&&Fe(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(mx({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[Cg]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=_g;function n(){try{t()}finally{t=_g}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=un(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const n=this.extensionNameMap.get(t.name);if(n)return n.extension!==t&&Fe(295,t.name),n}addEdge(t,n,r){const o=this.outgoingConfigEdges.get(t);o?o.set(n,r):this.outgoingConfigEdges.set(t,new Map([[n,r]]));const i=this.incomingEdges.get(n);i?i.add(t):this.incomingEdges.set(n,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&Fe(296);const n=Oa(t),[r]=n;typeof r.name!="string"&&Fe(297,typeof r.name);let o=this.extensionNameMap.get(r.name);if(o!==void 0&&o.extension!==r&&Fe(298,r.name),!o){o=new J6(this,r),this.extensionNameMap.set(r.name,o);const i=this.conflicts.get(r.name);typeof i=="string"&&Fe(299,r.name,i);for(const s of r.conflictsWith||[])this.extensionNameMap.has(s)&&Fe(299,r.name,s),this.conflicts.set(s,r.name);for(const s of r.dependencies||[]){const a=Oa(s);this.addEdge(r.name,a[0].name,a.slice(1)),this.addExtension(a)}for(const[s,a]of r.peerDependencies||[])this.addEdge(r.name,s,a?[a]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],n=(r,o)=>{let i=r.state;if(Xx(i))return;const s=r.extension.name;var a;of(i)||Fe(300,s,o||"[unknown]"),of(a=i)||Fe(304,String(a.id),String(ap)),i=Object.assign(a,{id:$u}),r.state=i;const c=this.outgoingConfigEdges.get(s);if(c)for(const l of c.keys()){const f=this.extensionNameMap.get(l);f&&n(f,s)}i=G6(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())of(r.state)&&n(r);for(const r of t)for(const[o,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const s=this.extensionNameMap.get(o);if(s)for(const a of i)s.configs.add(a)}for(const[r,...o]of this.roots)if(o.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Fe(301,r.name);for(const s of o)i.configs.add(s)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const n=this.sortedExtensionReps(),r=new AbortController,o=[()=>r.abort()],i=r.signal;for(const s of n){const a=s.register(t,i);a&&o.push(a)}for(const s of n){const a=s.afterRegistration(t);a&&o.push(a)}return un(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const f of a){const{extension:u}=f;if(u.onError!==void 0&&(t.onError=u.onError),u.disableEvents!==void 0&&(t.disableEvents=u.disableEvents),u.parentEditor!==void 0&&(t.parentEditor=u.parentEditor),u.editable!==void 0&&(t.editable=u.editable),u.namespace!==void 0&&(t.namespace=u.namespace),u.$initialEditorState!==void 0&&(t.$initialEditorState=u.$initialEditorState),u.nodes)for(const d of Q6(u)){if(typeof d!="function"){const p=r.get(d.replace);p&&Fe(302,u.name,d.replace.name,p.extension.name),r.set(d.replace,f)}n.add(d)}if(u.html){if(u.html.export)for(const[d,p]of u.html.export.entries())o.set(d,p);u.html.import&&Object.assign(i,u.html.import)}u.theme&&Zx(s,u.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const c=Object.keys(i).length>0,l=o.size>0;(c||l)&&(t.html={},c&&(t.html.import=i),l&&(t.html.export=o));for(const f of a)f.init(t);return t.onError||(t.onError=tN),t}}function nN(e,t){const n=bi.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const rN={name:"@lexical/react/ReactProvider"};function oN(){return We().getTextContent()}function iN(e,t=!0){if(e)return!1;let n=oN();return t&&(n=n.trim()),n===""}function sN(e){if(!iN(e,!1))return!1;const t=We().getChildren(),n=t.length;if(n>1)return!1;for(let r=0;r<n;r++){const o=t[r];if(Te(o))return!1;if(R(o)){if(!Bd(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let a=0;a<s;a++){const c=i[r];if(!X(c))return!1}}}return!0}function e1(e){return()=>sN(e)}function aN(e){const t=window.location.origin,n=r=>{if(r.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const c=a.args;if(c){const[l,f,u,d,p]=c;e.update(()=>{const h=Z();if($(h)){const g=h.anchor;let m=g.getNode(),y=0,v=0;if(X(m)&&l>=0&&f>=0&&(y=l,v=l+f,h.setTextNodeRange(m,y,m,v)),y===v&&u===""||(h.insertRawText(u),m=g.getNode()),X(m)){y=d,v=d+p;const b=m.getTextContentSize();y=y>b?b:y,v=v>b?b:v,h.setTextNodeRange(m,y,m,v)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function t1(e,t){const n=bx(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!o1.has(i.nodeName)){const s=i1(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Ud&&s.insertAfter(Lo());for(const s of i){const a=s.getChildren();for(const c of a)s.insertBefore(c);s.remove()}})(o),r}function n1(e,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=We().getChildren();for(let o=0;o<r.length;o++)r1(e,r[o],n,t);return n.innerHTML}function r1(e,t,n,r=null){let o=r===null||t.isSelected(r);const i=R(t)&&t.excludeFromCopy("html");let s=t;r!==null&&X(t)&&(s=$x(r,t,"clone"));const a=R(s)?s.getChildren():[],c=Kd(e,s.getType());let l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,s):s.exportDOM(e);const{element:f,after:u}=l;if(!f)return!1;const d=document.createDocumentFragment();for(let p=0;p<a.length;p++){const h=a[p],g=r1(e,h,d,r);!o&&R(t)&&g&&t.extractWithChild(h,r,"html")&&(o=!0)}if(o&&!i){if((ht(f)||Du(f))&&f.append(d),n.append(f),u){const p=u.call(s,f);p&&(Du(f)?f.replaceChildren(p):f.replaceWith(p))}}else n.append(d);return o}const o1=new Set(["STYLE","SCRIPT"]);function i1(e,t,n,r,o=new Map,i){let s=[];if(o1.has(e.nodeName))return s;let a=null;const c=(function(h,g){const{nodeName:m}=h,y=g._htmlConversions.get(m.toLowerCase());let v=null;if(y!==void 0)for(const b of y){const w=b(h);w!==null&&(v===null||(v.priority||0)<=(w.priority||0))&&(v=w)}return v!==null?v.conversion:null})(e,t),l=c?c(e):null;let f=null;if(l!==null){f=l.after;const h=l.node;if(a=Array.isArray(h)?h[h.length-1]:h,a!==null){for(const[,g]of o)if(a=g(a,i),!a)break;a&&s.push(...Array.isArray(h)?h:[a])}l.forChild!=null&&o.set(e.nodeName,l.forChild)}const u=e.childNodes;let d=[];const p=(a==null||!jt(a))&&(a!=null&&Pu(a)||r);for(let h=0;h<u.length;h++)d.push(...i1(u[h],t,n,p,new Map(o),a));return f!=null&&(d=f(d)),vc(e)&&(d=cN(e,d,p?()=>{const h=new Ud;return n.push(h),h}:Tt)),a==null?d.length>0?s=s.concat(d):vc(e)&&(function(h){return h.nextSibling==null||h.previousSibling==null?!1:Fu(h.nextSibling)&&Fu(h.previousSibling)})(e)&&(s=s.concat(Lo())):R(a)&&a.append(...d),s}function cN(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(Pu(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&Pu(t[s+1])){const c=n();c.setFormat(r),c.append(...i),o.push(c),i=[]}}return o}function bc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function lN(e,t=Z()){return t==null&&bc(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?"":n1(e,t)}function fN(e,t=Z()){return t==null&&bc(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(uN(e,t))}function Eg(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const a=JSON.parse(r);if(a.namespace===n._config.namespace&&Array.isArray(a.nodes))return Sg(n,dN(a.nodes),t)}catch(a){console.error(a)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const a=new DOMParser().parseFromString((function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:l=>l}).createHTML(c):c})(o),"text/html");return Sg(n,t1(n,a),t)}catch(a){console.error(a)}const s=i||e.getData("text/uri-list");if(s!=null)if($(t)){const a=s.split(/(\r?\n|\t)/);a[a.length-1]===""&&a.pop();for(let c=0;c<a.length;c++){const l=Z();if($(l)){const f=a[c];f===`
|
|
604
|
+
`?r.push(Lo()):s===" "?r.push(oa()):r.push(rt(s))}this.insertNodes(r)}insertText(t){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,a=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,a=n),s.type==="element"&&(function(p,y,b,x){const w=p.getNode(),A=w.getChildAtIndex(p.offset),E=rt();if(E.setFormat(b),E.setStyle(x),Vd(A))A.splice(0,0,[E]);else{const S=Ye(w)?Tt().append(E):E;A===null?w.append(S):A.insertBefore(S)}p.is(y)&&y.set(E.__key,0,"text"),p.set(E.__key,0,"text")})(s,a,o,i),a.type==="element"&&$o(a,Qt(or(a,"next")));const c=s.offset;let l=a.offset;const f=this.getNodes(),u=f.length;let d=f[0];X(d)||B(26);const m=d.getTextContent().length,h=d.getParentOrThrow();let g=f[u-1];if(u===1&&a.type==="element"&&(l=m,a.set(s.key,l,"text")),this.isCollapsed()&&c===m&&(Hn(d)||!d.canInsertTextAfter()||!h.canInsertTextAfter()&&d.getNextSibling()===null)){let p=d.getNextSibling();if(X(p)&&p.canInsertTextBefore()&&!Hn(p)||(p=rt(),p.setFormat(o),p.setStyle(i),h.canInsertTextAfter()?d.insertAfter(p):h.insertAfter(p)),p.select(0,0),d=p,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&c===0&&(Hn(d)||!d.canInsertTextBefore()||!h.canInsertTextBefore()&&d.getPreviousSibling()===null)){let p=d.getPreviousSibling();if(X(p)&&!Hn(p)||(p=rt(),p.setFormat(o),h.canInsertTextBefore()?d.insertBefore(p):h.insertBefore(p)),p.select(),d=p,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&c!==m){const p=rt(d.getTextContent());p.setFormat(o),d.replace(p),d=p}else if(!this.isCollapsed()&&t!==""){const p=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(p)&&(!p.canInsertTextBefore()||!p.canInsertTextAfter()))return this.insertText(""),fx(this.anchor,this.focus,null),void this.insertText(t)}if(u===1){if(wo(d)){const x=rt(t);return x.select(),void d.replace(x)}const p=d.getFormat(),y=d.getStyle();if(c!==l||p===o&&y===i){if(lx(d)){const x=rt(t);return x.setFormat(o),x.setStyle(i),x.select(),void d.replace(x)}}else{if(d.getTextContent()!==""){const x=rt(t);if(x.setFormat(o),x.setStyle(i),x.select(),c===0)d.insertBefore(x,!1);else{const[w]=d.splitText(c);w.insertAfter(x,!1)}return void(x.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const b=l-c;d=d.spliceText(c,b,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=p,this.style=y))}else{const p=new Set([...d.getParentKeys(),...g.getParentKeys()]),y=R(d)?d:d.getParentOrThrow();let b=R(g)?g:g.getParentOrThrow(),x=g;if(!y.is(b)&&b.isInline())do x=b,b=b.getParentOrThrow();while(b.isInline());if(a.type==="text"&&(l!==0||g.getTextContent()==="")||a.type==="element"&&g.getIndexWithinParent()<l)if(X(g)&&!wo(g)&&l!==g.getTextContentSize()){if(g.isSegmented()){const _=rt(g.getTextContent());g.replace(_),g=_}Ye(a.getNode())||a.type!=="text"||(g=g.spliceText(0,l,"")),p.add(g.__key)}else{const _=g.getParentOrThrow();_.canBeEmpty()||_.getChildrenSize()!==1?g.remove():_.remove()}else p.add(g.__key);const w=b.getChildren(),A=new Set(f),E=y.is(b),S=y.isInline()&&d.getNextSibling()===null?y:d;for(let _=w.length-1;_>=0;_--){const N=w[_];if(N.is(d)||R(N)&&N.isParentOf(d))break;N.isAttached()&&(!A.has(N)||N.is(x)?E||S.insertAfter(N,!1):N.remove())}if(!E){let _=b,N=null;for(;_!==null;){const P=_.getChildren(),I=P.length;(I===0||P[I-1].is(N))&&(p.delete(_.__key),N=_),_=_.getParent()}}if(wo(d))if(c===m)d.select();else{const _=rt(t);_.select(),d.replace(_)}else d=d.spliceText(c,m-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let _=1;_<u;_++){const N=f[_],P=N.__key;p.has(P)||N.remove()}}}removeText(){const t=Z()===this;Ga(this,j6(bg(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void ut(null);const r=this.getNodes(),o=[];for(const w of r)X(w)&&o.push(w);const i=w=>{r.forEach(A=>{if(R(A)){const E=A.getFormatFlags(t,w);A.setTextFormat(E)}})},s=o.length;if(s===0)return this.toggleFormat(t),ut(null),void i(n);const a=this.anchor,c=this.focus,l=this.isBackward(),f=l?c:a,u=l?a:c;let d=0,m=o[0],h=f.type==="element"?0:f.offset;if(f.type==="text"&&h===m.getTextContentSize()&&(d=1,m=o[1],h=0),m==null)return;const g=m.getFormatFlags(t,n);i(g);const p=s-1;let y=o[p];const b=u.type==="text"?u.offset:y.getTextContentSize();if(m.is(y)){if(h===b)return;if(Hn(m)||h===0&&b===m.getTextContentSize())m.setFormat(g);else{const w=m.splitText(h,b),A=h===0?w[0]:w[1];A.setFormat(g),f.type==="text"&&f.set(A.__key,0,"text"),u.type==="text"&&u.set(A.__key,b-h,"text")}return void(this.format=g)}h===0||Hn(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const x=y.getFormatFlags(t,g);b>0&&(b===y.getTextContentSize()||Hn(y)||([y]=y.splitText(b)),y.setFormat(x));for(let w=d+1;w<p;w++){const A=o[w],E=A.getFormatFlags(t,x);A.setFormat(E)}f.type==="text"&&f.set(m.__key,h,"text"),u.type==="text"&&u.set(y.__key,b,"text"),this.format=g|x}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=Z();return $(h)||B(134),h.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=at(n,vr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const h=ef(this);r.splice(h,0,t),o.selectEnd()}return}if(!t.some(h=>(R(h)||Te(h))&&!h.isInline())){R(r)||B(211,n.constructor.name,n.getType());const h=ef(this);return r.splice(h,0,t),void o.selectEnd()}const i=(function(h){const g=Tt();let p=null;for(let y=0;y<h.length;y++){const b=h[y],x=xo(b);if(x||Te(b)&&b.isInline()||R(b)&&b.isInline()||X(b)||b.isParentRequired()){if(p===null&&(p=b.createParentElementNode(),g.append(p),x))continue;p!==null&&p.append(b)}else g.append(b),p=null}return g})(t),s=i.getLastDescendant(),a=i.getChildren(),c=!R(r)||!r.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let f=a[0];var u;R(u=f)&&vr(u)&&!u.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||B(211,n.constructor.name,n.getType()),r.append(...f.getChildren()),f=a[1]),f&&(r===null&&B(212,n.constructor.name,n.getType()),(function(h,g){const p=g.getParentOrThrow().getLastChild();let y=g;const b=[g];for(;y!==p;)y.getNextSibling()||B(140),y=y.getNextSibling(),b.push(y);let x=h;for(const w of b)x=x.insertAfter(w)})(r,f));const d=at(s,vr);c&&R(d)&&(c.canMergeWhenEmpty()||vr(l))&&(d.append(...c.getChildren()),c.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const m=R(r)?r.getLastChild():null;xo(m)&&d!==r&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Tt();return We().splice(this.anchor.offset,0,[s]),s.select(),s}const t=ef(this),n=at(this.anchor.getNode(),vr);R(n)||B(213);const r=n.getChildAtIndex(t),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const n=Lo();if(this.insertNodes([n]),t){const r=n.getParentOrThrow(),o=n.getIndexWithinParent();r.select(o,o)}}extract(){const t=[...this.getNodes()],n=t.length;let r=t[0],o=t[n-1];const[i,s]=Iu(this),a=this.isBackward(),[c,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[f,u]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(f,u),m=f===0?d[0]:d[1];return m?(c.set(m.getKey(),0,"text"),l.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[r]}if(X(r)&&(f===r.getTextContentSize()?t.shift():f!==0&&([,r]=r.splitText(f),t[0]=r,c.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;u===0?t.pop():u!==d&&([o]=o.splitText(u),t[t.length-1]=o,l.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(eg(this,t,n,r))return;const o=t==="move",i=Re(),s=tn(en(i));if(!s)return;const a=i._blockCursorElement,c=i._rootElement,l=this.focus.getNode();if(c===null||a===null||!R(l)||l.isInline()||l.canBeEmpty()||ju(a,i,c),this.dirty){let f=Do(i,this.anchor.key),u=Do(i,this.focus.key);this.anchor.type==="text"&&(f=ji(f)),this.focus.type==="text"&&(u=ji(u)),f&&u&&px(s,f,this.anchor.offset,u,this.focus.offset)}if((function(f,u,d,m){f.modify(u,d,m)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const f=s.getRangeAt(0),u=this.anchor.getNode(),d=Ye(u)?u:A6(u);if(this.applyDOMRange(f),this.dirty=!0,!o){const m=this.getNodes(),h=[];let g=!1;for(let p=0;p<m.length;p++){const y=m[p];Fu(y,d)?h.push(y):g=!0}if(g&&h.length>0)if(n){const p=h[0];R(p)?p.selectStart():p.getParentOrThrow().selectStart()}else{const p=h[h.length-1];R(p)?p.selectEnd():p.getParentOrThrow().selectEnd()}s.anchorNode===f.startContainer&&s.anchorOffset===f.startOffset||(function(p){const y=p.focus,b=p.anchor,x=b.key,w=b.offset,A=b.type;b.set(y.key,y.offset,y.type,!0),y.set(x,w,A,!0)})(this)}}r==="lineboundary"&&eg(this,t,n,r,"decorators")}forwardDeletion(t,n,r){if(!r&&(t.type==="element"&&R(n)&&t.offset===n.getChildrenSize()||t.type==="text"&&t.offset===n.getTextContentSize())){const o=n.getParent(),i=n.getNextSibling()||(o===null?null:o.getNextSibling());if(R(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,t))return;const i=cm(or(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const c of i.iterNodeCarets("shadowRoot"))if(On(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const l=Qt(c);Ga(this,zr(l,l)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:c,type:"merge-block"})}}else{if(a.type==="merge-block")break;if($i(c)){if(R(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(i.anchor.origin))break}else a={block:c.origin,type:"merge-next-block"};continue}if(Te(c.origin)){if(!c.origin.isIsolated())if(a.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const l=hx();l.add(c.origin.getKey()),Pt(l)}else c.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:c,block:l}=a;return Ga(this,zr(!c.origin.isEmpty()&&l.isEmpty()?lm(xt(l,c.direction)):i.anchor,c)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&Yp(this,r.getNode()))return}else{const a=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const c=s.offset,l=a.getTextContentSize();if(a.is(o)||t&&c!==l||!t&&c!==0)return void Qp(a,t,c)}else if(o!==null&&o.isSegmented()){const c=r.offset,l=o.getTextContentSize();if(o.is(a)||t&&c!==0||!t&&c!==l)return void Qp(o,t,c)}(function(c,l){const f=c.anchor,u=c.focus,d=f.getNode(),m=u.getNode();if(d===m&&f.type==="text"&&u.type==="text"){const h=f.offset,g=u.offset,p=h<g,y=p?h:g,b=p?g:h,x=b-1;y!==x&&(function(w){return!(Lx(w)||s6(w))})(d.getTextContent().slice(y,b))&&(l?u.set(u.key,x,u.type):f.set(f.key,x,f.type))}})(this,t)}}if(this.removeText(),t&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Ye(r.getParent())&&r.getPreviousSibling()===null&&Yp(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function ot(e){return e instanceof tl}function Vp(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Iu(e){const t=e.getStartEndPoints();if(t===null)return[0,0];const[n,r]=t;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[Vp(n),Vp(r)]}function Yp(e,t){for(let n=t;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(e))return!0;if(jt(n))break}if(n.getPreviousSibling())break}return!1}const s6=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function Qp(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let l=0;l<i;l++){const f=l===i-1;if(a=s,s+=o[l].length,t&&s===n||s>n||f){o.splice(l,1),f&&(a=void 0);break}}const c=o.join("").trim();c===""?r.remove():(r.setTextContent(c),r.select(a,a))}function Gp(e,t,n,r){let o,i=t;if(ht(e)){let s=!1;const a=e.childNodes,c=a.length,l=r._blockCursorElement;i===c&&(s=!0,i=c-1);let f=a[i],u=!1;if(f===l)f=a[i+1],u=!0;else if(l!==null){const d=l.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,l)&&i--}if(o=ui(f),X(o))i=Ir(o,s?"next":"previous");else{let d=ui(e);if(d===null)return null;if(R(d)){const m=r.getElementByKey(d.getKey());m===null&&B(214),[d,i]=d.getDOMSlot(m).resolveChildIndex(d,m,e,t),R(d)||B(215),s&&i>=d.getChildrenSize()&&(i=Math.max(0,d.getChildrenSize()-1));let g=d.getChildAtIndex(i);if(R(g)&&(function(p,y,b){const x=p.getParent();return b===null||x===null||!x.canBeEmpty()||x!==b.getNode()})(g,0,n)){const p=s?g.getLastDescendant():g.getFirstDescendant();p===null?d=g:(g=p,d=R(g)?g:g.getParentOrThrow()),i=0}X(g)?(o=g,d=null,i=Ir(g,s?"next":"previous")):g!==d&&s&&!u&&(R(d)||B(216),i=Math.min(d.getChildrenSize(),i+1))}else{const m=d.getIndexWithinParent();i=t===0&&Te(d)&&ui(e)===d?m:m+1,d=d.getParentOrThrow()}if(R(d))return Mn(d.__key,i,"element")}}else o=ui(e);return X(o)?Mn(o.__key,Ir(o,i,"clamp"),"text"):null}function Zp(e,t,n){const r=e.offset,o=e.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((n||!t)&&i===null&&R(s)&&s.isInline()){const a=s.getPreviousSibling();X(a)&&e.set(a.__key,a.getTextContent().length,"text")}}else R(i)&&!n&&i.isInline()?e.set(i.__key,i.getChildrenSize(),"element"):X(i)&&e.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&R(i)&&i.isInline())e.set(i.__key,0,"element");else if((n||t)&&i===null&&R(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();X(a)&&e.set(a.__key,0,"text")}}}function fx(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Zp(e,r,o),Zp(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=Re();if(i.isComposing()&&i._compositionKey!==e.key&&$(n)){const s=n.anchor,a=n.focus;e.set(s.key,s.offset,s.type,!0),t.set(a.key,a.offset,a.type,!0)}}}function ux(e,t,n,r,o,i){if(e===null||n===null||!aa(o,e,n))return null;const s=Gp(e,t,$(i)?i.anchor:null,o);if(s===null)return null;const a=Gp(n,r,$(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const c=ui(e),l=ui(n);if(Te(c)&&Te(l))return null}return fx(s,a,i),[s,a]}function Lu(e){return R(e)&&!e.isInline()}function dx(e,t,n,r,o,i){const s=Kr(),a=new Ko(Mn(e,t,o),Mn(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function mx(){const e=Mn("root",0,"element"),t=Mn("root",0,"element");return new Ko(e,t,0,"")}function hx(){return new tl(new Set)}function Wd(e,t,n,r){const o=n._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,a=s==="selectionchange",c=!pu&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,f,u,d;if($(e)&&!c)return e.clone();if(t===null)return null;if(l=t.anchorNode,f=t.focusNode,u=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&$(e)&&!aa(n,l,f))return e.clone();const m=ux(l,u,f,d,n,e);if(m===null)return null;const[h,g]=m;return new Ko(h,g,$(e)?e.format:0,$(e)?e.style:"")}function Z(){return Kr()._selection}function Ji(){return Re()._editorState._selection}function vc(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const c=t.__key;if(e.isCollapsed()){const l=o.offset;if(n<=l&&r>0||n<l&&r<0){const f=Math.max(0,l+r);o.set(c,f,"element"),i.set(c,f,"element"),Jp(e)}}else{const l=e.isBackward(),f=l?i:o,u=f.getNode(),d=l?o:i,m=d.getNode();if(t.is(u)){const h=f.offset;(n<=h&&r>0||n<h&&r<0)&&f.set(c,Math.max(0,h+r),"element")}if(t.is(m)){const h=d.offset;(n<=h&&r>0||n<h&&r<0)&&d.set(c,Math.max(0,h+r),"element")}}Jp(e)}function Jp(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!R(i))return;const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text"),r.set(l.__key,f,"text")}return}if(R(i)){const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text")}}if(R(s)){const a=s.getChildrenSize(),c=o>=a,l=c?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),r.set(l.__key,f,"text")}}}function xc(e,t,n,r,o){let i=null,s=0,a=null;r!==null?(i=r.__key,X(r)?(s=r.getTextContentSize(),a="text"):R(r)&&(s=r.getChildrenSize(),a="element")):o!==null&&(i=o.__key,X(o)?a="text":R(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Xp(e,t,n,r,o){e.type==="text"?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function px(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function a6(e,t,n,r,o,i,s){const a=r.anchorNode,c=r.focusNode,l=r.anchorOffset,f=r.focusOffset,u=document.activeElement;if(o.has(QT)&&u!==i||u!==null&&Gd(u))return;if(!$(t))return void(e!==null&&aa(n,a,c)&&r.removeAllRanges());const d=t.anchor,m=t.focus,h=d.key,g=m.key,p=Do(n,h),y=Do(n,g),b=d.offset,x=m.offset,w=t.format,A=t.style,E=t.isCollapsed();let S=p,_=y,N=!1;if(d.type==="text"){S=ji(p);const Y=d.getNode();N=Y.getFormat()!==w||Y.getStyle()!==A}else $(e)&&e.anchor.type==="text"&&(N=!0);var P,I,W,j,z;if(m.type==="text"&&(_=ji(y)),S!==null&&_!==null&&(E&&(e===null||N||$(e)&&(e.format!==w||e.style!==A))&&(P=w,I=A,W=b,j=h,z=performance.now(),ex=[P,I,W,j,z]),l!==b||f!==x||a!==S||c!==_||r.type==="Range"&&E||(u!==null&&i.contains(u)||o.has(JT)||i.focus({preventScroll:!0}),d.type==="element"))){if(px(r,S,b,_,x),!o.has(GT)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const Y=$(t)&&t.anchor.type==="element"?S.childNodes[b]||null:r.rangeCount>0?r.getRangeAt(0):null;if(Y!==null){let Q;if(Y instanceof Text){const oe=document.createRange();oe.selectNode(Y),Q=oe.getBoundingClientRect()}else Q=Y.getBoundingClientRect();(function(oe,M,re){const L=jx(re),F=nm(L);if(L===null||F===null)return;let{top:K,bottom:U}=M,J=0,V=0,ee=re;for(;ee!==null;){const te=ee===L.body;if(te)J=0,V=en(oe).innerHeight;else{const ye=ee.getBoundingClientRect();J=ye.top,V=ye.bottom}let he=0;if(K<J?he=-(J-K):U>V&&(he=U-V),he!==0)if(te)F.scrollBy(0,he);else{const ye=ee.scrollTop;ee.scrollTop+=he;const pe=ee.scrollTop-ye;K-=pe,U-=pe}if(te)break;ee=ca(ee)}})(n,Q,i)}}ku=!0}}function gx(e){let t=Z()||Ji();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function ef(e){let t=e;e.isCollapsed()||t.removeText();const n=Z();$(n)&&(t=n),$(t)||B(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!vr(o);){const s=o;if([o,i]=c6(o,i),s.is(o))break}return i}function c6(e,t){const n=e.getParent();if(!n){const o=Tt();return We().append(o),o.select(),[We(),0]}if(X(e)){const o=e.splitText(t);if(o.length===0)return[n,e.getIndexWithinParent()];const i=t===0?0:1;return[n,o[0].getIndexWithinParent()+i]}if(!R(e)||t===0)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const o=new Ko(Mn(e.__key,t,"element"),Mn(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function eg(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[f,u]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return u.set(f.key,f.offset,f.type),!0}const i=or(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let c=i,l=o==="decorators-and-blocks";if(!Kx(c)){for(const f of c){l=!1;const{origin:u}=f;if(!Te(u)||u.isIsolated()||(c=f,!s||!u.isInline()))break}if(l)for(const f of cm(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(On(f))f.origin.isInline()||(c=f);else{if(R(f.origin))continue;Te(f.origin)&&!f.origin.isInline()&&(c=f)}break}}if(c===i)return!1;if(a&&!s&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const f=hx();return f.add(c.origin.getKey()),Pt(f),!0}return c=Qt(c),a&&$o(e.anchor,c),$o(e.focus,c),l||!s}let it=null,st=null,Ft=!1,tf=!1,Ya=0;const tg={characterData:!0,childList:!0,subtree:!0};function ia(){return Ft||it!==null&&it._readOnly}function bt(){Ft&&B(13)}function yx(){Ya>99&&B(14)}function Kr(){return it===null&&B(195,bx()),it}function Re(){return st===null&&B(196,bx()),st}function bx(){let e=0;const t=new Set,n=Ro.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=rl(o);if(Zd(i))e++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),t.add(s)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function l6(){return st}function ng(e,t,n){const r=t.__type,o=Sx(e,r);let i=n.get(r);i===void 0&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let a=0;a<s&&(i[a](t),t.isAttached());a++);}function rg(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function vx(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const o of r)n.add(o)}function f6(e){return Kd(e,Re()._nodes)}function Kd(e,t){const n=e.type,r=t.get(n);r===void 0&&B(17,n);const o=r.klass;e.type!==o.getType()&&B(18,o.name);const i=o.importJSON(e),s=e.children;if(R(i)&&Array.isArray(s))for(let a=0;a<s.length;a++){const c=Kd(s[a],t);i.append(c)}return i}function og(e,t,n){const r=it,o=Ft,i=st;it=t,Ft=!0,st=e;try{return n()}finally{it=r,Ft=o,st=i}}function Zn(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||r===null;if(n===null)return;const i=e._editorState,s=i._selection,a=n._selection,c=e._dirtyType!==0,l=it,f=Ft,u=st,d=e._updating,m=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&c&&m!==null){st=e,it=n,Ft=!1,e._updating=!0;try{const E=e._dirtyType,S=e._dirtyElements,_=e._dirtyLeaves;m.disconnect(),h=TT(i,n,e,E,S,_)}catch(E){if(E instanceof Error&&e._onError(E),tf)throw E;return _x(e,null,r,n),Nv(e),e._dirtyType=2,tf=!0,Zn(e,i),void(tf=!1)}finally{m.observe(r,tg),e._updating=d,it=l,Ft=f,st=u}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,p=e._dirtyElements,y=e._normalizedNodes,b=e._updateTags,x=e._deferred;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),(function(E,S){const _=E._decorators;let N=E._pendingDecorators||_;const P=S._nodeMap;let I;for(I in N)P.has(I)||(N===_&&(N=Mx(E)),delete N[I])})(e,n);const w=o?null:tn(en(e));if(e._editable&&w!==null&&(c||a===null||a.dirty||!a.is(s))&&r!==null&&!b.has(ZT)){st=e,it=n;try{if(m!==null&&m.disconnect(),c||a===null||a.dirty){const E=e._blockCursorElement;E!==null&&ju(E,e,r),a6(s,a,e,w,b,r)}(function(E,S,_){let N=E._blockCursorElement;if($(_)&&_.isCollapsed()&&_.anchor.type==="element"&&S.contains(document.activeElement)){const P=_.anchor,I=P.getNode(),W=P.offset;let j=!1,z=null;if(W===I.getChildrenSize())rf(I.getChildAtIndex(W-1))&&(j=!0);else{const Y=I.getChildAtIndex(W);if(Y!==null&&rf(Y)){const Q=Y.getPreviousSibling();(Q===null||rf(Q))&&(j=!0,z=E.getElementByKey(Y.__key))}}if(j){const Y=E.getElementByKey(I.__key);return N===null&&(E._blockCursorElement=N=(function(Q){const oe=Q.theme,M=document.createElement("div");M.contentEditable="false",M.setAttribute("data-lexical-cursor","true");let re=oe.blockCursor;if(re!==void 0){if(typeof re=="string"){const L=_v(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(E._config)),S.style.caretColor="transparent",void(z===null?Y.appendChild(N):Y.insertBefore(N,z))}}N!==null&&ju(N,E,S)})(e,r,a)}finally{m!==null&&m.observe(r,tg),st=u,it=l}}h!==null&&(function(E,S,_,N,P){const I=Array.from(E._listeners.mutation),W=I.length;for(let j=0;j<W;j++){const[z,Y]=I[j];for(const Q of Y){const oe=S.get(Q);oe!==void 0&&z(oe,{dirtyLeaves:N,prevEditorState:P,updateTags:_})}}})(e,h,b,g,i),$(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(Jc,void 0);const A=e._pendingDecorators;A!==null&&(e._decorators=A,e._pendingDecorators=null,_s("decorator",e,!0,A)),(function(E,S,_){const N=cg(S),P=cg(_);N!==P&&_s("textcontent",E,!0,P)})(e,t||i,n),_s("update",e,!0,{dirtyElements:p,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:t||i,tags:b}),(function(E,S){if(E._deferred=[],S.length!==0){const _=E._updating;E._updating=!0;try{for(let N=0;N<S.length;N++)S[N]()}finally{E._updating=_}}})(e,x),(function(E){const S=E._updates;if(S.length!==0){const _=S.shift();if(_){const[N,P]=_;nl(E,N,P)}}})(e)}function _s(e,t,n,...r){const o=t._updating;t._updating=n;try{const i=Array.from(t._listeners[e]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{t._updating=o}}function ig(e,t){const n=e._updates;let r=t||!1;for(;n.length!==0;){const o=n.shift();if(o){const[i,s]=o,a=e._pendingEditorState;let c;s!==void 0&&(c=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&B(191),a._flushSync=!0),c&&e._deferred.push(c),vx(e,s.tag)),a==null?nl(e,i,s):i()}}return r}function nl(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,vx(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=wx(c||a),l=!0),c._flushSync=s;const f=it,u=Ft,d=st,m=e._updating;it=c,Ft=!1,e._updating=!0,st=e;const h=e._headless||e.getRootElement()===null;Yd(null);try{l&&(h?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=(function(b,x){const w=b.getEditorState()._selection,A=tn(en(b));return $(w)||w==null?Wd(w,A,b,x):w.clone()})(e,n&&n.event||null));const p=e._compositionKey;t(),i=ig(e,i),(function(b,x){const w=x.getEditorState()._selection,A=b._selection;if($(A)){const E=A.anchor,S=A.focus;let _;if(E.type==="text"&&(_=E.getNode(),_.selectionTransform(w,A)),S.type==="text"){const N=S.getNode();_!==N&&N.selectionTransform(w,A)}}})(c,e),e._dirtyType!==0&&(i?(function(b,x){const w=x._dirtyLeaves,A=b._nodeMap;for(const E of w){const S=A.get(E);X(S)&&S.isAttached()&&S.isSimpleText()&&!S.isUnmergeable()&&Rp(S)}})(c,e):(function(b,x){const w=x._dirtyLeaves,A=x._dirtyElements,E=b._nodeMap,S=Tr(),_=new Map;let N=w,P=N.size,I=A,W=I.size;for(;P>0||W>0;){if(P>0){x._dirtyLeaves=new Set;for(const j of N){const z=E.get(j);X(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&Rp(z),z!==void 0&&rg(z,S)&&ng(x,z,_),w.add(j)}if(N=x._dirtyLeaves,P=N.size,P>0){Ya++;continue}}x._dirtyLeaves=new Set,x._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const j of I){const z=j[0],Y=j[1];if(A.set(z,Y),!Y)continue;const Q=E.get(z);Q!==void 0&&rg(Q,S)&&ng(x,Q,_)}N=x._dirtyLeaves,P=N.size,I=x._dirtyElements,W=I.size,Ya++}x._dirtyLeaves=w,x._dirtyElements=A})(c,e),ig(e),(function(b,x,w,A){const E=b._nodeMap,S=x._nodeMap,_=[];for(const[N]of A){const P=S.get(N);P!==void 0&&(P.isAttached()||(R(P)&&Sv(P,N,E,S,_,A),E.has(N)||A.delete(N),_.push(N)))}for(const N of _)S.delete(N);for(const N of w){const P=S.get(N);P===void 0||P.isAttached()||(E.has(N)||w.delete(N),S.delete(N))}})(a,c,e._dirtyLeaves,e._dirtyElements)),p!==e._compositionKey&&(c._flushSync=!0);const y=c._selection;if($(y)){const b=c._nodeMap,x=y.anchor.key,w=y.focus.key;b.get(x)!==void 0&&b.get(w)!==void 0||B(19)}else ot(y)&&y._nodes.size===0&&(c._selection=null)}catch(p){return p instanceof Error&&e._onError(p),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Zn(e)}finally{it=f,Ft=u,st=d,e._updating=m,Ya=0}e._dirtyType!==0||e._deferred.length>0||(function(p,y){const b=y.getEditorState()._selection,x=p._selection;if(x!==null){if(x.dirty||!x.is(b))return!0}else if(b!==null)return!0;return!1})(c,e)?c._flushSync?(c._flushSync=!1,Zn(e)):l&&g6(()=>{Zn(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Nn(e,t,n){st===e&&n===void 0?t():nl(e,t,n)}class Es{constructor(t,n,r){D(this,"element");D(this,"before");D(this,"after");this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new Es(this.element,t,this.after)}withAfter(t){return new Es(this.element,this.before,t)}withElement(t){return this.element===t?this:new Es(t,this.before,this.after)}insertChild(t){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&B(222),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&B(223),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&B(224),this.element.replaceChild(t,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const n=t==="decorator"&&(ra||Qi||na);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const n=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&n.removeChild(r),n.removeChild(t),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const n=this.getManagedLineBreak();if(n){if(t===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),t){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let n=this.after;n!==null;n=n.previousSibling)t++;return t}resolveChildIndex(t,n,r,o){if(r===this.element){const c=this.getFirstChildOffset();return[t,Math.min(c+t.getChildrenSize(),Math.max(c,o))]}const i=sg(n,r);i.push(o);const s=sg(n,this.element);let a=t.getIndexWithinParent();for(let c=0;c<s.length;c++){const l=i[c],f=s[c];if(l===void 0||l<f)break;if(l>f){a+=1;break}}return[t.getParentOrThrow(),a]}}function sg(e,t){const n=[];let r=t;for(;r!==e&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;n.push(o)}return r!==e&&B(225),n.reverse()}class In extends ln{constructor(n){super(n);D(this,"__first");D(this,"__last");D(this,"__size");D(this,"__format");D(this,"__style");D(this,"__indent");D(this,"__dir");D(this,"__textFormat");D(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return gT[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r),r=r.getNextSibling();return n}getChildrenKeys(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r.__key),r=r.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Re()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(n)}getAllTextNodes(){const n=[];let r=this.getFirstChild();for(;r!==null;){if(X(r)&&n.push(r),R(r)){const o=r.getAllTextNodes();n.push(...o)}r=r.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const r=n.getFirstChild();if(r===null)break;n=r}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const r=n.getLastChild();if(r===null)break;n=r}return n}getDescendantByIndex(n){const r=this.getChildren(),o=r.length;if(n>=o){const s=r[o-1];return R(s)&&s.getLastDescendant()||s||null}const i=r[n];return R(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Xe(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&B(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Xe(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&B(96,this.__key),n}getChildAtIndex(n){const r=this.getChildrenSize();let o,i;if(n<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=n;){if(i===n)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=n;){if(i===n)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let n="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContent(),R(s)&&i!==o-1&&!s.isInline()&&(n+=jr)}return n}getTextContentSize(){let n=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContentSize(),R(s)&&i!==o-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const r=kp[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=Po[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return wc(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){bt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const l=this.getFirstChild();if(X(l)||R(l))return l.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const l=this.getLastChild();if(X(l)||R(l))return l.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const c=this.__key;return $(o)?(o.anchor.set(c,i,"element"),o.focus.set(c,s,"element"),o.dirty=!0,o):dx(c,i,c,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(r=>r.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const r=this.getWritable();return r.__dir=n,r}setFormat(n){return this.getWritable().__format=n!==""?kp[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const r=this.getWritable();return r.__textFormat=n,r}setTextStyle(n){const r=this.getWritable();return r.__textStyle=n,r}setIndent(n){return this.getWritable().__indent=n,this}splice(n,r,o){bc(this)&&B(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+r<=i||B(226,String(n),String(r),String(i));const a=s.__key,c=[],l=[],f=this.getChildAtIndex(n+r);let u=null,d=i-r+o.length;if(n!==0)if(n===i)u=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(u=h.getPreviousSibling())}if(r>0){let h=u===null?this.getFirstChild():u.getNextSibling();for(let g=0;g<r;g++){h===null&&B(100);const p=h.getNextSibling(),y=h.__key;Ao(h.getWritable()),l.push(y),h=p}}let m=u;for(const h of o){m!==null&&h.is(m)&&(u=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===a&&d--,Ao(g);const p=h.__key;if(m===null)s.__first=p,g.__prev=null;else{const y=m.getWritable();y.__next=p,g.__prev=y.__key}h.__key===a&&B(76),g.__parent=a,c.push(p),m=h}if(n+r===i)m!==null&&(m.getWritable().__next=null,s.__last=m.__key);else if(f!==null){const h=f.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=f.__key}else h.__prev=null}if(s.__size=d,l.length){const h=Z();if($(h)){const g=new Set(l),p=new Set(c),{anchor:y,focus:b}=h;ag(y,g,p)&&xc(y,y.getNode(),this,u,f),ag(b,g,p)&&xc(b,b.getNode(),this,u,f),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new Es(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(ht(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r===0&&o===""||jt(this)||this.getChildren().some(X)||(r!==0&&(n.textFormat=r),o!==""&&(n.textStyle=o)),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,r){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,r){const o=this.getDOMSlot(n);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const a=r.getElementByKey(s.getKey());a!==null&&(i==null?(o.insertChild(a),i=a):i!==a&&o.replaceChild(a,i),i=i.nextSibling)}}}function R(e){return e instanceof In}function ag(e,t,n){let r=e.getNode();for(;r;){const o=r.__key;if(t.has(o)&&!n.has(o))return!0;r=r.getParent()}return!1}class xx extends ln{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof xx}class Xi extends In{constructor(){super("root");D(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Xi}getTopLevelElementOrThrow(){B(51)}getTextContent(){const n=this.__cachedText;return!ia()&&Re()._dirtyType!==0||n===null?super.getTextContent():n}remove(){B(52)}replace(n){B(53)}insertBefore(n){B(54)}insertAfter(n){B(55)}updateDOM(n,r){return!1}splice(n,r,o){for(const i of o)R(i)||Te(i)||B(282);return super.splice(n,r,o)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Ye(e){return e instanceof Xi}function wx(e){return new sa(new Map(e._nodeMap))}function Hd(){return new sa(new Map([["root",new Xi]]))}function Ax(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&B(130,n.name),R(e)){const r=t.children;Array.isArray(r)||B(59,n.name);const o=e.getChildren();for(let i=0;i<o.length;i++){const s=Ax(o[i]);r.push(s)}}return t}function u6(e){return e instanceof sa}class sa{constructor(t,n){D(this,"_nodeMap");D(this,"_selection");D(this,"_flushSync");D(this,"_readOnly");this._nodeMap=t,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,n){return og(n&&n.editor||null,this,t)}clone(t){const n=new sa(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return og(null,this,()=>({root:Ax(We())}))}}class qd extends In{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class es extends In{static getType(){return"paragraph"}static clone(t){return new es(t.__key)}createDOM(t){const n=document.createElement("p"),r=xi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:d6,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(ht(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(t){return Tt().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(t.textFormat===void 0||t.textStyle===void 0){const n=this.getChildren().find(X);n?(t.textFormat=n.getFormat(),t.textStyle=n.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,n){const r=Tt();r.setTextFormat(t.format),r.setTextStyle(t.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||X(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function d6(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),k6(e,t)),{node:t}}function Tt(){return Hr(new es)}function Vd(e){return e instanceof es}const Ae=0,Jn=1,m6=3,Cx=4;function _x(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Hd(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),n!==null&&(n.textContent="",o.set("root",n))}function h6(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=sl(r),i=r.transform;if(!n.has(i)){n.add(i);const s=r.transform();s&&t.add(s)}if(o){const s=o.$transform;s&&t.add(s),r=o.extends}else{const s=Object.getPrototypeOf(r);r=s.prototype instanceof ln&&s!==ln?s:void 0}}return t}function Ex(e){const t=e||{},n=l6(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=Hd(),a=t.namespace||(o!==null?o._config.namespace:Rx()),c=t.editorState,l=[Xi,Wr,Gi,Zi,es,qd,...t.nodes||[]],{onError:f,html:u}=t,d=t.editable===void 0||t.editable;let m;if(e===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<l.length;g++){let p=l[g],y=null,b=null;if(typeof p!="function"){const A=p;p=A.replace,y=A.with,b=A.withKlass||null}sl(p);const x=p.getType(),w=h6(p);m.set(x,{exportDOM:u&&u.export?u.export.get(p):void 0,klass:p,replace:y,replaceWithKlass:b,sharedNodeState:CT(l[g]),transforms:w})}}const h=new Ro(s,o,m,{disableEvents:i,namespace:a,theme:r},f||console.error,(function(g,p){const y=new Map,b=new Set,x=w=>{Object.keys(w).forEach(A=>{let E=y.get(A);E===void 0&&(E=[],y.set(A,E)),E.push(w[A])})};return g.forEach(w=>{const A=w.klass.importDOM;if(A==null||b.has(A))return;b.add(A);const E=A.call(w.klass);E!==null&&x(E)}),p&&x(p),y})(m,u?u.import:void 0),d,e);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),(function(g){g.registerCommand(Dv,BT,Ae),g.registerCommand(Fv,UT,Ae),g.registerCommand(jv,WT,Ae),g.registerCommand(zv,KT,Ae),g.registerCommand($v,HT,Ae)})(h),h}class Ro{constructor(t,n,r,o,i,s,a,c){D(this,"_headless");D(this,"_parentEditor");D(this,"_rootElement");D(this,"_editorState");D(this,"_pendingEditorState");D(this,"_compositionKey");D(this,"_deferred");D(this,"_keyToDOMMap");D(this,"_updates");D(this,"_updating");D(this,"_listeners");D(this,"_commands");D(this,"_nodes");D(this,"_decorators");D(this,"_pendingDecorators");D(this,"_config");D(this,"_dirtyType");D(this,"_cloneNotNeeded");D(this,"_dirtyLeaves");D(this,"_dirtyElements");D(this,"_normalizedNodes");D(this,"_updateTags");D(this,"_observer");D(this,"_key");D(this,"_onError");D(this,"_htmlConversions");D(this,"_window");D(this,"_editable");D(this,"_blockCursorElement");D(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Rx(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const n=this._listeners.update;return n.add(t),()=>{n.delete(t)}}registerEditableListener(t){const n=this._listeners.editable;return n.add(t),()=>{n.delete(t)}}registerDecoratorListener(t){const n=this._listeners.decorator;return n.add(t),()=>{n.delete(t)}}registerTextContentListener(t){const n=this._listeners.textcontent;return n.add(t),()=>{n.delete(t)}}registerRootListener(t){const n=this._listeners.root;return t(this._rootElement,null),n.add(t),()=>{t(null,this._rootElement),n.delete(t)}}registerCommand(t,n,r){r===void 0&&B(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&B(36,String(t));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,n,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(o);const a=r&&r.skipInitialization;return a!==void 0&&a||this.initializeMutationListener(n,o),()=>{s.delete(o),s.size===0&&i.delete(n)}}getRegisteredNode(t){const n=this._nodes.get(t.getType());return n===void 0&&B(37,t.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,n){const r=this._editorState,o=pg(r).get(n.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,n){const r=this.getRegisteredNode(t);return r.transforms.add(n),r}registerNodeTransform(t,n){const r=this.registerNodeTransformToKlass(t,n),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);o.push(s)}return(function(s,a){const c=pg(s.getEditorState()),l=[];for(const f of a){const u=c.get(f);u&&l.push(u)}l.length!==0&&s.update(()=>{for(const f of l)for(const u of f.keys()){const d=Xe(u);d&&d.markDirty()}},s._pendingEditorState===null?{tag:vo}:void 0)})(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(n))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,n){return ie(this,t,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const n=this._rootElement;if(t!==n){const r=xi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,_x(this,n,t,o),n!==null&&(this._config.disableEvents||qT(n),r!=null&&n.classList.remove(...r)),t!==null){const i=nm(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,Nv(this),this._updateTags.add(vo),Zn(this),this._config.disableEvents||(function(a,c){const l=a.ownerDocument;Su.set(a,l);const f=gc.get(l)??0;f<1&&l.addEventListener("selectionchange",ix),gc.set(l,f+1),a.__lexicalEditor=c;const u=ox(a);for(let d=0;d<Eu.length;d++){const[m,h]=Eu[d],g=typeof h=="function"?p=>{Up(p)||(Bp(p),(c.isEditable()||m==="click")&&h(p,c))}:p=>{if(Up(p))return;Bp(p);const y=c.isEditable();switch(m){case"cut":return y&&ie(c,Bd,p);case"copy":return ie(c,el,p);case"paste":return y&&ie(c,Xc,p);case"dragstart":return y&&ie(c,Gv,p);case"dragover":return y&&ie(c,Zv,p);case"dragend":return y&&ie(c,RT,p);case"focus":return y&&ie(c,jT,p);case"blur":return y&&ie(c,zT,p);case"drop":return y&&ie(c,Qv,p)}};a.addEventListener(m,g),u.push(()=>{a.removeEventListener(m,g)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(vo),Zn(this);_s("root",this,!1,t,n)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,n){t.isEmpty()&&B(38);let r=t;r._readOnly&&(r=wx(t),r._selection=t._selection?t._selection.clone():null),Tv(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Zn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Zn(this)}parseEditorState(t,n){return(function(r,o,i){const s=Hd(),a=it,c=Ft,l=st,f=o._dirtyElements,u=o._dirtyLeaves,d=o._cloneNotNeeded,m=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,it=s,Ft=!1,st=o,Yd(null);try{const h=o._nodes;Kd(r.root,h),i&&i(),s._readOnly=!0}catch(h){h instanceof Error&&o._onError(h)}finally{o._dirtyElements=f,o._dirtyLeaves=u,o._cloneNotNeeded=d,o._dirtyType=m,it=a,Ft=c,st=l}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Zn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):nl(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Nn(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),x6("focus"),w6(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=tn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,_s("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}D(Ro,"version");Ro.version="0.39.0+prod.esm";let Ru=null;function Yd(e){Ru=e}let p6=1;function Sx(e,t){const n=Qd(e,t);return n===void 0&&B(30,t),n}function Qd(e,t){return e._nodes.get(t)}const g6=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function kx(e){return Te(zi(e))}function Gd(e){const t=document.activeElement;if(!ht(t))return!1;const n=t.nodeName;return Te(zi(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&rl(t)==null)}function aa(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Gd(t)&&Tx(t)===e}catch{return!1}}function Zd(e){return e instanceof Ro}function Tx(e){let t=e;for(;t!=null;){const n=rl(t);if(Zd(n))return n;t=ca(t)}return null}function rl(e){return e?e.__lexicalEditor:null}function wo(e){return lx(e)||e.isToken()}function Hn(e){return wo(e)||e.isSegmented()}function ur(e){return ts(e)&&e.nodeType===3}function Nx(e){return ts(e)&&e.nodeType===9}function ji(e){let t=e;for(;t!=null;){if(ur(t))return t;t=t.firstChild}return null}function wc(e,t,n){const r=Po[t];if(n!==null&&(e&r)===(n&r))return e;let o=e^r;return t==="subscript"?o&=-65:t==="superscript"?o&=-33:t==="lowercase"?(o&=-513,o&=-1025):t==="uppercase"?(o&=-257,o&=-1025):t==="capitalize"&&(o&=-257,o&=-513),o}function Ox(e){return X(e)||xo(e)||Te(e)}function y6(e,t){const n=(function(){const s=Ru;return Ru=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);bt(),yx();const r=Re(),o=Kr(),i=""+p6++;o._nodeMap.set(i,e),R(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Ao(e){const t=e.getParent();if(t!==null){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=i!==null?i.__key:null,a=o!==null?o.__key:null,c=o!==null?o.getWritable():null,l=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),c!==null&&(c.__next=s),l!==null&&(l.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Ac(e){yx(),bc(e)&&B(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=Kr(),o=Re(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(c,l,f){let u=c;for(;u!==null;){if(f.has(u))return;const d=l.get(u);if(d===void 0)break;f.set(u,!1),u=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function ut(e){bt();const t=Re(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){const r=Xe(n);r!==null&&r.getWritable()}if(e!==null){const r=Xe(e);r!==null&&r.getWritable()}}}function Tr(){return ia()?null:Re()._compositionKey}function Xe(e,t){const n=(t||Kr())._nodeMap.get(e);return n===void 0?null:n}function Px(e,t){const n=ol(e,Re());return n!==void 0?Xe(n,t):null}function ol(e,t){return e[`__lexicalKey_${t._key}`]}function zi(e,t){let n=e;for(;n!=null;){const r=Px(n,t);if(r!==null)return r;n=ca(n)}return null}function Mx(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function cg(e){return e.read(()=>We().getTextContent())}function We(){return Ix(Kr())}function Ix(e){return e._nodeMap.get("root")}function Pt(e){bt();const t=Kr();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function ui(e){const t=Re(),n=(function(r,o){let i=r;for(;i!=null;){const s=ol(i,o);if(s!==void 0)return s;i=ca(i)}return null})(e,t);return n===null?e===t.getRootElement()?Xe("root"):null:Xe(n)}function Lx(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Jd(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function Rx(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Dx(e){return ur(e)?e.nodeValue:null}function Xd(e,t,n){const r=tn(en(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let a=Dx(o);const c=zi(o);if(a!==null&&X(c)){if(a===Gc&&n){const l=n.length;a=n,i=l,s=l}a!==null&&em(c,a,i,s,e)}}}function em(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===Gc&&(a=t.slice(0,-1));const c=i.getTextContent();if(o||a!==c){if(a===""){if(ut(null),na||Qi||ra)i.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=Ji(),u=i.getTextContentSize(),d=Tr(),m=i.getKey();if(i.isToken()||d!==null&&m===d&&!s||$(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===e.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===e.__key&&f.focus.offset===u&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=Z();if(!$(h)||n===null||r===null)return void lg(i,a,h);if(h.setTextNodeRange(i,n,i,r),i.isSegmented()){const g=rt(i.getTextContent());i.replace(g),i=g}lg(i,a,h)}}}function lg(e,t,n){if(e.setTextContent(t),$(n)){const r=e.getKey();for(const o of["anchor","focus"]){const i=n[o];i.type==="text"&&i.key===r&&(i.offset=Ir(e,i.offset,"clamp"))}}}function Pa(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function b6(e,t){return Pa(e,t,"altKey")&&Pa(e,t,"ctrlKey")&&Pa(e,t,"shiftKey")&&Pa(e,t,"metaKey")}function Ie(e,t,n){return b6(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Wn={ctrlKey:!an,metaKey:an},fg={altKey:an,ctrlKey:!an};function ug(e){return e.key==="Backspace"}function dg(e){return Ie(e,"a",Wn)}function v6(e){const t=We();if($(e)){const n=e.anchor,r=e.focus,o=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(o.getKey(),0,"element"),r.set(o.getKey(),o.getChildrenSize(),"element"),Fi(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(Fi(n)),n}}function xi(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;const o=e[t];if(typeof o=="string"){const i=_v(o);return n[t]=i,i}return o}function tm(e,t,n,r,o){if(n.size===0)return;const i=r.__type,s=r.__key,a=t.get(i);a===void 0&&B(33,i);const c=a.klass;let l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));const f=l.get(s),u=f==="destroyed"&&o==="created";(f===void 0||u)&&l.set(s,u?"updated":o)}function mg(e,t,n){const r=e.getParent();let o=n,i=e;return r!==null&&(t&&n===0?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Du(e,t){const n=e.offset;if(e.type==="element")return mg(e.getNode(),t,n);{const r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){const o=t?r.getPreviousSibling():r.getNextSibling();return o===null?mg(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function Fx(e){const t=en(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(e,t,n){return(function(r,o,i){const s=Jd(r);for(let a=4;a>=0;a--)for(let c=0;c<s.length;c++){const l=s[c],f=l._commands.get(o);if(f!==void 0){const u=f[a];if(u!==void 0){const d=Array.from(u),m=d.length;let h=!1;if(Nn(l,()=>{for(let g=0;g<m;g++)if(d[g](i,r))return void(h=!0)}),h)return h}}}return!1})(e,t,n)}function il(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function Do(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&B(75,t),n}function ca(e){const t=e.assignedSlot||e.parentElement;return zu(t)?t.host:t}function jx(e){return Nx(e)?e:ht(e)?e.ownerDocument:null}function x6(e){bt(),Re()._updateTags.add(e)}function w6(e){bt(),Re()._deferred.push(e)}function Fu(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function nm(e){const t=jx(e);return t?t.defaultView:null}function en(e){const t=e._window;return t===null&&B(78),t}function A6(e){let t=e.getParentOrThrow();for(;t!==null;){if(jt(t))return t;t=t.getParentOrThrow()}return t}function jt(e){return Ye(e)||R(e)&&e.isShadowRoot()}function Hr(e){const t=Re(),n=e.getType(),r=Qd(t,n);r===void 0&&B(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(e),a=s.constructor;return i!==null?s instanceof i||B(201,i.name,i.getType(),a.name,a.getType(),e.constructor.name,n):s instanceof e.constructor&&a!==e.constructor||B(202,a.name,a.getType(),e.constructor.name,n),s.__key===e.__key&&B(203,e.constructor.name,n,a.name,a.getType()),s}return e}function nf(e,t){!Ye(e.getParent())||R(t)||Te(t)||B(99)}function C6(e){const t=Xe(e);return t===null&&B(63,e),t}function rf(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function ju(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function tn(e){return mn?(e||window).getSelection():null}function _6(e){const t=nm(e);return t?t.getSelection():null}function zx(e){return ht(e)&&e.tagName==="A"}function ht(e){return ts(e)&&e.nodeType===1}function ts(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function zu(e){return ts(e)&&e.nodeType===11}function $u(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return e.nodeName.match(t)!==null}function Cc(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return e.nodeName.match(t)!==null}function vr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||xo(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function rm(){return Re()}const hg=new WeakMap,E6=new Map;function pg(e){if(!e._readOnly&&e.isEmpty())return E6;e._readOnly||B(192);let t=hg.get(e);return t||(t=(function(n){const r=new Map;for(const[o,i]of n._nodeMap){const s=i.__type;let a=r.get(s);a||(a=new Map,r.set(s,a)),a.set(o,i)}return r})(e),hg.set(e,t)),t}function $x(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function S6(e){return(t=$x(e))[sx]=!0,t;var t}function k6(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function T6(e){return e.__lexicalUnmanaged===!0}function ms(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==ln[t]}function sl(e){const t=Tp in e.prototype?e.prototype[Tp]():void 0,n=(function(s){if(!(s===ln||s.prototype instanceof ln)){let a="<unknown>",c="<unknown>";try{a=s.getType()}catch{}try{Ro.version&&(c=JSON.parse(Ro.version))}catch{}B(290,s.name,a,c)}return s===xx||s===In||s===ln})(e),r=!n&&ms(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[s,a]of Object.entries(t))i=s,o=a;if(!n&&i&&(ms(e,"getType")||(e.getType=()=>i),ms(e,"clone")||(e.clone=s=>(Yd(s),new e)),ms(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!ms(e,"importDOM")&&o)){const{importDOM:s}=o;s&&(e.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const at=(e,t)=>{let n=e;for(;n!=null&&!Ye(n);){if(t(n))return n;n=n.getParent()}return null},N6={next:"previous",previous:"next"};class om{constructor(t){D(this,"origin");this.origin=t}[Symbol.iterator](){return Bx({hasNext:$i,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return xt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return xt(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,n){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,n)),this}splice(t,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),a=new Map;for(let c=i.getAdjacentCaret();c!==null&&a.size<t;c=c.getAdjacentCaret()){const l=c.origin.getWritable();a.set(l.getKey(),l)}for(const c of o){if(a.size>0){const l=i.getNodeAtCaret();if(l){if(a.delete(l.getKey()),a.delete(c.getKey()),!(l.is(c)||i.origin.is(c))){const f=c.getParent();f&&f.is(s)&&c.remove(),l.replace(c)}}else l===null&&B(263,Array.from(a).join(" "))}else i.insert(c);i=xt(c,this.direction)}for(const c of a.values())c.remove();return this}}class Bs extends om{constructor(){super(...arguments);D(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:un(n,this.direction)}getParentCaret(n="root"){return xt(im(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=ns(this.direction);return xt(this.getNodeAtCaret(),n)||un(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Bs&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const O6={root:Ye,shadowRoot:jt};function ns(e){return N6[e]}function im(e,t="root"){return O6[t](e)?null:e}class Fo extends om{constructor(){super(...arguments);D(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:xt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?un(this.origin,this.direction):null}getParentCaret(n="root"){return xt(im(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=ns(this.direction);return xt(this.getNodeAtCaret(),n)||un(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Fo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Fo||n instanceof jo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class jo extends om{constructor(n,r){super(n);D(this,"type","text");D(this,"offset");this.offset=r}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:zo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return xt(im(this.getParentAtCaret(),n),this.direction)}getFlipped(){return zo(this.origin,ns(this.direction),this.offset)}isSamePointCaret(n){return n instanceof jo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Fo||n instanceof jo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return xt(this.origin,this.direction)}}function Mr(e){return e instanceof jo}function $i(e){return e instanceof Fo}function On(e){return e instanceof Bs}const P6={next:class extends jo{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends jo{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},M6={next:class extends Fo{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Fo{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},I6={next:class extends Bs{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Bs{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function xt(e,t){return e?new M6[t](e):null}function zo(e,t,n){return e?new P6[t](e,Ir(e,n)):null}function Ir(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&Av(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function gg(e,t){return new R6(e,t)}function un(e,t){return R(e)?new I6[t](e):null}function L6(e){return e&&e.getChildCaret()||e}function sm(e){return e&&L6(e.getAdjacentCaret())}class am{constructor(t,n,r){D(this,"type","node-caret-range");D(this,"direction");D(this,"anchor");D(this,"focus");this.anchor=t,this.focus=n,this.direction=r}getLatest(){const t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new am(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Mr(i)?(function(s,a){const{direction:c,origin:l}=s,f=Ir(l,a==="focus"?ns(c):c);return gg(s,f-s.offset)})(i,o):null},n=t("anchor"),r=t("focus");if(n&&r){const{caret:o}=n,{caret:i}=r;if(o.isSameNodeCaret(i))return[gg(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Mr(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Mr(r),i=s=>s.isSameNodeCaret(r)?null:sm(s)||s.getParentCaret(t);return Bx({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:n.isSameNodeCaret(r)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class R6{constructor(t,n){D(this,"type","slice");D(this,"caret");D(this,"distance");this.caret=t,this.distance=n}getSliceIndices(){const{distance:t,caret:{offset:n}}=this,r=n+t;return r<n?[r,n]:[n,r]}getTextContent(){const[t,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:n}}=this,[r,o]=this.getSliceIndices(),i=t.getTextContent();return zo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function cm(e){return zr(e,xt(We(),e.direction))}function D6(e){return zr(e,e)}function zr(e,t){return e.direction!==t.direction&&B(265),new am(e,t,e.direction)}function Bx(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function Ux(e,t){const n=Qa(e.origin,t.origin);switch(n===null&&B(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const r=e.type==="text",o=t.type==="text";return r&&o?(function(i,s){return Math.sign(i-s)})(e.offset,t.offset):e.type===t.type?0:r?-1:o?1:e.type==="child"?-1:1}case"ancestor":return e.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return Wx(n)}}function Wx(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function Ma(e,t){return t.is(e)}function yg(e){return R(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Qa(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=yg(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=yg(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(Ma(e,r)||B(276),{commonAncestor:r,type:"ancestor"}):o===null?(Ma(t,r)||B(277),{commonAncestor:r,type:"descendant"}):((R(i)||Ma(e,i))&&(R(o)||Ma(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||B(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function or(e,t){const{type:n,key:r,offset:o}=e,i=C6(e.key);return n==="text"?(X(i)||B(266,i.getType(),r),zo(i,t,o)):(R(i)||B(267,i.getType(),r),z6(i,e.offset,t))}function $o(e,t){const{origin:n,direction:r}=t,o=r==="next";Mr(t)?e.set(n.getKey(),t.offset,"text"):$i(t)?X(n)?e.set(n.getKey(),Ir(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(On(t)&&R(n)||B(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function F6(e){const t=Z(),n=$(t)?t:mx();return Ga(n,e),Pt(n),n}function Ga(e,t){$o(e.anchor,t.anchor),$o(e.focus,t.focus)}function bg(e){const{anchor:t,focus:n}=e,r=or(t,"next"),o=or(n,"next"),i=Ux(r,o)<=0?"next":"previous";return zr(Bi(r,i),Bi(o,i))}function lm(e){const{direction:t,origin:n}=e,r=xt(n,ns(t)).getNodeAtCaret();return r?xt(r,t):un(n.getParentOrThrow(),t)}function vg(e,t="root"){const n=[e];for(let r=On(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(lm(r));return n}function of(e){return!!e&&e.origin.isAttached()}function j6(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Hx(e,r),s=vg(i.anchor,n),a=vg(i.focus.getFlipped(),n),c=new Set,l=[];for(const h of i.iterNodeCarets(n))if(On(h))c.add(h.origin.getKey());else if($i(h)){const{origin:g}=h;R(g)&&!c.has(g.getKey())||l.push(g)}for(const h of l)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,p=g.getTextContentSize(),y=lm(xt(g,r)),b=g.getMode();if(Math.abs(h.distance)===p&&o==="removeEmptySlices"||b==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){o="removeEmptySlices";let x=h.removeTextSlice();const w=h.caret.origin;if(b==="segmented"){const A=x.origin,E=rt(A.getTextContent()).setStyle(A.getStyle()).setFormat(A.getFormat());y.replaceOrInsert(E),x=zo(E,r,x.offset)}w.is(s[0].origin)&&(s[0]=x),w.is(a[0].origin)&&(a[0]=x.getFlipped())}}let f,u;for(const h of s)if(of(h)){f=Qt(h);break}for(const h of a)if(of(h)){u=Qt(h);break}const d=(function(h,g,p){if(!h||!g)return null;const y=h.getParentAtCaret(),b=g.getParentAtCaret();if(!y||!b)return null;const x=y.getParents().reverse();x.push(y);const w=b.getParents().reverse();w.push(b);const A=Math.min(x.length,w.length);let E;for(E=0;E<A&&x[E]===w[E];E++);const S=(P,I)=>{let W;for(let j=E;j<P.length;j++){const z=P[j];if(jt(z))return;!W&&I(z)&&(W=z)}return W},_=S(x,vr),N=_&&S(w,P=>p.has(P.getKey())&&vr(P));return _&&N?[_,N]:null})(f,u,c);if(d){const[h,g]=d;un(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[f,u,...s,...a].find(of);if(m)return D6(Bi(Qt(m),e.direction));B(269,JSON.stringify(s.map(h=>h.origin.__key)))}function Qt(e){const t=(function(o){let i=o;for(;On(i);){const s=sm(i);if(!On(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Mr(t)?t:zo(t.origin,n,n);const r=t.getAdjacentCaret();return $i(r)&&X(r.origin)?zo(r.origin,n,ns(n)):t}function Kx(e){return Mr(e)&&e.offset!==Ir(e.origin,e.direction)}function Bi(e,t){return e.direction===t?e:e.getFlipped()}function Hx(e,t){return e.direction===t?e:zr(Bi(e.focus,t),Bi(e.anchor,t))}function z6(e,t,n){let r=un(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Bi(r,n)}function $6(...e){return e}function B6(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const qx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,U6=qx?T.useLayoutEffect:T.useEffect,Ia={tag:vo};function W6({initialConfig:e,children:t}){const n=T.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:c}=e,l=nT(null,r),f=Ex({editable:e.editable,html:c,namespace:o,nodes:i,onError:u=>s(u,f),theme:r});return(function(u,d){if(d!==null){if(d===void 0)u.update(()=>{const m=We();if(m.isEmpty()){const h=Tt();m.append(h);const g=qx?document.activeElement:null;(Z()!==null||g!==null&&g===u.getRootElement())&&h.select()}},Ia);else if(d!==null)switch(typeof d){case"string":{const m=u.parseEditorState(d);u.setEditorState(m,Ia);break}case"object":u.setEditorState(d,Ia);break;case"function":u.update(()=>{We().isEmpty()&&d(u)},Ia)}}})(f,a),[f,l]},[]);return U6(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),v.jsx(wv.Provider,{value:n,children:t})}const K6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function H6(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function q6(){return(function(e){const[t]=mt(),n=T.useMemo(()=>e(t),[t,e]),[r,o]=T.useState(()=>n.initialValueFn()),i=T.useRef(r);return K6(()=>{const{initialValueFn:s,subscribe:a}=n,c=s();return i.current!==c&&(i.current=c,o(c)),a(l=>{i.current=l,o(l)})},[n,e]),r})(H6)}function V6(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Bu=new Map;function Vx(e){const t={};if(!e)return t;const n=e.split(";");for(const r of n)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function xg(e){let t=Bu.get(e);return t===void 0&&(t=Vx(e),Bu.set(e,t)),t}function Yx(e){const t=rm().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function Qx(e){return Yx(Ye(e)?e:e.getParentOrThrow())}function wg(e){const t=Qx(e);return t!==null&&t.direction==="rtl"}function Gx(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Hn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),c=i.getNode(),l=t.is(a),f=t.is(c);if(l||f){const[u,d]=Iu(e),m=a.is(c),h=t.is(s?c:a),g=t.is(s?a:c);let p,y=0;m?(y=u>d?d:u,p=u>d?u:d):h?(y=s?d:u,p=void 0):g&&(y=0,p=s?u:d);const b=t.__text.slice(y,p);b!==t.__text&&(n==="clone"&&(t=S6(t)),t.__text=b)}}return t}function Ag(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||V6(177),e.offset===t.getChildrenSize()}function Y6(e){const t=e.getStyle(),n=Vx(t);Bu.set(t,n)}function Zx(e){const t=Jx(e);return t!==null&&t.writingMode==="vertical-rl"}function Jx(e){const t=e.anchor.getNode();return R(t)?Yx(t):Qx(t)}function Cg(e,t){let n=Zx(e)?!t:t;Xx(e)&&(n=!n);const r=or(e.focus,n?"previous":"next");if(Kx(r))return!1;for(const o of cm(r)){if(On(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function Q6(e,t,n,r){e.modify(t?"extend":"move",n,r)}function Xx(e){const t=Jx(e);return t!==null&&t.direction==="rtl"}function _g(e,t,n){const r=Xx(e);let o;o=Zx(e)||r?!n:n,Q6(e,t,o,"character")}function G6(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const e1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Z6=e1&&"documentMode"in document?document.documentMode:null;!(!e1||!("InputEvent"in window)||Z6)&&"getTargetRanges"in new window.InputEvent("input");function t1(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}function dn(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function fm(e,...t){const n=t1(...t);n.length>0&&e.classList.add(...n)}function n1(e,...t){const n=t1(...t);n.length>0&&e.classList.remove(...n)}function J6(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function X6(e){const t=at(e,n=>R(n)&&!n.isInline());return R(t)||G6(4,e.__key),t}function Nr(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const eN=Symbol.for("preact-signals");function al(){if(Lr>1)return void Lr--;let e,t=!1;for(;Ss!==void 0;){let n=Ss;for(Ss=void 0,Uu++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&r1(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Uu=0,Lr--,t)throw e}function tN(e){if(Lr>0)return e();Lr++;try{return e()}finally{al()}}let Pe,Ss;function Eg(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Lr=0,Uu=0,Za=0;function Sg(e){if(Pe===void 0)return;let t=e.n;return t===void 0||t.t!==Pe?(t={i:0,S:e,p:Pe.s,n:void 0,t:Pe,e:void 0,x:void 0,r:t},Pe.s!==void 0&&(Pe.s.n=t),Pe.s=t,e.n=t,32&Pe.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Pe.s,t.n=void 0,Pe.s.n=t,Pe.s=t),t):void 0}function _t(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function nN(e,t){return new _t(e,t)}function r1(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function kg(e){for(let t=e.s;t!==void 0;t=t.n){const n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function o1(e){let t,n=e.s;for(;n!==void 0;){const r=n.p;n.i===-1?(n.S.U(n),r!==void 0&&(r.n=n.n),n.n!==void 0&&(n.n.p=r)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=r}e.s=t}function ri(e,t){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=Za-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function i1(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Lr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,um(e),r}finally{Pe=n,al()}}}function um(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,i1(e)}function rN(e){if(Pe!==this)throw new Error("Out-of-order effect");o1(this),Pe=e,this.f&=-2,8&this.f&&um(this),al()}function li(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function Us(e,t){const n=new li(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function s1(e,t={}){const n={};for(const r in e){const o=t[r],i=nN(o===void 0?e[r]:o);n[r]=i}return n}_t.prototype.brand=eN,_t.prototype.h=function(){return!0},_t.prototype.S=function(e){const t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t!==void 0?t.e=e:Eg(()=>{var n;(n=this.W)==null||n.call(this)}))},_t.prototype.U=function(e){if(this.t!==void 0){const t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Eg(()=>{var r;(r=this.Z)==null||r.call(this)}))}},_t.prototype.subscribe=function(e){return Us(()=>{const t=this.value,n=Pe;Pe=void 0;try{e(t)}finally{Pe=n}},{name:"sub"})},_t.prototype.valueOf=function(){return this.value},_t.prototype.toString=function(){return this.value+""},_t.prototype.toJSON=function(){return this.value},_t.prototype.peek=function(){const e=Pe;Pe=void 0;try{return this.value}finally{Pe=e}},Object.defineProperty(_t.prototype,"value",{get(){const e=Sg(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Uu>100)throw new Error("Cycle detected");this.v=e,this.i++,Za++,Lr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{al()}}}}),ri.prototype=new _t,ri.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Za))return!0;if(this.g=Za,this.f|=1,this.i>0&&!r1(this))return this.f&=-2,!0;const e=Pe;try{kg(this),Pe=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Pe=e,o1(this),this.f&=-2,!0},ri.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}_t.prototype.S.call(this,e)},ri.prototype.U=function(e){if(this.t!==void 0&&(_t.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},ri.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(ri.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Sg(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),li.prototype.c=function(){const e=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},li.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,i1(this),kg(this),Lr++;const e=Pe;return Pe=this,rN.bind(this,e)},li.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ss,Ss=this)},li.prototype.d=function(){this.f|=8,1&this.f||um(this)},li.prototype.dispose=function(){this.d()};function oN(e){return(typeof e.nodes=="function"?e.nodes():e.nodes)||[]}function Fe(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function a1(e,t){if(e&&t&&!Array.isArray(t)&&typeof e=="object"&&typeof t=="object"){const n=e,r=t;for(const o in r)n[o]=a1(n[o],r[o]);return e}return t}const dm=0,Wu=1,c1=2,sf=3,La=4,oi=5,af=6,hs=7;function cf(e){return e.id===dm}function l1(e){return e.id===c1}function iN(e){return(function(t){return t.id===Wu})(e)||Fe(305,String(e.id),String(Wu)),Object.assign(e,{id:c1})}const sN=new Set;class aN{constructor(t,n){D(this,"builder");D(this,"configs");D(this,"_dependency");D(this,"_peerNameSet");D(this,"extension");D(this,"state");D(this,"_signal");this.builder=t,this.extension=n,this.configs=new Set,this.state={id:dm}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):B6;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;l1(n)||Fe(306,String(n.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},o={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(a,c,l){return Object.assign(a,{config:c,id:sf,registerState:l})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,c,l){return Object.assign(a,{id:La,initResult:c,registerState:l})})(i,s,o)}build(t){const n=this.state;let r;n.id!==La&&Fe(307,String(n.id),String(oi)),this.extension.build&&(r=this.extension.build(t,n.config,n.registerState));const o={...n.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,s,a){return Object.assign(i,{id:oi,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==oi&&Fe(308,String(r.id),String(oi));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:af})})(r),()=>{const i=this.state;i.id!==hs&&Fe(309,String(r.id),String(hs)),this.state=(function(s){return Object.assign(s,{id:oi})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==af&&Fe(310,String(n.id),String(af)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:hs})})(n),r}getSignal(){return this._signal===void 0&&Fe(311),this._signal}getInitResult(){this.extension.init===void 0&&Fe(312,this.extension.name);const t=this.state;return(function(n){return n.id>=La})(t)||Fe(313,String(t.id),String(La)),t.initResult}getInitPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(n){return n.id>=sf})(t)||Fe(314,String(t.id),String(sf)),{config:t.config}}getPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}getInitDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Fe(315,this.extension.name,t.name),n.getExtensionInitDependency()}getDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Fe(315,this.extension.name,t.name),n.getExtensionDependency()}getState(){const t=this.state;return(function(n){return n.id>=hs})(t)||Fe(316,String(t.id),String(hs)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||sN}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([n])=>n)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(n){return n.id>=oi})(t)||Fe(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const Tg={tag:vo};function cN(){const e=We();e.isEmpty()&&e.append(Tt())}const lN={config:{setOptions:Tg,updateOptions:Tg},init:({$initialEditorState:e=cN})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:i}=o;if(u6(i))e.setEditorState(i,n);else if(typeof i=="function")e.update(()=>{i(e)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const s=e.parseEditorState(i);e.setEditorState(s,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Xi,Wr,Gi,Zi,es]},Ng=Symbol.for("@lexical/extension/LexicalBuilder");function Og(){}function fN(e){throw e}function Ra(e){return Array.isArray(e)?e:[e]}const lf="0.39.0+prod.esm";class wi{constructor(t){D(this,"roots");D(this,"extensionNameMap");D(this,"outgoingConfigEdges");D(this,"incomingEdges");D(this,"conflicts");D(this,"_sortedExtensionReps");D(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=lf,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Ra(lN)];for(const r of t)n.push(Ra(r));return new wi(n)}static maybeFromEditor(t){const n=t[Ng];return n&&(n.PACKAGE_VERSION!==lf&&Fe(292,n.PACKAGE_VERSION,lf),n instanceof wi||Fe(293)),n}static fromEditor(t){const n=wi.maybeFromEditor(t);return n===void 0&&Fe(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(Ex({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[Ng]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=Og;function n(){try{t()}finally{t=Og}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=dn(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const n=this.extensionNameMap.get(t.name);if(n)return n.extension!==t&&Fe(295,t.name),n}addEdge(t,n,r){const o=this.outgoingConfigEdges.get(t);o?o.set(n,r):this.outgoingConfigEdges.set(t,new Map([[n,r]]));const i=this.incomingEdges.get(n);i?i.add(t):this.incomingEdges.set(n,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&Fe(296);const n=Ra(t),[r]=n;typeof r.name!="string"&&Fe(297,typeof r.name);let o=this.extensionNameMap.get(r.name);if(o!==void 0&&o.extension!==r&&Fe(298,r.name),!o){o=new aN(this,r),this.extensionNameMap.set(r.name,o);const i=this.conflicts.get(r.name);typeof i=="string"&&Fe(299,r.name,i);for(const s of r.conflictsWith||[])this.extensionNameMap.has(s)&&Fe(299,r.name,s),this.conflicts.set(s,r.name);for(const s of r.dependencies||[]){const a=Ra(s);this.addEdge(r.name,a[0].name,a.slice(1)),this.addExtension(a)}for(const[s,a]of r.peerDependencies||[])this.addEdge(r.name,s,a?[a]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],n=(r,o)=>{let i=r.state;if(l1(i))return;const s=r.extension.name;var a;cf(i)||Fe(300,s,o||"[unknown]"),cf(a=i)||Fe(304,String(a.id),String(dm)),i=Object.assign(a,{id:Wu}),r.state=i;const c=this.outgoingConfigEdges.get(s);if(c)for(const l of c.keys()){const f=this.extensionNameMap.get(l);f&&n(f,s)}i=iN(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())cf(r.state)&&n(r);for(const r of t)for(const[o,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const s=this.extensionNameMap.get(o);if(s)for(const a of i)s.configs.add(a)}for(const[r,...o]of this.roots)if(o.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Fe(301,r.name);for(const s of o)i.configs.add(s)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const n=this.sortedExtensionReps(),r=new AbortController,o=[()=>r.abort()],i=r.signal;for(const s of n){const a=s.register(t,i);a&&o.push(a)}for(const s of n){const a=s.afterRegistration(t);a&&o.push(a)}return dn(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const f of a){const{extension:u}=f;if(u.onError!==void 0&&(t.onError=u.onError),u.disableEvents!==void 0&&(t.disableEvents=u.disableEvents),u.parentEditor!==void 0&&(t.parentEditor=u.parentEditor),u.editable!==void 0&&(t.editable=u.editable),u.namespace!==void 0&&(t.namespace=u.namespace),u.$initialEditorState!==void 0&&(t.$initialEditorState=u.$initialEditorState),u.nodes)for(const d of oN(u)){if(typeof d!="function"){const m=r.get(d.replace);m&&Fe(302,u.name,d.replace.name,m.extension.name),r.set(d.replace,f)}n.add(d)}if(u.html){if(u.html.export)for(const[d,m]of u.html.export.entries())o.set(d,m);u.html.import&&Object.assign(i,u.html.import)}u.theme&&a1(s,u.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const c=Object.keys(i).length>0,l=o.size>0;(c||l)&&(t.html={},c&&(t.html.import=i),l&&(t.html.export=o));for(const f of a)f.init(t);return t.onError||(t.onError=fN),t}}function uN(e,t){const n=wi.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const dN={name:"@lexical/react/ReactProvider"};function mN(){return We().getTextContent()}function hN(e,t=!0){if(e)return!1;let n=mN();return t&&(n=n.trim()),n===""}function pN(e){if(!hN(e,!1))return!1;const t=We().getChildren(),n=t.length;if(n>1)return!1;for(let r=0;r<n;r++){const o=t[r];if(Te(o))return!1;if(R(o)){if(!Vd(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let a=0;a<s;a++){const c=i[r];if(!X(c))return!1}}}return!0}function f1(e){return()=>pN(e)}function gN(e){const t=window.location.origin,n=r=>{if(r.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const c=a.args;if(c){const[l,f,u,d,m]=c;e.update(()=>{const h=Z();if($(h)){const g=h.anchor;let p=g.getNode(),y=0,b=0;if(X(p)&&l>=0&&f>=0&&(y=l,b=l+f,h.setTextNodeRange(p,y,p,b)),y===b&&u===""||(h.insertRawText(u),p=g.getNode()),X(p)){y=d,b=d+m;const x=p.getTextContentSize();y=y>x?x:y,b=b>x?x:b,h.setTextNodeRange(p,y,p,b)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function u1(e,t){const n=Nx(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!h1.has(i.nodeName)){const s=p1(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof qd&&s.insertAfter(Lo());for(const s of i){const a=s.getChildren();for(const c of a)s.insertBefore(c);s.remove()}})(o),r}function d1(e,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=We().getChildren();for(let o=0;o<r.length;o++)m1(e,r[o],n,t);return n.innerHTML}function m1(e,t,n,r=null){let o=r===null||t.isSelected(r);const i=R(t)&&t.excludeFromCopy("html");let s=t;r!==null&&X(t)&&(s=Gx(r,t,"clone"));const a=R(s)?s.getChildren():[],c=Qd(e,s.getType());let l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,s):s.exportDOM(e);const{element:f,after:u}=l;if(!f)return!1;const d=document.createDocumentFragment();for(let m=0;m<a.length;m++){const h=a[m],g=m1(e,h,d,r);!o&&R(t)&&g&&t.extractWithChild(h,r,"html")&&(o=!0)}if(o&&!i){if((ht(f)||zu(f))&&f.append(d),n.append(f),u){const m=u.call(s,f);m&&(zu(f)?f.replaceChildren(m):f.replaceWith(m))}}else n.append(d);return o}const h1=new Set(["STYLE","SCRIPT"]);function p1(e,t,n,r,o=new Map,i){let s=[];if(h1.has(e.nodeName))return s;let a=null;const c=(function(h,g){const{nodeName:p}=h,y=g._htmlConversions.get(p.toLowerCase());let b=null;if(y!==void 0)for(const x of y){const w=x(h);w!==null&&(b===null||(b.priority||0)<=(w.priority||0))&&(b=w)}return b!==null?b.conversion:null})(e,t),l=c?c(e):null;let f=null;if(l!==null){f=l.after;const h=l.node;if(a=Array.isArray(h)?h[h.length-1]:h,a!==null){for(const[,g]of o)if(a=g(a,i),!a)break;a&&s.push(...Array.isArray(h)?h:[a])}l.forChild!=null&&o.set(e.nodeName,l.forChild)}const u=e.childNodes;let d=[];const m=(a==null||!jt(a))&&(a!=null&&Lu(a)||r);for(let h=0;h<u.length;h++)d.push(...p1(u[h],t,n,m,new Map(o),a));return f!=null&&(d=f(d)),Cc(e)&&(d=yN(e,d,m?()=>{const h=new qd;return n.push(h),h}:Tt)),a==null?d.length>0?s=s.concat(d):Cc(e)&&(function(h){return h.nextSibling==null||h.previousSibling==null?!1:$u(h.nextSibling)&&$u(h.previousSibling)})(e)&&(s=s.concat(Lo())):R(a)&&a.append(...d),s}function yN(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(Lu(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&Lu(t[s+1])){const c=n();c.setFormat(r),c.append(...i),o.push(c),i=[]}}return o}function _c(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function bN(e,t=Z()){return t==null&&_c(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?"":d1(e,t)}function vN(e,t=Z()){return t==null&&_c(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(xN(e,t))}function Pg(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const a=JSON.parse(r);if(a.namespace===n._config.namespace&&Array.isArray(a.nodes))return Mg(n,wN(a.nodes),t)}catch(a){console.error(a)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const a=new DOMParser().parseFromString((function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:l=>l}).createHTML(c):c})(o),"text/html");return Mg(n,u1(n,a),t)}catch(a){console.error(a)}const s=i||e.getData("text/uri-list");if(s!=null)if($(t)){const a=s.split(/(\r?\n|\t)/);a[a.length-1]===""&&a.pop();for(let c=0;c<a.length;c++){const l=Z();if($(l)){const f=a[c];f===`
|
|
605
605
|
`||f===`\r
|
|
606
|
-
`?l.insertParagraph():f===" "?l.insertNodes([ta()]):l.insertText(f)}}}else t.insertRawText(s)}function Sg(e,t,n){e.dispatchCommand(x3,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if($(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=nr(o,"previous");if(s)if(Or(s))i=s.origin;else{const a=Fr(s,fn(We(),"next").getFlipped());for(const c of a){if(X(c.origin)){i=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),c=i.getStyle();r.format===a&&r.style===c||(r.format=a,r.style=c,r.dirty=!0)}}})(n))}function s1(e,t,n,r=[]){let o=t===null||n.isSelected(t);const i=R(n)&&n.excludeFromCopy("html");let s=n;t!==null&&X(s)&&(s=$x(t,s,"clone"));const a=R(s)?s.getChildren():[],c=(function(l){const f=l.exportJSON(),u=l.constructor;if(f.type!==u.getType()&&bc(58,u.name),R(l)){const d=f.children;Array.isArray(d)||bc(59,u.name)}return f})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let l=0;l<a.length;l++){const f=a[l],u=s1(e,t,f,c.children);!o&&R(n)&&u&&n.extractWithChild(f,t,"clone")&&(o=!0)}if(o&&!i)r.push(c);else if(Array.isArray(c.children))for(let l=0;l<c.children.length;l++){const f=c.children[l];r.push(f)}return o}function uN(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)s1(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function dN(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=t6(r);X(o)&&z6(o),t.push(o)}return t}let ri=null;async function kg(e,t,n){if(ri!==null)return!1;if(t!==null)return new Promise((l,f)=>{e.update(()=>{l(Tg(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=en(o);if(r===null||s===null)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const c=new Range;return c.setStart(a,0),c.setEnd(a,1),s.removeAllRanges(),s.addRange(c),new Promise((l,f)=>{const u=e.registerCommand(Zc,d=>(kr(d,ClipboardEvent)&&(u(),ri!==null&&(o.clearTimeout(ri),ri=null),l(Tg(e,d,n))),!0),px);ri=o.setTimeout(()=>{u(),ri=null,l(!1)},50),i.execCommand("copy"),a.remove()})}function Tg(e,t,n){if(n===void 0){const o=en(e._window),i=Z();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!oa(e,s,a))return!1;n=pN(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(hN(r,n),!0)}const a1=[["text/html",lN],["application/x-lexical-editor",fN]];function pN(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Jd();for(const[r,o]of a1){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function hN(e,t){for(const[n]of a1)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function Ng(e,t){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const Ko=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,mN=Ko&&"documentMode"in document?document.documentMode:null,gN=Ko&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),yN=!(!Ko||!("InputEvent"in window)||mN)&&"getTargetRanges"in new window.InputEvent("input"),vN=Ko&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Og=Ko&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,bN=Ko&&/^(?=.*Chrome).*/i.test(navigator.userAgent),xN=Ko&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&gN&&!bN,Pg=pe("DRAG_DROP_PASTE_FILE");function Pa(e){let t=null;if(kr(e,DragEvent)?t=e.dataTransfer:kr(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function Mg(e){const t=Z();if(!$(t))return!1;const n=new Set,r=t.getNodes();for(let o=0;o<r.length;o++){const i=r[o],s=i.getKey();if(n.has(s))continue;const a=at(i,l=>R(l)&&!l.isInline());if(a===null)continue;const c=a.getKey();a.canIndent()&&!n.has(c)&&(n.add(c),e(a))}return n.size>0}function Ig(e){const t=Fi(e);return Te(t)}function af(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function wN(e){return un(e.registerCommand(Md,t=>{const n=Z();return!!ot(n)&&(n.clear(),!0)},we),e.registerCommand(vo,t=>{const n=Z();return $(n)?(n.deleteCharacter(t),!0):!!ot(n)&&(n.deleteNodes(),!0)},we),e.registerCommand(Rs,t=>{const n=Z();return!!$(n)&&(n.deleteWord(t),!0)},we),e.registerCommand(Ds,t=>{const n=Z();return!!$(n)&&(n.deleteLine(t),!0)},we),e.registerCommand(gi,t=>{const n=Z();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const r=t.dataTransfer;if(r!=null)Eg(r,n,e);else if($(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},we),e.registerCommand(xu,()=>{const t=Z();return!!$(t)&&(t.removeText(),!0)},we),e.registerCommand(_n,t=>{const n=Z();return!!$(n)&&(n.formatText(t),!0)},we),e.registerCommand(E3,t=>{const n=Z();if(!$(n)&&!ot(n))return!1;const r=n.getNodes();for(const o of r){const i=at(o,s=>R(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},we),e.registerCommand(mi,t=>{const n=Z();return!!$(n)&&(n.insertLineBreak(t),!0)},we),e.registerCommand(Ls,()=>{const t=Z();return!!$(t)&&(t.insertParagraph(),!0)},we),e.registerCommand(C3,()=>(sx([ta()]),!0),we),e.registerCommand(_3,()=>Mg(t=>{const n=t.getIndent();t.setIndent(n+1)}),we),e.registerCommand(Mm,()=>Mg(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),we),e.registerCommand(Ib,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if($(n)){const r=Iu(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},we),e.registerCommand(Lb,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if($(n)){if((function(o){const i=o.focus;return i.key==="root"&&i.offset===We().getChildrenSize()})(n))return t.preventDefault(),!0;const r=Iu(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},we),e.registerCommand(Mb,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),mg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!$(n))return!1;if(yg(n,!0)){const r=t.shiftKey;return t.preventDefault(),vg(n,r,!0),!0}return!1},we),e.registerCommand(Pb,t=>{const n=Z();if(ot(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),mg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!$(n))return!1;const r=t.shiftKey;return!!yg(n,!1)&&(t.preventDefault(),vg(n,r,!1),!0)},we),e.registerCommand(Db,t=>{if(Ig(t.target))return!1;const n=Z();if($(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:o}=r;if(o.offset!==0)return!1;const i=o.getNode();if(Ye(i))return!1;const s=K6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Mm,void 0);if(Og&&navigator.language==="ko-KR")return!1}else if(!ot(n))return!1;return t.preventDefault(),e.dispatchCommand(vo,!0)},we),e.registerCommand(Fb,t=>{if(Ig(t.target))return!1;const n=Z();return!(!$(n)&&!ot(n))&&(t.preventDefault(),e.dispatchCommand(vo,!1))},we),e.registerCommand(Fs,t=>{const n=Z();if(!$(n))return!1;if(af(n),t!==null){if((Og||vN||xN)&&yN)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(mi,!1)}return e.dispatchCommand(Ls,void 0)},we),e.registerCommand(Rd,()=>{const t=Z();return!!$(t)&&(e.blur(),!0)},we),e.registerCommand(zb,t=>{const[,n]=Pa(t);if(n.length>0){const o=Ng(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=Fi(s);if(a!==null){const c=rx();if(X(a))c.anchor.set(a.getKey(),i,"text"),c.focus.set(a.getKey(),i,"text");else{const f=a.getParentOrThrow().getKey(),u=a.getIndexWithinParent()+1;c.anchor.set(f,u,"element"),c.focus.set(f,u,"element")}const l=Ri(c);Pt(l)}e.dispatchCommand(Pg,n)}return t.preventDefault(),!0}const r=Z();return!!$(r)},we),e.registerCommand($b,t=>{const[n]=Pa(t),r=Z();return!(n&&!$(r))},we),e.registerCommand(Ub,t=>{const[n]=Pa(t),r=Z();if(n&&!$(r))return!1;const o=Ng(t.clientX,t.clientY);if(o!==null){const i=Fi(o.node);Te(i)&&t.preventDefault()}return!0},we),e.registerCommand(wu,()=>(f6(),!0),we),e.registerCommand(Zc,t=>(kg(e,kr(t,ClipboardEvent)?t:null),!0),we),e.registerCommand(Dd,t=>((async function(n,r){await kg(r,kr(n,ClipboardEvent)?n:null),r.update(()=>{const o=Z();$(o)?o.removeText():ot(o)&&o.getNodes().forEach(i=>i.remove())})})(t,e),!0),we),e.registerCommand(Gc,t=>{const[,n,r]=Pa(t);return n.length>0&&!r?(e.dispatchCommand(Pg,n),!0):Xi(t.target)&&Hd(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=kr(o,InputEvent)||kr(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Eg(a,s,i)},{tag:z3})})(t,e),!0)},we),e.registerCommand(Rb,t=>{const n=Z();return $(n)&&af(n),!1},we),e.registerCommand(jb,t=>{const n=Z();return $(n)&&af(n),!1},we))}function AN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const cp=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function CN({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=T.useState(()=>n.getDecorators());return cp(()=>n.registerDecoratorListener(s=>{Nn.flushSync(()=>{i(s)})}),[n]),T.useEffect(()=>{i(n.getDecorators())},[n]),T.useMemo(()=>{const s=[],a=Object.keys(o);for(let c=0;c<a.length;c++){const l=a[c],f=x.jsx(r,{onError:d=>n._onError(d),children:x.jsx(T.Suspense,{fallback:null,children:o[l]})}),u=n.getElementByKey(l);u!==null&&s.push(Nn.createPortal(f,u,l))}return s},[r,o,n])})(e,t)}function _N({editor:e,ErrorBoundary:t}){return(function(n){const r=bi.maybeFromEditor(n);if(r&&r.hasExtensionByName(rN.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&AN(320,o);return!0}return!1})(e)?null:x.jsx(CN,{editor:e,ErrorBoundary:t})}function Lg(e){return e.getEditorState().read(e1(e.isComposing()))}function EN({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=pt();return(function(o){cp(()=>un(wN(o),aN(o)),[o])})(r),x.jsxs(x.Fragment,{children:[e,x.jsx(SN,{content:t}),x.jsx(_N,{editor:r,ErrorBoundary:n})]})}function SN({content:e}){const[t]=pt(),n=(function(o){const[i,s]=T.useState(()=>Lg(o));return cp(()=>{function a(){const c=Lg(o);s(c)}return a(),un(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=F6();return n?typeof e=="function"?e(r):e:null}function kN(e,t,n,r,o){if(e===null||n.size===0&&r.size===0&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!($(i)&&$(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const a=(function(y,v,b){const w=y._nodeMap,A=[];for(const _ of v){const E=w.get(_);E!==void 0&&A.push(E)}for(const[_,E]of b){if(!E)continue;const S=w.get(_);S===void 0||Ye(S)||A.push(S)}return A})(t,n,r);if(a.length===0)return 0;if(a.length>1){const y=t._nodeMap,v=y.get(i.anchor.key),b=y.get(s.anchor.key);return v&&b&&!e._nodeMap.has(v.__key)&&X(v)&&v.__text.length===1&&i.anchor.offset===1?2:0}const c=a[0],l=e._nodeMap.get(c.__key);if(!X(l)||!X(c)||l.__mode!==c.__mode)return 0;const f=l.__text,u=c.__text;if(f===u)return 0;const d=i.anchor,p=s.anchor;if(d.key!==p.key||d.type!=="text")return 0;const h=d.offset,g=p.offset,m=u.length-f.length;return m===1&&g===h-1?2:m===-1&&g===h+1?3:m===-1&&g===h?4:0}function TN(e,t){let n=Date.now(),r=0;return(o,i,s,a,c,l)=>{const f=Date.now();if(l.has(Nu))return r=0,n=f,2;const u=kN(o,i,a,c,e.isComposing()),d=(()=>{const p=s===null||s.editor===e,h=l.has(j3);if(!h&&p&&l.has(bo))return 0;if(o===null)return 1;const g=i._selection;if(!(a.size>0||c.size>0))return g!==null?0:2;const m=typeof t=="number"?t:t.peek();return h===!1&&u!==0&&u===r&&f<n+m&&p||a.size===1&&(function(y,v,b){const w=v._nodeMap.get(y),A=b._nodeMap.get(y),_=v._selection,E=b._selection;return!($(_)&&$(E)&&_.anchor.type==="element"&&_.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!X(w)||!X(A)||w.__parent!==A.__parent)&&JSON.stringify(v.read(()=>w.exportJSON()))===JSON.stringify(b.read(()=>A.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=f,r=u,d}}function Rg(e){e.undoStack=[],e.redoStack=[],e.current=null}function c1(e,t,n){const r=TN(e,n);return un(e.registerCommand(Id,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(c.length!==0){const l=s.current,f=c.pop();l!==null&&(a.push(l),i.dispatchCommand(Aa,!0)),c.length===0&&i.dispatchCommand(Ca,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:Nu})}})(e,t),!0),we),e.registerCommand(Ld,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(a.length!==0){const l=s.current;l!==null&&(c.push(l),i.dispatchCommand(Ca,!0));const f=a.pop();a.length===0&&i.dispatchCommand(Aa,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:Nu})}})(e,t),!0),we),e.registerCommand(k3,()=>(Rg(t),!1),we),e.registerCommand(T3,()=>(Rg(t),e.dispatchCommand(Aa,!1),e.dispatchCommand(Ca,!1),!0),we),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:l})=>{const f=t.current,u=t.redoStack,d=t.undoStack,p=f===null?null:f.editorState;if(f!==null&&i===p)return;const h=r(s,i,f,a,c,l);if(h===1)u.length!==0&&(t.redoStack=[],e.dispatchCommand(Aa,!1)),f!==null&&(d.push({...f}),e.dispatchCommand(Ca,!0));else if(h===2)return;t.current={editor:e,editorState:i}}))}function l1(){return{current:null,redoStack:[],undoStack:[]}}const cf={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>Gx({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:l1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return $s(()=>r.disabled.value?void 0:c1(e,r.historyState.value,r.delay))}};P6(cf,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function NN({delay:e,externalHistoryState:t}){const[n]=pt();return(function(r,o,i=1e3){const s=T.useMemo(()=>o||l1(),[o]);T.useEffect(()=>c1(r,s,i),[i,r,s])})(n,t,e),null}const f1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function ON({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:f,ariaOwns:u,ariaRequired:d,autoCapitalize:p,className:h,id:g,role:m="textbox",spellCheck:y=!0,style:v,tabIndex:b,"data-testid":w,...A},_){const[E,S]=T.useState(e.isEditable()),N=T.useCallback(I=>{I&&I.ownerDocument&&I.ownerDocument.defaultView?e.setRootElement(I):e.setRootElement(null)},[e]),P=T.useMemo(()=>(function(...I){return W=>{for(const j of I)typeof j=="function"?j(W):j!=null&&(j.current=W)}})(_,N),[N,_]);return f1(()=>(S(e.isEditable()),e.registerEditableListener(I=>{S(I)})),[e]),x.jsx("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":E&&m==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":c,"aria-labelledby":l,"aria-multiline":f,"aria-owns":E?u:void 0,"aria-readonly":!E||void 0,"aria-required":d,autoCapitalize:p,className:h,contentEditable:E,"data-testid":w,id:g,ref:P,role:m,spellCheck:y,style:v,tabIndex:b,...A})}const PN=T.forwardRef(ON);function Dg(e){return e.getEditorState().read(e1(e.isComposing()))}const MN=T.forwardRef(IN);function IN(e,t){const{placeholder:n,...r}=e,[o]=pt();return x.jsxs(x.Fragment,{children:[x.jsx(PN,{editor:o,...r,ref:t}),n!=null&&x.jsx(LN,{editor:o,content:n})]})}function LN({content:e,editor:t}){const n=(function(s){const[a,c]=T.useState(()=>Dg(s));return f1(()=>{function l(){const f=Dg(s);c(f)}return l(),un(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),a})(t),[r,o]=T.useState(t.isEditable());if(T.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(s=>{o(s)})),[t]),!n)return null;let i=null;return typeof e=="function"?i=e(r):e!==null&&(i=e),i===null?null:x.jsx("div",{"aria-hidden":!0,children:i})}const RN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function DN({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=pt();return RN(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:c})=>{t&&i.size===0&&s.size===0||e&&c.has(bo)||a.isEmpty()||n(o,r,c)})},[r,e,t,n]),null}const FN=T.createContext(null),lf={didCatch:!1,error:null};class jN extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=lf}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,o;const{error:n}=this.state;n!==null&&((o=(r=this.props).onReset)==null||o.call(r,{args:t,reason:"imperative-api"}),this.setState(lf))}componentDidCatch(t,n){var r,o;(o=(r=this.props).onError)==null||o.call(r,t,n)}componentDidUpdate(t,n){var i,s;const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&zN(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(lf))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(c);else if(r)a=T.createElement(r,c);else if(o!==void 0)a=o;else throw s}return T.createElement(FN.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function zN(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function $N({children:e,onError:t}){return x.jsx(jN,{fallback:x.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const UN={paragraph:"cnf:m-0",list:{ol:"cnf:list-decimal cnf:pl-4",ul:"cnf:list-disc cnf:pl-4"},text:{bold:"cnf:font-semibold",italic:"cnf:italic",underline:"cnf:underline",strikethrough:"cnf:line-through",code:"cnf:font-mono"},link:"cnf:text-blue-600 cnf:hover:text-blue-600 cnf:underline cnf:cursor-pointer"};function Tr(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Uu(e){let t=1,n=e.getParent();for(;n!=null;){if(ke(n)){const r=n.getParent();if(be(r)){t++,n=r.getParent();continue}Tr(40)}return t}return t}function Bu(e){let t=e.getParent();be(t)||Tr(40);let n=t;for(;n!==null;)n=n.getParent(),be(n)&&(t=n);return t}function u1(e){let t=[];const n=e.getChildren().filter(ke);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();be(i)?t=t.concat(u1(i)):t.push(o)}return t}function wn(e){return ke(e)&&be(e.getFirstChild())}function Fg(e){return Zt().append(e)}function d1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function jg(e){const t=Z();if(t!==null){let n=t.getNodes();if($(t)){const o=t.getStartEndPoints();o===null&&Tr(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const c=s.getFirstChild();if(c)n=c.selectStart().getNodes();else{const l=Tt();s.append(l),n=l.select().getNodes()}}else if(d1(s,n)){const c=Bt(e);if(jt(a)){s.replace(c);const l=Zt();R(s)&&(l.setFormat(s.getFormatType()),l.setIndent(s.getIndent())),c.append(l)}else if(ke(s)){const l=s.getParentOrThrow();Uo(c,l.getChildren()),l.replace(c)}return}}const r=new Set;for(let o=0;o<n.length;o++){const i=n[o];if(R(i)&&i.isEmpty()&&!ke(i)&&!r.has(i.getKey())){zg(i,e);continue}let s=xx(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(be(s)){if(!r.has(a)){const c=Bt(e);Uo(c,s.getChildren()),s.replace(c),r.add(a)}break}{const c=s.getParent();if(jt(c)&&!r.has(a)){r.add(a),zg(s,e);break}s=c}}}}}function Uo(e,t){e.splice(e.getChildrenSize(),0,t)}function zg(e,t){if(be(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Zt();let i;if(Uo(o,e.getChildren()),be(n)&&t===n.getListType())n.append(o),be(r)&&t===r.getListType()&&(Uo(n,r.getChildren()),r.remove()),i=n;else if(be(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Bt(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function lp(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&wn(n)&&wn(r)&&(lp(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function BN(){const e=Z();if($(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(d1(r,n))t.add(Bu(r));else for(let o=0;o<n.length;o++){const i=n[o];if(xx(i)){const s=W6(i,ts);s!=null&&t.add(Bu(s))}}for(const o of t){let i=o;const s=u1(o);for(const a of s){const c=Tt().setTextStyle(e.style).setTextFormat(e.format);Uo(c,a.getChildren()),i.insertAfter(c),i=c,a.__key===e.anchor.key&&$o(e.anchor,Yt(fn(c,"next"))),a.__key===e.focus.key&&$o(e.focus,Yt(fn(c,"next"))),a.remove()}o.remove()}}}function p1(e){const t=e.getListType()!=="check";let n=e.getStart();for(const r of e.getChildren())ke(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),be(r.getFirstChild())||n++)}function WN(e){const t=new Set;if(wn(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(wn(r)&&wn(o)){const i=o.getFirstChild();if(be(i)){i.append(e);const s=r.getFirstChild();be(s)&&(Uo(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(wn(r)){const i=r.getFirstChild();if(be(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(wn(o)){const i=o.getFirstChild();be(i)&&i.append(e)}else if(be(n)){const i=Zt().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Bt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(e),o?o.insertAfter(i):r?r.insertBefore(i):n.append(i)}}function KN(e){if(wn(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(be(n?n.getParent():void 0)&&ke(n)&&be(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const i=t.getListType(),s=Zt(),a=Bt(i);s.append(a),e.getPreviousSiblings().forEach(f=>a.append(f));const c=Zt(),l=Bt(i);c.append(l),Uo(l,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(c),n.replace(e)}}}function HN(){const e=Z();if(!$(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Bu(t),r=t.getParent();be(r)||Tr(40);const o=r.getParent();let i;if(jt(o))i=Tt(),n.insertAfter(i);else{if(!ke(o))return!1;i=Zt(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const a=Bt(r.getListType());if(ke(i)){const c=Zt();c.append(a),i.insertAfter(c)}else i.insertAfter(a);a.append(...s)}return(function(a){let c=a;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const l=c.getParent();if(l==null||!ke(l)&&!be(l))break;c=l}c.remove()})(t),!0}function xc(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}class ts extends Mn{constructor(n=1,r=void 0,o){super(o);D(this,"__value");D(this,"__checked");this.__value=n===void 0?1:n,this.__checked=r}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const r=n.getParent();be(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Mn,importDOM:{li:()=>({conversion:qN,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const r=document.createElement("li");return this.updateListItemDOM(null,r,n),r}updateListItemDOM(n,r,o){(function(a,c,l){const f=c.getParent();!be(f)||f.getListType()!=="check"||be(c.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),l&&c.__checked===l.__checked||a.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,c,l){const f=[],u=[],d=c.list,p=d?d.listitem:void 0;let h;if(d&&d.nested&&(h=d.nested.listitem),p!==void 0&&f.push(...xc(p)),d){const g=l.getParent(),m=be(g)&&g.getListType()==="check",y=l.getChecked();m&&!y||u.push(d.listitemUnchecked),m&&y||u.push(d.listitemChecked),m&&f.push(y?d.listitemChecked:d.listitemUnchecked)}if(h!==void 0){const g=xc(h);l.getChildren().some(m=>be(m))?f.push(...g):u.push(...g)}u.length>0&&qx(a,...u),f.length>0&&ip(a,...f)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,c,l){const f=hg(c.__textStyle);for(const u in f)a.style.setProperty(`--listitem-marker-${u}`,f[u]);if(l)for(const u in hg(l.__textStyle))u in f||a.style.removeProperty(`--listitem-marker-${u}`)})(r,this,n)}updateDOM(n,r,o){const i=r;return this.updateListItemDOM(n,i,o),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const r=this.createDOM(n._config),o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let r=0;r<n.length;r++){const o=n[r];if(R(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(n,r){if(ke(n))return super.replace(n);this.setIndent(0);const o=this.getParentOrThrow();if(!be(o))return n;if(o.__first===this.getKey())o.insertBefore(n);else if(o.__last===this.getKey())o.insertAfter(n);else{const i=Bt(o.getListType());let s=this.getNextSibling();for(;s;){const a=s;s=s.getNextSibling(),i.append(a)}o.insertAfter(n),n.insertAfter(i)}return r&&(R(n)||Tr(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),n}insertAfter(n,r=!0){const o=this.getParentOrThrow();if(be(o)||Tr(39),ke(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Bt(o.getListType());i.forEach(a=>s.append(a)),n.insertAfter(s,r)}return n}remove(n){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(n),r&&o&&wn(r)&&wn(o)&&(lp(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=Zt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(n){const r=Tt();this.getChildren().forEach(a=>r.append(a));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=ke(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const a=n.anchor,c=n.focus,l=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(l,a.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(l,c.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const r=this.getWritable();return r.__value=n,r}getChecked(){const n=this.getLatest();let r;const o=this.getParent();return be(o)&&(r=o.getListType()),r==="check"?!!n.__checked:void 0}setChecked(n){const r=this.getWritable();return r.__checked=n,r}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let r=n.getParentOrThrow(),o=0;for(;ke(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(n){typeof n!="number"&&Tr(117),(n=Math.floor(n))>=0||Tr(199);let r=this.getIndent();for(;r!==n;)r<n?(WN(this),r++):(KN(this),r--);return this}canInsertAfter(n){return ke(n)}canReplaceWith(n){return ke(n)}canMergeWith(n){return ke(n)||Bd(n)}extractWithChild(n,r){if(!$(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Bt("bullet")}canMergeWhenEmpty(){return!0}}function qN(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return $g(n)}if(e.classList.contains("joplin-checkbox")){for(const n of e.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return $g(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Zt(t==="true"||t!=="false"&&void 0)}}function $g(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Zt(e.hasAttribute("checked"))}}function Zt(e){return Kr(new ts(void 0,e))}function ke(e){return e instanceof ts}class sa extends Mn{constructor(n="number",r=1,o){super(o);D(this,"__tag");D(this,"__start");D(this,"__listType");const i=YN[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:n=>{(function(r){const o=r.getNextSibling();be(o)&&r.getListType()===o.getListType()&&lp(r,o)})(n),p1(n)},extends:Mn,importDOM:{ol:()=>({conversion:Bg,priority:0}),ul:()=>({conversion:Bg,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const r=this.getWritable();return r.__listType=n,r.__tag=n==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const r=this.getWritable();return r.__start=n,r}createDOM(n,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,Ug(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Ug(r,o.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const r=this.createDOM(n._config,n);return ht(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,r,o){let i=o;for(let s=0;s<o.length;s++){const a=o[s];ke(a)||(i===o&&(i=[...o]),i[s]=Zt().append(!R(a)||be(a)||a.isInline()?a:rt(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function Ug(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=Uu(n)-1,c=a%s.length,l=s[c],f=i[n.__tag];let u;const d=i.nested,p=i.checklist;if(d!==void 0&&d.list&&(u=d.list),f!==void 0&&r.push(f),p!==void 0&&n.__listType==="check"&&r.push(p),l!==void 0){r.push(...xc(l));for(let h=0;h<s.length;h++)h!==c&&o.push(n.__tag+h)}if(u!==void 0){const h=xc(u);a>1?r.push(...h):o.push(...h)}}o.length>0&&qx(e,...o),r.length>0&&ip(e,...r)}function VN(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(ke(r)){t.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{be(i)&&t.push(Fg(i))})}else t.push(Fg(r))}return t}function Bg(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Bt("number",e.start):t==="ul"&&(n=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const o of r.childNodes)if(ht(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Bt("check"):Bt("bullet")),{after:VN,node:n}}const YN={ol:"number",ul:"bullet"};function Bt(e="number",t=1){return Kr(new sa(e,t))}function be(e){return e instanceof sa}const QN=pe("UPDATE_LIST_START_COMMAND"),h1=pe("INSERT_UNORDERED_LIST_COMMAND"),m1=pe("INSERT_ORDERED_LIST_COMMAND"),Wu=pe("REMOVE_LIST_COMMAND");function GN(e){return un(e.registerCommand(m1,()=>(jg("number"),!0),Gn),e.registerCommand(QN,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!be(o)&&(o.getListType()==="number"&&(o.setStart(r),p1(o)),!0)},Gn),e.registerCommand(h1,()=>(jg("bullet"),!0),Gn),e.registerCommand(Wu,()=>(BN(),!0),Gn),e.registerCommand(Ls,()=>HN(),Gn),e.registerNodeTransform(ts,t=>{const n=t.getFirstChild();if(n){if(X(n)){const r=n.getStyle(),o=n.getFormat();t.getTextStyle()!==r&&t.setTextStyle(r),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{const r=Z();$(r)&&(r.style!==t.getTextStyle()||r.format!==t.getTextFormat())&&r.isCollapsed()&&t.is(r.anchor.getNode())&&t.setTextStyle(r.style).setTextFormat(r.format)}}),e.registerNodeTransform(Br,t=>{const n=t.getParent();if(ke(n)&&t.is(n.getFirstChild())){const r=t.getStyle(),o=t.getFormat();r===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(r).setTextFormat(o)}}))}function ZN(e){const t=n=>{const r=n.getParent();if(be(n.getFirstChild())||!be(r))return;const o=at(n,i=>ke(i)&&be(i.getParent())&&ke(i.getPreviousSibling()));if(o===null&&n.getIndent()>0)n.setIndent(0);else if(ke(o)){const i=o.getPreviousSibling();if(ke(i)){const s=(function(c){let l=c,f=l.getFirstChild();for(;be(f);){const u=f.getLastChild();if(!ke(u))break;l=u,f=l.getFirstChild()}return l})(i),a=s.getParent();if(be(a)){const c=Uu(a);c+1<Uu(r)&&n.setIndent(c)}}}};return e.registerNodeTransform(sa,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(be(o)){for(const i of o.getChildren())if(ke(i)){t(i);const s=i.getFirstChild();be(s)&&r.push(s)}}}})}const JN=new Set(["http:","https:","mailto:","sms:","tel:"]);class Ho extends Mn{constructor(n="",r={},o){super(o);D(this,"__url");D(this,"__target");D(this,"__rel");D(this,"__title");const{target:i=null,rel:s=null,title:a=null}=r;this.__url=n,this.__target=i,this.__rel=s,this.__title=a}static getType(){return"link"}static clone(n){return new Ho(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const r=document.createElement("a");return this.updateLinkDOM(null,r,n),ip(r,n.theme.link),r}updateLinkDOM(n,r,o){if(Nx(r)){n&&n.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,a=this[s];n&&n[s]===a||(a?r[i]=a:r.removeAttribute(i))}}}updateDOM(n,r,o){return this.updateLinkDOM(n,r,o),!1}static importDOM(){return{a:n=>({conversion:XN,priority:1})}}static importJSON(n){return Co().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=Hg(n);try{const r=new URL(Hg(n));if(!JN.has(r.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const r=this.getWritable();return r.__url=n,r}getTarget(){return this.getLatest().__target}setTarget(n){const r=this.getWritable();return r.__target=n,r}getRel(){return this.getLatest().__rel}setRel(n){const r=this.getWritable();return r.__rel=n,r}getTitle(){return this.getLatest().__title}setTitle(n){const r=this.getWritable();return r.__title=n,r}insertNewAfter(n,r=!0){const o=Co(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(o,r),o}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,r,o){if(!$(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function XN(e){let t=null;if(Nx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=Co(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Co(e="",t){return Kr(new Ho(e,t))}function ft(e){return e instanceof Ho}class il extends Ho{constructor(n="",r={},o){super(n,r,o);D(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(n){return new il(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const r=this.getWritable();return r.__isUnlinked=n,r}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,r,o){return super.updateDOM(n,r,o)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Wg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,r=!0){const o=this.getParentOrThrow().insertNewAfter(n,r);if(R(o)){const i=Wg(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function Wg(e="",t){return Kr(new il(e,t))}function so(e){return e instanceof il}const $i=pe("TOGGLE_LINK_COMMAND");function Kg(e,t){if(e.type==="element"){const n=e.getNode();return R(n)||(function(r,...o){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",r);for(const a of o)s.append("v",a);throw i.search=s.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),n.getChildren()[e.offset+t]||null}return null}function ff(e,t={}){let n;if(e&&typeof e=="object"){const{url:f,...u}=e;n=f,t={...u,...t}}else n=e;const{target:r,title:o}=t,i=t.rel===void 0?"noreferrer":t.rel,s=Z();if(s===null||!$(s)&&!ot(s))return;if(ot(s)){const f=s.getNodes();return f.length===0?void 0:void f.forEach(u=>{if(n===null){const d=at(u,p=>!so(p)&&ft(p));d&&(d.insertBefore(u),d.getChildren().length===0&&d.remove())}else{const d=at(u,p=>!so(p)&&ft(p));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const p=Co(n,{rel:i,target:r});u.insertBefore(p),p.append(u)}}})}const a=s.extract();if(n===null){const f=new Set;return void a.forEach(u=>{const d=u.getParent();if(ft(d)&&!so(d)){const p=d.getKey();if(f.has(p))return;(function(h,g){const m=new Set(g.filter(E=>h.isParentOf(E)).map(E=>E.getKey())),y=h.getChildren(),v=y.filter(E=>m.has(E.getKey()));if(v.length===y.length)return y.forEach(E=>h.insertBefore(E)),void h.remove();const b=y.findIndex(E=>m.has(E.getKey())),w=y.findLastIndex(E=>m.has(E.getKey())),A=b===0,_=w===y.length-1;if(A)v.forEach(E=>h.insertBefore(E));else if(_)for(let E=v.length-1;E>=0;E--)h.insertAfter(v[E]);else{for(let S=v.length-1;S>=0;S--)h.insertAfter(v[S]);const E=y.slice(w+1);if(E.length>0){const S=Co(h.getURL(),{rel:h.getRel(),target:h.getTarget(),title:h.getTitle()});v[v.length-1].insertAfter(S),E.forEach(N=>S.append(N))}}})(d,a),f.add(p)}})}const c=new Set,l=f=>{c.has(f.getKey())||(c.add(f.getKey()),f.setURL(n),r!==void 0&&f.setTarget(r),i!==void 0&&f.setRel(i),o!==void 0&&f.setTitle(o))};if(a.length===1){const f=a[0],u=at(f,ft);if(u!==null)return l(u)}(function(f){const u=Z();if(!$(u))return f();const d=Ri(u),p=d.isBackward(),h=Kg(d.anchor,p?-1:0),g=Kg(d.focus,p?0:-1);if(f(),h||g){const m=Z();if($(m)){const y=m.clone();if(h){const v=h.getParent();v&&y.anchor.set(v.getKey(),h.getIndexWithinParent()+(p?1:0),"element")}if(g){const v=g.getParent();v&&y.focus.set(v.getKey(),g.getIndexWithinParent()+(p?0:1),"element")}Pt(Ri(y))}}})(()=>{let f=null;for(const u of a){if(!u.isAttached())continue;const d=at(u,ft);if(d){l(d);continue}if(R(u)){if(!u.isInline())continue;if(ft(u)){if(!(so(u)||f!==null&&f.getParentOrThrow().isParentOf(u))){l(u),f=u;continue}for(const h of u.getChildren())u.insertBefore(h);u.remove();continue}}const p=u.getPreviousSibling();ft(p)&&p.is(f)?p.append(u):(f=Co(n,{rel:i,target:r,title:o}),u.insertAfter(f),f.append(u))}})}const e5=/^\+?[0-9\s()-]{5,}$/;function Hg(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:e5.test(e)?`tel:${e}`:`https://${e}`}function t5(e,t){return un($s(()=>e.registerCommand($i,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return ff(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(ff(n,o),!0);{const{url:i,target:s,rel:a,title:c}=n;return ff(i,{...o,rel:a,target:s,title:c}),!0}},Gn)),$s(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Gc,o=>{const i=Z();if(!$(i)||i.isCollapsed()||!kr(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand($i,{...r,url:s}),o.preventDefault(),!0)},Gn)}))}function n5({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=pt(),[a,c]=T.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[l,f]=T.useState(null),u=T.useRef(null),d=T.useRef(null),p=fp[e];T.useLayoutEffect(()=>s.registerUpdateListener(({editorState:v})=>{v.read(()=>{const b=Z();if(!$(b))return;c({bold:b.hasFormat("bold"),italic:b.hasFormat("italic"),underline:b.hasFormat("underline"),strikethrough:b.hasFormat("strikethrough"),code:b.hasFormat("code")});let w=b.anchor.getNode(),A=null;for(;w;){if(be(w)){const _=w.getListType();A=_==="bullet"||_==="number"?_:null;break}if(ke(w)){w=w.getParent();continue}w=w.getParent()}f(A)})}),[s]);const h=v=>{s.dispatchCommand(_n,v)},g=()=>{l!=="bullet"?s.dispatchCommand(h1,void 0):s.dispatchCommand(Wu,void 0)},m=()=>{l!=="number"?s.dispatchCommand(m1,void 0):s.dispatchCommand(Wu,void 0)},y=()=>{s.update(()=>{const v=Z();if(!$(v))return;["bold","italic","underline","strikethrough","code"].forEach(w=>{v.hasFormat(w)&&s.dispatchCommand(_n,w)})})};return x.jsxs("div",{className:Ee("cnf:flex cnf:items-center cnf:w-full",r?"cnf:justify-between":"cnf:justify-end"),children:[x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-1",children:[x.jsx(uu,{placement:"top-start",minWidth:"fit-content",title:"text formatting menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",children:x.jsx(Ce,{icon:P4})}),children:x.jsxs("ul",{className:"cnf:flex cnf:items-start cnf:flex-col",children:[x.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:x.jsxs("button",{type:"button",title:"Bold",onClick:()=>h("bold"),className:Ee("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.bold?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[x.jsx(Ce,{icon:C4,className:"cnf:mr-2"}),"Bold"]})}),x.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:x.jsxs("button",{type:"button",title:"Italic",onClick:()=>h("italic"),className:Ee("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.italic?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[x.jsx(Ce,{icon:S4,className:"cnf:mr-2"}),"Italic"]})}),x.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:x.jsxs("button",{type:"button",title:"Underline",onClick:()=>h("underline"),className:Ee("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.underline?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[x.jsx(Ce,{icon:A4,className:"cnf:mr-2"}),"Underline"]})}),x.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:x.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>h("strikethrough"),className:Ee("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.strikethrough?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[x.jsx(Ce,{icon:w4,className:"cnf:mr-2"}),"Strikethrough"]})}),x.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:x.jsxs("button",{type:"button",title:"Monospace",onClick:()=>h("code"),className:Ee("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.code?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[x.jsx(Ce,{icon:T4,className:"cnf:mr-2"}),"Monospace"]})}),x.jsx("hr",{className:"cnf:w-full cnf:border-gray-200"}),x.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:x.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:"cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:text-gray-400 cnf:hover:text-gray-400 cnf:hover:bg-gray-100",children:[x.jsx(Ce,{icon:E4,className:"cnf:mr-2"}),"Clear formatting"]})})]})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:g,children:x.jsx(Ce,{icon:M4})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:m,children:x.jsx(Ce,{icon:k4})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand($i,"https://")},children:x.jsx(Ce,{icon:O4})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"cnf:border-l-1 cnf:border-gray-200 cnf:rounded-none",onClick:()=>{var v;(v=u.current)==null||v.click()},children:x.jsx(Ce,{icon:_4})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var v;(v=d.current)==null||v.click()},children:x.jsx(Ce,{icon:N4})})]}),n&&x.jsx(uu,{placement:"top-end",title:"comment type menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",className:`${p.iconColor} cnf:border-l-1 cnf:border-gray-200 cnf:rounded-none`,children:x.jsx(Ce,{icon:p.icon})}),children:x.jsx("ul",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:gap-2 cnf:p-3",children:y1.map(v=>x.jsx("li",{children:x.jsx(je,{category:"link",size:"none",title:v.title,className:Ee(v.color,e===v.type?v.color:"cnf:text-gray-400"),onClick:()=>t==null?void 0:t(v.type),children:x.jsx(Ce,{icon:v.icon})})},v.type))})})]}),r,x.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:u,accept:"image/*",onChange:v=>{const b=v.target.files;b&&(i==null||i(b))}}),x.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:d,accept:"*",onChange:v=>{const b=v.target.files;b&&(i==null||i(b))}})]})}function r5({hasStrictIndent:e=!1}){const[t]=pt();return T.useEffect(()=>{if(!t.hasNodes([sa,ts]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),T.useEffect(()=>{if(e)return ZN(t)},[t,e]),(function(n){T.useEffect(()=>GN(n),[n])})(t),null}function o5({validateUrl:e,attributes:t}){const[n]=pt();return T.useEffect(()=>{if(!n.hasNodes([Ho]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),T.useEffect(()=>t5(n,Gx({attributes:t,validateUrl:e})),[n,e,t]),null}const i5=new Set(["http:","https:","mailto:","sms:","tel:"]);function qg(e){try{const t=new URL(e);if(!i5.has(t.protocol))return"about:blank"}catch{return e}return e}function Vg(e,t,n,r=10,o=5){const i=n.parentElement;if(e===null||!i){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}const s=t.getBoundingClientRect(),a=n.getBoundingClientRect(),c=i.getBoundingClientRect();let l=e.top-r,f=e.left-o;l<c.top&&(l+=s.height+e.height+r*2),f+s.width>c.right&&(f=c.right-s.width-o),l-=a.top,f-=a.left,t.style.opacity="1",t.style.transform=`translate(${f}px, ${l}px)`}function wc(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?gg(n)?r:o:gg(t)?r:o}function s5({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=T.useRef(null),[a,c]=T.useState(""),[l,f]=T.useState("https://"),[u,d]=T.useState(null),p=T.useCallback(()=>{var A,_;const m=Z();if($(m)){const E=wc(m),S=at(E,ft);S?c(S.getURL()):ft(E)?c(E.getURL()):c(""),o&&f(a)}else if(ot(m)){const E=m.getNodes();if(E.length>0){const S=E[0],N=S.getParent();ft(N)?c(N.getURL()):ft(S)?c(S.getURL()):c(""),o&&f(a)}}const y=s.current,v=en(e._window),b=document.activeElement;if(y===null)return;const w=e.getRootElement();if(m!==null&&w!==null&&e.isEditable()){let E;if(ot(m)){const S=m.getNodes();if(S.length>0){const N=e.getElementByKey(S[0].getKey());N&&(E=N.getBoundingClientRect())}}else v!==null&&w.contains(v.anchorNode)&&(E=(_=(A=v.focusNode)==null?void 0:A.parentElement)==null?void 0:_.getBoundingClientRect());E&&(E.y+=40,Vg(E,y,r)),d(m)}else(!b||b.className!=="link-input")&&(w!==null&&Vg(null,y,r),d(null),i(!1),c(""));return!0},[r,e,i,o,a]);T.useEffect(()=>{const m=r.parentElement,y=()=>{e.getEditorState().read(()=>{p()})};return window.addEventListener("resize",y),m&&m.addEventListener("scroll",y),()=>{window.removeEventListener("resize",y),m&&m.removeEventListener("scroll",y)}},[r.parentElement,e,p]),T.useEffect(()=>un(e.registerUpdateListener(({editorState:m})=>{m.read(()=>{p()})}),e.registerCommand(Qc,()=>(p(),!0),Gn),e.registerCommand(Rd,()=>t?(n(!1),!0):!1,o6)),[e,p,n,t]),T.useEffect(()=>{e.getEditorState().read(()=>{p()})},[e,p]),T.useEffect(()=>{const m=s.current;if(m===null)return;const y=v=>{!m.contains(v.relatedTarget)&&t&&(n(!1),i(!1))};return m.addEventListener("focusout",y),()=>{m.removeEventListener("focusout",y)}},[n,i,t]);const h=m=>{m.key==="Enter"?g(m):m.key==="Escape"&&(m.preventDefault(),i(!1))},g=m=>{m.preventDefault(),u!==null&&(a!==""&&e.update(()=>{e.dispatchCommand($i,qg(l));const y=Z();if($(y)){const v=wc(y).getParent();if(so(v)){const b=Co(v.getURL(),{rel:v.__rel,target:v.__target,title:v.__title});v.replace(b,!0)}}}),f("https://"),i(!1))};return x.jsx("div",{ref:s,className:"cnf:absolute cnf:flex cnf:top-0 cnf:left-0 cnf:shadow-lg cnf:bg-white cnf:z-10 cnf:rounded-sm cnf:w-full cnf:max-w-400",children:t?o?x.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[x.jsx(Ny,{containerClassName:"cnf:px-0 cnf:mr-2",autoFocus:!0,className:"cnf:mt-0",value:l,onChange:m=>{f(m.target.value)},onKeyDown:m=>{h(m)}}),x.jsxs("div",{className:"cnf:flex cnf:justify-center cnf:items-center cnf:gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{i(!1)},children:x.jsx(Ce,{icon:Dc})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:g,children:x.jsx(Ce,{icon:zy})})]})]}):x.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[x.jsx("a",{href:qg(a),target:"_blank",rel:"noopener noreferrer",children:a}),x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{f(a),i(!0)},children:x.jsx(Ce,{icon:QC})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>e.dispatchCommand($i,null),children:x.jsx(Ce,{icon:s_})})]})]}):null})}function a5(e,t,n,r){const[o,i]=T.useState(e),[s,a]=T.useState(!1);return T.useEffect(()=>{function c(){const l=Z();if($(l)){const f=wc(l),u=at(f,ft),d=at(f,so);if(!(u||d)){a(!1);return}const p=l.getNodes().filter(h=>!xo(h)).find(h=>{const g=at(h,ft),m=at(h,so);return u&&!u.is(g)||g&&!g.is(u)||d&&!d.is(m)||m&&(!m.is(d)||m.getIsUnlinked())});a(!p)}else if(ot(l)){const f=l.getNodes();if(f.length===0){a(!1);return}const u=f[0],d=u.getParent();ft(d)||ft(u)?a(!0):a(!1)}}return un(e.registerUpdateListener(({editorState:l})=>{l.read(()=>{c()})}),e.registerCommand(Qc,(l,f)=>(c(),i(f),!1),px),e.registerCommand(Md,l=>{const f=Z();if($(f)){const u=wc(f),d=at(u,ft);if(ft(d)&&(l.metaKey||l.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Gn))},[e]),Nn.createPortal(x.jsx(s5,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function c5({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=pt();return a5(r,e,t,n)}const l5=({url:e,onDelete:t})=>x.jsxs("div",{className:"cnf:relative",children:[x.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"cnf:w-[75px] cnf:h-[75px] cnf:object-cover cnf:rounded-lg cnf:border cnf:border-gray-200"}),x.jsx(je,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",color:"secondary",children:x.jsx(Ce,{icon:jy})})]}),f5=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=Iv(r);return x.jsxs("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center cnf:rounded cnf:border cnf:border-gray-200",children:[x.jsx(je,{size:"smallCollapse",color:"secondary",className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",title:"Remove file",onClick:e,children:x.jsx(Ce,{icon:jy})}),x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-center cnf:mx-2",children:[x.jsx("span",{className:"cnf:text-primary-600 cnf:my-2",children:x.jsx(Ce,{icon:o,size:"3x",className:"cnf:text-primary-600"})}),x.jsx("span",{className:"cnf:font-bold cnf:p-2",children:n})]})]})},u5=({clearKey:e})=>{const[t]=pt(),n=T.useRef(e);return T.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},d5=({isOpen:e})=>{const[t]=pt(),n=T.useRef(!1);return T.useEffect(()=>{if(!e){n.current=!1;return}if(n.current)return;const r=()=>{const o=t.getRootElement();if(!o){requestAnimationFrame(r);return}n.current=!0;const i=window.scrollX,s=window.scrollY;try{o.focus({preventScroll:!0})}catch{o.focus()}requestAnimationFrame(()=>window.scrollTo(i,s)),setTimeout(()=>window.scrollTo(i,s),0)};r()},[t,e]),null},p5=({initialValue:e})=>{const[t]=pt(),n=T.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return t1(o,a)},[]),r=T.useRef(!1);return T.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),sx(n(t,e))}),r.current=!0)},[t,e,n]),null},h5=({onChange:e})=>{const[t]=pt();return x.jsx(DN,{onChange:n=>{n.read(()=>{const r=n1(t,null);e(r)})}})},m5=({onAddAttachments:e})=>{const[t]=pt();return T.useEffect(()=>{if(!e)return;const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.clipboardData;if(!i)return;const s=i.items;let a=!1;for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){a=!0;break}}if(a){for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){const f=l.getAsFile();if(f){const u=Date.now(),d=f.type.split("/")[1]||"png",p=`image_${u}.${d}`,h=new File([f],p,{type:f.type});e==null||e([h])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},g5=({onSubmit:e})=>{const[t]=pt();return T.useEffect(()=>{if(e)return t.registerCommand(Fs,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null},y5=({setIsLinkEditMode:e})=>{const[t]=pt();return T.useEffect(()=>{const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.metaKey||o.ctrlKey,s=o.key==="k"||o.key==="K";i&&s&&t.getEditorState().read(()=>{const a=Z();$(a)&&!a.isCollapsed()&&(o.preventDefault(),e(!0),t.dispatchCommand($i,"https://"))})};return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}},[t,e]),null};function g1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c=!0,actions:l,onAddAttachments:f,onRemoveAttachment:u,onSubmit:d,isOpen:p}){const h={namespace:"comment-editor",theme:UN,nodes:[sa,ts,Ho],onError:A=>{console.error(A)}},[g,m]=T.useState(null),[y,v]=T.useState(!1),b=A=>{A!==null&&m(A)},w=fp[s];return x.jsx("div",{className:r,children:x.jsxs(L6,{initialConfig:h,children:[x.jsxs("div",{className:"cnf:relative",children:[x.jsx(EN,{contentEditable:x.jsx("div",{ref:b,children:x.jsx(MN,{className:Ee("cnf:p-3 cnf:outline-none cnf:border-0 cnf:w-full cnf:border-t cnf:border-gray-200 cnf:rounded-none cnf:border-l-3",w.bg,w.border,w.fontColor,n)})}),placeholder:x.jsx("div",{className:"cnf:absolute cnf:top-3 cnf:left-4 cnf:text-gray-400 cnf:pointer-events-none",children:"Type comment…"}),ErrorBoundary:$N}),x.jsx(r5,{}),x.jsx(o5,{}),g&&x.jsx(c5,{anchorElem:g,isLinkEditMode:y,setIsLinkEditMode:v}),x.jsx(NN,{}),x.jsx(p5,{initialValue:o}),x.jsx(h5,{onChange:i}),x.jsx(g5,{onSubmit:d}),x.jsx(y5,{setIsLinkEditMode:v}),x.jsx(u5,{clearKey:t}),x.jsx(m5,{onAddAttachments:f}),x.jsx(d5,{isOpen:p})]}),e&&e.length>0&&x.jsx("div",{className:"cnf:flex cnf:flex-wrap cnf:justify-start cnf:gap-2 cnf:p-4",children:e.map(A=>md(A.type)?x.jsx(l5,{url:A.url,onDelete:()=>u==null?void 0:u(A.originFile)},A.originFile.name):x.jsx(f5,{type:A.type,label:A.name,onRemoveFile:()=>u==null?void 0:u(A.originFile)},A.originFile.name))}),x.jsx("div",{className:"cnf:border-t cnf:border-gray-200 cnf:p-2 cnf:flex cnf:justify-end",children:x.jsx(n5,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c,actions:l,setIsLinkEditMode:v,onAddAttachments:f})})]})})}const v5=({asset:e,onSetActiveSrc:t})=>x.jsxs("div",{className:"cnf:relative cnf:border cnf:border-gray-200 cnf:rounded-md cnf:h-[110px] cnf:w-full cnf:hover:border-primary-500",children:[x.jsx("img",{src:za(e),onClick:()=>t(za(e)),onKeyDown:n=>{n.key==="Enter"&&t(za(e))},alt:e.name,className:"cnf:w-full cnf:h-full cnf:object-cover cnf:rounded-md cnf:object-center cnf:cursor-zoom-in"}),(e==null?void 0:e.uploading)&&x.jsx("div",{className:"cnf:absolute cnf:bottom-2 cnf:w-full cnf:max-w-md cnf:mx-auto cnf:px-2",children:x.jsx("div",{className:"cnf:relative cnf:h-2 cnf:overflow-hidden cnf:rounded-full cnf:bg-gray-200",children:x.jsx("div",{className:"cnf:absolute cnf:left-0 cnf:top-0 cnf:h-full cnf:w-1/3 cnf:rounded-full cnf:bg-blue-500 cnf:animate-progress"})})})]}),b5=({asset:e})=>{var r,o;const t=((o=(r=e==null?void 0:e.mimeType)==null?void 0:r.split("/").pop())==null?void 0:o.toLowerCase())||"",n=Iv(t);return x.jsxs("div",{className:"cnf:flex cnf:gap-2",children:[(e==null?void 0:e.uploading)&&x.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-center",children:x.jsx("div",{className:"cnf:h-4 cnf:w-4 cnf:rounded-full cnf:border-2 cnf:border-gray-300 cnf:border-t-blue-500 cnf:animate-spin"})}),x.jsx(Ce,{icon:n,size:"lg",className:"cnf:text-primary-600"}),x.jsx("a",{href:za(e),className:"cnf:text-sm cnf:text-blue-600 cnf:underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},x5=({commentType:e=dt.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:c,taskVerified:l})=>{const u={[dt.INFO]:{bg:"cnf:bg-primary-100",border:"cnf:border-primary-200",icon:Dy,iconColor:"cnf:text-primary-600 cnf:hover:text-primary-600",text:"cnf:text-primary-900"},[dt.WARNING]:{bg:"cnf:bg-warning-100",border:"cnf:border-warning-200",icon:My,iconColor:"cnf:text-warning-600 cnf:hover:text-warning-600",text:"cnf:text-warning-900"},[dt.DANGER]:{bg:"cnf:bg-danger-100",border:"cnf:border-danger-200",icon:$y,iconColor:"cnf:text-danger-600 cnf:hover:text-danger-600",text:"cnf:text-danger-900"},[dt.SUCCESS]:{bg:"cnf:bg-success-100",border:"cnf:border-success-200",icon:Ly,iconColor:"cnf:text-success-600 cnf:hover:text-success-600",text:"cnf:text-success-900"}}[e],d=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(o||"")).replace(",",""),[p,h]=T.useState(!1),[g,m]=T.useState(zl(r)),[y,v]=T.useState(e),[b,w]=T.useState(""),A=()=>{h(!0)},_=()=>{const N=iu.sanitize(g);s(N,y),h(!1)},E=N=>{const P=iu.sanitize(g);v(N),s(P,N),h(!1)},S=()=>{h(!1)};return x.jsxs("div",{className:"cnf:flex cnf:items-start cnf:space-x-4 cnf:w-full",children:[x.jsx(KT,{alt:t}),x.jsxs("div",{className:"cnf:flex-1 cnf:min-w-0",children:[x.jsxs("div",{className:`cnf:border ${u.border} cnf:rounded-sm ${u.bg} cnf:shadow-sm cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full`,children:[x.jsx("div",{className:"cnf:p-3 cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full",children:x.jsxs("div",{className:"cnf:w-full",children:[x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:mb-2 cnf:justify-between",children:[x.jsxs("div",{children:[x.jsx(Ce,{icon:u.icon,size:"lg",className:`cnf:mr-2 ${u.iconColor}`}),x.jsx("span",{className:`cnf:font-semibold cnf:text-sm ${u.text}`,children:t})]}),x.jsx(qT,{commentType:e,taskVerified:l,isUsernameAuthor:n.trim()===t.trim(),onEdit:A,onSaveCommentType:E,onDelete:i})]}),p?x.jsx(g1,{inputFieldClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",containerClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",onChange:m,commentType:e,isCommentTypeEditable:!1,initialValue:zl(r),actions:x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:[x.jsx(je,{category:"outline",size:"smallCollapse",color:"secondary",onClick:S,title:"Cancel edit",children:"Cancel"}),x.jsx(je,{category:"solid",size:"smallCollapse",color:"primary",onClick:_,title:"Save edit",disabled:$a(g),children:"Save"})]})}):x.jsx("div",{className:`cnf:text-sm ${u.text}`,dangerouslySetInnerHTML:{__html:zl(r)}})]})}),a&&c&&(c==null?void 0:c.length)>0&&x.jsx("div",{className:`${u.border} cnf:border-t cnf:w-full cnf:p-2 cnf:flex cnf:gap-2 cnf:flex-wrap`,children:c.map(N=>x.jsx(T.Fragment,{children:md(N.mimeType)?x.jsx(v5,{asset:N,onSetActiveSrc:w}):x.jsx(b5,{asset:N})},N.assetId))})]}),x.jsxs("div",{className:"cnf:flex cnf:gap-2 cnf:my-1",children:[o&&x.jsx("time",{dateTime:o,className:"cnf:text-xs cnf:text-gray-500 cnf:opacity-60",children:d}),l&&x.jsxs("span",{className:"cnf:text-xs cnf:text-success-600 cnf:font-semibold cnf:flex cnf:items-center cnf:gap-1",children:[x.jsx(Ce,{icon:Ry}),"Comment Required"]})]})]}),x.jsx(ET,{plugins:[BT],open:!!b,zoom:{maxZoomPixelRatio:2},close:()=>w(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:b}]})]})},fp={[dt.INFO]:{icon:l_,bg:"cnf:bg-primary-100",border:"cnf:border-l-primary-500",iconColor:"cnf:text-primary-600 cnf:hover:text-primary-700",fontColor:"cnf:text-primary-900"},[dt.WARNING]:{icon:GC,bg:"cnf:bg-warning-100",border:"cnf:border-l-warning-500",iconColor:"cnf:text-warning-600 cnf:hover:text-warning-700",fontColor:"cnf:text-warning-900"},[dt.DANGER]:{icon:d_,bg:"cnf:bg-danger-100",border:"cnf:border-l-danger-500",iconColor:"cnf:text-danger-600 cnf:hover:text-danger-700",fontColor:"cnf:text-danger-900"},[dt.SUCCESS]:{icon:Ry,bg:"cnf:bg-success-100",border:"cnf:border-l-success-500",iconColor:"cnf:text-success-600 cnf:hover:text-success-700",fontColor:"cnf:text-success-900"}},y1=Object.entries(fp).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),w5=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:a})=>{const[c,l]=T.useState(""),[f,u]=T.useState(dt.INFO),[d,p]=T.useState(0),[h,g]=T.useState([]),m=T.useRef(null),{username:y}=v1(),{manageComment:v}=pk({playbookInstanceId:s}),b=()=>{const P=h.length,W=h.some(z=>!md(z.mimeType))?"Attachment":"Image",j=P>1?"s":"";return`<p class="cnf:m-0"><span style="white-space: pre-wrap;">${W}${j} added.</span></p>`},w=P=>{const I=Array.from(P).map((W,j)=>ok(W,h.length+j+1));g(W=>[...W,...I])},A=P=>{g(I=>I.filter(W=>W.originFile!==P))},_=P=>{u(P)},E=async()=>{if(!h.length&&$a(c)||!o)return;h.length>0&&g([]);const P=iu.sanitize(c);l(""),p(I=>I+1),await v({action:"add",comment:h.length>0&&$a(c)?b():P,username:y||"",commentType:f,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:h.length>0,taskInstanceId:o,taskVerified:a,attachments:h}),u(dt.INFO)},S=async P=>{o&&await v({username:y||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:P})},N=async({commentId:P,comment:I,commentType:W,hasAssets:j,isAlreadyVerified:z})=>{o&&await v({action:"edit",username:y||"",...I&&{comment:I},taskInstanceId:o,commentId:P,hasAssets:j,taskVerified:z,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,commentType:W})};return T.useLayoutEffect(()=>{m.current&&n&&!i&&e.length>0&&(m.current.scrollTop=m.current.scrollHeight)},[n,i,e.length]),x.jsxs("div",{className:Ee("cnf:transition-all cnf:duration-300 cnf:fixed cnf:bg-white cnf:right-0 cnf:bottom-0 cnf:h-[100vh] cnf:z-[9999999998] cnf:flex cnf:flex-col cnf:min-w-[270px] cnf:max-w-[420px] cnf:w-[calc(100vw-1rem)] cnf:border cnf:border-gray-200 cnf:rounded-t-sm cnf:overflow-hidden",n?"cnf:translate-y-0 cnf:opacity-100":"cnf:translate-y-full cnf:opacity-0 cnf:pointer-events-none"),children:[x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:gap-2 cnf:border-b cnf:border-gray-200 cnf:px-2 cnf:py-4 cnf:w-full",children:[x.jsx("h6",{className:"cnf:font-semibold cnf:text-gray-900 cnf:truncate cnf:max-w-[300px]",children:r}),x.jsx(je,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:x.jsx(Ce,{icon:Dc,className:"cnf:size-4 cnf:text-gray-300"})})]}),x.jsxs("div",{ref:m,className:"cnf:flex cnf:flex-col cnf:flex-1 cnf:overflow-y-auto",children:[x.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:justify-end cnf:flex-1 cnf:gap-4 cnf:p-4 cnf:pb-[102px]",children:[i&&x.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-3",children:[1,2,3].map(P=>x.jsx("div",{className:"cnf:h-16 cnf:animate-pulse cnf:rounded-lg cnf:bg-gray-100"},P))}),(e==null?void 0:e.length)>0&&!i&&e.map(P=>x.jsx(x5,{username:y||"",onDelete:()=>S(P.commentId),onEdit:(I,W)=>N({commentId:P.commentId,comment:I,commentType:W,hasAssets:P.hasAssets,isAlreadyVerified:P.taskVerified}),...P},P.commentId)),(e==null?void 0:e.length)===0&&!i&&x.jsxs("div",{className:"cnf:flex cnf:flex-1 cnf:flex-col cnf:items-center cnf:justify-end cnf:gap-3 cnf:text-center cnf:mb-1",children:[x.jsx("img",{src:nk,className:"cnf:opacity-70",alt:"Empty"}),x.jsx("p",{className:"cnf:text-gray-400",children:"There is no discussion in this Task."})]})]}),x.jsx(g1,{attachments:h,onChange:l,containerClassName:"cnf:fixed cnf:bottom-0 cnf:left-0 cnf:right-0 cnf:bg-white",clearKey:d,commentType:f,onCommentTypeChange:_,onAddAttachments:w,onRemoveAttachment:A,onSubmit:E,isOpen:n,actions:x.jsx(je,{category:"link",size:"normalCollapse",title:"Send comment",onClick:E,disabled:$a(c)&&h.length===0,children:x.jsx(Ce,{icon:I4})})})]})]})},Ku=T.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),v1=()=>{if(!T.useContext(Ku))throw new Error("useCommentContext must be used within a CommentProvider");return T.useContext(Ku)},A5=({playbookInstanceId:e,children:t,username:n})=>{const[r,o]=T.useState({taskInstanceId:null,taskName:"",taskVerification:!1}),{taskInstanceId:i,taskName:s,taskVerification:a}=r||{taskInstanceId:null,taskName:"",taskVerification:!1},{comments:c,isLoading:l,prefetchQuery:f}=lk({taskInstanceId:i||0,enabled:i!==null,username:n});return x.jsxs(Ku.Provider,{value:{comments:c,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:f,username:n},children:[t,Nn.createPortal(x.jsxs("div",{id:"cnfdnc-comment-box-root",children:[x.jsx("style",{children:_c}),x.jsx("div",{className:"confidence-playbook",children:x.jsx(w5,{playbookInstanceId:e,comments:c,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:l,taskVerification:a})})]}),L4)]})},C5={[Be.OPEN]:"cnf:border-[#C1C5C8] cnf:bg-[#F0F1F2]",[Be.IN_PROGRESS]:"cnf:bg-[#E6F2FF] cnf:border-[#94C8FF]",[Be.IN_REVIEW]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]",[Be.COMPLETED]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]"},Bn={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},_5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:c,taskStyle:l,listStickyTopBase:f})=>{const[u,d]=T.useState(!1),{taskDetails:p,prefetchQuery:h}=DS({taskId:e.taskId,playbookId:c,enabled:s}),{setOpenTaskDetails:g,prefetchQuery:m}=v1(),{buttons:y}=Bw({taskStatus:e.workflowStatus,canStart:i}),v=T.useMemo(()=>e.imageRequired===0?Bn.NO_VERIFICATION:e.imageRequired===1?Bn.SCREENSHOT:e.imageRequired===2?Bn.PHOTO:e.imageRequired===4?Bn.COMMENT:null,[e.imageRequired]),b=async w=>{try{d(!0),await r(w)}finally{d(!1)}};if(o==="list"){const w=T.useMemo(()=>e.workflowStatus===Be.COMPLETED?"success":e.workflowStatus===Be.IN_PROGRESS?"primary":"default",[e.workflowStatus]),A=T.useMemo(()=>{const _=[];return y.forEach(E=>{E==="START"&&_.push({id:"START",color:"primary",action:"Start",to:Be.IN_PROGRESS}),E==="COMPLETE"&&(!e.taskVerified&&v===Bn.COMMENT&&_.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),_.push({id:"COMPLETE",color:"success",action:"Complete",to:Be.COMPLETED,disabled:!e.taskVerified&&v===Bn.COMMENT}))}),_},[y,v,e.taskVerified]);return x.jsxs("div",{className:Ee("cnf:flex cnf:flex-col"),children:[x.jsxs("div",{className:Ee("cnf:flex cnf:items-center cnf:gap-3 cnf:p-2 cnf:border-gray-200",e.sequenceOrder>0&&"cnf:border-t",s&&"cnf:bg-white cnf:rounded-md cnf:border cnf:border-t-none cnf:shadow-sm cnf:sticky"),style:{top:s?f:0},children:[x.jsx("div",{className:"cnf:text-gray-200 cnf:text-base",children:e.sequenceOrder+1}),x.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:h,className:Ee("cnf:flex-1 cnf:truncate cnf:cursor-pointer",s&&"cnf:font-medium",e.workflowStatus===Be.COMPLETED&&"cnf:text-secondary-400 cnf:line-through"),style:{color:e.workflowStatus===Be.IN_PROGRESS&&(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),x.jsx(p4,{taskVerified:e.taskVerified,verificationType:v,title:e.workflowStatus,variant:w,transitions:A,onClick:_=>{if(_===fi.ADD_COMMENT){g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(_)}}),x.jsx(Yh,{onMouseOver:()=>m(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||dt.INFO,onClick:()=>g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"cnf:hidden","cnf:border-gray-200 cnf:border cnf:p-2 cnf:mx-4 cnf:mb-4 cnf:border-t-none cnf:-mt-[1px] cnf:bg-gray-100 cnf:rounded-b-md"),children:x.jsx(Vh,{description:(p==null?void 0:p.description)||""})})]})}return x.jsxs("div",{className:Ss("cnf:flex cnf:items-stretch cnf:rounded-sm cnf:overflow-hidden cnf:border",C5[e.workflowStatus]),children:[x.jsx(y4,{playbookType:n,status:e.workflowStatus,step:t}),x.jsxs("div",{className:"cnf:flex cnf:w-full cnf:flex-col cnf:overflow-x-hidden cnf:flex-1 cnf:p-2",children:[n==="Sequential"&&x.jsx("div",{className:"cnf:-mb-3 cnf:self-end cnf:pr-2 cnf:pt-2",children:x.jsx(b4,{status:e.workflowStatus})}),x.jsxs("div",{className:"cnf:space-y-2 cnf:divide-y cnf:divide-black/10 cnf:flex cnf:flex-col cnf:flex-1",children:[x.jsx("div",{className:Ee("cnf:text-lg cnf:font-medium cnf:flex-1 cnf:pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),v?x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2 cnf:text-sm cnf:pb-2",children:[x.jsx(Ce,{icon:Iy,className:"cnf:size-4"}),x.jsxs("div",{children:[x.jsx("span",{className:"cnf:font-medium",children:v===Bn.PHOTO?"Photo":v===Bn.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):x.jsx(x.Fragment,{})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"cnf:hidden"),children:x.jsx(Vh,{description:(p==null?void 0:p.description)||""})}),(y.length>0||e.hasDescription)&&x.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-end cnf:gap-4 cnf:border-t cnf:border-black/10 cnf:pt-2",children:[x.jsx("div",{className:"cnf:flex-1",children:x.jsx(FS,{buttons:y,onButtonClick:b,disabled:u})}),x.jsx(Yh,{onMouseOver:()=>m(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||dt.INFO,onClick:()=>g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})}),a&&x.jsx(je,{size:"smallCollapse",onMouseOver:h,category:"link",onClick:()=>{a()},title:s?"Hide task description":"Show task description",children:x.jsx(Ce,{icon:Fy,className:Ss("cnf:cursor-pointer cnf:text-[#0069D9]",s?"cnf:rotate-180":"")})})]})]})]})},b1=T.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return x.jsx("div",{ref:o,className:Ee("cnf:border-b cnf:border-gray-200 cnf:flex cnf:items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:x.jsx("div",{className:Ee("cnf:text-xl cnf:min-h-16 cnf:p-4 cnf:font-medium cnf:flex-1",{"cnf:text-dark":!((s=n==null?void 0:n.whiteLabel)!=null&&s.titleTextColor)}),style:{color:(a=n==null?void 0:n.whiteLabel)==null?void 0:a.titleTextColor},children:e})})});b1.displayName="PlaybookHeader";const E5=_c.replace(/:root,\s*:host/g,":host"),S5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,defaultExpanded:r=!0})=>{const{playbook:o,actions:i}=$w(e);if(!o)return x.jsx("div",{});const s=async(a,c)=>{var l;if(a===fi.COMPLETE){const f=(l=o.tasks.find(u=>u.taskInstanceId===c))==null?void 0:l.sequenceOrder;if(f===void 0){console.error("Task not found in playbook");return}return i.completeTask(c,f)}if(a===fi.START)return i.startTask(c)};return x.jsx("div",{className:"confidence-playbook",children:x.jsx(x1,{playbook:o,playbookMode:t,onTaskButtonClick:s,playbookStyle:n,defaultExpanded:r})})},k5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>x.jsxs("div",{className:Ee("cnf:w-full cnf:p-4",e),children:[n&&x.jsxs("div",{className:Ee(r==="card"&&"cnf:mb-4"),children:[x.jsx("span",{className:"cnf:font-medium",children:"Tasks"})," (",n,")"]}),x.jsx("div",{className:Ee(r==="card"&&"cnf:space-y-4"),children:t})]}),x1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r,defaultExpanded:o=!0})=>{var y,v,b,w,A;const{playbookInstanceName:i,tasks:s}=e,a=T.useRef(null),[c,l]=T.useState(0),[f,u]=T.useState(()=>{const _=M2(e.playbookInstanceId);return _!==null?_:o}),d=()=>{u(_=>{const E=!_;return P2(e.playbookInstanceId,E),E})},{isTaskExpanded:p,toggleTaskExpanded:h,isAtLeastOneTaskExpanded:g}=T0(e.playbookInstanceId,{onTaskExpanded:()=>{var _;l(((_=a.current)==null?void 0:_.offsetHeight)||0)}});T.useEffect(()=>{if(g){if(!a.current)throw new Error("Playbook header ref is not set");new ResizeObserver(E=>{var S;for(const N of E)N.contentRect&&l(((S=a.current)==null?void 0:S.offsetHeight)||0)}).observe(a.current)}return()=>{a.current&&new ResizeObserver(()=>{}).unobserve(a.current)}},[g]);const m=T.useMemo(()=>{const _=s.filter(E=>E.workflowStatus===Be.COMPLETED).sort((E,S)=>S.sequenceOrder-E.sequenceOrder)[0];return _?_.sequenceOrder+1:0},[s]);return x.jsxs("div",{className:Ee(!(r!=null&&r.overlay)&&"cnf:min-h-screen",(r==null?void 0:r.overlay)&&"cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex","cnf:transition-all cnf:duration-300 cnf:ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:f?((y=r.overlay.size)==null?void 0:y.width)||450:"2.25rem",height:((v=r.overlay.size)==null?void 0:v.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((b=r.overlay.offset)==null?void 0:b.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((w=r.overlay.offset)==null?void 0:w.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&x.jsx("div",{onClick:d,className:Ee("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer"),style:{backgroundColor:((A=r==null?void 0:r.whiteLabel)==null?void 0:A.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:x.jsx("img",{src:p0,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})}),x.jsxs("div",{className:Ee("cnf:flex cnf:flex-col cnf:flex-1 cnf:bg-gray-50",(r==null?void 0:r.overlay)&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm cnf:overflow-y-auto"),children:[x.jsx(b1,{title:i,className:Ee("cnf:top-0 cnf:sticky cnf:z-2"),playbookStyle:r,ref:a}),x.jsx(k5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:s.map((_,E)=>{var S;return x.jsx(_5,{task:_,step:E+1,viewMode:t,playbookId:e.playbookId,canStart:_.sequenceOrder===m,onButtonClick:N=>n(N,_.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(S=r==null?void 0:r.whiteLabel)==null?void 0:S.primaryColor},isExpanded:p(_.taskInstanceId),toggleExpanded:()=>h(_.taskInstanceId),listStickyTopBase:c||104},_.taskId)})})]})]})},T5=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles",persistKey:s,defaultExpanded:a=!0})=>{const[c,l]=T.useState(null);return T.useEffect(()=>{(async()=>{const f=q0(t,s);if(f&&f.email===e){l(f.playbookInstanceId);return}const{playbookInstanceId:u,errorCode:d,details:p,message:h}=await N0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(d)throw new Error(`Error initiating playbook: ${h} (Code: ${d}) - Details: ${p}`);if(!u)throw new Error("No playbook instance ID returned from initiation");H0(t,u,e,s),l(u)})()},[]),c?x.jsx(Hr,{playbookInstanceId:c,playbookMode:n,playbookStyle:r,username:e,defaultExpanded:a}):null},N5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i,defaultExpanded:s=!0})=>{const[a,c]=T.useState(null),[l,f]=T.useState(void 0);return T.useEffect(()=>{const u=q0(e,i);u&&(c(u.playbookInstanceId),f(u.email))},[e,i]),x.jsxs(x.Fragment,{children:[x.jsxs(Ac.div,{children:[x.jsx(WC,{playbookId:e,disabled:!!a,onInitiated:(u,d)=>{H0(e,u,d,i),c(u),f(d)},btnLabel:r,btnColor:o}),x.jsx("style",{type:"text/css",children:E5})]}),a&&x.jsx(Hr,{playbookInstanceId:a,playbookMode:t,playbookStyle:n,username:l,defaultExpanded:s})]})},Hr=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r,defaultExpanded:o=!0})=>(console.log("Starting ConfidencePlaybook with instance ID:",e,r),x.jsx(S0,{children:x.jsx(A5,{playbookInstanceId:e,username:r,children:x.jsx(S5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n,defaultExpanded:o})})}));Hr.Context=S0;Hr.View=x1;Hr.AutoInstantiated=T5;Hr.WithInstantiateButton=N5;const w1=_c.replace(/:root,\s*:host/g,":host"),A1=e=>Nn.createPortal(x.jsxs(Ac.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:w1}),x.jsx(Hr,{...e})]}),document.body),O5=e=>Nn.createPortal(x.jsxs(Ac.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:w1}),x.jsx(Hr.AutoInstantiated,{...e})]}),document.body);A1.AutoInstantiated=O5;exports.ConfidencePlaybook=A1;
|
|
606
|
+
`?l.insertParagraph():f===" "?l.insertNodes([oa()]):l.insertText(f)}}}else t.insertRawText(s)}function Mg(e,t,n){e.dispatchCommand(NT,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if($(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=or(o,"previous");if(s)if(Mr(s))i=s.origin;else{const a=zr(s,un(We(),"next").getFlipped());for(const c of a){if(X(c.origin)){i=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),c=i.getStyle();r.format===a&&r.style===c||(r.format=a,r.style=c,r.dirty=!0)}}})(n))}function g1(e,t,n,r=[]){let o=t===null||n.isSelected(t);const i=R(n)&&n.excludeFromCopy("html");let s=n;t!==null&&X(s)&&(s=Gx(t,s,"clone"));const a=R(s)?s.getChildren():[],c=(function(l){const f=l.exportJSON(),u=l.constructor;if(f.type!==u.getType()&&_c(58,u.name),R(l)){const d=f.children;Array.isArray(d)||_c(59,u.name)}return f})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let l=0;l<a.length;l++){const f=a[l],u=g1(e,t,f,c.children);!o&&R(n)&&u&&n.extractWithChild(f,t,"clone")&&(o=!0)}if(o&&!i)r.push(c);else if(Array.isArray(c.children))for(let l=0;l<c.children.length;l++){const f=c.children[l];r.push(f)}return o}function xN(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)g1(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function wN(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=f6(r);X(o)&&Y6(o),t.push(o)}return t}let ii=null;async function Ig(e,t,n){if(ii!==null)return!1;if(t!==null)return new Promise((l,f)=>{e.update(()=>{l(Lg(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=tn(o);if(r===null||s===null)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const c=new Range;return c.setStart(a,0),c.setEnd(a,1),s.removeAllRanges(),s.addRange(c),new Promise((l,f)=>{const u=e.registerCommand(el,d=>(Nr(d,ClipboardEvent)&&(u(),ii!==null&&(o.clearTimeout(ii),ii=null),l(Lg(e,d,n))),!0),Cx);ii=o.setTimeout(()=>{u(),ii=null,l(!1)},50),i.execCommand("copy"),a.remove()})}function Lg(e,t,n){if(n===void 0){const o=tn(e._window),i=Z();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!aa(e,s,a))return!1;n=AN(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(CN(r,n),!0)}const y1=[["text/html",bN],["application/x-lexical-editor",vN]];function AN(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=rm();for(const[r,o]of y1){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function CN(e,t){for(const[n]of y1)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function Rg(e,t){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const Ho=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,_N=Ho&&"documentMode"in document?document.documentMode:null,EN=Ho&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),SN=!(!Ho||!("InputEvent"in window)||_N)&&"getTargetRanges"in new window.InputEvent("input"),kN=Ho&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Dg=Ho&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,TN=Ho&&/^(?=.*Chrome).*/i.test(navigator.userAgent),NN=Ho&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&EN&&!TN,Fg=me("DRAG_DROP_PASTE_FILE");function Da(e){let t=null;if(Nr(e,DragEvent)?t=e.dataTransfer:Nr(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function jg(e){const t=Z();if(!$(t))return!1;const n=new Set,r=t.getNodes();for(let o=0;o<r.length;o++){const i=r[o],s=i.getKey();if(n.has(s))continue;const a=at(i,l=>R(l)&&!l.isInline());if(a===null)continue;const c=a.getKey();a.canIndent()&&!n.has(c)&&(n.add(c),e(a))}return n.size>0}function zg(e){const t=zi(e);return Te(t)}function ff(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function ON(e){return dn(e.registerCommand(Fd,t=>{const n=Z();return!!ot(n)&&(n.clear(),!0)},Ae),e.registerCommand(bo,t=>{const n=Z();return $(n)?(n.deleteCharacter(t),!0):!!ot(n)&&(n.deleteNodes(),!0)},Ae),e.registerCommand(Fs,t=>{const n=Z();return!!$(n)&&(n.deleteWord(t),!0)},Ae),e.registerCommand(js,t=>{const n=Z();return!!$(n)&&(n.deleteLine(t),!0)},Ae),e.registerCommand(bi,t=>{const n=Z();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const r=t.dataTransfer;if(r!=null)Pg(r,n,e);else if($(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},Ae),e.registerCommand(Cu,()=>{const t=Z();return!!$(t)&&(t.removeText(),!0)},Ae),e.registerCommand(Sn,t=>{const n=Z();return!!$(n)&&(n.formatText(t),!0)},Ae),e.registerCommand(LT,t=>{const n=Z();if(!$(n)&&!ot(n))return!1;const r=n.getNodes();for(const o of r){const i=at(o,s=>R(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},Ae),e.registerCommand(yi,t=>{const n=Z();return!!$(n)&&(n.insertLineBreak(t),!0)},Ae),e.registerCommand(Ds,()=>{const t=Z();return!!$(t)&&(t.insertParagraph(),!0)},Ae),e.registerCommand(MT,()=>(gx([oa()]),!0),Ae),e.registerCommand(IT,()=>jg(t=>{const n=t.getIndent();t.setIndent(n+1)}),Ae),e.registerCommand(jp,()=>jg(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),Ae),e.registerCommand(Wv,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if($(n)){const r=Du(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Kv,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if($(n)){if((function(o){const i=o.focus;return i.key==="root"&&i.offset===We().getChildrenSize()})(n))return t.preventDefault(),!0;const r=Du(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Uv,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),wg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!$(n))return!1;if(Cg(n,!0)){const r=t.shiftKey;return t.preventDefault(),_g(n,r,!0),!0}return!1},Ae),e.registerCommand(Bv,t=>{const n=Z();if(ot(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),wg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!$(n))return!1;const r=t.shiftKey;return!!Cg(n,!1)&&(t.preventDefault(),_g(n,r,!1),!0)},Ae),e.registerCommand(qv,t=>{if(zg(t.target))return!1;const n=Z();if($(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:o}=r;if(o.offset!==0)return!1;const i=o.getNode();if(Ye(i))return!1;const s=X6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(jp,void 0);if(Dg&&navigator.language==="ko-KR")return!1}else if(!ot(n))return!1;return t.preventDefault(),e.dispatchCommand(bo,!0)},Ae),e.registerCommand(Vv,t=>{if(zg(t.target))return!1;const n=Z();return!(!$(n)&&!ot(n))&&(t.preventDefault(),e.dispatchCommand(bo,!1))},Ae),e.registerCommand(zs,t=>{const n=Z();if(!$(n))return!1;if(ff(n),t!==null){if((Dg||kN||NN)&&SN)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(yi,!1)}return e.dispatchCommand(Ds,void 0)},Ae),e.registerCommand($d,()=>{const t=Z();return!!$(t)&&(e.blur(),!0)},Ae),e.registerCommand(Qv,t=>{const[,n]=Da(t);if(n.length>0){const o=Rg(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=zi(s);if(a!==null){const c=mx();if(X(a))c.anchor.set(a.getKey(),i,"text"),c.focus.set(a.getKey(),i,"text");else{const f=a.getParentOrThrow().getKey(),u=a.getIndexWithinParent()+1;c.anchor.set(f,u,"element"),c.focus.set(f,u,"element")}const l=Fi(c);Pt(l)}e.dispatchCommand(Fg,n)}return t.preventDefault(),!0}const r=Z();return!!$(r)},Ae),e.registerCommand(Gv,t=>{const[n]=Da(t),r=Z();return!(n&&!$(r))},Ae),e.registerCommand(Zv,t=>{const[n]=Da(t),r=Z();if(n&&!$(r))return!1;const o=Rg(t.clientX,t.clientY);if(o!==null){const i=zi(o.node);Te(i)&&t.preventDefault()}return!0},Ae),e.registerCommand(_u,()=>(v6(),!0),Ae),e.registerCommand(el,t=>(Ig(e,Nr(t,ClipboardEvent)?t:null),!0),Ae),e.registerCommand(Bd,t=>((async function(n,r){await Ig(r,Nr(n,ClipboardEvent)?n:null),r.update(()=>{const o=Z();$(o)?o.removeText():ot(o)&&o.getNodes().forEach(i=>i.remove())})})(t,e),!0),Ae),e.registerCommand(Xc,t=>{const[,n,r]=Da(t);return n.length>0&&!r?(e.dispatchCommand(Fg,n),!0):ts(t.target)&&Gd(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=Nr(o,InputEvent)||Nr(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Pg(a,s,i)},{tag:YT})})(t,e),!0)},Ae),e.registerCommand(Hv,t=>{const n=Z();return $(n)&&ff(n),!1},Ae),e.registerCommand(Yv,t=>{const n=Z();return $(n)&&ff(n),!1},Ae))}function PN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const mm=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function MN({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=T.useState(()=>n.getDecorators());return mm(()=>n.registerDecoratorListener(s=>{Wt.flushSync(()=>{i(s)})}),[n]),T.useEffect(()=>{i(n.getDecorators())},[n]),T.useMemo(()=>{const s=[],a=Object.keys(o);for(let c=0;c<a.length;c++){const l=a[c],f=v.jsx(r,{onError:d=>n._onError(d),children:v.jsx(T.Suspense,{fallback:null,children:o[l]})}),u=n.getElementByKey(l);u!==null&&s.push(Wt.createPortal(f,u,l))}return s},[r,o,n])})(e,t)}function IN({editor:e,ErrorBoundary:t}){return(function(n){const r=wi.maybeFromEditor(n);if(r&&r.hasExtensionByName(dN.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&PN(320,o);return!0}return!1})(e)?null:v.jsx(MN,{editor:e,ErrorBoundary:t})}function $g(e){return e.getEditorState().read(f1(e.isComposing()))}function LN({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=mt();return(function(o){mm(()=>dn(ON(o),gN(o)),[o])})(r),v.jsxs(v.Fragment,{children:[e,v.jsx(RN,{content:t}),v.jsx(IN,{editor:r,ErrorBoundary:n})]})}function RN({content:e}){const[t]=mt(),n=(function(o){const[i,s]=T.useState(()=>$g(o));return mm(()=>{function a(){const c=$g(o);s(c)}return a(),dn(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=q6();return n?typeof e=="function"?e(r):e:null}function DN(e,t,n,r,o){if(e===null||n.size===0&&r.size===0&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!($(i)&&$(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const a=(function(y,b,x){const w=y._nodeMap,A=[];for(const E of b){const S=w.get(E);S!==void 0&&A.push(S)}for(const[E,S]of x){if(!S)continue;const _=w.get(E);_===void 0||Ye(_)||A.push(_)}return A})(t,n,r);if(a.length===0)return 0;if(a.length>1){const y=t._nodeMap,b=y.get(i.anchor.key),x=y.get(s.anchor.key);return b&&x&&!e._nodeMap.has(b.__key)&&X(b)&&b.__text.length===1&&i.anchor.offset===1?2:0}const c=a[0],l=e._nodeMap.get(c.__key);if(!X(l)||!X(c)||l.__mode!==c.__mode)return 0;const f=l.__text,u=c.__text;if(f===u)return 0;const d=i.anchor,m=s.anchor;if(d.key!==m.key||d.type!=="text")return 0;const h=d.offset,g=m.offset,p=u.length-f.length;return p===1&&g===h-1?2:p===-1&&g===h+1?3:p===-1&&g===h?4:0}function FN(e,t){let n=Date.now(),r=0;return(o,i,s,a,c,l)=>{const f=Date.now();if(l.has(Mu))return r=0,n=f,2;const u=DN(o,i,a,c,e.isComposing()),d=(()=>{const m=s===null||s.editor===e,h=l.has(VT);if(!h&&m&&l.has(vo))return 0;if(o===null)return 1;const g=i._selection;if(!(a.size>0||c.size>0))return g!==null?0:2;const p=typeof t=="number"?t:t.peek();return h===!1&&u!==0&&u===r&&f<n+p&&m||a.size===1&&(function(y,b,x){const w=b._nodeMap.get(y),A=x._nodeMap.get(y),E=b._selection,S=x._selection;return!($(E)&&$(S)&&E.anchor.type==="element"&&E.focus.type==="element"&&S.anchor.type==="text"&&S.focus.type==="text"||!X(w)||!X(A)||w.__parent!==A.__parent)&&JSON.stringify(b.read(()=>w.exportJSON()))===JSON.stringify(x.read(()=>A.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=f,r=u,d}}function Bg(e){e.undoStack=[],e.redoStack=[],e.current=null}function b1(e,t,n){const r=FN(e,n);return dn(e.registerCommand(jd,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(c.length!==0){const l=s.current,f=c.pop();l!==null&&(a.push(l),i.dispatchCommand(ka,!0)),c.length===0&&i.dispatchCommand(Ta,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:Mu})}})(e,t),!0),Ae),e.registerCommand(zd,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(a.length!==0){const l=s.current;l!==null&&(c.push(l),i.dispatchCommand(Ta,!0));const f=a.pop();a.length===0&&i.dispatchCommand(ka,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:Mu})}})(e,t),!0),Ae),e.registerCommand(DT,()=>(Bg(t),!1),Ae),e.registerCommand(FT,()=>(Bg(t),e.dispatchCommand(ka,!1),e.dispatchCommand(Ta,!1),!0),Ae),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:l})=>{const f=t.current,u=t.redoStack,d=t.undoStack,m=f===null?null:f.editorState;if(f!==null&&i===m)return;const h=r(s,i,f,a,c,l);if(h===1)u.length!==0&&(t.redoStack=[],e.dispatchCommand(ka,!1)),f!==null&&(d.push({...f}),e.dispatchCommand(Ta,!0));else if(h===2)return;t.current={editor:e,editorState:i}}))}function v1(){return{current:null,redoStack:[],undoStack:[]}}const uf={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>s1({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:v1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return Us(()=>r.disabled.value?void 0:b1(e,r.historyState.value,r.delay))}};$6(uf,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function jN({delay:e,externalHistoryState:t}){const[n]=mt();return(function(r,o,i=1e3){const s=T.useMemo(()=>o||v1(),[o]);T.useEffect(()=>b1(r,s,i),[i,r,s])})(n,t,e),null}const x1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function zN({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:f,ariaOwns:u,ariaRequired:d,autoCapitalize:m,className:h,id:g,role:p="textbox",spellCheck:y=!0,style:b,tabIndex:x,"data-testid":w,...A},E){const[S,_]=T.useState(e.isEditable()),N=T.useCallback(I=>{I&&I.ownerDocument&&I.ownerDocument.defaultView?e.setRootElement(I):e.setRootElement(null)},[e]),P=T.useMemo(()=>(function(...I){return W=>{for(const j of I)typeof j=="function"?j(W):j!=null&&(j.current=W)}})(E,N),[N,E]);return x1(()=>(_(e.isEditable()),e.registerEditableListener(I=>{_(I)})),[e]),v.jsx("div",{"aria-activedescendant":S?t:void 0,"aria-autocomplete":S?n:"none","aria-controls":S?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":S&&p==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":c,"aria-labelledby":l,"aria-multiline":f,"aria-owns":S?u:void 0,"aria-readonly":!S||void 0,"aria-required":d,autoCapitalize:m,className:h,contentEditable:S,"data-testid":w,id:g,ref:P,role:p,spellCheck:y,style:b,tabIndex:x,...A})}const $N=T.forwardRef(zN);function Ug(e){return e.getEditorState().read(f1(e.isComposing()))}const BN=T.forwardRef(UN);function UN(e,t){const{placeholder:n,...r}=e,[o]=mt();return v.jsxs(v.Fragment,{children:[v.jsx($N,{editor:o,...r,ref:t}),n!=null&&v.jsx(WN,{editor:o,content:n})]})}function WN({content:e,editor:t}){const n=(function(s){const[a,c]=T.useState(()=>Ug(s));return x1(()=>{function l(){const f=Ug(s);c(f)}return l(),dn(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),a})(t),[r,o]=T.useState(t.isEditable());if(T.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(s=>{o(s)})),[t]),!n)return null;let i=null;return typeof e=="function"?i=e(r):e!==null&&(i=e),i===null?null:v.jsx("div",{"aria-hidden":!0,children:i})}const KN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function HN({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=mt();return KN(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:c})=>{t&&i.size===0&&s.size===0||e&&c.has(vo)||a.isEmpty()||n(o,r,c)})},[r,e,t,n]),null}const qN=T.createContext(null),df={didCatch:!1,error:null};class VN extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=df}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,o;const{error:n}=this.state;n!==null&&((o=(r=this.props).onReset)==null||o.call(r,{args:t,reason:"imperative-api"}),this.setState(df))}componentDidCatch(t,n){var r,o;(o=(r=this.props).onError)==null||o.call(r,t,n)}componentDidUpdate(t,n){var i,s;const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&YN(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(df))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(c);else if(r)a=T.createElement(r,c);else if(o!==void 0)a=o;else throw s}return T.createElement(qN.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function YN(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function QN({children:e,onError:t}){return v.jsx(VN,{fallback:v.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const GN={paragraph:"cnf:m-0",list:{ol:"cnf:list-decimal cnf:pl-4",ul:"cnf:list-disc cnf:pl-4"},text:{bold:"cnf:font-semibold",italic:"cnf:italic",underline:"cnf:underline",strikethrough:"cnf:line-through",code:"cnf:font-mono"},link:"cnf:text-blue-600 cnf:hover:text-blue-600 cnf:underline cnf:cursor-pointer"};function Or(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ku(e){let t=1,n=e.getParent();for(;n!=null;){if(ke(n)){const r=n.getParent();if(ve(r)){t++,n=r.getParent();continue}Or(40)}return t}return t}function Hu(e){let t=e.getParent();ve(t)||Or(40);let n=t;for(;n!==null;)n=n.getParent(),ve(n)&&(t=n);return t}function w1(e){let t=[];const n=e.getChildren().filter(ke);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();ve(i)?t=t.concat(w1(i)):t.push(o)}return t}function Cn(e){return ke(e)&&ve(e.getFirstChild())}function Wg(e){return Jt().append(e)}function A1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Kg(e){const t=Z();if(t!==null){let n=t.getNodes();if($(t)){const o=t.getStartEndPoints();o===null&&Or(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const c=s.getFirstChild();if(c)n=c.selectStart().getNodes();else{const l=Tt();s.append(l),n=l.select().getNodes()}}else if(A1(s,n)){const c=Ut(e);if(jt(a)){s.replace(c);const l=Jt();R(s)&&(l.setFormat(s.getFormatType()),l.setIndent(s.getIndent())),c.append(l)}else if(ke(s)){const l=s.getParentOrThrow();Bo(c,l.getChildren()),l.replace(c)}return}}const r=new Set;for(let o=0;o<n.length;o++){const i=n[o];if(R(i)&&i.isEmpty()&&!ke(i)&&!r.has(i.getKey())){Hg(i,e);continue}let s=Ox(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(ve(s)){if(!r.has(a)){const c=Ut(e);Bo(c,s.getChildren()),s.replace(c),r.add(a)}break}{const c=s.getParent();if(jt(c)&&!r.has(a)){r.add(a),Hg(s,e);break}s=c}}}}}function Bo(e,t){e.splice(e.getChildrenSize(),0,t)}function Hg(e,t){if(ve(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Jt();let i;if(Bo(o,e.getChildren()),ve(n)&&t===n.getListType())n.append(o),ve(r)&&t===r.getListType()&&(Bo(n,r.getChildren()),r.remove()),i=n;else if(ve(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Ut(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function hm(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Cn(n)&&Cn(r)&&(hm(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function ZN(){const e=Z();if($(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(A1(r,n))t.add(Hu(r));else for(let o=0;o<n.length;o++){const i=n[o];if(Ox(i)){const s=J6(i,rs);s!=null&&t.add(Hu(s))}}for(const o of t){let i=o;const s=w1(o);for(const a of s){const c=Tt().setTextStyle(e.style).setTextFormat(e.format);Bo(c,a.getChildren()),i.insertAfter(c),i=c,a.__key===e.anchor.key&&$o(e.anchor,Qt(un(c,"next"))),a.__key===e.focus.key&&$o(e.focus,Qt(un(c,"next"))),a.remove()}o.remove()}}}function C1(e){const t=e.getListType()!=="check";let n=e.getStart();for(const r of e.getChildren())ke(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),ve(r.getFirstChild())||n++)}function JN(e){const t=new Set;if(Cn(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(Cn(r)&&Cn(o)){const i=o.getFirstChild();if(ve(i)){i.append(e);const s=r.getFirstChild();ve(s)&&(Bo(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(Cn(r)){const i=r.getFirstChild();if(ve(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(Cn(o)){const i=o.getFirstChild();ve(i)&&i.append(e)}else if(ve(n)){const i=Jt().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Ut(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(e),o?o.insertAfter(i):r?r.insertBefore(i):n.append(i)}}function XN(e){if(Cn(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(ve(n?n.getParent():void 0)&&ke(n)&&ve(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const i=t.getListType(),s=Jt(),a=Ut(i);s.append(a),e.getPreviousSiblings().forEach(f=>a.append(f));const c=Jt(),l=Ut(i);c.append(l),Bo(l,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(c),n.replace(e)}}}function e5(){const e=Z();if(!$(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Hu(t),r=t.getParent();ve(r)||Or(40);const o=r.getParent();let i;if(jt(o))i=Tt(),n.insertAfter(i);else{if(!ke(o))return!1;i=Jt(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const a=Ut(r.getListType());if(ke(i)){const c=Jt();c.append(a),i.insertAfter(c)}else i.insertAfter(a);a.append(...s)}return(function(a){let c=a;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const l=c.getParent();if(l==null||!ke(l)&&!ve(l))break;c=l}c.remove()})(t),!0}function Ec(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}class rs extends In{constructor(n=1,r=void 0,o){super(o);D(this,"__value");D(this,"__checked");this.__value=n===void 0?1:n,this.__checked=r}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const r=n.getParent();ve(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:In,importDOM:{li:()=>({conversion:t5,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const r=document.createElement("li");return this.updateListItemDOM(null,r,n),r}updateListItemDOM(n,r,o){(function(a,c,l){const f=c.getParent();!ve(f)||f.getListType()!=="check"||ve(c.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),l&&c.__checked===l.__checked||a.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,c,l){const f=[],u=[],d=c.list,m=d?d.listitem:void 0;let h;if(d&&d.nested&&(h=d.nested.listitem),m!==void 0&&f.push(...Ec(m)),d){const g=l.getParent(),p=ve(g)&&g.getListType()==="check",y=l.getChecked();p&&!y||u.push(d.listitemUnchecked),p&&y||u.push(d.listitemChecked),p&&f.push(y?d.listitemChecked:d.listitemUnchecked)}if(h!==void 0){const g=Ec(h);l.getChildren().some(p=>ve(p))?f.push(...g):u.push(...g)}u.length>0&&n1(a,...u),f.length>0&&fm(a,...f)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,c,l){const f=xg(c.__textStyle);for(const u in f)a.style.setProperty(`--listitem-marker-${u}`,f[u]);if(l)for(const u in xg(l.__textStyle))u in f||a.style.removeProperty(`--listitem-marker-${u}`)})(r,this,n)}updateDOM(n,r,o){const i=r;return this.updateListItemDOM(n,i,o),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const r=this.createDOM(n._config),o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let r=0;r<n.length;r++){const o=n[r];if(R(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(n,r){if(ke(n))return super.replace(n);this.setIndent(0);const o=this.getParentOrThrow();if(!ve(o))return n;if(o.__first===this.getKey())o.insertBefore(n);else if(o.__last===this.getKey())o.insertAfter(n);else{const i=Ut(o.getListType());let s=this.getNextSibling();for(;s;){const a=s;s=s.getNextSibling(),i.append(a)}o.insertAfter(n),n.insertAfter(i)}return r&&(R(n)||Or(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),n}insertAfter(n,r=!0){const o=this.getParentOrThrow();if(ve(o)||Or(39),ke(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Ut(o.getListType());i.forEach(a=>s.append(a)),n.insertAfter(s,r)}return n}remove(n){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(n),r&&o&&Cn(r)&&Cn(o)&&(hm(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=Jt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(n){const r=Tt();this.getChildren().forEach(a=>r.append(a));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=ke(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const a=n.anchor,c=n.focus,l=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(l,a.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(l,c.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const r=this.getWritable();return r.__value=n,r}getChecked(){const n=this.getLatest();let r;const o=this.getParent();return ve(o)&&(r=o.getListType()),r==="check"?!!n.__checked:void 0}setChecked(n){const r=this.getWritable();return r.__checked=n,r}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let r=n.getParentOrThrow(),o=0;for(;ke(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(n){typeof n!="number"&&Or(117),(n=Math.floor(n))>=0||Or(199);let r=this.getIndent();for(;r!==n;)r<n?(JN(this),r++):(XN(this),r--);return this}canInsertAfter(n){return ke(n)}canReplaceWith(n){return ke(n)}canMergeWith(n){return ke(n)||Vd(n)}extractWithChild(n,r){if(!$(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ut("bullet")}canMergeWhenEmpty(){return!0}}function t5(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return qg(n)}if(e.classList.contains("joplin-checkbox")){for(const n of e.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return qg(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Jt(t==="true"||t!=="false"&&void 0)}}function qg(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Jt(e.hasAttribute("checked"))}}function Jt(e){return Hr(new rs(void 0,e))}function ke(e){return e instanceof rs}class la extends In{constructor(n="number",r=1,o){super(o);D(this,"__tag");D(this,"__start");D(this,"__listType");const i=r5[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:n=>{(function(r){const o=r.getNextSibling();ve(o)&&r.getListType()===o.getListType()&&hm(r,o)})(n),C1(n)},extends:In,importDOM:{ol:()=>({conversion:Yg,priority:0}),ul:()=>({conversion:Yg,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const r=this.getWritable();return r.__listType=n,r.__tag=n==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const r=this.getWritable();return r.__start=n,r}createDOM(n,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,Vg(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Vg(r,o.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const r=this.createDOM(n._config,n);return ht(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,r,o){let i=o;for(let s=0;s<o.length;s++){const a=o[s];ke(a)||(i===o&&(i=[...o]),i[s]=Jt().append(!R(a)||ve(a)||a.isInline()?a:rt(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function Vg(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=Ku(n)-1,c=a%s.length,l=s[c],f=i[n.__tag];let u;const d=i.nested,m=i.checklist;if(d!==void 0&&d.list&&(u=d.list),f!==void 0&&r.push(f),m!==void 0&&n.__listType==="check"&&r.push(m),l!==void 0){r.push(...Ec(l));for(let h=0;h<s.length;h++)h!==c&&o.push(n.__tag+h)}if(u!==void 0){const h=Ec(u);a>1?r.push(...h):o.push(...h)}}o.length>0&&n1(e,...o),r.length>0&&fm(e,...r)}function n5(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(ke(r)){t.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{ve(i)&&t.push(Wg(i))})}else t.push(Wg(r))}return t}function Yg(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Ut("number",e.start):t==="ul"&&(n=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const o of r.childNodes)if(ht(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Ut("check"):Ut("bullet")),{after:n5,node:n}}const r5={ol:"number",ul:"bullet"};function Ut(e="number",t=1){return Hr(new la(e,t))}function ve(e){return e instanceof la}const o5=me("UPDATE_LIST_START_COMMAND"),_1=me("INSERT_UNORDERED_LIST_COMMAND"),E1=me("INSERT_ORDERED_LIST_COMMAND"),qu=me("REMOVE_LIST_COMMAND");function i5(e){return dn(e.registerCommand(E1,()=>(Kg("number"),!0),Jn),e.registerCommand(o5,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!ve(o)&&(o.getListType()==="number"&&(o.setStart(r),C1(o)),!0)},Jn),e.registerCommand(_1,()=>(Kg("bullet"),!0),Jn),e.registerCommand(qu,()=>(ZN(),!0),Jn),e.registerCommand(Ds,()=>e5(),Jn),e.registerNodeTransform(rs,t=>{const n=t.getFirstChild();if(n){if(X(n)){const r=n.getStyle(),o=n.getFormat();t.getTextStyle()!==r&&t.setTextStyle(r),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{const r=Z();$(r)&&(r.style!==t.getTextStyle()||r.format!==t.getTextFormat())&&r.isCollapsed()&&t.is(r.anchor.getNode())&&t.setTextStyle(r.style).setTextFormat(r.format)}}),e.registerNodeTransform(Wr,t=>{const n=t.getParent();if(ke(n)&&t.is(n.getFirstChild())){const r=t.getStyle(),o=t.getFormat();r===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(r).setTextFormat(o)}}))}function s5(e){const t=n=>{const r=n.getParent();if(ve(n.getFirstChild())||!ve(r))return;const o=at(n,i=>ke(i)&&ve(i.getParent())&&ke(i.getPreviousSibling()));if(o===null&&n.getIndent()>0)n.setIndent(0);else if(ke(o)){const i=o.getPreviousSibling();if(ke(i)){const s=(function(c){let l=c,f=l.getFirstChild();for(;ve(f);){const u=f.getLastChild();if(!ke(u))break;l=u,f=l.getFirstChild()}return l})(i),a=s.getParent();if(ve(a)){const c=Ku(a);c+1<Ku(r)&&n.setIndent(c)}}}};return e.registerNodeTransform(la,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(ve(o)){for(const i of o.getChildren())if(ke(i)){t(i);const s=i.getFirstChild();ve(s)&&r.push(s)}}}})}const a5=new Set(["http:","https:","mailto:","sms:","tel:"]);class qo extends In{constructor(n="",r={},o){super(o);D(this,"__url");D(this,"__target");D(this,"__rel");D(this,"__title");const{target:i=null,rel:s=null,title:a=null}=r;this.__url=n,this.__target=i,this.__rel=s,this.__title=a}static getType(){return"link"}static clone(n){return new qo(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const r=document.createElement("a");return this.updateLinkDOM(null,r,n),fm(r,n.theme.link),r}updateLinkDOM(n,r,o){if(zx(r)){n&&n.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,a=this[s];n&&n[s]===a||(a?r[i]=a:r.removeAttribute(i))}}}updateDOM(n,r,o){return this.updateLinkDOM(n,r,o),!1}static importDOM(){return{a:n=>({conversion:c5,priority:1})}}static importJSON(n){return Co().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=Zg(n);try{const r=new URL(Zg(n));if(!a5.has(r.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const r=this.getWritable();return r.__url=n,r}getTarget(){return this.getLatest().__target}setTarget(n){const r=this.getWritable();return r.__target=n,r}getRel(){return this.getLatest().__rel}setRel(n){const r=this.getWritable();return r.__rel=n,r}getTitle(){return this.getLatest().__title}setTitle(n){const r=this.getWritable();return r.__title=n,r}insertNewAfter(n,r=!0){const o=Co(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(o,r),o}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,r,o){if(!$(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function c5(e){let t=null;if(zx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=Co(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Co(e="",t){return Hr(new qo(e,t))}function ft(e){return e instanceof qo}class cl extends qo{constructor(n="",r={},o){super(n,r,o);D(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(n){return new cl(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const r=this.getWritable();return r.__isUnlinked=n,r}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,r,o){return super.updateDOM(n,r,o)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Qg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,r=!0){const o=this.getParentOrThrow().insertNewAfter(n,r);if(R(o)){const i=Qg(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function Qg(e="",t){return Hr(new cl(e,t))}function so(e){return e instanceof cl}const Ui=me("TOGGLE_LINK_COMMAND");function Gg(e,t){if(e.type==="element"){const n=e.getNode();return R(n)||(function(r,...o){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",r);for(const a of o)s.append("v",a);throw i.search=s.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),n.getChildren()[e.offset+t]||null}return null}function mf(e,t={}){let n;if(e&&typeof e=="object"){const{url:f,...u}=e;n=f,t={...u,...t}}else n=e;const{target:r,title:o}=t,i=t.rel===void 0?"noreferrer":t.rel,s=Z();if(s===null||!$(s)&&!ot(s))return;if(ot(s)){const f=s.getNodes();return f.length===0?void 0:void f.forEach(u=>{if(n===null){const d=at(u,m=>!so(m)&&ft(m));d&&(d.insertBefore(u),d.getChildren().length===0&&d.remove())}else{const d=at(u,m=>!so(m)&&ft(m));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const m=Co(n,{rel:i,target:r});u.insertBefore(m),m.append(u)}}})}const a=s.extract();if(n===null){const f=new Set;return void a.forEach(u=>{const d=u.getParent();if(ft(d)&&!so(d)){const m=d.getKey();if(f.has(m))return;(function(h,g){const p=new Set(g.filter(S=>h.isParentOf(S)).map(S=>S.getKey())),y=h.getChildren(),b=y.filter(S=>p.has(S.getKey()));if(b.length===y.length)return y.forEach(S=>h.insertBefore(S)),void h.remove();const x=y.findIndex(S=>p.has(S.getKey())),w=y.findLastIndex(S=>p.has(S.getKey())),A=x===0,E=w===y.length-1;if(A)b.forEach(S=>h.insertBefore(S));else if(E)for(let S=b.length-1;S>=0;S--)h.insertAfter(b[S]);else{for(let _=b.length-1;_>=0;_--)h.insertAfter(b[_]);const S=y.slice(w+1);if(S.length>0){const _=Co(h.getURL(),{rel:h.getRel(),target:h.getTarget(),title:h.getTitle()});b[b.length-1].insertAfter(_),S.forEach(N=>_.append(N))}}})(d,a),f.add(m)}})}const c=new Set,l=f=>{c.has(f.getKey())||(c.add(f.getKey()),f.setURL(n),r!==void 0&&f.setTarget(r),i!==void 0&&f.setRel(i),o!==void 0&&f.setTitle(o))};if(a.length===1){const f=a[0],u=at(f,ft);if(u!==null)return l(u)}(function(f){const u=Z();if(!$(u))return f();const d=Fi(u),m=d.isBackward(),h=Gg(d.anchor,m?-1:0),g=Gg(d.focus,m?0:-1);if(f(),h||g){const p=Z();if($(p)){const y=p.clone();if(h){const b=h.getParent();b&&y.anchor.set(b.getKey(),h.getIndexWithinParent()+(m?1:0),"element")}if(g){const b=g.getParent();b&&y.focus.set(b.getKey(),g.getIndexWithinParent()+(m?0:1),"element")}Pt(Fi(y))}}})(()=>{let f=null;for(const u of a){if(!u.isAttached())continue;const d=at(u,ft);if(d){l(d);continue}if(R(u)){if(!u.isInline())continue;if(ft(u)){if(!(so(u)||f!==null&&f.getParentOrThrow().isParentOf(u))){l(u),f=u;continue}for(const h of u.getChildren())u.insertBefore(h);u.remove();continue}}const m=u.getPreviousSibling();ft(m)&&m.is(f)?m.append(u):(f=Co(n,{rel:i,target:r,title:o}),u.insertAfter(f),f.append(u))}})}const l5=/^\+?[0-9\s()-]{5,}$/;function Zg(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:l5.test(e)?`tel:${e}`:`https://${e}`}function f5(e,t){return dn(Us(()=>e.registerCommand(Ui,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return mf(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(mf(n,o),!0);{const{url:i,target:s,rel:a,title:c}=n;return mf(i,{...o,rel:a,target:s,title:c}),!0}},Jn)),Us(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Xc,o=>{const i=Z();if(!$(i)||i.isCollapsed()||!Nr(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand(Ui,{...r,url:s}),o.preventDefault(),!0)},Jn)}))}function u5({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=mt(),[a,c]=T.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[l,f]=T.useState(null),u=T.useRef(null),d=T.useRef(null),m=pm[e];T.useLayoutEffect(()=>s.registerUpdateListener(({editorState:b})=>{b.read(()=>{const x=Z();if(!$(x))return;c({bold:x.hasFormat("bold"),italic:x.hasFormat("italic"),underline:x.hasFormat("underline"),strikethrough:x.hasFormat("strikethrough"),code:x.hasFormat("code")});let w=x.anchor.getNode(),A=null;for(;w;){if(ve(w)){const E=w.getListType();A=E==="bullet"||E==="number"?E:null;break}if(ke(w)){w=w.getParent();continue}w=w.getParent()}f(A)})}),[s]);const h=b=>{s.dispatchCommand(Sn,b)},g=()=>{l!=="bullet"?s.dispatchCommand(_1,void 0):s.dispatchCommand(qu,void 0)},p=()=>{l!=="number"?s.dispatchCommand(E1,void 0):s.dispatchCommand(qu,void 0)},y=()=>{s.update(()=>{const b=Z();if(!$(b))return;["bold","italic","underline","strikethrough","code"].forEach(w=>{b.hasFormat(w)&&s.dispatchCommand(Sn,w)})})};return v.jsxs("div",{className:xe("cnf:flex cnf:items-center cnf:w-full",r?"cnf:justify-between":"cnf:justify-end"),children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-1",children:[v.jsx(hu,{placement:"top-start",minWidth:"fit-content",title:"text formatting menu",trigger:v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",children:v.jsx(Ce,{icon:BS})}),children:v.jsxs("ul",{className:"cnf:flex cnf:items-start cnf:flex-col",children:[v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Bold",onClick:()=>h("bold"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.bold?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:IS,className:"cnf:mr-2"}),"Bold"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Italic",onClick:()=>h("italic"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.italic?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:DS,className:"cnf:mr-2"}),"Italic"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Underline",onClick:()=>h("underline"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.underline?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:MS,className:"cnf:mr-2"}),"Underline"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>h("strikethrough"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.strikethrough?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:PS,className:"cnf:mr-2"}),"Strikethrough"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Monospace",onClick:()=>h("code"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.code?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:jS,className:"cnf:mr-2"}),"Monospace"]})}),v.jsx("hr",{className:"cnf:w-full cnf:border-gray-200"}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:"cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:text-gray-400 cnf:hover:text-gray-400 cnf:hover:bg-gray-100",children:[v.jsx(Ce,{icon:RS,className:"cnf:mr-2"}),"Clear formatting"]})})]})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:g,children:v.jsx(Ce,{icon:US})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:p,children:v.jsx(Ce,{icon:FS})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(Ui,"https://")},children:v.jsx(Ce,{icon:$S})}),i&&v.jsxs(v.Fragment,{children:[v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"cnf:border-l-1 cnf:border-gray-200 cnf:rounded-none",onClick:()=>{var b;(b=u.current)==null||b.click()},children:v.jsx(Ce,{icon:LS})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var b;(b=d.current)==null||b.click()},children:v.jsx(Ce,{icon:zS})})]}),n&&v.jsx(hu,{placement:"top-end",title:"comment type menu",trigger:v.jsx(je,{category:"link",size:"smallCollapse",className:`${m.iconColor} cnf:border-l-1 cnf:border-gray-200 cnf:rounded-none`,children:v.jsx(Ce,{icon:m.icon})}),children:v.jsx("ul",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:gap-2 cnf:p-3",children:k1.map(b=>v.jsx("li",{children:v.jsx(je,{category:"link",size:"none",title:b.title,className:xe(b.color,e===b.type?b.color:"cnf:text-gray-400"),onClick:()=>t==null?void 0:t(b.type),children:v.jsx(Ce,{icon:b.icon})})},b.type))})})]}),r,v.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:u,accept:"image/*",onChange:b=>{const x=b.target.files;x&&(i==null||i(x))}}),v.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:d,accept:"*",onChange:b=>{const x=b.target.files;x&&(i==null||i(x))}})]})}function d5({hasStrictIndent:e=!1}){const[t]=mt();return T.useEffect(()=>{if(!t.hasNodes([la,rs]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),T.useEffect(()=>{if(e)return s5(t)},[t,e]),(function(n){T.useEffect(()=>i5(n),[n])})(t),null}function m5({validateUrl:e,attributes:t}){const[n]=mt();return T.useEffect(()=>{if(!n.hasNodes([qo]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),T.useEffect(()=>f5(n,s1({attributes:t,validateUrl:e})),[n,e,t]),null}const h5=new Set(["http:","https:","mailto:","sms:","tel:"]);function Jg(e){try{const t=new URL(e);if(!h5.has(t.protocol))return"about:blank"}catch{return e}return e}function Xg(e,t,n,r=10,o=5){const i=n.parentElement;if(e===null||!i){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}const s=t.getBoundingClientRect(),a=n.getBoundingClientRect(),c=i.getBoundingClientRect();let l=e.top-r,f=e.left-o;l<c.top&&(l+=s.height+e.height+r*2),f+s.width>c.right&&(f=c.right-s.width-o),l-=a.top,f-=a.left,t.style.opacity="1",t.style.transform=`translate(${f}px, ${l}px)`}function Sc(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?Ag(n)?r:o:Ag(t)?r:o}function p5({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=T.useRef(null),[a,c]=T.useState(""),[l,f]=T.useState("https://"),[u,d]=T.useState(null),m=T.useCallback(()=>{var A,E;const p=Z();if($(p)){const S=Sc(p),_=at(S,ft);_?c(_.getURL()):ft(S)?c(S.getURL()):c(""),o&&f(a)}else if(ot(p)){const S=p.getNodes();if(S.length>0){const _=S[0],N=_.getParent();ft(N)?c(N.getURL()):ft(_)?c(_.getURL()):c(""),o&&f(a)}}const y=s.current,b=tn(e._window),x=document.activeElement;if(y===null)return;const w=e.getRootElement();if(p!==null&&w!==null&&e.isEditable()){let S;if(ot(p)){const _=p.getNodes();if(_.length>0){const N=e.getElementByKey(_[0].getKey());N&&(S=N.getBoundingClientRect())}}else b!==null&&w.contains(b.anchorNode)&&(S=(E=(A=b.focusNode)==null?void 0:A.parentElement)==null?void 0:E.getBoundingClientRect());S&&(S.y+=40,Xg(S,y,r)),d(p)}else(!x||x.className!=="link-input")&&(w!==null&&Xg(null,y,r),d(null),i(!1),c(""));return!0},[r,e,i,o,a]);T.useEffect(()=>{const p=r.parentElement,y=()=>{e.getEditorState().read(()=>{m()})};return window.addEventListener("resize",y),p&&p.addEventListener("scroll",y),()=>{window.removeEventListener("resize",y),p&&p.removeEventListener("scroll",y)}},[r.parentElement,e,m]),T.useEffect(()=>dn(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{m()})}),e.registerCommand(Jc,()=>(m(),!0),Jn),e.registerCommand($d,()=>t?(n(!1),!0):!1,m6)),[e,m,n,t]),T.useEffect(()=>{e.getEditorState().read(()=>{m()})},[e,m]),T.useEffect(()=>{const p=s.current;if(p===null)return;const y=b=>{!p.contains(b.relatedTarget)&&t&&(n(!1),i(!1))};return p.addEventListener("focusout",y),()=>{p.removeEventListener("focusout",y)}},[n,i,t]);const h=p=>{p.key==="Enter"?g(p):p.key==="Escape"&&(p.preventDefault(),i(!1))},g=p=>{p.preventDefault(),u!==null&&(a!==""&&e.update(()=>{e.dispatchCommand(Ui,Jg(l));const y=Z();if($(y)){const b=Sc(y).getParent();if(so(b)){const x=Co(b.getURL(),{rel:b.__rel,target:b.__target,title:b.__title});b.replace(x,!0)}}}),f("https://"),i(!1))};return v.jsx("div",{ref:s,className:"cnf:absolute cnf:flex cnf:top-0 cnf:left-0 cnf:shadow-lg cnf:bg-white cnf:z-10 cnf:rounded-sm cnf:w-full cnf:max-w-400",children:t?o?v.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[v.jsx(Fy,{containerClassName:"cnf:px-0 cnf:mr-2",autoFocus:!0,className:"cnf:mt-0",value:l,onChange:p=>{f(p.target.value)},onKeyDown:p=>{h(p)}}),v.jsxs("div",{className:"cnf:flex cnf:justify-center cnf:items-center cnf:gap-4",children:[v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>{i(!1)},children:v.jsx(Ce,{icon:zc})}),v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:g,children:v.jsx(Ce,{icon:Vy})})]})]}):v.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[v.jsx("a",{href:Jg(a),target:"_blank",rel:"noopener noreferrer",children:a}),v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-4",children:[v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>{f(a),i(!0)},children:v.jsx(Ce,{icon:i_})}),v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>e.dispatchCommand(Ui,null),children:v.jsx(Ce,{icon:g_})})]})]}):null})}function g5(e,t,n,r){const[o,i]=T.useState(e),[s,a]=T.useState(!1);return T.useEffect(()=>{function c(){const l=Z();if($(l)){const f=Sc(l),u=at(f,ft),d=at(f,so);if(!(u||d)){a(!1);return}const m=l.getNodes().filter(h=>!xo(h)).find(h=>{const g=at(h,ft),p=at(h,so);return u&&!u.is(g)||g&&!g.is(u)||d&&!d.is(p)||p&&(!p.is(d)||p.getIsUnlinked())});a(!m)}else if(ot(l)){const f=l.getNodes();if(f.length===0){a(!1);return}const u=f[0],d=u.getParent();ft(d)||ft(u)?a(!0):a(!1)}}return dn(e.registerUpdateListener(({editorState:l})=>{l.read(()=>{c()})}),e.registerCommand(Jc,(l,f)=>(c(),i(f),!1),Cx),e.registerCommand(Fd,l=>{const f=Z();if($(f)){const u=Sc(f),d=at(u,ft);if(ft(d)&&(l.metaKey||l.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Jn))},[e]),Wt.createPortal(v.jsx(p5,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function y5({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=mt();return g5(r,e,t,n)}const b5=({url:e,onDelete:t})=>v.jsxs("div",{className:"cnf:relative",children:[v.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"cnf:w-[75px] cnf:h-[75px] cnf:object-cover cnf:rounded-lg cnf:border cnf:border-gray-200"}),v.jsx(je,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",color:"secondary",children:v.jsx(Ce,{icon:qy})})]}),v5=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=Ub(r);return v.jsxs("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center cnf:rounded cnf:border cnf:border-gray-200",children:[v.jsx(je,{size:"smallCollapse",color:"secondary",className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",title:"Remove file",onClick:e,children:v.jsx(Ce,{icon:qy})}),v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-center cnf:mx-2",children:[v.jsx("span",{className:"cnf:text-primary-600 cnf:my-2",children:v.jsx(Ce,{icon:o,size:"3x",className:"cnf:text-primary-600"})}),v.jsx("span",{className:"cnf:font-bold cnf:p-2",children:n})]})]})},x5=({clearKey:e})=>{const[t]=mt(),n=T.useRef(e);return T.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},w5=({isOpen:e})=>{const[t]=mt(),n=T.useRef(!1);return T.useEffect(()=>{if(!e){n.current=!1;return}if(n.current)return;const r=()=>{const o=t.getRootElement();if(!o){requestAnimationFrame(r);return}n.current=!0;const i=window.scrollX,s=window.scrollY;try{o.focus({preventScroll:!0})}catch{o.focus()}requestAnimationFrame(()=>window.scrollTo(i,s)),setTimeout(()=>window.scrollTo(i,s),0)};r()},[t,e]),null},A5=({initialValue:e})=>{const[t]=mt(),n=T.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return u1(o,a)},[]),r=T.useRef(!1);return T.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),gx(n(t,e))}),r.current=!0)},[t,e,n]),null},C5=({onChange:e})=>{const[t]=mt();return v.jsx(HN,{onChange:n=>{n.read(()=>{const r=d1(t,null);e(r)})}})},_5=({onAddAttachments:e})=>{const[t]=mt();return T.useEffect(()=>{if(!e)return;const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.clipboardData;if(!i)return;const s=i.items;let a=!1;for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){a=!0;break}}if(a){for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){const f=l.getAsFile();if(f){const u=Date.now(),d=f.type.split("/")[1]||"png",m=`image_${u}.${d}`,h=new File([f],m,{type:f.type});e==null||e([h])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},E5=({onSubmit:e})=>{const[t]=mt();return T.useEffect(()=>{if(e)return t.registerCommand(zs,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null},S5=({setIsLinkEditMode:e})=>{const[t]=mt();return T.useEffect(()=>{const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.metaKey||o.ctrlKey,s=o.key==="k"||o.key==="K";i&&s&&t.getEditorState().read(()=>{const a=Z();$(a)&&!a.isCollapsed()&&(o.preventDefault(),e(!0),t.dispatchCommand(Ui,"https://"))})};return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}},[t,e]),null};function S1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c=!0,actions:l,onAddAttachments:f,onRemoveAttachment:u,onSubmit:d,isOpen:m}){const h={namespace:"comment-editor",theme:GN,nodes:[la,rs,qo],onError:A=>{console.error(A)}},[g,p]=T.useState(null),[y,b]=T.useState(!1),x=A=>{A!==null&&p(A)},w=pm[s];return v.jsx("div",{className:r,children:v.jsxs(W6,{initialConfig:h,children:[v.jsxs("div",{className:"cnf:relative",children:[v.jsx(LN,{contentEditable:v.jsx("div",{ref:x,children:v.jsx(BN,{className:xe("cnf:p-3 cnf:outline-none cnf:border-0 cnf:w-full cnf:border-t cnf:border-gray-200 cnf:rounded-none cnf:border-l-3",w.bg,w.border,w.fontColor,n)})}),placeholder:v.jsx("div",{className:"cnf:absolute cnf:top-3 cnf:left-4 cnf:text-gray-400 cnf:pointer-events-none",children:"Type comment…"}),ErrorBoundary:QN}),v.jsx(d5,{}),v.jsx(m5,{}),g&&v.jsx(y5,{anchorElem:g,isLinkEditMode:y,setIsLinkEditMode:b}),v.jsx(jN,{}),v.jsx(A5,{initialValue:o}),v.jsx(C5,{onChange:i}),v.jsx(E5,{onSubmit:d}),v.jsx(S5,{setIsLinkEditMode:b}),v.jsx(x5,{clearKey:t}),v.jsx(_5,{onAddAttachments:f}),v.jsx(w5,{isOpen:m})]}),e&&e.length>0&&v.jsx("div",{className:"cnf:flex cnf:flex-wrap cnf:justify-start cnf:gap-2 cnf:p-4",children:e.map(A=>xd(A.type)?v.jsx(b5,{url:A.url,onDelete:()=>u==null?void 0:u(A.originFile)},A.originFile.name):v.jsx(v5,{type:A.type,label:A.name,onRemoveFile:()=>u==null?void 0:u(A.originFile)},A.originFile.name))}),v.jsx("div",{className:"cnf:border-t cnf:border-gray-200 cnf:p-2 cnf:flex cnf:justify-end",children:v.jsx(u5,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c,actions:l,setIsLinkEditMode:b,onAddAttachments:f})})]})})}const k5=({asset:e,onSetActiveSrc:t})=>v.jsxs("div",{className:"cnf:relative cnf:border cnf:border-gray-200 cnf:rounded-md cnf:h-[110px] cnf:w-full cnf:hover:border-primary-500",children:[v.jsx("img",{src:Ka(e),onClick:()=>t(Ka(e)),onKeyDown:n=>{n.key==="Enter"&&t(Ka(e))},alt:e.name,className:"cnf:w-full cnf:h-full cnf:object-cover cnf:rounded-md cnf:object-center cnf:cursor-zoom-in"}),(e==null?void 0:e.uploading)&&v.jsx("div",{className:"cnf:absolute cnf:bottom-2 cnf:w-full cnf:max-w-md cnf:mx-auto cnf:px-2",children:v.jsx("div",{className:"cnf:relative cnf:h-2 cnf:overflow-hidden cnf:rounded-full cnf:bg-gray-200",children:v.jsx("div",{className:"cnf:absolute cnf:left-0 cnf:top-0 cnf:h-full cnf:w-1/3 cnf:rounded-full cnf:bg-blue-500 cnf:animate-progress"})})})]}),T5=({asset:e})=>{var r,o;const t=((o=(r=e==null?void 0:e.mimeType)==null?void 0:r.split("/").pop())==null?void 0:o.toLowerCase())||"",n=Ub(t);return v.jsxs("div",{className:"cnf:flex cnf:gap-2",children:[(e==null?void 0:e.uploading)&&v.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-center",children:v.jsx("div",{className:"cnf:h-4 cnf:w-4 cnf:rounded-full cnf:border-2 cnf:border-gray-300 cnf:border-t-blue-500 cnf:animate-spin"})}),v.jsx(Ce,{icon:n,size:"lg",className:"cnf:text-primary-600"}),v.jsx("a",{href:Ka(e),className:"cnf:text-sm cnf:text-blue-600 cnf:underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},N5=({commentType:e=dt.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:c,taskVerified:l})=>{const u={[dt.INFO]:{bg:"cnf:bg-primary-100",border:"cnf:border-primary-200",icon:Ky,iconColor:"cnf:text-primary-600 cnf:hover:text-primary-600",text:"cnf:text-primary-900"},[dt.WARNING]:{bg:"cnf:bg-warning-100",border:"cnf:border-warning-200",icon:$y,iconColor:"cnf:text-warning-600 cnf:hover:text-warning-600",text:"cnf:text-warning-900"},[dt.DANGER]:{bg:"cnf:bg-danger-100",border:"cnf:border-danger-200",icon:Yy,iconColor:"cnf:text-danger-600 cnf:hover:text-danger-600",text:"cnf:text-danger-900"},[dt.SUCCESS]:{bg:"cnf:bg-success-100",border:"cnf:border-success-200",icon:Uy,iconColor:"cnf:text-success-600 cnf:hover:text-success-600",text:"cnf:text-success-900"}}[e],d=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(o||"")).replace(",",""),[m,h]=T.useState(!1),[g,p]=T.useState(Ul(r)),[y,b]=T.useState(e),[x,w]=T.useState(""),A=()=>{h(!0)},E=()=>{const N=cu.sanitize(g);s(N,y),h(!1)},S=N=>{const P=cu.sanitize(g);b(N),s(P,N),h(!1)},_=()=>{h(!1)};return v.jsxs("div",{className:"cnf:flex cnf:items-start cnf:space-x-4 cnf:w-full",children:[v.jsx(X3,{alt:t}),v.jsxs("div",{className:"cnf:flex-1 cnf:min-w-0",children:[v.jsxs("div",{className:`cnf:border ${u.border} cnf:rounded-sm ${u.bg} cnf:shadow-sm cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full`,children:[v.jsx("div",{className:"cnf:p-3 cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full",children:v.jsxs("div",{className:"cnf:w-full",children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:mb-2 cnf:justify-between",children:[v.jsxs("div",{children:[v.jsx(Ce,{icon:u.icon,size:"lg",className:`cnf:mr-2 ${u.iconColor}`}),v.jsx("span",{className:`cnf:font-semibold cnf:text-sm ${u.text}`,children:t})]}),v.jsx(tT,{commentType:e,taskVerified:l,isUsernameAuthor:n.trim()===t.trim(),onEdit:A,onSaveCommentType:S,onDelete:i})]}),m?v.jsx(S1,{inputFieldClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",containerClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",onChange:p,commentType:e,isCommentTypeEditable:!1,initialValue:Ul(r),actions:v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:[v.jsx(je,{category:"outline",size:"smallCollapse",color:"secondary",onClick:_,title:"Cancel edit",children:"Cancel"}),v.jsx(je,{category:"solid",size:"smallCollapse",color:"primary",onClick:E,title:"Save edit",disabled:Ha(g),children:"Save"})]})}):v.jsx("div",{className:`cnf:text-sm ${u.text}`,dangerouslySetInnerHTML:{__html:Ul(r)}})]})}),a&&c&&(c==null?void 0:c.length)>0&&v.jsx("div",{className:`${u.border} cnf:border-t cnf:w-full cnf:p-2 cnf:flex cnf:gap-2 cnf:flex-wrap`,children:c.map(N=>v.jsx(T.Fragment,{children:xd(N.mimeType)?v.jsx(k5,{asset:N,onSetActiveSrc:w}):v.jsx(T5,{asset:N})},N.assetId))})]}),v.jsxs("div",{className:"cnf:flex cnf:gap-2 cnf:my-1",children:[o&&v.jsx("time",{dateTime:o,className:"cnf:text-xs cnf:text-gray-500 cnf:opacity-60",children:d}),l&&v.jsxs("span",{className:"cnf:text-xs cnf:text-success-600 cnf:font-semibold cnf:flex cnf:items-center cnf:gap-1",children:[v.jsx(Ce,{icon:Wy}),"Comment Required"]})]})]}),v.jsx(R3,{plugins:[J3],open:!!x,zoom:{maxZoomPixelRatio:2},close:()=>w(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:x}]})]})},pm={[dt.INFO]:{icon:v_,bg:"cnf:bg-primary-100",border:"cnf:border-l-primary-500",iconColor:"cnf:text-primary-600 cnf:hover:text-primary-700",fontColor:"cnf:text-primary-900"},[dt.WARNING]:{icon:s_,bg:"cnf:bg-warning-100",border:"cnf:border-l-warning-500",iconColor:"cnf:text-warning-600 cnf:hover:text-warning-700",fontColor:"cnf:text-warning-900"},[dt.DANGER]:{icon:C_,bg:"cnf:bg-danger-100",border:"cnf:border-l-danger-500",iconColor:"cnf:text-danger-600 cnf:hover:text-danger-700",fontColor:"cnf:text-danger-900"},[dt.SUCCESS]:{icon:Wy,bg:"cnf:bg-success-100",border:"cnf:border-l-success-500",iconColor:"cnf:text-success-600 cnf:hover:text-success-700",fontColor:"cnf:text-success-900"}},k1=Object.entries(pm).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),O5=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:a})=>{const[c,l]=T.useState(""),[f,u]=T.useState(dt.INFO),[d,m]=T.useState(0),[h,g]=T.useState([]),p=T.useRef(null),{username:y}=T1(),{manageComment:b}=Ck({playbookInstanceId:s}),x=()=>{const P=h.length,W=h.some(z=>!xd(z.mimeType))?"Attachment":"Image",j=P>1?"s":"";return`<p class="cnf:m-0"><span style="white-space: pre-wrap;">${W}${j} added.</span></p>`},w=P=>{const I=Array.from(P).map((W,j)=>hk(W,h.length+j+1));g(W=>[...W,...I])},A=P=>{g(I=>I.filter(W=>W.originFile!==P))},E=P=>{u(P)},S=async()=>{if(!h.length&&Ha(c)||!o)return;h.length>0&&g([]);const P=cu.sanitize(c);l(""),m(I=>I+1),await b({action:"add",comment:h.length>0&&Ha(c)?x():P,username:y||"",commentType:f,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:h.length>0,taskInstanceId:o,taskVerified:a,attachments:h}),u(dt.INFO)},_=async P=>{o&&await b({username:y||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:P})},N=async({commentId:P,comment:I,commentType:W,hasAssets:j,isAlreadyVerified:z})=>{o&&await b({action:"edit",username:y||"",...I&&{comment:I},taskInstanceId:o,commentId:P,hasAssets:j,taskVerified:z,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,commentType:W})};return T.useLayoutEffect(()=>{p.current&&n&&!i&&e.length>0&&(p.current.scrollTop=p.current.scrollHeight)},[n,i,e.length]),v.jsxs("div",{className:xe("cnf:transition-all cnf:duration-300 cnf:fixed cnf:bg-white cnf:right-0 cnf:bottom-0 cnf:h-[100vh] cnf:z-[9999999998] cnf:flex cnf:flex-col cnf:min-w-[270px] cnf:max-w-[420px] cnf:w-[calc(100vw-1rem)] cnf:border cnf:border-gray-200 cnf:rounded-t-sm cnf:overflow-hidden",n?"cnf:translate-y-0 cnf:opacity-100":"cnf:translate-y-full cnf:opacity-0 cnf:pointer-events-none"),children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:gap-2 cnf:border-b cnf:border-gray-200 cnf:px-2 cnf:py-4 cnf:w-full",children:[v.jsx("h6",{className:"cnf:font-semibold cnf:text-gray-900 cnf:truncate cnf:max-w-[300px]",children:r}),v.jsx(je,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:v.jsx(Ce,{icon:zc,className:"cnf:size-4 cnf:text-gray-300"})})]}),v.jsxs("div",{ref:p,className:"cnf:flex cnf:flex-col cnf:flex-1 cnf:overflow-y-auto",children:[v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:justify-end cnf:flex-1 cnf:gap-4 cnf:p-4 cnf:pb-[102px]",children:[i&&v.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-3",children:[1,2,3].map(P=>v.jsx("div",{className:"cnf:h-16 cnf:animate-pulse cnf:rounded-lg cnf:bg-gray-100"},P))}),(e==null?void 0:e.length)>0&&!i&&e.map(P=>v.jsx(N5,{username:y||"",onDelete:()=>_(P.commentId),onEdit:(I,W)=>N({commentId:P.commentId,comment:I,commentType:W,hasAssets:P.hasAssets,isAlreadyVerified:P.taskVerified}),...P},P.commentId)),(e==null?void 0:e.length)===0&&!i&&v.jsxs("div",{className:"cnf:flex cnf:flex-1 cnf:flex-col cnf:items-center cnf:justify-end cnf:gap-3 cnf:text-center cnf:mb-1",children:[v.jsx("img",{src:dk,className:"cnf:opacity-70",alt:"Empty"}),v.jsx("p",{className:"cnf:text-gray-400",children:"There is no discussion in this Task."})]})]}),v.jsx(S1,{attachments:h,onChange:l,containerClassName:"cnf:fixed cnf:bottom-0 cnf:left-0 cnf:right-0 cnf:bg-white",clearKey:d,commentType:f,onCommentTypeChange:E,onAddAttachments:w,onRemoveAttachment:A,onSubmit:S,isOpen:n,actions:v.jsx(je,{category:"link",size:"normalCollapse",title:"Send comment",onClick:S,disabled:Ha(c)&&h.length===0,children:v.jsx(Ce,{icon:WS})})})]})]})},Vu=T.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),T1=()=>{if(!T.useContext(Vu))throw new Error("useCommentContext must be used within a CommentProvider");return T.useContext(Vu)},P5=({playbookInstanceId:e,children:t,username:n})=>{const[r,o]=T.useState({taskInstanceId:null,taskName:"",taskVerification:!1}),{taskInstanceId:i,taskName:s,taskVerification:a}=r||{taskInstanceId:null,taskName:"",taskVerification:!1},{comments:c,isLoading:l,prefetchQuery:f}=vk({taskInstanceId:i||0,enabled:i!==null,username:n});return v.jsxs(Vu.Provider,{value:{comments:c,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:f,username:n},children:[t,Wt.createPortal(v.jsxs("div",{id:"cnfdnc-comment-box-root",children:[v.jsx("style",{children:kc}),v.jsx("div",{className:"confidence-playbook",children:v.jsx(O5,{playbookInstanceId:e,comments:c,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:l,taskVerification:a})})]}),KS)]})},M5={[Ue.OPEN]:"cnf:border-[#C1C5C8] cnf:bg-[#F0F1F2]",[Ue.IN_PROGRESS]:"cnf:bg-[#E6F2FF] cnf:border-[#94C8FF]",[Ue.IN_REVIEW]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]",[Ue.COMPLETED]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]"},Kn={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},I5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:c,taskStyle:l,listStickyTopBase:f})=>{const[u,d]=T.useState(!1),{taskDetails:m,prefetchQuery:h}=V4({taskId:e.taskId,playbookId:c,enabled:s}),{setOpenTaskDetails:g,prefetchQuery:p}=T1(),{buttons:y}=Jw({taskStatus:e.workflowStatus,canStart:i}),b=T.useMemo(()=>e.imageRequired===0?Kn.NO_VERIFICATION:e.imageRequired===1?Kn.SCREENSHOT:e.imageRequired===2?Kn.PHOTO:e.imageRequired===4?Kn.COMMENT:null,[e.imageRequired]),x=async w=>{try{d(!0),await r(w)}finally{d(!1)}};if(o==="list"){const w=T.useMemo(()=>e.workflowStatus===Ue.COMPLETED?"success":e.workflowStatus===Ue.IN_PROGRESS?"primary":"default",[e.workflowStatus]),A=T.useMemo(()=>{const E=[];return y.forEach(S=>{S==="START"&&E.push({id:"START",color:"primary",action:"Start",to:Ue.IN_PROGRESS}),S==="COMPLETE"&&(!e.taskVerified&&b===Kn.COMMENT&&E.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),E.push({id:"COMPLETE",color:"success",action:"Complete",to:Ue.COMPLETED,disabled:!e.taskVerified&&b===Kn.COMMENT}))}),E},[y,b,e.taskVerified]);return v.jsxs("div",{className:xe("cnf:flex cnf:flex-col"),children:[v.jsxs("div",{className:xe("cnf:flex cnf:items-center cnf:gap-3 cnf:p-2 cnf:border-gray-200",e.sequenceOrder>0&&"cnf:border-t",s&&"cnf:bg-white cnf:rounded-md cnf:border cnf:border-t-none cnf:shadow-sm cnf:sticky"),style:{top:s?f:0},children:[v.jsx("div",{className:"cnf:text-gray-200 cnf:text-base",children:e.sequenceOrder+1}),v.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:h,className:xe("cnf:flex-1 cnf:truncate cnf:cursor-pointer",s&&"cnf:font-medium",e.workflowStatus===Ue.COMPLETED&&"cnf:text-secondary-400 cnf:line-through"),style:{color:e.workflowStatus===Ue.IN_PROGRESS&&(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),v.jsx(_S,{taskVerified:e.taskVerified,verificationType:b,title:e.workflowStatus,variant:w,transitions:A,onClick:E=>{if(E===di.ADD_COMMENT){g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(E)}}),v.jsx(ep,{onMouseOver:()=>p(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||dt.INFO,onClick:()=>g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})})]}),(m==null?void 0:m.description)&&v.jsx("div",{className:xe(!s&&"cnf:hidden","cnf:border-gray-200 cnf:border cnf:p-2 cnf:mx-4 cnf:mb-4 cnf:border-t-none cnf:-mt-[1px] cnf:bg-gray-100 cnf:rounded-b-md"),children:v.jsx(Xh,{description:(m==null?void 0:m.description)||""})})]})}return v.jsxs("div",{className:Ts("cnf:flex cnf:items-stretch cnf:rounded-sm cnf:overflow-hidden cnf:border",M5[e.workflowStatus]),children:[v.jsx(TS,{playbookType:n,status:e.workflowStatus,step:t}),v.jsxs("div",{className:"cnf:flex cnf:w-full cnf:flex-col cnf:overflow-x-hidden cnf:flex-1 cnf:p-2",children:[n==="Sequential"&&v.jsx("div",{className:"cnf:-mb-3 cnf:self-end cnf:pr-2 cnf:pt-2",children:v.jsx(Fb,{status:e.workflowStatus})}),v.jsxs("div",{className:"cnf:space-y-2 cnf:divide-y cnf:divide-black/10 cnf:flex cnf:flex-col cnf:flex-1",children:[v.jsx("div",{className:xe("cnf:text-lg cnf:font-medium cnf:flex-1 cnf:pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),b?v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2 cnf:text-sm cnf:pb-2",children:[v.jsx(Ce,{icon:By,className:"cnf:size-4"}),v.jsxs("div",{children:[v.jsx("span",{className:"cnf:font-medium",children:b===Kn.PHOTO?"Photo":b===Kn.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):v.jsx(v.Fragment,{})]}),(m==null?void 0:m.description)&&v.jsx("div",{className:xe(!s&&"cnf:hidden"),children:v.jsx(Xh,{description:(m==null?void 0:m.description)||""})}),(y.length>0||e.hasDescription)&&v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-end cnf:gap-4 cnf:border-t cnf:border-black/10 cnf:pt-2",children:[v.jsx("div",{className:"cnf:flex-1",children:v.jsx(Y4,{buttons:y,onButtonClick:x,disabled:u})}),v.jsx(ep,{onMouseOver:()=>p(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||dt.INFO,onClick:()=>g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})}),a&&v.jsx(je,{size:"smallCollapse",onMouseOver:h,category:"link",onClick:()=>{a()},title:s?"Hide task description":"Show task description",children:v.jsx(Ce,{icon:Hy,className:Ts("cnf:cursor-pointer cnf:text-[#0069D9]",s?"cnf:rotate-180":"")})})]})]})]})},N1=T.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return v.jsx("div",{ref:o,className:xe("cnf:border-b cnf:border-gray-200 cnf:flex cnf:items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:v.jsx("div",{className:xe("cnf:text-xl cnf:min-h-16 cnf:p-4 cnf:font-medium cnf:flex-1",{"cnf:text-dark":!((s=n==null?void 0:n.whiteLabel)!=null&&s.titleTextColor)}),style:{color:(a=n==null?void 0:n.whiteLabel)==null?void 0:a.titleTextColor},children:e})})});N1.displayName="PlaybookHeader";const L5=kc.replace(/:root,\s*:host/g,":host"),R5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,defaultExpanded:r=!0})=>{const{isEmbedded:o}=nd(),{playbook:i,actions:s}=Gw(e);if(!i)return v.jsx("div",{});const a=async(c,l)=>{var f;if(c===di.COMPLETE){const u=(f=i.tasks.find(d=>d.taskInstanceId===l))==null?void 0:f.sequenceOrder;if(u===void 0){console.error("Task not found in playbook");return}return s.completeTask(l,u)}if(c===di.START)return s.startTask(l)};return v.jsx("div",{className:xe("confidence-playbook",o&&"cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0"),children:v.jsx(O1,{playbook:i,playbookMode:t,onTaskButtonClick:a,playbookStyle:n,defaultExpanded:r})})},D5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>v.jsxs("div",{className:xe("cnf:w-full cnf:p-4",e),children:[n&&v.jsxs("div",{className:xe(r==="card"&&"cnf:mb-4"),children:[v.jsx("span",{className:"cnf:font-medium",children:"Tasks"})," (",n,")"]}),v.jsx("div",{className:xe(r==="card"&&"cnf:space-y-4"),children:t})]}),O1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r,defaultExpanded:o=!0})=>{var x,w,A,E,S;const{isEmbedded:i}=nd(),{playbookInstanceName:s,tasks:a}=e,c=T.useRef(null),[l,f]=T.useState(0),[u,d]=T.useState(()=>{const _=U2(e.playbookInstanceId);return _!==null?_:o}),m=()=>{d(_=>{const N=!_;return B2(e.playbookInstanceId,N),N})},{isTaskExpanded:h,toggleTaskExpanded:g,isAtLeastOneTaskExpanded:p}=D0(e.playbookInstanceId,{onTaskExpanded:()=>{var _;f(((_=c.current)==null?void 0:_.offsetHeight)||0)}});T.useEffect(()=>{if(p){if(!c.current)throw new Error("Playbook header ref is not set");new ResizeObserver(N=>{var P;for(const I of N)I.contentRect&&f(((P=c.current)==null?void 0:P.offsetHeight)||0)}).observe(c.current)}return()=>{c.current&&new ResizeObserver(()=>{}).unobserve(c.current)}},[p]);const y=T.useMemo(()=>{const _=a.filter(N=>N.workflowStatus===Ue.COMPLETED).sort((N,P)=>P.sequenceOrder-N.sequenceOrder)[0];return _?_.sequenceOrder+1:0},[a]),b=v.jsxs("div",{className:xe("cnf:flex cnf:flex-col cnf:flex-1 cnf:bg-gray-50 cnf:min-h-0 cnf:overflow-auto",!i&&(r==null?void 0:r.overlay)&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm"),children:[v.jsx(N1,{title:s,className:xe("cnf:top-0 cnf:sticky cnf:z-2"),playbookStyle:r,ref:c}),v.jsx(D5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:a.map((_,N)=>{var P;return v.jsx(I5,{task:_,step:N+1,viewMode:t,playbookId:e.playbookId,canStart:_.sequenceOrder===y,onButtonClick:I=>n(I,_.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(P=r==null?void 0:r.whiteLabel)==null?void 0:P.primaryColor},isExpanded:h(_.taskInstanceId),toggleExpanded:()=>g(_.taskInstanceId),listStickyTopBase:l||104},_.taskId)})})]});return i?v.jsx("div",{className:"confidence-playbook cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",children:b}):v.jsxs("div",{className:xe(!(r!=null&&r.overlay)&&"cnf:min-h-screen",(r==null?void 0:r.overlay)&&"cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex","cnf:transition-all cnf:duration-300 cnf:ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:u?((x=r.overlay.size)==null?void 0:x.width)||450:"2.25rem",height:((w=r.overlay.size)==null?void 0:w.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((A=r.overlay.offset)==null?void 0:A.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((E=r.overlay.offset)==null?void 0:E.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&v.jsx("button",{type:"button",onClick:m,className:xe("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer"),style:{backgroundColor:((S=r==null?void 0:r.whiteLabel)==null?void 0:S.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:v.jsx("img",{src:Qu,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})}),b]})},F5=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles",persistKey:s,playbookInstanceId:a,defaultExpanded:c=!0})=>{const[l,f]=T.useState(null);return T.useEffect(()=>{(async()=>{const u=ey(t,s);if(a){f(a);return}if(u&&u.email===e){f(u.playbookInstanceId);return}const{playbookInstanceId:d,errorCode:m,details:h,message:g}=await F0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(m)throw new Error(`Error initiating playbook: ${g} (Code: ${m}) - Details: ${h}`);if(!d)throw new Error("No playbook instance ID returned from initiation");X0(t,d,e,s),f(d)})()},[a]),l?v.jsx(hn,{playbookInstanceId:l,playbookMode:n,playbookStyle:r,username:e,defaultExpanded:c}):v.jsx("div",{children:"Loading..."})},j5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i,onSetUsername:s,onSetPlaybookInstanceId:a,playbookInstanceId:c,username:l,defaultExpanded:f=!0})=>{const{isEmbedded:u}=nd(),[d,m]=T.useState(void 0),[h,g]=T.useState(null),p=c??h,y=l??d,b=T.useCallback(w=>{u&&a?a(w):g(w)},[u,a]),x=T.useCallback(w=>{u&&s?s(w):m(w)},[u,s]);return T.useEffect(()=>{const w=ey(e,i);w&&(b(w.playbookInstanceId),x(w.email))},[e,i,b,x]),v.jsxs(v.Fragment,{children:[v.jsxs(Uo.div,{children:[v.jsx(XC,{playbookId:e,disabled:!!p,onInitiated:(w,A)=>{X0(e,w,A,i),b(w),x(A)},btnLabel:r,btnColor:o}),v.jsx("style",{type:"text/css",children:L5})]}),p!=null&&v.jsx(hn,{playbookInstanceId:p,playbookMode:t,playbookStyle:n,username:y,defaultExpanded:f})]})},hn=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r,defaultExpanded:o=!0})=>(console.log("Starting ConfidencePlaybook with instance ID:",e,r),v.jsx(I0,{children:v.jsx(P5,{playbookInstanceId:e,username:r,children:v.jsx(R5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n,defaultExpanded:o})})}));hn.Context=I0;hn.View=O1;hn.AutoInstantiated=F5;hn.WithInstantiateButton=j5;const z5=({onClick:e,username:t})=>v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:w-full cnf:gap-8",children:[v.jsx("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:v.jsxs(je,{color:"primary",category:"link",size:"none",className:"cnf:text-sm",onClick:e,children:[v.jsx(Ce,{icon:A_,className:"cnf:text-primary-600 cnf:mr-2"}),"My Playbooks"]})}),v.jsx("span",{className:"cnf:text-sm cnf:font-medium cnf:text-secondary",children:t})]}),$5=({playbookName:e,status:t,lastUpdated:n,avatarSrc:r,onClick:o})=>v.jsx("li",{className:"cnf:list-none",children:v.jsxs("button",{className:"cnf:flex cnf:px-2 cnf:py-1 cnf:rounded-md cnf:items-center cnf:gap-4 cnf:w-full cnf:cursor-pointer cnf:focus:outline-2 cnf:focus:outline-primary-600 cnf:hover:bg-gray-200",type:"button",onClick:o,children:[v.jsx("div",{className:"cnf:w-16 cnf:h-16",children:v.jsx("img",{src:r??xv,alt:e,className:"cnf:rounded-md cnf:object-cover cnf:size-full cnf:border cnf:border-2 cnf:border-primary-600"})}),v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:gap-1",children:[v.jsx("p",{className:"cnf:font-semibold cnf:text-sm cnf:text-black",children:e}),v.jsx("div",{children:v.jsx(Fb,{status:t,category:"solid",className:"cnf:w-fit"})}),v.jsxs("p",{className:"cnf:text-sm cnf:text-gray-500 cnf:text-left",children:["Last updated:"," ",new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric"}).format(new Date(n))]})]})]})}),B5=({playbooks:e,onPlaybookClick:t})=>v.jsxs("div",{children:[v.jsxs("div",{className:"cnf:p-3",children:[v.jsx("h2",{className:"cnf:text-2xl cnf:font-semibold cnf:text-black",children:"My Playbooks"}),v.jsx("p",{className:"cnf:text-sm cnf:text-gray-500",children:"View your playbooks that are not started, in progress or completed."})]}),v.jsx("ul",{className:"cnf:flex cnf:flex-col cnf:gap-4 cnf:list-none cnf:bg-gray-100 cnf:px-2 cnf:py-4 cnf:h-[calc(100vh-10rem)] cnf:overflow-y-auto",children:e.map(n=>v.jsx($5,{playbookName:n.playbookInstanceName,status:n.status,lastUpdated:n.modifiedDate,avatarSrc:n.logo,onClick:()=>t(n.playbookInstanceId)},n.playbookInstanceId))})]}),e0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Ln}/my-playbooks`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},t0=e=>["my-playbooks",e],U5=({username:e})=>{var o;const{queryClient:t}=ir(),n=Ys({queryFn:async()=>{try{const i=new Date,s=new Date(i);return s.setDate(s.getDate()-365),await e0({username:e,searchTerm:"",statuses:["Not Started","In Progress","Paused","Review","Completed"],createdDateFrom:new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}).format(s),createdDateTo:new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}).format(i),sortByOrder:"desc",sortBy:"modifiedDate",start:0,limit:50})}catch(i){return console.error("Error getting my playbooks:",i),null}},queryKey:t0(e)},t),r=i=>{const s=new Date,a=new Date(s);a.setDate(a.getDate()-365),t.prefetchQuery({queryKey:t0(i),queryFn:async()=>{try{return await e0({username:i,searchTerm:"",statuses:["Not Started","In Progress","Paused","Review","Completed"],createdDateFrom:new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}).format(a),createdDateTo:new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}).format(s),sortByOrder:"desc",sortBy:"modifiedDate",start:0,limit:50})}catch(c){return console.error("Error getting my playbooks:",c),null}}})};return{myPlaybooks:(o=n.data)==null?void 0:o.myPlaybooks,prefetchQuery:r,isLoading:n.isLoading,error:n.error}},W5=(e,t,n)=>{var r,o,i,s,a;return{width:"100%",maxWidth:t?((o=(r=n==null?void 0:n.overlay)==null?void 0:r.size)==null?void 0:o.width)||450:"2.25rem",height:((i=e==null?void 0:e.size)==null?void 0:i.height)??"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((s=e==null?void 0:e.offset)==null?void 0:s.right)!==void 0?e.offset.right:(e==null?void 0:e.position)==="right"?32:void 0,left:((a=e==null?void 0:e.offset)==null?void 0:a.left)!==void 0?e.offset.left:(e==null?void 0:e.position)==="left"?32:void 0}},K5=({onClick:e,playbookStyle:t})=>{var n;return v.jsx("button",{type:"button",onClick:e,className:xe("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer"),style:{backgroundColor:((n=t==null?void 0:t.whiteLabel)==null?void 0:n.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:v.jsx("img",{src:Qu,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})})},gm=({username:e,onSetPlaybookInstanceId:t,playbookMode:n="list",playbookStyle:r,children:o})=>{const[i,s]=T.useState(!0),[a,c]=T.useState(!0),l=()=>c(!a),{myPlaybooks:f}=U5({username:e??""}),u=!!(r!=null&&r.overlay),d=r==null?void 0:r.overlay,m=u&&d?W5(d,a,r):void 0,h=u&&d?v.jsx(K5,{onClick:l,playbookStyle:r}):null,g=v.jsxs("div",{className:xe("cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0 cnf:bg-gray-50",u&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm cnf:overflow-hidden"),children:[n==="list"&&!i&&v.jsx("div",{className:"cnf:shrink-0 cnf:border-b cnf:border-gray-200 cnf:px-4 cnf:py-2",children:v.jsx(z5,{username:e,onClick:()=>s(p=>!p)})}),v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",children:[v.jsx("div",{className:xe("cnf:flex-1 cnf:overflow-auto cnf:text-secondary",!i&&"cnf:hidden"),children:v.jsx(B5,{playbooks:f??[],onPlaybookClick:p=>{t==null||t(p),s(!1)}})}),v.jsx("div",{className:xe("cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",i&&"cnf:hidden"),children:v.jsx(Kw,{value:{isEmbedded:!0},children:o})})]})]});return u?v.jsxs("div",{className:"confidence-playbook cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex cnf:transition-all cnf:duration-300 cnf:ease-in-out",style:m,children:[h,g]}):v.jsx("div",{className:"confidence-playbook cnf:flex cnf:min-h-screen cnf:flex-col",children:g})},fa=({username:e,playbookMode:t="list",playbookStyle:n})=>{const[r,o]=T.useState(null);return v.jsx(gm,{username:e,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:o,children:r!=null&&v.jsx(hn,{playbookInstanceId:r,playbookMode:t,playbookStyle:n,username:e})})},H5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i})=>{const[s,a]=T.useState(null),[c,l]=T.useState(void 0);return v.jsx(gm,{username:c,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:a,children:v.jsx(hn.WithInstantiateButton,{playbookId:e,playbookMode:t,playbookStyle:n,btnLabel:r,btnColor:o,persistKey:i,onSetUsername:l,onSetPlaybookInstanceId:a,playbookInstanceId:s,username:c})})},q5=({playbookId:e,playbookMode:t="list",playbookStyle:n,persistKey:r,username:o,bank:i="public-sdk",timezone:s="America/Los_Angeles"})=>{const[a,c]=T.useState(null);return v.jsx(gm,{username:o,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:c,children:v.jsx(hn.AutoInstantiated,{bank:i,timezone:s,playbookId:e,playbookMode:t,playbookStyle:n,persistKey:r,email:o??"",playbookInstanceId:a},a)})};fa.WithInstantiateButton=H5;fa.AutoInstantiated=q5;const ua=kc.replace(/:root,\s*:host/g,":host"),Vo=e=>Wt.createPortal(v.jsxs(Uo.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:ua}),v.jsx(hn,{...e})]}),document.body),V5=e=>Wt.createPortal(v.jsxs(Uo.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:ua}),v.jsx(fa,{...e})]}),document.body),P1=e=>Wt.createPortal(v.jsxs(Uo.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:ua}),v.jsx(fa.AutoInstantiated,{...e})]}),document.body),Y5=e=>Wt.createPortal(v.jsxs(Uo.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:ua}),v.jsx(fa.WithInstantiateButton,{...e})]}),document.body),Q5=e=>Wt.createPortal(v.jsxs(Uo.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:ua}),v.jsx(hn.AutoInstantiated,{...e})]}),document.body);Vo.AutoInstantiated=Q5;const G5=V5;Vo.EmbeddedLayout=G5;Vo.EmbeddedLayout.WithInstantiateButton=Y5;Vo.AutoInstantiatedEmbeddedLayout=P1;Vo.EmbeddedLayout.AutoInstantiated=P1;const Z5=Vo.EmbeddedLayout;exports.ConfidencePlaybook=Vo;exports.EmbeddedLayout=Z5;
|