@confidencesystemsinc/sdk 1.6.1 → 1.6.2
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/index.cjs +27 -131
- package/dist/index.js +9372 -19072
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,139 +1,35 @@
|
|
|
1
|
-
"use strict";require('./index.css');var
|
|
2
|
-
* @license React
|
|
3
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var mb;function hk(){if(mb)return zs;mb=1;var e=Y;function t(y){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+y,N=1;N<arguments.length;N++)T+="&args[]="+encodeURIComponent(arguments[N]);return"Minified React error #"+y+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,o={},i={};function s(y){return n.call(i,y)?!0:n.call(o,y)?!1:r.test(y)?i[y]=!0:(o[y]=!0,!1)}function c(y,T,N,B,ee,Z,oe){this.acceptsBooleans=T===2||T===3||T===4,this.attributeName=B,this.attributeNamespace=ee,this.mustUseProperty=N,this.propertyName=y,this.type=T,this.sanitizeURL=Z,this.removeEmptyString=oe}var u={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(y){u[y]=new c(y,0,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var T=y[0];u[T]=new c(T,1,!1,y[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){u[y]=new c(y,2,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){u[y]=new c(y,2,!1,y,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(y){u[y]=new c(y,3,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){u[y]=new c(y,3,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){u[y]=new c(y,4,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){u[y]=new c(y,6,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){u[y]=new c(y,5,!1,y.toLowerCase(),null,!1,!1)});var f=/[\-:]([a-z])/g;function m(y){return y[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(y){var T=y.replace(f,m);u[T]=new c(T,1,!1,y,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(y){var T=y.replace(f,m);u[T]=new c(T,1,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var T=y.replace(f,m);u[T]=new c(T,1,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){u[y]=new c(y,1,!1,y.toLowerCase(),null,!1,!1)}),u.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){u[y]=new c(y,1,!1,y.toLowerCase(),null,!0,!0)});var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v=["Webkit","ms","Moz","O"];Object.keys(h).forEach(function(y){v.forEach(function(T){T=T+y.charAt(0).toUpperCase()+y.substring(1),h[T]=h[y]})});var w=/["'&<>]/;function C(y){if(typeof y=="boolean"||typeof y=="number")return""+y;y=""+y;var T=w.exec(y);if(T){var N="",B,ee=0;for(B=T.index;B<y.length;B++){switch(y.charCodeAt(B)){case 34:T=""";break;case 38:T="&";break;case 39:T="'";break;case 60:T="<";break;case 62:T=">";break;default:continue}ee!==B&&(N+=y.substring(ee,B)),ee=B+1,N+=T}y=ee!==B?N+y.substring(ee,B):N}return y}var A=/([A-Z])/g,x=/^ms-/,E=Array.isArray;function R(y,T){return{insertionMode:y,selectedValue:T}}function I(y,T,N){switch(T){case"select":return R(1,N.value!=null?N.value:N.defaultValue);case"svg":return R(2,null);case"math":return R(3,null);case"foreignObject":return R(1,null);case"table":return R(4,null);case"thead":case"tbody":case"tfoot":return R(5,null);case"colgroup":return R(7,null);case"tr":return R(6,null)}return 4<=y.insertionMode||y.insertionMode===0?R(1,null):y}var L=new Map;function M(y,T,N){if(typeof N!="object")throw Error(t(62));T=!0;for(var B in N)if(n.call(N,B)){var ee=N[B];if(ee!=null&&typeof ee!="boolean"&&ee!==""){if(B.indexOf("--")===0){var Z=C(B);ee=C((""+ee).trim())}else{Z=B;var oe=L.get(Z);oe!==void 0||(oe=C(Z.replace(A,"-$1").toLowerCase().replace(x,"-ms-")),L.set(Z,oe)),Z=oe,ee=typeof ee=="number"?ee===0||n.call(h,B)?""+ee:ee+"px":C((""+ee).trim())}T?(T=!1,y.push(' style="',Z,":",ee)):y.push(";",Z,":",ee)}}T||y.push('"')}function U(y,T,N,B){switch(N){case"style":M(y,T,B);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){if(T=u.hasOwnProperty(N)?u[N]:null,T!==null){switch(typeof B){case"function":case"symbol":return;case"boolean":if(!T.acceptsBooleans)return}switch(N=T.attributeName,T.type){case 3:B&&y.push(" ",N,'=""');break;case 4:B===!0?y.push(" ",N,'=""'):B!==!1&&y.push(" ",N,'="',C(B),'"');break;case 5:isNaN(B)||y.push(" ",N,'="',C(B),'"');break;case 6:!isNaN(B)&&1<=B&&y.push(" ",N,'="',C(B),'"');break;default:T.sanitizeURL&&(B=""+B),y.push(" ",N,'="',C(B),'"')}}else if(s(N)){switch(typeof B){case"function":case"symbol":return;case"boolean":if(T=N.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")return}y.push(" ",N,'="',C(B),'"')}}}function j(y,T,N){if(T!=null){if(N!=null)throw Error(t(60));if(typeof T!="object"||!("__html"in T))throw Error(t(61));T=T.__html,T!=null&&y.push(""+T)}}function W(y){var T="";return e.Children.forEach(y,function(N){N!=null&&(T+=N)}),T}function H(y,T,N,B){y.push(pe(N));var ee=N=null,Z;for(Z in T)if(n.call(T,Z)){var oe=T[Z];if(oe!=null)switch(Z){case"children":N=oe;break;case"dangerouslySetInnerHTML":ee=oe;break;default:U(y,B,Z,oe)}}return y.push(">"),j(y,ee,N),typeof N=="string"?(y.push(C(N)),null):N}var G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,q=new Map;function pe(y){var T=q.get(y);if(T===void 0){if(!G.test(y))throw Error(t(65,y));T="<"+y,q.set(y,T)}return T}function ie(y,T,N,B,ee){switch(T){case"select":y.push(pe("select"));var Z=null,oe=null;for(He in N)if(n.call(N,He)){var we=N[He];if(we!=null)switch(He){case"children":Z=we;break;case"dangerouslySetInnerHTML":oe=we;break;case"defaultValue":case"value":break;default:U(y,B,He,we)}}return y.push(">"),j(y,oe,Z),Z;case"option":oe=ee.selectedValue,y.push(pe("option"));var We=we=null,Ge=null,He=null;for(Z in N)if(n.call(N,Z)){var pt=N[Z];if(pt!=null)switch(Z){case"children":we=pt;break;case"selected":Ge=pt;break;case"dangerouslySetInnerHTML":He=pt;break;case"value":We=pt;default:U(y,B,Z,pt)}}if(oe!=null)if(N=We!==null?""+We:W(we),E(oe)){for(B=0;B<oe.length;B++)if(""+oe[B]===N){y.push(' selected=""');break}}else""+oe===N&&y.push(' selected=""');else Ge&&y.push(' selected=""');return y.push(">"),j(y,He,we),we;case"textarea":y.push(pe("textarea")),He=oe=Z=null;for(we in N)if(n.call(N,we)&&(We=N[we],We!=null))switch(we){case"children":He=We;break;case"value":Z=We;break;case"defaultValue":oe=We;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:U(y,B,we,We)}if(Z===null&&oe!==null&&(Z=oe),y.push(">"),He!=null){if(Z!=null)throw Error(t(92));if(E(He)&&1<He.length)throw Error(t(93));Z=""+He}return typeof Z=="string"&&Z[0]===`
|
|
10
|
-
`&&y.push(`
|
|
11
|
-
`),Z!==null&&y.push(C(""+Z)),null;case"input":y.push(pe("input")),We=He=we=Z=null;for(oe in N)if(n.call(N,oe)&&(Ge=N[oe],Ge!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":We=Ge;break;case"defaultValue":we=Ge;break;case"checked":He=Ge;break;case"value":Z=Ge;break;default:U(y,B,oe,Ge)}return He!==null?U(y,B,"checked",He):We!==null&&U(y,B,"checked",We),Z!==null?U(y,B,"value",Z):we!==null&&U(y,B,"value",we),y.push("/>"),null;case"menuitem":y.push(pe("menuitem"));for(var kn in N)if(n.call(N,kn)&&(Z=N[kn],Z!=null))switch(kn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:U(y,B,kn,Z)}return y.push(">"),null;case"title":y.push(pe("title")),Z=null;for(pt in N)if(n.call(N,pt)&&(oe=N[pt],oe!=null))switch(pt){case"children":Z=oe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:U(y,B,pt,oe)}return y.push(">"),Z;case"listing":case"pre":y.push(pe(T)),oe=Z=null;for(We in N)if(n.call(N,We)&&(we=N[We],we!=null))switch(We){case"children":Z=we;break;case"dangerouslySetInnerHTML":oe=we;break;default:U(y,B,We,we)}if(y.push(">"),oe!=null){if(Z!=null)throw Error(t(60));if(typeof oe!="object"||!("__html"in oe))throw Error(t(61));N=oe.__html,N!=null&&(typeof N=="string"&&0<N.length&&N[0]===`
|
|
12
|
-
`?y.push(`
|
|
13
|
-
`,N):y.push(""+N))}return typeof Z=="string"&&Z[0]===`
|
|
14
|
-
`&&y.push(`
|
|
15
|
-
`),Z;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":y.push(pe(T));for(var Tn in N)if(n.call(N,Tn)&&(Z=N[Tn],Z!=null))switch(Tn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,T));default:U(y,B,Tn,Z)}return y.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return H(y,N,T,B);case"html":return ee.insertionMode===0&&y.push("<!DOCTYPE html>"),H(y,N,T,B);default:if(T.indexOf("-")===-1&&typeof N.is!="string")return H(y,N,T,B);y.push(pe(T)),oe=Z=null;for(Ge in N)if(n.call(N,Ge)&&(we=N[Ge],we!=null))switch(Ge){case"children":Z=we;break;case"dangerouslySetInnerHTML":oe=we;break;case"style":M(y,B,we);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Ge)&&typeof we!="function"&&typeof we!="symbol"&&y.push(" ",Ge,'="',C(we),'"')}return y.push(">"),j(y,oe,Z),Z}}function se(y,T,N){if(y.push('<!--$?--><template id="'),N===null)throw Error(t(395));return y.push(N),y.push('"></template>')}function xe(y,T,N,B){switch(N.insertionMode){case 0:case 1:return y.push('<div hidden id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 2:return y.push('<svg aria-hidden="true" style="display:none" id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 3:return y.push('<math aria-hidden="true" style="display:none" id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 4:return y.push('<table hidden id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 5:return y.push('<table hidden><tbody id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 6:return y.push('<table hidden><tr id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');case 7:return y.push('<table hidden><colgroup id="'),y.push(T.segmentPrefix),T=B.toString(16),y.push(T),y.push('">');default:throw Error(t(397))}}function Ae(y,T){switch(T.insertionMode){case 0:case 1:return y.push("</div>");case 2:return y.push("</svg>");case 3:return y.push("</math>");case 4:return y.push("</table>");case 5:return y.push("</tbody></table>");case 6:return y.push("</tr></table>");case 7:return y.push("</colgroup></table>");default:throw Error(t(397))}}var Re=/[<\u2028\u2029]/g;function Q(y){return JSON.stringify(y).replace(Re,function(T){switch(T){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ee(y,T){return T=T===void 0?"":T,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:T+"P:",segmentPrefix:T+"S:",boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:y}}function ne(y,T,N,B){return N.generateStaticMarkup?(y.push(C(T)),!1):(T===""?y=B:(B&&y.push("<!-- -->"),y.push(C(T)),y=!0),y)}var re=Object.assign,ue=Symbol.for("react.element"),me=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),_e=Symbol.for("react.provider"),je=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),xt=Symbol.for("react.scope"),zt=Symbol.for("react.debug_trace_mode"),xn=Symbol.for("react.legacy_hidden"),kr=Symbol.for("react.default_value"),Vt=Symbol.iterator;function un(y){if(y==null)return null;if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case Te:return"Fragment";case me:return"Portal";case ve:return"Profiler";case de:return"StrictMode";case Be:return"Suspense";case Je:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case je:return(y.displayName||"Context")+".Consumer";case _e:return(y._context.displayName||"Context")+".Provider";case ze:var T=y.render;return y=y.displayName,y||(y=T.displayName||T.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case ke:return T=y.displayName||null,T!==null?T:un(y.type)||"Memo";case tt:T=y._payload,y=y._init;try{return un(y(T))}catch{}}return null}var wn={};function Ne(y,T){if(y=y.contextTypes,!y)return wn;var N={},B;for(B in y)N[B]=T[B];return N}var nt=null;function ct(y,T){if(y!==T){y.context._currentValue2=y.parentValue,y=y.parent;var N=T.parent;if(y===null){if(N!==null)throw Error(t(401))}else{if(N===null)throw Error(t(401));ct(y,N)}T.context._currentValue2=T.value}}function ut(y){y.context._currentValue2=y.parentValue,y=y.parent,y!==null&&ut(y)}function Dt(y){var T=y.parent;T!==null&&Dt(T),y.context._currentValue2=y.value}function Jt(y,T){if(y.context._currentValue2=y.parentValue,y=y.parent,y===null)throw Error(t(402));y.depth===T.depth?ct(y,T):Jt(y,T)}function Kt(y,T){var N=T.parent;if(N===null)throw Error(t(402));y.depth===N.depth?ct(y,N):Kt(y,N),T.context._currentValue2=T.value}function wt(y){var T=nt;T!==y&&(T===null?Dt(y):y===null?ut(T):T.depth===y.depth?ct(T,y):T.depth>y.depth?Jt(T,y):Kt(T,y),nt=y)}var Qn={isMounted:function(){return!1},enqueueSetState:function(y,T){y=y._reactInternals,y.queue!==null&&y.queue.push(T)},enqueueReplaceState:function(y,T){y=y._reactInternals,y.replace=!0,y.queue=[T]},enqueueForceUpdate:function(){}};function qt(y,T,N,B){var ee=y.state!==void 0?y.state:null;y.updater=Qn,y.props=N,y.state=ee;var Z={queue:[],replace:!1};y._reactInternals=Z;var oe=T.contextType;if(y.context=typeof oe=="object"&&oe!==null?oe._currentValue2:B,oe=T.getDerivedStateFromProps,typeof oe=="function"&&(oe=oe(N,ee),ee=oe==null?ee:re({},ee,oe),y.state=ee),typeof T.getDerivedStateFromProps!="function"&&typeof y.getSnapshotBeforeUpdate!="function"&&(typeof y.UNSAFE_componentWillMount=="function"||typeof y.componentWillMount=="function"))if(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&Qn.enqueueReplaceState(y,y.state,null),Z.queue!==null&&0<Z.queue.length)if(T=Z.queue,oe=Z.replace,Z.queue=null,Z.replace=!1,oe&&T.length===1)y.state=T[0];else{for(Z=oe?T[0]:y.state,ee=!0,oe=oe?1:0;oe<T.length;oe++){var we=T[oe];we=typeof we=="function"?we.call(y,Z,N,B):we,we!=null&&(ee?(ee=!1,Z=re({},Z,we)):re(Z,we))}y.state=Z}else Z.queue=null}var Zn={id:1,overflow:""};function Sn(y,T,N){var B=y.id;y=y.overflow;var ee=32-Cn(B)-1;B&=~(1<<ee),N+=1;var Z=32-Cn(T)+ee;if(30<Z){var oe=ee-ee%5;return Z=(B&(1<<oe)-1).toString(32),B>>=oe,ee-=oe,{id:1<<32-Cn(T)+ee|N<<ee|B,overflow:Z+y}}return{id:1<<Z|N<<ee|B,overflow:y}}var Cn=Math.clz32?Math.clz32:dn,Xn=Math.log,fn=Math.LN2;function dn(y){return y>>>=0,y===0?32:31-(Xn(y)/fn|0)|0}function Fr(y,T){return y===T&&(y!==0||1/y===1/T)||y!==y&&T!==T}var Zr=typeof Object.is=="function"?Object.is:Fr,an=null,pn=null,Dn=null,dt=null,An=!1,Xr=!1,jr=0,vt=null,Fn=0;function ar(){if(an===null)throw Error(t(321));return an}function Yt(){if(0<Fn)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function zr(){return dt===null?Dn===null?(An=!1,Dn=dt=Yt()):(An=!0,dt=Dn):dt.next===null?(An=!1,dt=dt.next=Yt()):(An=!0,dt=dt.next),dt}function Jr(){pn=an=null,Xr=!1,Dn=null,Fn=0,dt=vt=null}function vo(y,T){return typeof T=="function"?T(y):T}function $t(y,T,N){if(an=ar(),dt=zr(),An){var B=dt.queue;if(T=B.dispatch,vt!==null&&(N=vt.get(B),N!==void 0)){vt.delete(B),B=dt.memoizedState;do B=y(B,N.action),N=N.next;while(N!==null);return dt.memoizedState=B,[B,T]}return[dt.memoizedState,T]}return y=y===vo?typeof T=="function"?T():T:N!==void 0?N(T):T,dt.memoizedState=y,y=dt.queue={last:null,dispatch:null},y=y.dispatch=sr.bind(null,an,y),[dt.memoizedState,y]}function sn(y,T){if(an=ar(),dt=zr(),T=T===void 0?null:T,dt!==null){var N=dt.memoizedState;if(N!==null&&T!==null){var B=N[1];e:if(B===null)B=!1;else{for(var ee=0;ee<B.length&&ee<T.length;ee++)if(!Zr(T[ee],B[ee])){B=!1;break e}B=!0}if(B)return N[0]}}return y=y(),dt.memoizedState=[y,T],y}function sr(y,T,N){if(25<=Fn)throw Error(t(301));if(y===an)if(Xr=!0,y={action:N,next:null},vt===null&&(vt=new Map),N=vt.get(T),N===void 0)vt.set(T,y);else{for(T=N;T.next!==null;)T=T.next;T.next=y}}function zo(){throw Error(t(394))}function jn(){}var Br={readContext:function(y){return y._currentValue2},useContext:function(y){return ar(),y._currentValue2},useMemo:sn,useReducer:$t,useRef:function(y){an=ar(),dt=zr();var T=dt.memoizedState;return T===null?(y={current:y},dt.memoizedState=y):T},useState:function(y){return $t(vo,y)},useInsertionEffect:jn,useLayoutEffect:function(){},useCallback:function(y,T){return sn(function(){return y},T)},useImperativeHandle:jn,useEffect:jn,useDebugValue:jn,useDeferredValue:function(y){return ar(),y},useTransition:function(){return ar(),[!1,zo]},useId:function(){var y=pn.treeContext,T=y.overflow;y=y.id,y=(y&~(1<<32-Cn(y)-1)).toString(32)+T;var N=Ur;if(N===null)throw Error(t(404));return T=jr++,y=":"+N.idPrefix+"R"+y,0<T&&(y+="H"+T.toString(32)),y+":"},useMutableSource:function(y,T){return ar(),T(y._source)},useSyncExternalStore:function(y,T,N){if(N===void 0)throw Error(t(407));return N()}},Ur=null,en=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(y){return console.error(y),null}function zn(){}function $r(y,T,N,B,ee,Z,oe,we,We){var Ge=[],He=new Set;return T={destination:null,responseState:T,progressiveChunkSize:B===void 0?12800:B,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:He,pingedTasks:Ge,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ee===void 0?ln:ee,onAllReady:zn,onShellReady:oe===void 0?zn:oe,onShellError:zn,onFatalError:zn},N=Tr(T,0,null,N,!1,!1),N.parentFlushed=!0,y=lr(T,y,null,N,He,wn,null,Zn),Ge.push(y),T}function lr(y,T,N,B,ee,Z,oe,we){y.allPendingTasks++,N===null?y.pendingRootTasks++:N.pendingTasks++;var We={node:T,ping:function(){var Ge=y.pingedTasks;Ge.push(We),Ge.length===1&&rn(y)},blockedBoundary:N,blockedSegment:B,abortSet:ee,legacyContext:Z,context:oe,treeContext:we};return ee.add(We),We}function Tr(y,T,N,B,ee,Z){return{status:0,id:-1,index:T,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:N,lastPushedText:ee,textEmbedded:Z}}function De(y,T){if(y=y.onError(T),y!=null&&typeof y!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof y+'" instead');return y}function K(y,T){var N=y.onShellError;N(T),N=y.onFatalError,N(T),y.destination!==null?(y.status=2,y.destination.destroy(T)):(y.status=1,y.fatalError=T)}function he(y,T,N,B,ee){for(an={},pn=T,jr=0,y=N(B,ee);Xr;)Xr=!1,jr=0,Fn+=1,dt=null,y=N(B,ee);return Jr(),y}function Fe(y,T,N,B){var ee=N.render(),Z=B.childContextTypes;if(Z!=null){var oe=T.legacyContext;if(typeof N.getChildContext!="function")B=oe;else{N=N.getChildContext();for(var we in N)if(!(we in Z))throw Error(t(108,un(B)||"Unknown",we));B=re({},oe,N)}T.legacyContext=B,qe(y,T,ee),T.legacyContext=oe}else qe(y,T,ee)}function St(y,T){if(y&&y.defaultProps){T=re({},T),y=y.defaultProps;for(var N in y)T[N]===void 0&&(T[N]=y[N]);return T}return T}function kt(y,T,N,B,ee){if(typeof N=="function")if(N.prototype&&N.prototype.isReactComponent){ee=Ne(N,T.legacyContext);var Z=N.contextType;Z=new N(B,typeof Z=="object"&&Z!==null?Z._currentValue2:ee),qt(Z,N,B,ee),Fe(y,T,Z,N)}else{Z=Ne(N,T.legacyContext),ee=he(y,T,N,B,Z);var oe=jr!==0;if(typeof ee=="object"&&ee!==null&&typeof ee.render=="function"&&ee.$$typeof===void 0)qt(ee,N,B,Z),Fe(y,T,ee,N);else if(oe){B=T.treeContext,T.treeContext=Sn(B,1,0);try{qe(y,T,ee)}finally{T.treeContext=B}}else qe(y,T,ee)}else if(typeof N=="string"){switch(ee=T.blockedSegment,Z=ie(ee.chunks,N,B,y.responseState,ee.formatContext),ee.lastPushedText=!1,oe=ee.formatContext,ee.formatContext=I(oe,N,B),Qt(y,T,Z),ee.formatContext=oe,N){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ee.chunks.push("</",N,">")}ee.lastPushedText=!1}else{switch(N){case xn:case zt:case de:case ve:case Te:qe(y,T,B.children);return;case Je:qe(y,T,B.children);return;case xt:throw Error(t(343));case Be:e:{N=T.blockedBoundary,ee=T.blockedSegment,Z=B.fallback,B=B.children,oe=new Set;var we={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:oe,errorDigest:null},We=Tr(y,ee.chunks.length,we,ee.formatContext,!1,!1);ee.children.push(We),ee.lastPushedText=!1;var Ge=Tr(y,0,null,ee.formatContext,!1,!1);Ge.parentFlushed=!0,T.blockedBoundary=we,T.blockedSegment=Ge;try{if(Qt(y,T,B),y.responseState.generateStaticMarkup||Ge.lastPushedText&&Ge.textEmbedded&&Ge.chunks.push("<!-- -->"),Ge.status=1,Ct(we,Ge),we.pendingTasks===0)break e}catch(He){Ge.status=4,we.forceClientRender=!0,we.errorDigest=De(y,He)}finally{T.blockedBoundary=N,T.blockedSegment=ee}T=lr(y,Z,N,We,oe,T.legacyContext,T.context,T.treeContext),y.pingedTasks.push(T)}return}if(typeof N=="object"&&N!==null)switch(N.$$typeof){case ze:if(B=he(y,T,N.render,B,ee),jr!==0){N=T.treeContext,T.treeContext=Sn(N,1,0);try{qe(y,T,B)}finally{T.treeContext=N}}else qe(y,T,B);return;case ke:N=N.type,B=St(N,B),kt(y,T,N,B,ee);return;case _e:if(ee=B.children,N=N._context,B=B.value,Z=N._currentValue2,N._currentValue2=B,oe=nt,nt=B={parent:oe,depth:oe===null?0:oe.depth+1,context:N,parentValue:Z,value:B},T.context=B,qe(y,T,ee),y=nt,y===null)throw Error(t(403));B=y.parentValue,y.context._currentValue2=B===kr?y.context._defaultValue:B,y=nt=y.parent,T.context=y;return;case je:B=B.children,B=B(N._currentValue2),qe(y,T,B);return;case tt:ee=N._init,N=ee(N._payload),B=St(N,B),kt(y,T,N,B,void 0);return}throw Error(t(130,N==null?N:typeof N,""))}}function qe(y,T,N){if(T.node=N,typeof N=="object"&&N!==null){switch(N.$$typeof){case ue:kt(y,T,N.type,N.props,N.ref);return;case me:throw Error(t(257));case tt:var B=N._init;N=B(N._payload),qe(y,T,N);return}if(E(N)){It(y,T,N);return}if(N===null||typeof N!="object"?B=null:(B=Vt&&N[Vt]||N["@@iterator"],B=typeof B=="function"?B:null),B&&(B=B.call(N))){if(N=B.next(),!N.done){var ee=[];do ee.push(N.value),N=B.next();while(!N.done);It(y,T,ee)}return}throw y=Object.prototype.toString.call(N),Error(t(31,y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":y))}typeof N=="string"?(B=T.blockedSegment,B.lastPushedText=ne(T.blockedSegment.chunks,N,y.responseState,B.lastPushedText)):typeof N=="number"&&(B=T.blockedSegment,B.lastPushedText=ne(T.blockedSegment.chunks,""+N,y.responseState,B.lastPushedText))}function It(y,T,N){for(var B=N.length,ee=0;ee<B;ee++){var Z=T.treeContext;T.treeContext=Sn(Z,B,ee);try{Qt(y,T,N[ee])}finally{T.treeContext=Z}}}function Qt(y,T,N){var B=T.blockedSegment.formatContext,ee=T.legacyContext,Z=T.context;try{return qe(y,T,N)}catch(We){if(Jr(),typeof We=="object"&&We!==null&&typeof We.then=="function"){N=We;var oe=T.blockedSegment,we=Tr(y,oe.chunks.length,null,oe.formatContext,oe.lastPushedText,!0);oe.children.push(we),oe.lastPushedText=!1,y=lr(y,T.node,T.blockedBoundary,we,T.abortSet,T.legacyContext,T.context,T.treeContext).ping,N.then(y,y),T.blockedSegment.formatContext=B,T.legacyContext=ee,T.context=Z,wt(Z)}else throw T.blockedSegment.formatContext=B,T.legacyContext=ee,T.context=Z,wt(Z),We}}function hn(y){var T=y.blockedBoundary;y=y.blockedSegment,y.status=3,Bn(this,T,y)}function _r(y,T,N){var B=y.blockedBoundary;y.blockedSegment.status=3,B===null?(T.allPendingTasks--,T.status!==2&&(T.status=2,T.destination!==null&&T.destination.push(null))):(B.pendingTasks--,B.forceClientRender||(B.forceClientRender=!0,y=N===void 0?Error(t(432)):N,B.errorDigest=T.onError(y),B.parentFlushed&&T.clientRenderedBoundaries.push(B)),B.fallbackAbortableTasks.forEach(function(ee){return _r(ee,T,N)}),B.fallbackAbortableTasks.clear(),T.allPendingTasks--,T.allPendingTasks===0&&(B=T.onAllReady,B()))}function Ct(y,T){if(T.chunks.length===0&&T.children.length===1&&T.children[0].boundary===null){var N=T.children[0];N.id=T.id,N.parentFlushed=!0,N.status===1&&Ct(y,N)}else y.completedSegments.push(T)}function Bn(y,T,N){if(T===null){if(N.parentFlushed){if(y.completedRootSegment!==null)throw Error(t(389));y.completedRootSegment=N}y.pendingRootTasks--,y.pendingRootTasks===0&&(y.onShellError=zn,T=y.onShellReady,T())}else T.pendingTasks--,T.forceClientRender||(T.pendingTasks===0?(N.parentFlushed&&N.status===1&&Ct(T,N),T.parentFlushed&&y.completedBoundaries.push(T),T.fallbackAbortableTasks.forEach(hn,y),T.fallbackAbortableTasks.clear()):N.parentFlushed&&N.status===1&&(Ct(T,N),T.completedSegments.length===1&&T.parentFlushed&&y.partialBoundaries.push(T)));y.allPendingTasks--,y.allPendingTasks===0&&(y=y.onAllReady,y())}function rn(y){if(y.status!==2){var T=nt,N=en.current;en.current=Br;var B=Ur;Ur=y.responseState;try{var ee=y.pingedTasks,Z;for(Z=0;Z<ee.length;Z++){var oe=ee[Z],we=y,We=oe.blockedSegment;if(We.status===0){wt(oe.context);try{qe(we,oe,oe.node),we.responseState.generateStaticMarkup||We.lastPushedText&&We.textEmbedded&&We.chunks.push("<!-- -->"),oe.abortSet.delete(oe),We.status=1,Bn(we,oe.blockedBoundary,We)}catch(_n){if(Jr(),typeof _n=="object"&&_n!==null&&typeof _n.then=="function"){var Ge=oe.ping;_n.then(Ge,Ge)}else{oe.abortSet.delete(oe),We.status=4;var He=oe.blockedBoundary,pt=_n,kn=De(we,pt);if(He===null?K(we,pt):(He.pendingTasks--,He.forceClientRender||(He.forceClientRender=!0,He.errorDigest=kn,He.parentFlushed&&we.clientRenderedBoundaries.push(He))),we.allPendingTasks--,we.allPendingTasks===0){var Tn=we.onAllReady;Tn()}}}finally{}}}ee.splice(0,Z),y.destination!==null&&En(y,y.destination)}catch(_n){De(y,_n),K(y,_n)}finally{Ur=B,en.current=N,N===Br&&wt(T)}}}function qr(y,T,N){switch(N.parentFlushed=!0,N.status){case 0:var B=N.id=y.nextSegmentId++;return N.lastPushedText=!1,N.textEmbedded=!1,y=y.responseState,T.push('<template id="'),T.push(y.placeholderPrefix),y=B.toString(16),T.push(y),T.push('"></template>');case 1:N.status=2;var ee=!0;B=N.chunks;var Z=0;N=N.children;for(var oe=0;oe<N.length;oe++){for(ee=N[oe];Z<ee.index;Z++)T.push(B[Z]);ee=yo(y,T,ee)}for(;Z<B.length-1;Z++)T.push(B[Z]);return Z<B.length&&(ee=T.push(B[Z])),ee;default:throw Error(t(390))}}function yo(y,T,N){var B=N.boundary;if(B===null)return qr(y,T,N);if(B.parentFlushed=!0,B.forceClientRender)return y.responseState.generateStaticMarkup||(B=B.errorDigest,T.push("<!--$!-->"),T.push("<template"),B&&(T.push(' data-dgst="'),B=C(B),T.push(B),T.push('"')),T.push("></template>")),qr(y,T,N),y=y.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),y;if(0<B.pendingTasks){B.rootSegmentID=y.nextSegmentId++,0<B.completedSegments.length&&y.partialBoundaries.push(B);var ee=y.responseState,Z=ee.nextSuspenseID++;return ee=ee.boundaryPrefix+Z.toString(16),B=B.id=ee,se(T,y.responseState,B),qr(y,T,N),T.push("<!--/$-->")}if(B.byteSize>y.progressiveChunkSize)return B.rootSegmentID=y.nextSegmentId++,y.completedBoundaries.push(B),se(T,y.responseState,B.id),qr(y,T,N),T.push("<!--/$-->");if(y.responseState.generateStaticMarkup||T.push("<!--$-->"),N=B.completedSegments,N.length!==1)throw Error(t(391));return yo(y,T,N[0]),y=y.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),y}function Bo(y,T,N){return xe(T,y.responseState,N.formatContext,N.id),yo(y,T,N),Ae(T,N.formatContext)}function Jn(y,T,N){for(var B=N.completedSegments,ee=0;ee<B.length;ee++)Rr(y,T,N,B[ee]);if(B.length=0,y=y.responseState,B=N.id,N=N.rootSegmentID,T.push(y.startInlineScript),y.sentCompleteBoundaryFunction?T.push('$RC("'):(y.sentCompleteBoundaryFunction=!0,T.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),B===null)throw Error(t(395));return N=N.toString(16),T.push(B),T.push('","'),T.push(y.segmentPrefix),T.push(N),T.push('")<\/script>')}function Rr(y,T,N,B){if(B.status===2)return!0;var ee=B.id;if(ee===-1){if((B.id=N.rootSegmentID)===-1)throw Error(t(392));return Bo(y,T,B)}return Bo(y,T,B),y=y.responseState,T.push(y.startInlineScript),y.sentCompleteSegmentFunction?T.push('$RS("'):(y.sentCompleteSegmentFunction=!0,T.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),T.push(y.segmentPrefix),ee=ee.toString(16),T.push(ee),T.push('","'),T.push(y.placeholderPrefix),T.push(ee),T.push('")<\/script>')}function En(y,T){try{var N=y.completedRootSegment;if(N!==null&&y.pendingRootTasks===0){yo(y,T,N),y.completedRootSegment=null;var B=y.responseState.bootstrapChunks;for(N=0;N<B.length-1;N++)T.push(B[N]);N<B.length&&T.push(B[N])}var ee=y.clientRenderedBoundaries,Z;for(Z=0;Z<ee.length;Z++){var oe=ee[Z];B=T;var we=y.responseState,We=oe.id,Ge=oe.errorDigest,He=oe.errorMessage,pt=oe.errorComponentStack;if(B.push(we.startInlineScript),we.sentClientRenderFunction?B.push('$RX("'):(we.sentClientRenderFunction=!0,B.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),We===null)throw Error(t(395));if(B.push(We),B.push('"'),Ge||He||pt){B.push(",");var kn=Q(Ge||"");B.push(kn)}if(He||pt){B.push(",");var Tn=Q(He||"");B.push(Tn)}if(pt){B.push(",");var _n=Q(pt);B.push(_n)}if(!B.push(")<\/script>")){y.destination=null,Z++,ee.splice(0,Z);return}}ee.splice(0,Z);var eo=y.completedBoundaries;for(Z=0;Z<eo.length;Z++)if(!Jn(y,T,eo[Z])){y.destination=null,Z++,eo.splice(0,Z);return}eo.splice(0,Z);var Pr=y.partialBoundaries;for(Z=0;Z<Pr.length;Z++){var $o=Pr[Z];e:{ee=y,oe=T;var to=$o.completedSegments;for(we=0;we<to.length;we++)if(!Rr(ee,oe,$o,to[we])){we++,to.splice(0,we);var bo=!1;break e}to.splice(0,we),bo=!0}if(!bo){y.destination=null,Z++,Pr.splice(0,Z);return}}Pr.splice(0,Z);var Wr=y.completedBoundaries;for(Z=0;Z<Wr.length;Z++)if(!Jn(y,T,Wr[Z])){y.destination=null,Z++,Wr.splice(0,Z);return}Wr.splice(0,Z)}finally{y.allPendingTasks===0&&y.pingedTasks.length===0&&y.clientRenderedBoundaries.length===0&&y.completedBoundaries.length===0&&T.push(null)}}function Uo(y,T){try{var N=y.abortableTasks;N.forEach(function(B){return _r(B,y,T)}),N.clear(),y.destination!==null&&En(y,y.destination)}catch(B){De(y,B),K(y,B)}}function on(){}function Un(y,T,N,B){var ee=!1,Z=null,oe="",we={push:function(Ge){return Ge!==null&&(oe+=Ge),!0},destroy:function(Ge){ee=!0,Z=Ge}},We=!1;if(y=$r(y,Ee(N,T?T.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,on,void 0,function(){We=!0}),rn(y),Uo(y,B),y.status===1)y.status=2,we.destroy(y.fatalError);else if(y.status!==2&&y.destination===null){y.destination=we;try{En(y,we)}catch(Ge){De(y,Ge),K(y,Ge)}}if(ee)throw Z;if(!We)throw Error(t(426));return oe}return zs.renderToNodeStream=function(){throw Error(t(207))},zs.renderToStaticMarkup=function(y,T){return Un(y,T,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},zs.renderToStaticNodeStream=function(){throw Error(t(208))},zs.renderToString=function(y,T){return Un(y,T,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},zs.version="18.3.1",zs}var wp={};/**
|
|
16
|
-
* @license React
|
|
17
|
-
* react-dom-server.browser.production.min.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var gb;function mk(){if(gb)return wp;gb=1;var e=Y;function t(b){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+b,P=1;P<arguments.length;P++)k+="&args[]="+encodeURIComponent(arguments[P]);return"Minified React error #"+b+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function o(b,k){if(k.length!==0)if(512<k.length)0<r&&(b.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),b.enqueue(k);else{var P=n.length-r;P<k.length&&(P===0?b.enqueue(n):(n.set(k.subarray(0,P),r),b.enqueue(n),k=k.subarray(P)),n=new Uint8Array(512),r=0),n.set(k,r),r+=k.length}}function i(b,k){return o(b,k),!0}function s(b){n&&0<r&&(b.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function u(b){return c.encode(b)}function f(b){return c.encode(b)}function m(b,k){typeof b.error=="function"?b.error(k):b.close()}var h=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},C={};function A(b){return h.call(C,b)?!0:h.call(w,b)?!1:v.test(b)?C[b]=!0:(w[b]=!0,!1)}function x(b,k,P,z,te,J,le){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=z,this.attributeNamespace=te,this.mustUseProperty=P,this.propertyName=b,this.type=k,this.sanitizeURL=J,this.removeEmptyString=le}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(b){E[b]=new x(b,0,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var k=b[0];E[k]=new x(k,1,!1,b[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){E[b]=new x(b,2,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){E[b]=new x(b,2,!1,b,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(b){E[b]=new x(b,3,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){E[b]=new x(b,3,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){E[b]=new x(b,4,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){E[b]=new x(b,6,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){E[b]=new x(b,5,!1,b.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function I(b){return b[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(b){var k=b.replace(R,I);E[k]=new x(k,1,!1,b,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(b){var k=b.replace(R,I);E[k]=new x(k,1,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var k=b.replace(R,I);E[k]=new x(k,1,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){E[b]=new x(b,1,!1,b.toLowerCase(),null,!1,!1)}),E.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){E[b]=new x(b,1,!1,b.toLowerCase(),null,!0,!0)});var L={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},M=["Webkit","ms","Moz","O"];Object.keys(L).forEach(function(b){M.forEach(function(k){k=k+b.charAt(0).toUpperCase()+b.substring(1),L[k]=L[b]})});var U=/["'&<>]/;function j(b){if(typeof b=="boolean"||typeof b=="number")return""+b;b=""+b;var k=U.exec(b);if(k){var P="",z,te=0;for(z=k.index;z<b.length;z++){switch(b.charCodeAt(z)){case 34:k=""";break;case 38:k="&";break;case 39:k="'";break;case 60:k="<";break;case 62:k=">";break;default:continue}te!==z&&(P+=b.substring(te,z)),te=z+1,P+=k}b=te!==z?P+b.substring(te,z):P}return b}var W=/([A-Z])/g,H=/^ms-/,G=Array.isArray,q=f("<script>"),pe=f("<\/script>"),ie=f('<script src="'),se=f('<script type="module" src="'),xe=f('" async=""><\/script>'),Ae=/(<\/|<)(s)(cript)/gi;function Re(b,k,P,z){return""+k+(P==="s"?"\\u0073":"\\u0053")+z}function Q(b,k,P,z,te){b=b===void 0?"":b,k=k===void 0?q:f('<script nonce="'+j(k)+'">');var J=[];if(P!==void 0&&J.push(k,u((""+P).replace(Ae,Re)),pe),z!==void 0)for(P=0;P<z.length;P++)J.push(ie,u(j(z[P])),xe);if(te!==void 0)for(z=0;z<te.length;z++)J.push(se,u(j(te[z])),xe);return{bootstrapChunks:J,startInlineScript:k,placeholderPrefix:f(b+"P:"),segmentPrefix:f(b+"S:"),boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ee(b,k){return{insertionMode:b,selectedValue:k}}function ne(b){return Ee(b==="http://www.w3.org/2000/svg"?2:b==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function re(b,k,P){switch(k){case"select":return Ee(1,P.value!=null?P.value:P.defaultValue);case"svg":return Ee(2,null);case"math":return Ee(3,null);case"foreignObject":return Ee(1,null);case"table":return Ee(4,null);case"thead":case"tbody":case"tfoot":return Ee(5,null);case"colgroup":return Ee(7,null);case"tr":return Ee(6,null)}return 4<=b.insertionMode||b.insertionMode===0?Ee(1,null):b}var ue=f("<!-- -->");function me(b,k,P,z){return k===""?z:(z&&b.push(ue),b.push(u(j(k))),!0)}var Te=new Map,de=f(' style="'),ve=f(":"),_e=f(";");function je(b,k,P){if(typeof P!="object")throw Error(t(62));k=!0;for(var z in P)if(h.call(P,z)){var te=P[z];if(te!=null&&typeof te!="boolean"&&te!==""){if(z.indexOf("--")===0){var J=u(j(z));te=u(j((""+te).trim()))}else{J=z;var le=Te.get(J);le!==void 0||(le=f(j(J.replace(W,"-$1").toLowerCase().replace(H,"-ms-"))),Te.set(J,le)),J=le,te=typeof te=="number"?te===0||h.call(L,z)?u(""+te):u(te+"px"):u(j((""+te).trim()))}k?(k=!1,b.push(de,J,ve,te)):b.push(_e,J,ve,te)}}k||b.push(Je)}var ze=f(" "),Be=f('="'),Je=f('"'),ke=f('=""');function tt(b,k,P,z){switch(P){case"style":je(b,k,z);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<P.length)||P[0]!=="o"&&P[0]!=="O"||P[1]!=="n"&&P[1]!=="N"){if(k=E.hasOwnProperty(P)?E[P]:null,k!==null){switch(typeof z){case"function":case"symbol":return;case"boolean":if(!k.acceptsBooleans)return}switch(P=u(k.attributeName),k.type){case 3:z&&b.push(ze,P,ke);break;case 4:z===!0?b.push(ze,P,ke):z!==!1&&b.push(ze,P,Be,u(j(z)),Je);break;case 5:isNaN(z)||b.push(ze,P,Be,u(j(z)),Je);break;case 6:!isNaN(z)&&1<=z&&b.push(ze,P,Be,u(j(z)),Je);break;default:k.sanitizeURL&&(z=""+z),b.push(ze,P,Be,u(j(z)),Je)}}else if(A(P)){switch(typeof z){case"function":case"symbol":return;case"boolean":if(k=P.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")return}b.push(ze,u(P),Be,u(j(z)),Je)}}}var xt=f(">"),zt=f("/>");function xn(b,k,P){if(k!=null){if(P!=null)throw Error(t(60));if(typeof k!="object"||!("__html"in k))throw Error(t(61));k=k.__html,k!=null&&b.push(u(""+k))}}function kr(b){var k="";return e.Children.forEach(b,function(P){P!=null&&(k+=P)}),k}var Vt=f(' selected=""');function un(b,k,P,z){b.push(ct(P));var te=P=null,J;for(J in k)if(h.call(k,J)){var le=k[J];if(le!=null)switch(J){case"children":P=le;break;case"dangerouslySetInnerHTML":te=le;break;default:tt(b,z,J,le)}}return b.push(xt),xn(b,te,P),typeof P=="string"?(b.push(u(j(P))),null):P}var wn=f(`
|
|
24
|
-
`),Ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,nt=new Map;function ct(b){var k=nt.get(b);if(k===void 0){if(!Ne.test(b))throw Error(t(65,b));k=f("<"+b),nt.set(b,k)}return k}var ut=f("<!DOCTYPE html>");function Dt(b,k,P,z,te){switch(k){case"select":b.push(ct("select"));var J=null,le=null;for(et in P)if(h.call(P,et)){var Se=P[et];if(Se!=null)switch(et){case"children":J=Se;break;case"dangerouslySetInnerHTML":le=Se;break;case"defaultValue":case"value":break;default:tt(b,z,et,Se)}}return b.push(xt),xn(b,le,J),J;case"option":le=te.selectedValue,b.push(ct("option"));var Qe=Se=null,rt=null,et=null;for(J in P)if(h.call(P,J)){var Mt=P[J];if(Mt!=null)switch(J){case"children":Se=Mt;break;case"selected":rt=Mt;break;case"dangerouslySetInnerHTML":et=Mt;break;case"value":Qe=Mt;default:tt(b,z,J,Mt)}}if(le!=null)if(P=Qe!==null?""+Qe:kr(Se),G(le)){for(z=0;z<le.length;z++)if(""+le[z]===P){b.push(Vt);break}}else""+le===P&&b.push(Vt);else rt&&b.push(Vt);return b.push(xt),xn(b,et,Se),Se;case"textarea":b.push(ct("textarea")),et=le=J=null;for(Se in P)if(h.call(P,Se)&&(Qe=P[Se],Qe!=null))switch(Se){case"children":et=Qe;break;case"value":J=Qe;break;case"defaultValue":le=Qe;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:tt(b,z,Se,Qe)}if(J===null&&le!==null&&(J=le),b.push(xt),et!=null){if(J!=null)throw Error(t(92));if(G(et)&&1<et.length)throw Error(t(93));J=""+et}return typeof J=="string"&&J[0]===`
|
|
25
|
-
`&&b.push(wn),J!==null&&b.push(u(j(""+J))),null;case"input":b.push(ct("input")),Qe=et=Se=J=null;for(le in P)if(h.call(P,le)&&(rt=P[le],rt!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":Qe=rt;break;case"defaultValue":Se=rt;break;case"checked":et=rt;break;case"value":J=rt;break;default:tt(b,z,le,rt)}return et!==null?tt(b,z,"checked",et):Qe!==null&&tt(b,z,"checked",Qe),J!==null?tt(b,z,"value",J):Se!==null&&tt(b,z,"value",Se),b.push(zt),null;case"menuitem":b.push(ct("menuitem"));for(var Wn in P)if(h.call(P,Wn)&&(J=P[Wn],J!=null))switch(Wn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:tt(b,z,Wn,J)}return b.push(xt),null;case"title":b.push(ct("title")),J=null;for(Mt in P)if(h.call(P,Mt)&&(le=P[Mt],le!=null))switch(Mt){case"children":J=le;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:tt(b,z,Mt,le)}return b.push(xt),J;case"listing":case"pre":b.push(ct(k)),le=J=null;for(Qe in P)if(h.call(P,Qe)&&(Se=P[Qe],Se!=null))switch(Qe){case"children":J=Se;break;case"dangerouslySetInnerHTML":le=Se;break;default:tt(b,z,Qe,Se)}if(b.push(xt),le!=null){if(J!=null)throw Error(t(60));if(typeof le!="object"||!("__html"in le))throw Error(t(61));P=le.__html,P!=null&&(typeof P=="string"&&0<P.length&&P[0]===`
|
|
26
|
-
`?b.push(wn,u(P)):b.push(u(""+P)))}return typeof J=="string"&&J[0]===`
|
|
27
|
-
`&&b.push(wn),J;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":b.push(ct(k));for(var ur in P)if(h.call(P,ur)&&(J=P[ur],J!=null))switch(ur){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,k));default:tt(b,z,ur,J)}return b.push(zt),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return un(b,P,k,z);case"html":return te.insertionMode===0&&b.push(ut),un(b,P,k,z);default:if(k.indexOf("-")===-1&&typeof P.is!="string")return un(b,P,k,z);b.push(ct(k)),le=J=null;for(rt in P)if(h.call(P,rt)&&(Se=P[rt],Se!=null))switch(rt){case"children":J=Se;break;case"dangerouslySetInnerHTML":le=Se;break;case"style":je(b,z,Se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:A(rt)&&typeof Se!="function"&&typeof Se!="symbol"&&b.push(ze,u(rt),Be,u(j(Se)),Je)}return b.push(xt),xn(b,le,J),J}}var Jt=f("</"),Kt=f(">"),wt=f('<template id="'),Qn=f('"></template>'),qt=f("<!--$-->"),Zn=f('<!--$?--><template id="'),Sn=f('"></template>'),Cn=f("<!--$!-->"),Xn=f("<!--/$-->"),fn=f("<template"),dn=f('"'),Fr=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var Zr=f("></template>");function an(b,k,P){if(o(b,Zn),P===null)throw Error(t(395));return o(b,P),i(b,Sn)}var pn=f('<div hidden id="'),Dn=f('">'),dt=f("</div>"),An=f('<svg aria-hidden="true" style="display:none" id="'),Xr=f('">'),jr=f("</svg>"),vt=f('<math aria-hidden="true" style="display:none" id="'),Fn=f('">'),ar=f("</math>"),Yt=f('<table hidden id="'),zr=f('">'),Jr=f("</table>"),vo=f('<table hidden><tbody id="'),$t=f('">'),sn=f("</tbody></table>"),sr=f('<table hidden><tr id="'),zo=f('">'),jn=f("</tr></table>"),Br=f('<table hidden><colgroup id="'),Ur=f('">'),en=f("</colgroup></table>");function ln(b,k,P,z){switch(P.insertionMode){case 0:case 1:return o(b,pn),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Dn);case 2:return o(b,An),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Xr);case 3:return o(b,vt),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Fn);case 4:return o(b,Yt),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,zr);case 5:return o(b,vo),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,$t);case 6:return o(b,sr),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,zo);case 7:return o(b,Br),o(b,k.segmentPrefix),o(b,u(z.toString(16))),i(b,Ur);default:throw Error(t(397))}}function zn(b,k){switch(k.insertionMode){case 0:case 1:return i(b,dt);case 2:return i(b,jr);case 3:return i(b,ar);case 4:return i(b,Jr);case 5:return i(b,sn);case 6:return i(b,jn);case 7:return i(b,en);default:throw Error(t(397))}}var $r=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),lr=f('$RS("'),Tr=f('","'),De=f('")<\/script>'),K=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),he=f('$RC("'),Fe=f('","'),St=f('")<\/script>'),kt=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),qe=f('$RX("'),It=f('"'),Qt=f(")<\/script>"),hn=f(","),_r=/[<\u2028\u2029]/g;function Ct(b){return JSON.stringify(b).replace(_r,function(k){switch(k){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Bn=Object.assign,rn=Symbol.for("react.element"),qr=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),Bo=Symbol.for("react.strict_mode"),Jn=Symbol.for("react.profiler"),Rr=Symbol.for("react.provider"),En=Symbol.for("react.context"),Uo=Symbol.for("react.forward_ref"),on=Symbol.for("react.suspense"),Un=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),B=Symbol.for("react.debug_trace_mode"),ee=Symbol.for("react.legacy_hidden"),Z=Symbol.for("react.default_value"),oe=Symbol.iterator;function we(b){if(b==null)return null;if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case yo:return"Fragment";case qr:return"Portal";case Jn:return"Profiler";case Bo:return"StrictMode";case on:return"Suspense";case Un:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case En:return(b.displayName||"Context")+".Consumer";case Rr:return(b._context.displayName||"Context")+".Provider";case Uo:var k=b.render;return b=b.displayName,b||(b=k.displayName||k.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case y:return k=b.displayName||null,k!==null?k:we(b.type)||"Memo";case T:k=b._payload,b=b._init;try{return we(b(k))}catch{}}return null}var We={};function Ge(b,k){if(b=b.contextTypes,!b)return We;var P={},z;for(z in b)P[z]=k[z];return P}var He=null;function pt(b,k){if(b!==k){b.context._currentValue=b.parentValue,b=b.parent;var P=k.parent;if(b===null){if(P!==null)throw Error(t(401))}else{if(P===null)throw Error(t(401));pt(b,P)}k.context._currentValue=k.value}}function kn(b){b.context._currentValue=b.parentValue,b=b.parent,b!==null&&kn(b)}function Tn(b){var k=b.parent;k!==null&&Tn(k),b.context._currentValue=b.value}function _n(b,k){if(b.context._currentValue=b.parentValue,b=b.parent,b===null)throw Error(t(402));b.depth===k.depth?pt(b,k):_n(b,k)}function eo(b,k){var P=k.parent;if(P===null)throw Error(t(402));b.depth===P.depth?pt(b,P):eo(b,P),k.context._currentValue=k.value}function Pr(b){var k=He;k!==b&&(k===null?Tn(b):b===null?kn(k):k.depth===b.depth?pt(k,b):k.depth>b.depth?_n(k,b):eo(k,b),He=b)}var $o={isMounted:function(){return!1},enqueueSetState:function(b,k){b=b._reactInternals,b.queue!==null&&b.queue.push(k)},enqueueReplaceState:function(b,k){b=b._reactInternals,b.replace=!0,b.queue=[k]},enqueueForceUpdate:function(){}};function to(b,k,P,z){var te=b.state!==void 0?b.state:null;b.updater=$o,b.props=P,b.state=te;var J={queue:[],replace:!1};b._reactInternals=J;var le=k.contextType;if(b.context=typeof le=="object"&&le!==null?le._currentValue:z,le=k.getDerivedStateFromProps,typeof le=="function"&&(le=le(P,te),te=le==null?te:Bn({},te,le),b.state=te),typeof k.getDerivedStateFromProps!="function"&&typeof b.getSnapshotBeforeUpdate!="function"&&(typeof b.UNSAFE_componentWillMount=="function"||typeof b.componentWillMount=="function"))if(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&$o.enqueueReplaceState(b,b.state,null),J.queue!==null&&0<J.queue.length)if(k=J.queue,le=J.replace,J.queue=null,J.replace=!1,le&&k.length===1)b.state=k[0];else{for(J=le?k[0]:b.state,te=!0,le=le?1:0;le<k.length;le++){var Se=k[le];Se=typeof Se=="function"?Se.call(b,J,P,z):Se,Se!=null&&(te?(te=!1,J=Bn({},J,Se)):Bn(J,Se))}b.state=J}else J.queue=null}var bo={id:1,overflow:""};function Wr(b,k,P){var z=b.id;b=b.overflow;var te=32-xo(z)-1;z&=~(1<<te),P+=1;var J=32-xo(k)+te;if(30<J){var le=te-te%5;return J=(z&(1<<le)-1).toString(32),z>>=le,te-=le,{id:1<<32-xo(k)+te|P<<te|z,overflow:J+b}}return{id:1<<J|P<<te|z,overflow:b}}var xo=Math.clz32?Math.clz32:na,Fu=Math.log,ju=Math.LN2;function na(b){return b>>>=0,b===0?32:31-(Fu(b)/ju|0)|0}function Or(b,k){return b===k&&(b!==0||1/b===1/k)||b!==b&&k!==k}var zu=typeof Object.is=="function"?Object.is:Or,Hr=null,ss=null,ra=null,Tt=null,wo=!1,oa=!1,So=0,no=null,ia=0;function ro(){if(Hr===null)throw Error(t(321));return Hr}function cr(){if(0<ia)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function ls(){return Tt===null?ra===null?(wo=!1,ra=Tt=cr()):(wo=!0,Tt=ra):Tt.next===null?(wo=!1,Tt=Tt.next=cr()):(wo=!0,Tt=Tt.next),Tt}function hi(){ss=Hr=null,oa=!1,ra=null,ia=0,Tt=no=null}function Ll(b,k){return typeof k=="function"?k(b):k}function aa(b,k,P){if(Hr=ro(),Tt=ls(),wo){var z=Tt.queue;if(k=z.dispatch,no!==null&&(P=no.get(z),P!==void 0)){no.delete(z),z=Tt.memoizedState;do z=b(z,P.action),P=P.next;while(P!==null);return Tt.memoizedState=z,[z,k]}return[Tt.memoizedState,k]}return b=b===Ll?typeof k=="function"?k():k:P!==void 0?P(k):k,Tt.memoizedState=b,b=Tt.queue={last:null,dispatch:null},b=b.dispatch=Bu.bind(null,Hr,b),[Tt.memoizedState,b]}function Dl(b,k){if(Hr=ro(),Tt=ls(),k=k===void 0?null:k,Tt!==null){var P=Tt.memoizedState;if(P!==null&&k!==null){var z=P[1];e:if(z===null)z=!1;else{for(var te=0;te<z.length&&te<k.length;te++)if(!zu(k[te],z[te])){z=!1;break e}z=!0}if(z)return P[0]}}return b=b(),Tt.memoizedState=[b,k],b}function Bu(b,k,P){if(25<=ia)throw Error(t(301));if(b===Hr)if(oa=!0,b={action:P,next:null},no===null&&(no=new Map),P=no.get(k),P===void 0)no.set(k,b);else{for(k=P;k.next!==null;)k=k.next;k.next=b}}function Uu(){throw Error(t(394))}function sa(){}var Fl={readContext:function(b){return b._currentValue},useContext:function(b){return ro(),b._currentValue},useMemo:Dl,useReducer:aa,useRef:function(b){Hr=ro(),Tt=ls();var k=Tt.memoizedState;return k===null?(b={current:b},Tt.memoizedState=b):k},useState:function(b){return aa(Ll,b)},useInsertionEffect:sa,useLayoutEffect:function(){},useCallback:function(b,k){return Dl(function(){return b},k)},useImperativeHandle:sa,useEffect:sa,useDebugValue:sa,useDeferredValue:function(b){return ro(),b},useTransition:function(){return ro(),[!1,Uu]},useId:function(){var b=ss.treeContext,k=b.overflow;b=b.id,b=(b&~(1<<32-xo(b)-1)).toString(32)+k;var P=mi;if(P===null)throw Error(t(404));return k=So++,b=":"+P.idPrefix+"R"+b,0<k&&(b+="H"+k.toString(32)),b+":"},useMutableSource:function(b,k){return ro(),k(b._source)},useSyncExternalStore:function(b,k,P){if(P===void 0)throw Error(t(407));return P()}},mi=null,cs=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function $u(b){return console.error(b),null}function Wo(){}function us(b,k,P,z,te,J,le,Se,Qe){var rt=[],et=new Set;return k={destination:null,responseState:k,progressiveChunkSize:z===void 0?12800:z,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:et,pingedTasks:rt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:te===void 0?$u:te,onAllReady:J===void 0?Wo:J,onShellReady:le===void 0?Wo:le,onShellError:Se===void 0?Wo:Se,onFatalError:Qe===void 0?Wo:Qe},P=Ho(k,0,null,P,!1,!1),P.parentFlushed=!0,b=fs(k,b,null,P,et,We,null,bo),rt.push(b),k}function fs(b,k,P,z,te,J,le,Se){b.allPendingTasks++,P===null?b.pendingRootTasks++:P.pendingTasks++;var Qe={node:k,ping:function(){var rt=b.pingedTasks;rt.push(Qe),rt.length===1&&Hl(b)},blockedBoundary:P,blockedSegment:z,abortSet:te,legacyContext:J,context:le,treeContext:Se};return te.add(Qe),Qe}function Ho(b,k,P,z,te,J){return{status:0,id:-1,index:k,parentFlushed:!1,chunks:[],children:[],formatContext:z,boundary:P,lastPushedText:te,textEmbedded:J}}function gi(b,k){if(b=b.onError(k),b!=null&&typeof b!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b}function la(b,k){var P=b.onShellError;P(k),P=b.onFatalError,P(k),b.destination!==null?(b.status=2,m(b.destination,k)):(b.status=1,b.fatalError=k)}function jl(b,k,P,z,te){for(Hr={},ss=k,So=0,b=P(z,te);oa;)oa=!1,So=0,ia+=1,Tt=null,b=P(z,te);return hi(),b}function zl(b,k,P,z){var te=P.render(),J=z.childContextTypes;if(J!=null){var le=k.legacyContext;if(typeof P.getChildContext!="function")z=le;else{P=P.getChildContext();for(var Se in P)if(!(Se in J))throw Error(t(108,we(z)||"Unknown",Se));z=Bn({},le,P)}k.legacyContext=z,$n(b,k,te),k.legacyContext=le}else $n(b,k,te)}function Bl(b,k){if(b&&b.defaultProps){k=Bn({},k),b=b.defaultProps;for(var P in b)k[P]===void 0&&(k[P]=b[P]);return k}return k}function ca(b,k,P,z,te){if(typeof P=="function")if(P.prototype&&P.prototype.isReactComponent){te=Ge(P,k.legacyContext);var J=P.contextType;J=new P(z,typeof J=="object"&&J!==null?J._currentValue:te),to(J,P,z,te),zl(b,k,J,P)}else{J=Ge(P,k.legacyContext),te=jl(b,k,P,z,J);var le=So!==0;if(typeof te=="object"&&te!==null&&typeof te.render=="function"&&te.$$typeof===void 0)to(te,P,z,J),zl(b,k,te,P);else if(le){z=k.treeContext,k.treeContext=Wr(z,1,0);try{$n(b,k,te)}finally{k.treeContext=z}}else $n(b,k,te)}else if(typeof P=="string"){switch(te=k.blockedSegment,J=Dt(te.chunks,P,z,b.responseState,te.formatContext),te.lastPushedText=!1,le=te.formatContext,te.formatContext=re(le,P,z),ua(b,k,J),te.formatContext=le,P){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:te.chunks.push(Jt,u(P),Kt)}te.lastPushedText=!1}else{switch(P){case ee:case B:case Bo:case Jn:case yo:$n(b,k,z.children);return;case Un:$n(b,k,z.children);return;case N:throw Error(t(343));case on:e:{P=k.blockedBoundary,te=k.blockedSegment,J=z.fallback,z=z.children,le=new Set;var Se={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:le,errorDigest:null},Qe=Ho(b,te.chunks.length,Se,te.formatContext,!1,!1);te.children.push(Qe),te.lastPushedText=!1;var rt=Ho(b,0,null,te.formatContext,!1,!1);rt.parentFlushed=!0,k.blockedBoundary=Se,k.blockedSegment=rt;try{if(ua(b,k,z),rt.lastPushedText&&rt.textEmbedded&&rt.chunks.push(ue),rt.status=1,fa(Se,rt),Se.pendingTasks===0)break e}catch(et){rt.status=4,Se.forceClientRender=!0,Se.errorDigest=gi(b,et)}finally{k.blockedBoundary=P,k.blockedSegment=te}k=fs(b,J,P,Qe,le,k.legacyContext,k.context,k.treeContext),b.pingedTasks.push(k)}return}if(typeof P=="object"&&P!==null)switch(P.$$typeof){case Uo:if(z=jl(b,k,P.render,z,te),So!==0){P=k.treeContext,k.treeContext=Wr(P,1,0);try{$n(b,k,z)}finally{k.treeContext=P}}else $n(b,k,z);return;case y:P=P.type,z=Bl(P,z),ca(b,k,P,z,te);return;case Rr:if(te=z.children,P=P._context,z=z.value,J=P._currentValue,P._currentValue=z,le=He,He=z={parent:le,depth:le===null?0:le.depth+1,context:P,parentValue:J,value:z},k.context=z,$n(b,k,te),b=He,b===null)throw Error(t(403));z=b.parentValue,b.context._currentValue=z===Z?b.context._defaultValue:z,b=He=b.parent,k.context=b;return;case En:z=z.children,z=z(P._currentValue),$n(b,k,z);return;case T:te=P._init,P=te(P._payload),z=Bl(P,z),ca(b,k,P,z,void 0);return}throw Error(t(130,P==null?P:typeof P,""))}}function $n(b,k,P){if(k.node=P,typeof P=="object"&&P!==null){switch(P.$$typeof){case rn:ca(b,k,P.type,P.props,P.ref);return;case qr:throw Error(t(257));case T:var z=P._init;P=z(P._payload),$n(b,k,P);return}if(G(P)){Ul(b,k,P);return}if(P===null||typeof P!="object"?z=null:(z=oe&&P[oe]||P["@@iterator"],z=typeof z=="function"?z:null),z&&(z=z.call(P))){if(P=z.next(),!P.done){var te=[];do te.push(P.value),P=z.next();while(!P.done);Ul(b,k,te)}return}throw b=Object.prototype.toString.call(P),Error(t(31,b==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":b))}typeof P=="string"?(z=k.blockedSegment,z.lastPushedText=me(k.blockedSegment.chunks,P,b.responseState,z.lastPushedText)):typeof P=="number"&&(z=k.blockedSegment,z.lastPushedText=me(k.blockedSegment.chunks,""+P,b.responseState,z.lastPushedText))}function Ul(b,k,P){for(var z=P.length,te=0;te<z;te++){var J=k.treeContext;k.treeContext=Wr(J,z,te);try{ua(b,k,P[te])}finally{k.treeContext=J}}}function ua(b,k,P){var z=k.blockedSegment.formatContext,te=k.legacyContext,J=k.context;try{return $n(b,k,P)}catch(Qe){if(hi(),typeof Qe=="object"&&Qe!==null&&typeof Qe.then=="function"){P=Qe;var le=k.blockedSegment,Se=Ho(b,le.chunks.length,null,le.formatContext,le.lastPushedText,!0);le.children.push(Se),le.lastPushedText=!1,b=fs(b,k.node,k.blockedBoundary,Se,k.abortSet,k.legacyContext,k.context,k.treeContext).ping,P.then(b,b),k.blockedSegment.formatContext=z,k.legacyContext=te,k.context=J,Pr(J)}else throw k.blockedSegment.formatContext=z,k.legacyContext=te,k.context=J,Pr(J),Qe}}function Wu(b){var k=b.blockedBoundary;b=b.blockedSegment,b.status=3,Wl(this,k,b)}function $l(b,k,P){var z=b.blockedBoundary;b.blockedSegment.status=3,z===null?(k.allPendingTasks--,k.status!==2&&(k.status=2,k.destination!==null&&k.destination.close())):(z.pendingTasks--,z.forceClientRender||(z.forceClientRender=!0,b=P===void 0?Error(t(432)):P,z.errorDigest=k.onError(b),z.parentFlushed&&k.clientRenderedBoundaries.push(z)),z.fallbackAbortableTasks.forEach(function(te){return $l(te,k,P)}),z.fallbackAbortableTasks.clear(),k.allPendingTasks--,k.allPendingTasks===0&&(z=k.onAllReady,z()))}function fa(b,k){if(k.chunks.length===0&&k.children.length===1&&k.children[0].boundary===null){var P=k.children[0];P.id=k.id,P.parentFlushed=!0,P.status===1&&fa(b,P)}else b.completedSegments.push(k)}function Wl(b,k,P){if(k===null){if(P.parentFlushed){if(b.completedRootSegment!==null)throw Error(t(389));b.completedRootSegment=P}b.pendingRootTasks--,b.pendingRootTasks===0&&(b.onShellError=Wo,k=b.onShellReady,k())}else k.pendingTasks--,k.forceClientRender||(k.pendingTasks===0?(P.parentFlushed&&P.status===1&&fa(k,P),k.parentFlushed&&b.completedBoundaries.push(k),k.fallbackAbortableTasks.forEach(Wu,b),k.fallbackAbortableTasks.clear()):P.parentFlushed&&P.status===1&&(fa(k,P),k.completedSegments.length===1&&k.parentFlushed&&b.partialBoundaries.push(k)));b.allPendingTasks--,b.allPendingTasks===0&&(b=b.onAllReady,b())}function Hl(b){if(b.status!==2){var k=He,P=cs.current;cs.current=Fl;var z=mi;mi=b.responseState;try{var te=b.pingedTasks,J;for(J=0;J<te.length;J++){var le=te[J],Se=b,Qe=le.blockedSegment;if(Qe.status===0){Pr(le.context);try{$n(Se,le,le.node),Qe.lastPushedText&&Qe.textEmbedded&&Qe.chunks.push(ue),le.abortSet.delete(le),Qe.status=1,Wl(Se,le.blockedBoundary,Qe)}catch(fr){if(hi(),typeof fr=="object"&&fr!==null&&typeof fr.then=="function"){var rt=le.ping;fr.then(rt,rt)}else{le.abortSet.delete(le),Qe.status=4;var et=le.blockedBoundary,Mt=fr,Wn=gi(Se,Mt);if(et===null?la(Se,Mt):(et.pendingTasks--,et.forceClientRender||(et.forceClientRender=!0,et.errorDigest=Wn,et.parentFlushed&&Se.clientRenderedBoundaries.push(et))),Se.allPendingTasks--,Se.allPendingTasks===0){var ur=Se.onAllReady;ur()}}}finally{}}}te.splice(0,J),b.destination!==null&&ds(b,b.destination)}catch(fr){gi(b,fr),la(b,fr)}finally{mi=z,cs.current=P,P===Fl&&Pr(k)}}}function da(b,k,P){switch(P.parentFlushed=!0,P.status){case 0:var z=P.id=b.nextSegmentId++;return P.lastPushedText=!1,P.textEmbedded=!1,b=b.responseState,o(k,wt),o(k,b.placeholderPrefix),b=u(z.toString(16)),o(k,b),i(k,Qn);case 1:P.status=2;var te=!0;z=P.chunks;var J=0;P=P.children;for(var le=0;le<P.length;le++){for(te=P[le];J<te.index;J++)o(k,z[J]);te=pa(b,k,te)}for(;J<z.length-1;J++)o(k,z[J]);return J<z.length&&(te=i(k,z[J])),te;default:throw Error(t(390))}}function pa(b,k,P){var z=P.boundary;if(z===null)return da(b,k,P);if(z.parentFlushed=!0,z.forceClientRender)z=z.errorDigest,i(k,Cn),o(k,fn),z&&(o(k,Fr),o(k,u(j(z))),o(k,dn)),i(k,Zr),da(b,k,P);else if(0<z.pendingTasks){z.rootSegmentID=b.nextSegmentId++,0<z.completedSegments.length&&b.partialBoundaries.push(z);var te=b.responseState,J=te.nextSuspenseID++;te=f(te.boundaryPrefix+J.toString(16)),z=z.id=te,an(k,b.responseState,z),da(b,k,P)}else if(z.byteSize>b.progressiveChunkSize)z.rootSegmentID=b.nextSegmentId++,b.completedBoundaries.push(z),an(k,b.responseState,z.id),da(b,k,P);else{if(i(k,qt),P=z.completedSegments,P.length!==1)throw Error(t(391));pa(b,k,P[0])}return i(k,Xn)}function Vl(b,k,P){return ln(k,b.responseState,P.formatContext,P.id),pa(b,k,P),zn(k,P.formatContext)}function Kl(b,k,P){for(var z=P.completedSegments,te=0;te<z.length;te++)Yl(b,k,P,z[te]);if(z.length=0,b=b.responseState,z=P.id,P=P.rootSegmentID,o(k,b.startInlineScript),b.sentCompleteBoundaryFunction?o(k,he):(b.sentCompleteBoundaryFunction=!0,o(k,K)),z===null)throw Error(t(395));return P=u(P.toString(16)),o(k,z),o(k,Fe),o(k,b.segmentPrefix),o(k,P),i(k,St)}function Yl(b,k,P,z){if(z.status===2)return!0;var te=z.id;if(te===-1){if((z.id=P.rootSegmentID)===-1)throw Error(t(392));return Vl(b,k,z)}return Vl(b,k,z),b=b.responseState,o(k,b.startInlineScript),b.sentCompleteSegmentFunction?o(k,lr):(b.sentCompleteSegmentFunction=!0,o(k,$r)),o(k,b.segmentPrefix),te=u(te.toString(16)),o(k,te),o(k,Tr),o(k,b.placeholderPrefix),o(k,te),i(k,De)}function ds(b,k){n=new Uint8Array(512),r=0;try{var P=b.completedRootSegment;if(P!==null&&b.pendingRootTasks===0){pa(b,k,P),b.completedRootSegment=null;var z=b.responseState.bootstrapChunks;for(P=0;P<z.length-1;P++)o(k,z[P]);P<z.length&&i(k,z[P])}var te=b.clientRenderedBoundaries,J;for(J=0;J<te.length;J++){var le=te[J];z=k;var Se=b.responseState,Qe=le.id,rt=le.errorDigest,et=le.errorMessage,Mt=le.errorComponentStack;if(o(z,Se.startInlineScript),Se.sentClientRenderFunction?o(z,qe):(Se.sentClientRenderFunction=!0,o(z,kt)),Qe===null)throw Error(t(395));o(z,Qe),o(z,It),(rt||et||Mt)&&(o(z,hn),o(z,u(Ct(rt||"")))),(et||Mt)&&(o(z,hn),o(z,u(Ct(et||"")))),Mt&&(o(z,hn),o(z,u(Ct(Mt)))),i(z,Qt)}te.splice(0,J);var Wn=b.completedBoundaries;for(J=0;J<Wn.length;J++)Kl(b,k,Wn[J]);Wn.splice(0,J),s(k),n=new Uint8Array(512),r=0;var ur=b.partialBoundaries;for(J=0;J<ur.length;J++){var fr=ur[J];e:{te=b,le=k;var ha=fr.completedSegments;for(Se=0;Se<ha.length;Se++)if(!Yl(te,le,fr,ha[Se])){Se++,ha.splice(0,Se);var Ql=!1;break e}ha.splice(0,Se),Ql=!0}if(!Ql){b.destination=null,J++,ur.splice(0,J);return}}ur.splice(0,J);var vi=b.completedBoundaries;for(J=0;J<vi.length;J++)Kl(b,k,vi[J]);vi.splice(0,J)}finally{s(k),b.allPendingTasks===0&&b.pingedTasks.length===0&&b.clientRenderedBoundaries.length===0&&b.completedBoundaries.length===0&&k.close()}}function Gl(b,k){try{var P=b.abortableTasks;P.forEach(function(z){return $l(z,b,k)}),P.clear(),b.destination!==null&&ds(b,b.destination)}catch(z){gi(b,z),la(b,z)}}return wp.renderToReadableStream=function(b,k){return new Promise(function(P,z){var te,J,le=new Promise(function(et,Mt){J=et,te=Mt}),Se=us(b,Q(k?k.identifierPrefix:void 0,k?k.nonce:void 0,k?k.bootstrapScriptContent:void 0,k?k.bootstrapScripts:void 0,k?k.bootstrapModules:void 0),ne(k?k.namespaceURI:void 0),k?k.progressiveChunkSize:void 0,k?k.onError:void 0,J,function(){var et=new ReadableStream({type:"bytes",pull:function(Mt){if(Se.status===1)Se.status=2,m(Mt,Se.fatalError);else if(Se.status!==2&&Se.destination===null){Se.destination=Mt;try{ds(Se,Mt)}catch(Wn){gi(Se,Wn),la(Se,Wn)}}},cancel:function(){Gl(Se)}},{highWaterMark:0});et.allReady=le,P(et)},function(et){le.catch(function(){}),z(et)},te);if(k&&k.signal){var Qe=k.signal,rt=function(){Gl(Se,Qe.reason),Qe.removeEventListener("abort",rt)};Qe.addEventListener("abort",rt)}Hl(Se)})},wp.version="18.3.1",wp}var Bs={};/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-dom-server-legacy.browser.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var vb;function gk(){return vb||(vb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Y,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(a){{for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g<l;g++)d[g-1]=arguments[g];i("warn",a,d)}}function o(a){{for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g<l;g++)d[g-1]=arguments[g];i("error",a,d)}}function i(a,l,d){{var g=n.ReactDebugCurrentFrame,S=g.getStackAddendum();S!==""&&(l+="%s",d=d.concat([S]));var _=d.map(function(O){return String(O)});_.unshift("Warning: "+l),Function.prototype.apply.call(console[a],console,_)}}function s(a){a()}function c(a){}function u(a,l){f(a,l)}function f(a,l){return a.push(l)}function m(a){}function h(a){a.push(null)}function v(a){return a}function w(a){return a}function C(a,l){a.destroy(l)}function A(a){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&a[Symbol.toStringTag]||a.constructor.name||"Object";return d}}function x(a){try{return E(a),!1}catch{return!0}}function E(a){return""+a}function R(a,l){if(x(a))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,A(a)),E(a)}function I(a,l){if(x(a))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,A(a)),E(a)}function L(a){if(x(a))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",A(a)),E(a)}var M=Object.prototype.hasOwnProperty,U=0,j=1,W=2,H=3,G=4,q=5,pe=6,ie=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",se=ie+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("^["+ie+"]["+se+"]*$"),Ae={},Re={};function Q(a){return M.call(Re,a)?!0:M.call(Ae,a)?!1:xe.test(a)?(Re[a]=!0,!0):(Ae[a]=!0,o("Invalid attribute name: `%s`",a),!1)}function Ee(a,l,d,g){if(d!==null&&d.type===U)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var S=a.toLowerCase().slice(0,5);return S!=="data-"&&S!=="aria-"}default:return!1}}function ne(a){return ue.hasOwnProperty(a)?ue[a]:null}function re(a,l,d,g,S,_,O){this.acceptsBooleans=l===W||l===H||l===G,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=d,this.propertyName=a,this.type=l,this.sanitizeURL=_,this.removeEmptyString=O}var ue={},me=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];me.forEach(function(a){ue[a]=new re(a,U,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var l=a[0],d=a[1];ue[l]=new re(l,j,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){ue[a]=new re(a,W,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){ue[a]=new re(a,W,!1,a,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(a){ue[a]=new re(a,H,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){ue[a]=new re(a,H,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){ue[a]=new re(a,G,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){ue[a]=new re(a,pe,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){ue[a]=new re(a,q,!1,a.toLowerCase(),null,!1,!1)});var Te=/[\-\:]([a-z])/g,de=function(a){return a[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(a){var l=a.replace(Te,de);ue[l]=new re(l,j,!1,a,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(a){var l=a.replace(Te,de);ue[l]=new re(l,j,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var l=a.replace(Te,de);ue[l]=new re(l,j,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){ue[a]=new re(a,j,!1,a.toLowerCase(),null,!1,!1)});var ve="xlinkHref";ue[ve]=new re("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){ue[a]=new re(a,j,!1,a.toLowerCase(),null,!0,!0)});var _e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function je(a,l){return a+l.charAt(0).toUpperCase()+l.substring(1)}var ze=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(a){ze.forEach(function(l){_e[je(l,a)]=_e[a]})});var Be={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(a,l){Be[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ke(a,l){if(a.indexOf("-")===-1)return typeof l.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tt={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},xt={},zt=new RegExp("^(aria)-["+se+"]*$"),xn=new RegExp("^(aria)[A-Z]["+se+"]*$");function kr(a,l){{if(M.call(xt,l)&&xt[l])return!0;if(xn.test(l)){var d="aria-"+l.slice(4).toLowerCase(),g=tt.hasOwnProperty(d)?d:null;if(g==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),xt[l]=!0,!0;if(l!==g)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,g),xt[l]=!0,!0}if(zt.test(l)){var S=l.toLowerCase(),_=tt.hasOwnProperty(S)?S:null;if(_==null)return xt[l]=!0,!1;if(l!==_)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,_),xt[l]=!0,!0}}return!0}function Vt(a,l){{var d=[];for(var g in l){var S=kr(a,g);S||d.push(g)}var _=d.map(function(O){return"`"+O+"`"}).join(", ");d.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,a):d.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,a)}}function un(a,l){ke(a,l)||Vt(a,l)}var wn=!1;function Ne(a,l){{if(a!=="input"&&a!=="textarea"&&a!=="select")return;l!=null&&l.value===null&&!wn&&(wn=!0,a==="select"&&l.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a))}}var nt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ct=function(){};{var ut={},Dt=/^on./,Jt=/^on[^A-Z]/,Kt=new RegExp("^(aria)-["+se+"]*$"),wt=new RegExp("^(aria)[A-Z]["+se+"]*$");ct=function(a,l,d,g){if(M.call(ut,l)&&ut[l])return!0;var S=l.toLowerCase();if(S==="onfocusin"||S==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ut[l]=!0,!0;if(g!=null){var _=g.registrationNameDependencies,O=g.possibleRegistrationNames;if(_.hasOwnProperty(l))return!0;var $=O.hasOwnProperty(S)?O[S]:null;if($!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",l,$),ut[l]=!0,!0;if(Dt.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),ut[l]=!0,!0}else if(Dt.test(l))return Jt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),ut[l]=!0,!0;if(Kt.test(l)||wt.test(l))return!0;if(S==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ut[l]=!0,!0;if(S==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ut[l]=!0,!0;if(S==="is"&&d!==null&&d!==void 0&&typeof d!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),ut[l]=!0,!0;if(typeof d=="number"&&isNaN(d))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),ut[l]=!0,!0;var X=ne(l),fe=X!==null&&X.type===U;if(nt.hasOwnProperty(S)){var ye=nt[S];if(ye!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,ye),ut[l]=!0,!0}else if(!fe&&l!==S)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,S),ut[l]=!0,!0;return typeof d=="boolean"&&Ee(l,d,X)?(d?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,l,l,d,l):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,l,l,d,l,l,l),ut[l]=!0,!0):fe?!0:Ee(l,d,X)?(ut[l]=!0,!1):((d==="false"||d==="true")&&X!==null&&X.type===H&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',l,d),ut[l]=!0),!0)}}var Qn=function(a,l,d){{var g=[];for(var S in l){var _=ct(a,S,l[S],d);_||g.push(S)}var O=g.map(function($){return"`"+$+"`"}).join(", ");g.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",O,a):g.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",O,a)}};function qt(a,l,d){ke(a,l)||Qn(a,l,d)}var Zn=function(){};{var Sn=/^(?:webkit|moz|o)[A-Z]/,Cn=/^-ms-/,Xn=/-(.)/g,fn=/;\s*$/,dn={},Fr={},Zr=!1,an=!1,pn=function(a){return a.replace(Xn,function(l,d){return d.toUpperCase()})},Dn=function(a){dn.hasOwnProperty(a)&&dn[a]||(dn[a]=!0,o("Unsupported style property %s. Did you mean %s?",a,pn(a.replace(Cn,"ms-"))))},dt=function(a){dn.hasOwnProperty(a)&&dn[a]||(dn[a]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1)))},An=function(a,l){Fr.hasOwnProperty(l)&&Fr[l]||(Fr[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,l.replace(fn,"")))},Xr=function(a,l){Zr||(Zr=!0,o("`NaN` is an invalid value for the `%s` css style property.",a))},jr=function(a,l){an||(an=!0,o("`Infinity` is an invalid value for the `%s` css style property.",a))};Zn=function(a,l){a.indexOf("-")>-1?Dn(a):Sn.test(a)?dt(a):fn.test(l)&&An(a,l),typeof l=="number"&&(isNaN(l)?Xr(a,l):isFinite(l)||jr(a,l))}}var vt=Zn,Fn=/["'&<>]/;function ar(a){L(a);var l=""+a,d=Fn.exec(l);if(!d)return l;var g,S="",_,O=0;for(_=d.index;_<l.length;_++){switch(l.charCodeAt(_)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}O!==_&&(S+=l.substring(O,_)),O=_+1,S+=g}return O!==_?S+l.substring(O,_):S}function Yt(a){return typeof a=="boolean"||typeof a=="number"?""+a:ar(a)}var zr=/([A-Z])/g,Jr=/^ms-/;function vo(a){return a.replace(zr,"-$1").toLowerCase().replace(Jr,"-ms-")}var $t=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,sn=!1;function sr(a){!sn&&$t.test(a)&&(sn=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(a)))}var zo=Array.isArray;function jn(a){return zo(a)}var Br="<script>";function Ur(a,l,d,g,S){var _=a===void 0?"":a,O=Br,$=[];return{bootstrapChunks:$,startInlineScript:O,placeholderPrefix:_+"P:",segmentPrefix:_+"S:",boundaryPrefix:_+"B:",idPrefix:_,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var en=0,ln=1,zn=2,$r=3,lr=4,Tr=5,De=6,K=7;function he(a,l){return{insertionMode:a,selectedValue:l}}function Fe(a,l,d){switch(l){case"select":return he(ln,d.value!=null?d.value:d.defaultValue);case"svg":return he(zn,null);case"math":return he($r,null);case"foreignObject":return he(ln,null);case"table":return he(lr,null);case"thead":case"tbody":case"tfoot":return he(Tr,null);case"colgroup":return he(K,null);case"tr":return he(De,null)}return a.insertionMode>=lr||a.insertionMode===en?he(ln,null):a}var St=null;function kt(a){var l=a.nextSuspenseID++;return a.boundaryPrefix+l.toString(16)}function qe(a,l,d){var g=a.idPrefix,S=":"+g+"R"+l;return d>0&&(S+="H"+d.toString(32)),S+":"}function It(a){return Yt(a)}var Qt="<!-- -->";function hn(a,l,d,g){return l===""?g:(g&&a.push(Qt),a.push(It(l)),!0)}function _r(a,l,d,g){d&&g&&a.push(Qt)}var Ct=new Map;function Bn(a){var l=Ct.get(a);if(l!==void 0)return l;var d=Yt(vo(a));return Ct.set(a,d),d}var rn=' style="',qr=":",yo=";";function Bo(a,l,d){if(typeof d!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var S in d)if(M.call(d,S)){var _=d[S];if(!(_==null||typeof _=="boolean"||_==="")){var O=void 0,$=void 0,X=S.indexOf("--")===0;X?(O=Yt(S),I(_,S),$=Yt((""+_).trim())):(vt(S,_),O=Bn(S),typeof _=="number"?_!==0&&!M.call(_e,S)?$=_+"px":$=""+_:(I(_,S),$=Yt((""+_).trim()))),g?(g=!1,a.push(rn,O,qr,$)):a.push(yo,O,qr,$)}}g||a.push(En)}var Jn=" ",Rr='="',En='"',Uo='=""';function on(a,l,d,g){switch(d){case"style":{Bo(a,l,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var S=ne(d);if(S!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!S.acceptsBooleans)return}var _=S.attributeName,O=_;switch(S.type){case H:g&&a.push(Jn,O,Uo);return;case G:g===!0?a.push(Jn,O,Uo):g===!1||a.push(Jn,O,Rr,Yt(g),En);return;case q:isNaN(g)||a.push(Jn,O,Rr,Yt(g),En);break;case pe:!isNaN(g)&&g>=1&&a.push(Jn,O,Rr,Yt(g),En);break;default:S.sanitizeURL&&(R(g,_),g=""+g,sr(g)),a.push(Jn,O,Rr,Yt(g),En)}}else if(Q(d)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var $=d.toLowerCase().slice(0,5);if($!=="data-"&&$!=="aria-")return}}a.push(Jn,d,Rr,Yt(g),En)}}}var Un=">",y="/>";function T(a,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=l.__html;g!=null&&(L(g),a.push(""+g))}}var N=!1,B=!1,ee=!1,Z=!1,oe=!1,we=!1,We=!1;function Ge(a,l){{var d=a[l];if(d!=null){var g=jn(d);a.multiple&&!g?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!a.multiple&&g&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function He(a,l,d){Je("select",l),Ge(l,"value"),Ge(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!ee&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ee=!0),a.push(Or("select"));var g=null,S=null;for(var _ in l)if(M.call(l,_)){var O=l[_];if(O==null)continue;switch(_){case"children":g=O;break;case"dangerouslySetInnerHTML":S=O;break;case"defaultValue":case"value":break;default:on(a,d,_,O);break}}return a.push(Un),T(a,S,g),g}function pt(a){var l="";return e.Children.forEach(a,function(d){d!=null&&(l+=d,!oe&&typeof d!="string"&&typeof d!="number"&&(oe=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var kn=' selected=""';function Tn(a,l,d,g){var S=g.selectedValue;a.push(Or("option"));var _=null,O=null,$=null,X=null;for(var fe in l)if(M.call(l,fe)){var ye=l[fe];if(ye==null)continue;switch(fe){case"children":_=ye;break;case"selected":$=ye,We||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),We=!0);break;case"dangerouslySetInnerHTML":X=ye;break;case"value":O=ye;default:on(a,d,fe,ye);break}}if(S!=null){var Pe;if(O!==null?(R(O,"value"),Pe=""+O):(X!==null&&(we||(we=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pe=pt(_)),jn(S))for(var Ze=0;Ze<S.length;Ze++){R(S[Ze],"value");var yt=""+S[Ze];if(yt===Pe){a.push(kn);break}}else R(S,"select.value"),""+S===Pe&&a.push(kn)}else $&&a.push(kn);return a.push(Un),T(a,X,_),_}function _n(a,l,d){Je("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!B&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),B=!0),l.value!==void 0&&l.defaultValue!==void 0&&!N&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),N=!0),a.push(Or("input"));var g=null,S=null,_=null,O=null;for(var $ in l)if(M.call(l,$)){var X=l[$];if(X==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":O=X;break;case"defaultValue":S=X;break;case"checked":_=X;break;case"value":g=X;break;default:on(a,d,$,X);break}}return _!==null?on(a,d,"checked",_):O!==null&&on(a,d,"checked",O),g!==null?on(a,d,"value",g):S!==null&&on(a,d,"value",S),a.push(y),null}function eo(a,l,d){Je("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Z&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Z=!0),a.push(Or("textarea"));var g=null,S=null,_=null;for(var O in l)if(M.call(l,O)){var $=l[O];if($==null)continue;switch(O){case"children":_=$;break;case"value":g=$;break;case"defaultValue":S=$;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:on(a,d,O,$);break}}if(g===null&&S!==null&&(g=S),a.push(Un),_!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(_)){if(_.length>1)throw new Error("<textarea> can only have at most one child.");L(_[0]),g=""+_[0]}L(_),g=""+_}return typeof g=="string"&&g[0]===`
|
|
36
|
-
`&&a.push(xo),g!==null&&(R(g,"value"),a.push(It(""+g))),null}function Pr(a,l,d,g){a.push(Or(d));for(var S in l)if(M.call(l,S)){var _=l[S];if(_==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:on(a,g,S,_);break}}return a.push(y),null}function $o(a,l,d){a.push(Or("menuitem"));for(var g in l)if(M.call(l,g)){var S=l[g];if(S==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:on(a,d,g,S);break}}return a.push(Un),null}function to(a,l,d){a.push(Or("title"));var g=null;for(var S in l)if(M.call(l,S)){var _=l[S];if(_==null)continue;switch(S){case"children":g=_;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:on(a,d,S,_);break}}a.push(Un);{var O=Array.isArray(g)&&g.length<2?g[0]||null:g;Array.isArray(g)&&g.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):O!=null&&O.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):O!=null&&typeof O!="string"&&typeof O!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return g}function bo(a,l,d,g){a.push(Or(d));var S=null,_=null;for(var O in l)if(M.call(l,O)){var $=l[O];if($==null)continue;switch(O){case"children":S=$;break;case"dangerouslySetInnerHTML":_=$;break;default:on(a,g,O,$);break}}return a.push(Un),T(a,_,S),typeof S=="string"?(a.push(It(S)),null):S}function Wr(a,l,d,g){a.push(Or(d));var S=null,_=null;for(var O in l)if(M.call(l,O)){var $=l[O];if($==null)continue;switch(O){case"children":S=$;break;case"dangerouslySetInnerHTML":_=$;break;case"style":Bo(a,g,$);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Q(O)&&typeof $!="function"&&typeof $!="symbol"&&a.push(Jn,O,Rr,Yt($),En);break}}return a.push(Un),T(a,_,S),S}var xo=`
|
|
37
|
-
`;function Fu(a,l,d,g){a.push(Or(d));var S=null,_=null;for(var O in l)if(M.call(l,O)){var $=l[O];if($==null)continue;switch(O){case"children":S=$;break;case"dangerouslySetInnerHTML":_=$;break;default:on(a,g,O,$);break}}if(a.push(Un),_!=null){if(S!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof _!="object"||!("__html"in _))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var X=_.__html;X!=null&&(typeof X=="string"&&X.length>0&&X[0]===`
|
|
38
|
-
`?a.push(xo,X):(L(X),a.push(""+X)))}return typeof S=="string"&&S[0]===`
|
|
39
|
-
`&&a.push(xo),S}var ju=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,na=new Map;function Or(a){var l=na.get(a);if(l===void 0){if(!ju.test(a))throw new Error("Invalid tag: "+a);l="<"+a,na.set(a,l)}return l}var zu="<!DOCTYPE html>";function Hr(a,l,d,g,S){switch(un(l,d),Ne(l,d),qt(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),S.insertionMode!==zn&&S.insertionMode!==$r&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return He(a,d,g);case"option":return Tn(a,d,g,S);case"textarea":return eo(a,d,g);case"input":return _n(a,d,g);case"menuitem":return $o(a,d,g);case"title":return to(a,d,g);case"listing":case"pre":return Fu(a,d,l,g);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Pr(a,d,l,g);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return bo(a,d,l,g);case"html":return S.insertionMode===en&&a.push(zu),bo(a,d,l,g);default:return l.indexOf("-")===-1&&typeof d.is!="string"?bo(a,d,l,g):Wr(a,d,l,g)}}var ss="</",ra=">";function Tt(a,l,d){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.push(ss,l,ra)}}function wo(a,l){for(var d=l.bootstrapChunks,g=0;g<d.length-1;g++)u(a,d[g]);return g<d.length?f(a,d[g]):!0}var oa='<template id="',So='"></template>';function no(a,l,d){u(a,oa),u(a,l.placeholderPrefix);var g=d.toString(16);return u(a,g),f(a,So)}var ia="<!--$-->",ro='<!--$?--><template id="',cr='"></template>',ls="<!--$!-->",hi="<!--/$-->",Ll="<template",aa='"',Dl=' data-dgst="',Bu=' data-msg="',Uu=' data-stck="',sa="></template>";function Fl(a,l){return f(a,ia)}function mi(a,l,d){if(u(a,ro),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(a,d),f(a,cr)}function cs(a,l,d,g,S){var _;return _=f(a,ls),u(a,Ll),d&&(u(a,Dl),u(a,Yt(d)),u(a,aa)),g&&(u(a,Bu),u(a,Yt(g)),u(a,aa)),S&&(u(a,Uu),u(a,Yt(S)),u(a,aa)),_=f(a,sa),_}function $u(a,l){return f(a,hi)}function Wo(a,l){return f(a,hi)}function us(a,l){return f(a,hi)}var fs='<div hidden id="',Ho='">',gi="</div>",la='<svg aria-hidden="true" style="display:none" id="',jl='">',zl="</svg>",Bl='<math aria-hidden="true" style="display:none" id="',ca='">',$n="</math>",Ul='<table hidden id="',ua='">',Wu="</table>",$l='<table hidden><tbody id="',fa='">',Wl="</tbody></table>",Hl='<table hidden><tr id="',da='">',pa="</tr></table>",Vl='<table hidden><colgroup id="',Kl='">',Yl="</colgroup></table>";function ds(a,l,d,g){switch(d.insertionMode){case en:case ln:return u(a,fs),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,Ho);case zn:return u(a,la),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,jl);case $r:return u(a,Bl),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,ca);case lr:return u(a,Ul),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,ua);case Tr:return u(a,$l),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,fa);case De:return u(a,Hl),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,da);case K:return u(a,Vl),u(a,l.segmentPrefix),u(a,g.toString(16)),f(a,Kl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Gl(a,l){switch(l.insertionMode){case en:case ln:return f(a,gi);case zn:return f(a,zl);case $r:return f(a,$n);case lr:return f(a,Wu);case Tr:return f(a,Wl);case De:return f(a,pa);case K:return f(a,Yl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var b="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",k='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',P='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',z=b+';$RS("',te='$RS("',J='","',le='")<\/script>';function Se(a,l,d){u(a,l.startInlineScript),l.sentCompleteSegmentFunction?u(a,te):(l.sentCompleteSegmentFunction=!0,u(a,z)),u(a,l.segmentPrefix);var g=d.toString(16);return u(a,g),u(a,J),u(a,l.placeholderPrefix),u(a,g),f(a,le)}var Qe=k+';$RC("',rt='$RC("',et='","',Mt='")<\/script>';function Wn(a,l,d,g){if(u(a,l.startInlineScript),l.sentCompleteBoundaryFunction?u(a,rt):(l.sentCompleteBoundaryFunction=!0,u(a,Qe)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var S=g.toString(16);return u(a,d),u(a,et),u(a,l.segmentPrefix),u(a,S),f(a,Mt)}var ur=P+';$RX("',fr='$RX("',ha='"',Ql=")<\/script>",vi=",";function ym(a,l,d,g,S,_){if(u(a,l.startInlineScript),l.sentClientRenderFunction?u(a,fr):(l.sentClientRenderFunction=!0,u(a,ur)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(a,d),u(a,ha),(g||S||_)&&(u(a,vi),u(a,Hu(g||""))),(S||_)&&(u(a,vi),u(a,Hu(S||""))),_&&(u(a,vi),u(a,Hu(_))),f(a,Ql)}var bm=/[<\u2028\u2029]/g;function Hu(a){var l=JSON.stringify(a);return l.replace(bm,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function xm(a,l){var d=Ur(l);return{bootstrapChunks:d.bootstrapChunks,startInlineScript:d.startInlineScript,placeholderPrefix:d.placeholderPrefix,segmentPrefix:d.segmentPrefix,boundaryPrefix:d.boundaryPrefix,idPrefix:d.idPrefix,nextSuspenseID:d.nextSuspenseID,sentCompleteSegmentFunction:d.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:d.sentCompleteBoundaryFunction,sentClientRenderFunction:d.sentClientRenderFunction,generateStaticMarkup:a}}function wm(){return{insertionMode:ln,selectedValue:null}}function Nd(a,l,d,g){return d.generateStaticMarkup?(a.push(Yt(l)),!1):hn(a,l,d,g)}function Ld(a,l,d,g){if(!l.generateStaticMarkup)return _r(a,l,d,g)}function Sm(a,l){return l.generateStaticMarkup?!0:Fl(a)}function Cm(a,l,d,g,S){return l.generateStaticMarkup?!0:cs(a,l,d,g,S)}function Am(a,l){return l.generateStaticMarkup?!0:$u(a)}function Em(a,l){return l.generateStaticMarkup?!0:us(a)}var qn=Object.assign,km=Symbol.for("react.element"),Dd=Symbol.for("react.portal"),Zl=Symbol.for("react.fragment"),dr=Symbol.for("react.strict_mode"),Fd=Symbol.for("react.profiler"),Xl=Symbol.for("react.provider"),Jl=Symbol.for("react.context"),ql=Symbol.for("react.forward_ref"),ec=Symbol.for("react.suspense"),ps=Symbol.for("react.suspense_list"),hs=Symbol.for("react.memo"),ma=Symbol.for("react.lazy"),Vu=Symbol.for("react.scope"),Ku=Symbol.for("react.debug_trace_mode"),Yu=Symbol.for("react.legacy_hidden"),tc=Symbol.for("react.default_value"),jd=Symbol.iterator,Tm="@@iterator";function _m(a){if(a===null||typeof a!="object")return null;var l=jd&&a[jd]||a[Tm];return typeof l=="function"?l:null}function Rm(a,l,d){var g=a.displayName;if(g)return g;var S=l.displayName||l.name||"";return S!==""?d+"("+S+")":d}function Gu(a){return a.displayName||"Context"}function Wt(a){if(a==null)return null;if(typeof a.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Zl:return"Fragment";case Dd:return"Portal";case Fd:return"Profiler";case dr:return"StrictMode";case ec:return"Suspense";case ps:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case Jl:var l=a;return Gu(l)+".Consumer";case Xl:var d=a;return Gu(d._context)+".Provider";case ql:return Rm(a,a.render,"ForwardRef");case hs:var g=a.displayName||null;return g!==null?g:Wt(a.type)||"Memo";case ma:{var S=a,_=S._payload,O=S._init;try{return Wt(O(_))}catch{return null}}}return null}var ms=0,zd,Qu,Bt,ga,Zu,Xu,Ju;function qu(){}qu.__reactDisabledLog=!0;function Bd(){{if(ms===0){zd=console.log,Qu=console.info,Bt=console.warn,ga=console.error,Zu=console.group,Xu=console.groupCollapsed,Ju=console.groupEnd;var a={configurable:!0,enumerable:!0,value:qu,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}ms++}}function Ud(){{if(ms--,ms===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qn({},a,{value:zd}),info:qn({},a,{value:Qu}),warn:qn({},a,{value:Bt}),error:qn({},a,{value:ga}),group:qn({},a,{value:Zu}),groupCollapsed:qn({},a,{value:Xu}),groupEnd:qn({},a,{value:Ju})})}ms<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nc=n.ReactCurrentDispatcher,rc;function gs(a,l,d){{if(rc===void 0)try{throw Error()}catch(S){var g=S.stack.trim().match(/\n( *(at )?)/);rc=g&&g[1]||""}return`
|
|
40
|
-
`+rc+a}}var ef=!1,va;{var tf=typeof WeakMap=="function"?WeakMap:Map;va=new tf}function yi(a,l){if(!a||ef)return"";{var d=va.get(a);if(d!==void 0)return d}var g;ef=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=nc.current,nc.current=null,Bd();try{if(l){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(mn){g=mn}Reflect.construct(a,[],O)}else{try{O.call()}catch(mn){g=mn}a.call(O.prototype)}}else{try{throw Error()}catch(mn){g=mn}a()}}catch(mn){if(mn&&g&&typeof mn.stack=="string"){for(var $=mn.stack.split(`
|
|
41
|
-
`),X=g.stack.split(`
|
|
42
|
-
`),fe=$.length-1,ye=X.length-1;fe>=1&&ye>=0&&$[fe]!==X[ye];)ye--;for(;fe>=1&&ye>=0;fe--,ye--)if($[fe]!==X[ye]){if(fe!==1||ye!==1)do if(fe--,ye--,ye<0||$[fe]!==X[ye]){var Pe=`
|
|
43
|
-
`+$[fe].replace(" at new "," at ");return a.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",a.displayName)),typeof a=="function"&&va.set(a,Pe),Pe}while(fe>=1&&ye>=0);break}}}finally{ef=!1,nc.current=_,Ud(),Error.prepareStackTrace=S}var Ze=a?a.displayName||a.name:"",yt=Ze?gs(Ze):"";return typeof a=="function"&&va.set(a,yt),yt}function nf(a,l,d){return yi(a,!0)}function vs(a,l,d){return yi(a,!1)}function Pm(a){var l=a.prototype;return!!(l&&l.isReactComponent)}function ys(a,l,d){if(a==null)return"";if(typeof a=="function")return yi(a,Pm(a));if(typeof a=="string")return gs(a);switch(a){case ec:return gs("Suspense");case ps:return gs("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case ql:return vs(a.render);case hs:return ys(a.type,l,d);case ma:{var g=a,S=g._payload,_=g._init;try{return ys(_(S),l,d)}catch{}}}return""}var $d={},rf=n.ReactDebugCurrentFrame;function oc(a){if(a){var l=a._owner,d=ys(a.type,a._source,l?l.type:null);rf.setExtraStackFrame(d)}else rf.setExtraStackFrame(null)}function ic(a,l,d,g,S){{var _=Function.call.bind(M);for(var O in a)if(_(a,O)){var $=void 0;try{if(typeof a[O]!="function"){var X=Error((g||"React class")+": "+d+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}$=a[O](l,O,g,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fe){$=fe}$&&!($ instanceof Error)&&(oc(S),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",d,O,typeof $),oc(null)),$ instanceof Error&&!($.message in $d)&&($d[$.message]=!0,oc(S),o("Failed %s type: %s",d,$.message),oc(null))}}}var ac;ac={};var bs={};Object.freeze(bs);function xs(a,l){{var d=a.contextTypes;if(!d)return bs;var g={};for(var S in d)g[S]=l[S];{var _=Wt(a)||"Unknown";ic(d,g,"context",_)}return g}}function Wd(a,l,d,g){{if(typeof a.getChildContext!="function"){{var S=Wt(l)||"Unknown";ac[S]||(ac[S]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",S,S))}return d}var _=a.getChildContext();for(var O in _)if(!(O in g))throw new Error((Wt(l)||"Unknown")+'.getChildContext(): key "'+O+'" is not defined in childContextTypes.');{var $=Wt(l)||"Unknown";ic(g,_,"child context",$)}return qn({},d,_)}}var bi;bi={};var sc=null,Vo=null;function of(a){a.context._currentValue2=a.parentValue}function xi(a){a.context._currentValue2=a.value}function lc(a,l){if(a!==l){of(a);var d=a.parent,g=l.parent;if(d===null){if(g!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(g===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");lc(d,g)}xi(l)}}function Ko(a){of(a);var l=a.parent;l!==null&&Ko(l)}function cc(a){var l=a.parent;l!==null&&cc(l),xi(a)}function uc(a,l){of(a);var d=a.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===l.depth?lc(d,l):uc(d,l)}function ws(a,l){var d=l.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?lc(a,d):ws(a,d),xi(l)}function Ss(a){var l=Vo,d=a;l!==d&&(l===null?cc(d):d===null?Ko(l):l.depth===d.depth?lc(l,d):l.depth>d.depth?uc(l,d):ws(l,d),Vo=d)}function Hd(a,l){var d;d=a._currentValue2,a._currentValue2=l,a._currentRenderer2!==void 0&&a._currentRenderer2!==null&&a._currentRenderer2!==bi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer2=bi;var g=Vo,S={parent:g,depth:g===null?0:g.depth+1,context:a,parentValue:d,value:l};return Vo=S,S}function Vd(a){var l=Vo;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==a&&o("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===tc?l.context._currentValue2=l.context._defaultValue:l.context._currentValue2=d,a._currentRenderer2!==void 0&&a._currentRenderer2!==null&&a._currentRenderer2!==bi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer2=bi}return Vo=l.parent}function Kd(){return Vo}function Yo(a){var l=a._currentValue2;return l}function af(a){return a._reactInternals}function Om(a,l){a._reactInternals=l}var Yd={},ya={},Cs,sf,fc,dc,pc,ba,As,Es,hc;{Cs=new Set,sf=new Set,fc=new Set,As=new Set,dc=new Set,Es=new Set,hc=new Set;var ks=new Set;ba=function(a,l){if(!(a===null||typeof a=="function")){var d=l+"_"+a;ks.has(d)||(ks.add(d),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,a))}},pc=function(a,l){if(l===void 0){var d=Wt(a)||"Component";dc.has(d)||(dc.add(d),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function mc(a,l){{var d=a.constructor,g=d&&Wt(d)||"ReactClass",S=g+"."+l;if(Yd[S])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
44
|
-
|
|
45
|
-
Please check the code for the %s component.`,l,l,g),Yd[S]=!0}}var gc={isMounted:function(a){return!1},enqueueSetState:function(a,l,d){var g=af(a);g.queue===null?mc(a,"setState"):(g.queue.push(l),d!=null&&ba(d,"setState"))},enqueueReplaceState:function(a,l,d){var g=af(a);g.replace=!0,g.queue=[l],d!=null&&ba(d,"setState")},enqueueForceUpdate:function(a,l){var d=af(a);d.queue===null?mc(a,"forceUpdate"):l!=null&&ba(l,"setState")}};function lf(a,l,d,g,S){var _=d(S,g);pc(l,_);var O=_==null?g:qn({},g,_);return O}function Gd(a,l,d){var g=bs,S=a.contextType;if("contextType"in a){var _=S===null||S!==void 0&&S.$$typeof===Jl&&S._context===void 0;if(!_&&!hc.has(a)){hc.add(a);var O="";S===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof S!="object"?O=" However, it is set to a "+typeof S+".":S.$$typeof===Xl?O=" Did you accidentally pass the Context.Provider instead?":S._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(S).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Wt(a)||"Component",O)}}typeof S=="object"&&S!==null?g=Yo(S):g=d;var $=new a(l,g);{if(typeof a.getDerivedStateFromProps=="function"&&($.state===null||$.state===void 0)){var X=Wt(a)||"Component";Cs.has(X)||(Cs.add(X),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",X,$.state===null?"null":"undefined",X))}if(typeof a.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"){var fe=null,ye=null,Pe=null;if(typeof $.componentWillMount=="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0?fe="componentWillMount":typeof $.UNSAFE_componentWillMount=="function"&&(fe="UNSAFE_componentWillMount"),typeof $.componentWillReceiveProps=="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ye="componentWillReceiveProps":typeof $.UNSAFE_componentWillReceiveProps=="function"&&(ye="UNSAFE_componentWillReceiveProps"),typeof $.componentWillUpdate=="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0?Pe="componentWillUpdate":typeof $.UNSAFE_componentWillUpdate=="function"&&(Pe="UNSAFE_componentWillUpdate"),fe!==null||ye!==null||Pe!==null){var Ze=Wt(a)||"Component",yt=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";fc.has(Ze)||(fc.add(Ze),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
46
|
-
|
|
47
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
48
|
-
|
|
49
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
50
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,Ze,yt,fe!==null?`
|
|
51
|
-
`+fe:"",ye!==null?`
|
|
52
|
-
`+ye:"",Pe!==null?`
|
|
53
|
-
`+Pe:""))}}}return $}function Qd(a,l,d){{var g=Wt(l)||"Component",S=a.render;S||(l.prototype&&typeof l.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),a.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),a.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),a.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),l.contextType&&l.contextTypes&&!Es.has(l)&&(Es.add(l),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof a.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),l.prototype&&l.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Wt(l)||"A pure component"),typeof a.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof a.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof a.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof a.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var _=a.props!==d;a.props!==void 0&&_&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),a.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!sf.has(l)&&(sf.add(l),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Wt(l))),typeof a.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof a.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof l.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var O=a.state;O&&(typeof O!="object"||jn(O))&&o("%s.state: must be set to an object or null",g),typeof a.getChildContext=="function"&&typeof l.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function Zd(a,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var g=Wt(a)||"Unknown";ya[g]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
54
|
-
|
|
55
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
56
|
-
|
|
57
|
-
Please update the following components: %s`,g),ya[g]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Wt(a)||"Component"),gc.enqueueReplaceState(l,l.state,null))}function Im(a,l,d,g){if(a.queue!==null&&a.queue.length>0){var S=a.queue,_=a.replace;if(a.queue=null,a.replace=!1,_&&S.length===1)l.state=S[0];else{for(var O=_?S[0]:l.state,$=!0,X=_?1:0;X<S.length;X++){var fe=S[X],ye=typeof fe=="function"?fe.call(l,O,d,g):fe;ye!=null&&($?($=!1,O=qn({},O,ye)):qn(O,ye))}l.state=O}}else a.queue=null}function Xd(a,l,d,g){Qd(a,l,d);var S=a.state!==void 0?a.state:null;a.updater=gc,a.props=d,a.state=S;var _={queue:[],replace:!1};Om(a,_);var O=l.contextType;if(typeof O=="object"&&O!==null?a.context=Yo(O):a.context=g,a.state===d){var $=Wt(l)||"Component";As.has($)||(As.add($),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",$))}var X=l.getDerivedStateFromProps;typeof X=="function"&&(a.state=lf(a,l,X,S,d)),typeof l.getDerivedStateFromProps!="function"&&typeof a.getSnapshotBeforeUpdate!="function"&&(typeof a.UNSAFE_componentWillMount=="function"||typeof a.componentWillMount=="function")&&(Zd(l,a),Im(_,a,d,g))}var Mm={id:1,overflow:""};function Nm(a){var l=a.overflow,d=a.id,g=d&~Lm(d);return g.toString(32)+l}function cf(a,l,d){var g=a.id,S=a.overflow,_=Ts(g)-1,O=g&~(1<<_),$=d+1,X=Ts(l)+_;if(X>30){var fe=_-_%5,ye=(1<<fe)-1,Pe=(O&ye).toString(32),Ze=O>>fe,yt=_-fe,mn=Ts(l)+yt,Ti=$<<yt,_i=Ti|Ze,To=Pe+S;return{id:1<<mn|_i,overflow:To}}else{var ka=$<<_,pg=ka|O,ck=S;return{id:1<<X|pg,overflow:ck}}}function Ts(a){return 32-Dm(a)}function Lm(a){return 1<<Ts(a)-1}var Dm=Math.clz32?Math.clz32:Fm,uf=Math.log,vc=Math.LN2;function Fm(a){var l=a>>>0;return l===0?32:31-(uf(l)/vc|0)|0}function jm(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var zm=typeof Object.is=="function"?Object.is:jm,Co=null,ff=null,yc=null,Ft=null,pr=!1,xa=!1,wi=0,ht=null,Go=0,bc=25,hr=!1,mr;function oo(){if(Co===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
58
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
59
|
-
2. You might be breaking the Rules of Hooks
|
|
60
|
-
3. You might have more than one copy of React in the same app
|
|
61
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return hr&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Co}function Bm(a,l){if(l===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",mr),!1;a.length!==l.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
62
|
-
|
|
63
|
-
Previous: %s
|
|
64
|
-
Incoming: %s`,mr,"["+a.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<a.length;d++)if(!zm(a[d],l[d]))return!1;return!0}function Vr(){if(Go>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Qo(){return Ft===null?yc===null?(pr=!1,yc=Ft=Vr()):(pr=!0,Ft=yc):Ft.next===null?(pr=!1,Ft=Ft.next=Vr()):(pr=!0,Ft=Ft.next),Ft}function Si(a,l){Co=l,ff=a,hr=!1,wi=0}function Um(a,l,d,g){for(;xa;)xa=!1,wi=0,Go+=1,Ft=null,d=a(l,g);return _s(),d}function df(){var a=wi!==0;return a}function _s(){hr=!1,Co=null,ff=null,xa=!1,yc=null,Go=0,ht=null,Ft=null}function $m(a){return hr&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Yo(a)}function Wm(a){return mr="useContext",oo(),Yo(a)}function xc(a,l){return typeof l=="function"?l(a):l}function pf(a){return mr="useState",Jd(xc,a)}function Jd(a,l,d){if(a!==xc&&(mr="useReducer"),Co=oo(),Ft=Qo(),pr){var g=Ft.queue,S=g.dispatch;if(ht!==null){var _=ht.get(g);if(_!==void 0){ht.delete(g);var O=Ft.memoizedState,$=_;do{var X=$.action;hr=!0,O=a(O,X),hr=!1,$=$.next}while($!==null);return Ft.memoizedState=O,[O,S]}}return[Ft.memoizedState,S]}else{hr=!0;var fe;a===xc?fe=typeof l=="function"?l():l:fe=d!==void 0?d(l):l,hr=!1,Ft.memoizedState=fe;var ye=Ft.queue={last:null,dispatch:null},Pe=ye.dispatch=ep.bind(null,Co,ye);return[Ft.memoizedState,Pe]}}function qd(a,l){Co=oo(),Ft=Qo();var d=l===void 0?null:l;if(Ft!==null){var g=Ft.memoizedState;if(g!==null&&d!==null){var S=g[1];if(Bm(d,S))return g[0]}}hr=!0;var _=a();return hr=!1,Ft.memoizedState=[_,d],_}function hf(a){Co=oo(),Ft=Qo();var l=Ft.memoizedState;if(l===null){var d={current:a};return Object.seal(d),Ft.memoizedState=d,d}else return l}function Hm(a,l){mr="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function ep(a,l,d){if(Go>=bc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===Co){xa=!0;var g={action:d,next:null};ht===null&&(ht=new Map);var S=ht.get(l);if(S===void 0)ht.set(l,g);else{for(var _=S;_.next!==null;)_=_.next;_.next=g}}}function tp(a,l){return qd(function(){return a},l)}function Vm(a,l,d){return oo(),l(a._source)}function Km(a,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Ym(a){return oo(),a}function Gm(){throw new Error("startTransition cannot be called during server rendering.")}function Qm(){return oo(),[!1,Gm]}function Zm(){var a=ff,l=Nm(a.treeContext),d=mf;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var g=wi++;return qe(d,l,g)}function wc(){}var np={readContext:$m,useContext:Wm,useMemo:qd,useReducer:Jd,useRef:hf,useState:pf,useInsertionEffect:wc,useLayoutEffect:Hm,useCallback:tp,useImperativeHandle:wc,useEffect:wc,useDebugValue:wc,useDeferredValue:Ym,useTransition:Qm,useId:Zm,useMutableSource:Vm,useSyncExternalStore:Km},mf=null;function rp(a){mf=a}function Sc(a){try{var l="",d=a;do{switch(d.tag){case 0:l+=gs(d.type,null,null);break;case 1:l+=vs(d.type,null,null);break;case 2:l+=nf(d.type,null,null);break}d=d.parent}while(d);return l}catch(g){return`
|
|
65
|
-
Error generating stack: `+g.message+`
|
|
66
|
-
`+g.stack}}var Cc=n.ReactCurrentDispatcher,Rs=n.ReactDebugCurrentFrame,Ac=0,wa=1,Ec=2,kc=3,Tc=4,Sa=0,gf=1,Ci=2,op=12800;function Xm(a){return console.error(a),null}function Ca(){}function Aa(a,l,d,g,S,_,O,$,X){var fe=[],ye=new Set,Pe={destination:null,responseState:l,progressiveChunkSize:g===void 0?op:g,status:Sa,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ye,pingedTasks:fe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?Xm:S,onAllReady:Ca,onShellReady:O===void 0?Ca:O,onShellError:Ca,onFatalError:Ca},Ze=_c(Pe,0,null,d,!1,!1);Ze.parentFlushed=!0;var yt=Ai(Pe,a,null,Ze,ye,bs,sc,Mm);return fe.push(yt),Pe}function Jm(a,l){var d=a.pingedTasks;d.push(l),d.length===1&&s(function(){return kf(a)})}function qm(a,l){return{id:St,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ai(a,l,d,g,S,_,O,$){a.allPendingTasks++,d===null?a.pendingRootTasks++:d.pendingTasks++;var X={node:l,ping:function(){return Jm(a,X)},blockedBoundary:d,blockedSegment:g,abortSet:S,legacyContext:_,context:O,treeContext:$};return X.componentStack=null,S.add(X),X}function _c(a,l,d,g,S,_){return{status:Ac,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:d,lastPushedText:S,textEmbedded:_}}var Ao=null;function vf(){return Ao===null||Ao.componentStack===null?"":Sc(Ao.componentStack)}function Ei(a,l){a.componentStack={tag:0,parent:a.componentStack,type:l}}function Ps(a,l){a.componentStack={tag:1,parent:a.componentStack,type:l}}function Eo(a,l){a.componentStack={tag:2,parent:a.componentStack,type:l}}function io(a){a.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):a.componentStack=a.componentStack.parent}var ko=null;function Rc(a,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var g=ko||vf();ko=null,a.errorMessage=d,a.errorComponentStack=g}}function Os(a,l){var d=a.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function Kr(a,l){var d=a.onShellError;d(l);var g=a.onFatalError;g(l),a.destination!==null?(a.status=Ci,C(a.destination,l)):(a.status=gf,a.fatalError=l)}function Is(a,l,d){Ei(l,"Suspense");var g=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,O=d.children,$=new Set,X=qm(a,$),fe=S.chunks.length,ye=_c(a,fe,X,S.formatContext,!1,!1);S.children.push(ye),S.lastPushedText=!1;var Pe=_c(a,0,null,S.formatContext,!1,!1);Pe.parentFlushed=!0,l.blockedBoundary=X,l.blockedSegment=Pe;try{if(Hn(a,l,O),Ld(Pe.chunks,a.responseState,Pe.lastPushedText,Pe.textEmbedded),Pe.status=wa,Ea(X,Pe),X.pendingTasks===0){io(l);return}}catch(yt){Pe.status=Tc,X.forceClientRender=!0,X.errorDigest=Os(a,yt),Rc(X,yt)}finally{l.blockedBoundary=g,l.blockedSegment=S}var Ze=Ai(a,_,g,ye,$,l.legacyContext,l.context,l.treeContext);Ze.componentStack=l.componentStack,a.pingedTasks.push(Ze),io(l)}function yf(a,l,d,g){Ei(l,d);var S=l.blockedSegment,_=Hr(S.chunks,d,g,a.responseState,S.formatContext);S.lastPushedText=!1;var O=S.formatContext;S.formatContext=Fe(O,d,g),Hn(a,l,_),S.formatContext=O,Tt(S.chunks,d),S.lastPushedText=!1,io(l)}function Ms(a){return a.prototype&&a.prototype.isReactComponent}function Ns(a,l,d,g,S){var _={};Si(l,_);var O=d(g,S);return Um(d,g,O,S)}function ip(a,l,d,g,S){var _=d.render();d.props!==S&&(xf||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Wt(g)||"a component"),xf=!0);{var O=g.childContextTypes;if(O!=null){var $=l.legacyContext,X=Wd(d,g,$,O);l.legacyContext=X,gr(a,l,_),l.legacyContext=$;return}}gr(a,l,_)}function eg(a,l,d,g){Eo(l,d);var S=xs(d,l.legacyContext),_=Gd(d,g,S);Xd(_,d,g,S),ip(a,l,_,d,g),io(l)}var ap={},Ls={},bf={},sp={},xf=!1,Ds={},wf=!1,Sf=!1,Cf=!1;function lp(a,l,d,g){var S;if(S=xs(d,l.legacyContext),Ps(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=Wt(d)||"Unknown";ap[_]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),ap[_]=!0)}var O=Ns(a,l,d,g,S),$=df();if(typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){var X=Wt(d)||"Unknown";Ls[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),Ls[X]=!0)}if(typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){{var fe=Wt(d)||"Unknown";Ls[fe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",fe,fe,fe),Ls[fe]=!0)}Xd(O,d,g,S),ip(a,l,O,d,g)}else if(cp(d),$){var ye=l.treeContext,Pe=1,Ze=0;l.treeContext=cf(ye,Pe,Ze);try{gr(a,l,O)}finally{l.treeContext=ye}}else gr(a,l,O);io(l)}function cp(a){{if(a&&a.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),a.defaultProps!==void 0){var l=Wt(a)||"Unknown";Ds[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Ds[l]=!0)}if(typeof a.getDerivedStateFromProps=="function"){var d=Wt(a)||"Unknown";sp[d]||(o("%s: Function components do not support getDerivedStateFromProps.",d),sp[d]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var g=Wt(a)||"Unknown";bf[g]||(o("%s: Function components do not support contextType.",g),bf[g]=!0)}}}function Af(a,l){if(a&&a.defaultProps){var d=qn({},l),g=a.defaultProps;for(var S in g)d[S]===void 0&&(d[S]=g[S]);return d}return l}function up(a,l,d,g,S){Ps(l,d.render);var _=Ns(a,l,d.render,g,S),O=df();if(O){var $=l.treeContext,X=1,fe=0;l.treeContext=cf($,X,fe);try{gr(a,l,_)}finally{l.treeContext=$}}else gr(a,l,_);io(l)}function tg(a,l,d,g,S){var _=d.type,O=Af(_,g);Ef(a,l,_,O,S)}function ng(a,l,d,g){d._context===void 0?d!==d.Consumer&&(Cf||(Cf=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=g.children;typeof S!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=Yo(d),O=S(_);gr(a,l,O)}function fp(a,l,d,g){var S=d._context,_=g.value,O=g.children,$;$=l.context,l.context=Hd(S,_),gr(a,l,O),l.context=Vd(S),$!==l.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function rg(a,l,d,g,S){Ei(l,"Lazy");var _=d._payload,O=d._init,$=O(_),X=Af($,g);Ef(a,l,$,X,S),io(l)}function Ef(a,l,d,g,S){if(typeof d=="function")if(Ms(d)){eg(a,l,d,g);return}else{lp(a,l,d,g);return}if(typeof d=="string"){yf(a,l,d,g);return}switch(d){case Yu:case Ku:case dr:case Fd:case Zl:{gr(a,l,g.children);return}case ps:{Ei(l,"SuspenseList"),gr(a,l,g.children),io(l);return}case Vu:throw new Error("ReactDOMServer does not yet support scope components.");case ec:{Is(a,l,g);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case ql:{up(a,l,d,g,S);return}case hs:{tg(a,l,d,g,S);return}case Xl:{fp(a,l,d,g);return}case Jl:{ng(a,l,d,g);return}case ma:{rg(a,l,d,g);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function og(a,l){typeof Symbol=="function"&&a[Symbol.toStringTag]==="Generator"&&(wf||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wf=!0),a.entries===l&&(Sf||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Sf=!0)}function gr(a,l,d){try{return ig(a,l,d)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(ko=ko!==null?ko:vf()),g}}function ig(a,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case km:{var g=d,S=g.type,_=g.props,O=g.ref;Ef(a,l,S,_,O);return}case Dd:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case ma:{var $=d,X=$._payload,fe=$._init,ye;try{ye=fe(X)}catch(ka){throw typeof ka=="object"&&ka!==null&&typeof ka.then=="function"&&Ei(l,"Lazy"),ka}gr(a,l,ye);return}}if(jn(d)){Pc(a,l,d);return}var Pe=_m(d);if(Pe){og(d,Pe);var Ze=Pe.call(d);if(Ze){var yt=Ze.next();if(!yt.done){var mn=[];do mn.push(yt.value),yt=Ze.next();while(!yt.done);Pc(a,l,mn);return}return}}var Ti=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(Ti==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":Ti)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var _i=l.blockedSegment;_i.lastPushedText=Nd(l.blockedSegment.chunks,d,a.responseState,_i.lastPushedText);return}if(typeof d=="number"){var To=l.blockedSegment;To.lastPushedText=Nd(l.blockedSegment.chunks,""+d,a.responseState,To.lastPushedText);return}typeof d=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Pc(a,l,d){for(var g=d.length,S=0;S<g;S++){var _=l.treeContext;l.treeContext=cf(_,g,S);try{Hn(a,l,d[S])}finally{l.treeContext=_}}}function ag(a,l,d){var g=l.blockedSegment,S=g.chunks.length,_=_c(a,S,null,g.formatContext,g.lastPushedText,!0);g.children.push(_),g.lastPushedText=!1;var O=Ai(a,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(O.componentStack=l.componentStack.parent);var $=O.ping;d.then($,$)}function Hn(a,l,d){var g=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,O=null;O=l.componentStack;try{return gr(a,l,d)}catch($){if(_s(),typeof $=="object"&&$!==null&&typeof $.then=="function"){ag(a,l,$),l.blockedSegment.formatContext=g,l.legacyContext=S,l.context=_,Ss(_),l.componentStack=O;return}else throw l.blockedSegment.formatContext=g,l.legacyContext=S,l.context=_,Ss(_),l.componentStack=O,$}}function sg(a,l,d,g){var S=Os(a,g);if(l===null?Kr(a,g):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,Rc(l,g),l.parentFlushed&&a.clientRenderedBoundaries.push(l))),a.allPendingTasks--,a.allPendingTasks===0){var _=a.onAllReady;_()}}function dp(a){var l=this,d=a.blockedBoundary,g=a.blockedSegment;g.status=kc,hp(l,d,g)}function pp(a,l,d){var g=a.blockedBoundary,S=a.blockedSegment;if(S.status=kc,g===null)l.allPendingTasks--,l.status!==Ci&&(l.status=Ci,l.destination!==null&&h(l.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;g.errorDigest=l.onError(_);{var O="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=O+_.message:_=O+String(_);var $=Ao;Ao=a;try{Rc(g,_)}finally{Ao=$}}g.parentFlushed&&l.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(fe){return pp(fe,l,d)}),g.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var X=l.onAllReady;X()}}}function Ea(a,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===wa&&Ea(a,d)}else{var g=a.completedSegments;g.push(l)}}function hp(a,l,d){if(l===null){if(d.parentFlushed){if(a.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");a.completedRootSegment=d}if(a.pendingRootTasks--,a.pendingRootTasks===0){a.onShellError=Ca;var g=a.onShellReady;g()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===wa&&Ea(l,d),l.parentFlushed&&a.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(dp,a),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===wa){Ea(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&a.partialBoundaries.push(l)}}if(a.allPendingTasks--,a.allPendingTasks===0){var _=a.onAllReady;_()}}function lg(a,l){var d=l.blockedSegment;if(d.status===Ac){Ss(l.context);var g=null;g=Ao,Ao=l;try{gr(a,l,l.node),Ld(d.chunks,a.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=wa,hp(a,l.blockedBoundary,d)}catch(_){if(_s(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=Tc,sg(a,l.blockedBoundary,d,_)}finally{Ao=g}}}function kf(a){if(a.status!==Ci){var l=Kd(),d=Cc.current;Cc.current=np;var g;g=Rs.getCurrentStack,Rs.getCurrentStack=vf;var S=mf;rp(a.responseState);try{var _=a.pingedTasks,O;for(O=0;O<_.length;O++){var $=_[O];lg(a,$)}_.splice(0,O),a.destination!==null&&Ic(a,a.destination)}catch(X){Os(a,X),Kr(a,X)}finally{rp(S),Cc.current=d,Rs.getCurrentStack=g,d===np&&Ss(l)}}}function ki(a,l,d){switch(d.parentFlushed=!0,d.status){case Ac:{var g=d.id=a.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,no(l,a.responseState,g)}case wa:{d.status=Ec;for(var S=!0,_=d.chunks,O=0,$=d.children,X=0;X<$.length;X++){for(var fe=$[X];O<fe.index;O++)u(l,_[O]);S=Fs(a,l,fe)}for(;O<_.length-1;O++)u(l,_[O]);return O<_.length&&(S=f(l,_[O])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Fs(a,l,d){var g=d.boundary;if(g===null)return ki(a,l,d);if(g.parentFlushed=!0,g.forceClientRender)return Cm(l,a.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),ki(a,l,d),Em(l,a.responseState);if(g.pendingTasks>0){g.rootSegmentID=a.nextSegmentId++,g.completedSegments.length>0&&a.partialBoundaries.push(g);var S=g.id=kt(a.responseState);return mi(l,a.responseState,S),ki(a,l,d),Wo(l,a.responseState)}else{if(g.byteSize>a.progressiveChunkSize)return g.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(g),mi(l,a.responseState,g.id),ki(a,l,d),Wo(l,a.responseState);Sm(l,a.responseState);var _=g.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var O=_[0];return Fs(a,l,O),Am(l,a.responseState)}}function cg(a,l,d){return ym(l,a.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function Tf(a,l,d){return ds(l,a.responseState,d.formatContext,d.id),Fs(a,l,d),Gl(l,d.formatContext)}function js(a,l,d){for(var g=d.completedSegments,S=0;S<g.length;S++){var _=g[S];mp(a,l,d,_)}return g.length=0,Wn(l,a.responseState,d.id,d.rootSegmentID)}function Oc(a,l,d){for(var g=d.completedSegments,S=0;S<g.length;S++){var _=g[S];if(!mp(a,l,d,_))return S++,g.splice(0,S),!1}return g.splice(0,S),!0}function mp(a,l,d,g){if(g.status===Ec)return!0;var S=g.id;if(S===-1){var _=g.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Tf(a,l,g)}else return Tf(a,l,g),Se(l,a.responseState,S)}function Ic(a,l){try{var d=a.completedRootSegment;d!==null&&a.pendingRootTasks===0&&(Fs(a,l,d),a.completedRootSegment=null,wo(l,a.responseState));var g=a.clientRenderedBoundaries,S;for(S=0;S<g.length;S++){var _=g[S];if(!cg(a,l,_)){a.destination=null,S++,g.splice(0,S);return}}g.splice(0,S);var O=a.completedBoundaries;for(S=0;S<O.length;S++){var $=O[S];if(!js(a,l,$)){a.destination=null,S++,O.splice(0,S);return}}O.splice(0,S);var X=a.partialBoundaries;for(S=0;S<X.length;S++){var fe=X[S];if(!Oc(a,l,fe)){a.destination=null,S++,X.splice(0,S);return}}X.splice(0,S);var ye=a.completedBoundaries;for(S=0;S<ye.length;S++){var Pe=ye[S];if(!js(a,l,Pe)){a.destination=null,S++,ye.splice(0,S);return}}ye.splice(0,S)}finally{a.allPendingTasks===0&&a.pingedTasks.length===0&&a.clientRenderedBoundaries.length===0&&a.completedBoundaries.length===0&&(a.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),h(l))}}function gp(a){s(function(){return kf(a)})}function ug(a,l){if(a.status===gf){a.status=Ci,C(l,a.fatalError);return}if(a.status!==Ci&&a.destination===null){a.destination=l;try{Ic(a,l)}catch(d){Os(a,d),Kr(a,d)}}}function vp(a,l){try{var d=a.abortableTasks;d.forEach(function(g){return pp(g,a,l)}),d.clear(),a.destination!==null&&Ic(a,a.destination)}catch(g){Os(a,g),Kr(a,g)}}function _f(){}function yp(a,l,d,g){var S=!1,_=null,O="",$={push:function(Pe){return Pe!==null&&(O+=Pe),!0},destroy:function(Pe){S=!0,_=Pe}},X=!1;function fe(){X=!0}var ye=Aa(a,xm(d,l?l.identifierPrefix:void 0),wm(),1/0,_f,void 0,fe);if(gp(ye),vp(ye,g),ug(ye,$),S)throw _;if(!X)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return O}function fg(a,l){return yp(a,l,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function bp(a,l){return yp(a,l,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function dg(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function p(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Bs.renderToNodeStream=dg,Bs.renderToStaticMarkup=bp,Bs.renderToStaticNodeStream=p,Bs.renderToString=fg,Bs.version=t})()),Bs}var Sp={};/**
|
|
67
|
-
* @license React
|
|
68
|
-
* react-dom-server.browser.development.js
|
|
69
|
-
*
|
|
70
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var yb;function vk(){return yb||(yb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Y,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(p){{for(var a=arguments.length,l=new Array(a>1?a-1:0),d=1;d<a;d++)l[d-1]=arguments[d];i("warn",p,l)}}function o(p){{for(var a=arguments.length,l=new Array(a>1?a-1:0),d=1;d<a;d++)l[d-1]=arguments[d];i("error",p,l)}}function i(p,a,l){{var d=n.ReactDebugCurrentFrame,g=d.getStackAddendum();g!==""&&(a+="%s",l=l.concat([g]));var S=l.map(function(_){return String(_)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[p],console,S)}}function s(p){p()}var c=512,u=null,f=0;function m(p){u=new Uint8Array(c),f=0}function h(p,a){if(a.length!==0){if(a.length>c){f>0&&(p.enqueue(new Uint8Array(u.buffer,0,f)),u=new Uint8Array(c),f=0),p.enqueue(a);return}var l=a,d=u.length-f;d<l.length&&(d===0?p.enqueue(u):(u.set(l.subarray(0,d),f),p.enqueue(u),l=l.subarray(d)),u=new Uint8Array(c),f=0),u.set(l,f),f+=l.length}}function v(p,a){return h(p,a),!0}function w(p){u&&f>0&&(p.enqueue(new Uint8Array(u.buffer,0,f)),u=null,f=0)}function C(p){p.close()}var A=new TextEncoder;function x(p){return A.encode(p)}function E(p){return A.encode(p)}function R(p,a){typeof p.error=="function"?p.error(a):p.close()}function I(p){{var a=typeof Symbol=="function"&&Symbol.toStringTag,l=a&&p[Symbol.toStringTag]||p.constructor.name||"Object";return l}}function L(p){try{return M(p),!1}catch{return!0}}function M(p){return""+p}function U(p,a){if(L(p))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,I(p)),M(p)}function j(p,a){if(L(p))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,I(p)),M(p)}function W(p){if(L(p))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",I(p)),M(p)}var H=Object.prototype.hasOwnProperty,G=0,q=1,pe=2,ie=3,se=4,xe=5,Ae=6,Re=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=Re+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("^["+Re+"]["+Q+"]*$"),ne={},re={};function ue(p){return H.call(re,p)?!0:H.call(ne,p)?!1:Ee.test(p)?(re[p]=!0,!0):(ne[p]=!0,o("Invalid attribute name: `%s`",p),!1)}function me(p,a,l,d){if(l!==null&&l.type===G)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(l!==null)return!l.acceptsBooleans;var g=p.toLowerCase().slice(0,5);return g!=="data-"&&g!=="aria-"}default:return!1}}function Te(p){return ve.hasOwnProperty(p)?ve[p]:null}function de(p,a,l,d,g,S,_){this.acceptsBooleans=a===pe||a===ie||a===se,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=p,this.type=a,this.sanitizeURL=S,this.removeEmptyString=_}var ve={},_e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];_e.forEach(function(p){ve[p]=new de(p,G,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var a=p[0],l=p[1];ve[a]=new de(a,q,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){ve[p]=new de(p,pe,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){ve[p]=new de(p,pe,!1,p,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(p){ve[p]=new de(p,ie,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){ve[p]=new de(p,ie,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){ve[p]=new de(p,se,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){ve[p]=new de(p,Ae,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){ve[p]=new de(p,xe,!1,p.toLowerCase(),null,!1,!1)});var je=/[\-\:]([a-z])/g,ze=function(p){return p[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(p){var a=p.replace(je,ze);ve[a]=new de(a,q,!1,p,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(p){var a=p.replace(je,ze);ve[a]=new de(a,q,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var a=p.replace(je,ze);ve[a]=new de(a,q,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){ve[p]=new de(p,q,!1,p.toLowerCase(),null,!1,!1)});var Be="xlinkHref";ve[Be]=new de("xlinkHref",q,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){ve[p]=new de(p,q,!1,p.toLowerCase(),null,!0,!0)});var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ke(p,a){return p+a.charAt(0).toUpperCase()+a.substring(1)}var tt=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(p){tt.forEach(function(a){Je[ke(a,p)]=Je[p]})});var xt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function zt(p,a){xt[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function xn(p,a){if(p.indexOf("-")===-1)return typeof a.is=="string";switch(p){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kr={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vt={},un=new RegExp("^(aria)-["+Q+"]*$"),wn=new RegExp("^(aria)[A-Z]["+Q+"]*$");function Ne(p,a){{if(H.call(Vt,a)&&Vt[a])return!0;if(wn.test(a)){var l="aria-"+a.slice(4).toLowerCase(),d=kr.hasOwnProperty(l)?l:null;if(d==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Vt[a]=!0,!0;if(a!==d)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,d),Vt[a]=!0,!0}if(un.test(a)){var g=a.toLowerCase(),S=kr.hasOwnProperty(g)?g:null;if(S==null)return Vt[a]=!0,!1;if(a!==S)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,S),Vt[a]=!0,!0}}return!0}function nt(p,a){{var l=[];for(var d in a){var g=Ne(p,d);g||l.push(d)}var S=l.map(function(_){return"`"+_+"`"}).join(", ");l.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,p):l.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,p)}}function ct(p,a){xn(p,a)||nt(p,a)}var ut=!1;function Dt(p,a){{if(p!=="input"&&p!=="textarea"&&p!=="select")return;a!=null&&a.value===null&&!ut&&(ut=!0,p==="select"&&a.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",p):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",p))}}var Jt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Kt=function(){};{var wt={},Qn=/^on./,qt=/^on[^A-Z]/,Zn=new RegExp("^(aria)-["+Q+"]*$"),Sn=new RegExp("^(aria)[A-Z]["+Q+"]*$");Kt=function(p,a,l,d){if(H.call(wt,a)&&wt[a])return!0;var g=a.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),wt[a]=!0,!0;if(d!=null){var S=d.registrationNameDependencies,_=d.possibleRegistrationNames;if(S.hasOwnProperty(a))return!0;var O=_.hasOwnProperty(g)?_[g]:null;if(O!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",a,O),wt[a]=!0,!0;if(Qn.test(a))return o("Unknown event handler property `%s`. It will be ignored.",a),wt[a]=!0,!0}else if(Qn.test(a))return qt.test(a)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),wt[a]=!0,!0;if(Zn.test(a)||Sn.test(a))return!0;if(g==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),wt[a]=!0,!0;if(g==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),wt[a]=!0,!0;if(g==="is"&&l!==null&&l!==void 0&&typeof l!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),wt[a]=!0,!0;if(typeof l=="number"&&isNaN(l))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),wt[a]=!0,!0;var $=Te(a),X=$!==null&&$.type===G;if(Jt.hasOwnProperty(g)){var fe=Jt[g];if(fe!==a)return o("Invalid DOM property `%s`. Did you mean `%s`?",a,fe),wt[a]=!0,!0}else if(!X&&a!==g)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,g),wt[a]=!0,!0;return typeof l=="boolean"&&me(a,l,$)?(l?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,a,a,l,a):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,a,a,l,a,a,a),wt[a]=!0,!0):X?!0:me(a,l,$)?(wt[a]=!0,!1):((l==="false"||l==="true")&&$!==null&&$.type===ie&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,a,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,l),wt[a]=!0),!0)}}var Cn=function(p,a,l){{var d=[];for(var g in a){var S=Kt(p,g,a[g],l);S||d.push(g)}var _=d.map(function(O){return"`"+O+"`"}).join(", ");d.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",_,p):d.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",_,p)}};function Xn(p,a,l){xn(p,a)||Cn(p,a,l)}var fn=function(){};{var dn=/^(?:webkit|moz|o)[A-Z]/,Fr=/^-ms-/,Zr=/-(.)/g,an=/;\s*$/,pn={},Dn={},dt=!1,An=!1,Xr=function(p){return p.replace(Zr,function(a,l){return l.toUpperCase()})},jr=function(p){pn.hasOwnProperty(p)&&pn[p]||(pn[p]=!0,o("Unsupported style property %s. Did you mean %s?",p,Xr(p.replace(Fr,"ms-"))))},vt=function(p){pn.hasOwnProperty(p)&&pn[p]||(pn[p]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",p,p.charAt(0).toUpperCase()+p.slice(1)))},Fn=function(p,a){Dn.hasOwnProperty(a)&&Dn[a]||(Dn[a]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,p,a.replace(an,"")))},ar=function(p,a){dt||(dt=!0,o("`NaN` is an invalid value for the `%s` css style property.",p))},Yt=function(p,a){An||(An=!0,o("`Infinity` is an invalid value for the `%s` css style property.",p))};fn=function(p,a){p.indexOf("-")>-1?jr(p):dn.test(p)?vt(p):an.test(a)&&Fn(p,a),typeof a=="number"&&(isNaN(a)?ar(p,a):isFinite(a)||Yt(p,a))}}var zr=fn,Jr=/["'&<>]/;function vo(p){W(p);var a=""+p,l=Jr.exec(a);if(!l)return a;var d,g="",S,_=0;for(S=l.index;S<a.length;S++){switch(a.charCodeAt(S)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}_!==S&&(g+=a.substring(_,S)),_=S+1,g+=d}return _!==S?g+a.substring(_,S):g}function $t(p){return typeof p=="boolean"||typeof p=="number"?""+p:vo(p)}var sn=/([A-Z])/g,sr=/^ms-/;function zo(p){return p.replace(sn,"-$1").toLowerCase().replace(sr,"-ms-")}var jn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Br=!1;function Ur(p){!Br&&jn.test(p)&&(Br=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(p)))}var en=Array.isArray;function ln(p){return en(p)}var zn=E("<script>"),$r=E("<\/script>"),lr=E('<script src="'),Tr=E('<script type="module" src="'),De=E('" async=""><\/script>');function K(p){return W(p),(""+p).replace(he,Fe)}var he=/(<\/|<)(s)(cript)/gi,Fe=function(p,a,l,d){return""+a+(l==="s"?"\\u0073":"\\u0053")+d};function St(p,a,l,d,g){var S=p===void 0?"":p,_=a===void 0?zn:E('<script nonce="'+$t(a)+'">'),O=[];if(l!==void 0&&O.push(_,x(K(l)),$r),d!==void 0)for(var $=0;$<d.length;$++)O.push(lr,x($t(d[$])),De);if(g!==void 0)for(var X=0;X<g.length;X++)O.push(Tr,x($t(g[X])),De);return{bootstrapChunks:O,startInlineScript:_,placeholderPrefix:E(S+"P:"),segmentPrefix:E(S+"S:"),boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var kt=0,qe=1,It=2,Qt=3,hn=4,_r=5,Ct=6,Bn=7;function rn(p,a){return{insertionMode:p,selectedValue:a}}function qr(p){var a=p==="http://www.w3.org/2000/svg"?It:p==="http://www.w3.org/1998/Math/MathML"?Qt:kt;return rn(a,null)}function yo(p,a,l){switch(a){case"select":return rn(qe,l.value!=null?l.value:l.defaultValue);case"svg":return rn(It,null);case"math":return rn(Qt,null);case"foreignObject":return rn(qe,null);case"table":return rn(hn,null);case"thead":case"tbody":case"tfoot":return rn(_r,null);case"colgroup":return rn(Bn,null);case"tr":return rn(Ct,null)}return p.insertionMode>=hn||p.insertionMode===kt?rn(qe,null):p}var Bo=null;function Jn(p){var a=p.nextSuspenseID++;return E(p.boundaryPrefix+a.toString(16))}function Rr(p,a,l){var d=p.idPrefix,g=":"+d+"R"+a;return l>0&&(g+="H"+l.toString(32)),g+":"}function En(p){return $t(p)}var Uo=E("<!-- -->");function on(p,a,l,d){return a===""?d:(d&&p.push(Uo),p.push(x(En(a))),!0)}function Un(p,a,l,d){l&&d&&p.push(Uo)}var y=new Map;function T(p){var a=y.get(p);if(a!==void 0)return a;var l=E($t(zo(p)));return y.set(p,l),l}var N=E(' style="'),B=E(":"),ee=E(";");function Z(p,a,l){if(typeof l!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var d=!0;for(var g in l)if(H.call(l,g)){var S=l[g];if(!(S==null||typeof S=="boolean"||S==="")){var _=void 0,O=void 0,$=g.indexOf("--")===0;$?(_=x($t(g)),j(S,g),O=x($t((""+S).trim()))):(zr(g,S),_=T(g),typeof S=="number"?S!==0&&!H.call(Je,g)?O=x(S+"px"):O=x(""+S):(j(S,g),O=x($t((""+S).trim())))),d?(d=!1,p.push(N,_,B,O)):p.push(ee,_,B,O)}}d||p.push(We)}var oe=E(" "),we=E('="'),We=E('"'),Ge=E('=""');function He(p,a,l,d){switch(l){case"style":{Z(p,a,d);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(l.length>2&&(l[0]==="o"||l[0]==="O")&&(l[1]==="n"||l[1]==="N"))){var g=Te(l);if(g!==null){switch(typeof d){case"function":case"symbol":return;case"boolean":if(!g.acceptsBooleans)return}var S=g.attributeName,_=x(S);switch(g.type){case ie:d&&p.push(oe,_,Ge);return;case se:d===!0?p.push(oe,_,Ge):d===!1||p.push(oe,_,we,x($t(d)),We);return;case xe:isNaN(d)||p.push(oe,_,we,x($t(d)),We);break;case Ae:!isNaN(d)&&d>=1&&p.push(oe,_,we,x($t(d)),We);break;default:g.sanitizeURL&&(U(d,S),d=""+d,Ur(d)),p.push(oe,_,we,x($t(d)),We)}}else if(ue(l)){switch(typeof d){case"function":case"symbol":return;case"boolean":{var O=l.toLowerCase().slice(0,5);if(O!=="data-"&&O!=="aria-")return}}p.push(oe,x(l),we,x($t(d)),We)}}}var pt=E(">"),kn=E("/>");function Tn(p,a,l){if(a!=null){if(l!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a!="object"||!("__html"in a))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var d=a.__html;d!=null&&(W(d),p.push(x(""+d)))}}var _n=!1,eo=!1,Pr=!1,$o=!1,to=!1,bo=!1,Wr=!1;function xo(p,a){{var l=p[a];if(l!=null){var d=ln(l);p.multiple&&!d?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",a):!p.multiple&&d&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",a)}}}function Fu(p,a,l){zt("select",a),xo(a,"value"),xo(a,"defaultValue"),a.value!==void 0&&a.defaultValue!==void 0&&!Pr&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Pr=!0),p.push(cr("select"));var d=null,g=null;for(var S in a)if(H.call(a,S)){var _=a[S];if(_==null)continue;switch(S){case"children":d=_;break;case"dangerouslySetInnerHTML":g=_;break;case"defaultValue":case"value":break;default:He(p,l,S,_);break}}return p.push(pt),Tn(p,g,d),d}function ju(p){var a="";return e.Children.forEach(p,function(l){l!=null&&(a+=l,!to&&typeof l!="string"&&typeof l!="number"&&(to=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),a}var na=E(' selected=""');function Or(p,a,l,d){var g=d.selectedValue;p.push(cr("option"));var S=null,_=null,O=null,$=null;for(var X in a)if(H.call(a,X)){var fe=a[X];if(fe==null)continue;switch(X){case"children":S=fe;break;case"selected":O=fe,Wr||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Wr=!0);break;case"dangerouslySetInnerHTML":$=fe;break;case"value":_=fe;default:He(p,l,X,fe);break}}if(g!=null){var ye;if(_!==null?(U(_,"value"),ye=""+_):($!==null&&(bo||(bo=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ye=ju(S)),ln(g))for(var Pe=0;Pe<g.length;Pe++){U(g[Pe],"value");var Ze=""+g[Pe];if(Ze===ye){p.push(na);break}}else U(g,"select.value"),""+g===ye&&p.push(na)}else O&&p.push(na);return p.push(pt),Tn(p,$,S),S}function zu(p,a,l){zt("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!eo&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",a.type),eo=!0),a.value!==void 0&&a.defaultValue!==void 0&&!_n&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",a.type),_n=!0),p.push(cr("input"));var d=null,g=null,S=null,_=null;for(var O in a)if(H.call(a,O)){var $=a[O];if($==null)continue;switch(O){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":_=$;break;case"defaultValue":g=$;break;case"checked":S=$;break;case"value":d=$;break;default:He(p,l,O,$);break}}return S!==null?He(p,l,"checked",S):_!==null&&He(p,l,"checked",_),d!==null?He(p,l,"value",d):g!==null&&He(p,l,"value",g),p.push(kn),null}function Hr(p,a,l){zt("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!$o&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),$o=!0),p.push(cr("textarea"));var d=null,g=null,S=null;for(var _ in a)if(H.call(a,_)){var O=a[_];if(O==null)continue;switch(_){case"children":S=O;break;case"value":d=O;break;case"defaultValue":g=O;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:He(p,l,_,O);break}}if(d===null&&g!==null&&(d=g),p.push(pt),S!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),d!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ln(S)){if(S.length>1)throw new Error("<textarea> can only have at most one child.");W(S[0]),d=""+S[0]}W(S),d=""+S}return typeof d=="string"&&d[0]===`
|
|
75
|
-
`&&p.push(So),d!==null&&(U(d,"value"),p.push(x(En(""+d)))),null}function ss(p,a,l,d){p.push(cr(l));for(var g in a)if(H.call(a,g)){var S=a[g];if(S==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error(l+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:He(p,d,g,S);break}}return p.push(kn),null}function ra(p,a,l){p.push(cr("menuitem"));for(var d in a)if(H.call(a,d)){var g=a[d];if(g==null)continue;switch(d){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:He(p,l,d,g);break}}return p.push(pt),null}function Tt(p,a,l){p.push(cr("title"));var d=null;for(var g in a)if(H.call(a,g)){var S=a[g];if(S==null)continue;switch(g){case"children":d=S;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:He(p,l,g,S);break}}p.push(pt);{var _=Array.isArray(d)&&d.length<2?d[0]||null:d;Array.isArray(d)&&d.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):_!=null&&_.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):_!=null&&typeof _!="string"&&typeof _!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return d}function wo(p,a,l,d){p.push(cr(l));var g=null,S=null;for(var _ in a)if(H.call(a,_)){var O=a[_];if(O==null)continue;switch(_){case"children":g=O;break;case"dangerouslySetInnerHTML":S=O;break;default:He(p,d,_,O);break}}return p.push(pt),Tn(p,S,g),typeof g=="string"?(p.push(x(En(g))),null):g}function oa(p,a,l,d){p.push(cr(l));var g=null,S=null;for(var _ in a)if(H.call(a,_)){var O=a[_];if(O==null)continue;switch(_){case"children":g=O;break;case"dangerouslySetInnerHTML":S=O;break;case"style":Z(p,d,O);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ue(_)&&typeof O!="function"&&typeof O!="symbol"&&p.push(oe,x(_),we,x($t(O)),We);break}}return p.push(pt),Tn(p,S,g),g}var So=E(`
|
|
76
|
-
`);function no(p,a,l,d){p.push(cr(l));var g=null,S=null;for(var _ in a)if(H.call(a,_)){var O=a[_];if(O==null)continue;switch(_){case"children":g=O;break;case"dangerouslySetInnerHTML":S=O;break;default:He(p,d,_,O);break}}if(p.push(pt),S!=null){if(g!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof S!="object"||!("__html"in S))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var $=S.__html;$!=null&&(typeof $=="string"&&$.length>0&&$[0]===`
|
|
77
|
-
`?p.push(So,x($)):(W($),p.push(x(""+$))))}return typeof g=="string"&&g[0]===`
|
|
78
|
-
`&&p.push(So),g}var ia=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ro=new Map;function cr(p){var a=ro.get(p);if(a===void 0){if(!ia.test(p))throw new Error("Invalid tag: "+p);a=E("<"+p),ro.set(p,a)}return a}var ls=E("<!DOCTYPE html>");function hi(p,a,l,d,g){switch(ct(a,l),Dt(a,l),Xn(a,l,null),!l.suppressContentEditableWarning&&l.contentEditable&&l.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),g.insertionMode!==It&&g.insertionMode!==Qt&&a.indexOf("-")===-1&&typeof l.is!="string"&&a.toLowerCase()!==a&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",a),a){case"select":return Fu(p,l,d);case"option":return Or(p,l,d,g);case"textarea":return Hr(p,l,d);case"input":return zu(p,l,d);case"menuitem":return ra(p,l,d);case"title":return Tt(p,l,d);case"listing":case"pre":return no(p,l,a,d);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ss(p,l,a,d);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return wo(p,l,a,d);case"html":return g.insertionMode===kt&&p.push(ls),wo(p,l,a,d);default:return a.indexOf("-")===-1&&typeof l.is!="string"?wo(p,l,a,d):oa(p,l,a,d)}}var Ll=E("</"),aa=E(">");function Dl(p,a,l){switch(a){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:p.push(Ll,x(a),aa)}}function Bu(p,a){for(var l=a.bootstrapChunks,d=0;d<l.length-1;d++)h(p,l[d]);return d<l.length?v(p,l[d]):!0}var Uu=E('<template id="'),sa=E('"></template>');function Fl(p,a,l){h(p,Uu),h(p,a.placeholderPrefix);var d=x(l.toString(16));return h(p,d),v(p,sa)}var mi=E("<!--$-->"),cs=E('<!--$?--><template id="'),$u=E('"></template>'),Wo=E("<!--$!-->"),us=E("<!--/$-->"),fs=E("<template"),Ho=E('"'),gi=E(' data-dgst="'),la=E(' data-msg="'),jl=E(' data-stck="'),zl=E("></template>");function Bl(p,a){return v(p,mi)}function ca(p,a,l){if(h(p,cs),l===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return h(p,l),v(p,$u)}function $n(p,a,l,d,g){var S;return S=v(p,Wo),h(p,fs),l&&(h(p,gi),h(p,x($t(l))),h(p,Ho)),d&&(h(p,la),h(p,x($t(d))),h(p,Ho)),g&&(h(p,jl),h(p,x($t(g))),h(p,Ho)),S=v(p,zl),S}function Ul(p,a){return v(p,us)}function ua(p,a){return v(p,us)}function Wu(p,a){return v(p,us)}var $l=E('<div hidden id="'),fa=E('">'),Wl=E("</div>"),Hl=E('<svg aria-hidden="true" style="display:none" id="'),da=E('">'),pa=E("</svg>"),Vl=E('<math aria-hidden="true" style="display:none" id="'),Kl=E('">'),Yl=E("</math>"),ds=E('<table hidden id="'),Gl=E('">'),b=E("</table>"),k=E('<table hidden><tbody id="'),P=E('">'),z=E("</tbody></table>"),te=E('<table hidden><tr id="'),J=E('">'),le=E("</tr></table>"),Se=E('<table hidden><colgroup id="'),Qe=E('">'),rt=E("</colgroup></table>");function et(p,a,l,d){switch(l.insertionMode){case kt:case qe:return h(p,$l),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,fa);case It:return h(p,Hl),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,da);case Qt:return h(p,Vl),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,Kl);case hn:return h(p,ds),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,Gl);case _r:return h(p,k),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,P);case Ct:return h(p,te),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,J);case Bn:return h(p,Se),h(p,a.segmentPrefix),h(p,x(d.toString(16))),v(p,Qe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Mt(p,a){switch(a.insertionMode){case kt:case qe:return v(p,Wl);case It:return v(p,pa);case Qt:return v(p,Yl);case hn:return v(p,b);case _r:return v(p,z);case Ct:return v(p,le);case Bn:return v(p,rt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Wn="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",ur='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',fr='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',ha=E(Wn+';$RS("'),Ql=E('$RS("'),vi=E('","'),ym=E('")<\/script>');function bm(p,a,l){h(p,a.startInlineScript),a.sentCompleteSegmentFunction?h(p,Ql):(a.sentCompleteSegmentFunction=!0,h(p,ha)),h(p,a.segmentPrefix);var d=x(l.toString(16));return h(p,d),h(p,vi),h(p,a.placeholderPrefix),h(p,d),v(p,ym)}var Hu=E(ur+';$RC("'),xm=E('$RC("'),wm=E('","'),Nd=E('")<\/script>');function Ld(p,a,l,d){if(h(p,a.startInlineScript),a.sentCompleteBoundaryFunction?h(p,xm):(a.sentCompleteBoundaryFunction=!0,h(p,Hu)),l===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var g=x(d.toString(16));return h(p,l),h(p,wm),h(p,a.segmentPrefix),h(p,g),v(p,Nd)}var Sm=E(fr+';$RX("'),Cm=E('$RX("'),Am=E('"'),Em=E(")<\/script>"),qn=E(",");function km(p,a,l,d,g,S){if(h(p,a.startInlineScript),a.sentClientRenderFunction?h(p,Cm):(a.sentClientRenderFunction=!0,h(p,Sm)),l===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return h(p,l),h(p,Am),(d||g||S)&&(h(p,qn),h(p,x(Zl(d||"")))),(g||S)&&(h(p,qn),h(p,x(Zl(g||"")))),S&&(h(p,qn),h(p,x(Zl(S)))),v(p,Em)}var Dd=/[<\u2028\u2029]/g;function Zl(p){var a=JSON.stringify(p);return a.replace(Dd,function(l){switch(l){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var dr=Object.assign,Fd=Symbol.for("react.element"),Xl=Symbol.for("react.portal"),Jl=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),ec=Symbol.for("react.profiler"),ps=Symbol.for("react.provider"),hs=Symbol.for("react.context"),ma=Symbol.for("react.forward_ref"),Vu=Symbol.for("react.suspense"),Ku=Symbol.for("react.suspense_list"),Yu=Symbol.for("react.memo"),tc=Symbol.for("react.lazy"),jd=Symbol.for("react.scope"),Tm=Symbol.for("react.debug_trace_mode"),_m=Symbol.for("react.legacy_hidden"),Rm=Symbol.for("react.default_value"),Gu=Symbol.iterator,Wt="@@iterator";function ms(p){if(p===null||typeof p!="object")return null;var a=Gu&&p[Gu]||p[Wt];return typeof a=="function"?a:null}function zd(p,a,l){var d=p.displayName;if(d)return d;var g=a.displayName||a.name||"";return g!==""?l+"("+g+")":l}function Qu(p){return p.displayName||"Context"}function Bt(p){if(p==null)return null;if(typeof p.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case Jl:return"Fragment";case Xl:return"Portal";case ec:return"Profiler";case ql:return"StrictMode";case Vu:return"Suspense";case Ku:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case hs:var a=p;return Qu(a)+".Consumer";case ps:var l=p;return Qu(l._context)+".Provider";case ma:return zd(p,p.render,"ForwardRef");case Yu:var d=p.displayName||null;return d!==null?d:Bt(p.type)||"Memo";case tc:{var g=p,S=g._payload,_=g._init;try{return Bt(_(S))}catch{return null}}}return null}var ga=0,Zu,Xu,Ju,qu,Bd,Ud,nc;function rc(){}rc.__reactDisabledLog=!0;function gs(){{if(ga===0){Zu=console.log,Xu=console.info,Ju=console.warn,qu=console.error,Bd=console.group,Ud=console.groupCollapsed,nc=console.groupEnd;var p={configurable:!0,enumerable:!0,value:rc,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}ga++}}function ef(){{if(ga--,ga===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:dr({},p,{value:Zu}),info:dr({},p,{value:Xu}),warn:dr({},p,{value:Ju}),error:dr({},p,{value:qu}),group:dr({},p,{value:Bd}),groupCollapsed:dr({},p,{value:Ud}),groupEnd:dr({},p,{value:nc})})}ga<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var va=n.ReactCurrentDispatcher,tf;function yi(p,a,l){{if(tf===void 0)try{throw Error()}catch(g){var d=g.stack.trim().match(/\n( *(at )?)/);tf=d&&d[1]||""}return`
|
|
79
|
-
`+tf+p}}var nf=!1,vs;{var Pm=typeof WeakMap=="function"?WeakMap:Map;vs=new Pm}function ys(p,a){if(!p||nf)return"";{var l=vs.get(p);if(l!==void 0)return l}var d;nf=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=va.current,va.current=null,gs();try{if(a){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(yt){d=yt}Reflect.construct(p,[],_)}else{try{_.call()}catch(yt){d=yt}p.call(_.prototype)}}else{try{throw Error()}catch(yt){d=yt}p()}}catch(yt){if(yt&&d&&typeof yt.stack=="string"){for(var O=yt.stack.split(`
|
|
80
|
-
`),$=d.stack.split(`
|
|
81
|
-
`),X=O.length-1,fe=$.length-1;X>=1&&fe>=0&&O[X]!==$[fe];)fe--;for(;X>=1&&fe>=0;X--,fe--)if(O[X]!==$[fe]){if(X!==1||fe!==1)do if(X--,fe--,fe<0||O[X]!==$[fe]){var ye=`
|
|
82
|
-
`+O[X].replace(" at new "," at ");return p.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&vs.set(p,ye),ye}while(X>=1&&fe>=0);break}}}finally{nf=!1,va.current=S,ef(),Error.prepareStackTrace=g}var Pe=p?p.displayName||p.name:"",Ze=Pe?yi(Pe):"";return typeof p=="function"&&vs.set(p,Ze),Ze}function $d(p,a,l){return ys(p,!0)}function rf(p,a,l){return ys(p,!1)}function oc(p){var a=p.prototype;return!!(a&&a.isReactComponent)}function ic(p,a,l){if(p==null)return"";if(typeof p=="function")return ys(p,oc(p));if(typeof p=="string")return yi(p);switch(p){case Vu:return yi("Suspense");case Ku:return yi("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case ma:return rf(p.render);case Yu:return ic(p.type,a,l);case tc:{var d=p,g=d._payload,S=d._init;try{return ic(S(g),a,l)}catch{}}}return""}var ac={},bs=n.ReactDebugCurrentFrame;function xs(p){if(p){var a=p._owner,l=ic(p.type,p._source,a?a.type:null);bs.setExtraStackFrame(l)}else bs.setExtraStackFrame(null)}function Wd(p,a,l,d,g){{var S=Function.call.bind(H);for(var _ in p)if(S(p,_)){var O=void 0;try{if(typeof p[_]!="function"){var $=Error((d||"React class")+": "+l+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}O=p[_](a,_,d,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){O=X}O&&!(O instanceof Error)&&(xs(g),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",l,_,typeof O),xs(null)),O instanceof Error&&!(O.message in ac)&&(ac[O.message]=!0,xs(g),o("Failed %s type: %s",l,O.message),xs(null))}}}var bi;bi={};var sc={};Object.freeze(sc);function Vo(p,a){{var l=p.contextTypes;if(!l)return sc;var d={};for(var g in l)d[g]=a[g];{var S=Bt(p)||"Unknown";Wd(l,d,"context",S)}return d}}function of(p,a,l,d){{if(typeof p.getChildContext!="function"){{var g=Bt(a)||"Unknown";bi[g]||(bi[g]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return l}var S=p.getChildContext();for(var _ in S)if(!(_ in d))throw new Error((Bt(a)||"Unknown")+'.getChildContext(): key "'+_+'" is not defined in childContextTypes.');{var O=Bt(a)||"Unknown";Wd(d,S,"child context",O)}return dr({},l,S)}}var xi;xi={};var lc=null,Ko=null;function cc(p){p.context._currentValue=p.parentValue}function uc(p){p.context._currentValue=p.value}function ws(p,a){if(p!==a){cc(p);var l=p.parent,d=a.parent;if(l===null){if(d!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(d===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ws(l,d)}uc(a)}}function Ss(p){cc(p);var a=p.parent;a!==null&&Ss(a)}function Hd(p){var a=p.parent;a!==null&&Hd(a),uc(p)}function Vd(p,a){cc(p);var l=p.parent;if(l===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===a.depth?ws(l,a):Vd(l,a)}function Kd(p,a){var l=a.parent;if(l===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");p.depth===l.depth?ws(p,l):Kd(p,l),uc(a)}function Yo(p){var a=Ko,l=p;a!==l&&(a===null?Hd(l):l===null?Ss(a):a.depth===l.depth?ws(a,l):a.depth>l.depth?Vd(a,l):Kd(a,l),Ko=l)}function af(p,a){var l;l=p._currentValue,p._currentValue=a,p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==xi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=xi;var d=Ko,g={parent:d,depth:d===null?0:d.depth+1,context:p,parentValue:l,value:a};return Ko=g,g}function Om(p){var a=Ko;if(a===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");a.context!==p&&o("The parent context is not the expected context. This is probably a bug in React.");{var l=a.parentValue;l===Rm?a.context._currentValue=a.context._defaultValue:a.context._currentValue=l,p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==xi&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=xi}return Ko=a.parent}function Yd(){return Ko}function ya(p){var a=p._currentValue;return a}function Cs(p){return p._reactInternals}function sf(p,a){p._reactInternals=a}var fc={},dc={},pc,ba,As,Es,hc,ks,mc,gc,lf;{pc=new Set,ba=new Set,As=new Set,mc=new Set,Es=new Set,gc=new Set,lf=new Set;var Gd=new Set;ks=function(p,a){if(!(p===null||typeof p=="function")){var l=a+"_"+p;Gd.has(l)||(Gd.add(l),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,p))}},hc=function(p,a){if(a===void 0){var l=Bt(p)||"Component";Es.has(l)||(Es.add(l),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",l))}}}function Qd(p,a){{var l=p.constructor,d=l&&Bt(l)||"ReactClass",g=d+"."+a;if(fc[g])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
83
|
-
|
|
84
|
-
Please check the code for the %s component.`,a,a,d),fc[g]=!0}}var Zd={isMounted:function(p){return!1},enqueueSetState:function(p,a,l){var d=Cs(p);d.queue===null?Qd(p,"setState"):(d.queue.push(a),l!=null&&ks(l,"setState"))},enqueueReplaceState:function(p,a,l){var d=Cs(p);d.replace=!0,d.queue=[a],l!=null&&ks(l,"setState")},enqueueForceUpdate:function(p,a){var l=Cs(p);l.queue===null?Qd(p,"forceUpdate"):a!=null&&ks(a,"setState")}};function Im(p,a,l,d,g){var S=l(g,d);hc(a,S);var _=S==null?d:dr({},d,S);return _}function Xd(p,a,l){var d=sc,g=p.contextType;if("contextType"in p){var S=g===null||g!==void 0&&g.$$typeof===hs&&g._context===void 0;if(!S&&!lf.has(p)){lf.add(p);var _="";g===void 0?_=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof g!="object"?_=" However, it is set to a "+typeof g+".":g.$$typeof===ps?_=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?_=" Did you accidentally pass the Context.Consumer instead?":_=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Bt(p)||"Component",_)}}typeof g=="object"&&g!==null?d=ya(g):d=l;var O=new p(a,d);{if(typeof p.getDerivedStateFromProps=="function"&&(O.state===null||O.state===void 0)){var $=Bt(p)||"Component";pc.has($)||(pc.add($),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",$,O.state===null?"null":"undefined",$))}if(typeof p.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"){var X=null,fe=null,ye=null;if(typeof O.componentWillMount=="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0?X="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(X="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0?fe="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(fe="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0?ye="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(ye="UNSAFE_componentWillUpdate"),X!==null||fe!==null||ye!==null){var Pe=Bt(p)||"Component",Ze=typeof p.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";As.has(Pe)||(As.add(Pe),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
85
|
-
|
|
86
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
87
|
-
|
|
88
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
89
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,Pe,Ze,X!==null?`
|
|
90
|
-
`+X:"",fe!==null?`
|
|
91
|
-
`+fe:"",ye!==null?`
|
|
92
|
-
`+ye:""))}}}return O}function Mm(p,a,l){{var d=Bt(a)||"Component",g=p.render;g||(a.prototype&&typeof a.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),p.getInitialState&&!p.getInitialState.isReactClassApproved&&!p.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),p.getDefaultProps&&!p.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),p.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),p.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),p.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),a.contextType&&a.contextTypes&&!gc.has(a)&&(gc.add(a),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof p.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof p.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Bt(a)||"A pure component"),typeof p.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof p.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof p.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof p.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var S=p.props!==l;p.props!==void 0&&S&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),p.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof p.getSnapshotBeforeUpdate=="function"&&typeof p.componentDidUpdate!="function"&&!ba.has(a)&&(ba.add(a),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Bt(a))),typeof p.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof p.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof a.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var _=p.state;_&&(typeof _!="object"||ln(_))&&o("%s.state: must be set to an object or null",d),typeof p.getChildContext=="function"&&typeof a.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function Nm(p,a){var l=a.state;if(typeof a.componentWillMount=="function"){if(a.componentWillMount.__suppressDeprecationWarning!==!0){var d=Bt(p)||"Unknown";dc[d]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
93
|
-
|
|
94
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
95
|
-
|
|
96
|
-
Please update the following components: %s`,d),dc[d]=!0)}a.componentWillMount()}typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),l!==a.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Bt(p)||"Component"),Zd.enqueueReplaceState(a,a.state,null))}function cf(p,a,l,d){if(p.queue!==null&&p.queue.length>0){var g=p.queue,S=p.replace;if(p.queue=null,p.replace=!1,S&&g.length===1)a.state=g[0];else{for(var _=S?g[0]:a.state,O=!0,$=S?1:0;$<g.length;$++){var X=g[$],fe=typeof X=="function"?X.call(a,_,l,d):X;fe!=null&&(O?(O=!1,_=dr({},_,fe)):dr(_,fe))}a.state=_}}else p.queue=null}function Ts(p,a,l,d){Mm(p,a,l);var g=p.state!==void 0?p.state:null;p.updater=Zd,p.props=l,p.state=g;var S={queue:[],replace:!1};sf(p,S);var _=a.contextType;if(typeof _=="object"&&_!==null?p.context=ya(_):p.context=d,p.state===l){var O=Bt(a)||"Component";mc.has(O)||(mc.add(O),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",O))}var $=a.getDerivedStateFromProps;typeof $=="function"&&(p.state=Im(p,a,$,g,l)),typeof a.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(Nm(a,p),cf(S,p,l,d))}var Lm={id:1,overflow:""};function Dm(p){var a=p.overflow,l=p.id,d=l&~Fm(l);return d.toString(32)+a}function uf(p,a,l){var d=p.id,g=p.overflow,S=vc(d)-1,_=d&~(1<<S),O=l+1,$=vc(a)+S;if($>30){var X=S-S%5,fe=(1<<X)-1,ye=(_&fe).toString(32),Pe=_>>X,Ze=S-X,yt=vc(a)+Ze,mn=O<<Ze,Ti=mn|Pe,_i=ye+g;return{id:1<<yt|Ti,overflow:_i}}else{var To=O<<S,ka=To|_,pg=g;return{id:1<<$|ka,overflow:pg}}}function vc(p){return 32-jm(p)}function Fm(p){return 1<<vc(p)-1}var jm=Math.clz32?Math.clz32:ff,zm=Math.log,Co=Math.LN2;function ff(p){var a=p>>>0;return a===0?32:31-(zm(a)/Co|0)|0}function yc(p,a){return p===a&&(p!==0||1/p===1/a)||p!==p&&a!==a}var Ft=typeof Object.is=="function"?Object.is:yc,pr=null,xa=null,wi=null,ht=null,Go=!1,bc=!1,hr=0,mr=null,oo=0,Bm=25,Vr=!1,Qo;function Si(){if(pr===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
97
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
|
-
2. You might be breaking the Rules of Hooks
|
|
99
|
-
3. You might have more than one copy of React in the same app
|
|
100
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Vr&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),pr}function Um(p,a){if(a===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Qo),!1;p.length!==a.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
|
-
|
|
102
|
-
Previous: %s
|
|
103
|
-
Incoming: %s`,Qo,"["+p.join(", ")+"]","["+a.join(", ")+"]");for(var l=0;l<a.length&&l<p.length;l++)if(!Ft(p[l],a[l]))return!1;return!0}function df(){if(oo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function _s(){return ht===null?wi===null?(Go=!1,wi=ht=df()):(Go=!0,ht=wi):ht.next===null?(Go=!1,ht=ht.next=df()):(Go=!0,ht=ht.next),ht}function $m(p,a){pr=a,xa=p,Vr=!1,hr=0}function Wm(p,a,l,d){for(;bc;)bc=!1,hr=0,oo+=1,ht=null,l=p(a,d);return pf(),l}function xc(){var p=hr!==0;return p}function pf(){Vr=!1,pr=null,xa=null,bc=!1,wi=null,oo=0,mr=null,ht=null}function Jd(p){return Vr&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ya(p)}function qd(p){return Qo="useContext",Si(),ya(p)}function hf(p,a){return typeof a=="function"?a(p):a}function Hm(p){return Qo="useState",ep(hf,p)}function ep(p,a,l){if(p!==hf&&(Qo="useReducer"),pr=Si(),ht=_s(),Go){var d=ht.queue,g=d.dispatch;if(mr!==null){var S=mr.get(d);if(S!==void 0){mr.delete(d);var _=ht.memoizedState,O=S;do{var $=O.action;Vr=!0,_=p(_,$),Vr=!1,O=O.next}while(O!==null);return ht.memoizedState=_,[_,g]}}return[ht.memoizedState,g]}else{Vr=!0;var X;p===hf?X=typeof a=="function"?a():a:X=l!==void 0?l(a):a,Vr=!1,ht.memoizedState=X;var fe=ht.queue={last:null,dispatch:null},ye=fe.dispatch=Ym.bind(null,pr,fe);return[ht.memoizedState,ye]}}function tp(p,a){pr=Si(),ht=_s();var l=a===void 0?null:a;if(ht!==null){var d=ht.memoizedState;if(d!==null&&l!==null){var g=d[1];if(Um(l,g))return d[0]}}Vr=!0;var S=p();return Vr=!1,ht.memoizedState=[S,l],S}function Vm(p){pr=Si(),ht=_s();var a=ht.memoizedState;if(a===null){var l={current:p};return Object.seal(l),ht.memoizedState=l,l}else return a}function Km(p,a){Qo="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Ym(p,a,l){if(oo>=Bm)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p===pr){bc=!0;var d={action:l,next:null};mr===null&&(mr=new Map);var g=mr.get(a);if(g===void 0)mr.set(a,d);else{for(var S=g;S.next!==null;)S=S.next;S.next=d}}}function Gm(p,a){return tp(function(){return p},a)}function Qm(p,a,l){return Si(),a(p._source)}function Zm(p,a,l){if(l===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return l()}function wc(p){return Si(),p}function np(){throw new Error("startTransition cannot be called during server rendering.")}function mf(){return Si(),[!1,np]}function rp(){var p=xa,a=Dm(p.treeContext),l=Rs;if(l===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var d=hr++;return Rr(l,a,d)}function Sc(){}var Cc={readContext:Jd,useContext:qd,useMemo:tp,useReducer:ep,useRef:Vm,useState:Hm,useInsertionEffect:Sc,useLayoutEffect:Km,useCallback:Gm,useImperativeHandle:Sc,useEffect:Sc,useDebugValue:Sc,useDeferredValue:wc,useTransition:mf,useId:rp,useMutableSource:Qm,useSyncExternalStore:Zm},Rs=null;function Ac(p){Rs=p}function wa(p){try{var a="",l=p;do{switch(l.tag){case 0:a+=yi(l.type,null,null);break;case 1:a+=rf(l.type,null,null);break;case 2:a+=$d(l.type,null,null);break}l=l.parent}while(l);return a}catch(d){return`
|
|
104
|
-
Error generating stack: `+d.message+`
|
|
105
|
-
`+d.stack}}var Ec=n.ReactCurrentDispatcher,kc=n.ReactDebugCurrentFrame,Tc=0,Sa=1,gf=2,Ci=3,op=4,Xm=0,Ca=1,Aa=2,Jm=12800;function qm(p){return console.error(p),null}function Ai(){}function _c(p,a,l,d,g,S,_,O,$){var X=[],fe=new Set,ye={destination:null,responseState:a,progressiveChunkSize:d===void 0?Jm:d,status:Xm,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:fe,pingedTasks:X,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:g===void 0?qm:g,onAllReady:S===void 0?Ai:S,onShellReady:_===void 0?Ai:_,onShellError:O===void 0?Ai:O,onFatalError:$===void 0?Ai:$},Pe=Ps(ye,0,null,l,!1,!1);Pe.parentFlushed=!0;var Ze=Ei(ye,p,null,Pe,fe,sc,lc,Lm);return X.push(Ze),ye}function Ao(p,a){var l=p.pingedTasks;l.push(a),l.length===1&&s(function(){return Tf(p)})}function vf(p,a){return{id:Bo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null}}function Ei(p,a,l,d,g,S,_,O){p.allPendingTasks++,l===null?p.pendingRootTasks++:l.pendingTasks++;var $={node:a,ping:function(){return Ao(p,$)},blockedBoundary:l,blockedSegment:d,abortSet:g,legacyContext:S,context:_,treeContext:O};return $.componentStack=null,g.add($),$}function Ps(p,a,l,d,g,S){return{status:Tc,id:-1,index:a,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:l,lastPushedText:g,textEmbedded:S}}var Eo=null;function io(){return Eo===null||Eo.componentStack===null?"":wa(Eo.componentStack)}function ko(p,a){p.componentStack={tag:0,parent:p.componentStack,type:a}}function Rc(p,a){p.componentStack={tag:1,parent:p.componentStack,type:a}}function Os(p,a){p.componentStack={tag:2,parent:p.componentStack,type:a}}function Kr(p){p.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):p.componentStack=p.componentStack.parent}var Is=null;function yf(p,a){{var l;typeof a=="string"?l=a:a&&typeof a.message=="string"?l=a.message:l=String(a);var d=Is||io();Is=null,p.errorMessage=l,p.errorComponentStack=d}}function Ms(p,a){var l=p.onError(a);if(l!=null&&typeof l!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof l+'" instead');return l}function Ns(p,a){var l=p.onShellError;l(a);var d=p.onFatalError;d(a),p.destination!==null?(p.status=Aa,R(p.destination,a)):(p.status=Ca,p.fatalError=a)}function ip(p,a,l){ko(a,"Suspense");var d=a.blockedBoundary,g=a.blockedSegment,S=l.fallback,_=l.children,O=new Set,$=vf(p,O),X=g.chunks.length,fe=Ps(p,X,$,g.formatContext,!1,!1);g.children.push(fe),g.lastPushedText=!1;var ye=Ps(p,0,null,g.formatContext,!1,!1);ye.parentFlushed=!0,a.blockedBoundary=$,a.blockedSegment=ye;try{if(Ea(p,a,_),Un(ye.chunks,p.responseState,ye.lastPushedText,ye.textEmbedded),ye.status=Sa,ki($,ye),$.pendingTasks===0){Kr(a);return}}catch(Ze){ye.status=op,$.forceClientRender=!0,$.errorDigest=Ms(p,Ze),yf($,Ze)}finally{a.blockedBoundary=d,a.blockedSegment=g}var Pe=Ei(p,S,d,fe,O,a.legacyContext,a.context,a.treeContext);Pe.componentStack=a.componentStack,p.pingedTasks.push(Pe),Kr(a)}function eg(p,a,l,d){ko(a,l);var g=a.blockedSegment,S=hi(g.chunks,l,d,p.responseState,g.formatContext);g.lastPushedText=!1;var _=g.formatContext;g.formatContext=yo(_,l,d),Ea(p,a,S),g.formatContext=_,Dl(g.chunks,l),g.lastPushedText=!1,Kr(a)}function ap(p){return p.prototype&&p.prototype.isReactComponent}function Ls(p,a,l,d,g){var S={};$m(a,S);var _=l(d,g);return Wm(l,d,_,g)}function bf(p,a,l,d,g){var S=l.render();l.props!==g&&(Cf||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Bt(d)||"a component"),Cf=!0);{var _=d.childContextTypes;if(_!=null){var O=a.legacyContext,$=of(l,d,O,_);a.legacyContext=$,Hn(p,a,S),a.legacyContext=O;return}}Hn(p,a,S)}function sp(p,a,l,d){Os(a,l);var g=Vo(l,a.legacyContext),S=Xd(l,d,g);Ts(S,l,d,g),bf(p,a,S,l,d),Kr(a)}var xf={},Ds={},wf={},Sf={},Cf=!1,lp={},cp=!1,Af=!1,up=!1;function tg(p,a,l,d){var g;if(g=Vo(l,a.legacyContext),Rc(a,l),l.prototype&&typeof l.prototype.render=="function"){var S=Bt(l)||"Unknown";xf[S]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",S,S),xf[S]=!0)}var _=Ls(p,a,l,d,g),O=xc();if(typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0){var $=Bt(l)||"Unknown";Ds[$]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",$,$,$),Ds[$]=!0)}if(typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0){{var X=Bt(l)||"Unknown";Ds[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),Ds[X]=!0)}Ts(_,l,d,g),bf(p,a,_,l,d)}else if(ng(l),O){var fe=a.treeContext,ye=1,Pe=0;a.treeContext=uf(fe,ye,Pe);try{Hn(p,a,_)}finally{a.treeContext=fe}}else Hn(p,a,_);Kr(a)}function ng(p){{if(p&&p.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",p.displayName||p.name||"Component"),p.defaultProps!==void 0){var a=Bt(p)||"Unknown";lp[a]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",a),lp[a]=!0)}if(typeof p.getDerivedStateFromProps=="function"){var l=Bt(p)||"Unknown";Sf[l]||(o("%s: Function components do not support getDerivedStateFromProps.",l),Sf[l]=!0)}if(typeof p.contextType=="object"&&p.contextType!==null){var d=Bt(p)||"Unknown";wf[d]||(o("%s: Function components do not support contextType.",d),wf[d]=!0)}}}function fp(p,a){if(p&&p.defaultProps){var l=dr({},a),d=p.defaultProps;for(var g in d)l[g]===void 0&&(l[g]=d[g]);return l}return a}function rg(p,a,l,d,g){Rc(a,l.render);var S=Ls(p,a,l.render,d,g),_=xc();if(_){var O=a.treeContext,$=1,X=0;a.treeContext=uf(O,$,X);try{Hn(p,a,S)}finally{a.treeContext=O}}else Hn(p,a,S);Kr(a)}function Ef(p,a,l,d,g){var S=l.type,_=fp(S,d);Pc(p,a,S,_,g)}function og(p,a,l,d){l._context===void 0?l!==l.Consumer&&(up||(up=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):l=l._context;var g=d.children;typeof g!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var S=ya(l),_=g(S);Hn(p,a,_)}function gr(p,a,l,d){var g=l._context,S=d.value,_=d.children,O;O=a.context,a.context=af(g,S),Hn(p,a,_),a.context=Om(g),O!==a.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function ig(p,a,l,d,g){ko(a,"Lazy");var S=l._payload,_=l._init,O=_(S),$=fp(O,d);Pc(p,a,O,$,g),Kr(a)}function Pc(p,a,l,d,g){if(typeof l=="function")if(ap(l)){sp(p,a,l,d);return}else{tg(p,a,l,d);return}if(typeof l=="string"){eg(p,a,l,d);return}switch(l){case _m:case Tm:case ql:case ec:case Jl:{Hn(p,a,d.children);return}case Ku:{ko(a,"SuspenseList"),Hn(p,a,d.children),Kr(a);return}case jd:throw new Error("ReactDOMServer does not yet support scope components.");case Vu:{ip(p,a,d);return}}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case ma:{rg(p,a,l,d,g);return}case Yu:{Ef(p,a,l,d,g);return}case ps:{gr(p,a,l,d);return}case hs:{og(p,a,l,d);return}case tc:{ig(p,a,l,d);return}}var S="";throw(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(l==null?l:typeof l)+"."+S))}function ag(p,a){typeof Symbol=="function"&&p[Symbol.toStringTag]==="Generator"&&(cp||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),cp=!0),p.entries===a&&(Af||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Af=!0)}function Hn(p,a,l){try{return sg(p,a,l)}catch(d){throw typeof d=="object"&&d!==null&&typeof d.then=="function"||(Is=Is!==null?Is:io()),d}}function sg(p,a,l){if(a.node=l,typeof l=="object"&&l!==null){switch(l.$$typeof){case Fd:{var d=l,g=d.type,S=d.props,_=d.ref;Pc(p,a,g,S,_);return}case Xl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case tc:{var O=l,$=O._payload,X=O._init,fe;try{fe=X($)}catch(To){throw typeof To=="object"&&To!==null&&typeof To.then=="function"&&ko(a,"Lazy"),To}Hn(p,a,fe);return}}if(ln(l)){dp(p,a,l);return}var ye=ms(l);if(ye){ag(l,ye);var Pe=ye.call(l);if(Pe){var Ze=Pe.next();if(!Ze.done){var yt=[];do yt.push(Ze.value),Ze=Pe.next();while(!Ze.done);dp(p,a,yt);return}return}}var mn=Object.prototype.toString.call(l);throw new Error("Objects are not valid as a React child (found: "+(mn==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":mn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof l=="string"){var Ti=a.blockedSegment;Ti.lastPushedText=on(a.blockedSegment.chunks,l,p.responseState,Ti.lastPushedText);return}if(typeof l=="number"){var _i=a.blockedSegment;_i.lastPushedText=on(a.blockedSegment.chunks,""+l,p.responseState,_i.lastPushedText);return}typeof l=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function dp(p,a,l){for(var d=l.length,g=0;g<d;g++){var S=a.treeContext;a.treeContext=uf(S,d,g);try{Ea(p,a,l[g])}finally{a.treeContext=S}}}function pp(p,a,l){var d=a.blockedSegment,g=d.chunks.length,S=Ps(p,g,null,d.formatContext,d.lastPushedText,!0);d.children.push(S),d.lastPushedText=!1;var _=Ei(p,a.node,a.blockedBoundary,S,a.abortSet,a.legacyContext,a.context,a.treeContext);a.componentStack!==null&&(_.componentStack=a.componentStack.parent);var O=_.ping;l.then(O,O)}function Ea(p,a,l){var d=a.blockedSegment.formatContext,g=a.legacyContext,S=a.context,_=null;_=a.componentStack;try{return Hn(p,a,l)}catch(O){if(pf(),typeof O=="object"&&O!==null&&typeof O.then=="function"){pp(p,a,O),a.blockedSegment.formatContext=d,a.legacyContext=g,a.context=S,Yo(S),a.componentStack=_;return}else throw a.blockedSegment.formatContext=d,a.legacyContext=g,a.context=S,Yo(S),a.componentStack=_,O}}function hp(p,a,l,d){var g=Ms(p,d);if(a===null?Ns(p,d):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,a.errorDigest=g,yf(a,d),a.parentFlushed&&p.clientRenderedBoundaries.push(a))),p.allPendingTasks--,p.allPendingTasks===0){var S=p.onAllReady;S()}}function lg(p){var a=this,l=p.blockedBoundary,d=p.blockedSegment;d.status=Ci,Fs(a,l,d)}function kf(p,a,l){var d=p.blockedBoundary,g=p.blockedSegment;if(g.status=Ci,d===null)a.allPendingTasks--,a.status!==Aa&&(a.status=Aa,a.destination!==null&&C(a.destination));else{if(d.pendingTasks--,!d.forceClientRender){d.forceClientRender=!0;var S=l===void 0?new Error("The render was aborted by the server without a reason."):l;d.errorDigest=a.onError(S);{var _="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=_+S.message:S=_+String(S);var O=Eo;Eo=p;try{yf(d,S)}finally{Eo=O}}d.parentFlushed&&a.clientRenderedBoundaries.push(d)}if(d.fallbackAbortableTasks.forEach(function(X){return kf(X,a,l)}),d.fallbackAbortableTasks.clear(),a.allPendingTasks--,a.allPendingTasks===0){var $=a.onAllReady;$()}}}function ki(p,a){if(a.chunks.length===0&&a.children.length===1&&a.children[0].boundary===null){var l=a.children[0];l.id=a.id,l.parentFlushed=!0,l.status===Sa&&ki(p,l)}else{var d=p.completedSegments;d.push(a)}}function Fs(p,a,l){if(a===null){if(l.parentFlushed){if(p.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");p.completedRootSegment=l}if(p.pendingRootTasks--,p.pendingRootTasks===0){p.onShellError=Ai;var d=p.onShellReady;d()}}else if(a.pendingTasks--,!a.forceClientRender){if(a.pendingTasks===0)l.parentFlushed&&l.status===Sa&&ki(a,l),a.parentFlushed&&p.completedBoundaries.push(a),a.fallbackAbortableTasks.forEach(lg,p),a.fallbackAbortableTasks.clear();else if(l.parentFlushed&&l.status===Sa){ki(a,l);var g=a.completedSegments;g.length===1&&a.parentFlushed&&p.partialBoundaries.push(a)}}if(p.allPendingTasks--,p.allPendingTasks===0){var S=p.onAllReady;S()}}function cg(p,a){var l=a.blockedSegment;if(l.status===Tc){Yo(a.context);var d=null;d=Eo,Eo=a;try{Hn(p,a,a.node),Un(l.chunks,p.responseState,l.lastPushedText,l.textEmbedded),a.abortSet.delete(a),l.status=Sa,Fs(p,a.blockedBoundary,l)}catch(S){if(pf(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var g=a.ping;S.then(g,g)}else a.abortSet.delete(a),l.status=op,hp(p,a.blockedBoundary,l,S)}finally{Eo=d}}}function Tf(p){if(p.status!==Aa){var a=Yd(),l=Ec.current;Ec.current=Cc;var d;d=kc.getCurrentStack,kc.getCurrentStack=io;var g=Rs;Ac(p.responseState);try{var S=p.pingedTasks,_;for(_=0;_<S.length;_++){var O=S[_];cg(p,O)}S.splice(0,_),p.destination!==null&&_f(p,p.destination)}catch($){Ms(p,$),Ns(p,$)}finally{Ac(g),Ec.current=l,kc.getCurrentStack=d,l===Cc&&Yo(a)}}}function js(p,a,l){switch(l.parentFlushed=!0,l.status){case Tc:{var d=l.id=p.nextSegmentId++;return l.lastPushedText=!1,l.textEmbedded=!1,Fl(a,p.responseState,d)}case Sa:{l.status=gf;for(var g=!0,S=l.chunks,_=0,O=l.children,$=0;$<O.length;$++){for(var X=O[$];_<X.index;_++)h(a,S[_]);g=Oc(p,a,X)}for(;_<S.length-1;_++)h(a,S[_]);return _<S.length&&(g=v(a,S[_])),g}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Oc(p,a,l){var d=l.boundary;if(d===null)return js(p,a,l);if(d.parentFlushed=!0,d.forceClientRender)return $n(a,p.responseState,d.errorDigest,d.errorMessage,d.errorComponentStack),js(p,a,l),Wu(a,p.responseState);if(d.pendingTasks>0){d.rootSegmentID=p.nextSegmentId++,d.completedSegments.length>0&&p.partialBoundaries.push(d);var g=d.id=Jn(p.responseState);return ca(a,p.responseState,g),js(p,a,l),ua(a,p.responseState)}else{if(d.byteSize>p.progressiveChunkSize)return d.rootSegmentID=p.nextSegmentId++,p.completedBoundaries.push(d),ca(a,p.responseState,d.id),js(p,a,l),ua(a,p.responseState);Bl(a,p.responseState);var S=d.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var _=S[0];return Oc(p,a,_),Ul(a,p.responseState)}}function mp(p,a,l){return km(a,p.responseState,l.id,l.errorDigest,l.errorMessage,l.errorComponentStack)}function Ic(p,a,l){return et(a,p.responseState,l.formatContext,l.id),Oc(p,a,l),Mt(a,l.formatContext)}function gp(p,a,l){for(var d=l.completedSegments,g=0;g<d.length;g++){var S=d[g];vp(p,a,l,S)}return d.length=0,Ld(a,p.responseState,l.id,l.rootSegmentID)}function ug(p,a,l){for(var d=l.completedSegments,g=0;g<d.length;g++){var S=d[g];if(!vp(p,a,l,S))return g++,d.splice(0,g),!1}return d.splice(0,g),!0}function vp(p,a,l,d){if(d.status===gf)return!0;var g=d.id;if(g===-1){var S=d.id=l.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ic(p,a,d)}else return Ic(p,a,d),bm(a,p.responseState,g)}function _f(p,a){m();try{var l=p.completedRootSegment;l!==null&&p.pendingRootTasks===0&&(Oc(p,a,l),p.completedRootSegment=null,Bu(a,p.responseState));var d=p.clientRenderedBoundaries,g;for(g=0;g<d.length;g++){var S=d[g];mp(p,a,S)}d.splice(0,g);var _=p.completedBoundaries;for(g=0;g<_.length;g++){var O=_[g];gp(p,a,O)}_.splice(0,g),w(a),m(a);var $=p.partialBoundaries;for(g=0;g<$.length;g++){var X=$[g];if(!ug(p,a,X)){p.destination=null,g++,$.splice(0,g);return}}$.splice(0,g);var fe=p.completedBoundaries;for(g=0;g<fe.length;g++){var ye=fe[g];gp(p,a,ye)}fe.splice(0,g)}finally{w(a),p.allPendingTasks===0&&p.pingedTasks.length===0&&p.clientRenderedBoundaries.length===0&&p.completedBoundaries.length===0&&(p.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),C(a))}}function yp(p){s(function(){return Tf(p)})}function fg(p,a){if(p.status===Ca){p.status=Aa,R(a,p.fatalError);return}if(p.status!==Aa&&p.destination===null){p.destination=a;try{_f(p,a)}catch(l){Ms(p,l),Ns(p,l)}}}function bp(p,a){try{var l=p.abortableTasks;l.forEach(function(d){return kf(d,p,a)}),l.clear(),p.destination!==null&&_f(p,p.destination)}catch(d){Ms(p,d),Ns(p,d)}}function dg(p,a){return new Promise(function(l,d){var g,S,_=new Promise(function(Pe,Ze){S=Pe,g=Ze});function O(){var Pe=new ReadableStream({type:"bytes",pull:function(Ze){fg(X,Ze)},cancel:function(Ze){bp(X)}},{highWaterMark:0});Pe.allReady=_,l(Pe)}function $(Pe){_.catch(function(){}),d(Pe)}var X=_c(p,St(a?a.identifierPrefix:void 0,a?a.nonce:void 0,a?a.bootstrapScriptContent:void 0,a?a.bootstrapScripts:void 0,a?a.bootstrapModules:void 0),qr(a?a.namespaceURI:void 0),a?a.progressiveChunkSize:void 0,a?a.onError:void 0,S,O,$,g);if(a&&a.signal){var fe=a.signal,ye=function(){bp(X,fe.reason),fe.removeEventListener("abort",ye)};fe.addEventListener("abort",ye)}yp(X)})}Sp.renderToReadableStream=dg,Sp.version=t})()),Sp}var bb;function yk(){if(bb)return Ta;bb=1;var e,t;return process.env.NODE_ENV==="production"?(e=hk(),t=mk()):(e=gk(),t=vk()),Ta.version=e.version,Ta.renderToString=e.renderToString,Ta.renderToStaticMarkup=e.renderToStaticMarkup,Ta.renderToNodeStream=e.renderToNodeStream,Ta.renderToStaticNodeStream=e.renderToStaticNodeStream,Ta.renderToReadableStream=t.renderToReadableStream,Ta}var bk=yk(),Cp={exports:{}},Ap={exports:{}},_t={};/** @license React v16.13.1
|
|
1
|
+
"use strict";require('./index.css');var x1=Object.defineProperty;var Cp=e=>{throw TypeError(e)};var w1=(e,t,n)=>t in e?x1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>w1(e,typeof t!="symbol"?t+"":t,n),uc=(e,t,n)=>t.has(e)||Cp("Cannot "+n);var k=(e,t,n)=>(uc(e,t,"read from private field"),n?n.call(e):t.get(e)),fe=(e,t,n)=>t.has(e)?Cp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(uc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(uc(e,t,"access private method"),n);var ca=(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 x=require("react/jsx-runtime"),T=require("react"),Tn=require("react-dom"),A1=require("react-dom/server");function n0(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=n0(T),C1=n0(Tn);function _1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ua={exports:{}},fa={exports:{}},Ne={};/** @license React v16.13.1
|
|
106
2
|
* react-is.production.min.js
|
|
107
3
|
*
|
|
108
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
5
|
*
|
|
110
6
|
* This source code is licensed under the MIT license found in the
|
|
111
7
|
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var
|
|
8
|
+
*/var _p;function E1(){if(_p)return Ne;_p=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var _=w.$$typeof;switch(_){case t:switch(w=w.type,w){case l:case c:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case h:case p:case s:return w;default:return _}}case n:return _}}}function A(w){return b(w)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=a,Ne.ContextProvider=s,Ne.Element=t,Ne.ForwardRef=u,Ne.Fragment=r,Ne.Lazy=h,Ne.Memo=p,Ne.Portal=n,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=f,Ne.isAsyncMode=function(w){return A(w)||b(w)===l},Ne.isConcurrentMode=A,Ne.isContextConsumer=function(w){return b(w)===a},Ne.isContextProvider=function(w){return b(w)===s},Ne.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ne.isForwardRef=function(w){return b(w)===u},Ne.isFragment=function(w){return b(w)===r},Ne.isLazy=function(w){return b(w)===h},Ne.isMemo=function(w){return b(w)===p},Ne.isPortal=function(w){return b(w)===n},Ne.isProfiler=function(w){return b(w)===i},Ne.isStrictMode=function(w){return b(w)===o},Ne.isSuspense=function(w){return b(w)===f},Ne.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===i||w===o||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===m||w.$$typeof===y||w.$$typeof===v||w.$$typeof===g)},Ne.typeOf=b,Ne}var Oe={};/** @license React v16.13.1
|
|
113
9
|
* react-is.development.js
|
|
114
10
|
*
|
|
115
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
12
|
*
|
|
117
13
|
* This source code is licensed under the MIT license found in the
|
|
118
14
|
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/var
|
|
15
|
+
*/var Ep;function S1(){return Ep||(Ep=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(G){return typeof G=="string"||typeof G=="function"||G===r||G===c||G===i||G===o||G===f||G===d||typeof G=="object"&&G!==null&&(G.$$typeof===h||G.$$typeof===p||G.$$typeof===s||G.$$typeof===a||G.$$typeof===u||G.$$typeof===m||G.$$typeof===y||G.$$typeof===v||G.$$typeof===g)}function A(G){if(typeof G=="object"&&G!==null){var qe=G.$$typeof;switch(qe){case t:var zt=G.type;switch(zt){case l:case c:case r:case i:case o:case f:return zt;default:var ht=zt&&zt.$$typeof;switch(ht){case a:case u:case h:case p:case s:return ht;default:return qe}}case n:return qe}}}var w=l,_=c,E=a,S=s,O=t,P=u,I=r,W=h,j=p,z=n,Y=i,Q=o,oe=f,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)||A(G)===l}function L(G){return A(G)===c}function F(G){return A(G)===a}function K(G){return A(G)===s}function B(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function J(G){return A(G)===u}function V(G){return A(G)===r}function ee(G){return A(G)===h}function te(G){return A(G)===p}function he(G){return A(G)===n}function ye(G){return A(G)===i}function me(G){return A(G)===o}function ze(G){return A(G)===f}Oe.AsyncMode=w,Oe.ConcurrentMode=_,Oe.ContextConsumer=E,Oe.ContextProvider=S,Oe.Element=O,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=B,Oe.isForwardRef=J,Oe.isFragment=V,Oe.isLazy=ee,Oe.isMemo=te,Oe.isPortal=he,Oe.isProfiler=ye,Oe.isStrictMode=me,Oe.isSuspense=ze,Oe.isValidElementType=b,Oe.typeOf=A})()),Oe}var Sp;function r0(){return Sp||(Sp=1,process.env.NODE_ENV==="production"?fa.exports=E1():fa.exports=S1()),fa.exports}/*
|
|
120
16
|
object-assign
|
|
121
17
|
(c) Sindre Sorhus
|
|
122
18
|
@license MIT
|
|
123
|
-
*/var
|
|
124
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Nk=function(e,t){return Pk(e)||Ok(e,t)||Ik(e,t)||Mk()},nS=tS((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})),Lk=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},rS=function(e,t){if(e==null)return{};var n,r,o=Lk(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},Dk=Y.createContext(null);function oS(e){var t=e.children,n=t===void 0?"":t,r=rS(e,["children"]);return typeof n!="string"&&(n=bk.renderToString(n)),Y.createElement("template",nS({},r,{dangerouslySetInnerHTML:{__html:n}}))}function iS(e){var t=e.root,n=e.children;return ui.createPortal(n===void 0?null:n,t)}function Fk(e){var t=Y.forwardRef((function(n,r){var o,i,s=n.mode,c=s===void 0?"open":s,u=n.delegatesFocus,f=u!==void 0&&u,m=n.styleSheets,h=m===void 0?[]:m,v=n.ssr,w=v!==void 0&&v,C=n.children,A=rS(n,["mode","delegatesFocus","styleSheets","ssr","children"]),x=(i=Y.useRef((o=r)&&o.current),Y.useEffect((function(){o&&(o.current=i.current)}),[o]),i),E=Y.useState(null),R=Nk(E,2),I=R[0],L=R[1],M="node_".concat(c).concat(f);return Y.useLayoutEffect((function(){if(x.current)try{if(typeof r=="function"&&r(x.current),w){var U=x.current.shadowRoot;return void L(U)}var j=x.current.attachShadow({mode:c,delegatesFocus:f});h.length>0&&(j.adoptedStyleSheets=h),L(j)}catch(W){(function(H){var G=H.error,q=H.styleSheets,pe=H.root;switch(G.name){case"NotSupportedError":q.length>0&&(pe.adoptedStyleSheets=q);break;default:throw G}})({error:W,styleSheets:h,root:I})}}),[r,x,h]),Y.createElement(Y.Fragment,null,Y.createElement(e.tag,nS({key:M,ref:x},A),(I||w)&&Y.createElement(Dk.Provider,{value:I},w?Y.createElement(oS,{shadowroot:c,shadowrootmode:c},e.render({root:I,ssr:w,children:C})):Y.createElement(iS,{root:I},e.render({root:I,ssr:w,children:C})))))}));return t.propTypes={mode:Xe.oneOf(["open","closed"]),delegatesFocus:Xe.bool,styleSheets:Xe.arrayOf(Xe.instanceOf(globalThis.CSSStyleSheet)),ssr:Xe.bool,children:Xe.node},t}oS.propTypes={children:Xe.oneOfType([Xe.string,Xe.node])},iS.propTypes={root:Xe.object.isRequired,children:Xe.node};var wg=new Map;function jk(){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=Rk(o,{separator:"-"}),s="".concat(t,"-").concat(i);return wg.has(s)||wg.set(s,Fk({tag:i,render:n})),wg.get(s)}})}var Lh=jk();const aS="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 Su=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(){}},zk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jo,Js,U1,Bk=(U1=class{constructor(){Ke(this,Jo,zk);Ke(this,Js,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&V(this,Js)&&e!==V(this,Jo)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:V(this,Jo),provider:e}),Me(this,Jo,e),process.env.NODE_ENV!=="production"&&Me(this,Js,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&Me(this,Js,!0),V(this,Jo).setTimeout(e,t)}clearTimeout(e){V(this,Jo).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&Me(this,Js,!0),V(this,Jo).setInterval(e,t)}clearInterval(e){V(this,Jo).clearInterval(e)}},Jo=new WeakMap,Js=new WeakMap,U1),Gs=new Bk;function Uk(e){setTimeout(e,0)}var hl=typeof window>"u"||"Deno"in globalThis;function wr(){}function $k(e,t){return typeof e=="function"?e(t):e}function pv(e){return typeof e=="number"&&e>=0&&e!==1/0}function sS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ha(e,t){return typeof e=="function"?e(t):e}function so(e,t){return typeof e=="function"?e(t):e}function Ob(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==G0(s,t.options))return!1}else if(!Zf(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ib(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ml(t.options.mutationKey)!==ml(i))return!1}else if(!Zf(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function G0(e,t){return((t==null?void 0:t.queryKeyHashFn)||ml)(e)}function ml(e){return JSON.stringify(e,(t,n)=>mv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Zf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Zf(e[n],t[n])):!1}var Wk=Object.prototype.hasOwnProperty;function hv(e,t){if(e===t)return e;const n=Mb(e)&&Mb(t);if(!n&&!(mv(e)&&mv(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,c=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const m=n?f:i[f],h=e[m],v=t[m];if(h===v){c[m]=h,(n?f<o:Wk.call(e,m))&&u++;continue}if(h===null||v===null||typeof h!="object"||typeof v!="object"){c[m]=v;continue}const w=hv(h,v);c[m]=w,w===h&&u++}return o===s&&u===o?e:c}function ah(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 Mb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mv(e){if(!Nb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Nb(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Nb(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hk(e){return new Promise(t=>{Gs.setTimeout(t,e)})}function gv(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 hv(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 hv(e,t)}return t}function Vk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Kk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sh=Symbol();function lS(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===sh&&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===sh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Q0(e,t){return typeof e=="function"?e(...t):!!e}function Yk(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 qs,Ia,nu,$1,Gk=($1=class extends Su{constructor(){super();Ke(this,qs);Ke(this,Ia);Ke(this,nu);Me(this,nu,t=>{if(!hl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,Ia)||this.setEventListener(V(this,nu))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Ia))==null||t.call(this),Me(this,Ia,void 0))}setEventListener(t){var n;Me(this,nu,t),(n=V(this,Ia))==null||n.call(this),Me(this,Ia,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,qs)!==t&&(Me(this,qs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,qs)=="boolean"?V(this,qs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qs=new WeakMap,Ia=new WeakMap,nu=new WeakMap,$1),Z0=new Gk;function vv(){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 Qk=Uk;function Zk(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=Qk;const i=c=>{t?e.push(c):o(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{i(()=>{c(...u)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var vn=Zk(),ru,Ma,ou,W1,Xk=(W1=class extends Su{constructor(){super();Ke(this,ru,!0);Ke(this,Ma);Ke(this,ou);Me(this,ou,t=>{if(!hl&&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(){V(this,Ma)||this.setEventListener(V(this,ou))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,Ma))==null||t.call(this),Me(this,Ma,void 0))}setEventListener(t){var n;Me(this,ou,t),(n=V(this,Ma))==null||n.call(this),Me(this,Ma,t(this.setOnline.bind(this)))}setOnline(t){V(this,ru)!==t&&(Me(this,ru,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,ru)}},ru=new WeakMap,Ma=new WeakMap,ou=new WeakMap,W1),lh=new Xk;function Jk(e){return Math.min(1e3*2**e,3e4)}function cS(e){return(e??"online")==="online"?lh.isOnline():!0}var yv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function uS(e){let t=!1,n=0,r;const o=vv(),i=()=>o.status!=="pending",s=A=>{var x;if(!i()){const E=new yv(A);v(E),(x=e.onCancel)==null||x.call(e,E)}},c=()=>{t=!0},u=()=>{t=!1},f=()=>Z0.isFocused()&&(e.networkMode==="always"||lh.isOnline())&&e.canRun(),m=()=>cS(e.networkMode)&&e.canRun(),h=A=>{i()||(r==null||r(),o.resolve(A))},v=A=>{i()||(r==null||r(),o.reject(A))},w=()=>new Promise(A=>{var x;r=E=>{(i()||f())&&A(E)},(x=e.onPause)==null||x.call(e)}).then(()=>{var A;r=void 0,i()||(A=e.onContinue)==null||A.call(e)}),C=()=>{if(i())return;let A;const x=n===0?e.initialPromise:void 0;try{A=x??e.fn()}catch(E){A=Promise.reject(E)}Promise.resolve(A).then(h).catch(E=>{var U;if(i())return;const R=e.retry??(hl?0:3),I=e.retryDelay??Jk,L=typeof I=="function"?I(n,E):I,M=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,E);if(t||!M){v(E);return}n++,(U=e.onFail)==null||U.call(e,n,E),Hk(L).then(()=>f()?void 0:w()).then(()=>{t?v(E):C()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:c,continueRetry:u,canStart:m,start:()=>(m()?C():w().then(C),o)}}var el,H1,fS=(H1=class{constructor(){Ke(this,el)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pv(this.gcTime)&&Me(this,el,Gs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hl?1/0:300*1e3))}clearGcTimeout(){V(this,el)&&(Gs.clearTimeout(V(this,el)),Me(this,el,void 0))}},el=new WeakMap,H1),tl,iu,ao,nl,Rn,pd,rl,Po,Ii,V1,qk=(V1=class extends fS{constructor(t){super();Ke(this,Po);Ke(this,tl);Ke(this,iu);Ke(this,ao);Ke(this,nl);Ke(this,Rn);Ke(this,pd);Ke(this,rl);Me(this,rl,!1),Me(this,pd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Me(this,nl,t.client),Me(this,ao,V(this,nl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Me(this,tl,Db(this.options)),this.state=t.state??V(this,tl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,Rn))==null?void 0:t.promise}setOptions(t){if(this.options={...V(this,pd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Db(this.options);n.data!==void 0&&(this.setState(Lb(n.data,n.dataUpdatedAt)),Me(this,tl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,ao).remove(this)}setData(t,n){const r=gv(this.state.data,t,this.options);return it(this,Po,Ii).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){it(this,Po,Ii).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=V(this,Rn))==null?void 0:r.promise;return(o=V(this,Rn))==null||o.cancel(t),n?n.then(wr).catch(wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,tl))}isActive(){return this.observers.some(t=>so(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ha(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:!sS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Rn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Rn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,ao).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,Rn)&&(V(this,rl)?V(this,Rn).cancel({revert:!0}):V(this,Rn).cancelRetry()),this.scheduleGc()),V(this,ao).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||it(this,Po,Ii).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,m,h,v,w,C,A,x,E,R,I;if(this.state.fetchStatus!=="idle"&&((u=V(this,Rn))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,Rn))return V(this,Rn).continueRetry(),V(this,Rn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const L=this.observers.find(M=>M.options.queryFn);L&&this.setOptions(L.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=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(Me(this,rl,!0),r.signal)})},i=()=>{const L=lS(this.options,n),U=(()=>{const j={client:V(this,nl),queryKey:this.queryKey,meta:this.meta};return o(j),j})();return Me(this,rl,!1),this.options.persister?this.options.persister(L,U,this):L(U)},c=(()=>{const L={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:V(this,nl),state:this.state,fetchFn:i};return o(L),L})();(f=this.options.behavior)==null||f.onFetch(c,this),Me(this,iu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&it(this,Po,Ii).call(this,{type:"fetch",meta:(h=c.fetchOptions)==null?void 0:h.meta}),Me(this,Rn,uS({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:L=>{L instanceof yv&&L.revert&&this.setState({...V(this,iu),fetchStatus:"idle"}),r.abort()},onFail:(L,M)=>{it(this,Po,Ii).call(this,{type:"failed",failureCount:L,error:M})},onPause:()=>{it(this,Po,Ii).call(this,{type:"pause"})},onContinue:()=>{it(this,Po,Ii).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const L=await V(this,Rn).start();if(L===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(L),(w=(v=V(this,ao).config).onSuccess)==null||w.call(v,L,this),(A=(C=V(this,ao).config).onSettled)==null||A.call(C,L,this.state.error,this),L}catch(L){if(L instanceof yv){if(L.silent)return V(this,Rn).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw it(this,Po,Ii).call(this,{type:"error",error:L}),(E=(x=V(this,ao).config).onError)==null||E.call(x,L,this),(I=(R=V(this,ao).config).onSettled)==null||I.call(R,this.state.data,L,this),L}finally{this.scheduleGc()}}},tl=new WeakMap,iu=new WeakMap,ao=new WeakMap,nl=new WeakMap,Rn=new WeakMap,pd=new WeakMap,rl=new WeakMap,Po=new WeakSet,Ii=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,...dS(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Lb(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Me(this,iu,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),vn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,ao).notify({query:this,type:"updated",action:t})})},V1);function dS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Lb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Db(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 Ir,mt,hd,br,ol,au,Fi,Na,md,su,lu,il,al,La,cu,Ot,jf,bv,xv,wv,Sv,Cv,Av,Ev,pS,K1,eT=(K1=class extends Su{constructor(t,n){super();Ke(this,Ot);Ke(this,Ir);Ke(this,mt);Ke(this,hd);Ke(this,br);Ke(this,ol);Ke(this,au);Ke(this,Fi);Ke(this,Na);Ke(this,md);Ke(this,su);Ke(this,lu);Ke(this,il);Ke(this,al);Ke(this,La);Ke(this,cu,new Set);this.options=n,Me(this,Ir,t),Me(this,Na,null),Me(this,Fi,vv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,mt).addObserver(this),Fb(V(this,mt),this.options)?it(this,Ot,jf).call(this):this.updateResult(),it(this,Ot,Sv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kv(V(this,mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kv(V(this,mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,it(this,Ot,Cv).call(this),it(this,Ot,Av).call(this),V(this,mt).removeObserver(this)}setOptions(t){const n=this.options,r=V(this,mt);if(this.options=V(this,Ir).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof so(this.options.enabled,V(this,mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");it(this,Ot,Ev).call(this),V(this,mt).setOptions(this.options),n._defaulted&&!ah(this.options,n)&&V(this,Ir).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,mt),observer:this});const o=this.hasListeners();o&&jb(V(this,mt),r,this.options,n)&&it(this,Ot,jf).call(this),this.updateResult(),o&&(V(this,mt)!==r||so(this.options.enabled,V(this,mt))!==so(n.enabled,V(this,mt))||Ha(this.options.staleTime,V(this,mt))!==Ha(n.staleTime,V(this,mt)))&&it(this,Ot,bv).call(this);const i=it(this,Ot,xv).call(this);o&&(V(this,mt)!==r||so(this.options.enabled,V(this,mt))!==so(n.enabled,V(this,mt))||i!==V(this,La))&&it(this,Ot,wv).call(this,i)}getOptimisticResult(t){const n=V(this,Ir).getQueryCache().build(V(this,Ir),t),r=this.createResult(n,t);return nT(this,r)&&(Me(this,br,r),Me(this,au,this.options),Me(this,ol,V(this,mt).state)),r}getCurrentResult(){return V(this,br)}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&&V(this,Fi).status==="pending"&&V(this,Fi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){V(this,cu).add(t)}getCurrentQuery(){return V(this,mt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,Ir).defaultQueryOptions(t),r=V(this,Ir).getQueryCache().build(V(this,Ir),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return it(this,Ot,jf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,br)))}createResult(t,n){var H;const r=V(this,mt),o=this.options,i=V(this,br),s=V(this,ol),c=V(this,au),f=t!==r?t.state:V(this,hd),{state:m}=t;let h={...m},v=!1,w;if(n._optimisticResults){const G=this.hasListeners(),q=!G&&Fb(t,n),pe=G&&jb(t,r,n,o);(q||pe)&&(h={...h,...dS(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:C,errorUpdatedAt:A,status:x}=h;w=h.data;let E=!1;if(n.placeholderData!==void 0&&w===void 0&&x==="pending"){let G;i!=null&&i.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(G=i.data,E=!0):G=typeof n.placeholderData=="function"?n.placeholderData((H=V(this,lu))==null?void 0:H.state.data,V(this,lu)):n.placeholderData,G!==void 0&&(x="success",w=gv(i==null?void 0:i.data,G,n),v=!0)}if(n.select&&w!==void 0&&!E)if(i&&w===(s==null?void 0:s.data)&&n.select===V(this,md))w=V(this,su);else try{Me(this,md,n.select),w=n.select(w),w=gv(i==null?void 0:i.data,w,n),Me(this,su,w),Me(this,Na,null)}catch(G){Me(this,Na,G)}V(this,Na)&&(C=V(this,Na),w=V(this,su),A=Date.now(),x="error");const R=h.fetchStatus==="fetching",I=x==="pending",L=x==="error",M=I&&R,U=w!==void 0,W={status:x,fetchStatus:h.fetchStatus,isPending:I,isSuccess:x==="success",isError:L,isInitialLoading:M,isLoading:M,data:w,dataUpdatedAt:h.dataUpdatedAt,error:C,errorUpdatedAt:A,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>f.dataUpdateCount||h.errorUpdateCount>f.errorUpdateCount,isFetching:R,isRefetching:R&&!I,isLoadingError:L&&!U,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:L&&U,isStale:X0(t,n),refetch:this.refetch,promise:V(this,Fi),isEnabled:so(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=ie=>{W.status==="error"?ie.reject(W.error):W.data!==void 0&&ie.resolve(W.data)},q=()=>{const ie=Me(this,Fi,W.promise=vv());G(ie)},pe=V(this,Fi);switch(pe.status){case"pending":t.queryHash===r.queryHash&&G(pe);break;case"fulfilled":(W.status==="error"||W.data!==pe.value)&&q();break;case"rejected":(W.status!=="error"||W.error!==pe.reason)&&q();break}}return W}updateResult(){const t=V(this,br),n=this.createResult(V(this,mt),this.options);if(Me(this,ol,V(this,mt).state),Me(this,au,this.options),V(this,ol).data!==void 0&&Me(this,lu,V(this,mt)),ah(n,t))return;Me(this,br,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!V(this,cu).size)return!0;const s=new Set(i??V(this,cu));return this.options.throwOnError&&s.add("error"),Object.keys(V(this,br)).some(c=>{const u=c;return V(this,br)[u]!==t[u]&&s.has(u)})};it(this,Ot,pS).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&it(this,Ot,Sv).call(this)}},Ir=new WeakMap,mt=new WeakMap,hd=new WeakMap,br=new WeakMap,ol=new WeakMap,au=new WeakMap,Fi=new WeakMap,Na=new WeakMap,md=new WeakMap,su=new WeakMap,lu=new WeakMap,il=new WeakMap,al=new WeakMap,La=new WeakMap,cu=new WeakMap,Ot=new WeakSet,jf=function(t){it(this,Ot,Ev).call(this);let n=V(this,mt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(wr)),n},bv=function(){it(this,Ot,Cv).call(this);const t=Ha(this.options.staleTime,V(this,mt));if(hl||V(this,br).isStale||!pv(t))return;const r=sS(V(this,br).dataUpdatedAt,t)+1;Me(this,il,Gs.setTimeout(()=>{V(this,br).isStale||this.updateResult()},r))},xv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,mt)):this.options.refetchInterval)??!1},wv=function(t){it(this,Ot,Av).call(this),Me(this,La,t),!(hl||so(this.options.enabled,V(this,mt))===!1||!pv(V(this,La))||V(this,La)===0)&&Me(this,al,Gs.setInterval(()=>{(this.options.refetchIntervalInBackground||Z0.isFocused())&&it(this,Ot,jf).call(this)},V(this,La)))},Sv=function(){it(this,Ot,bv).call(this),it(this,Ot,wv).call(this,it(this,Ot,xv).call(this))},Cv=function(){V(this,il)&&(Gs.clearTimeout(V(this,il)),Me(this,il,void 0))},Av=function(){V(this,al)&&(Gs.clearInterval(V(this,al)),Me(this,al,void 0))},Ev=function(){const t=V(this,Ir).getQueryCache().build(V(this,Ir),this.options);if(t===V(this,mt))return;const n=V(this,mt);Me(this,mt,t),Me(this,hd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pS=function(t){vn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,br))}),V(this,Ir).getQueryCache().notify({query:V(this,mt),type:"observerResultsUpdated"})})},K1);function tT(e,t){return so(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Fb(e,t){return tT(e,t)||e.state.data!==void 0&&kv(e,t,t.refetchOnMount)}function kv(e,t,n){if(so(t.enabled,e)!==!1&&Ha(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&X0(e,t)}return!1}function jb(e,t,n,r){return(e!==t||so(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&X0(e,n)}function X0(e,t){return so(t.enabled,e)!==!1&&e.isStaleByTime(Ha(t.staleTime,e))}function nT(e,t){return!ah(e.getCurrentResult(),t)}function zb(e){return{onFetch:(t,n)=>{var m,h,v,w,C;const r=t.options,o=(v=(h=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:h.fetchMore)==null?void 0:v.direction,i=((w=t.state.data)==null?void 0:w.pages)||[],s=((C=t.state.data)==null?void 0:C.pageParams)||[];let c={pages:[],pageParams:[]},u=0;const f=async()=>{let A=!1;const x=I=>{Yk(I,()=>t.signal,()=>A=!0)},E=lS(t.options,t.fetchOptions),R=async(I,L,M)=>{if(A)return Promise.reject();if(L==null&&I.pages.length)return Promise.resolve(I);const j=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:L,direction:M?"backward":"forward",meta:t.options.meta};return x(q),q})(),W=await E(j),{maxPages:H}=t.options,G=M?Kk:Vk;return{pages:G(I.pages,W,H),pageParams:G(I.pageParams,L,H)}};if(o&&i.length){const I=o==="backward",L=I?rT:Bb,M={pages:i,pageParams:s},U=L(r,M);c=await R(M,U,I)}else{const I=e??i.length;do{const L=u===0?s[0]??r.initialPageParam:Bb(r,c);if(u>0&&L==null)break;c=await R(c,L),u++}while(u<I)}return c};t.options.persister?t.fetchFn=()=>{var A,x;return(x=(A=t.options).persister)==null?void 0:x.call(A,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Bb(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 rT(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 gd,qo,xr,sl,ei,Pa,Y1,oT=(Y1=class extends fS{constructor(t){super();Ke(this,ei);Ke(this,gd);Ke(this,qo);Ke(this,xr);Ke(this,sl);Me(this,gd,t.client),this.mutationId=t.mutationId,Me(this,xr,t.mutationCache),Me(this,qo,[]),this.state=t.state||hS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,qo).includes(t)||(V(this,qo).push(t),this.clearGcTimeout(),V(this,xr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Me(this,qo,V(this,qo).filter(n=>n!==t)),this.scheduleGc(),V(this,xr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,qo).length||(this.state.status==="pending"?this.scheduleGc():V(this,xr).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,c,u,f,m,h,v,w,C,A,x,E,R,I,L,M,U,j,W,H;const n=()=>{it(this,ei,Pa).call(this,{type:"continue"})},r={client:V(this,gd),meta:this.options.meta,mutationKey:this.options.mutationKey};Me(this,sl,uS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(G,q)=>{it(this,ei,Pa).call(this,{type:"failed",failureCount:G,error:q})},onPause:()=>{it(this,ei,Pa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,xr).canRun(this)}));const o=this.state.status==="pending",i=!V(this,sl).canStart();try{if(o)n();else{it(this,ei,Pa).call(this,{type:"pending",variables:t,isPaused:i}),await((c=(s=V(this,xr).config).onMutate)==null?void 0:c.call(s,t,this,r));const q=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t,r));q!==this.state.context&&it(this,ei,Pa).call(this,{type:"pending",context:q,variables:t,isPaused:i})}const G=await V(this,sl).start();return await((h=(m=V(this,xr).config).onSuccess)==null?void 0:h.call(m,G,t,this.state.context,this,r)),await((w=(v=this.options).onSuccess)==null?void 0:w.call(v,G,t,this.state.context,r)),await((A=(C=V(this,xr).config).onSettled)==null?void 0:A.call(C,G,null,this.state.variables,this.state.context,this,r)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,G,null,t,this.state.context,r)),it(this,ei,Pa).call(this,{type:"success",data:G}),G}catch(G){try{await((I=(R=V(this,xr).config).onError)==null?void 0:I.call(R,G,t,this.state.context,this,r))}catch(q){Promise.reject(q)}try{await((M=(L=this.options).onError)==null?void 0:M.call(L,G,t,this.state.context,r))}catch(q){Promise.reject(q)}try{await((j=(U=V(this,xr).config).onSettled)==null?void 0:j.call(U,void 0,G,this.state.variables,this.state.context,this,r))}catch(q){Promise.reject(q)}try{await((H=(W=this.options).onSettled)==null?void 0:H.call(W,void 0,G,t,this.state.context,r))}catch(q){Promise.reject(q)}throw it(this,ei,Pa).call(this,{type:"error",error:G}),G}finally{V(this,xr).runNext(this)}}},gd=new WeakMap,qo=new WeakMap,xr=new WeakMap,sl=new WeakMap,ei=new WeakSet,Pa=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),vn.batch(()=>{V(this,qo).forEach(r=>{r.onMutationUpdate(t)}),V(this,xr).notify({mutation:this,type:"updated",action:t})})},Y1);function hS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ji,Oo,vd,G1,iT=(G1=class extends Su{constructor(t={}){super();Ke(this,ji);Ke(this,Oo);Ke(this,vd);this.config=t,Me(this,ji,new Set),Me(this,Oo,new Map),Me(this,vd,0)}build(t,n,r){const o=new oT({client:t,mutationCache:this,mutationId:++xp(this,vd)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){V(this,ji).add(t);const n=Ep(t);if(typeof n=="string"){const r=V(this,Oo).get(n);r?r.push(t):V(this,Oo).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(V(this,ji).delete(t)){const n=Ep(t);if(typeof n=="string"){const r=V(this,Oo).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&V(this,Oo).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ep(t);if(typeof n=="string"){const r=V(this,Oo).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=Ep(t);if(typeof n=="string"){const o=(r=V(this,Oo).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(){vn.batch(()=>{V(this,ji).forEach(t=>{this.notify({type:"removed",mutation:t})}),V(this,ji).clear(),V(this,Oo).clear()})}getAll(){return Array.from(V(this,ji))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ib(n,r))}findAll(t={}){return this.getAll().filter(n=>Ib(t,n))}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return vn.batch(()=>Promise.all(t.map(n=>n.continue().catch(wr))))}},ji=new WeakMap,Oo=new WeakMap,vd=new WeakMap,G1);function Ep(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zi,Da,Mr,Bi,Hi,Vp,Tv,Q1,aT=(Q1=class extends Su{constructor(n,r){super();Ke(this,Hi);Ke(this,zi);Ke(this,Da);Ke(this,Mr);Ke(this,Bi);Me(this,zi,n),this.setOptions(r),this.bindMethods(),it(this,Hi,Vp).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=V(this,zi).defaultMutationOptions(n),ah(this.options,r)||V(this,zi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:V(this,Mr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ml(r.mutationKey)!==ml(this.options.mutationKey)?this.reset():((o=V(this,Mr))==null?void 0:o.state.status)==="pending"&&V(this,Mr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=V(this,Mr))==null||n.removeObserver(this)}onMutationUpdate(n){it(this,Hi,Vp).call(this),it(this,Hi,Tv).call(this,n)}getCurrentResult(){return V(this,Da)}reset(){var n;(n=V(this,Mr))==null||n.removeObserver(this),Me(this,Mr,void 0),it(this,Hi,Vp).call(this),it(this,Hi,Tv).call(this)}mutate(n,r){var o;return Me(this,Bi,r),(o=V(this,Mr))==null||o.removeObserver(this),Me(this,Mr,V(this,zi).getMutationCache().build(V(this,zi),this.options)),V(this,Mr).addObserver(this),V(this,Mr).execute(n)}},zi=new WeakMap,Da=new WeakMap,Mr=new WeakMap,Bi=new WeakMap,Hi=new WeakSet,Vp=function(){var r;const n=((r=V(this,Mr))==null?void 0:r.state)??hS();Me(this,Da,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Tv=function(n){vn.batch(()=>{var r,o,i,s,c,u,f,m;if(V(this,Bi)&&this.hasListeners()){const h=V(this,Da).variables,v=V(this,Da).context,w={client:V(this,zi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=V(this,Bi)).onSuccess)==null||o.call(r,n.data,h,v,w)}catch(C){Promise.reject(C)}try{(s=(i=V(this,Bi)).onSettled)==null||s.call(i,n.data,null,h,v,w)}catch(C){Promise.reject(C)}}else if((n==null?void 0:n.type)==="error"){try{(u=(c=V(this,Bi)).onError)==null||u.call(c,n.error,h,v,w)}catch(C){Promise.reject(C)}try{(m=(f=V(this,Bi)).onSettled)==null||m.call(f,void 0,n.error,h,v,w)}catch(C){Promise.reject(C)}}}this.listeners.forEach(h=>{h(V(this,Da))})})},Q1),ti,Z1,sT=(Z1=class extends Su{constructor(t={}){super();Ke(this,ti);this.config=t,Me(this,ti,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??G0(o,n);let s=this.get(i);return s||(s=new qk({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){V(this,ti).has(t.queryHash)||(V(this,ti).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ti).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ti).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){vn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ti).get(t)}getAll(){return[...V(this,ti).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ob(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ob(t,r)):n}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){vn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){vn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ti=new WeakMap,Z1),tn,Fa,ja,uu,fu,za,du,pu,X1,mS=(X1=class{constructor(e={}){Ke(this,tn);Ke(this,Fa);Ke(this,ja);Ke(this,uu);Ke(this,fu);Ke(this,za);Ke(this,du);Ke(this,pu);Me(this,tn,e.queryCache||new sT),Me(this,Fa,e.mutationCache||new iT),Me(this,ja,e.defaultOptions||{}),Me(this,uu,new Map),Me(this,fu,new Map),Me(this,za,0)}mount(){xp(this,za)._++,V(this,za)===1&&(Me(this,du,Z0.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onFocus())})),Me(this,pu,lh.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,tn).onOnline())})))}unmount(){var e,t;xp(this,za)._--,V(this,za)===0&&((e=V(this,du))==null||e.call(this),Me(this,du,void 0),(t=V(this,pu))==null||t.call(this),Me(this,pu,void 0))}isFetching(e){return V(this,tn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,Fa).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,tn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=V(this,tn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ha(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return V(this,tn).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=V(this,tn).get(r.queryHash),i=o==null?void 0:o.state.data,s=$k(t,i);if(s!==void 0)return V(this,tn).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return vn.batch(()=>V(this,tn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,tn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,tn);vn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,tn);return vn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=vn.batch(()=>V(this,tn).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(wr).catch(wr)}invalidateQueries(e,t={}){return vn.batch(()=>(V(this,tn).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=vn.batch(()=>V(this,tn).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(wr)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(wr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,tn).build(this,t);return n.isStaleByTime(Ha(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wr).catch(wr)}fetchInfiniteQuery(e){return e.behavior=zb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wr).catch(wr)}ensureInfiniteQueryData(e){return e.behavior=zb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return lh.isOnline()?V(this,Fa).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,tn)}getMutationCache(){return V(this,Fa)}getDefaultOptions(){return V(this,ja)}setDefaultOptions(e){Me(this,ja,e)}setQueryDefaults(e,t){V(this,uu).set(ml(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,uu).values()],n={};return t.forEach(r=>{Zf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){V(this,fu).set(ml(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,fu).values()],n={};return t.forEach(r=>{Zf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ja).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=G0(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===sh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ja).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,tn).clear(),V(this,Fa).clear()}},tn=new WeakMap,Fa=new WeakMap,ja=new WeakMap,uu=new WeakMap,fu=new WeakMap,za=new WeakMap,du=new WeakMap,pu=new WeakMap,X1),gS=F.createContext(void 0),vS=e=>{const t=F.useContext(gS);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lT=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(gS.Provider,{value:e,children:t})),yS=F.createContext(!1),cT=()=>F.useContext(yS);yS.Provider;function uT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fT=F.createContext(uT()),dT=()=>F.useContext(fT),pT=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Q0(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},hT=e=>{F.useEffect(()=>{e.clearReset()},[e])},mT=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Q0(n,[e.error,r])),gT=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))}},vT=(e,t)=>e.isLoading&&e.isFetching&&!t,yT=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ub=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function bT(e,t,n){var v,w,C,A;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=cT(),o=dT(),i=vS(n),s=i.defaultQueryOptions(e);(w=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||w.call(v,s);const c=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",gT(s),pT(s,o,c),hT(o);const u=!i.getQueryCache().get(s.queryHash),[f]=F.useState(()=>new t(i,s)),m=f.getOptimisticResult(s),h=!r&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(x=>{const E=h?f.subscribe(vn.batchCalls(x)):wr;return f.updateResult(),E},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),F.useEffect(()=>{f.setOptions(s)},[s,f]),yT(s,m))throw Ub(s,f,o);if(mT({result:m,errorResetBoundary:o,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw m.error;if((A=(C=i.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||A.call(C,s,m),s.experimental_prefetchInRender&&!hl&&vT(m,r)){const x=u?Ub(s,f,o):c==null?void 0:c.promise;x==null||x.catch(wr).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?m:f.trackResult(m)}function Dh(e,t){return bT(e,eT,t)}function J0(e,t){const n=vS(t),[r]=F.useState(()=>new aT(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);const o=F.useSyncExternalStore(F.useCallback(s=>r.subscribe(vn.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=F.useCallback((s,c)=>{r.mutate(s,c).catch(wr)},[r]);if(o.error&&Q0(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const q0=Y.createContext({queryClient:new mS});q0.Provider;const qa=()=>{const e=Y.useContext(q0);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},bS=({children:e})=>{const[t]=Y.useState(new mS);return D.jsx(q0.Provider,{value:{queryClient:t},children:D.jsx(lT,{client:t,children:e})})},Zt={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},xS="https://marketplace.confidence.com/api",Qi=xS+"/confidence",$b=xS+"/dropbox/prod",xT=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Qi}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},wT=()=>{const{queryClient:e}=qa(),t=J0({mutationFn:async r=>xT(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},ST=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Qi}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},CT=()=>{const{queryClient:e}=qa(),t=J0({mutationFn:async r=>await ST(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},wS=(e,t)=>{const{queryClient:n}=qa(),r=Dh({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=c=>{var u;return((u=r.data)==null?void 0:u[c.toString()])??!1},i=(c,u)=>{var f;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[c]:u!==void 0?u:!o(c)})),(f=t==null?void 0:t.onTaskExpanded)==null||f.call(t,c,o(c))},s=Y.useMemo(()=>Object.values(r.data??{}).some(c=>c),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},AT=(e,t)=>{const{queryClient:n}=qa(),{completeTask:r}=wT(),{startTask:o}=CT(),{toggleTaskExpanded:i}=wS(e);return{completeTask:async(u,f)=>{const{status:m}=await r(u.toString());m&&(i(u,!1),n.setQueryData(["playbook",+e],h=>{if(!h)return h;const v=h.tasks.map(w=>w.sequenceOrder===f+1&&t.quickComplete?{...w,workflowStatus:Zt.IN_PROGRESS}:w.taskInstanceId===u?{...w,workflowStatus:m}:w);return{...h,tasks:v}}))},startTask:async u=>{const{status:f}=await o(u.toString());f&&(i(u,!0),n.setQueryData(["playbook",+e],m=>{if(!m)return m;const h=m.tasks.map(v=>v.taskInstanceId===u?{...v,workflowStatus:f}:v);return{...m,tasks:h}}))}}},ET=e=>{var o;const{queryClient:t}=qa(),n=Dh({queryFn:async()=>{const i=new Headers,s=await fetch(`${Qi}/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 c=await s.json();if(c.error)throw new Error(c.error);return c},queryKey:["playbook",+e]},t),r=AT(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},Kc={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},kT={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},TT=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:Y.useMemo(()=>t===Zt.OPEN&&n?[Kc.START]:t===Zt.IN_PROGRESS?[Kc.PAUSE,Kc.COMPLETE]:t===Zt.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},SS=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Qi}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},yd='/*! 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{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer base{.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}}@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-0\\.5{top:calc(var(--spacing)*.5)!important}.top-1{top:calc(var(--spacing)*1)!important}.top-3{top:calc(var(--spacing)*3)!important}.-right-0,.right-0{right:calc(var(--spacing)*0)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.bottom-2{bottom:calc(var(--spacing)*2)!important}.left-0{left:calc(var(--spacing)*0)!important}.left-1{left:calc(var(--spacing)*1)!important}.left-1\\/2{left:50%!important}.left-4{left:calc(var(--spacing)*4)!important}.z-2{z-index:2!important}.z-10{z-index:10!important}.z-50{z-index:50!important}.z-\\[9999999997\\],.z-\\[9999999998\\],.z-\\[9999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media(min-width:40rem){.container{max-width:40rem!important}}@media(min-width:48rem){.container{max-width:48rem!important}}@media(min-width:64rem){.container{max-width:64rem!important}}@media(min-width:80rem){.container{max-width:80rem!important}}@media(min-width:96rem){.container{max-width:96rem!important}}.m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-2{margin-inline:calc(var(--spacing)*2)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.mx-auto{margin-inline:auto!important}.my-1{margin-block:calc(var(--spacing)*1)!important}.my-2{margin-block:calc(var(--spacing)*2)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.mr-2{margin-right:calc(var(--spacing)*2)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-1{margin-bottom:calc(var(--spacing)*1)!important}.mb-2{margin-bottom:calc(var(--spacing)*2)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.inline-flex{display:inline-flex!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-2{height:calc(var(--spacing)*2)!important}.h-3{height:calc(var(--spacing)*3)!important}.h-4{height:calc(var(--spacing)*4)!important}.h-16{height:calc(var(--spacing)*16)!important}.h-\\[18px\\]{height:18px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-\\[75px\\]{height:75px!important}.h-\\[100vh\\]{height:100vh!important}.h-\\[110px\\]{height:110px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-1\\/3{width:33.3333%!important}.w-3{width:calc(var(--spacing)*3)!important}.w-4{width:calc(var(--spacing)*4)!important}.w-\\[20px\\]{width:20px!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[75px\\]{width:75px!important}.w-\\[400px\\]{width:400px!important}.w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-400{max-width:calc(var(--spacing)*400)!important}.max-w-\\[300px\\]{max-width:300px!important}.max-w-\\[420px\\]{max-width:420px!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-0{min-width:calc(var(--spacing)*0)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-\\[270px\\]{min-width:270px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.rotate-180{rotate:180deg!important}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.animate-progress{animation:1.5s ease-in-out infinite progress!important}.animate-pulse{animation:var(--animate-pulse)!important}.animate-spin{animation:var(--animate-spin)!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-zoom-in{cursor:zoom-in!important}.resize{resize:both!important}.list-decimal{list-style-type:decimal!important}.list-disc{list-style-type:disc!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.items-start{align-items:flex-start!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.justify-start{justify-content:flex-start!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.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(.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(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:3.40282e38px!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.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}.border-danger-200{border-color:#f0aab1!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-200{border-color:#94c8ff!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-200{border-color:#a5dab1!important}.border-success-600{border-color:#218838!important}.border-warning-200{border-color:#ffe597!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.border-t-blue-500{border-top-color:var(--color-blue-500)!important}.border-l-danger-500{border-left-color:#dc3545!important}.border-l-primary-500{border-left-color:#007bff!important}.border-l-success-500{border-left-color:#28a745!important}.border-l-warning-500{border-left-color:#ffc107!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-blue-500{background-color:var(--color-blue-500)!important}.bg-danger-100{background-color:#f6ccd0!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-200{background-color:#ced1d6!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-100{background-color:#bfdeff!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-100{background-color:#c9e9d0!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-100{background-color:#ffefc1!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-3{padding:calc(var(--spacing)*3)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-0{padding-inline:calc(var(--spacing)*0)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-2{padding-block:calc(var(--spacing)*2)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.pb-\\[102px\\]{padding-bottom:102px!important}.pl-4{padding-left:calc(var(--spacing)*4)!important}.text-center{text-align:center!important}.text-left{text-align:left!important}.font-mono{font-family:var(--font-mono)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-\\[10px\\]{font-size:10px!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.font-semibold{--tw-font-weight:var(--font-weight-semibold)!important;font-weight:var(--font-weight-semibold)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-blue-600{color:var(--color-blue-600)!important}.text-danger-500{color:#dc3545!important}.text-danger-600{color:#c82333!important}.text-danger-900{color:#721c24!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-300{color:#b0b5bd!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-primary-900{color:#004085!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-success-900{color:#155724!important}.text-warning-500{color:#ffc107!important}.text-warning-600{color:#f59e0b!important}.text-warning-900{color:#935f07!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.line-through{text-decoration-line:line-through!important}.underline{text-decoration-line:underline!important}.opacity-0{opacity:0!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-100{opacity:1!important}.shadow{--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}.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}.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}.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}.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}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.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(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.outline-none{--tw-outline-style:none!important;outline-style:none!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.hover\\:border-primary-500:hover{border-color:#007bff!important}.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-700:hover{background-color:#0062cc!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-transparent:hover{background-color:#0000!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-blue-600:hover{color:var(--color-blue-600)!important}.hover\\:text-danger-600:hover{color:#c82333!important}.hover\\:text-danger-700:hover{color:#bd2130!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-600:hover{color:#0069d9!important}.hover\\:text-primary-700:hover{color:#0062cc!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-600:hover{color:#218838!important}.hover\\:text-success-700:hover{color:#1e7e34!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-600:hover{color:#f59e0b!important}.hover\\:text-warning-700:hover{color:#dd8e0a!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.md\\:min-w-fit{min-width:fit-content!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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--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}}}@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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',_T=(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},RT=(e,t)=>({classGroupId:e,validator:t}),CS=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ch="-",Wb=[],PT="arbitrary..",OT=e=>{const t=MT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return IT(s);const c=s.split(ch),u=c[0]===""&&c.length>1?1:0;return AS(c,u,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const u=r[s],f=n[s];return u?f?_T(f,u):u:f||Wb}return n[s]||Wb}}},AS=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const f=AS(e,t+1,i);if(f)return f}const s=n.validators;if(s===null)return;const c=t===0?e.join(ch):e.slice(t).join(ch),u=s.length;for(let f=0;f<u;f++){const m=s[f];if(m.validator(c))return m.classGroupId}},IT=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?PT+r:void 0})(),MT=e=>{const{theme:t,classGroups:n}=e;return NT(n,t)},NT=(e,t)=>{const n=CS();for(const r in e){const o=e[r];ey(o,n,r,t)}return n},ey=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];LT(s,t,n,r)}},LT=(e,t,n,r)=>{if(typeof e=="string"){DT(e,t,n);return}if(typeof e=="function"){FT(e,t,n,r);return}jT(e,t,n,r)},DT=(e,t,n)=>{const r=e===""?t:ES(t,e);r.classGroupId=n},FT=(e,t,n,r)=>{if(zT(e)){ey(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(RT(n,e))},jT=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[c,u]=o[s];ey(u,ES(t,c),n,r)}},ES=(e,t)=>{let n=e;const r=t.split(ch),o=r.length;for(let i=0;i<o;i++){const s=r[i];let c=n.nextPart.get(s);c||(c=CS(),n.nextPart.set(s,c)),n=c}return n},zT=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,BT=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)}}},_v="!",Hb=":",UT=[],Vb=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),$T=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,c=0,u=0,f;const m=o.length;for(let A=0;A<m;A++){const x=o[A];if(s===0&&c===0){if(x===Hb){i.push(o.slice(u,A)),u=A+1;continue}if(x==="/"){f=A;continue}}x==="["?s++:x==="]"?s--:x==="("?c++:x===")"&&c--}const h=i.length===0?o:o.slice(u);let v=h,w=!1;h.endsWith(_v)?(v=h.slice(0,-1),w=!0):h.startsWith(_v)&&(v=h.slice(1),w=!0);const C=f&&f>u?f-u:void 0;return Vb(i,w,v,C)};if(t){const o=t+Hb,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):Vb(UT,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},WT=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],c=s[0]==="[",u=t.has(s);c||u?(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}},HT=e=>({cache:BT(e.cacheSize),parseClassName:$T(e),sortModifiers:WT(e),...OT(e)}),VT=/\s+/,KT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],c=e.trim().split(VT);let u="";for(let f=c.length-1;f>=0;f-=1){const m=c[f],{isExternal:h,modifiers:v,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:A}=n(m);if(h){u=m+(u.length>0?" "+u:u);continue}let x=!!A,E=r(x?C.substring(0,A):C);if(!E){if(!x){u=m+(u.length>0?" "+u:u);continue}if(E=r(C),!E){u=m+(u.length>0?" "+u:u);continue}x=!1}const R=v.length===0?"":v.length===1?v[0]:i(v).join(":"),I=w?R+_v:R,L=I+E;if(s.indexOf(L)>-1)continue;s.push(L);const M=o(E,x);for(let U=0;U<M.length;++U){const j=M[U];s.push(I+j)}u=m+(u.length>0?" "+u:u)}return u},YT=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=kS(n))&&(o&&(o+=" "),o+=r);return o},kS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kS(e[r]))&&(n&&(n+=" "),n+=t);return n},GT=(e,...t)=>{let n,r,o,i;const s=u=>{const f=t.reduce((m,h)=>h(m),e());return n=HT(f),r=n.cache.get,o=n.cache.set,i=c,c(u)},c=u=>{const f=r(u);if(f)return f;const m=KT(u,n);return o(u,m),m};return i=s,(...u)=>i(YT(...u))},QT=[],gn=e=>{const t=n=>n[e]||QT;return t.isThemeGetter=!0,t},TS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_S=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZT=/^\d+\/\d+$/,XT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JT=/\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$/,qT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,e_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mc=e=>ZT.test(e),st=e=>!!e&&!Number.isNaN(Number(e)),_a=e=>!!e&&Number.isInteger(Number(e)),Sg=e=>e.endsWith("%")&&st(e.slice(0,-1)),Ri=e=>XT.test(e),n_=()=>!0,r_=e=>JT.test(e)&&!qT.test(e),RS=()=>!1,o_=e=>e_.test(e),i_=e=>t_.test(e),a_=e=>!Ue(e)&&!$e(e),s_=e=>Cu(e,IS,RS),Ue=e=>TS.test(e),Us=e=>Cu(e,MS,r_),Cg=e=>Cu(e,d_,st),Kb=e=>Cu(e,PS,RS),l_=e=>Cu(e,OS,i_),kp=e=>Cu(e,NS,o_),$e=e=>_S.test(e),Rf=e=>Au(e,MS),c_=e=>Au(e,p_),Yb=e=>Au(e,PS),u_=e=>Au(e,IS),f_=e=>Au(e,OS),Tp=e=>Au(e,NS,!0),Cu=(e,t,n)=>{const r=TS.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Au=(e,t,n=!1)=>{const r=_S.exec(e);return r?r[1]?t(r[1]):n:!1},PS=e=>e==="position"||e==="percentage",OS=e=>e==="image"||e==="url",IS=e=>e==="length"||e==="size"||e==="bg-size",MS=e=>e==="length",d_=e=>e==="number",p_=e=>e==="family-name",NS=e=>e==="shadow",h_=()=>{const e=gn("color"),t=gn("font"),n=gn("text"),r=gn("font-weight"),o=gn("tracking"),i=gn("leading"),s=gn("breakpoint"),c=gn("container"),u=gn("spacing"),f=gn("radius"),m=gn("shadow"),h=gn("inset-shadow"),v=gn("text-shadow"),w=gn("drop-shadow"),C=gn("blur"),A=gn("perspective"),x=gn("aspect"),E=gn("ease"),R=gn("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...L(),$e,Ue],U=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],W=()=>[$e,Ue,u],H=()=>[Mc,"full","auto",...W()],G=()=>[_a,"none","subgrid",$e,Ue],q=()=>["auto",{span:["full",_a,$e,Ue]},_a,$e,Ue],pe=()=>[_a,"auto",$e,Ue],ie=()=>["auto","min","max","fr",$e,Ue],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],xe=()=>["start","end","center","stretch","center-safe","end-safe"],Ae=()=>["auto",...W()],Re=()=>[Mc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],Q=()=>[e,$e,Ue],Ee=()=>[...L(),Yb,Kb,{position:[$e,Ue]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",u_,s_,{size:[$e,Ue]}],ue=()=>[Sg,Rf,Us],me=()=>["","none","full",f,$e,Ue],Te=()=>["",st,Rf,Us],de=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[st,Sg,Yb,Kb],je=()=>["","none",C,$e,Ue],ze=()=>["none",st,$e,Ue],Be=()=>["none",st,$e,Ue],Je=()=>[st,$e,Ue],ke=()=>[Mc,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ri],breakpoint:[Ri],color:[n_],container:[Ri],"drop-shadow":[Ri],ease:["in","out","in-out"],font:[a_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ri],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ri],shadow:[Ri],spacing:["px",st],text:[Ri],"text-shadow":[Ri],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mc,Ue,$e,x]}],container:["container"],columns:[{columns:[st,Ue,$e,c]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:M()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[_a,"auto",$e,Ue]}],basis:[{basis:[Mc,"full","auto",c,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[st,Mc,"auto","initial","none",Ue]}],grow:[{grow:["",st,$e,Ue]}],shrink:[{shrink:["",st,$e,Ue]}],order:[{order:[_a,"first","last","none",$e,Ue]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...xe(),"normal"]}],"justify-self":[{"justify-self":["auto",...xe()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...xe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...xe(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...xe(),"baseline"]}],"place-self":[{"place-self":["auto",...xe()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:Ae()}],mx:[{mx:Ae()}],my:[{my:Ae()}],ms:[{ms:Ae()}],me:[{me:Ae()}],mt:[{mt:Ae()}],mr:[{mr:Ae()}],mb:[{mb:Ae()}],ml:[{ml:Ae()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:Re()}],w:[{w:[c,"screen",...Re()]}],"min-w":[{"min-w":[c,"screen","none",...Re()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...Re()]}],h:[{h:["screen","lh",...Re()]}],"min-h":[{"min-h":["screen","lh","none",...Re()]}],"max-h":[{"max-h":["screen","lh",...Re()]}],"font-size":[{text:["base",n,Rf,Us]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$e,Cg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sg,Ue]}],"font-family":[{font:[c_,Ue,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,$e,Ue]}],"line-clamp":[{"line-clamp":[st,"none",$e,Cg]}],leading:[{leading:[i,...W()]}],"list-image":[{"list-image":["none",$e,Ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$e,Ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[st,"from-font","auto",$e,Us]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[st,"auto",$e,Ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$e,Ue]}],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",$e,Ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_a,$e,Ue],radial:["",$e,Ue],conic:[_a,$e,Ue]},f_,l_]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Te()}],"border-w-x":[{"border-x":Te()}],"border-w-y":[{"border-y":Te()}],"border-w-s":[{"border-s":Te()}],"border-w-e":[{"border-e":Te()}],"border-w-t":[{"border-t":Te()}],"border-w-r":[{"border-r":Te()}],"border-w-b":[{"border-b":Te()}],"border-w-l":[{"border-l":Te()}],"divide-x":[{"divide-x":Te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[st,$e,Ue]}],"outline-w":[{outline:["",st,Rf,Us]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",m,Tp,kp]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Tp,kp]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[st,Us]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":Te()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",v,Tp,kp]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[st,$e,Ue]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[st]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[$e,Ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"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":L()}],"mask-image-conic-pos":[{"mask-conic":[st]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$e,Ue]}],filter:[{filter:["","none",$e,Ue]}],blur:[{blur:je()}],brightness:[{brightness:[st,$e,Ue]}],contrast:[{contrast:[st,$e,Ue]}],"drop-shadow":[{"drop-shadow":["","none",w,Tp,kp]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",st,$e,Ue]}],"hue-rotate":[{"hue-rotate":[st,$e,Ue]}],invert:[{invert:["",st,$e,Ue]}],saturate:[{saturate:[st,$e,Ue]}],sepia:[{sepia:["",st,$e,Ue]}],"backdrop-filter":[{"backdrop-filter":["","none",$e,Ue]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[st,$e,Ue]}],"backdrop-contrast":[{"backdrop-contrast":[st,$e,Ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",st,$e,Ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[st,$e,Ue]}],"backdrop-invert":[{"backdrop-invert":["",st,$e,Ue]}],"backdrop-opacity":[{"backdrop-opacity":[st,$e,Ue]}],"backdrop-saturate":[{"backdrop-saturate":[st,$e,Ue]}],"backdrop-sepia":[{"backdrop-sepia":["",st,$e,Ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$e,Ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[st,"initial",$e,Ue]}],ease:[{ease:["linear","initial",E,$e,Ue]}],delay:[{delay:[st,$e,Ue]}],animate:[{animate:["none",R,$e,Ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,$e,Ue]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Je()}],"skew-x":[{"skew-x":Je()}],"skew-y":[{"skew-y":Je()}],transform:[{transform:[$e,Ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"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",$e,Ue]}],"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":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",$e,Ue]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[st,Rf,Us,Cg]}],stroke:[{stroke:["none",...Q()]}],"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"]}},Yc=GT(h_);function LS(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=LS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xf(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=LS(e))&&(r&&(r+=" "),r+=t);return r}function gt(...e){return Yc(Xf(e))}const m_=typeof document<"u"?Y.useLayoutEffect:()=>{},es=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Qs=e=>e&&"window"in e&&e.window===e?e:es(e).defaultView||window;function g_(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function v_(e){return g_(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let y_=!1;function ty(){return y_}function DS(e,t){if(!ty())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:v_(n)?n=n.host:n=n.parentNode}return!1}const Rv=(e=document)=>{var t;if(!ty())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 FS(e){return ty()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function b_(e){if(x_())e.focus({preventScroll:!0});else{let t=w_(e);e.focus(),S_(t)}}let _p=null;function x_(){if(_p==null){_p=!1;try{document.createElement("div").focus({get preventScroll(){return _p=!0,!0}})}catch{}}return _p}function w_(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 S_(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Fh(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 ny(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 Zi(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Jf=Zi(function(){return ny(/^Mac/i)}),C_=Zi(function(){return ny(/^iPhone/i)}),jS=Zi(function(){return ny(/^iPad/i)||Jf()&&navigator.maxTouchPoints>1}),A_=Zi(function(){return C_()||jS()});Zi(function(){return Jf()||A_()});const E_=Zi(function(){return Fh(/AppleWebKit/i)&&!k_()}),k_=Zi(function(){return Fh(/Chrome/i)}),T_=Zi(function(){return Fh(/Android/i)}),__=Zi(function(){return Fh(/Firefox/i)});function qf(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:c,shiftKey:u}=t;__()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Jf()?i=!0:s=!0);let f=E_()&&Jf()&&!jS()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:c,shiftKey:u,detail:1,bubbles:!0,cancelable:!0});qf.isOpening=n,b_(e),e.dispatchEvent(f),qf.isOpening=!1}qf.isOpening=!1;function zS(){let e=Y.useRef(new Map),t=Y.useCallback((o,i,s,c)=>{let u=c!=null&&c.once?(...f)=>{e.current.delete(s),s(...f)}:s;e.current.set(s,{type:i,eventTarget:o,fn:u,options:c}),o.addEventListener(i,u,c)},[]),n=Y.useCallback((o,i,s,c)=>{var u;let f=((u=e.current.get(s))===null||u===void 0?void 0:u.fn)||s;o.removeEventListener(i,f,c),e.current.delete(s)},[]),r=Y.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return Y.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function R_(e){return e.pointerType===""&&e.isTrusted?!0:T_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function BS(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function P_(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function US(e){let t=Y.useRef({isFocused:!1,observer:null});return m_(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),Y.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=BS(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 O_=!1,bd=null,Pv=new Set,$f=new Map,gl=!1,Ov=!1;const I_={Tab:!0,Escape:!0};function ry(e,t){for(let n of Pv)n(e,t)}function M_(e){return!(e.metaKey||!Jf()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function uh(e){gl=!0,!qf.isOpening&&M_(e)&&(bd="keyboard",ry("keyboard",e))}function lo(e){bd="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(gl=!0,ry("pointer",e))}function $S(e){!qf.isOpening&&R_(e)&&(gl=!0,bd="virtual")}function WS(e){e.target===window||e.target===document||O_||!e.isTrusted||(!gl&&!Ov&&(bd="virtual",ry("virtual",e)),gl=!1,Ov=!1)}function HS(){gl=!1,Ov=!0}function Iv(e){if(typeof window>"u"||typeof document>"u"||$f.get(Qs(e)))return;const t=Qs(e),n=es(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){gl=!0,r.apply(this,arguments)},n.addEventListener("keydown",uh,!0),n.addEventListener("keyup",uh,!0),n.addEventListener("click",$S,!0),t.addEventListener("focus",WS,!0),t.addEventListener("blur",HS,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",lo,!0),n.addEventListener("pointermove",lo,!0),n.addEventListener("pointerup",lo,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",lo,!0),n.addEventListener("mousemove",lo,!0),n.addEventListener("mouseup",lo,!0)),t.addEventListener("beforeunload",()=>{VS(e)},{once:!0}),$f.set(t,{focus:r})}const VS=(e,t)=>{const n=Qs(e),r=es(e);t&&r.removeEventListener("DOMContentLoaded",t),$f.has(n)&&(n.HTMLElement.prototype.focus=$f.get(n).focus,r.removeEventListener("keydown",uh,!0),r.removeEventListener("keyup",uh,!0),r.removeEventListener("click",$S,!0),n.removeEventListener("focus",WS,!0),n.removeEventListener("blur",HS,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",lo,!0),r.removeEventListener("pointermove",lo,!0),r.removeEventListener("pointerup",lo,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",lo,!0),r.removeEventListener("mousemove",lo,!0),r.removeEventListener("mouseup",lo,!0)),$f.delete(n))};function N_(e){const t=es(e);let n;return t.readyState!=="loading"?Iv(e):(n=()=>{Iv(e)},t.addEventListener("DOMContentLoaded",n)),()=>VS(e,n)}typeof document<"u"&&N_();function KS(){return bd!=="pointer"}const L_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D_(e,t,n){let r=es(n==null?void 0:n.target);const o=typeof window<"u"?Qs(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Qs(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Qs(n==null?void 0:n.target).HTMLElement:HTMLElement,c=typeof window<"u"?Qs(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!L_.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!I_[n.key])}function F_(e,t,n){Iv(),Y.useEffect(()=>{let r=(o,i)=>{D_(!!(n!=null&&n.isTextInput),o,i)&&e(KS())};return Pv.add(r),()=>{Pv.delete(r)}},t)}function j_(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=Y.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),s=US(i),c=Y.useCallback(u=>{const f=es(u.target),m=f?Rv(f):Rv();u.target===u.currentTarget&&m===FS(u.nativeEvent)&&(n&&n(u),o&&o(!0),s(u))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:!t&&(r||o)?i:void 0}}}function z_(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=Y.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=zS(),u=Y.useCallback(h=>{h.currentTarget.contains(h.target)&&i.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(i.current.isFocusWithin=!1,c(),n&&n(h),o&&o(!1))},[n,o,i,c]),f=US(u),m=Y.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const v=es(h.target),w=Rv(v);if(!i.current.isFocusWithin&&w===FS(h.nativeEvent)){r&&r(h),o&&o(!0),i.current.isFocusWithin=!0,f(h);let C=h.currentTarget;s(v,"focus",A=>{if(i.current.isFocusWithin&&!DS(C,A.target)){let x=new v.defaultView.FocusEvent("blur",{relatedTarget:A.target});P_(x,C);let E=BS(x);u(E)}},{capture:!0})}},[r,o,f,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:u}}}let fh=!1,Rp=0;function Mv(){fh=!0,setTimeout(()=>{fh=!1},50)}function Gb(e){e.pointerType==="touch"&&Mv()}function B_(){if(!(typeof document>"u"))return Rp===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Gb):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Mv)),Rp++,()=>{Rp--,!(Rp>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gb):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Mv))}}function U_(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=Y.useState(!1),c=Y.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Y.useEffect(B_,[]);let{addGlobalListener:u,removeAllGlobalListeners:f}=zS(),{hoverProps:m,triggerHoverEnd:h}=Y.useMemo(()=>{let v=(A,x)=>{if(c.pointerType=x,o||x==="touch"||c.isHovered||!A.currentTarget.contains(A.target))return;c.isHovered=!0;let E=A.currentTarget;c.target=E,u(es(A.target),"pointerover",R=>{c.isHovered&&c.target&&!DS(c.target,R.target)&&w(R,R.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:x}),n&&n(!0),s(!0)},w=(A,x)=>{let E=c.target;c.pointerType="",c.target=null,!(x==="touch"||!c.isHovered||!E)&&(c.isHovered=!1,f(),r&&r({type:"hoverend",target:E,pointerType:x}),n&&n(!1),s(!1))},C={};return typeof PointerEvent<"u"?(C.onPointerEnter=A=>{fh&&A.pointerType==="mouse"||v(A,A.pointerType)},C.onPointerLeave=A=>{!o&&A.currentTarget.contains(A.target)&&w(A,A.pointerType)}):process.env.NODE_ENV==="test"&&(C.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},C.onMouseEnter=A=>{!c.ignoreEmulatedMouseEvents&&!fh&&v(A,"mouse"),c.ignoreEmulatedMouseEvents=!1},C.onMouseLeave=A=>{!o&&A.currentTarget.contains(A.target)&&w(A,"mouse")}),{hoverProps:C,triggerHoverEnd:w}},[t,n,r,o,c,u,f]);return Y.useEffect(()=>{o&&h({currentTarget:c.target},c.pointerType)},[o]),{hoverProps:m,isHovered:i}}function $_(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=Y.useRef({isFocused:!1,isFocusVisible:t||KS()}),[i,s]=Y.useState(!1),[c,u]=Y.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=Y.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),m=Y.useCallback(w=>{o.current.isFocused=w,s(w),f()},[f]);F_(w=>{o.current.isFocusVisible=w,f()},[],{isTextInput:n});let{focusProps:h}=j_({isDisabled:r,onFocusChange:m}),{focusWithinProps:v}=z_({isDisabled:!r,onFocusWithinChange:m});return{isFocused:i,isFocusVisible:c,focusProps:r?v:h}}var W_=Object.defineProperty,H_=(e,t,n)=>t in e?W_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ag=(e,t,n)=>(H_(e,typeof t!="symbol"?t+"":t,n),n);let V_=class{constructor(){Ag(this,"current",this.detect()),Ag(this,"handoffState","pending"),Ag(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"}},K_=new V_,oy=(e,t)=>{K_.isServer?Y.useEffect(e,t):Y.useLayoutEffect(e,t)};function Y_(e){let t=Y.useRef(e);return oy(()=>{t.current=e},[e]),t}let jh=function(e){let t=Y_(e);return Y.useCallback((...n)=>t.current(...n),[t])};function zh(e){return Y.useMemo(()=>e,Object.values(e))}let YS=Y.createContext(void 0);function Bh(){return Y.useContext(YS)}function G_({value:e,children:t}){return Y.createElement(YS.Provider,{value:e},t)}function Qb(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function GS(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,GS),r}var Q_=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Q_||{}),Z_=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Z_||{});function xd(){let e=J_();return Y.useCallback(t=>X_({mergeRefs:e,...t}),[e])}function X_({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:c}){c=c??q_;let u=QS(t,e);if(i)return Pp(u,n,r,s,c);let f=o??0;if(f&2){let{static:m=!1,...h}=u;if(m)return Pp(h,n,r,s,c)}if(f&1){let{unmount:m=!0,...h}=u;return GS(m?0:1,{0(){return null},1(){return Pp({...h,hidden:!0,style:{display:"none"}},n,r,s,c)}})}return Pp(u,n,r,s,c)}function Pp(e,t={},n,r,o){let{as:i=n,children:s,refName:c="ref",...u}=Eg(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},m=typeof s=="function"?s(t):s;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let h={};if(t){let v=!1,w=[];for(let[C,A]of Object.entries(t))typeof A=="boolean"&&(v=!0),A===!0&&w.push(C.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(v){h["data-headlessui-state"]=w.join(" ");for(let C of w)h[`data-${C}`]=""}}if(Kp(i)&&(Object.keys(Nc(u)).length>0||Object.keys(Nc(h)).length>0))if(!Y.isValidElement(m)||Array.isArray(m)&&m.length>1||n4(m)){if(Object.keys(Nc(u)).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(Nc(u)).concat(Object.keys(Nc(h))).map(v=>` - ${v}`).join(`
|
|
126
|
-
`),"","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(
|
|
19
|
+
*/var fc,kp;function k1(){if(kp)return fc;kp=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 l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fc=o()?Object.assign:function(i,s){for(var a,l=r(i),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){c=e(a);for(var d=0;d<c.length;d++)n.call(a,c[d])&&(l[c[d]]=a[c[d]])}}return l},fc}var dc,Tp;function Kf(){if(Tp)return dc;Tp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dc=e,dc}var pc,Np;function o0(){return Np||(Np=1,pc=Function.call.bind(Object.prototype.hasOwnProperty)),pc}var hc,Op;function T1(){if(Op)return hc;Op=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Kf(),n={},r=o0();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var f;try{if(typeof i[u]!="function"){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[u](s,u,l,a,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+f.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},hc=o,hc}var mc,Pp;function N1(){if(Pp)return mc;Pp=1;var e=r0(),t=k1(),n=Kf(),r=o0(),o=T1(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return mc=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(L){var F=L&&(c&&L[c]||L[u]);if(typeof F=="function")return F}var d="<<anonymous>>",p={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:v(),arrayOf:b,element:A(),elementType:w(),instanceOf:_,node:P(),objectOf:S,oneOf:E,oneOfType:O,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 m(L){if(process.env.NODE_ENV!=="production")var F={},K=0;function B(V,ee,te,he,ye,me,ze){if(he=he||d,me=me||te,ze!==n){if(l){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 `"+me+"` 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+" `"+me+"` is marked as required "+("in `"+he+"`, but its value is `null`.")):new g("The "+ye+" `"+me+"` is marked as required in "+("`"+he+"`, but its value is `undefined`.")):null:L(ee,te,he,ye,me)}var J=B.bind(null,!1);return J.isRequired=B.bind(null,!0),J}function y(L){function F(K,B,J,V,ee,te){var he=K[B],ye=Q(he);if(ye!==L){var me=oe(he);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return m(F)}function v(){return m(s)}function b(L){function F(K,B,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var te=K[B];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 me=L(te,ye,J,V,ee+"["+ye+"]",n);if(me instanceof Error)return me}return null}return m(F)}function A(){function L(F,K,B,J,V){var ee=F[K];if(!a(ee)){var te=Q(ee);return new g("Invalid "+J+" `"+V+"` of type "+("`"+te+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return m(L)}function w(){function L(F,K,B,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 `"+B+"`, expected a single ReactElement type."))}return null}return m(L)}function _(L){function F(K,B,J,V,ee){if(!(K[B]instanceof L)){var te=L.name||d,he=re(K[B]);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected ")+("instance of `"+te+"`."))}return null}return m(F)}function E(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,B,J,V,ee){for(var te=K[B],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 m(F)}function S(L){function F(K,B,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var te=K[B],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 me=L(te,ye,J,V,ee+"."+ye,n);if(me instanceof Error)return me}return null}return m(F)}function O(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 B(J,V,ee,te,he){for(var ye=[],me=0;me<L.length;me++){var ze=L[me],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 m(B)}function P(){function L(F,K,B,J,V){return z(F[K])?null:new g("Invalid "+J+" `"+V+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return m(L)}function I(L,F,K,B,J){return new g((L||"React class")+": "+F+" type `"+K+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function W(L){function F(K,B,J,V,ee){var te=K[B],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 me=L[ye];if(typeof me!="function")return I(J,V,ee,ye,oe(me));var ze=me(te,ye,J,V,ee+"."+ye,n);if(ze)return ze}return null}return m(F)}function j(L){function F(K,B,J,V,ee){var te=K[B],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+he+"` "+("supplied to `"+J+"`, expected `object`."));var ye=t({},K[B],L);for(var me in ye){var ze=L[me];if(r(L,me)&&typeof ze!="function")return I(J,V,ee,me,oe(ze));if(!ze)return new g("Invalid "+V+" `"+ee+"` key `"+me+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(K[B],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var G=ze(te,me,J,V,ee+"."+me,n);if(G)return G}return null}return m(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=f(L);if(F){var K=F.call(L),B;if(F!==L.entries){for(;!(B=K.next()).done;)if(!z(B.value))return!1}else for(;!(B=K.next()).done;){var J=B.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 p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},mc}var gc,Mp;function O1(){if(Mp)return gc;Mp=1;var e=Kf();function t(){}function n(){}return n.resetWarningCache=t,gc=function(){function r(s,a,l,c,u,f){if(f!==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},gc}var Ip;function P1(){if(Ip)return ua.exports;if(Ip=1,process.env.NODE_ENV!=="production"){var e=r0(),t=!0;ua.exports=N1()(e.isElement,t)}else ua.exports=O1()();return ua.exports}var M1=P1();const ge=_1(M1);var I1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i0(e,t){return e(t={exports:{}},t.exports),t.exports}var L1=i0((function(e){(function(t){var n=function(m,y,v){if(!l(y)||u(y)||f(y)||d(y)||a(y))return y;var b,A=0,w=0;if(c(y))for(b=[],w=y.length;A<w;A++)b.push(n(m,y[A],v));else for(var _ in b={},y)Object.prototype.hasOwnProperty.call(y,_)&&(b[m(_,v)]=n(m,y[_],v));return b},r=function(m){return p(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,(function(y,v){return v?v.toUpperCase():""}))).substr(0,1).toLowerCase()+m.substr(1)},o=function(m){var y=r(m);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(m,y){return(function(v,b){var A=(b=b||{}).separator||"_",w=b.split||/(?=[A-Z])/;return v.split(w).join(A)})(m,y).toLowerCase()},s=Object.prototype.toString,a=function(m){return typeof m=="function"},l=function(m){return m===Object(m)},c=function(m){return s.call(m)=="[object Array]"},u=function(m){return s.call(m)=="[object Date]"},f=function(m){return s.call(m)=="[object RegExp]"},d=function(m){return s.call(m)=="[object Boolean]"},p=function(m){return(m-=0)==m},h=function(m,y){var v=y&&"process"in y?y.process:y;return typeof v!="function"?m:function(b,A){return v(b,m,A)}},g={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(m,y){return n(h(r,y),m)},decamelizeKeys:function(m,y){return n(h(i,y),m,y)},pascalizeKeys:function(m,y){return n(h(o,y),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(I1)})).decamelize,R1=function(e){if(Array.isArray(e))return e},D1=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(l){o=!0,i=l}finally{try{r||a.return==null||a.return()}finally{if(o)throw i}}return n}},Lp=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},F1=function(e,t){if(e){if(typeof e=="string")return Lp(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)?Lp(e,t):void 0}},j1=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.`)},z1=function(e,t){return R1(e)||D1(e,t)||F1(e,t)||j1()},s0=i0((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})),$1=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},a0=function(e,t){if(e==null)return{};var n,r,o=$1(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},U1=T.createContext(null);function l0(e){var t=e.children,n=t===void 0?"":t,r=a0(e,["children"]);return typeof n!="string"&&(n=A1.renderToString(n)),T.createElement("template",s0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function c0(e){var t=e.root,n=e.children;return Tn.createPortal(n===void 0?null:n,t)}function B1(e){var t=T.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,l=n.delegatesFocus,c=l!==void 0&&l,u=n.styleSheets,f=u===void 0?[]:u,d=n.ssr,p=d!==void 0&&d,h=n.children,g=a0(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=z1(y,2),b=v[0],A=v[1],w="node_".concat(a).concat(c);return T.useLayoutEffect((function(){if(m.current)try{if(typeof r=="function"&&r(m.current),p){var _=m.current.shadowRoot;return void A(_)}var E=m.current.attachShadow({mode:a,delegatesFocus:c});f.length>0&&(E.adoptedStyleSheets=f),A(E)}catch(S){(function(O){var P=O.error,I=O.styleSheets,W=O.root;switch(P.name){case"NotSupportedError":I.length>0&&(W.adoptedStyleSheets=I);break;default:throw P}})({error:S,styleSheets:f,root:b})}}),[r,m,f]),T.createElement(T.Fragment,null,T.createElement(e.tag,s0({key:w,ref:m},g),(b||p)&&T.createElement(U1.Provider,{value:b},p?T.createElement(l0,{shadowroot:a,shadowrootmode:a},e.render({root:b,ssr:p,children:h})):T.createElement(c0,{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}l0.propTypes={children:ge.oneOfType([ge.string,ge.node])},c0.propTypes={root:ge.object.isRequired,children:ge.node};var yc=new Map;function W1(){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=L1(o,{separator:"-"}),s="".concat(t,"-").concat(i);return yc.has(s)||yc.set(s,B1({tag:i,render:n})),yc.get(s)}})}var Al=W1();const u0="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 zi=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(){}},K1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gn,so,Hg,H1=(Hg=class{constructor(){fe(this,gn,K1);fe(this,so,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&k(this,so)&&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,so,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,so,!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,so,!0),k(this,gn).setInterval(e,t)}clearInterval(e){k(this,gn).clearInterval(e)}},gn=new WeakMap,so=new WeakMap,Hg),no=new H1;function q1(e){setTimeout(e,0)}var Co=typeof window>"u"||"Deno"in globalThis;function kt(){}function V1(e,t){return typeof e=="function"?e(t):e}function cu(e){return typeof e=="number"&&e>=0&&e!==1/0}function f0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tr(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!==Hf(s,t.options))return!1}else if(!Cs(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)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(_o(t.options.mutationKey)!==_o(i))return!1}else if(!Cs(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hf(e,t){return((t==null?void 0:t.queryKeyHashFn)||_o)(e)}function _o(e){return JSON.stringify(e,(t,n)=>fu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Cs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Cs(e[n],t[n])):!1}var Y1=Object.prototype.hasOwnProperty;function uu(e,t){if(e===t)return e;const n=Fp(e)&&Fp(t);if(!n&&!(fu(e)&&fu(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 l=0;for(let c=0;c<s;c++){const u=n?c:i[c],f=e[u],d=t[u];if(f===d){a[u]=f,(n?c<o:Y1.call(e,u))&&l++;continue}if(f===null||d===null||typeof f!="object"||typeof d!="object"){a[u]=d;continue}const p=uu(f,d);a[u]=p,p===f&&l++}return o===s&&l===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 fu(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 Q1(e){return new Promise(t=>{no.setTimeout(t,e)})}function du(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 uu(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 uu(e,t)}return t}function G1(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Z1(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ya=Symbol();function d0(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 qf(e,t){return typeof e=="function"?e(...t):!!e}function J1(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 ao,gr,bi,qg,X1=(qg=class extends zi{constructor(){super();fe(this,ao);fe(this,gr);fe(this,bi);ne(this,bi,t=>{if(!Co&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,gr)||this.setEventListener(k(this,bi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,gr))==null||t.call(this),ne(this,gr,void 0))}setEventListener(t){var n;ne(this,bi,t),(n=k(this,gr))==null||n.call(this),ne(this,gr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ao)!==t&&(ne(this,ao,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ao)=="boolean"?k(this,ao):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ao=new WeakMap,gr=new WeakMap,bi=new WeakMap,qg),Vf=new X1;function pu(){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 ew=q1;function tw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=ew;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=tw(),xi,yr,wi,Vg,nw=(Vg=class extends zi{constructor(){super();fe(this,xi,!0);fe(this,yr);fe(this,wi);ne(this,wi,t=>{if(!Co&&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,yr)||this.setEventListener(k(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,yr))==null||t.call(this),ne(this,yr,void 0))}setEventListener(t){var n;ne(this,wi,t),(n=k(this,yr))==null||n.call(this),ne(this,yr,t(this.setOnline.bind(this)))}setOnline(t){k(this,xi)!==t&&(ne(this,xi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,xi)}},xi=new WeakMap,yr=new WeakMap,wi=new WeakMap,Vg),Qa=new nw;function rw(e){return Math.min(1e3*2**e,3e4)}function p0(e){return(e??"online")==="online"?Qa.isOnline():!0}var hu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function h0(e){let t=!1,n=0,r;const o=pu(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const y=new hu(g);d(y),(m=e.onCancel)==null||m.call(e,y)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Vf.isFocused()&&(e.networkMode==="always"||Qa.isOnline())&&e.canRun(),u=()=>p0(e.networkMode)&&e.canRun(),f=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()||c())&&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(f).catch(y=>{var _;if(i())return;const v=e.retry??(Co?0:3),b=e.retryDelay??rw,A=typeof b=="function"?b(n,y):b,w=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!w){d(y);return}n++,(_=e.onFail)==null||_.call(e,n,y),Q1(A).then(()=>c()?void 0:p()).then(()=>{t?d(y):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?h():p().then(h),o)}}var lo,Yg,m0=(Yg=class{constructor(){fe(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cu(this.gcTime)&&ne(this,lo,no.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Co?1/0:300*1e3))}clearGcTimeout(){k(this,lo)&&(no.clearTimeout(k(this,lo)),ne(this,lo,void 0))}},lo=new WeakMap,Yg),co,Ai,Ht,uo,tt,$s,fo,rn,zn,Qg,ow=(Qg=class extends m0{constructor(t){super();fe(this,rn);fe(this,co);fe(this,Ai);fe(this,Ht);fe(this,uo);fe(this,tt);fe(this,$s);fe(this,fo);ne(this,fo,!1),ne(this,$s,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,co,$p(this.options)),this.state=t.state??k(this,co),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,$s),...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,co,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Ht).remove(this)}setData(t,n){const r=du(this.state.data,t,this.options);return be(this,rn,zn).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,rn,zn).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,co))}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=>Tr(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:!f0(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,fo)?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||be(this,rn,zn).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,f,d,p,h,g,m,y,v,b;if(this.state.fetchStatus!=="idle"&&((l=k(this,tt))==null?void 0:l.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 A=this.observers.find(w=>w.options.queryFn);A&&this.setOptions(A.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=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ne(this,fo,!0),r.signal)})},i=()=>{const A=d0(this.options,n),_=(()=>{const E={client:k(this,uo),queryKey:this.queryKey,meta:this.meta};return o(E),E})();return ne(this,fo,!1),this.options.persister?this.options.persister(A,_,this):A(_)},a=(()=>{const A={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,uo),state:this.state,fetchFn:i};return o(A),A})();(c=this.options.behavior)==null||c.onFetch(a,this),ne(this,Ai,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&be(this,rn,zn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),ne(this,tt,h0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:A=>{A instanceof hu&&A.revert&&this.setState({...k(this,Ai),fetchStatus:"idle"}),r.abort()},onFail:(A,w)=>{be(this,rn,zn).call(this,{type:"failed",failureCount:A,error:w})},onPause:()=>{be(this,rn,zn).call(this,{type:"pause"})},onContinue:()=>{be(this,rn,zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const A=await k(this,tt).start();if(A===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(A),(p=(d=k(this,Ht).config).onSuccess)==null||p.call(d,A,this),(g=(h=k(this,Ht).config).onSettled)==null||g.call(h,A,this.state.error,this),A}catch(A){if(A instanceof hu){if(A.silent)return k(this,tt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw be(this,rn,zn).call(this,{type:"error",error:A}),(y=(m=k(this,Ht).config).onError)==null||y.call(m,A,this),(b=(v=k(this,Ht).config).onSettled)==null||b.call(v,this.state.data,A,this),A}finally{this.scheduleGc()}}},co=new WeakMap,Ai=new WeakMap,Ht=new WeakMap,uo=new WeakMap,tt=new WeakMap,$s=new WeakMap,fo=new WeakMap,rn=new WeakSet,zn=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,...g0(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,Ai,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})})},Qg);function g0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:p0(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,Us,Et,po,Ci,Kn,vr,Bs,_i,Ei,ho,mo,br,Si,Me,fs,mu,gu,yu,vu,bu,xu,wu,y0,Gg,iw=(Gg=class extends zi{constructor(t,n){super();fe(this,Me);fe(this,Lt);fe(this,_e);fe(this,Us);fe(this,Et);fe(this,po);fe(this,Ci);fe(this,Kn);fe(this,vr);fe(this,Bs);fe(this,_i);fe(this,Ei);fe(this,ho);fe(this,mo);fe(this,br);fe(this,Si,new Set);this.options=n,ne(this,Lt,t),ne(this,vr,null),ne(this,Kn,pu()),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)?be(this,Me,fs).call(this):this.updateResult(),be(this,Me,vu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Au(k(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Au(k(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,Me,bu).call(this),be(this,Me,xu).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");be(this,Me,wu).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)&&be(this,Me,fs).call(this),this.updateResult(),o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||Tr(this.options.staleTime,k(this,_e))!==Tr(n.staleTime,k(this,_e)))&&be(this,Me,mu).call(this);const i=be(this,Me,gu).call(this);o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||i!==k(this,br))&&be(this,Me,yu).call(this,i)}getOptimisticResult(t){const n=k(this,Lt).getQueryCache().build(k(this,Lt),t),r=this.createResult(n,t);return aw(this,r)&&(ne(this,Et,r),ne(this,Ci,this.options),ne(this,po,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,Kn).status==="pending"&&k(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){k(this,Si).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 be(this,Me,fs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Et)))}createResult(t,n){var O;const r=k(this,_e),o=this.options,i=k(this,Et),s=k(this,po),a=k(this,Ci),c=t!==r?t.state:k(this,Us),{state:u}=t;let f={...u},d=!1,p;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&Up(t,n),W=P&&Bp(t,r,n,o);(I||W)&&(f={...f,...g0(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:m}=f;p=f.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((O=k(this,Ei))==null?void 0:O.state.data,k(this,Ei)):n.placeholderData,P!==void 0&&(m="success",p=du(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,Bs))p=k(this,_i);else try{ne(this,Bs,n.select),p=n.select(p),p=du(i==null?void 0:i.data,p,n),ne(this,_i,p),ne(this,vr,null)}catch(P){ne(this,vr,P)}k(this,vr)&&(h=k(this,vr),p=k(this,_i),g=Date.now(),m="error");const v=f.fetchStatus==="fetching",b=m==="pending",A=m==="error",w=b&&v,_=p!==void 0,S={status:m,fetchStatus:f.fetchStatus,isPending:b,isSuccess:m==="success",isError:A,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:A&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:A&&_,isStale:Yf(t,n),refetch:this.refetch,promise:k(this,Kn),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,Kn,S.promise=pu());P(j)},W=k(this,Kn);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,po,k(this,_e).state),ne(this,Ci,this.options),k(this,po).data!==void 0&&ne(this,Ei,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,Si).size)return!0;const s=new Set(i??k(this,Si));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Et)).some(a=>{const l=a;return k(this,Et)[l]!==t[l]&&s.has(l)})};be(this,Me,y0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,Me,vu).call(this)}},Lt=new WeakMap,_e=new WeakMap,Us=new WeakMap,Et=new WeakMap,po=new WeakMap,Ci=new WeakMap,Kn=new WeakMap,vr=new WeakMap,Bs=new WeakMap,_i=new WeakMap,Ei=new WeakMap,ho=new WeakMap,mo=new WeakMap,br=new WeakMap,Si=new WeakMap,Me=new WeakSet,fs=function(t){be(this,Me,wu).call(this);let n=k(this,_e).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},mu=function(){be(this,Me,bu).call(this);const t=Tr(this.options.staleTime,k(this,_e));if(Co||k(this,Et).isStale||!cu(t))return;const r=f0(k(this,Et).dataUpdatedAt,t)+1;ne(this,ho,no.setTimeout(()=>{k(this,Et).isStale||this.updateResult()},r))},gu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,_e)):this.options.refetchInterval)??!1},yu=function(t){be(this,Me,xu).call(this),ne(this,br,t),!(Co||qt(this.options.enabled,k(this,_e))===!1||!cu(k(this,br))||k(this,br)===0)&&ne(this,mo,no.setInterval(()=>{(this.options.refetchIntervalInBackground||Vf.isFocused())&&be(this,Me,fs).call(this)},k(this,br)))},vu=function(){be(this,Me,mu).call(this),be(this,Me,yu).call(this,be(this,Me,gu).call(this))},bu=function(){k(this,ho)&&(no.clearTimeout(k(this,ho)),ne(this,ho,void 0))},xu=function(){k(this,mo)&&(no.clearInterval(k(this,mo)),ne(this,mo,void 0))},wu=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,Us,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},y0=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"})})},Gg);function sw(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 sw(e,t)||e.state.data!==void 0&&Au(e,t,t.refetchOnMount)}function Au(e,t,n){if(qt(t.enabled,e)!==!1&&Tr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Yf(e,t)}return!1}function Bp(e,t,n,r){return(e!==t||qt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Yf(e,n)}function Yf(e,t){return qt(t.enabled,e)!==!1&&e.isStaleByTime(Tr(t.staleTime,e))}function aw(e,t){return!Va(e.getCurrentResult(),t)}function Wp(e){return{onFetch:(t,n)=>{var u,f,d,p,h;const r=t.options,o=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.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:[]},l=0;const c=async()=>{let g=!1;const m=b=>{J1(b,()=>t.signal,()=>g=!0)},y=d0(t.options,t.fetchOptions),v=async(b,A,w)=>{if(g)return Promise.reject();if(A==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:w?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(E),{maxPages:O}=t.options,P=w?Z1:G1;return{pages:P(b.pages,S,O),pageParams:P(b.pageParams,A,O)}};if(o&&i.length){const b=o==="backward",A=b?lw:Kp,w={pages:i,pageParams:s},_=A(r,w);a=await v(w,_,b)}else{const b=e??i.length;do{const A=l===0?s[0]??r.initialPageParam:Kp(r,a);if(l>0&&A==null)break;a=await v(a,A),l++}while(l<b)}return a};t.options.persister?t.fetchFn=()=>{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}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 lw(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 Ws,yn,St,go,vn,hr,Zg,cw=(Zg=class extends m0{constructor(t){super();fe(this,vn);fe(this,Ws);fe(this,yn);fe(this,St);fe(this,go);ne(this,Ws,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,yn,[]),this.state=t.state||v0(),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,go))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,c,u,f,d,p,h,g,m,y,v,b,A,w,_,E,S,O;const n=()=>{be(this,vn,hr).call(this,{type:"continue"})},r={client:k(this,Ws),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,go,h0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{be(this,vn,hr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{be(this,vn,hr).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,go).canStart();try{if(o)n();else{be(this,vn,hr).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((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));I!==this.state.context&&be(this,vn,hr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await k(this,go).start();return await((f=(u=k(this,St).config).onSuccess)==null?void 0:f.call(u,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)),be(this,vn,hr).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((w=(A=this.options).onError)==null?void 0:w.call(A,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((O=(S=this.options).onSettled)==null?void 0:O.call(S,void 0,P,t,this.state.context,r))}catch(I){Promise.reject(I)}throw be(this,vn,hr).call(this,{type:"error",error:P}),P}finally{k(this,St).runNext(this)}}},Ws=new WeakMap,yn=new WeakMap,St=new WeakMap,go=new WeakMap,vn=new WeakSet,hr=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})})},Zg);function v0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,on,Ks,Jg,uw=(Jg=class extends zi{constructor(t={}){super();fe(this,Hn);fe(this,on);fe(this,Ks);this.config=t,ne(this,Hn,new Set),ne(this,on,new Map),ne(this,Ks,0)}build(t,n,r){const o=new cw({client:t,mutationCache:this,mutationId:++ca(this,Ks)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Hn).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,Hn).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,Hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Hn).clear(),k(this,on).clear()})}getAll(){return Array.from(k(this,Hn))}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))))}},Hn=new WeakMap,on=new WeakMap,Ks=new WeakMap,Jg);function da(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qn,xr,Rt,Vn,Zn,Ma,Cu,Xg,fw=(Xg=class extends zi{constructor(n,r){super();fe(this,Zn);fe(this,qn);fe(this,xr);fe(this,Rt);fe(this,Vn);ne(this,qn,n),this.setOptions(r),this.bindMethods(),be(this,Zn,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,qn).defaultMutationOptions(n),Va(this.options,r)||k(this,qn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&_o(r.mutationKey)!==_o(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,Zn,Ma).call(this),be(this,Zn,Cu).call(this,n)}getCurrentResult(){return k(this,xr)}reset(){var n;(n=k(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),be(this,Zn,Ma).call(this),be(this,Zn,Cu).call(this)}mutate(n,r){var o;return ne(this,Vn,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,xr=new WeakMap,Rt=new WeakMap,Vn=new WeakMap,Zn=new WeakSet,Ma=function(){var r;const n=((r=k(this,Rt))==null?void 0:r.state)??v0();ne(this,xr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Cu=function(n){Ze.batch(()=>{var r,o,i,s,a,l,c,u;if(k(this,Vn)&&this.hasListeners()){const f=k(this,xr).variables,d=k(this,xr).context,p={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,Vn)).onSuccess)==null||o.call(r,n.data,f,d,p)}catch(h){Promise.reject(h)}try{(s=(i=k(this,Vn)).onSettled)==null||s.call(i,n.data,null,f,d,p)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(l=(a=k(this,Vn)).onError)==null||l.call(a,n.error,f,d,p)}catch(h){Promise.reject(h)}try{(u=(c=k(this,Vn)).onSettled)==null||u.call(c,void 0,n.error,f,d,p)}catch(h){Promise.reject(h)}}}this.listeners.forEach(f=>{f(k(this,xr))})})},Xg),bn,e0,dw=(e0=class extends zi{constructor(t={}){super();fe(this,bn);this.config=t,ne(this,bn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hf(o,n);let s=this.get(i);return s||(s=new ow({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,e0),Ke,wr,Ar,ki,Ti,Cr,Ni,Oi,t0,b0=(t0=class{constructor(e={}){fe(this,Ke);fe(this,wr);fe(this,Ar);fe(this,ki);fe(this,Ti);fe(this,Cr);fe(this,Ni);fe(this,Oi);ne(this,Ke,e.queryCache||new dw),ne(this,wr,e.mutationCache||new uw),ne(this,Ar,e.defaultOptions||{}),ne(this,ki,new Map),ne(this,Ti,new Map),ne(this,Cr,0)}mount(){ca(this,Cr)._++,k(this,Cr)===1&&(ne(this,Ni,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ne(this,Oi,Qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var e,t;ca(this,Cr)._--,k(this,Cr)===0&&((e=k(this,Ni))==null||e.call(this),ne(this,Ni,void 0),(t=k(this,Oi))==null||t.call(this),ne(this,Oi,void 0))}isFetching(e){return k(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,wr).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(Tr(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=V1(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(Tr(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,wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,wr)}getDefaultOptions(){return k(this,Ar)}setDefaultOptions(e){ne(this,Ar,e)}setQueryDefaults(e,t){k(this,ki).set(_o(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,ki).values()],n={};return t.forEach(r=>{Cs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Ti).set(_o(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Ti).values()],n={};return t.forEach(r=>{Cs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Ar).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hf(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,Ar).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,wr).clear()}},Ke=new WeakMap,wr=new WeakMap,Ar=new WeakMap,ki=new WeakMap,Ti=new WeakMap,Cr=new WeakMap,Ni=new WeakMap,Oi=new WeakMap,t0),x0=C.createContext(void 0),w0=e=>{const t=C.useContext(x0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pw=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(x0.Provider,{value:e,children:t})),A0=C.createContext(!1),hw=()=>C.useContext(A0);A0.Provider;function mw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gw=C.createContext(mw()),yw=()=>C.useContext(gw),vw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?qf(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},bw=e=>{C.useEffect(()=>{e.clearReset()},[e])},xw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||qf(n,[e.error,r])),ww=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))}},Aw=(e,t)=>e.isLoading&&e.isFetching&&!t,Cw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Hp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _w(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=hw(),o=yw(),i=w0(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",ww(s),vw(s,o,a),bw(o);const l=!i.getQueryCache().get(s.queryHash),[c]=C.useState(()=>new t(i,s)),u=c.getOptimisticResult(s),f=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const y=f?c.subscribe(Ze.batchCalls(m)):kt;return c.updateResult(),y},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(s)},[s,c]),Cw(s,u))throw Hp(s,c,o);if(xw({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw u.error;if((g=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,s,u),s.experimental_prefetchInRender&&!Co&&Aw(u,r)){const m=l?Hp(s,c,o):a==null?void 0:a.promise;m==null||m.catch(kt).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function Cl(e,t){return _w(e,iw,t)}function Qf(e,t){const n=w0(t),[r]=C.useState(()=>new fw(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&&qf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Gf=T.createContext({queryClient:new b0});Gf.Provider;const Fr=()=>{const e=T.useContext(Gf);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},C0=({children:e})=>{const[t]=T.useState(new b0);return x.jsx(Gf.Provider,{value:{queryClient:t},children:x.jsx(pw,{client:t,children:e})})},Be={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},_0="https://marketplace.confidence.com/api",nr=_0+"/confidence",qp=_0+"/dropbox/prod",Ew=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Sw=()=>{const{queryClient:e}=Fr(),t=Qf({mutationFn:async r=>Ew(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},kw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Tw=()=>{const{queryClient:e}=Fr(),t=Qf({mutationFn:async r=>await kw(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},E0=(e,t)=>{const{queryClient:n}=Fr(),r=Cl({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var l;return((l=r.data)==null?void 0:l[a.toString()])??!1},i=(a,l)=>{var c;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:l!==void 0?l:!o(a)})),(c=t==null?void 0:t.onTaskExpanded)==null||c.call(t,a,o(a))},s=T.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},Nw=(e,t)=>{const{queryClient:n}=Fr(),{completeTask:r}=Sw(),{startTask:o}=Tw(),{toggleTaskExpanded:i}=E0(e);return{completeTask:async(l,c)=>{const{status:u}=await r(l.toString());u&&(i(l,!1),n.setQueryData(["playbook",+e],f=>{if(!f)return f;const d=f.tasks.map(p=>p.sequenceOrder===c+1&&t.quickComplete?{...p,workflowStatus:Be.IN_PROGRESS}:p.taskInstanceId===l?{...p,workflowStatus:u}:p);return{...f,tasks:d}}))},startTask:async l=>{const{status:c}=await o(l.toString());c&&(i(l,!0),n.setQueryData(["playbook",+e],u=>{if(!u)return u;const f=u.tasks.map(d=>d.taskInstanceId===l?{...d,workflowStatus:c}:d);return{...u,tasks:f}}))}}},Ow=e=>{var o;const{queryClient:t}=Fr(),n=Cl({queryFn:async()=>{const i=new Headers,s=await fetch(`${nr}/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=Nw(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},ci={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},Pw={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},Mw=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:T.useMemo(()=>t===Be.OPEN&&n?[ci.START]:t===Be.IN_PROGRESS?[ci.PAUSE,ci.COMPLETE]:t===Be.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},S0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},Hs='/*! 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{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer base{.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}}@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-0\\.5{top:calc(var(--spacing)*.5)!important}.top-1{top:calc(var(--spacing)*1)!important}.top-3{top:calc(var(--spacing)*3)!important}.-right-0,.right-0{right:calc(var(--spacing)*0)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.bottom-2{bottom:calc(var(--spacing)*2)!important}.left-0{left:calc(var(--spacing)*0)!important}.left-1{left:calc(var(--spacing)*1)!important}.left-1\\/2{left:50%!important}.left-4{left:calc(var(--spacing)*4)!important}.z-2{z-index:2!important}.z-10{z-index:10!important}.z-50{z-index:50!important}.z-\\[9999999997\\],.z-\\[9999999998\\],.z-\\[9999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media(min-width:40rem){.container{max-width:40rem!important}}@media(min-width:48rem){.container{max-width:48rem!important}}@media(min-width:64rem){.container{max-width:64rem!important}}@media(min-width:80rem){.container{max-width:80rem!important}}@media(min-width:96rem){.container{max-width:96rem!important}}.m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-2{margin-inline:calc(var(--spacing)*2)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.mx-auto{margin-inline:auto!important}.my-1{margin-block:calc(var(--spacing)*1)!important}.my-2{margin-block:calc(var(--spacing)*2)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.mr-2{margin-right:calc(var(--spacing)*2)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-1{margin-bottom:calc(var(--spacing)*1)!important}.mb-2{margin-bottom:calc(var(--spacing)*2)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.inline-flex{display:inline-flex!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-2{height:calc(var(--spacing)*2)!important}.h-3{height:calc(var(--spacing)*3)!important}.h-4{height:calc(var(--spacing)*4)!important}.h-16{height:calc(var(--spacing)*16)!important}.h-\\[18px\\]{height:18px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-\\[75px\\]{height:75px!important}.h-\\[100vh\\]{height:100vh!important}.h-\\[110px\\]{height:110px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-1\\/3{width:33.3333%!important}.w-3{width:calc(var(--spacing)*3)!important}.w-4{width:calc(var(--spacing)*4)!important}.w-\\[20px\\]{width:20px!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[75px\\]{width:75px!important}.w-\\[400px\\]{width:400px!important}.w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-400{max-width:calc(var(--spacing)*400)!important}.max-w-\\[300px\\]{max-width:300px!important}.max-w-\\[420px\\]{max-width:420px!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-0{min-width:calc(var(--spacing)*0)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-\\[270px\\]{min-width:270px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.rotate-180{rotate:180deg!important}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.animate-progress{animation:1.5s ease-in-out infinite progress!important}.animate-pulse{animation:var(--animate-pulse)!important}.animate-spin{animation:var(--animate-spin)!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-zoom-in{cursor:zoom-in!important}.resize{resize:both!important}.list-decimal{list-style-type:decimal!important}.list-disc{list-style-type:disc!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.items-start{align-items:flex-start!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.justify-start{justify-content:flex-start!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.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(.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(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:3.40282e38px!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.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}.border-danger-200{border-color:#f0aab1!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-200{border-color:#94c8ff!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-200{border-color:#a5dab1!important}.border-success-600{border-color:#218838!important}.border-warning-200{border-color:#ffe597!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.border-t-blue-500{border-top-color:var(--color-blue-500)!important}.border-l-danger-500{border-left-color:#dc3545!important}.border-l-primary-500{border-left-color:#007bff!important}.border-l-success-500{border-left-color:#28a745!important}.border-l-warning-500{border-left-color:#ffc107!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-blue-500{background-color:var(--color-blue-500)!important}.bg-danger-100{background-color:#f6ccd0!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-200{background-color:#ced1d6!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-100{background-color:#bfdeff!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-100{background-color:#c9e9d0!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-100{background-color:#ffefc1!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-3{padding:calc(var(--spacing)*3)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-0{padding-inline:calc(var(--spacing)*0)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-2{padding-block:calc(var(--spacing)*2)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.pb-\\[102px\\]{padding-bottom:102px!important}.pl-4{padding-left:calc(var(--spacing)*4)!important}.text-center{text-align:center!important}.text-left{text-align:left!important}.font-mono{font-family:var(--font-mono)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-\\[10px\\]{font-size:10px!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.font-semibold{--tw-font-weight:var(--font-weight-semibold)!important;font-weight:var(--font-weight-semibold)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-blue-600{color:var(--color-blue-600)!important}.text-danger-500{color:#dc3545!important}.text-danger-600{color:#c82333!important}.text-danger-900{color:#721c24!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-300{color:#b0b5bd!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-primary-900{color:#004085!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-success-900{color:#155724!important}.text-warning-500{color:#ffc107!important}.text-warning-600{color:#f59e0b!important}.text-warning-900{color:#935f07!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.line-through{text-decoration-line:line-through!important}.underline{text-decoration-line:underline!important}.opacity-0{opacity:0!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-100{opacity:1!important}.shadow{--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}.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}.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}.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}.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}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.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(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.outline-none{--tw-outline-style:none!important;outline-style:none!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.hover\\:border-primary-500:hover{border-color:#007bff!important}.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-700:hover{background-color:#0062cc!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-transparent:hover{background-color:#0000!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-blue-600:hover{color:var(--color-blue-600)!important}.hover\\:text-danger-600:hover{color:#c82333!important}.hover\\:text-danger-700:hover{color:#bd2130!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-600:hover{color:#0069d9!important}.hover\\:text-primary-700:hover{color:#0062cc!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-600:hover{color:#218838!important}.hover\\:text-success-700:hover{color:#1e7e34!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-600:hover{color:#f59e0b!important}.hover\\:text-warning-700:hover{color:#dd8e0a!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.md\\:min-w-fit{min-width:fit-content!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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--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}}}@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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',Iw=(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},Lw=(e,t)=>({classGroupId:e,validator:t}),k0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ga="-",Vp=[],Rw="arbitrary..",Dw=e=>{const t=jw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Fw(s);const a=s.split(Ga),l=a[0]===""&&a.length>1?1:0;return T0(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],c=n[s];return l?c?Iw(c,l):l:c||Vp}return n[s]||Vp}}},T0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=T0(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Ga):e.slice(t).join(Ga),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(a))return u.classGroupId}},Fw=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?Rw+r:void 0})(),jw=e=>{const{theme:t,classGroups:n}=e;return zw(n,t)},zw=(e,t)=>{const n=k0();for(const r in e){const o=e[r];Zf(o,n,r,t)}return n},Zf=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];$w(s,t,n,r)}},$w=(e,t,n,r)=>{if(typeof e=="string"){Uw(e,t,n);return}if(typeof e=="function"){Bw(e,t,n,r);return}Ww(e,t,n,r)},Uw=(e,t,n)=>{const r=e===""?t:N0(t,e);r.classGroupId=n},Bw=(e,t,n,r)=>{if(Kw(e)){Zf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Lw(n,e))},Ww=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,l]=o[s];Zf(l,N0(t,a),n,r)}},N0=(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=k0(),n.nextPart.set(s,a)),n=a}return n},Kw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Hw=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)}}},_u="!",Yp=":",qw=[],Qp=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Vw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,c;const u=o.length;for(let g=0;g<u;g++){const m=o[g];if(s===0&&a===0){if(m===Yp){i.push(o.slice(l,g)),l=g+1;continue}if(m==="/"){c=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const f=i.length===0?o:o.slice(l);let d=f,p=!1;f.endsWith(_u)?(d=f.slice(0,-1),p=!0):f.startsWith(_u)&&(d=f.slice(1),p=!0);const h=c&&c>l?c-l: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(qw,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Yw=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]==="[",l=t.has(s);a||l?(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}},Qw=e=>({cache:Hw(e.cacheSize),parseClassName:Vw(e),sortModifiers:Yw(e),...Dw(e)}),Gw=/\s+/,Zw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Gw);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let m=!!g,y=r(m?h.substring(0,g):h);if(!y){if(!m){l=u+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=u+(l.length>0?" "+l:l);continue}m=!1}const v=d.length===0?"":d.length===1?d[0]:i(d).join(":"),b=p?v+_u:v,A=b+y;if(s.indexOf(A)>-1)continue;s.push(A);const w=o(y,m);for(let _=0;_<w.length;++_){const E=w[_];s.push(b+E)}l=u+(l.length>0?" "+l:l)}return l},Jw=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=O0(n))&&(o&&(o+=" "),o+=r);return o},O0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=O0(e[r]))&&(n&&(n+=" "),n+=t);return n},Xw=(e,...t)=>{let n,r,o,i;const s=l=>{const c=t.reduce((u,f)=>f(u),e());return n=Qw(c),r=n.cache.get,o=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=Zw(l,n);return o(l,u),u};return i=s,(...l)=>i(Jw(...l))},e2=[],Ge=e=>{const t=n=>n[e]||e2;return t.isThemeGetter=!0,t},P0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,t2=/^\d+\/\d+$/,n2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,r2=/\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$/,o2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,i2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Go=e=>t2.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),dr=e=>!!e&&Number.isInteger(Number(e)),vc=e=>e.endsWith("%")&&we(e.slice(0,-1)),Dn=e=>n2.test(e),a2=()=>!0,l2=e=>r2.test(e)&&!o2.test(e),I0=()=>!1,c2=e=>i2.test(e),u2=e=>s2.test(e),f2=e=>!ae(e)&&!le(e),d2=e=>$i(e,D0,I0),ae=e=>P0.test(e),Qr=e=>$i(e,F0,l2),bc=e=>$i(e,y2,we),Gp=e=>$i(e,L0,I0),p2=e=>$i(e,R0,u2),pa=e=>$i(e,j0,c2),le=e=>M0.test(e),ns=e=>Ui(e,F0),h2=e=>Ui(e,v2),Zp=e=>Ui(e,L0),m2=e=>Ui(e,D0),g2=e=>Ui(e,R0),ha=e=>Ui(e,j0,!0),$i=(e,t,n)=>{const r=P0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ui=(e,t,n=!1)=>{const r=M0.exec(e);return r?r[1]?t(r[1]):n:!1},L0=e=>e==="position"||e==="percentage",R0=e=>e==="image"||e==="url",D0=e=>e==="length"||e==="size"||e==="bg-size",F0=e=>e==="length",y2=e=>e==="number",v2=e=>e==="family-name",j0=e=>e==="shadow",b2=()=>{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"),l=Ge("spacing"),c=Ge("radius"),u=Ge("shadow"),f=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"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...A(),le,ae],_=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],S=()=>[le,ae,l],O=()=>[Go,"full","auto",...S()],P=()=>[dr,"none","subgrid",le,ae],I=()=>["auto",{span:["full",dr,le,ae]},dr,le,ae],W=()=>[dr,"auto",le,ae],j=()=>["auto","min","max","fr",le,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=()=>[Go,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,le,ae],re=()=>[...A(),Zp,Gp,{position:[le,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",m2,d2,{size:[le,ae]}],K=()=>[vc,ns,Qr],B=()=>["","none","full",c,le,ae],J=()=>["",we,ns,Qr],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,vc,Zp,Gp],he=()=>["","none",h,le,ae],ye=()=>["none",we,le,ae],me=()=>["none",we,le,ae],ze=()=>[we,le,ae],G=()=>[Go,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[a2],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[f2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",we],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Go,ae,le,m]}],container:["container"],columns:[{columns:[we,ae,le,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:w()}],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:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[dr,"auto",le,ae]}],basis:[{basis:[Go,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Go,"auto","initial","none",ae]}],grow:[{grow:["",we,le,ae]}],shrink:[{shrink:["",we,le,ae]}],order:[{order:[dr,"first","last","none",le,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,ns,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,le,bc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vc,ae]}],"font-family":[{font:[h2,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,le,ae]}],"line-clamp":[{"line-clamp":[we,"none",le,bc]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",le,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,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",le,Qr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",le,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",le,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",le,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"]},dr,le,ae],radial:["",le,ae],conic:[dr,le,ae]},g2,p2]}],"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":[we,le,ae]}],"outline-w":[{outline:["",we,ns,Qr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,ha,pa]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,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":[we,Qr]}],"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:[we,le,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":[le,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":A()}],"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",le,ae]}],filter:[{filter:["","none",le,ae]}],blur:[{blur:he()}],brightness:[{brightness:[we,le,ae]}],contrast:[{contrast:[we,le,ae]}],"drop-shadow":[{"drop-shadow":["","none",p,ha,pa]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,le,ae]}],"hue-rotate":[{"hue-rotate":[we,le,ae]}],invert:[{invert:["",we,le,ae]}],saturate:[{saturate:[we,le,ae]}],sepia:[{sepia:["",we,le,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ae]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[we,le,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,le,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,le,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,le,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,le,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,le,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,le,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,le,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",le,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",le,ae]}],ease:[{ease:["linear","initial",y,le,ae]}],delay:[{delay:[we,le,ae]}],animate:[{animate:["none",v,le,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,le,ae]}],"perspective-origin":[{"perspective-origin":w()}],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:[le,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"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",le,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",le,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,ns,Qr,bc]}],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=Xw(b2);function z0(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=z0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _s(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=z0(e))&&(r&&(r+=" "),r+=t);return r}function Ee(...e){return ui(_s(e))}const x2=typeof document<"u"?T.useLayoutEffect:()=>{},jr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ro=e=>e&&"window"in e&&e.window===e?e:jr(e).defaultView||window;function w2(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function A2(e){return w2(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let C2=!1;function Jf(){return C2}function $0(e,t){if(!Jf())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:A2(n)?n=n.host:n=n.parentNode}return!1}const Eu=(e=document)=>{var t;if(!Jf())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 U0(e){return Jf()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function _2(e){if(E2())e.focus({preventScroll:!0});else{let t=S2(e);e.focus(),k2(t)}}let ma=null;function E2(){if(ma==null){ma=!1;try{document.createElement("div").focus({get preventScroll(){return ma=!0,!0}})}catch{}}return ma}function S2(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 k2(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function _l(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 Xf(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 rr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Es=rr(function(){return Xf(/^Mac/i)}),T2=rr(function(){return Xf(/^iPhone/i)}),B0=rr(function(){return Xf(/^iPad/i)||Es()&&navigator.maxTouchPoints>1}),N2=rr(function(){return T2()||B0()});rr(function(){return Es()||N2()});const O2=rr(function(){return _l(/AppleWebKit/i)&&!P2()}),P2=rr(function(){return _l(/Chrome/i)}),M2=rr(function(){return _l(/Android/i)}),I2=rr(function(){return _l(/Firefox/i)});function Ss(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;I2()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Es()?i=!0:s=!0);let c=O2()&&Es()&&!B0()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ss.isOpening=n,_2(e),e.dispatchEvent(c),Ss.isOpening=!1}Ss.isOpening=!1;function W0(){let e=T.useRef(new Map),t=T.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=T.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,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 L2(e){return e.pointerType===""&&e.isTrusted?!0:M2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function K0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function R2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function H0(e){let t=T.useRef({isFocused:!1,observer:null});return x2(()=>{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=K0(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 D2=!1,qs=null,Su=new Set,ms=new Map,Eo=!1,ku=!1;const F2={Tab:!0,Escape:!0};function ed(e,t){for(let n of Su)n(e,t)}function j2(e){return!(e.metaKey||!Es()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Za(e){Eo=!0,!Ss.isOpening&&j2(e)&&(qs="keyboard",ed("keyboard",e))}function Vt(e){qs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Eo=!0,ed("pointer",e))}function q0(e){!Ss.isOpening&&L2(e)&&(Eo=!0,qs="virtual")}function V0(e){e.target===window||e.target===document||D2||!e.isTrusted||(!Eo&&!ku&&(qs="virtual",ed("virtual",e)),Eo=!1,ku=!1)}function Y0(){Eo=!1,ku=!0}function Tu(e){if(typeof window>"u"||typeof document>"u"||ms.get(ro(e)))return;const t=ro(e),n=jr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Eo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Za,!0),n.addEventListener("keyup",Za,!0),n.addEventListener("click",q0,!0),t.addEventListener("focus",V0,!0),t.addEventListener("blur",Y0,!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",()=>{Q0(e)},{once:!0}),ms.set(t,{focus:r})}const Q0=(e,t)=>{const n=ro(e),r=jr(e);t&&r.removeEventListener("DOMContentLoaded",t),ms.has(n)&&(n.HTMLElement.prototype.focus=ms.get(n).focus,r.removeEventListener("keydown",Za,!0),r.removeEventListener("keyup",Za,!0),r.removeEventListener("click",q0,!0),n.removeEventListener("focus",V0,!0),n.removeEventListener("blur",Y0,!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)),ms.delete(n))};function z2(e){const t=jr(e);let n;return t.readyState!=="loading"?Tu(e):(n=()=>{Tu(e)},t.addEventListener("DOMContentLoaded",n)),()=>Q0(e,n)}typeof document<"u"&&z2();function G0(){return qs!=="pointer"}const $2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function U2(e,t,n){let r=jr(n==null?void 0:n.target);const o=typeof window<"u"?ro(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ro(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ro(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?ro(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!$2.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!F2[n.key])}function B2(e,t,n){Tu(),T.useEffect(()=>{let r=(o,i)=>{U2(!!(n!=null&&n.isTextInput),o,i)&&e(G0())};return Su.add(r),()=>{Su.delete(r)}},t)}function W2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=H0(i),a=T.useCallback(l=>{const c=jr(l.target),u=c?Eu(c):Eu();l.target===l.currentTarget&&u===U0(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function K2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=T.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=W0(),l=T.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,i,a]),c=H0(l),u=T.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const d=jr(f.target),p=Eu(d);if(!i.current.isFocusWithin&&p===U0(f.nativeEvent)){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let h=f.currentTarget;s(d,"focus",g=>{if(i.current.isFocusWithin&&!$0(h,g.target)){let m=new d.defaultView.FocusEvent("blur",{relatedTarget:g.target});R2(m,h);let y=K0(m);l(y)}},{capture:!0})}},[r,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Ja=!1,ga=0;function Nu(){Ja=!0,setTimeout(()=>{Ja=!1},50)}function Jp(e){e.pointerType==="touch"&&Nu()}function H2(){if(!(typeof document>"u"))return ga===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Jp):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Nu)),ga++,()=>{ga--,!(ga>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Jp):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Nu))}}function q2(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(H2,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=W0(),{hoverProps:u,triggerHoverEnd:f}=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,l(jr(g.target),"pointerover",v=>{a.isHovered&&a.target&&!$0(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,c(),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,l,c]);return T.useEffect(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function V2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=T.useRef({isFocused:!1,isFocusVisible:t||G0()}),[i,s]=T.useState(!1),[a,l]=T.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=T.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=T.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);B2(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:n});let{focusProps:f}=W2({isDisabled:r,onFocusChange:u}),{focusWithinProps:d}=K2({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:r?d:f}}var Y2=Object.defineProperty,Q2=(e,t,n)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xc=(e,t,n)=>(Q2(e,typeof t!="symbol"?t+"":t,n),n);let G2=class{constructor(){xc(this,"current",this.detect()),xc(this,"handoffState","pending"),xc(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"}},Z2=new G2,td=(e,t)=>{Z2.isServer?T.useEffect(e,t):T.useLayoutEffect(e,t)};function J2(e){let t=T.useRef(e);return td(()=>{t.current=e},[e]),t}let El=function(e){let t=J2(e);return T.useCallback((...n)=>t.current(...n),[t])};function Sl(e){return T.useMemo(()=>e,Object.values(e))}let Z0=T.createContext(void 0);function kl(){return T.useContext(Z0)}function X2({value:e,children:t}){return T.createElement(Z0.Provider,{value:e},t)}function Xp(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function J0(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,J0),r}var eA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(eA||{}),tA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(tA||{});function Vs(){let e=rA();return T.useCallback(t=>nA({mergeRefs:e,...t}),[e])}function nA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??oA;let l=X0(t,e);if(i)return ya(l,n,r,s,a);let c=o??0;if(c&2){let{static:u=!1,...f}=l;if(u)return ya(f,n,r,s,a)}if(c&1){let{unmount:u=!0,...f}=l;return J0(u?0:1,{0(){return null},1(){return ya({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return ya(l,n,r,s,a)}function ya(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=wc(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};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){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(Ia(i)&&(Object.keys(Zo(l)).length>0||Object.keys(Zo(f)).length>0))if(!T.isValidElement(u)||Array.isArray(u)&&u.length>1||aA(u)){if(Object.keys(Zo(l)).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(Zo(l)).concat(Object.keys(Zo(f))).map(d=>` - ${d}`).join(`
|
|
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(`
|
|
127
23
|
`)].join(`
|
|
128
|
-
`))}else{let v=m.props,w=v==null?void 0:v.className,C=typeof w=="function"?(...E)=>Qb(w(...E),u.className):Qb(w,u.className),A=C?{className:C}:{},x=QS(m.props,Nc(Eg(u,["ref"])));for(let E in h)E in x&&delete h[E];return Y.cloneElement(m,Object.assign({},x,h,f,{ref:o(t4(m),f.ref)},A))}return Y.createElement(i,Object.assign({},Eg(u,["ref"]),!Kp(i)&&f,!Kp(i)&&h),m)}function J_(){let e=Y.useRef([]),t=Y.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 q_(...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 QS(...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 c of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;c(o,...i)}}});return t}function e4(...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 wd(e){var t;return Object.assign(Y.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Nc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Eg(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function t4(e){return Y.version.split(".")[0]>="19"?e.props.ref:e.ref}function Kp(e){return e===Y.Fragment||e===Symbol.for("react.fragment")}function n4(e){return Kp(e.type)}let r4="span";var ZS=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ZS||{});function o4(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 xd()({ourProps:i,theirProps:o,slot:{},defaultTag:r4,name:"Hidden"})}let i4=wd(o4),a4=Y.createContext(null);function s4(e){let[t,n]=Y.useState(null);return Y.createElement(a4.Provider,{value:{target:t}},e.children,Y.createElement(i4,{features:ZS.Hidden,ref:n}))}let XS=Y.createContext(void 0);function JS(){return Y.useContext(XS)}function l4({id:e,children:t}){return Y.createElement(XS.Provider,{value:e},t)}function c4(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function qS(e){return c4(e)&&"tagName"in e}function eC(e){return qS(e)&&"accessKey"in e}function u4(e){return eC(e)&&e.nodeName==="INPUT"}function Zb(e){return eC(e)&&e.nodeName==="LABEL"}function f4(e){return qS(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let d4=Symbol();function tC(...e){let t=Y.useRef(e);Y.useEffect(()=>{t.current=e},[e]);let n=jh(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[d4]))?void 0:n}let Uh=Y.createContext(null);Uh.displayName="DescriptionContext";function nC(){let e=Y.useContext(Uh);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,nC),t}return e}function p4(){var e,t;return(t=(e=Y.useContext(Uh))==null?void 0:e.value)!=null?t:void 0}function h4(){let[e,t]=Y.useState([]);return[e.length>0?e.join(" "):void 0,Y.useMemo(()=>function(n){let r=jh(i=>(t(s=>[...s,i]),()=>t(s=>{let c=s.slice(),u=c.indexOf(i);return u!==-1&&c.splice(u,1),c}))),o=Y.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 Y.createElement(Uh.Provider,{value:o},n.children)},[t])]}let m4="p";function g4(e,t){let n=Y.useId(),r=Bh(),{id:o=`headlessui-description-${n}`,...i}=e,s=nC(),c=tC(t);oy(()=>s.register(o),[o,s.register]);let u=zh({...s.slot,disabled:r||!1}),f={ref:c,...s.props,id:o};return xd()({ourProps:f,theirProps:i,slot:u,defaultTag:m4,name:s.name||"Description"})}let v4=wd(g4),y4=Object.assign(v4,{}),$h=Y.createContext(null);$h.displayName="LabelContext";function rC(){let e=Y.useContext($h);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,rC),t}return e}function oC(e){var t,n,r;let o=(n=(t=Y.useContext($h))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function b4({inherit:e=!1}={}){let t=oC(),[n,r]=Y.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,Y.useMemo(()=>function(i){let s=jh(u=>(r(f=>[...f,u]),()=>r(f=>{let m=f.slice(),h=m.indexOf(u);return h!==-1&&m.splice(h,1),m}))),c=Y.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 Y.createElement($h.Provider,{value:c},i.children)},[r])]}let x4="label";function w4(e,t){var n;let r=Y.useId(),o=rC(),i=JS(),s=Bh(),{id:c=`headlessui-label-${r}`,htmlFor:u=i??((n=o.props)==null?void 0:n.htmlFor),passive:f=!1,...m}=e,h=tC(t);oy(()=>o.register(c),[c,o.register]);let v=jh(A=>{let x=A.currentTarget;if(!(A.target!==A.currentTarget&&f4(A.target))&&(Zb(x)&&A.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(A),Zb(x))){let E=document.getElementById(x.htmlFor);if(E){let R=E.getAttribute("disabled");if(R==="true"||R==="")return;let I=E.getAttribute("aria-disabled");if(I==="true"||I==="")return;(u4(E)&&(E.type==="file"||E.type==="radio"||E.type==="checkbox")||E.role==="radio"||E.role==="checkbox"||E.role==="switch")&&E.click(),E.focus({preventScroll:!0})}}}),w=zh({...o.slot,disabled:s||!1}),C={ref:h,...o.props,id:c,htmlFor:u,onClick:v};return f&&("onClick"in C&&(delete C.htmlFor,delete C.onClick),"onClick"in m&&delete m.onClick),xd()({ourProps:C,theirProps:m,slot:w,defaultTag:u?x4:"div",name:o.name||"Label"})}let S4=wd(w4),C4=Object.assign(S4,{});function Wh(){return typeof window<"u"}function Eu(e){return iC(e)?(e.nodeName||"").toLowerCase():"#document"}function Yr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xi(e){var t;return(t=(iC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iC(e){return Wh()?e instanceof Node||e instanceof Yr(e).Node:!1}function nn(e){return Wh()?e instanceof Element||e instanceof Yr(e).Element:!1}function Lo(e){return Wh()?e instanceof HTMLElement||e instanceof Yr(e).HTMLElement:!1}function Nv(e){return!Wh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yr(e).ShadowRoot}const A4=new Set(["inline","contents"]);function Sd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=uo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!A4.has(o)}const E4=new Set(["table","td","th"]);function k4(e){return E4.has(Eu(e))}const T4=[":popover-open",":modal"];function Hh(e){return T4.some(t=>{try{return e.matches(t)}catch{return!1}})}const _4=["transform","translate","scale","rotate","perspective"],R4=["transform","translate","scale","rotate","perspective","filter"],P4=["paint","layout","strict","content"];function iy(e){const t=Vh(),n=nn(e)?uo(e):e;return _4.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)||R4.some(r=>(n.willChange||"").includes(r))||P4.some(r=>(n.contain||"").includes(r))}function O4(e){let t=Vi(e);for(;Lo(t)&&!Wi(t);){if(iy(t))return t;if(Hh(t))return null;t=Vi(t)}return null}function Vh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const I4=new Set(["html","body","#document"]);function Wi(e){return I4.has(Eu(e))}function uo(e){return Yr(e).getComputedStyle(e)}function Kh(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vi(e){if(Eu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nv(e)&&e.host||Xi(e);return Nv(t)?t.host:t}function aC(e){const t=Vi(e);return Wi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lo(t)&&Sd(t)?t:aC(t)}function Gc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=aC(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Yr(o);if(i){const c=Lv(s);return t.concat(s,s.visualViewport||[],Sd(o)?o:[],c&&n?Gc(c):[])}return t.concat(o,Gc(o,[],n))}function Lv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Xb=Math.min,Wf=Math.max,dh=Math.round,ai=e=>({x:e,y:e});function sC(e){return e.split("-")[0]}function M4(e){return e.split("-")[1]}function N4(e){return e==="x"?"y":"x"}function L4(e){return e==="y"?"height":"width"}const D4=new Set(["top","bottom"]);function lC(e){return D4.has(sC(e))?"y":"x"}function F4(e){return N4(lC(e))}function cC(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 Jb(e,t,n){let{reference:r,floating:o}=e;const i=lC(t),s=F4(t),c=L4(s),u=sC(t),f=i==="y",m=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let w;switch(u){case"top":w={x:m,y:r.y-o.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-o.width,y:h};break;default:w={x:r.x,y:r.y}}switch(M4(t)){case"start":w[s]-=v*(n&&f?-1:1);break;case"end":w[s]+=v*(n&&f?-1:1);break}return w}const j4=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:h}=Jb(f,r,u),v=r,w={},C=0;for(let A=0;A<c.length;A++){const{name:x,fn:E}=c[A],{x:R,y:I,data:L,reset:M}=await E({x:m,y:h,initialPlacement:r,placement:v,strategy:o,middlewareData:w,rects:f,platform:s,elements:{reference:e,floating:t}});m=R??m,h=I??h,w={...w,[x]:{...w[x],...L}},M&&C<=50&&(C++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(f=M.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:m,y:h}=Jb(f,v,u)),A=-1)}return{x:m,y:h,placement:v,strategy:o,middlewareData:w}};function uC(e){const t=uo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lo(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=dh(n)!==i||dh(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function fC(e){return nn(e)?e:e.contextElement}function Qc(e){const t=fC(e);if(!Lo(t))return ai(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=uC(t);let s=(i?dh(n.width):n.width)/r,c=(i?dh(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const z4=ai(0);function dC(e){const t=Yr(e);return!Vh()||!t.visualViewport?z4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yr(e)?!1:t}function ed(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=fC(e);let s=ai(1);t&&(r?nn(r)&&(s=Qc(r)):s=Qc(e));const c=B4(i,n,r)?dC(i):ai(0);let u=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,m=o.width/s.x,h=o.height/s.y;if(i){const v=Yr(i),w=r&&nn(r)?Yr(r):r;let C=v,A=Lv(C);for(;A&&r&&w!==C;){const x=Qc(A),E=A.getBoundingClientRect(),R=uo(A),I=E.left+(A.clientLeft+parseFloat(R.paddingLeft))*x.x,L=E.top+(A.clientTop+parseFloat(R.paddingTop))*x.y;u*=x.x,f*=x.y,m*=x.x,h*=x.y,u+=I,f+=L,C=Yr(A),A=Lv(C)}}return cC({width:m,height:h,x:u,y:f})}function Yh(e,t){const n=Kh(e).scrollLeft;return t?t.left+n:ed(Xi(e)).left+n}function pC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yh(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function U4(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Xi(r),c=t?Hh(t.floating):!1;if(r===s||c&&i)return n;let u={scrollLeft:0,scrollTop:0},f=ai(1);const m=ai(0),h=Lo(r);if((h||!h&&!i)&&((Eu(r)!=="body"||Sd(s))&&(u=Kh(r)),Lo(r))){const w=ed(r);f=Qc(r),m.x=w.x+r.clientLeft,m.y=w.y+r.clientTop}const v=s&&!h&&!i?pC(s,u):ai(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-u.scrollTop*f.y+m.y+v.y}}function $4(e){return Array.from(e.getClientRects())}function W4(e){const t=Xi(e),n=Kh(e),r=e.ownerDocument.body,o=Wf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Yh(e);const c=-n.scrollTop;return uo(r).direction==="rtl"&&(s+=Wf(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}const qb=25;function H4(e,t){const n=Yr(e),r=Xi(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,u=0;if(o){i=o.width,s=o.height;const m=Vh();(!m||m&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const f=Yh(r);if(f<=0){const m=r.ownerDocument,h=m.body,v=getComputedStyle(h),w=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,C=Math.abs(r.clientWidth-h.clientWidth-w);C<=qb&&(i-=C)}else f<=qb&&(i+=f);return{width:i,height:s,x:c,y:u}}const V4=new Set(["absolute","fixed"]);function K4(e,t){const n=ed(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Lo(e)?Qc(e):ai(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,f=r*i.y;return{width:s,height:c,x:u,y:f}}function ex(e,t,n){let r;if(t==="viewport")r=H4(e,n);else if(t==="document")r=W4(Xi(e));else if(nn(t))r=K4(t,n);else{const o=dC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return cC(r)}function hC(e,t){const n=Vi(e);return n===t||!nn(n)||Wi(n)?!1:uo(n).position==="fixed"||hC(n,t)}function Y4(e,t){const n=t.get(e);if(n)return n;let r=Gc(e,[],!1).filter(c=>nn(c)&&Eu(c)!=="body"),o=null;const i=uo(e).position==="fixed";let s=i?Vi(e):e;for(;nn(s)&&!Wi(s);){const c=uo(s),u=iy(s);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&V4.has(o.position)||Sd(s)&&!u&&hC(e,s))?r=r.filter(m=>m!==s):o=c,s=Vi(s)}return t.set(e,r),r}function G4(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Hh(t)?[]:Y4(t,this._c):[].concat(n),r],c=s[0],u=s.reduce((f,m)=>{const h=ex(t,m,o);return f.top=Wf(h.top,f.top),f.right=Xb(h.right,f.right),f.bottom=Xb(h.bottom,f.bottom),f.left=Wf(h.left,f.left),f},ex(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Q4(e){const{width:t,height:n}=uC(e);return{width:t,height:n}}function Z4(e,t,n){const r=Lo(t),o=Xi(t),i=n==="fixed",s=ed(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=ai(0);function f(){u.x=Yh(o)}if(r||!r&&!i)if((Eu(t)!=="body"||Sd(o))&&(c=Kh(t)),r){const w=ed(t,!0,i,t);u.x=w.x+t.clientLeft,u.y=w.y+t.clientTop}else o&&f();i&&!r&&o&&f();const m=o&&!r&&!i?pC(o,c):ai(0),h=s.left+c.scrollLeft-u.x-m.x,v=s.top+c.scrollTop-u.y-m.y;return{x:h,y:v,width:s.width,height:s.height}}function kg(e){return uo(e).position==="static"}function tx(e,t){if(!Lo(e)||uo(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xi(e)===n&&(n=n.ownerDocument.body),n}function mC(e,t){const n=Yr(e);if(Hh(e))return n;if(!Lo(e)){let o=Vi(e);for(;o&&!Wi(o);){if(nn(o)&&!kg(o))return o;o=Vi(o)}return n}let r=tx(e,t);for(;r&&k4(r)&&kg(r);)r=tx(r,t);return r&&Wi(r)&&kg(r)&&!iy(r)?n:r||O4(e)||n}const X4=async function(e){const t=this.getOffsetParent||mC,n=this.getDimensions,r=await n(e.floating);return{reference:Z4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function J4(e){return uo(e).direction==="rtl"}const q4={convertOffsetParentRelativeRectToViewportRelativeRect:U4,getDocumentElement:Xi,getClippingRect:G4,getOffsetParent:mC,getElementRects:X4,getClientRects:$4,getDimensions:Q4,getScale:Qc,isElement:nn,isRTL:J4},e3=(e,t,n)=>{const r=new Map,o={platform:q4,...n},i={...o.platform,_c:r};return j4(e,t,{...o,platform:i})};var t3=typeof document<"u",n3=function(){},Yp=t3?Y.useLayoutEffect:n3;function ph(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(!ph(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)&&!ph(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function gC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nx(e,t){const n=gC(e);return Math.round(t*n)/n}function Tg(e){const t=F.useRef(e);return Yp(()=>{t.current=e}),t}function r3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:u,open:f}=e,[m,h]=F.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=F.useState(r);ph(v,r)||w(r);const[C,A]=F.useState(null),[x,E]=F.useState(null),R=F.useCallback(Q=>{Q!==U.current&&(U.current=Q,A(Q))},[]),I=F.useCallback(Q=>{Q!==j.current&&(j.current=Q,E(Q))},[]),L=i||C,M=s||x,U=F.useRef(null),j=F.useRef(null),W=F.useRef(m),H=u!=null,G=Tg(u),q=Tg(o),pe=Tg(f),ie=F.useCallback(()=>{if(!U.current||!j.current)return;const Q={placement:t,strategy:n,middleware:v};q.current&&(Q.platform=q.current),e3(U.current,j.current,Q).then(Ee=>{const ne={...Ee,isPositioned:pe.current!==!1};se.current&&!ph(W.current,ne)&&(W.current=ne,dk.flushSync(()=>{h(ne)}))})},[v,t,n,q,pe]);Yp(()=>{f===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,h(Q=>({...Q,isPositioned:!1})))},[f]);const se=F.useRef(!1);Yp(()=>(se.current=!0,()=>{se.current=!1}),[]),Yp(()=>{if(L&&(U.current=L),M&&(j.current=M),L&&M){if(G.current)return G.current(L,M,ie);ie()}},[L,M,ie,G,H]);const xe=F.useMemo(()=>({reference:U,floating:j,setReference:R,setFloating:I}),[R,I]),Ae=F.useMemo(()=>({reference:L,floating:M}),[L,M]),Re=F.useMemo(()=>{const Q={position:n,left:0,top:0};if(!Ae.floating)return Q;const Ee=nx(Ae.floating,m.x),ne=nx(Ae.floating,m.y);return c?{...Q,transform:"translate("+Ee+"px, "+ne+"px)",...gC(Ae.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ee,top:ne}},[n,c,Ae.floating,m.x,m.y]);return F.useMemo(()=>({...m,update:ie,refs:xe,elements:Ae,floatingStyles:Re}),[m,ie,xe,Ae,Re])}let o3="div";function i3(e,t){let n=`headlessui-control-${Y.useId()}`,[r,o]=b4(),[i,s]=h4(),c=Bh(),{disabled:u=c||!1,...f}=e,m=zh({disabled:u}),h={ref:t,disabled:u||void 0,"aria-disabled":u||void 0},v=xd();return Y.createElement(G_,{value:u},Y.createElement(o,{value:r},Y.createElement(s,{value:i},Y.createElement(l4,{id:n},v({ourProps:h,theirProps:{...f,children:Y.createElement(s4,null,typeof f.children=="function"?f.children(m):f.children)},slot:m,defaultTag:o3,name:"Field"})))))}let a3=wd(i3),s3="input";function l3(e,t){let n=Y.useId(),r=JS(),o=Bh(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:c=!1,invalid:u=!1,...f}=e,m=oC(),h=p4(),{isFocused:v,focusProps:w}=$_({autoFocus:c}),{isHovered:C,hoverProps:A}=U_({isDisabled:s}),x=e4({ref:t,id:i,"aria-labelledby":m,"aria-describedby":h,"aria-invalid":u?"true":void 0,disabled:s||void 0,autoFocus:c},w,A),E=zh({disabled:s,invalid:u,hover:C,focus:v,autofocus:c});return xd()({ourProps:x,theirProps:f,slot:E,defaultTag:s3,name:"Input"})}let c3=wd(l3);const vC=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>D.jsx("div",{className:gt("w-full max-w-md px-4",i),children:D.jsxs(a3,{children:[n&&D.jsx(C4,{className:"font-medium text-gray-900",children:n}),r&&D.jsx(y4,{className:"text-sm text-secondary",children:r}),D.jsx(c3,{type:e,className:gt("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",t,o&&"border-red-500 focus:border-red-500"),...s})]})}),u3="whitespace-nowrap font-normal flex items-center justify-center",f3="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",d3="disabled:opacity-15 disabled:pointer-events-none",yC=e=>e==="grayLight"||e==="warning",bC=(e,t)=>!t||t==="none"?"":e(),p3=(e,t)=>bC(()=>{const n=e==="gray400"?"gray":e,r=yC(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),h3=e=>bC(()=>{const t=yC(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),m3=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",g3=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",v3=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,y3=(e,t)=>({solid:h3(e),link:m3(e),linkHoverSolid:g3(e,t),outline:v3(e,t)}),b3={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},x3={none:"",default:"rounded",pill:"rounded-pill"},w3=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:c="default",style:u={},primaryColor:f,...m},h)=>{var I;const v=d3,w=/link/.test(o)?null:p3(n,e),C=f3,A=b3[r],x=(I=y3(n,e))==null?void 0:I[o],E=Yc(w,x),R=x3[c];return D.jsx("button",{...m,style:{...u,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:f?f+"!important":void 0},type:s,ref:h,className:Yc(u3,C,v,A,E,R,i,"cursor-pointer"),children:t})},Ht=Y.forwardRef(w3),S3=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>D.jsx(D.Fragment,{children:e&&ui.createPortal(D.jsxs(Lh.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[D.jsx("div",{className:"fixed inset-0 bg-black/30"}),D.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:D.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&D.jsx("div",{className:" text-gray-900 p-4",children:n}),D.jsx("div",{className:"p-4",children:i}),r||o?D.jsxs("div",{className:"flex gap-4 p-4",children:[r?D.jsx(Ht,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):D.jsx(D.Fragment,{}),o?D.jsx(Ht,{className:"flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):D.jsx(D.Fragment,{})]}):D.jsx(D.Fragment,{})]})}),D.jsx("style",{type:"text/css",children:yd})]}),document.body,"confidence-modal")}),C3=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=Y.useState(""),[s,c]=Y.useState(!1),[u,f]=Y.useState(!1),m=async()=>{if(o)try{c(!0),await e(o),i("")}catch{f(!0)}finally{c(!1)}else alert("Please enter a valid email address.")};return D.jsx(S3,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:m,disabled:s||!o||u},children:D.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[D.jsxs("div",{children:[D.jsx("div",{className:"text-center text-2xl font-medium",children:u?"User already has access":r||"Access Playbook"}),D.jsx("div",{className:"text-center",children:u?D.jsxs(D.Fragment,{children:[D.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):D.jsx(D.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),D.jsx(vC,{disabled:s||u,placeholder:"Enter company email address",onChange:h=>i(h.target.value)})]})})},A3=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:c="primary"})=>{const[u,f]=Y.useState(!1),[m,h]=Y.useState(!1);function v(){f(!0)}function w(){f(!1)}const C=async A=>{try{h(!0);const{playbookInstanceId:x,errorCode:E,details:R,message:I}=await SS({bank:"public-sdk",email:A,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(E)throw new Error(`Error initiating playbook: ${I} (Code: ${E}) - Details: ${R}`);o(x,A)}finally{h(!1)}};return D.jsxs(D.Fragment,{children:[t?{buttonNode:t}:D.jsxs(Ht,{onClick:v,className:gt(e,"flex items-center gap-1"),color:c,size:n,disabled:i||m,children:[D.jsx("img",{src:aS,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),D.jsx(C3,{isOpen:u,onClose:w,onConfirm:async A=>{await C(A),w()}})]})};/*!
|
|
24
|
+
`))}else{let d=u.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...y)=>Xp(p(...y),l.className):Xp(p,l.className),g=h?{className:h}:{},m=X0(u.props,Zo(wc(l,["ref"])));for(let y in f)y in m&&delete f[y];return T.cloneElement(u,Object.assign({},m,f,c,{ref:o(sA(u),c.ref)},g))}return T.createElement(i,Object.assign({},wc(l,["ref"]),!Ia(i)&&c,!Ia(i)&&f),u)}function rA(){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 oA(...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 X0(...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 iA(...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 Zo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function wc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function sA(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 aA(e){return Ia(e.type)}let lA="span";var ey=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ey||{});function cA(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:lA,name:"Hidden"})}let uA=Ys(cA),fA=T.createContext(null);function dA(e){let[t,n]=T.useState(null);return T.createElement(fA.Provider,{value:{target:t}},e.children,T.createElement(uA,{features:ey.Hidden,ref:n}))}let ty=T.createContext(void 0);function ny(){return T.useContext(ty)}function pA({id:e,children:t}){return T.createElement(ty.Provider,{value:e},t)}function hA(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function ry(e){return hA(e)&&"tagName"in e}function oy(e){return ry(e)&&"accessKey"in e}function mA(e){return oy(e)&&e.nodeName==="INPUT"}function eh(e){return oy(e)&&e.nodeName==="LABEL"}function gA(e){return ry(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let yA=Symbol();function iy(...e){let t=T.useRef(e);T.useEffect(()=>{t.current=e},[e]);let n=El(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[yA]))?void 0:n}let Tl=T.createContext(null);Tl.displayName="DescriptionContext";function sy(){let e=T.useContext(Tl);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,sy),t}return e}function vA(){var e,t;return(t=(e=T.useContext(Tl))==null?void 0:e.value)!=null?t:void 0}function bA(){let[e,t]=T.useState([]);return[e.length>0?e.join(" "):void 0,T.useMemo(()=>function(n){let r=El(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,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(Tl.Provider,{value:o},n.children)},[t])]}let xA="p";function wA(e,t){let n=T.useId(),r=kl(),{id:o=`headlessui-description-${n}`,...i}=e,s=sy(),a=iy(t);td(()=>s.register(o),[o,s.register]);let l=Sl({...s.slot,disabled:r||!1}),c={ref:a,...s.props,id:o};return Vs()({ourProps:c,theirProps:i,slot:l,defaultTag:xA,name:s.name||"Description"})}let AA=Ys(wA),CA=Object.assign(AA,{}),Nl=T.createContext(null);Nl.displayName="LabelContext";function ay(){let e=T.useContext(Nl);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,ay),t}return e}function ly(e){var t,n,r;let o=(n=(t=T.useContext(Nl))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function _A({inherit:e=!1}={}){let t=ly(),[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=El(l=>(r(c=>[...c,l]),()=>r(c=>{let u=c.slice(),f=u.indexOf(l);return f!==-1&&u.splice(f,1),u}))),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(Nl.Provider,{value:a},i.children)},[r])]}let EA="label";function SA(e,t){var n;let r=T.useId(),o=ay(),i=ny(),s=kl(),{id:a=`headlessui-label-${r}`,htmlFor:l=i??((n=o.props)==null?void 0:n.htmlFor),passive:c=!1,...u}=e,f=iy(t);td(()=>o.register(a),[a,o.register]);let d=El(g=>{let m=g.currentTarget;if(!(g.target!==g.currentTarget&&gA(g.target))&&(eh(m)&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),eh(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;(mA(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=Sl({...o.slot,disabled:s||!1}),h={ref:f,...o.props,id:a,htmlFor:l,onClick:d};return c&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),Vs()({ourProps:h,theirProps:u,slot:p,defaultTag:l?EA:"div",name:o.name||"Label"})}let kA=Ys(SA),TA=Object.assign(kA,{});function Ol(){return typeof window<"u"}function Bi(e){return cy(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function or(e){var t;return(t=(cy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cy(e){return Ol()?e instanceof Node||e instanceof Ut(e).Node:!1}function He(e){return Ol()?e instanceof Element||e instanceof Ut(e).Element:!1}function cn(e){return Ol()?e instanceof HTMLElement||e instanceof Ut(e).HTMLElement:!1}function Ou(e){return!Ol()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}const NA=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)&&!NA.has(o)}const OA=new Set(["table","td","th"]);function PA(e){return OA.has(Bi(e))}const MA=[":popover-open",":modal"];function Pl(e){return MA.some(t=>{try{return e.matches(t)}catch{return!1}})}const IA=["transform","translate","scale","rotate","perspective"],LA=["transform","translate","scale","rotate","perspective","filter"],RA=["paint","layout","strict","content"];function nd(e){const t=Ml(),n=He(e)?Qt(e):e;return IA.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)||LA.some(r=>(n.willChange||"").includes(r))||RA.some(r=>(n.contain||"").includes(r))}function DA(e){let t=Jn(e);for(;cn(t)&&!Gn(t);){if(nd(t))return t;if(Pl(t))return null;t=Jn(t)}return null}function Ml(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const FA=new Set(["html","body","#document"]);function Gn(e){return FA.has(Bi(e))}function Qt(e){return Ut(e).getComputedStyle(e)}function Il(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(Bi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ou(e)&&e.host||or(e);return Ou(t)?t.host:t}function uy(e){const t=Jn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&Qs(t)?t:uy(t)}function fi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=uy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ut(o);if(i){const a=Pu(s);return t.concat(s,s.visualViewport||[],Qs(o)?o:[],a&&n?fi(a):[])}return t.concat(o,fi(o,[],n))}function Pu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const th=Math.min,gs=Math.max,Xa=Math.round,_n=e=>({x:e,y:e});function fy(e){return e.split("-")[0]}function jA(e){return e.split("-")[1]}function zA(e){return e==="x"?"y":"x"}function $A(e){return e==="y"?"height":"width"}const UA=new Set(["top","bottom"]);function dy(e){return UA.has(fy(e))?"y":"x"}function BA(e){return zA(dy(e))}function py(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 nh(e,t,n){let{reference:r,floating:o}=e;const i=dy(t),s=BA(t),a=$A(s),l=fy(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(jA(t)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const WA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=nh(c,r,l),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:A,reset:w}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=v??u,f=b??f,p={...p,[m]:{...p[m],...A}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:f}=nh(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};function hy(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cn(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 my(e){return He(e)?e:e.contextElement}function di(e){const t=my(e);if(!cn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hy(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 KA=_n(0);function gy(e){const t=Ut(e);return!Ml()||!t.visualViewport?KA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ut(e)?!1:t}function ks(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=my(e);let s=_n(1);t&&(r?He(r)&&(s=di(r)):s=di(e));const a=HA(i,n,r)?gy(i):_n(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Ut(i),p=r&&He(r)?Ut(r):r;let h=d,g=Pu(h);for(;g&&r&&p!==h;){const m=di(g),y=g.getBoundingClientRect(),v=Qt(g),b=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,A=y.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,f*=m.y,l+=b,c+=A,h=Ut(g),g=Pu(h)}}return py({width:u,height:f,x:l,y:c})}function Ll(e,t){const n=Il(e).scrollLeft;return t?t.left+n:ks(or(e)).left+n}function yy(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ll(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qA(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=or(r),a=t?Pl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=_n(1);const u=_n(0),f=cn(r);if((f||!f&&!i)&&((Bi(r)!=="body"||Qs(s))&&(l=Il(r)),cn(r))){const p=ks(r);c=di(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=s&&!f&&!i?yy(s,l):_n(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function VA(e){return Array.from(e.getClientRects())}function YA(e){const t=or(e),n=Il(e),r=e.ownerDocument.body,o=gs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ll(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=gs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const rh=25;function QA(e,t){const n=Ut(e),r=or(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Ml();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ll(r);if(c<=0){const u=r.ownerDocument,f=u.body,d=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=rh&&(i-=h)}else c<=rh&&(i+=c);return{width:i,height:s,x:a,y:l}}const GA=new Set(["absolute","fixed"]);function ZA(e,t){const n=ks(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cn(e)?di(e):_n(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function oh(e,t,n){let r;if(t==="viewport")r=QA(e,n);else if(t==="document")r=YA(or(e));else if(He(t))r=ZA(t,n);else{const o=gy(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return py(r)}function vy(e,t){const n=Jn(e);return n===t||!He(n)||Gn(n)?!1:Qt(n).position==="fixed"||vy(n,t)}function JA(e,t){const n=t.get(e);if(n)return n;let r=fi(e,[],!1).filter(a=>He(a)&&Bi(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?Jn(e):e;for(;He(s)&&!Gn(s);){const a=Qt(s),l=nd(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&GA.has(o.position)||Qs(s)&&!l&&vy(e,s))?r=r.filter(u=>u!==s):o=a,s=Jn(s)}return t.set(e,r),r}function XA(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Pl(t)?[]:JA(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=oh(t,u,o);return c.top=gs(f.top,c.top),c.right=th(f.right,c.right),c.bottom=th(f.bottom,c.bottom),c.left=gs(f.left,c.left),c},oh(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function eC(e){const{width:t,height:n}=hy(e);return{width:t,height:n}}function tC(e,t,n){const r=cn(t),o=or(t),i=n==="fixed",s=ks(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=_n(0);function c(){l.x=Ll(o)}if(r||!r&&!i)if((Bi(t)!=="body"||Qs(o))&&(a=Il(t)),r){const p=ks(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?yy(o,a):_n(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Ac(e){return Qt(e).position==="static"}function ih(e,t){if(!cn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return or(e)===n&&(n=n.ownerDocument.body),n}function by(e,t){const n=Ut(e);if(Pl(e))return n;if(!cn(e)){let o=Jn(e);for(;o&&!Gn(o);){if(He(o)&&!Ac(o))return o;o=Jn(o)}return n}let r=ih(e,t);for(;r&&PA(r)&&Ac(r);)r=ih(r,t);return r&&Gn(r)&&Ac(r)&&!nd(r)?n:r||DA(e)||n}const nC=async function(e){const t=this.getOffsetParent||by,n=this.getDimensions,r=await n(e.floating);return{reference:tC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rC(e){return Qt(e).direction==="rtl"}const oC={convertOffsetParentRelativeRectToViewportRelativeRect:qA,getDocumentElement:or,getClippingRect:XA,getOffsetParent:by,getElementRects:nC,getClientRects:VA,getDimensions:eC,getScale:di,isElement:He,isRTL:rC},iC=(e,t,n)=>{const r=new Map,o={platform:oC,...n},i={...o.platform,_c:r};return WA(e,t,{...o,platform:i})};var sC=typeof document<"u",aC=function(){},La=sC?T.useLayoutEffect:aC;function el(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(!el(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)&&!el(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sh(e,t){const n=xy(e);return Math.round(t*n)/n}function Cc(e){const t=C.useRef(e);return La(()=>{t.current=e}),t}function lC(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:l,open:c}=e,[u,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=C.useState(r);el(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))},[]),A=i||h,w=s||m,_=C.useRef(null),E=C.useRef(null),S=C.useRef(u),O=l!=null,P=Cc(l),I=Cc(o),W=Cc(c),j=C.useCallback(()=>{if(!_.current||!E.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),iC(_.current,E.current,M).then(re=>{const L={...re,isPositioned:W.current!==!1};z.current&&!el(S.current,L)&&(S.current=L,C1.flushSync(()=>{f(L)}))})},[d,t,n,I,W]);La(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[c]);const z=C.useRef(!1);La(()=>(z.current=!0,()=>{z.current=!1}),[]),La(()=>{if(A&&(_.current=A),w&&(E.current=w),A&&w){if(P.current)return P.current(A,w,j);j()}},[A,w,j,P,O]);const Y=C.useMemo(()=>({reference:_,floating:E,setReference:v,setFloating:b}),[v,b]),Q=C.useMemo(()=>({reference:A,floating:w}),[A,w]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const re=sh(Q.floating,u.x),L=sh(Q.floating,u.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...xy(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,Q.floating,u.x,u.y]);return C.useMemo(()=>({...u,update:j,refs:Y,elements:Q,floatingStyles:oe}),[u,j,Y,Q,oe])}let cC="div";function uC(e,t){let n=`headlessui-control-${T.useId()}`,[r,o]=_A(),[i,s]=bA(),a=kl(),{disabled:l=a||!1,...c}=e,u=Sl({disabled:l}),f={ref:t,disabled:l||void 0,"aria-disabled":l||void 0},d=Vs();return T.createElement(X2,{value:l},T.createElement(o,{value:r},T.createElement(s,{value:i},T.createElement(pA,{id:n},d({ourProps:f,theirProps:{...c,children:T.createElement(dA,null,typeof c.children=="function"?c.children(u):c.children)},slot:u,defaultTag:cC,name:"Field"})))))}let fC=Ys(uC),dC="input";function pC(e,t){let n=T.useId(),r=ny(),o=kl(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:l=!1,...c}=e,u=ly(),f=vA(),{isFocused:d,focusProps:p}=V2({autoFocus:a}),{isHovered:h,hoverProps:g}=q2({isDisabled:s}),m=iA({ref:t,id:i,"aria-labelledby":u,"aria-describedby":f,"aria-invalid":l?"true":void 0,disabled:s||void 0,autoFocus:a},p,g),y=Sl({disabled:s,invalid:l,hover:h,focus:d,autofocus:a});return Vs()({ourProps:m,theirProps:c,slot:y,defaultTag:dC,name:"Input"})}let hC=Ys(pC);const wy=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>x.jsx("div",{className:Ee("w-full max-w-md px-4",i),children:x.jsxs(fC,{children:[n&&x.jsx(TA,{className:"font-medium text-gray-900",children:n}),r&&x.jsx(CA,{className:"text-sm text-secondary",children:r}),x.jsx(hC,{type:e,className:Ee("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",t,o&&"border-red-500 focus:border-red-500"),...s})]})}),mC="whitespace-nowrap font-normal flex items-center justify-center",gC="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",yC="disabled:opacity-15 disabled:pointer-events-none",Ay=e=>e==="grayLight"||e==="warning",Cy=(e,t)=>!t||t==="none"?"":e(),vC=(e,t)=>Cy(()=>{const n=e==="gray400"?"gray":e,r=Ay(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),bC=e=>Cy(()=>{const t=Ay(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),xC=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",wC=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",AC=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,CC=(e,t)=>({solid:bC(e),link:xC(e),linkHoverSolid:wC(e,t),outline:AC(e,t)}),_C={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},EC={none:"",default:"rounded",pill:"rounded-pill"},SC=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:l={},primaryColor:c,...u},f)=>{var b;const d=yC,p=/link/.test(o)?null:vC(n,e),h=gC,g=_C[r],m=(b=CC(n,e))==null?void 0:b[o],y=ui(p,m),v=EC[a];return x.jsx("button",{...u,style:{...l,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:c?c+"!important":void 0},type:s,ref:f,className:ui(mC,h,d,g,y,v,i,"cursor-pointer"),children:t})},je=T.forwardRef(SC),kC=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>x.jsx(x.Fragment,{children:e&&Tn.createPortal(x.jsxs(Al.div,{className:Ee("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[x.jsx("div",{className:"fixed inset-0 bg-black/30"}),x.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:x.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&x.jsx("div",{className:" text-gray-900 p-4",children:n}),x.jsx("div",{className:"p-4",children:i}),r||o?x.jsxs("div",{className:"flex gap-4 p-4",children:[r?x.jsx(je,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):x.jsx(x.Fragment,{}),o?x.jsx(je,{className:"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:Hs})]}),document.body,"confidence-modal")}),TC=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=T.useState(""),[s,a]=T.useState(!1),[l,c]=T.useState(!1),u=async()=>{if(o)try{a(!0),await e(o),i("")}catch{c(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return x.jsx(kC,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:u,disabled:s||!o||l},children:x.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[x.jsxs("div",{children:[x.jsx("div",{className:"text-center text-2xl font-medium",children:l?"User already has access":r||"Access Playbook"}),x.jsx("div",{className:"text-center",children:l?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(wy,{disabled:s||l,placeholder:"Enter company email address",onChange:f=>i(f.target.value)})]})})},NC=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[l,c]=T.useState(!1),[u,f]=T.useState(!1);function d(){c(!0)}function p(){c(!1)}const h=async g=>{try{f(!0);const{playbookInstanceId:m,errorCode:y,details:v,message:b}=await S0({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{f(!1)}};return x.jsxs(x.Fragment,{children:[t?{buttonNode:t}:x.jsxs(je,{onClick:d,className:Ee(e,"flex items-center gap-1"),color:a,size:n,disabled:i||u,children:[x.jsx("img",{src:u0,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),x.jsx(TC,{isOpen:l,onClose:p,onConfirm:async g=>{await h(g),p()}})]})};/*!
|
|
129
25
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
130
26
|
* License - https://fontawesome.com/license (Commercial License)
|
|
131
27
|
* Copyright 2024 Fonticons, Inc.
|
|
132
|
-
*/const E3={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"]},k3={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"]},T3={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"]},_3=T3,R3={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"]},P3={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"]},xC={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"]},O3=xC,I3={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"]},wC=I3,M3={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"]},SC={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"]},CC=SC,N3={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"]},L3={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"]},D3={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"]},F3=D3,rx={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"]},j3={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"]},z3={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"]},B3={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"]},U3={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"]},$3={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"]},W3={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"]},AC={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"]},H3=AC,V3={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"]},K3={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"]},ay={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"]},Gh={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"]},EC=Gh,kC={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"]},TC={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"]},Y3=TC,G3={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 OC={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"]},PC={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"]},MC={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"]},IC=MC,LC={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"]},RC={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"]},DC=_y,FC={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"]},Ey=FC,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"]},Sy={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"]},ky=Sy,zC={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"]},$C={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"]},UC={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"]},BC=UC,ah={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"]},WC={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"]},KC={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"]},HC={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"]},qC={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"]},VC={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"]},YC={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"]},Ty={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"]},QC=Ty,GC={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"]},ZC={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"]},rd={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"]},Rl={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"]},Ny=Rl,Oy={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"]},Py={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"]},JC=Py,XC={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"]};/*!
|
|
133
29
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
134
30
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
135
31
|
* Copyright 2024 Fonticons, Inc.
|
|
136
|
-
*/function Q3(e,t,n){return(t=X3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ox(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(n),!0).forEach(function(r){Q3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ox(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z3(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 X3(e){var t=Z3(e,"string");return typeof t=="symbol"?t:t+""}const ix=()=>{};let sy={},_C={},RC=null,PC={mark:ix,measure:ix};try{typeof window<"u"&&(sy=window),typeof document<"u"&&(_C=document),typeof MutationObserver<"u"&&(RC=MutationObserver),typeof performance<"u"&&(PC=performance)}catch{}const{userAgent:ax=""}=sy.navigator||{},Ga=sy,Gt=_C,sx=RC,Op=PC;Ga.document;const Ji=!!Gt.documentElement&&!!Gt.head&&typeof Gt.addEventListener=="function"&&typeof Gt.createElement=="function",OC=~ax.indexOf("MSIE")||~ax.indexOf("Trident/");var J3=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,q3=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,IC={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"}},eR={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},MC=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],or="classic",Qh="duotone",tR="sharp",nR="sharp-duotone",NC=[or,Qh,tR,nR],rR={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"}},oR={"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"}},iR=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}]]),aR={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"}},sR=["fak","fa-kit","fakd","fa-kit-duotone"],lx={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},lR=["kit"],cR={kit:{"fa-kit":"fak"}},uR=["fak","fakd"],fR={kit:{fak:"fa-kit"}},cx={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Ip={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},dR=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],pR=["fak","fa-kit","fakd","fa-kit-duotone"],hR={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},mR={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"}},gR={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Dv={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"}},vR=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Fv=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...dR,...vR],yR=["solid","regular","light","thin","duotone","brands"],LC=[1,2,3,4,5,6,7,8,9,10],bR=LC.concat([11,12,13,14,15,16,17,18,19,20]),xR=[...Object.keys(gR),...yR,"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",Ip.GROUP,Ip.SWAP_OPACITY,Ip.PRIMARY,Ip.SECONDARY].concat(LC.map(e=>"".concat(e,"x"))).concat(bR.map(e=>"w-".concat(e))),wR={"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 Ki="___FONT_AWESOME___",jv=16,DC="fa",FC="svg-inline--fa",vl="data-fa-i2svg",zv="data-fa-pseudo-element",SR="data-fa-pseudo-element-pending",ly="data-prefix",cy="data-icon",ux="fontawesome-i2svg",CR="async",AR=["HTML","HEAD","STYLE","SCRIPT"],jC=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Cd(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[or]}})}const zC=Ce({},IC);zC[or]=Ce(Ce(Ce(Ce({},{"fa-duotone":"duotone"}),IC[or]),lx.kit),lx["kit-duotone"]);const ER=Cd(zC),Bv=Ce({},aR);Bv[or]=Ce(Ce(Ce(Ce({},{duotone:"fad"}),Bv[or]),cx.kit),cx["kit-duotone"]);const fx=Cd(Bv),Uv=Ce({},Dv);Uv[or]=Ce(Ce({},Uv[or]),fR.kit);const uy=Cd(Uv),$v=Ce({},mR);$v[or]=Ce(Ce({},$v[or]),cR.kit);Cd($v);const kR=J3,BC="fa-layers-text",TR=q3,_R=Ce({},rR);Cd(_R);const RR=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_g=eR,PR=[...lR,...xR],Hf=Ga.FontAwesomeConfig||{};function OR(e){var t=Gt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function IR(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Gt&&typeof Gt.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=IR(OR(n));o!=null&&(Hf[r]=o)});const UC={styleDefault:"solid",familyDefault:or,cssPrefix:DC,replacementClass:FC,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Hf.familyPrefix&&(Hf.cssPrefix=Hf.familyPrefix);const hu=Ce(Ce({},UC),Hf);hu.autoReplaceSvg||(hu.observeMutations=!1);const Ve={};Object.keys(UC).forEach(e=>{Object.defineProperty(Ve,e,{enumerable:!0,set:function(t){hu[e]=t,Vf.forEach(n=>n(Ve))},get:function(){return hu[e]}})});Object.defineProperty(Ve,"familyPrefix",{enumerable:!0,set:function(e){hu.cssPrefix=e,Vf.forEach(t=>t(Ve))},get:function(){return hu.cssPrefix}});Ga.FontAwesomeConfig=Ve;const Vf=[];function MR(e){return Vf.push(e),()=>{Vf.splice(Vf.indexOf(e),1)}}const Ra=jv,ri={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function NR(e){if(!e||!Ji)return;const t=Gt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Gt.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 Gt.head.insertBefore(t,r),e}const LR="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function td(){let e=12,t="";for(;e-- >0;)t+=LR[Math.random()*62|0];return t}function ku(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function fy(e){return e.classList?ku(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function $C(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function DR(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat($C(e[n]),'" '),"").trim()}function Zh(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function dy(e){return e.size!==ri.size||e.x!==ri.x||e.y!==ri.y||e.rotate!==ri.rotate||e.flipX||e.flipY}function FR(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),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(i," ").concat(s," ").concat(c)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:u,path:f}}function jR(e){let{transform:t,width:n=jv,height:r=jv,startCentered:o=!1}=e,i="";return o&&OC?i+="translate(".concat(t.x/Ra-n/2,"em, ").concat(t.y/Ra-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/Ra,"em), calc(-50% + ").concat(t.y/Ra,"em)) "):i+="translate(".concat(t.x/Ra,"em, ").concat(t.y/Ra,"em) "),i+="scale(".concat(t.size/Ra*(t.flipX?-1:1),", ").concat(t.size/Ra*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var zR=`:root, :host {
|
|
32
|
+
*/function e_(e,t,n){return(t=n_(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){e_(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 t_(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 n_(e){var t=t_(e,"string");return typeof t=="symbol"?t:t+""}const ch=()=>{};let od={},My={},Iy=null,Ly={mark:ch,measure:ch};try{typeof window<"u"&&(od=window),typeof document<"u"&&(My=document),typeof MutationObserver<"u"&&(Iy=MutationObserver),typeof performance<"u"&&(Ly=performance)}catch{}const{userAgent:uh=""}=od.navigator||{},Mr=od,$e=My,fh=Iy,va=Ly;Mr.document;const ir=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",Ry=~uh.indexOf("MSIE")||~uh.indexOf("Trident/");var r_=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,o_=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Dy={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"}},i_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Fy=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],xt="classic",Dl="duotone",s_="sharp",a_="sharp-duotone",jy=[xt,Dl,s_,a_],l_={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"}},u_=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}]]),f_={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"}},d_=["fak","fa-kit","fakd","fa-kit-duotone"],dh={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},p_=["kit"],h_={kit:{"fa-kit":"fak"}},m_=["fak","fakd"],g_={kit:{fak:"fa-kit"}},ph={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ba={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},y_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],v_=["fak","fa-kit","fakd","fa-kit-duotone"],b_={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},x_={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"}},w_={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Mu={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"}},A_=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Iu=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...y_,...A_],C_=["solid","regular","light","thin","duotone","brands"],zy=[1,2,3,4,5,6,7,8,9,10],__=zy.concat([11,12,13,14,15,16,17,18,19,20]),E_=[...Object.keys(w_),...C_,"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(zy.map(e=>"".concat(e,"x"))).concat(__.map(e=>"w-".concat(e))),S_={"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 Xn="___FONT_AWESOME___",Lu=16,$y="fa",Uy="svg-inline--fa",So="data-fa-i2svg",Ru="data-fa-pseudo-element",k_="data-fa-pseudo-element-pending",id="data-prefix",sd="data-icon",hh="fontawesome-i2svg",T_="async",N_=["HTML","HEAD","STYLE","SCRIPT"],By=(()=>{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[xt]}})}const Wy=H({},Dy);Wy[xt]=H(H(H(H({},{"fa-duotone":"duotone"}),Dy[xt]),dh.kit),dh["kit-duotone"]);const O_=Gs(Wy),Du=H({},f_);Du[xt]=H(H(H(H({},{duotone:"fad"}),Du[xt]),ph.kit),ph["kit-duotone"]);const mh=Gs(Du),Fu=H({},Mu);Fu[xt]=H(H({},Fu[xt]),g_.kit);const ad=Gs(Fu),ju=H({},x_);ju[xt]=H(H({},ju[xt]),h_.kit);Gs(ju);const P_=r_,Ky="fa-layers-text",M_=o_,I_=H({},l_);Gs(I_);const L_=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_c=i_,R_=[...p_,...E_],ys=Mr.FontAwesomeConfig||{};function D_(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function F_(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=F_(D_(n));o!=null&&(ys[r]=o)});const Hy={styleDefault:"solid",familyDefault:xt,cssPrefix:$y,replacementClass:Uy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ys.familyPrefix&&(ys.cssPrefix=ys.familyPrefix);const Pi=H(H({},Hy),ys);Pi.autoReplaceSvg||(Pi.observeMutations=!1);const ue={};Object.keys(Hy).forEach(e=>{Object.defineProperty(ue,e,{enumerable:!0,set:function(t){Pi[e]=t,vs.forEach(n=>n(ue))},get:function(){return Pi[e]}})});Object.defineProperty(ue,"familyPrefix",{enumerable:!0,set:function(e){Pi.cssPrefix=e,vs.forEach(t=>t(ue))},get:function(){return Pi.cssPrefix}});Mr.FontAwesomeConfig=ue;const vs=[];function j_(e){return vs.push(e),()=>{vs.splice(vs.indexOf(e),1)}}const pr=Lu,wn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function z_(e){if(!e||!ir)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 $_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ts(){let e=12,t="";for(;e-- >0;)t+=$_[Math.random()*62|0];return t}function Wi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ld(e){return e.classList?Wi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function qy(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function U_(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(qy(e[n]),'" '),"").trim()}function Fl(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function cd(e){return e.size!==wn.size||e.x!==wn.x||e.y!==wn.y||e.rotate!==wn.rotate||e.flipX||e.flipY}function B_(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)"),l={transform:"".concat(i," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function W_(e){let{transform:t,width:n=Lu,height:r=Lu,startCentered:o=!1}=e,i="";return o&&Ry?i+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):i+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),i+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var K_=`:root, :host {
|
|
137
33
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
138
34
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
139
35
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -686,24 +582,24 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
686
582
|
.svg-inline--fa mask .fa-primary,
|
|
687
583
|
.svg-inline--fa mask .fa-secondary {
|
|
688
584
|
fill: black;
|
|
689
|
-
}`;function WC(){const e=DC,t=FC,n=Ve.cssPrefix,r=Ve.replacementClass;let o=zR;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(c,".".concat(r))}return o}let dx=!1;function Rg(){Ve.autoAddCss&&!dx&&(NR(WC()),dx=!0)}var BR={mixout(){return{dom:{css:WC,insertCss:Rg}}},hooks(){return{beforeDOMElementCreation(){Rg()},beforeI2svg(){Rg()}}}};const Yi=Ga||{};Yi[Ki]||(Yi[Ki]={});Yi[Ki].styles||(Yi[Ki].styles={});Yi[Ki].hooks||(Yi[Ki].hooks={});Yi[Ki].shims||(Yi[Ki].shims=[]);var oi=Yi[Ki];const HC=[],VC=function(){Gt.removeEventListener("DOMContentLoaded",VC),hh=1,HC.map(e=>e())};let hh=!1;Ji&&(hh=(Gt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gt.readyState),hh||Gt.addEventListener("DOMContentLoaded",VC));function UR(e){Ji&&(hh?setTimeout(e,0):HC.push(e))}function Ad(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?$C(e):"<".concat(t," ").concat(DR(n),">").concat(r.map(Ad).join(""),"</").concat(t,">")}function px(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pg=function(t,n,r,o){var i=Object.keys(t),s=i.length,c=n,u,f,m;for(r===void 0?(u=1,m=t[i[0]]):(u=0,m=r);u<s;u++)f=i[u],m=c(m,t[f],f,t);return m};function $R(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 Wv(e){const t=$R(e);return t.length===1?t[0].toString(16):null}function WR(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 hx(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 Hv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=hx(t);typeof oi.hooks.addPack=="function"&&!r?oi.hooks.addPack(e,hx(t)):oi.styles[e]=Ce(Ce({},oi.styles[e]||{}),o),e==="fas"&&Hv("fa",t)}const{styles:nd,shims:HR}=oi,KC=Object.keys(uy),VR=KC.reduce((e,t)=>(e[t]=Object.keys(uy[t]),e),{});let py=null,YC={},GC={},QC={},ZC={},XC={};function KR(e){return~PR.indexOf(e)}function YR(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!KR(o)?o:null}const JC=()=>{const e=r=>Pg(nd,(o,i,s)=>(o[s]=Pg(i,r,{}),o),{});YC=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=i}),r)),GC=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=i}),r)),XC=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(c=>{r[c]=i}),r});const t="far"in nd||Ve.autoFetchSvg,n=Pg(HR,(r,o)=>{const i=o[0];let s=o[1];const c=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:c}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:c}),r},{names:{},unicodes:{}});QC=n.names,ZC=n.unicodes,py=Xh(Ve.styleDefault,{family:Ve.familyDefault})};MR(e=>{py=Xh(e.styleDefault,{family:Ve.familyDefault})});JC();function hy(e,t){return(YC[e]||{})[t]}function GR(e,t){return(GC[e]||{})[t]}function Zs(e,t){return(XC[e]||{})[t]}function qC(e){return QC[e]||{prefix:null,iconName:null}}function QR(e){const t=ZC[e],n=hy("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Qa(){return py}const eA=()=>({prefix:null,iconName:null,rest:[]});function ZR(e){let t=or;const n=KC.reduce((r,o)=>(r[o]="".concat(Ve.cssPrefix,"-").concat(o),r),{});return NC.forEach(r=>{(e.includes(n[r])||e.some(o=>VR[r].includes(o)))&&(t=r)}),t}function Xh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=or}=t,r=ER[n][e];if(n===Qh&&!e)return"fad";const o=fx[n][e]||fx[n][r],i=e in oi.styles?e:null;return o||i||null}function XR(e){let t=[],n=null;return e.forEach(r=>{const o=YR(Ve.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function mx(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function Jh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Fv.concat(pR),i=mx(e.filter(h=>o.includes(h))),s=mx(e.filter(h=>!Fv.includes(h))),c=i.filter(h=>(r=h,!MC.includes(h))),[u=null]=c,f=ZR(i),m=Ce(Ce({},XR(s)),{},{prefix:Xh(u,{family:f})});return Ce(Ce(Ce({},m),tP({values:e,family:f,styles:nd,config:Ve,canonical:m,givenPrefix:r})),JR(n,r,m))}function JR(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?qC(o):{},s=Zs(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!nd.far&&nd.fas&&!Ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const qR=NC.filter(e=>e!==or||e!==Qh),eP=Object.keys(Dv).filter(e=>e!==or).map(e=>Object.keys(Dv[e])).flat();function tP(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,c=n===Qh,u=t.includes("fa-duotone")||t.includes("fad"),f=s.familyDefault==="duotone",m=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||f||m)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&qR.includes(n)&&(Object.keys(i).find(v=>eP.includes(v))||s.autoFetchSvg)){const v=iR.get(n).defaultShortPrefixId;r.prefix=v,r.iconName=Zs(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Qa()||"fas"),r}class nP{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]=Ce(Ce({},this.definitions[i]||{}),o[i]),Hv(i,o[i]);const s=uy[or][i];s&&Hv(s,o[i]),JC()})}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:c}=r[o],u=c[2];t[i]||(t[i]={}),u.length>0&&u.forEach(f=>{typeof f=="string"&&(t[i][f]=c)}),t[i][s]=c}),t}}let gx=[],Wc={};const Zc={},rP=Object.keys(Zc);function oP(e,t){let{mixoutsTo:n}=t;return gx=e,Wc={},Object.keys(Zc).forEach(r=>{rP.indexOf(r)===-1&&delete Zc[r]}),gx.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=>{Wc[s]||(Wc[s]=[]),Wc[s].push(i[s])})}r.provides&&r.provides(Zc)}),n}function Vv(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(Wc[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function yl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Wc[e]||[]).forEach(i=>{i.apply(null,n)})}function Za(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Zc[e]?Zc[e].apply(null,t):void 0}function Kv(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Qa();if(t)return t=Zs(n,t)||t,px(tA.definitions,n,t)||px(oi.styles,n,t)}const tA=new nP,iP=()=>{Ve.autoReplaceSvg=!1,Ve.observeMutations=!1,yl("noAuto")},aP={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ji?(yl("beforeI2svg",e),Za("pseudoElements2svg",e),Za("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;Ve.autoReplaceSvg===!1&&(Ve.autoReplaceSvg=!0),Ve.observeMutations=!0,UR(()=>{lP({autoReplaceSvgRoot:t}),yl("watch",e)})}},sP={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Zs(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=Xh(e[0]);return{prefix:n,iconName:Zs(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(Ve.cssPrefix,"-"))>-1||e.match(kR))){const t=Jh(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Qa(),iconName:Zs(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Qa();return{prefix:t,iconName:Zs(t,e)||e}}}},Qr={noAuto:iP,config:Ve,dom:aP,parse:sP,library:tA,findIconDefinition:Kv,toHtml:Ad},lP=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Gt}=e;(Object.keys(oi.styles).length>0||Ve.autoFetchSvg)&&Ji&&Ve.autoReplaceSvg&&Qr.dom.i2svg({node:t})};function qh(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Ad(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Ji)return;const n=Gt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function cP(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(dy(s)&&n.found&&!r.found){const{width:c,height:u}=n,f={x:c/u/2,y:.5};o.style=Zh(Ce(Ce({},i),{},{"transform-origin":"".concat(f.x+s.x/16,"em ").concat(f.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function uP(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(Ve.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ce(Ce({},o),{},{id:s}),children:r}]}]}function my(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:c,maskId:u,titleId:f,extra:m,watchable:h=!1}=e,{width:v,height:w}=n.found?n:t,C=uR.includes(r),A=[Ve.replacementClass,o?"".concat(Ve.cssPrefix,"-").concat(o):""].filter(M=>m.classes.indexOf(M)===-1).filter(M=>M!==""||!!M).concat(m.classes).join(" ");let x={children:[],attributes:Ce(Ce({},m.attributes),{},{"data-prefix":r,"data-icon":o,class:A,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(w)})};const E=C&&!~m.classes.indexOf("fa-fw")?{width:"".concat(v/w*16*.0625,"em")}:{};h&&(x.attributes[vl]=""),c&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||td())},children:[c]}),delete x.attributes.title);const R=Ce(Ce({},x),{},{prefix:r,iconName:o,main:t,mask:n,maskId:u,transform:i,symbol:s,styles:Ce(Ce({},E),m.styles)}),{children:I,attributes:L}=n.found&&t.found?Za("generateAbstractMask",R)||{children:[],attributes:{}}:Za("generateAbstractIcon",R)||{children:[],attributes:{}};return R.children=I,R.attributes=L,s?uP(R):cP(R)}function vx(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:c=!1}=e,u=Ce(Ce(Ce({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});c&&(u[vl]="");const f=Ce({},s.styles);dy(o)&&(f.transform=jR({transform:o,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);const m=Zh(f);m.length>0&&(u.style=m);const h=[];return h.push({tag:"span",attributes:u,children:[t]}),i&&h.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),h}function fP(e){const{content:t,title:n,extra:r}=e,o=Ce(Ce(Ce({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Zh(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:Og}=oi;function Yv(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(Ve.cssPrefix,"-").concat(_g.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(_g.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(_g.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const dP={found:!1,width:512,height:512};function pP(e,t){!jC&&!Ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Gv(e,t){let n=t;return t==="fa"&&Ve.styleDefault!==null&&(t=Qa()),new Promise((r,o)=>{if(n==="fa"){const i=qC(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Og[t]&&Og[t][e]){const i=Og[t][e];return r(Yv(i))}pP(e,t),r(Ce(Ce({},dP),{},{icon:Ve.showMissingIcons&&e?Za("missingIconAbstract")||{}:{}}))})}const yx=()=>{},Qv=Ve.measurePerformance&&Op&&Op.mark&&Op.measure?Op:{mark:yx,measure:yx},zf='FA "6.7.2"',hP=e=>(Qv.mark("".concat(zf," ").concat(e," begins")),()=>nA(e)),nA=e=>{Qv.mark("".concat(zf," ").concat(e," ends")),Qv.measure("".concat(zf," ").concat(e),"".concat(zf," ").concat(e," begins"),"".concat(zf," ").concat(e," ends"))};var gy={begin:hP,end:nA};const Gp=()=>{};function bx(e){return typeof(e.getAttribute?e.getAttribute(vl):null)=="string"}function mP(e){const t=e.getAttribute?e.getAttribute(ly):null,n=e.getAttribute?e.getAttribute(cy):null;return t&&n}function gP(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ve.replacementClass)}function vP(){return Ve.autoReplaceSvg===!0?Qp.replace:Qp[Ve.autoReplaceSvg]||Qp.replace}function yP(e){return Gt.createElementNS("http://www.w3.org/2000/svg",e)}function bP(e){return Gt.createElement(e)}function rA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?yP:bP}=t;if(typeof e=="string")return Gt.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(rA(i,{ceFn:n}))}),r}function xP(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Qp={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(rA(n),t)}),t.getAttribute(vl)===null&&Ve.keepOriginalSource){let n=Gt.createComment(xP(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~fy(t).indexOf(Ve.replacementClass))return Qp.replace(e);const r=new RegExp("".concat(Ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,c)=>(c===Ve.replacementClass||c.match(r)?s.toSvg.push(c):s.toNode.push(c),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=>Ad(i)).join(`
|
|
690
|
-
`);t.setAttribute(
|
|
691
|
-
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function
|
|
692
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tO(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,c=e.flash,u=e.spin,f=e.spinPulse,m=e.spinReverse,h=e.pulse,v=e.fixedWidth,w=e.inverse,C=e.border,A=e.listItem,x=e.flip,E=e.size,R=e.rotation,I=e.pull,L=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":m,"fa-spin-pulse":f,"fa-pulse":h,"fa-fw":v,"fa-inverse":w,"fa-border":C,"fa-li":A,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Hc(t,"fa-".concat(E),typeof E<"u"&&E!==null),Hc(t,"fa-rotate-".concat(R),typeof R<"u"&&R!==null&&R!==0),Hc(t,"fa-pull-".concat(I),typeof I<"u"&&I!==null),Hc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(L).map(function(M){return L[M]?M:null}).filter(function(M){return M})}function nO(e){return e=e-0,e===e}function lA(e){return nO(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var rO=["style"];function oO(e){return e.charAt(0).toUpperCase()+e.slice(1)}function iO(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=lA(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[oO(o)]=i:t[o]=i,t},{})}function cA(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(u){return cA(e,u)}),o=Object.keys(t.attributes||{}).reduce(function(u,f){var m=t.attributes[f];switch(f){case"class":u.attrs.className=m,delete t.attributes.class;break;case"style":u.attrs.style=iO(m);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?u.attrs[f.toLowerCase()]=m:u.attrs[lA(f)]=m}return u},{attrs:{}}),i=n.style,s=i===void 0?{}:i,c=sA(n,rO);return o.attrs.style=Ba(Ba({},o.attrs.style),s),e.apply(void 0,[t.tag,Ba(Ba({},o.attrs),c)].concat(qv(r)))}var uA=!1;try{uA=process.env.NODE_ENV==="production"}catch{}function aO(){if(!uA&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ix(e){if(e&&gh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Jv.icon)return Jv.icon(e);if(e===null)return null;if(e&&gh(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 Mg(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Hc({},e,t):{}}var sO=["forwardedRef"];function ot(e){var t=e.forwardedRef,n=sA(e,sO),r=n.icon,o=n.mask,i=n.symbol,s=n.className,c=n.title,u=n.titleId,f=n.maskId,m=Ix(r),h=Mg("classes",[].concat(qv(tO(n)),qv(s.split(" ")))),v=Mg("transform",typeof n.transform=="string"?Jv.transform(n.transform):n.transform),w=Mg("mask",Ix(o)),C=QP(m,Ba(Ba(Ba(Ba({},h),v),w),{},{symbol:i,title:c,titleId:u,maskId:f}));if(!C)return aO("Could not find icon",m),null;var A=C.abstract,x={ref:t};return Object.keys(n).forEach(function(E){ot.defaultProps.hasOwnProperty(E)||(x[E]=n[E])}),lO(A[0],x)}ot.displayName="FontAwesomeIcon";ot.propTypes={beat:Xe.bool,border:Xe.bool,beatFade:Xe.bool,bounce:Xe.bool,className:Xe.string,fade:Xe.bool,flash:Xe.bool,mask:Xe.oneOfType([Xe.object,Xe.array,Xe.string]),maskId:Xe.string,fixedWidth:Xe.bool,inverse:Xe.bool,flip:Xe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Xe.oneOfType([Xe.object,Xe.array,Xe.string]),listItem:Xe.bool,pull:Xe.oneOf(["right","left"]),pulse:Xe.bool,rotation:Xe.oneOf([0,90,180,270]),shake:Xe.bool,size:Xe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Xe.bool,spinPulse:Xe.bool,spinReverse:Xe.bool,symbol:Xe.oneOfType([Xe.bool,Xe.string]),title:Xe.string,titleId:Xe.string,transform:Xe.oneOfType([Xe.string,Xe.object]),swapOpacity:Xe.bool};ot.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,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};var lO=cA.bind(null,Y.createElement);const cO=async e=>await(await fetch(`${Qi}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),uO=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=qa(),o=async()=>cO({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Dh({queryKey:i,queryFn:o,enabled:n,staleTime:1/0},r),c=()=>{r.prefetchQuery({queryFn:o,queryKey:i,staleTime:1/0})};return{taskDetails:s.data,prefetchQuery:c,...s}},fO=({buttons:e,onButtonClick:t,disabled:n})=>D.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>D.jsx(Ht,{size:"smallCollapse",className:"ml-2",disabled:n,onClick:()=>{t(r)},children:kT[r]},r))});function Mx(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Nv(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Pf(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ng(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 dO(e){return e.matches("html,body")}function Nx(e){return(e==null?void 0:e.ownerDocument)||document}function Zp(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,...Zp(e,o.id,n)])}function pO(e){return"nativeEvent"in e}var hO=typeof document<"u",mO=function(){},t0=hO?Y.useLayoutEffect:mO;const gO={...F},vO=gO.useInsertionEffect,yO=vO||(e=>e());function zc(e){const t=F.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return yO(()=>{t.current=e}),F.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 bO="data-floating-ui-focusable",Lx="active",Dx="selected",xO={...F};let Fx=!1,wO=0;const jx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wO++;function SO(){const[e,t]=F.useState(()=>Fx?jx():void 0);return t0(()=>{e==null&&t(jx())},[]),F.useEffect(()=>{Fx=!0},[]),e}const CO=xO.useId,AO=CO||SO;let n0;process.env.NODE_ENV!=="production"&&(n0=new Set);function EO(){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=n0)!=null&&e.has(o))){var i;(i=n0)==null||i.add(o),console.error(o)}}function kO(){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 TO=F.createContext(null),_O=F.createContext(null),RO=()=>{var e;return((e=F.useContext(TO))==null?void 0:e.id)||null},fA=()=>F.useContext(_O);function PO(e){return"data-floating-ui-"+e}const OO={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},IO={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zx=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 dA(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:h="pointerdown",ancestorScroll:v=!1,bubbles:w,capture:C}=t,A=fA(),x=zc(typeof u=="function"?u:()=>!1),E=typeof u=="function"?x:u,R=F.useRef(!1),{escapeKey:I,outsidePress:L}=zx(w),{escapeKey:M,outsidePress:U}=zx(C),j=F.useRef(!1),W=zc(se=>{var xe;if(!n||!s||!c||se.key!=="Escape"||j.current)return;const Ae=(xe=i.current.floatingContext)==null?void 0:xe.nodeId,Re=A?Zp(A.nodesRef.current,Ae):[];if(!I&&(se.stopPropagation(),Re.length>0)){let Q=!0;if(Re.forEach(Ee=>{var ne;if((ne=Ee.context)!=null&&ne.open&&!Ee.context.dataRef.current.__escapeKeyBubbles){Q=!1;return}}),!Q)return}r(!1,pO(se)?se.nativeEvent:se,"escape-key")}),H=zc(se=>{var xe;const Ae=()=>{var Re;W(se),(Re=Pf(se))==null||Re.removeEventListener("keydown",Ae)};(xe=Pf(se))==null||xe.addEventListener("keydown",Ae)}),G=zc(se=>{var xe;const Ae=i.current.insideReactTree;i.current.insideReactTree=!1;const Re=R.current;if(R.current=!1,f==="click"&&Re||Ae||typeof E=="function"&&!E(se))return;const Q=Pf(se),Ee="["+PO("inert")+"]",ne=Nx(o.floating).querySelectorAll(Ee);let re=nn(Q)?Q:null;for(;re&&!Wi(re);){const de=Vi(re);if(Wi(de)||!nn(de))break;re=de}if(ne.length&&nn(Q)&&!dO(Q)&&!Mx(Q,o.floating)&&Array.from(ne).every(de=>!Mx(re,de)))return;if(Lo(Q)&&ie){const de=Wi(Q),ve=uo(Q),_e=/auto|scroll/,je=de||_e.test(ve.overflowX),ze=de||_e.test(ve.overflowY),Be=je&&Q.clientWidth>0&&Q.scrollWidth>Q.clientWidth,Je=ze&&Q.clientHeight>0&&Q.scrollHeight>Q.clientHeight,ke=ve.direction==="rtl",tt=Je&&(ke?se.offsetX<=Q.offsetWidth-Q.clientWidth:se.offsetX>Q.clientWidth),xt=Be&&se.offsetY>Q.clientHeight;if(tt||xt)return}const ue=(xe=i.current.floatingContext)==null?void 0:xe.nodeId,me=A&&Zp(A.nodesRef.current,ue).some(de=>{var ve;return Ng(se,(ve=de.context)==null?void 0:ve.elements.floating)});if(Ng(se,o.floating)||Ng(se,o.domReference)||me)return;const Te=A?Zp(A.nodesRef.current,ue):[];if(Te.length>0){let de=!0;if(Te.forEach(ve=>{var _e;if((_e=ve.context)!=null&&_e.open&&!ve.context.dataRef.current.__outsidePressBubbles){de=!1;return}}),!de)return}r(!1,se,"outside-press")}),q=zc(se=>{var xe;const Ae=()=>{var Re;G(se),(Re=Pf(se))==null||Re.removeEventListener(f,Ae)};(xe=Pf(se))==null||xe.addEventListener(f,Ae)});F.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=I,i.current.__outsidePressBubbles=L;let se=-1;function xe(ne){r(!1,ne,"ancestor-scroll")}function Ae(){window.clearTimeout(se),j.current=!0}function Re(){se=window.setTimeout(()=>{j.current=!1},Vh()?5:0)}const Q=Nx(o.floating);c&&(Q.addEventListener("keydown",M?H:W,M),Q.addEventListener("compositionstart",Ae),Q.addEventListener("compositionend",Re)),E&&Q.addEventListener(f,U?q:G,U);let Ee=[];return v&&(nn(o.domReference)&&(Ee=Gc(o.domReference)),nn(o.floating)&&(Ee=Ee.concat(Gc(o.floating))),!nn(o.reference)&&o.reference&&o.reference.contextElement&&(Ee=Ee.concat(Gc(o.reference.contextElement)))),Ee=Ee.filter(ne=>{var re;return ne!==((re=Q.defaultView)==null?void 0:re.visualViewport)}),Ee.forEach(ne=>{ne.addEventListener("scroll",xe,{passive:!0})}),()=>{c&&(Q.removeEventListener("keydown",M?H:W,M),Q.removeEventListener("compositionstart",Ae),Q.removeEventListener("compositionend",Re)),E&&Q.removeEventListener(f,U?q:G,U),Ee.forEach(ne=>{ne.removeEventListener("scroll",xe)}),window.clearTimeout(se)}},[i,o,c,E,f,n,r,v,s,I,L,W,M,H,G,U,q]),F.useEffect(()=>{i.current.insideReactTree=!1},[i,E,f]);const pe=F.useMemo(()=>({onKeyDown:W,...m&&{[OO[h]]:se=>{r(!1,se.nativeEvent,"reference-press")},...h!=="click"&&{onClick(se){r(!1,se.nativeEvent,"reference-press")}}}}),[W,r,m,h]),ie=F.useMemo(()=>({onKeyDown:W,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[IO[f]]:()=>{i.current.insideReactTree=!0}}),[W,f,i]);return F.useMemo(()=>s?{reference:pe,floating:ie}:{},[s,pe,ie])}function MO(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=AO(),i=F.useRef({}),[s]=F.useState(()=>kO()),c=RO()!=null;if(process.env.NODE_ENV!=="production"){const w=r.reference;w&&!nn(w)&&EO("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,f]=F.useState(r.reference),m=zc((w,C,A)=>{i.current.openEvent=w?C:void 0,s.emit("openchange",{open:w,event:C,reason:A,nested:c}),n==null||n(w,C,A)}),h=F.useMemo(()=>({setPositionReference:f}),[]),v=F.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return F.useMemo(()=>({dataRef:i,open:t,onOpenChange:m,elements:v,events:s,floatingId:o,refs:h}),[t,m,v,s,o,h])}function pA(e){e===void 0&&(e={});const{nodeId:t}=e,n=MO({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=F.useState(null),[c,u]=F.useState(null),m=(o==null?void 0:o.domReference)||i,h=F.useRef(null),v=fA();t0(()=>{m&&(h.current=m)},[m]);const w=r3({...e,elements:{...o,...c&&{reference:c}}}),C=F.useCallback(I=>{const L=nn(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),getClientRects:()=>I.getClientRects(),contextElement:I}:I;u(L),w.refs.setReference(L)},[w.refs]),A=F.useCallback(I=>{(nn(I)||I===null)&&(h.current=I,s(I)),(nn(w.refs.reference.current)||w.refs.reference.current===null||I!==null&&!nn(I))&&w.refs.setReference(I)},[w.refs]),x=F.useMemo(()=>({...w.refs,setReference:A,setPositionReference:C,domReference:h}),[w.refs,A,C]),E=F.useMemo(()=>({...w.elements,domReference:m}),[w.elements,m]),R=F.useMemo(()=>({...w,...r,refs:x,elements:E,nodeId:t}),[w,x,E,t,r]);return t0(()=>{r.dataRef.current.floatingContext=R;const I=v==null?void 0:v.nodesRef.current.find(L=>L.id===t);I&&(I.context=R)}),F.useMemo(()=>({...w,context:R,refs:x,elements:E}),[w,x,E,R])}function Lg(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Lx]:s,[Dx]:c,...u}=e;i=u}return{...n==="floating"&&{tabIndex:-1,[bO]:""},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(u=>{let[f,m]=u;if(!(o&&[Lx,Dx].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof m=="function"){var h;(h=r.get(f))==null||h.push(m),s[f]=function(){for(var v,w=arguments.length,C=new Array(w),A=0;A<w;A++)C[A]=arguments[A];return(v=r.get(f))==null?void 0:v.map(x=>x(...C)).find(x=>x!==void 0)}}}else s[f]=m}),s),{})}}function hA(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=F.useCallback(c=>Lg(c,e,"reference"),t),i=F.useCallback(c=>Lg(c,e,"floating"),n),s=F.useCallback(c=>Lg(c,e,"item"),r);return F.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const NO={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},LO={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},DO={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},FO={normal:"rounded",pill:"rounded-pill"},jO={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},mA=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:i,className:s,...c})=>{const u=Y.useMemo(()=>DO[t]??"text-white",[t]),f=Y.useMemo(()=>Yc(u,e==="outline"?LO[t]:NO[t],FO[n],jO[r]),[u,e,t,r,n]);return D.jsx("div",{className:Yc("ui-badge flex items-center font-bold",f,s),style:c==null?void 0:c.style,"data-testid":"badge","data-category":e,"data-color":t,...c,children:D.jsx("p",{className:Yc("mx-1",o),children:i})})},zO={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},BO=({transition:e,onClick:t})=>D.jsxs("div",{className:gt("py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",e.disabled&&"opacity-50 cursor-not-allowed hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[D.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),D.jsx(ot,{icon:j3,className:"text-gray-400 size-4"}),D.jsx(mA,{category:"outline",color:e.color,children:e.to})]}),UO=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,c]=Y.useState(!1),{refs:u,floatingStyles:f,context:m}=pA({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:c}),h=dA(m,{outsidePress:!0}),{getReferenceProps:v,getFloatingProps:w}=hA([h]);return D.jsxs(D.Fragment,{children:[D.jsxs("div",{onClick:n!=null&&n.length?()=>c(C=>!C):void 0,ref:u.setReference,className:gt("px-1 uppercase border rounded-sm inline-flex items-center space-x-1 flex-shrink-0 whitespace-nowrap",n.length?"cursor-pointer":"pointer-events-none",zO[t]),...v(),children:[r===Ni.COMMENT&&D.jsx(ot,{icon:o?wC:M3,className:gt("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),D.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?D.jsx(ot,{icon:ay,className:"size-4"}):D.jsx(D.Fragment,{})]}),s&&n.length&&D.jsx("div",{ref:u.setFloating,style:f,className:gt("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...w(),children:n.map(C=>D.jsx(BO,{transition:C,onClick:()=>{i==null||i(C.id),c(!1)}},C.id))})]})},Bx=({description:e})=>{const t=Y.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${$b}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${$b}`),c=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return c==null||c.forEach(u=>{const f=u.getAttribute("src");f&&(new Image().src=f)}),o},[e]);return Y.useEffect(()=>{},[t]),D.jsx("div",{className:"flex flex-col gap-4",children:D.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},$O={SEQUENTIAL:"Sequential"},WO={[Zt.IN_REVIEW]:"In Review"},HO={[Zt.OPEN]:"bg-secondary-500",[Zt.IN_PROGRESS]:"bg-primary-600",[Zt.IN_REVIEW]:"bg-success-600",[Zt.COMPLETED]:"bg-success-600"},VO=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>D.jsx("div",{className:Xf("flex flex-col items-center justify-center",r?"bg-[#FFE600]":HO[t],o&&"cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:D.jsx("span",{className:Xf("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===$O.SEQUENTIAL?`STEP ${n}`:(WO[t]||t).toUpperCase()})}),KO={[Zt.OPEN]:"secondary",[Zt.IN_PROGRESS]:"primary",[Zt.IN_REVIEW]:"success",[Zt.COMPLETED]:"success"},YO=({status:e})=>D.jsx(mA,{category:"outline",color:KO[e],children:e}),Yn={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
585
|
+
}`;function Vy(){const e=$y,t=Uy,n=ue.cssPrefix,r=ue.replacementClass;let o=K_;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 gh=!1;function Ec(){ue.autoAddCss&&!gh&&(z_(Vy()),gh=!0)}var H_={mixout(){return{dom:{css:Vy,insertCss:Ec}}},hooks(){return{beforeDOMElementCreation(){Ec()},beforeI2svg(){Ec()}}}};const er=Mr||{};er[Xn]||(er[Xn]={});er[Xn].styles||(er[Xn].styles={});er[Xn].hooks||(er[Xn].hooks={});er[Xn].shims||(er[Xn].shims=[]);var An=er[Xn];const Yy=[],Qy=function(){$e.removeEventListener("DOMContentLoaded",Qy),tl=1,Yy.map(e=>e())};let tl=!1;ir&&(tl=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),tl||$e.addEventListener("DOMContentLoaded",Qy));function q_(e){ir&&(tl?setTimeout(e,0):Yy.push(e))}function Zs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?qy(e):"<".concat(t," ").concat(U_(n),">").concat(r.map(Zs).join(""),"</").concat(t,">")}function yh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Sc=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,l,c,u;for(r===void 0?(l=1,u=t[i[0]]):(l=0,u=r);l<s;l++)c=i[l],u=a(u,t[c],c,t);return u};function V_(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 zu(e){const t=V_(e);return t.length===1?t[0].toString(16):null}function Y_(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 vh(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 $u(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=vh(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,vh(t)):An.styles[e]=H(H({},An.styles[e]||{}),o),e==="fas"&&$u("fa",t)}const{styles:Ns,shims:Q_}=An,Gy=Object.keys(ad),G_=Gy.reduce((e,t)=>(e[t]=Object.keys(ad[t]),e),{});let ud=null,Zy={},Jy={},Xy={},ev={},tv={};function Z_(e){return~R_.indexOf(e)}function J_(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!Z_(o)?o:null}const nv=()=>{const e=r=>Sc(Ns,(o,i,s)=>(o[s]=Sc(i,r,{}),o),{});Zy=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)),Jy=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),tv=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Ns||ue.autoFetchSvg,n=Sc(Q_,(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:{}});Xy=n.names,ev=n.unicodes,ud=jl(ue.styleDefault,{family:ue.familyDefault})};j_(e=>{ud=jl(e.styleDefault,{family:ue.familyDefault})});nv();function fd(e,t){return(Zy[e]||{})[t]}function X_(e,t){return(Jy[e]||{})[t]}function oo(e,t){return(tv[e]||{})[t]}function rv(e){return Xy[e]||{prefix:null,iconName:null}}function eE(e){const t=ev[e],n=fd("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ir(){return ud}const ov=()=>({prefix:null,iconName:null,rest:[]});function tE(e){let t=xt;const n=Gy.reduce((r,o)=>(r[o]="".concat(ue.cssPrefix,"-").concat(o),r),{});return jy.forEach(r=>{(e.includes(n[r])||e.some(o=>G_[r].includes(o)))&&(t=r)}),t}function jl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=xt}=t,r=O_[n][e];if(n===Dl&&!e)return"fad";const o=mh[n][e]||mh[n][r],i=e in An.styles?e:null;return o||i||null}function nE(e){let t=[],n=null;return e.forEach(r=>{const o=J_(ue.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function bh(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function zl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Iu.concat(v_),i=bh(e.filter(f=>o.includes(f))),s=bh(e.filter(f=>!Iu.includes(f))),a=i.filter(f=>(r=f,!Fy.includes(f))),[l=null]=a,c=tE(i),u=H(H({},nE(s)),{},{prefix:jl(l,{family:c})});return H(H(H({},u),sE({values:e,family:c,styles:Ns,config:ue,canonical:u,givenPrefix:r})),rE(n,r,u))}function rE(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?rv(o):{},s=oo(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Ns.far&&Ns.fas&&!ue.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const oE=jy.filter(e=>e!==xt||e!==Dl),iE=Object.keys(Mu).filter(e=>e!==xt).map(e=>Object.keys(Mu[e])).flat();function sE(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Dl,l=t.includes("fa-duotone")||t.includes("fad"),c=s.familyDefault==="duotone",u=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(l||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&oE.includes(n)&&(Object.keys(i).find(d=>iE.includes(d))||s.autoFetchSvg)){const d=u_.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=oo(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Ir()||"fas"),r}class aE{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]),$u(i,o[i]);const s=ad[xt][i];s&&$u(s,o[i]),nv()})}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],l=a[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=a)}),t[i][s]=a}),t}}let xh=[],si={};const pi={},lE=Object.keys(pi);function cE(e,t){let{mixoutsTo:n}=t;return xh=e,si={},Object.keys(pi).forEach(r=>{lE.indexOf(r)===-1&&delete pi[r]}),xh.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=>{si[s]||(si[s]=[]),si[s].push(i[s])})}r.provides&&r.provides(pi)}),n}function Uu(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(si[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(si[e]||[]).forEach(i=>{i.apply(null,n)})}function Lr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return pi[e]?pi[e].apply(null,t):void 0}function Bu(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ir();if(t)return t=oo(n,t)||t,yh(iv.definitions,n,t)||yh(An.styles,n,t)}const iv=new aE,uE=()=>{ue.autoReplaceSvg=!1,ue.observeMutations=!1,ko("noAuto")},fE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ir?(ko("beforeI2svg",e),Lr("pseudoElements2svg",e),Lr("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;ue.autoReplaceSvg===!1&&(ue.autoReplaceSvg=!0),ue.observeMutations=!0,q_(()=>{pE({autoReplaceSvgRoot:t}),ko("watch",e)})}},dE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:oo(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=jl(e[0]);return{prefix:n,iconName:oo(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ue.cssPrefix,"-"))>-1||e.match(P_))){const t=zl(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ir(),iconName:oo(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Ir();return{prefix:t,iconName:oo(t,e)||e}}}},Wt={noAuto:uE,config:ue,dom:fE,parse:dE,library:iv,findIconDefinition:Bu,toHtml:Zs},pE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(An.styles).length>0||ue.autoFetchSvg)&&ir&&ue.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function $l(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(!ir)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function hE(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(cd(s)&&n.found&&!r.found){const{width:a,height:l}=n,c={x:a/l/2,y:.5};o.style=Fl(H(H({},i),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function mE(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(ue.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:l,titleId:c,extra:u,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,h=m_.includes(r),g=[ue.replacementClass,o?"".concat(ue.cssPrefix,"-").concat(o):""].filter(w=>u.classes.indexOf(w)===-1).filter(w=>w!==""||!!w).concat(u.classes).join(" ");let m={children:[],attributes:H(H({},u.attributes),{},{"data-prefix":r,"data-icon":o,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)})};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};f&&(m.attributes[So]=""),a&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Ts())},children:[a]}),delete m.attributes.title);const v=H(H({},m),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:s,styles:H(H({},y),u.styles)}),{children:b,attributes:A}=n.found&&t.found?Lr("generateAbstractMask",v)||{children:[],attributes:{}}:Lr("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=A,s?mE(v):hE(v)}function wh(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,l=H(H(H({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(l[So]="");const c=H({},s.styles);cd(o)&&(c.transform=W_({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=Fl(c);u.length>0&&(l.style=u);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function gE(e){const{content:t,title:n,extra:r}=e,o=H(H(H({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Fl(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:kc}=An;function Wu(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(ue.cssPrefix,"-").concat(_c.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_c.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_c.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const yE={found:!1,width:512,height:512};function vE(e,t){!By&&!ue.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ku(e,t){let n=t;return t==="fa"&&ue.styleDefault!==null&&(t=Ir()),new Promise((r,o)=>{if(n==="fa"){const i=rv(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const i=kc[t][e];return r(Wu(i))}vE(e,t),r(H(H({},yE),{},{icon:ue.showMissingIcons&&e?Lr("missingIconAbstract")||{}:{}}))})}const Ah=()=>{},Hu=ue.measurePerformance&&va&&va.mark&&va.measure?va:{mark:Ah,measure:Ah},ds='FA "6.7.2"',bE=e=>(Hu.mark("".concat(ds," ").concat(e," begins")),()=>sv(e)),sv=e=>{Hu.mark("".concat(ds," ").concat(e," ends")),Hu.measure("".concat(ds," ").concat(e),"".concat(ds," ").concat(e," begins"),"".concat(ds," ").concat(e," ends"))};var pd={begin:bE,end:sv};const Ra=()=>{};function Ch(e){return typeof(e.getAttribute?e.getAttribute(So):null)=="string"}function xE(e){const t=e.getAttribute?e.getAttribute(id):null,n=e.getAttribute?e.getAttribute(sd):null;return t&&n}function wE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ue.replacementClass)}function AE(){return ue.autoReplaceSvg===!0?Da.replace:Da[ue.autoReplaceSvg]||Da.replace}function CE(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function _E(e){return $e.createElement(e)}function av(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?CE:_E}=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(av(i,{ceFn:n}))}),r}function EE(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(av(n),t)}),t.getAttribute(So)===null&&ue.keepOriginalSource){let n=$e.createComment(EE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~ld(t).indexOf(ue.replacementClass))return Da.replace(e);const r=new RegExp("".concat(ue.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===ue.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(So,""),t.innerHTML=o}};function _h(e){e()}function lv(e,t){const n=typeof t=="function"?t:Ra;if(e.length===0)n();else{let r=_h;ue.mutateApproach===T_&&(r=Mr.requestAnimationFrame||_h),r(()=>{const o=AE(),i=pd.begin("mutate");e.map(o),i(),n()})}}let hd=!1;function cv(){hd=!0}function qu(){hd=!1}let nl=null;function Eh(e){if(!fh||!ue.observeMutations)return;const{treeCallback:t=Ra,nodeCallback:n=Ra,pseudoElementsCallback:r=Ra,observeMutationsRoot:o=$e}=e;nl=new fh(i=>{if(hd)return;const s=Ir();Wi(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Ch(a.addedNodes[0])&&(ue.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&ue.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Ch(a.target)&&~L_.indexOf(a.attributeName))if(a.attributeName==="class"&&xE(a.target)){const{prefix:l,iconName:c}=zl(ld(a.target));a.target.setAttribute(id,l||s),c&&a.target.setAttribute(sd,c)}else wE(a.target)&&n(a.target)})}),ir&&nl.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function SE(){nl&&nl.disconnect()}function kE(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 TE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=zl(ld(e));return o.prefix||(o.prefix=Ir()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=X_(o.prefix,e.innerText)||fd(o.prefix,zu(e.innerText))),!o.iconName&&ue.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function NE(e){const t=Wi(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 ue.autoA11y&&(n?t["aria-labelledby"]="".concat(ue.replacementClass,"-title-").concat(r||Ts()):(t["aria-hidden"]="true",t.focusable="false")),t}function OE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:wn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Sh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=TE(e),i=NE(e),s=Uu("parseNodeAttributes",{},e);let a=t.styleParser?kE(e):[];return H({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:wn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:PE}=An;function uv(e){const t=ue.autoReplaceSvg==="nest"?Sh(e,{styleParser:!1}):Sh(e);return~t.extra.classes.indexOf(Ky)?Lr("generateLayersText",e,t):Lr("generateSvgReplacementMutation",e,t)}function ME(){return[...d_,...Iu]}function kh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ir)return Promise.resolve();const n=$e.documentElement.classList,r=u=>n.add("".concat(hh,"-").concat(u)),o=u=>n.remove("".concat(hh,"-").concat(u)),i=ue.autoFetchSvg?ME():Fy.concat(Object.keys(PE));i.includes("fa")||i.push("fa");const s=[".".concat(Ky,":not([").concat(So,"])")].concat(i.map(u=>".".concat(u,":not([").concat(So,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=Wi(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const l=pd.begin("onTree"),c=a.reduce((u,f)=>{try{const d=uv(f);d&&u.push(d)}catch(d){By||d.name==="MissingIcon"&&console.error(d)}return u},[]);return new Promise((u,f)=>{Promise.all(c).then(d=>{lv(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),u()})}).catch(d=>{l(),f(d)})})}function IE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;uv(e).then(n=>{n&&lv([n],t)})}function LE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Bu(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Bu(o||{})),e(r,H(H({},n),{},{mask:o}))}}const RE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=wn,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:p}=e;return $l(H({type:"icon"},e),()=>(ko("beforeDOMElementCreation",{iconDefinition:e,params:t}),ue.autoA11y&&(s?c["aria-labelledby"]="".concat(ue.replacementClass,"-title-").concat(a||Ts()):(c["aria-hidden"]="true",c.focusable="false")),dd({icons:{main:Wu(p),mask:o?Wu(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:H(H({},wn),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:c,styles:u,classes:l}})))};var DE={mixout(){return{icon:LE(RE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=kh,e.nodeCallback=IE,e}}},provides(e){e.i2svg=function(t){const{node:n=$e,callback:r=()=>{}}=t;return kh(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:l,mask:c,maskId:u,extra:f}=n;return new Promise((d,p)=>{Promise.all([Ku(r,s),c.iconName?Ku(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[g,m]=h;d([t,dd({icons:{main:g,mask:m},prefix:s,iconName:r,transform:a,symbol:l,maskId:u,title:o,titleId:i,extra:f,watchable:!0})])}).catch(p)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=Fl(s);a.length>0&&(r.style=a);let l;return cd(i)&&(l=Lr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},FE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return $l({type:"layer"},()=>{ko("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(ue.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},jE={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 $l({type:"counter",content:e},()=>(ko("beforeDOMElementCreation",{content:e,params:t}),gE({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(ue.cssPrefix,"-layers-counter"),...r]}})))}}}},zE={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=wn,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return $l({type:"text",content:e},()=>(ko("beforeDOMElementCreation",{content:e,params:t}),wh({content:e,transform:H(H({},wn),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(ue.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(Ry){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();s=c.width/l,a=c.height/l}return ue.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,wh({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const $E=new RegExp('"',"ug"),Th=[1105920,1112319],Nh=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),c_),S_),b_),Vu=Object.keys(Nh).reduce((e,t)=>(e[t.toLowerCase()]=Nh[t],e),{}),UE=Object.keys(Vu).reduce((e,t)=>{const n=Vu[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function BE(e){const t=e.replace($E,""),n=Y_(t,0),r=n>=Th[0]&&n<=Th[1],o=t.length===2?t[0]===t[1]:!1;return{value:zu(o?t[0]:t),isSecondary:r||o}}function WE(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Vu[n]||{})[o]||UE[n]}function Oh(e,t){const n="".concat(k_).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Wi(e.children).filter(d=>d.getAttribute(Ru)===t)[0],a=Mr.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),c=l.match(M_),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!c)return e.removeChild(s),r();if(c&&f!=="none"&&f!==""){const d=a.getPropertyValue("content");let p=WE(l,u);const{value:h,isSecondary:g}=BE(d),m=c[0].startsWith("FontAwesome");let y=fd(p,h),v=y;if(m){const b=eE(h);b.iconName&&b.prefix&&(y=b.iconName,p=b.prefix)}if(y&&!g&&(!s||s.getAttribute(id)!==p||s.getAttribute(sd)!==v)){e.setAttribute(n,v),s&&e.removeChild(s);const b=OE(),{extra:A}=b;A.attributes[Ru]=t,Ku(y,p).then(w=>{const _=dd(H(H({},b),{},{icons:{main:w,mask:ov()},prefix:p,iconName:v,extra:A,watchable:!0})),E=$e.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=_.map(S=>Zs(S)).join(`
|
|
587
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function KE(e){return Promise.all([Oh(e,"::before"),Oh(e,"::after")])}function HE(e){return e.parentNode!==document.head&&!~N_.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ru)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ph(e){if(ir)return new Promise((t,n)=>{const r=Wi(e.querySelectorAll("*")).filter(HE).map(KE),o=pd.begin("searchPseudoElements");cv(),Promise.all(r).then(()=>{o(),qu(),t()}).catch(()=>{o(),qu(),n()})})}var qE={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Ph,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=$e}=t;ue.searchPseudoElements&&Ph(n)}}};let Mh=!1;var VE={mixout(){return{dom:{unwatch(){cv(),Mh=!0}}}},hooks(){return{bootstrap(){Eh(Uu("mutationObserverCallbacks",{}))},noAuto(){SE()},watch(e){const{observeMutationsRoot:t}=e;Mh?qu():Eh(Uu("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Ih=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 YE={mixout(){return{parse:{transform:e=>Ih(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ih(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,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(a," ").concat(l," ").concat(c)},f={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:u,path:f};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 Tc={x:0,y:0,width:"100%",height:"100%"};function Lh(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 QE(e){return e.tag==="g"?e.children:[e]}var GE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?zl(n.split(" ").map(o=>o.trim())):ov();return r.prefix||(r.prefix=Ir()),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:l,icon:c}=o,{width:u,icon:f}=i,d=B_({transform:a,containerWidth:u,iconWidth:l}),p={tag:"rect",attributes:H(H({},Tc),{},{fill:"white"})},h=c.children?{children:c.children.map(Lh)}:{},g={tag:"g",attributes:H({},d.inner),children:[Lh(H({tag:c.tag,attributes:H(H({},c.attributes),d.path)},h))]},m={tag:"g",attributes:H({},d.outer),children:[g]},y="mask-".concat(s||Ts()),v="clip-".concat(s||Ts()),b={tag:"mask",attributes:H(H({},Tc),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,m]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:QE(f)},b]};return n.push(A,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},Tc)}),{children:n,attributes:r}}}},ZE={provides(e){let t=!1;Mr.matchMedia&&(t=Mr.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}}}},JE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},XE=[H_,DE,FE,jE,zE,qE,VE,YE,GE,ZE,JE];cE(XE,{mixoutsTo:Wt});Wt.noAuto;Wt.config;Wt.library;Wt.dom;const Yu=Wt.parse;Wt.findIconDefinition;Wt.toHtml;const e4=Wt.icon;Wt.layer;Wt.text;Wt.counter;function Rh(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 _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rl(e){"@babel/helpers - typeof";return rl=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},rl(e)}function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fv(e,t){if(e==null)return{};var n=t4(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qu(e){return n4(e)||r4(e)||o4(e)||i4()}function n4(e){if(Array.isArray(e))return Gu(e)}function r4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o4(e,t){if(e){if(typeof e=="string")return Gu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gu(e,t)}}function Gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
588
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s4(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,y=e.size,v=e.rotation,b=e.pull,A=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":m===!0,"fa-flip-horizontal":m==="horizontal"||m==="both","fa-flip-vertical":m==="vertical"||m==="both"},ai(t,"fa-".concat(y),typeof y<"u"&&y!==null),ai(t,"fa-rotate-".concat(v),typeof v<"u"&&v!==null&&v!==0),ai(t,"fa-pull-".concat(b),typeof b<"u"&&b!==null),ai(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(A).map(function(w){return A[w]?w:null}).filter(function(w){return w})}function a4(e){return e=e-0,e===e}function dv(e){return a4(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var l4=["style"];function c4(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u4(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=dv(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[c4(o)]=i:t[o]=i,t},{})}function pv(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(l){return pv(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var u=t.attributes[c];switch(c){case"class":l.attrs.className=u,delete t.attributes.class;break;case"style":l.attrs.style=u4(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[dv(c)]=u}return l},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=fv(n,l4);return o.attrs.style=_r(_r({},o.attrs.style),s),e.apply(void 0,[t.tag,_r(_r({},o.attrs),a)].concat(Qu(r)))}var hv=!1;try{hv=process.env.NODE_ENV==="production"}catch{}function f4(){if(!hv&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Dh(e){if(e&&rl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Yu.icon)return Yu.icon(e);if(e===null)return null;if(e&&rl(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 Nc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ai({},e,t):{}}var d4=["forwardedRef"];function ve(e){var t=e.forwardedRef,n=fv(e,d4),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,l=n.titleId,c=n.maskId,u=Dh(r),f=Nc("classes",[].concat(Qu(s4(n)),Qu(s.split(" ")))),d=Nc("transform",typeof n.transform=="string"?Yu.transform(n.transform):n.transform),p=Nc("mask",Dh(o)),h=e4(u,_r(_r(_r(_r({},f),d),p),{},{symbol:i,title:a,titleId:l,maskId:c}));if(!h)return f4("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach(function(y){ve.defaultProps.hasOwnProperty(y)||(m[y]=n[y])}),p4(g[0],m)}ve.displayName="FontAwesomeIcon";ve.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]),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};ve.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,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};var p4=pv.bind(null,T.createElement);const h4=async e=>await(await fetch(`${nr}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),m4=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=Fr(),o=async()=>h4({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Cl({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}},g4=({buttons:e,onButtonClick:t,disabled:n})=>x.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>x.jsx(je,{size:"smallCollapse",className:"ml-2",disabled:n,onClick:()=>{t(r)},children:Pw[r]},r))});function Fh(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ou(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function rs(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Oc(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 y4(e){return e.matches("html,body")}function jh(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 v4(e){return"nativeEvent"in e}var b4=typeof document<"u",x4=function(){},Zu=b4?T.useLayoutEffect:x4;const w4={...C},A4=w4.useInsertionEffect,C4=A4||(e=>e());function ni(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return C4(()=>{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 _4="data-floating-ui-focusable",zh="active",$h="selected",E4={...C};let Uh=!1,S4=0;const Bh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+S4++;function k4(){const[e,t]=C.useState(()=>Uh?Bh():void 0);return Zu(()=>{e==null&&t(Bh())},[]),C.useEffect(()=>{Uh=!0},[]),e}const T4=E4.useId,N4=T4||k4;let Ju;process.env.NODE_ENV!=="production"&&(Ju=new Set);function O4(){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=Ju)!=null&&e.has(o))){var i;(i=Ju)==null||i.add(o),console.error(o)}}function P4(){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 M4=C.createContext(null),I4=C.createContext(null),L4=()=>{var e;return((e=C.useContext(M4))==null?void 0:e.id)||null},mv=()=>C.useContext(I4);function R4(e){return"data-floating-ui-"+e}const D4={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},F4={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Wh=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 gv(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,g=mv(),m=ni(typeof l=="function"?l:()=>!1),y=typeof l=="function"?m:l,v=C.useRef(!1),{escapeKey:b,outsidePress:A}=Wh(p),{escapeKey:w,outsidePress:_}=Wh(h),E=C.useRef(!1),S=ni(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,v4(z)?z.nativeEvent:z,"escape-key")}),O=ni(z=>{var Y;const Q=()=>{var oe;S(z),(oe=rs(z))==null||oe.removeEventListener("keydown",Q)};(Y=rs(z))==null||Y.addEventListener("keydown",Q)}),P=ni(z=>{var Y;const Q=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=v.current;if(v.current=!1,c==="click"&&oe||Q||typeof y=="function"&&!y(z))return;const M=rs(z),re="["+R4("inert")+"]",L=jh(o.floating).querySelectorAll(re);let F=He(M)?M:null;for(;F&&!Gn(F);){const V=Jn(F);if(Gn(V)||!He(V))break;F=V}if(L.length&&He(M)&&!y4(M)&&!Fh(M,o.floating)&&Array.from(L).every(V=>!Fh(F,V)))return;if(cn(M)&&j){const V=Gn(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 Oc(z,(ee=V.context)==null?void 0:ee.elements.floating)});if(Oc(z,o.floating)||Oc(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=ni(z=>{var Y;const Q=()=>{var oe;P(z),(oe=rs(z))==null||oe.removeEventListener(c,Q)};(Y=rs(z))==null||Y.addEventListener(c,Q)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=b,i.current.__outsidePressBubbles=A;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},Ml()?5:0)}const M=jh(o.floating);a&&(M.addEventListener("keydown",w?O:S,w),M.addEventListener("compositionstart",Q),M.addEventListener("compositionend",oe)),y&&M.addEventListener(c,_?I:P,_);let re=[];return d&&(He(o.domReference)&&(re=fi(o.domReference)),He(o.floating)&&(re=re.concat(fi(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(fi(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",w?O:S,w),M.removeEventListener("compositionstart",Q),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(c,_?I:P,_),re.forEach(L=>{L.removeEventListener("scroll",Y)}),window.clearTimeout(z)}},[i,o,a,y,c,n,r,d,s,b,A,S,w,O,P,_,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,c]);const W=C.useMemo(()=>({onKeyDown:S,...u&&{[D4[f]]:z=>{r(!1,z.nativeEvent,"reference-press")},...f!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[S,r,u,f]),j=C.useMemo(()=>({onKeyDown:S,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[F4[c]]:()=>{i.current.insideReactTree=!0}}),[S,c,i]);return C.useMemo(()=>s?{reference:W,floating:j}:{},[s,W,j])}function j4(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=N4(),i=C.useRef({}),[s]=C.useState(()=>P4()),a=L4()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!He(p)&&O4("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=C.useState(r.reference),u=ni((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)}),f=C.useMemo(()=>({setPositionReference:c}),[]),d=C.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:d,events:s,floatingId:o,refs:f}),[t,u,d,s,o,f])}function yv(e){e===void 0&&(e={});const{nodeId:t}=e,n=j4({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,l]=C.useState(null),u=(o==null?void 0:o.domReference)||i,f=C.useRef(null),d=mv();Zu(()=>{u&&(f.current=u)},[u]);const p=lC({...e,elements:{...o,...a&&{reference:a}}}),h=C.useCallback(b=>{const A=He(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;l(A),p.refs.setReference(A)},[p.refs]),g=C.useCallback(b=>{(He(b)||b===null)&&(f.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:f}),[p.refs,g,h]),y=C.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=C.useMemo(()=>({...p,...r,refs:m,elements:y,nodeId:t}),[p,m,y,t,r]);return Zu(()=>{r.dataRef.current.floatingContext=v;const b=d==null?void 0:d.nodesRef.current.find(A=>A.id===t);b&&(b.context=v)}),C.useMemo(()=>({...p,context:v,refs:m,elements:y}),[p,m,y,v])}function Pc(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[zh]:s,[$h]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[_4]:""},...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(l=>{let[c,u]=l;if(!(o&&[zh,$h].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var f;(f=r.get(c))==null||f.push(u),s[c]=function(){for(var d,p=arguments.length,h=new Array(p),g=0;g<p;g++)h[g]=arguments[g];return(d=r.get(c))==null?void 0:d.map(m=>m(...h)).find(m=>m!==void 0)}}}else s[c]=u}),s),{})}}function vv(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=>Pc(a,e,"reference"),t),i=C.useCallback(a=>Pc(a,e,"floating"),n),s=C.useCallback(a=>Pc(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const z4={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},$4={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},U4={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},B4={normal:"rounded",pill:"rounded-pill"},W4={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},bv=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:i,className:s,...a})=>{const l=T.useMemo(()=>U4[t]??"text-white",[t]),c=T.useMemo(()=>ui(l,e==="outline"?$4[t]:z4[t],B4[n],W4[r]),[l,e,t,r,n]);return x.jsx("div",{className:ui("ui-badge flex items-center font-bold",c,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:x.jsx("p",{className:ui("mx-1",o),children:i})})},K4={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},H4=({transition:e,onClick:t})=>x.jsxs("div",{className:Ee("py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",e.disabled&&"opacity-50 cursor-not-allowed hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[x.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),x.jsx(ve,{icon:WC,className:"text-gray-400 size-4"}),x.jsx(bv,{category:"outline",color:e.color,children:e.to})]}),q4=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=T.useState(!1),{refs:l,floatingStyles:c,context:u}=yv({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),f=gv(u,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:p}=vv([f]);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{onClick:n!=null&&n.length?()=>a(h=>!h):void 0,ref:l.setReference,className:Ee("px-1 uppercase border rounded-sm inline-flex items-center space-x-1 flex-shrink-0 whitespace-nowrap",n.length?"cursor-pointer":"pointer-events-none",K4[t]),...d(),children:[r===Un.COMMENT&&x.jsx(ve,{icon:o?Ey:jC,className:Ee("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),x.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?x.jsx(ve,{icon:rd,className:"size-4"}):x.jsx(x.Fragment,{})]}),s&&n.length&&x.jsx("div",{ref:l.setFloating,style:c,className:Ee("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...p(),children:n.map(h=>x.jsx(H4,{transition:h,onClick:()=>{i==null||i(h.id),a(!1)}},h.id))})]})},Kh=({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(l=>{const c=l.getAttribute("src");c&&(new Image().src=c)}),o},[e]);return T.useEffect(()=>{},[t]),x.jsx("div",{className:"flex flex-col gap-4",children:x.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},V4={SEQUENTIAL:"Sequential"},Y4={[Be.IN_REVIEW]:"In Review"},Q4={[Be.OPEN]:"bg-secondary-500",[Be.IN_PROGRESS]:"bg-primary-600",[Be.IN_REVIEW]:"bg-success-600",[Be.COMPLETED]:"bg-success-600"},G4=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>x.jsx("div",{className:_s("flex flex-col items-center justify-center",r?"bg-[#FFE600]":Q4[t],o&&"cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:x.jsx("span",{className:_s("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===V4.SEQUENTIAL?`STEP ${n}`:(Y4[t]||t).toUpperCase()})}),Z4={[Be.OPEN]:"secondary",[Be.IN_PROGRESS]:"primary",[Be.IN_REVIEW]:"success",[Be.COMPLETED]:"success"},J4=({status:e})=>x.jsx(bv,{category:"outline",color:Z4[e],children:e}),dt={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
693
589
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
694
590
|
* License - https://fontawesome.com/license (Commercial License)
|
|
695
591
|
* Copyright 2024 Fonticons, Inc.
|
|
696
|
-
*/const GO={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"]},QO={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"]},ZO={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"]},XO={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"]},JO={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"]},qO={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"]},eI={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"]},tI={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"]},nI={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"]},rI={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"]},oI={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"]},iI={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"]},aI={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"]},sI={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"]},Ux=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var s,c;const o=n>0,i={[Yn.INFO]:{icon:k3,color:"text-primary-600 hover:text-primary-600"},[Yn.WARNING]:{icon:G3,color:"text-warning-600 hover:text-warning-600"},[Yn.DANGER]:{icon:Gh,color:"text-danger-600 hover:text-danger-600"},[Yn.SUCCESS]:{icon:kC,color:"text-success-600 hover:text-success-600"}};return D.jsxs(Ht,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:t,className:gt("relative",(s=i[r])==null?void 0:s.color),title:"View comments",children:[D.jsx("div",{className:"relative flex items-center justify-center",children:o?D.jsxs(D.Fragment,{children:[D.jsx(ot,{icon:E3,size:"lg"}),D.jsx(ot,{icon:(c=i[r])==null?void 0:c.icon,className:"font-bold absolute left-1/2 -translate-x-1/2 top-0.5",size:"xs",color:"white"})]}):D.jsx(ot,{icon:GO,size:"lg"})}),o&&D.jsx("span",{className:"absolute top-0.5 -right-0 flex h-3 w-3 items-center justify-center rounded-full bg-primary-600 text-[10px] text-white",children:n})]})},lI=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:gA,setPrototypeOf:$x,isFrozen:cI,getPrototypeOf:uI,getOwnPropertyDescriptor:fI}=Object;let{freeze:Cr,seal:fo,create:r0}=Object,{apply:o0,construct:i0}=typeof Reflect<"u"&&Reflect;Cr||(Cr=function(t){return t});fo||(fo=function(t){return t});o0||(o0=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)});i0||(i0=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 Mp=Ar(Array.prototype.forEach),dI=Ar(Array.prototype.lastIndexOf),Wx=Ar(Array.prototype.pop),Of=Ar(Array.prototype.push),pI=Ar(Array.prototype.splice),Xp=Ar(String.prototype.toLowerCase),Dg=Ar(String.prototype.toString),Fg=Ar(String.prototype.match),If=Ar(String.prototype.replace),hI=Ar(String.prototype.indexOf),mI=Ar(String.prototype.trim),_o=Ar(Object.prototype.hasOwnProperty),vr=Ar(RegExp.prototype.test),Mf=gI(TypeError);function Ar(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 o0(e,t,r)}}function gI(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i0(e,n)}}function ft(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xp;$x&&$x(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(cI(t)||(t[r]=i),o=i)}e[o]=!0}return e}function vI(e){for(let t=0;t<e.length;t++)_o(e,t)||(e[t]=null);return e}function Zo(e){const t=r0(null);for(const[n,r]of gA(e))_o(e,n)&&(Array.isArray(r)?t[n]=vI(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Zo(r):t[n]=r);return t}function Nf(e,t){for(;e!==null;){const r=fI(e,t);if(r){if(r.get)return Ar(r.get);if(typeof r.value=="function")return Ar(r.value)}e=uI(e)}function n(){return null}return n}const Hx=Cr(["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"]),jg=Cr(["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"]),zg=Cr(["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"]),yI=Cr(["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"]),Bg=Cr(["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"]),bI=Cr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vx=Cr(["#text"]),Kx=Cr(["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"]),Ug=Cr(["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"]),Yx=Cr(["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"]),Np=Cr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xI=fo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wI=fo(/<%[\w\W]*|[\w\W]*%>/gm),SI=fo(/\$\{[\w\W]*/gm),CI=fo(/^data-[\-\w.\u00B7-\uFFFF]+$/),AI=fo(/^aria-[\-\w]+$/),vA=fo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),EI=fo(/^(?:\w+script|data):/i),kI=fo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yA=fo(/^html$/i),TI=fo(/^[a-z][.\w]*(-[.\w]+)+$/i);var Gx=Object.freeze({__proto__:null,ARIA_ATTR:AI,ATTR_WHITESPACE:kI,CUSTOM_ELEMENT:TI,DATA_ATTR:CI,DOCTYPE_NAME:yA,ERB_EXPR:wI,IS_ALLOWED_URI:vA,IS_SCRIPT_OR_DATA:EI,MUSTACHE_EXPR:xI,TMPLIT_EXPR:SI});const Lf={element:1,text:3,progressingInstruction:7,comment:8,document:9},_I=function(){return typeof window>"u"?null:window},RI=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}},Qx=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bA(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_I();const t=De=>bA(De);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Lf.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:f,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:w}=e,C=u.prototype,A=Nf(C,"cloneNode"),x=Nf(C,"remove"),E=Nf(C,"nextSibling"),R=Nf(C,"childNodes"),I=Nf(C,"parentNode");if(typeof s=="function"){const De=n.createElement("template");De.content&&De.content.ownerDocument&&(n=De.content.ownerDocument)}let L,M="";const{implementation:U,createNodeIterator:j,createDocumentFragment:W,getElementsByTagName:H}=n,{importNode:G}=r;let q=Qx();t.isSupported=typeof gA=="function"&&typeof I=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:ie,TMPLIT_EXPR:se,DATA_ATTR:xe,ARIA_ATTR:Ae,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:Ee}=Gx;let{IS_ALLOWED_URI:ne}=Gx,re=null;const ue=ft({},[...Hx,...jg,...zg,...Bg,...Vx]);let me=null;const Te=ft({},[...Kx,...Ug,...Yx,...Np]);let de=Object.seal(r0(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}})),ve=null,_e=null;const je=Object.seal(r0(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ze=!0,Be=!0,Je=!1,ke=!0,tt=!1,xt=!0,zt=!1,xn=!1,kr=!1,Vt=!1,un=!1,wn=!1,Ne=!0,nt=!1;const ct="user-content-";let ut=!0,Dt=!1,Jt={},Kt=null;const wt=ft({},["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 Qn=null;const qt=ft({},["audio","video","img","source","image","track"]);let Zn=null;const Sn=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cn="http://www.w3.org/1998/Math/MathML",Xn="http://www.w3.org/2000/svg",fn="http://www.w3.org/1999/xhtml";let dn=fn,Fr=!1,Zr=null;const an=ft({},[Cn,Xn,fn],Dg);let pn=ft({},["mi","mo","mn","ms","mtext"]),Dn=ft({},["annotation-xml"]);const dt=ft({},["title","style","font","a","script"]);let An=null;const Xr=["application/xhtml+xml","text/html"],jr="text/html";let vt=null,Fn=null;const ar=n.createElement("form"),Yt=function(K){return K instanceof RegExp||K instanceof Function},zr=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fn&&Fn===K)){if((!K||typeof K!="object")&&(K={}),K=Zo(K),An=Xr.indexOf(K.PARSER_MEDIA_TYPE)===-1?jr:K.PARSER_MEDIA_TYPE,vt=An==="application/xhtml+xml"?Dg:Xp,re=_o(K,"ALLOWED_TAGS")?ft({},K.ALLOWED_TAGS,vt):ue,me=_o(K,"ALLOWED_ATTR")?ft({},K.ALLOWED_ATTR,vt):Te,Zr=_o(K,"ALLOWED_NAMESPACES")?ft({},K.ALLOWED_NAMESPACES,Dg):an,Zn=_o(K,"ADD_URI_SAFE_ATTR")?ft(Zo(Sn),K.ADD_URI_SAFE_ATTR,vt):Sn,Qn=_o(K,"ADD_DATA_URI_TAGS")?ft(Zo(qt),K.ADD_DATA_URI_TAGS,vt):qt,Kt=_o(K,"FORBID_CONTENTS")?ft({},K.FORBID_CONTENTS,vt):wt,ve=_o(K,"FORBID_TAGS")?ft({},K.FORBID_TAGS,vt):Zo({}),_e=_o(K,"FORBID_ATTR")?ft({},K.FORBID_ATTR,vt):Zo({}),Jt=_o(K,"USE_PROFILES")?K.USE_PROFILES:!1,ze=K.ALLOW_ARIA_ATTR!==!1,Be=K.ALLOW_DATA_ATTR!==!1,Je=K.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,tt=K.SAFE_FOR_TEMPLATES||!1,xt=K.SAFE_FOR_XML!==!1,zt=K.WHOLE_DOCUMENT||!1,Vt=K.RETURN_DOM||!1,un=K.RETURN_DOM_FRAGMENT||!1,wn=K.RETURN_TRUSTED_TYPE||!1,kr=K.FORCE_BODY||!1,Ne=K.SANITIZE_DOM!==!1,nt=K.SANITIZE_NAMED_PROPS||!1,ut=K.KEEP_CONTENT!==!1,Dt=K.IN_PLACE||!1,ne=K.ALLOWED_URI_REGEXP||vA,dn=K.NAMESPACE||fn,pn=K.MATHML_TEXT_INTEGRATION_POINTS||pn,Dn=K.HTML_INTEGRATION_POINTS||Dn,de=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&Yt(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(de.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&Yt(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(de.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tt&&(Be=!1),un&&(Vt=!0),Jt&&(re=ft({},Vx),me=[],Jt.html===!0&&(ft(re,Hx),ft(me,Kx)),Jt.svg===!0&&(ft(re,jg),ft(me,Ug),ft(me,Np)),Jt.svgFilters===!0&&(ft(re,zg),ft(me,Ug),ft(me,Np)),Jt.mathMl===!0&&(ft(re,Bg),ft(me,Yx),ft(me,Np))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?je.tagCheck=K.ADD_TAGS:(re===ue&&(re=Zo(re)),ft(re,K.ADD_TAGS,vt))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?je.attributeCheck=K.ADD_ATTR:(me===Te&&(me=Zo(me)),ft(me,K.ADD_ATTR,vt))),K.ADD_URI_SAFE_ATTR&&ft(Zn,K.ADD_URI_SAFE_ATTR,vt),K.FORBID_CONTENTS&&(Kt===wt&&(Kt=Zo(Kt)),ft(Kt,K.FORBID_CONTENTS,vt)),K.ADD_FORBID_CONTENTS&&(Kt===wt&&(Kt=Zo(Kt)),ft(Kt,K.ADD_FORBID_CONTENTS,vt)),ut&&(re["#text"]=!0),zt&&ft(re,["html","head","body"]),re.table&&(ft(re,["tbody"]),delete ve.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw Mf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Mf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=K.TRUSTED_TYPES_POLICY,M=L.createHTML("")}else L===void 0&&(L=RI(w,o)),L!==null&&typeof M=="string"&&(M=L.createHTML(""));Cr&&Cr(K),Fn=K}},Jr=ft({},[...jg,...zg,...yI]),vo=ft({},[...Bg,...bI]),$t=function(K){let he=I(K);(!he||!he.tagName)&&(he={namespaceURI:dn,tagName:"template"});const Fe=Xp(K.tagName),St=Xp(he.tagName);return Zr[K.namespaceURI]?K.namespaceURI===Xn?he.namespaceURI===fn?Fe==="svg":he.namespaceURI===Cn?Fe==="svg"&&(St==="annotation-xml"||pn[St]):!!Jr[Fe]:K.namespaceURI===Cn?he.namespaceURI===fn?Fe==="math":he.namespaceURI===Xn?Fe==="math"&&Dn[St]:!!vo[Fe]:K.namespaceURI===fn?he.namespaceURI===Xn&&!Dn[St]||he.namespaceURI===Cn&&!pn[St]?!1:!vo[Fe]&&(dt[Fe]||!Jr[Fe]):!!(An==="application/xhtml+xml"&&Zr[K.namespaceURI]):!1},sn=function(K){Of(t.removed,{element:K});try{I(K).removeChild(K)}catch{x(K)}},sr=function(K,he){try{Of(t.removed,{attribute:he.getAttributeNode(K),from:he})}catch{Of(t.removed,{attribute:null,from:he})}if(he.removeAttribute(K),K==="is")if(Vt||un)try{sn(he)}catch{}else try{he.setAttribute(K,"")}catch{}},zo=function(K){let he=null,Fe=null;if(kr)K="<remove></remove>"+K;else{const qe=Fg(K,/^[\r\n\t ]+/);Fe=qe&&qe[0]}An==="application/xhtml+xml"&&dn===fn&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const St=L?L.createHTML(K):K;if(dn===fn)try{he=new v().parseFromString(St,An)}catch{}if(!he||!he.documentElement){he=U.createDocument(dn,"template",null);try{he.documentElement.innerHTML=Fr?M:St}catch{}}const kt=he.body||he.documentElement;return K&&Fe&&kt.insertBefore(n.createTextNode(Fe),kt.childNodes[0]||null),dn===fn?H.call(he,zt?"html":"body")[0]:zt?he.documentElement:kt},jn=function(K){return j.call(K.ownerDocument||K,K,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Br=function(K){return K instanceof h&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof m)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},Ur=function(K){return typeof c=="function"&&K instanceof c};function en(De,K,he){Mp(De,Fe=>{Fe.call(t,K,he,Fn)})}const ln=function(K){let he=null;if(en(q.beforeSanitizeElements,K,null),Br(K))return sn(K),!0;const Fe=vt(K.nodeName);if(en(q.uponSanitizeElement,K,{tagName:Fe,allowedTags:re}),xt&&K.hasChildNodes()&&!Ur(K.firstElementChild)&&vr(/<[/\w!]/g,K.innerHTML)&&vr(/<[/\w!]/g,K.textContent)||K.nodeType===Lf.progressingInstruction||xt&&K.nodeType===Lf.comment&&vr(/<[/\w]/g,K.data))return sn(K),!0;if(!(je.tagCheck instanceof Function&&je.tagCheck(Fe))&&(!re[Fe]||ve[Fe])){if(!ve[Fe]&&$r(Fe)&&(de.tagNameCheck instanceof RegExp&&vr(de.tagNameCheck,Fe)||de.tagNameCheck instanceof Function&&de.tagNameCheck(Fe)))return!1;if(ut&&!Kt[Fe]){const St=I(K)||K.parentNode,kt=R(K)||K.childNodes;if(kt&&St){const qe=kt.length;for(let It=qe-1;It>=0;--It){const Qt=A(kt[It],!0);Qt.__removalCount=(K.__removalCount||0)+1,St.insertBefore(Qt,E(K))}}}return sn(K),!0}return K instanceof u&&!$t(K)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&vr(/<\/no(script|embed|frames)/i,K.innerHTML)?(sn(K),!0):(tt&&K.nodeType===Lf.text&&(he=K.textContent,Mp([pe,ie,se],St=>{he=If(he,St," ")}),K.textContent!==he&&(Of(t.removed,{element:K.cloneNode()}),K.textContent=he)),en(q.afterSanitizeElements,K,null),!1)},zn=function(K,he,Fe){if(Ne&&(he==="id"||he==="name")&&(Fe in n||Fe in ar))return!1;if(!(Be&&!_e[he]&&vr(xe,he))){if(!(ze&&vr(Ae,he))){if(!(je.attributeCheck instanceof Function&&je.attributeCheck(he,K))){if(!me[he]||_e[he]){if(!($r(K)&&(de.tagNameCheck instanceof RegExp&&vr(de.tagNameCheck,K)||de.tagNameCheck instanceof Function&&de.tagNameCheck(K))&&(de.attributeNameCheck instanceof RegExp&&vr(de.attributeNameCheck,he)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(he,K))||he==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&vr(de.tagNameCheck,Fe)||de.tagNameCheck instanceof Function&&de.tagNameCheck(Fe))))return!1}else if(!Zn[he]){if(!vr(ne,If(Fe,Q,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&K!=="script"&&hI(Fe,"data:")===0&&Qn[K])){if(!(Je&&!vr(Re,If(Fe,Q,"")))){if(Fe)return!1}}}}}}}return!0},$r=function(K){return K!=="annotation-xml"&&Fg(K,Ee)},lr=function(K){en(q.beforeSanitizeAttributes,K,null);const{attributes:he}=K;if(!he||Br(K))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0};let St=he.length;for(;St--;){const kt=he[St],{name:qe,namespaceURI:It,value:Qt}=kt,hn=vt(qe),_r=Qt;let Ct=qe==="value"?_r:mI(_r);if(Fe.attrName=hn,Fe.attrValue=Ct,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,en(q.uponSanitizeAttribute,K,Fe),Ct=Fe.attrValue,nt&&(hn==="id"||hn==="name")&&(sr(qe,K),Ct=ct+Ct),xt&&vr(/((--!?|])>)|<\/(style|title|textarea)/i,Ct)){sr(qe,K);continue}if(hn==="attributename"&&Fg(Ct,"href")){sr(qe,K);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){sr(qe,K);continue}if(!ke&&vr(/\/>/i,Ct)){sr(qe,K);continue}tt&&Mp([pe,ie,se],rn=>{Ct=If(Ct,rn," ")});const Bn=vt(K.nodeName);if(!zn(Bn,hn,Ct)){sr(qe,K);continue}if(L&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!It)switch(w.getAttributeType(Bn,hn)){case"TrustedHTML":{Ct=L.createHTML(Ct);break}case"TrustedScriptURL":{Ct=L.createScriptURL(Ct);break}}if(Ct!==_r)try{It?K.setAttributeNS(It,qe,Ct):K.setAttribute(qe,Ct),Br(K)?sn(K):Wx(t.removed)}catch{sr(qe,K)}}en(q.afterSanitizeAttributes,K,null)},Tr=function De(K){let he=null;const Fe=jn(K);for(en(q.beforeSanitizeShadowDOM,K,null);he=Fe.nextNode();)en(q.uponSanitizeShadowNode,he,null),ln(he),lr(he),he.content instanceof i&&De(he.content);en(q.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(De){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,Fe=null,St=null,kt=null;if(Fr=!De,Fr&&(De="<!-->"),typeof De!="string"&&!Ur(De))if(typeof De.toString=="function"){if(De=De.toString(),typeof De!="string")throw Mf("dirty is not a string, aborting")}else throw Mf("toString is not a function");if(!t.isSupported)return De;if(xn||zr(K),t.removed=[],typeof De=="string"&&(Dt=!1),Dt){if(De.nodeName){const Qt=vt(De.nodeName);if(!re[Qt]||ve[Qt])throw Mf("root node is forbidden and cannot be sanitized in-place")}}else if(De instanceof c)he=zo("<!---->"),Fe=he.ownerDocument.importNode(De,!0),Fe.nodeType===Lf.element&&Fe.nodeName==="BODY"||Fe.nodeName==="HTML"?he=Fe:he.appendChild(Fe);else{if(!Vt&&!tt&&!zt&&De.indexOf("<")===-1)return L&&wn?L.createHTML(De):De;if(he=zo(De),!he)return Vt?null:wn?M:""}he&&kr&&sn(he.firstChild);const qe=jn(Dt?De:he);for(;St=qe.nextNode();)ln(St),lr(St),St.content instanceof i&&Tr(St.content);if(Dt)return De;if(Vt){if(un)for(kt=W.call(he.ownerDocument);he.firstChild;)kt.appendChild(he.firstChild);else kt=he;return(me.shadowroot||me.shadowrootmode)&&(kt=G.call(r,kt,!0)),kt}let It=zt?he.outerHTML:he.innerHTML;return zt&&re["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&vr(yA,he.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
|
|
697
|
-
`+It),tt&&Mp([pe,ie,se],Qt=>{It=If(It,Qt," ")}),L&&wn?L.createHTML(It):It},t.setConfig=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zr(De),xn=!0},t.clearConfig=function(){Fn=null,xn=!1},t.isValidAttribute=function(De,K,he){Fn||zr({});const Fe=vt(De),St=vt(K);return zn(Fe,St,he)},t.addHook=function(De,K){typeof K=="function"&&Of(q[De],K)},t.removeHook=function(De,K){if(K!==void 0){const he=dI(q[De],K);return he===-1?void 0:pI(q[De],he,1)[0]}return Wx(q[De])},t.removeHooks=function(De){q[De]=[]},t.removeAllHooks=function(){q=Qx()},t}var a0=bA();const PI="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",s0=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),$g=e=>atob(e),OI=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:c,taskVerified:u})=>{const f={...t?{action:t}:{},taskInstanceId:n,taskVerified:u,timezone:r,commentId:o,...i?{comment:s0(i)}:{},commentType:s,hasAssets:c},m=new Headers;return m.append("Content-Type","application/json"),m.append("username",e||""),await(await fetch(`${Qi}/manage-comment`,{method:"POST",headers:m,body:JSON.stringify(f)})).json()},xA=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return W3;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return rx;case"csv":return R3;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return rx;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return N3;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return _3;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return L3;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 $3;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 z3;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 B3;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 F3;default:return K3}},II=(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..."}}},Jp=e=>e.assetPath.includes("blob:")?e.assetPath:MI({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),MI=({assetPath:e,mimeType:t,fileName:n})=>e?`${Qi}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",yy=e=>e.startsWith("image/"),NI=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,c)=>s+String.fromCharCode(c),""));return t(i)}}),LI=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",DI=async(e,t,n,r)=>{var C;const o=e.name.split(".").pop(),i=LI(e,o),s=await NI(e),c=((C=e.name)==null?void 0:C.split("."))||[];c.pop();const u=c.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,f=s.length,m={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:u,fileSize:f,sequenceOrder:n},h=new Headers;return h.append("Content-Type","application/json"),h.append("username",r||""),await(await fetch(`${Qi}/upload-comment-asset`,{method:"POST",headers:h,body:JSON.stringify(m)})).json()},Zx=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${Qi}/comments/${e}`,{method:"GET",headers:n})).json()},l0=(e,t)=>["comments",t,+e],FI=({taskInstanceId:e,enabled:t,username:n})=>{var c;const{queryClient:r}=qa(),o={queryKey:l0(e,n),queryFn:async()=>await Zx({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Dh(o,r),s=u=>{r.prefetchQuery({...o,queryKey:l0(u,n),queryFn:async()=>await Zx({taskInstanceId:u.toString(),username:n})})};return{comments:((c=i.data)==null?void 0:c.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},jI=(e,t,n,r)=>{const o=l0(t,r.author),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},zI=(e,t,n)=>{const r=["comments",t],o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},BI=(e,t,n)=>{const r=["comments",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})}},UI=({playbookInstanceId:e})=>{const{queryClient:t}=qa(),n=J0({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:c,commentId:u,comment:f,commentType:m,hasAssets:h,attachments:v,username:w,taskVerified:C}=o,A=await OI({username:w,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:c,commentId:u,comment:f,commentType:m,hasAssets:h,taskVerified:C});return A.commentId&&h&&v&&await Promise.all(v.map(x=>DI(x.originFile,A.commentId,x.sequenceOrder,w))),A},onMutate:async o=>{var h;const{action:i,taskInstanceId:s}=o,c=["comments",s],u=`temp-${crypto.randomUUID()}`,f=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:c});const m=t.getQueryData(c);return i==="delete"&&o.commentId&&zI(t,s,o.commentId),i==="add"&&jI(t,s,+e,{commentId:u,author:o.username,comment:s0(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((h=o.attachments)==null?void 0:h.map(v=>({assetId:f,assetPath:v.url,mimeType:v.mimeType,name:v.name,url:v.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&BI(t,s,{author:o.username,comment:s0(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:m,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(["comments",s.taskInstanceId],s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:["comments",s.taskInstanceId]}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function qp(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const wA="carousel",SA="controller",$I="navigation",WI="no-scroll",by="portal",HI="root",CA="toolbar",Xx="zoom",Wg="loading",Hg="error",Vg="complete",VI="placeholder",KI=e=>`active-slide-${e}`,YI="fullsize",xy="flex_center",GI="no_scroll",AA="no_scroll_padding",wy="slide",EA="slide_wrapper",QI="slide_wrapper_interactive",Vs="prev",Ks="next",Jx="swipe",mu="close",kA="onPointerDown",TA="onPointerMove",_A="onPointerUp",RA="onPointerLeave",PA="onPointerCancel",Sy="onKeyDown",ZI="onKeyUp",Cy="onWheel",XI="Escape",JI="ArrowLeft",qI="ArrowRight",e6="button",c0="icon",OA="contain",qx="cover",IA="Unknown action type",MA="yarl__";function si(...e){return[...e].filter(Boolean).join(" ")}function bt(e){return`${MA}${e}`}function Nr(e){return`--${MA}${e}`}function Ed(e,t){return`${e}${t?`_${t}`:""}`}function Ay(e){return t=>Ed(e,t)}function gu(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function t6(e,t,n){return gu(e,"{index} of {total}").replace(/\{index}/g,`${Ry(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Ey(...e){return()=>{e.forEach(t=>{t()})}}function qi(e,t,n){return()=>{const r=F.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function ky(){return typeof window<"u"}function Ty(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function Tu(e){return e.type===void 0||e.type==="image"}function _y(e,t){return e.imageFit===qx||e.imageFit!==OA&&t===qx}function em(e){return typeof e=="string"?Number.parseInt(e,10):e}function vh(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=em(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function n6(e,t){const n=vh(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 r6(){return(ky()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Ry(e,t){return t>0?(e%t+t)%t:0}function NA(e){return e.length>0}function LA(e,t){return e[Ry(t,e.length)]}function u0(e,t){return NA(e)?LA(e,t):void 0}function o6(e){return Tu(e)?e.src:void 0}function i6(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(c=>c===t),s=F.isValidElement(n)?F.cloneElement(n,{key:t},null):n;if(i>=0){const c=[...r];return c.splice(i,1,s),{buttons:c,...o}}return{buttons:[s,...r],...o}}function a6(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const s6=Number(F.version.split(".")[0])>=19;function l6(e){return{inert:s6?e:e?"":void 0}}function c6(e){e.scrollTop}const f0={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[mu]},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:OA,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 ts(e,t){return{name:e,component:t}}function Pn(e,t){return{module:e,children:t}}function DA(e,t,n){return e.module.name===t?n(e):e.children?[Pn(e.module,e.children.flatMap(r=>{var o;return(o=DA(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function Lc(e,t,n){return e.flatMap(r=>{var o;return(o=DA(r,t,n))!==null&&o!==void 0?o:[]})}function u6(e,t=[],n=[]){let r=e;const o=w=>{const C=[...r];for(;C.length>0;){const A=C.pop();if((A==null?void 0:A.module.name)===w)return!0;A!=null&&A.children&&C.push(...A.children)}return!1},i=(w,C)=>{if(w===""){r=[Pn(C,r)];return}r=Lc(r,w,A=>[Pn(C,[A])])},s=(w,C)=>{r=Lc(r,w,A=>[Pn(A.module,[Pn(C,A.children)])])},c=(w,C,A)=>{r=Lc(r,w,x=>{var E;return[Pn(x.module,[...A?[Pn(C)]:[],...(E=x.children)!==null&&E!==void 0?E:[],...A?[]:[Pn(C)]])]})},u=(w,C,A)=>{r=Lc(r,w,x=>[...A?[Pn(C)]:[],x,...A?[]:[Pn(C)]])},f=w=>{s(SA,w)},m=(w,C)=>{r=Lc(r,w,A=>[Pn(C,A.children)])},h=w=>{r=Lc(r,w,C=>C.children)},v=w=>{n.push(w)};return t.forEach(w=>{w({contains:o,addParent:i,append:s,addChild:c,addSibling:u,addModule:f,replace:m,remove:h,augment:v})}),{config:r,augmentation:w=>n.reduce((C,A)=>A(C),w)}}const FA=F.createContext(null),jA=qi("useA11yContext","A11yContext",FA);function f6({children:e}){const[t,n]=F.useState(!1),[r,o]=F.useState(!1),i=F.useMemo(()=>({focusWithin:t,trackFocusWithin:(c,u)=>{const f=m=>h=>{var v;h.currentTarget.contains(h.relatedTarget)||n(m),(v=m?c:u)===null||v===void 0||v(h)};return{onFocus:f(!0),onBlur:f(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return F.createElement(FA.Provider,{value:i},e)}const zA=F.createContext(null),tm=qi("useDocument","DocumentContext",zA);function d6({nodeRef:e,children:t}){const n=F.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 F.createElement(zA.Provider,{value:n},t)}const BA=F.createContext(null),nm=qi("useEvents","EventsContext",BA);function p6({children:e}){const[t]=F.useState({});F.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const n=F.useMemo(()=>{const r=(s,c)=>{var u;(u=t[s])===null||u===void 0||u.splice(0,t[s].length,...t[s].filter(f=>f!==c))};return{publish:(...[s,c])=>{var u;(u=t[s])===null||u===void 0||u.forEach(f=>f(c))},subscribe:(s,c)=>(t[s]||(t[s]=[]),t[s].push(c),()=>r(s,c)),unsubscribe:r}},[t]);return F.createElement(BA.Provider,{value:n},e)}const UA=F.createContext(null),ho=qi("useLightboxProps","LightboxPropsContext",UA);function h6({children:e,...t}){return F.createElement(UA.Provider,{value:t},e)}const $A=F.createContext(null),ns=qi("useLightboxState","LightboxStateContext",$A),WA=F.createContext(null),m6=qi("useLightboxDispatch","LightboxDispatchContext",WA);function g6(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Ry(o,n.length),s=u0(n,i),c=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:c}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:u0(t.slides,t.index)}:e;default:throw new Error(IA)}}function v6({slides:e,index:t,children:n}){const[r,o]=F.useReducer(g6,{slides:e,currentIndex:t,globalIndex:t,currentSlide:u0(e,t)});F.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);const i=F.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return F.createElement(WA.Provider,{value:o},F.createElement($A.Provider,{value:i},n))}const HA=F.createContext(null),rm=qi("useTimeouts","TimeoutsContext",HA);function y6({children:e}){const[t]=F.useState([]);F.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const n=F.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(c=>c!==s))};return{setTimeout:(s,c)=>{const u=window.setTimeout(()=>{r(u),s()},c);return t.push(u),u},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return F.createElement(HA.Provider,{value:n},e)}const Py=F.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...c},u){const{styles:f,labels:m}=ho(),h=gu(m,t);return F.createElement("button",{ref:u,type:"button",title:h,"aria-label":h,className:si(bt(e6),n),onClick:i,style:{...s,...f.button},...c},o?o():F.createElement(r,{className:bt(c0),style:f.icon}))});function b6(e,t){const n=r=>F.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 Ol(e,t){return b6(e,F.createElement("g",{fill:"currentColor"},F.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const x6=Ol("Close",F.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"})),w6=Ol("Previous",F.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),S6=Ol("Next",F.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),C6=Ol("Loading",F.createElement(F.Fragment,null,Array.from({length:8}).map((e,t,n)=>F.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)`})))),A6=Ol("Error",F.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"})),fi=ky()?F.useLayoutEffect:F.useEffect;function Oy(){const[e,t]=F.useState(!1);return F.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 E6(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(em);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 ew(e,t){const n=F.useRef(void 0),r=F.useRef(void 0),o=Oy();return fi(()=>{var i,s,c;if(e.current&&n.current!==void 0&&!o){const{keyframes:u,duration:f,easing:m,onfinish:h}=t(n.current,e.current.getBoundingClientRect(),E6(e.current))||{};if(u&&f){(i=r.current)===null||i===void 0||i.cancel(),r.current=void 0;try{r.current=(c=(s=e.current).animate)===null||c===void 0?void 0:c.call(s,u,{duration:f,easing:m})}catch(v){console.error(v)}r.current&&(r.current.onfinish=()=>{r.current=void 0,h==null||h()})}}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 VA(){const e=F.useRef(null),t=F.useRef(void 0),[n,r]=F.useState();return{setContainerRef:F.useCallback(i=>{e.current=i,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(i){const c=window.getComputedStyle(i),u=f=>parseFloat(f)||0;r({width:Math.round(i.clientWidth-u(c.paddingLeft)-u(c.paddingRight)),height:Math.round(i.clientHeight-u(c.paddingTop)-u(c.paddingBottom))})}else r(void 0)};s(),i&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(i))},[]),containerRef:e,containerRect:n}}function eh(){const e=F.useRef(void 0),{setTimeout:t,clearTimeout:n}=rm();return F.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function Lt(e){const t=F.useRef(e);return fi(()=>{t.current=e}),F.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function tw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function d0(e,t){return F.useMemo(()=>e==null&&t==null?null:n=>{tw(e,n),tw(t,n)},[e,t])}function k6(e,t=!1){const n=F.useRef(!1);fi(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);const r=F.useCallback(()=>{n.current=!0},[]),o=F.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:o}}function Iy(){const[e,t]=F.useState(!1);return fi(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function T6(){const[e]=F.useState({}),t=F.useCallback((o,i)=>{var s;(s=e[o])===null||s===void 0||s.forEach(c=>{i.isPropagationStopped()||c(i)})},[e]),n=F.useMemo(()=>({onPointerDown:o=>t(kA,o),onPointerMove:o=>t(TA,o),onPointerUp:o=>t(_A,o),onPointerLeave:o=>t(RA,o),onPointerCancel:o=>t(PA,o),onKeyDown:o=>t(Sy,o),onKeyUp:o=>t(ZI,o),onWheel:o=>t(Cy,o)}),[t]),r=F.useCallback((o,i)=>(e[o]||(e[o]=[]),e[o].unshift(i),()=>{const s=e[o];s&&s.splice(0,s.length,...s.filter(c=>c!==i))}),[e]);return{registerSensors:n,subscribeSensors:r}}function nw(e,t){const n=F.useRef(0),r=eh(),o=Lt((...i)=>{n.current=Date.now(),e(i)});return F.useCallback((...i)=>{r(()=>{o(i)},t-(Date.now()-n.current))},[t,o,r])}const Kg=Ay("slide"),Yg=Ay("slide_image");function yh({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:c,onError:u,style:f}){var m,h,v,w,C,A,x,E;const[R,I]=F.useState(Wg),{publish:L}=nm(),{setTimeout:M}=rm(),U=F.useRef(null);F.useEffect(()=>{t===0&&L(KI(R))},[t,R,L]);const j=Lt(ue=>{("decode"in ue?ue.decode():Promise.resolve()).catch(()=>{}).then(()=>{ue.parentNode&&(I(Vg),M(()=>{c==null||c(ue)},0))})}),W=F.useCallback(ue=>{U.current=ue,ue!=null&&ue.complete&&j(ue)},[j]),H=F.useCallback(ue=>{j(ue.currentTarget)},[j]),G=Lt(()=>{I(Hg),u==null||u()}),q=_y(e,o),pe=(ue,me)=>Number.isFinite(ue)?ue:me,ie=pe(Math.max(...((h=(m=e.srcSet)===null||m===void 0?void 0:m.map(ue=>ue.width))!==null&&h!==void 0?h:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((v=U.current)===null||v===void 0?void 0:v.naturalWidth)||0),se=pe(Math.max(...((C=(w=e.srcSet)===null||w===void 0?void 0:w.map(ue=>ue.height))!==null&&C!==void 0?C:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((A=U.current)===null||A===void 0?void 0:A.naturalHeight)||0),xe=ie&&se?{maxWidth:`min(${ie}px, 100%)`,maxHeight:`min(${se}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},Ae=(x=e.srcSet)===null||x===void 0?void 0:x.sort((ue,me)=>ue.width-me.width).map(ue=>`${ue.src} ${ue.width}w`).join(", "),Re=()=>r&&!q&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,Q=Ae&&r&&ky()?`${Math.round(Math.min(Re(),r.width))}px`:void 0,{style:Ee,className:ne,...re}=i||{};return F.createElement(F.Fragment,null,F.createElement("img",{ref:W,onLoad:H,onError:G,onClick:s,draggable:!1,className:si(bt(Yg()),q&&bt(Yg("cover")),R!==Vg&&bt(Yg("loading")),ne),style:{...xe,...f,...Ee},...re,alt:(E=e.alt)!==null&&E!==void 0?E:"",sizes:Q,srcSet:Ae,src:e.src}),R!==Vg&&F.createElement("div",{className:bt(Kg(VI))},R===Wg&&(n!=null&&n.iconLoading?n.iconLoading():F.createElement(C6,{className:si(bt(c0),bt(Kg(Wg)))})),R===Hg&&(n!=null&&n.iconError?n.iconError():F.createElement(A6,{className:si(bt(c0),bt(Kg(Hg)))}))))}const _6=F.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const c=F.useRef(null),{trackFocusWithin:u}=jA();return F.createElement(d6,{nodeRef:c},F.createElement("div",{ref:d0(s,c),className:si(bt("root"),t),...u(r,o),...i},n))});var er;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(er||(er={}));function KA(e,t,n,r,o){F.useEffect(()=>o?()=>{}:Ey(e(kA,t),e(TA,n),e(_A,r),e(RA,r),e(PA,r)),[e,t,n,r,o])}var Ro;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(Ro||(Ro={}));const Gg=30;function R6({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,c,u,f,m,h,v,w,C,A,x){const E=F.useRef(0),R=F.useRef([]),I=F.useRef(void 0),L=F.useRef(0),M=F.useRef(Ro.NONE),U=F.useCallback(ie=>{I.current===ie.pointerId&&(I.current=void 0,M.current=Ro.NONE);const se=R.current;se.splice(0,se.length,...se.filter(xe=>xe.pointerId!==ie.pointerId))},[]),j=F.useCallback(ie=>{U(ie),ie.persist(),R.current.push(ie)},[U]),W=F.useCallback(ie=>R.current.find(({pointerId:se})=>ie.pointerId===se),[]),H=Lt(ie=>{j(ie)}),G=(ie,se)=>h&&ie>se||m&&ie<-se,q=Lt(ie=>{const se=W(ie);if(se)if(I.current===ie.pointerId){const xe=Date.now()-L.current,Ae=E.current;M.current===Ro.SWIPE?Math.abs(Ae)>.3*o||Math.abs(Ae)>5&&xe<i?u(Ae,xe):f(Ae):M.current===Ro.PULL&&(G(Ae,2*Gg)?C(Ae,xe):A(Ae)),E.current=0,M.current=Ro.NONE}else{const{target:xe}=ie;t&&xe instanceof HTMLElement&&xe===se.target&&(xe.classList.contains(bt(wy))||xe.classList.contains(bt(EA)))&&x()}U(ie)}),pe=Lt(ie=>{const se=W(ie);if(se){const xe=I.current===ie.pointerId;if(ie.buttons===0){xe&&E.current!==0?q(ie):U(se);return}const Ae=ie.clientX-se.clientX,Re=ie.clientY-se.clientY;if(I.current===void 0){const Q=Ee=>{j(ie),I.current=ie.pointerId,L.current=Date.now(),M.current=Ee};Math.abs(Ae)>Math.abs(Re)&&Math.abs(Ae)>Gg&&r(Ae)?e||(Q(Ro.SWIPE),s()):Math.abs(Re)>Math.abs(Ae)&&G(Re,Gg)&&(Q(Ro.PULL),v())}else xe&&(M.current===Ro.SWIPE?(E.current=Ae,c(Ae)):M.current===Ro.PULL&&(E.current=Re,w(Re)))}});KA(n,H,pe,q)}function P6({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=F.useRef(null),r=Lt(o=>{const i=Math.abs(o.deltaX)>Math.abs(o.deltaY);(i&&e||!i&&t||o.ctrlKey)&&o.preventDefault()});return F.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 O6(e,t,n,r,o,i,s,c,u){const f=F.useRef(0),m=F.useRef(0),h=F.useRef(void 0),v=F.useRef(void 0),w=F.useRef(0),C=F.useRef(void 0),A=F.useRef(0),{setTimeout:x,clearTimeout:E}=rm(),R=F.useCallback(()=>{h.current&&(E(h.current),h.current=void 0)},[E]),I=F.useCallback(()=>{v.current&&(E(v.current),v.current=void 0)},[E]),L=Lt(()=>{e!==er.SWIPE&&(f.current=0,A.current=0,R(),I())});F.useEffect(L,[e,L]);const M=Lt(j=>{v.current=void 0,f.current===j&&u(f.current)}),U=Lt(j=>{if(j.ctrlKey||Math.abs(j.deltaY)>Math.abs(j.deltaX))return;const W=H=>{w.current=H,E(C.current),C.current=H>0?x(()=>{w.current=0,C.current=void 0},300):void 0};if(e===er.NONE){if(Math.abs(j.deltaX)<=1.2*Math.abs(w.current)){W(j.deltaX);return}if(!n(-j.deltaX))return;if(m.current+=j.deltaX,R(),Math.abs(m.current)>30)m.current=0,W(0),A.current=Date.now(),i();else{const H=m.current;h.current=x(()=>{h.current=void 0,H===m.current&&(m.current=0)},o)}}else if(e===er.SWIPE){let H=f.current-j.deltaX;if(H=Math.min(Math.abs(H),r)*Math.sign(H),f.current=H,s(H),I(),Math.abs(H)>.2*r){W(j.deltaX),c(H,Date.now()-A.current);return}v.current=x(()=>M(H),2*o)}else W(j.deltaX)});F.useEffect(()=>t(Cy,U),[t,U])}const rw=Ay("container"),YA=F.createContext(null),ea=qi("useController","ControllerContext",YA);function I6({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:c,render:u}=t,{closeOnPullUp:f,closeOnPullDown:m,preventDefaultWheelX:h,preventDefaultWheelY:v}=i,[w,C]=F.useState(),A=ns(),x=m6(),[E,R]=F.useState(er.NONE),I=F.useRef(0),L=F.useRef(0),M=F.useRef(1),{registerSensors:U,subscribeSensors:j}=T6(),{subscribe:W,publish:H}=nm(),G=eh(),q=eh(),pe=eh(),{containerRef:ie,setContainerRef:se,containerRect:xe}=VA(),Ae=d0(P6({preventDefaultWheelX:h,preventDefaultWheelY:v}),se),Re=F.useRef(null),Q=d0(Re,void 0),{getOwnerDocument:Ee}=tm(),ne=Iy(),re=Ne=>(ne?-1:1)*(typeof Ne=="number"?Ne:1),ue=Lt(()=>{var Ne;return(Ne=ie.current)===null||Ne===void 0?void 0:Ne.focus()}),me=Lt(()=>t),Te=Lt(()=>A),de=F.useCallback(Ne=>H(Vs,Ne),[H]),ve=F.useCallback(Ne=>H(Ks,Ne),[H]),_e=F.useCallback(()=>H(mu),[H]),je=Ne=>!(r.finite&&(re(Ne)>0&&A.currentIndex===0||re(Ne)<0&&A.currentIndex===A.slides.length-1)),ze=Ne=>{var nt;I.current=Ne,(nt=ie.current)===null||nt===void 0||nt.style.setProperty(Nr("swipe_offset"),`${Math.round(Ne)}px`)},Be=Ne=>{var nt,ct;L.current=Ne,M.current=(()=>{const Jt=m&&Ne>0?Ne:f&&Ne<0?-Ne:0;return Math.min(Math.max(Ty(1-Jt/60*(1-.5),2),.5),1)})(),(nt=ie.current)===null||nt===void 0||nt.style.setProperty(Nr("pull_offset"),`${Math.round(Ne)}px`),(ct=ie.current)===null||ct===void 0||ct.style.setProperty(Nr("pull_opacity"),`${M.current}`)},{prepareAnimation:Je}=ew(Re,(Ne,nt,ct)=>{if(Re.current&&xe)return{keyframes:[{transform:`translate(0, ${Ne.rect.y-nt.y+ct.y}px)`,opacity:Ne.opacity},{transform:"translate(0, 0)",opacity:1}],duration:Ne.duration,easing:o.easing.fade}}),ke=(Ne,nt)=>{if(f||m){Be(Ne);let ct=0;Re.current&&(ct=o.fade*(nt?2:1),Je({rect:Re.current.getBoundingClientRect(),opacity:M.current,duration:ct})),pe(()=>{Be(0),R(er.NONE)},ct),R(er.ANIMATION),nt||_e()}},{prepareAnimation:tt,isAnimationPlaying:xt}=ew(Re,(Ne,nt,ct)=>{var ut;if(Re.current&&xe&&(!((ut=A.animation)===null||ut===void 0)&&ut.duration)){const Dt=vh(r.spacing),Jt=(Dt.percent?Dt.percent*xe.width/100:Dt.pixel)||0;return{keyframes:[{transform:`translate(${re(A.globalIndex-Ne.index)*(xe.width+Jt)+Ne.rect.x-nt.x+ct.x}px, 0)`},{transform:"translate(0, 0)"}],duration:A.animation.duration,easing:A.animation.easing}}}),zt=Lt(Ne=>{var nt,ct;const ut=Ne.offset||0,Dt=ut?o.swipe:(nt=o.navigation)!==null&&nt!==void 0?nt:o.swipe,Jt=!ut&&!xt()?o.easing.navigation:o.easing.swipe;let{direction:Kt}=Ne;const wt=(ct=Ne.count)!==null&&ct!==void 0?ct:1;let Qn=er.ANIMATION,qt=Dt*wt;if(!Kt){const Sn=xe==null?void 0:xe.width,Cn=Ne.duration||0,Xn=Sn?Dt/Sn*Math.abs(ut):Dt;wt!==0?(Cn<Xn?qt=qt/Xn*Math.max(Cn,Xn/5):Sn&&(qt=Dt/Sn*(Sn-Math.abs(ut))),Kt=re(ut)>0?Vs:Ks):qt=Dt/2}let Zn=0;Kt===Vs?je(re(1))?Zn=-wt:(Qn=er.NONE,qt=Dt):Kt===Ks&&(je(re(-1))?Zn=wt:(Qn=er.NONE,qt=Dt)),qt=Math.round(qt),q(()=>{ze(0),R(er.NONE)},qt),Re.current&&tt({rect:Re.current.getBoundingClientRect(),index:A.globalIndex}),R(Qn),H(Jx,{type:"swipe",increment:Zn,duration:qt,easing:Jt})});F.useEffect(()=>{var Ne,nt;!((Ne=A.animation)===null||Ne===void 0)&&Ne.increment&&(!((nt=A.animation)===null||nt===void 0)&&nt.duration)&&G(()=>x({type:"swipe",increment:0}),A.animation.duration)},[A.animation,x,G]);const xn=[j,je,(xe==null?void 0:xe.width)||0,o.swipe,()=>R(er.SWIPE),Ne=>ze(Ne),(Ne,nt)=>zt({offset:Ne,duration:nt,count:1}),Ne=>zt({offset:Ne,count:0})],kr=[()=>{m&&R(er.PULL)},Ne=>Be(Ne),Ne=>ke(Ne),Ne=>ke(Ne,!0)];R6(i,...xn,f,m,...kr,_e),O6(E,...xn);const Vt=Lt(()=>{i.focus&&Ee().querySelector(`.${bt(by)} .${bt(rw())}`)&&ue()});F.useEffect(Vt,[Vt]);const un=Lt(()=>{var Ne;(Ne=s.view)===null||Ne===void 0||Ne.call(s,{index:A.currentIndex})});F.useEffect(un,[A.globalIndex,un]),F.useEffect(()=>Ey(W(Vs,Ne=>zt({direction:Vs,...Ne})),W(Ks,Ne=>zt({direction:Ks,...Ne})),W(Jx,Ne=>x(Ne))),[W,zt,x]);const wn=F.useMemo(()=>({prev:de,next:ve,close:_e,focus:ue,slideRect:xe?n6(xe,r.padding):{width:0,height:0},containerRect:xe||{width:0,height:0},subscribeSensors:j,containerRef:ie,setCarouselRef:Q,toolbarWidth:w,setToolbarWidth:C}),[de,ve,_e,ue,j,xe,ie,Q,w,C,r.padding]);return F.useImperativeHandle(i.ref,()=>({prev:de,next:ve,close:_e,focus:ue,getLightboxProps:me,getLightboxState:Te}),[de,ve,_e,ue,me,Te]),F.createElement("div",{ref:Ae,className:si(bt(rw()),bt(xy)),style:{...E===er.SWIPE?{[Nr("swipe_offset")]:`${Math.round(I.current)}px`}:null,...E===er.PULL?{[Nr("pull_offset")]:`${Math.round(L.current)}px`,[Nr("pull_opacity")]:`${M.current}`}:null,...i.touchAction!=="none"?{[Nr("controller_touch_action")]:i.touchAction}:null,...c.container},tabIndex:-1,...U},xe&&F.createElement(YA.Provider,{value:wn},e,(n=u.controls)===null||n===void 0?void 0:n.call(u)))}const M6=ts(SA,I6);function $s(e){return Ed(wA,e)}function ow(e){return Ed(wy,e)}function N6({slide:e,offset:t}){const n=F.useRef(null),{currentIndex:r,slides:o}=ns(),{slideRect:i,focus:s}=ea(),{render:c,carousel:{imageFit:u,imageProps:f},on:{click:m},styles:{slide:h},labels:v}=ho(),{getOwnerDocument:w}=tm(),C=t!==0;F.useEffect(()=>{var x;C&&(!((x=n.current)===null||x===void 0)&&x.contains(w().activeElement))&&s()},[C,s,w]);const A=()=>{var x,E,R,I;let L=(x=c.slide)===null||x===void 0?void 0:x.call(c,{slide:e,offset:t,rect:i});return!L&&Tu(e)&&(L=F.createElement(yh,{slide:e,offset:t,render:c,rect:i,imageFit:u,imageProps:f,onClick:C?void 0:()=>m==null?void 0:m({index:r})})),L?F.createElement(F.Fragment,null,(E=c.slideHeader)===null||E===void 0?void 0:E.call(c,{slide:e}),((R=c.slideContainer)!==null&&R!==void 0?R:(({children:M})=>M))({slide:e,children:L}),(I=c.slideFooter)===null||I===void 0?void 0:I.call(c,{slide:e})):null};return F.createElement("div",{ref:n,className:si(bt(ow()),!C&&bt(ow("current")),bt(xy)),...l6(C),style:h,role:"group","aria-roledescription":gu(v,"Slide"),"aria-label":t6(v,o,r+t)},A())}function L6(){const e=ho().styles.slide;return F.createElement("div",{className:bt(wy),style:e})}function D6({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=ns(),{setCarouselRef:i}=ea(),{autoPlaying:s,focusWithin:c}=jA(),u=vh(e.spacing),f=vh(e.padding),m=a6(e,n,1),h=[];if(NA(n))for(let v=r-m;v<=r+m;v+=1){const w=LA(n,v),C=o-r+v,A=e.finite&&(v<0||v>n.length-1);h.push(A?{key:C}:{key:[`${C}`,o6(w)].filter(Boolean).join("|"),offset:v-r,slide:w})}return F.createElement("div",{ref:i,className:si(bt($s()),h.length>0&&bt($s("with_slides"))),style:{[`${Nr($s("slides_count"))}`]:h.length,[`${Nr($s("spacing_px"))}`]:u.pixel||0,[`${Nr($s("spacing_percent"))}`]:u.percent||0,[`${Nr($s("padding_px"))}`]:f.pixel||0,[`${Nr($s("padding_percent"))}`]:f.percent||0},role:"region","aria-live":s&&!c?"off":"polite","aria-roledescription":gu(t,"Carousel"),"aria-label":gu(t,"Photo gallery")},h.map(({key:v,slide:w,offset:C})=>w?F.createElement(N6,{key:v,slide:w,offset:C}):F.createElement(L6,{key:v})))}const F6=ts(wA,D6);function GA(){const{carousel:e}=ho(),{slides:t,currentIndex:n}=ns(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function j6(e){var t;const n=Iy(),{publish:r}=nm(),{animation:o}=ho(),{prevDisabled:i,nextDisabled:s}=GA(),c=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,u=nw(()=>r(Vs),c),f=nw(()=>r(Ks),c),m=Lt(h=>{switch(h.key){case XI:r(mu);break;case JI:(n?s:i)||(n?f:u)();break;case qI:(n?i:s)||(n?u:f)();break}});F.useEffect(()=>e(Sy,m),[e,m])}function iw({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return F.createElement(Py,{label:e,icon:t,renderIcon:n,className:bt(`navigation_${r}`),disabled:i,onClick:o,style:s,...k6(ea().focus,i)})}function z6({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:c}=ea(),{prevDisabled:u,nextDisabled:f}=GA();return j6(c),F.createElement(F.Fragment,null,e?e():F.createElement(iw,{label:"Previous",action:Vs,icon:w6,renderIcon:n,style:o.navigationPrev,disabled:u,onClick:i}),t?t():F.createElement(iw,{label:"Next",action:Ks,icon:S6,renderIcon:r,style:o.navigationNext,disabled:f,onClick:s}))}const B6=ts($I,z6),aw=bt(GI),U6=bt(AA);function $6(e){return"style"in e}function sw(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,`${(em(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function W6({noScroll:{disabled:e},children:t}){const n=Iy(),{getOwnerDocument:r,getOwnerWindow:o}=tm();return F.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:c,documentElement:u}=r(),f=Math.round(s.innerWidth-u.clientWidth);if(f>0){i.push(sw(c,f,n));const m=c.getElementsByTagName("*");for(let h=0;h<m.length;h+=1){const v=m[h];$6(v)&&s.getComputedStyle(v).getPropertyValue("position")==="fixed"&&!v.classList.contains(U6)&&i.push(sw(v,f,n))}}return c.classList.add(aw),()=>{c.classList.remove(aw),i.forEach(m=>m())}},[n,e,r,o]),F.createElement(F.Fragment,null,t)}const H6=ts(WI,W6);function lw(e){return Ed(by,e)}function cw(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function V6({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:c}){const[u,f]=F.useState(!1),[m,h]=F.useState(!1),v=F.useRef([]),w=F.useRef(null),{setTimeout:C}=rm(),{subscribe:A}=nm(),E=Oy()?0:t.fade;F.useEffect(()=>(f(!0),()=>{f(!1),h(!1)}),[]);const R=Lt(()=>{v.current.forEach(U=>U()),v.current=[]}),I=Lt(()=>{var U;h(!1),R(),(U=o.exiting)===null||U===void 0||U.call(o),C(()=>{var j;(j=o.exited)===null||j===void 0||j.call(o),s()},E)});F.useEffect(()=>A(mu,I),[A,I]);const L=Lt(U=>{var j,W,H;c6(U),h(!0),(j=o.entering)===null||j===void 0||j.call(o);const G=(H=(W=U.parentNode)===null||W===void 0?void 0:W.children)!==null&&H!==void 0?H:[];for(let q=0;q<G.length;q+=1){const pe=G[q];["TEMPLATE","SCRIPT","STYLE"].indexOf(pe.tagName)===-1&&pe!==U&&(v.current.push(cw(pe,"inert","")),v.current.push(cw(pe,"aria-hidden","true")))}v.current.push(()=>{var q,pe;(pe=(q=w.current)===null||q===void 0?void 0:q.focus)===null||pe===void 0||pe.call(q)}),C(()=>{var q;(q=o.entered)===null||q===void 0||q.call(o)},E)}),M=F.useCallback(U=>{U?L(U):R()},[L,R]);return u?ui.createPortal(F.createElement(_6,{ref:M,className:si(r,bt(lw()),bt(AA),m&&bt(lw("open"))),"aria-modal":!0,role:"dialog","aria-label":gu(c,"Lightbox"),style:{...t.fade!==f0.animation.fade?{[Nr("fade_animation_duration")]:`${E}ms`}:null,...t.easing.fade!==f0.animation.easing.fade?{[Nr("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:U=>{w.current||(w.current=U.relatedTarget)}},e),i.root||document.body):null}const K6=ts(by,V6);function Y6({children:e}){return F.createElement(F.Fragment,null,e)}const G6=ts(HI,Y6);function Q6(e){return Ed(CA,e)}function Z6({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ea(),{setContainerRef:s,containerRect:c}=VA();fi(()=>{i(c==null?void 0:c.width)},[i,c==null?void 0:c.width]);const u=()=>t?t():F.createElement(Py,{key:mu,label:"Close",icon:x6,renderIcon:n,onClick:o});return F.createElement("div",{ref:s,style:r.toolbar,className:bt(Q6())},e==null?void 0:e.map(f=>f===mu?u():f))}const X6=ts(CA,Z6);function QA(e,t){var n;return F.createElement(e.module.component,{key:e.module.name,...t},(n=e.children)===null||n===void 0?void 0:n.map(r=>QA(r,t)))}function J6(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function q6({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:c,slides:u,index:f,...m}){const{animation:h,carousel:v,render:w,toolbar:C,controller:A,noScroll:x,on:E,slides:R,index:I,plugins:L,...M}=f0,{config:U,augmentation:j}=u6([Pn(K6,[Pn(H6,[Pn(M6,[Pn(F6),Pn(X6),Pn(B6)])])])],c||L),W=j({animation:J6(h,t),carousel:{...v,...e},render:{...w,...n},toolbar:{...C,...r},controller:{...A,...o},noScroll:{...x,...i},on:{...E,...s},...M,...m});return W.open?F.createElement(h6,{...W},F.createElement(v6,{slides:u||R,index:em(f||I)},F.createElement(y6,null,F.createElement(p6,null,F.createElement(f6,null,QA(Pn(G6,U),W)))))):null}const eM={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function tM(e){return Math.min(Math.max(e,Number.EPSILON),1)}function ZA(e){const{minZoom:t,...n}={...eM,...e};return{minZoom:tM(t),...n}}function nM(e,t,n,r){const o=F.useRef(void 0),i=F.useRef(void 0),{zoom:s}=ho().animation,c=Oy(),u=Lt(()=>{var f,m,h;if((f=o.current)===null||f===void 0||f.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(h=(m=r.current).animate)===null||h===void 0?void 0:h.call(m,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:c?0:s??500,easing:o.current?"ease-out":"ease-in-out"})}catch(v){console.error(v)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return fi(u,[e,t,n,u]),F.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function rM(e,t){const{on:n}=ho(),r=Lt(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});F.useEffect(r,[e,r])}function om(){const{zoom:e}=ho();return ZA(e)}function oM(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=ns(),{imageFit:c}=ho().carousel,{maxZoomPixelRatio:u}=om();if(e&&s){const m={...s,...t};if(Tu(m)){const h=_y(m,c),v=Math.max(...(((n=m.srcSet)===null||n===void 0?void 0:n.map(C=>C.width))||[]).concat(m.width?[m.width]:[])),w=Math.max(...(((r=m.srcSet)===null||r===void 0?void 0:r.map(C=>C.height))||[]).concat(m.height?[m.height]:[]));v>0&&w>0&&e.width>0&&e.height>0&&(i=h?{width:Math.round(Math.min(v,e.width/e.height*w)),height:Math.round(Math.min(w,e.height/e.width*v))}:{width:v,height:w},i={width:i.width*u,height:i.height*u},o=h?{width:Math.min(e.width,i.width,v),height:Math.min(e.height,i.height,w)}:{width:Math.round(Math.min(e.width,e.height/w*v,v)),height:Math.round(Math.min(e.height,e.width/v*w,w))})}}const f=o.width?Math.max(Ty(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:f}}function uw(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function fw(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function iM(e,t,n,r,o,i,s,c,u){const f=F.useRef([]),m=F.useRef(0),h=F.useRef(void 0),{globalIndex:v}=ns(),{getOwnerWindow:w}=tm(),{containerRef:C,subscribeSensors:A}=ea(),{keyboardMoveDistance:x,zoomInMultiplier:E,wheelZoomDistanceFactor:R,scrollToZoom:I,doubleTapDelay:L,doubleClickDelay:M,doubleClickMaxStops:U,pinchZoomDistanceFactor:j,pinchZoomV4:W}=om(),H=F.useCallback(Q=>{if(C.current){const{pageX:Ee,pageY:ne}=Q,{scrollX:re,scrollY:ue}=w(),{left:me,top:Te,width:de,height:ve}=C.current.getBoundingClientRect();return[Ee-me-re-de/2,ne-Te-ue-ve/2]}return[]},[C,w]),G=Lt(Q=>{const{key:Ee,metaKey:ne,ctrlKey:re}=Q,ue=ne||re,me=()=>{Q.preventDefault(),Q.stopPropagation()};if(e>1){const Te=(de,ve)=>{me(),c(de,ve)};Ee==="ArrowDown"?Te(0,x):Ee==="ArrowUp"?Te(0,-x):Ee==="ArrowLeft"?Te(-x,0):Ee==="ArrowRight"&&Te(x,0)}Ee==="+"||ue&&Ee==="="?(me(),o()):Ee==="-"||ue&&Ee==="_"?(me(),i()):ue&&Ee==="0"&&(me(),s(1))}),q=Lt(Q=>{if((Q.ctrlKey||I)&&Math.abs(Q.deltaY)>Math.abs(Q.deltaX)){Q.stopPropagation(),s(fw(e,-Q.deltaY,R),!0,...H(Q));return}e>1&&(Q.stopPropagation(),I||c(Q.deltaX,Q.deltaY))}),pe=F.useCallback(Q=>{const Ee=f.current;Ee.splice(0,Ee.length,...Ee.filter(ne=>ne.pointerId!==Q.pointerId))},[]),ie=F.useCallback(Q=>{pe(Q),Q.persist(),f.current.push(Q)},[pe]),se=Lt(Q=>{var Ee;const ne=f.current;if(Q.pointerType==="mouse"&&Q.buttons>1||!(!((Ee=u==null?void 0:u.current)===null||Ee===void 0)&&Ee.contains(Q.target)))return;e>1&&Q.stopPropagation();const{timeStamp:re}=Q;if(ne.length===0&&re-m.current<(Q.pointerType==="touch"?L:M)){m.current=0;const ue=e>=1?e!==n?e*Math.max(n**(1/U),E):1:e!==t?e/Math.max(t**(-1/U),E):1;s(ue,!1,...H(Q))}else m.current=re;if(ie(Q),ne.length===2){const ue=uw(ne[0],ne[1]);h.current={previousDistance:ue,initialDistance:Math.max(ue,1),initialZoom:e}}}),xe=Lt(Q=>{const Ee=f.current,ne=Ee.find(re=>re.pointerId===Q.pointerId);if(Ee.length===2&&h.current){Q.stopPropagation(),ie(Q);const re=uw(Ee[0],Ee[1]),ue=W?h.current.initialZoom/h.current.initialDistance*re:fw(e,re-h.current.previousDistance,j);s(ue,!0,...Ee.map(me=>H(me)).reduce((me,Te)=>Te.map((de,ve)=>me[ve]+de/2))),h.current.previousDistance=re;return}e>1&&(Q.stopPropagation(),ne&&(Ee.length===1&&c((ne.clientX-Q.clientX)/e,(ne.clientY-Q.clientY)/e),ie(Q)))}),Ae=F.useCallback(Q=>{const Ee=f.current;Ee.length===2&&Ee.find(ne=>ne.pointerId===Q.pointerId)&&(h.current=void 0),pe(Q)},[pe]),Re=F.useCallback(()=>{const Q=f.current;Q.splice(0,Q.length),m.current=0,h.current=void 0},[]);KA(A,se,xe,Ae,r),F.useEffect(Re,[v,Re]),F.useEffect(()=>r?()=>{}:Ey(Re,A(Sy,G),A(Cy,q)),[r,A,Re,G,q])}function aM(e,t,n){const[r,o]=F.useState(1),[i,s]=F.useState(0),[c,u]=F.useState(0),f=nM(r,i,c,n),{currentSlide:m,globalIndex:h}=ns(),{containerRect:v,slideRect:w}=ea(),{minZoom:C,zoomInMultiplier:A}=om(),x=m&&Tu(m)?m.src:void 0,E=!x||!(n!=null&&n.current);fi(()=>{o(1),s(0),u(0)},[h,x]);const R=F.useCallback((j,W,H)=>{const G=H||r,q=i-(j||0),pe=c-(W||0),ie=(e.width*G-w.width)/2/G,se=(e.height*G-w.height)/2/G;s(Math.min(Math.abs(q),Math.max(ie,0))*Math.sign(q)),u(Math.min(Math.abs(pe),Math.max(se,0))*Math.sign(pe))},[r,i,c,w,e.width,e.height]),I=F.useCallback((j,W,H,G)=>{const q=Ty(j+.01<t?j-.01>C?j:C:t,5);W||f(),R(H?H*(1/r-1/q):0,G?G*(1/r-1/q):0,q),o(q)},[r,C,t,R,f]),L=Lt(()=>{r>1&&(r>t&&I(t,!0),R())});fi(L,[v.width,v.height,L]);const M=F.useCallback(()=>{const j=r*A;I(r<1&&j>1?1:j)},[r,A,I]),U=F.useCallback(()=>{const j=r/A;I(r>1&&j<1?1:j)},[r,A,I]);return{zoom:r,offsetX:i,offsetY:c,disabled:E,changeOffsets:R,changeZoom:I,zoomIn:M,zoomOut:U}}const XA=F.createContext(null),My=qi("useZoom","ZoomControllerContext",XA);function sM({children:e}){const[t,n]=F.useState(),{slideRect:r}=ea(),{ref:o,minZoom:i}=om(),{imageRect:s,maxZoom:c}=oM(r,t==null?void 0:t.imageDimensions),{zoom:u,offsetX:f,offsetY:m,disabled:h,changeZoom:v,changeOffsets:w,zoomIn:C,zoomOut:A}=aM(s,c,t==null?void 0:t.zoomWrapperRef);rM(u,h),iM(u,i,c,h,C,A,v,w,t==null?void 0:t.zoomWrapperRef);const x=F.useMemo(()=>({zoom:u,minZoom:i,maxZoom:c,offsetX:f,offsetY:m,disabled:h,zoomIn:C,zoomOut:A,changeZoom:v}),[u,i,c,f,m,h,C,A,v]);F.useImperativeHandle(o,()=>x,[x]);const E=F.useMemo(()=>({...x,setZoomWrapper:n}),[x,n]);return F.createElement(XA.Provider,{value:E},e)}const lM=Ol("ZoomIn",F.createElement(F.Fragment,null,F.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"}),F.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),cM=Ol("ZoomOut",F.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"})),dw=F.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=F.useRef(!1),i=F.useRef(!1),{zoom:s,minZoom:c,maxZoom:u,zoomIn:f,zoomOut:m,disabled:h}=My(),{render:v}=ho(),w=h||(t?s>=u:s<=c);return F.useEffect(()=>{w&&o.current&&i.current&&n(),w||(o.current=!0)},[w,n]),F.createElement(Py,{ref:r,disabled:w,label:t?"Zoom in":"Zoom out",icon:t?lM:cM,renderIcon:t?v.iconZoomIn:v.iconZoomOut,onClick:t?f:m,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function uM(){const e=F.useRef(null),t=F.useRef(null),{focus:n}=ea(),r=F.useCallback(s=>{var c,u;!((c=s.current)===null||c===void 0)&&c.disabled?n():(u=s.current)===null||u===void 0||u.focus()},[n]),o=F.useCallback(()=>r(e),[r]),i=F.useCallback(()=>r(t),[r]);return F.createElement(F.Fragment,null,F.createElement(dw,{zoomIn:!0,ref:e,onLoseFocus:i}),F.createElement(dw,{ref:t,onLoseFocus:o}))}function fM(){const{render:e}=ho(),t=My();return e.buttonZoom?F.createElement(F.Fragment,null,e.buttonZoom(t)):F.createElement(uM,null)}function dM(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function pM({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(IA)}}function hM(e){var t,n;const[{current:r,preload:o},i]=F.useReducer(pM,{}),{slide:s,rect:c,imageFit:u,render:f,interactive:m}=e,h=s.srcSet.sort((M,U)=>M.width-U.width),v=(t=s.width)!==null&&t!==void 0?t:h[h.length-1].width,w=(n=s.height)!==null&&n!==void 0?n:h[h.length-1].height,C=_y(s,u),A=Math.max(...h.map(M=>M.width)),x=Math.min((C?Math.max:Math.min)(c.width,v*(c.height/w)),A),E=r6(),R=Lt(()=>{var M;const U=(M=h.find(j=>j.width>=x*E))!==null&&M!==void 0?M:h[h.length-1];(!r||h.findIndex(j=>j.src===r)<h.findIndex(j=>j===U))&&i({type:"fetch",source:U.src})});fi(R,[c.width,c.height,E,R]);const I=Lt(M=>i({type:"done",source:M})),L={WebkitTransform:m?"initial":"translateZ(0)"};return C||Object.assign(L,c.width/c.height<v/w?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),F.createElement(F.Fragment,null,o&&o!==r&&F.createElement(yh,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...L},onLoad:()=>I(o),render:{...f,iconLoading:()=>null,iconError:()=>null}}),r&&F.createElement(yh,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:L}))}function mM({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=F.useState(),c=F.useRef(null),{zoom:u,maxZoom:f,offsetX:m,offsetY:h,setZoomWrapper:v}=My(),w=u>1,{carousel:C,on:A}=ho(),{currentIndex:x}=ns();fi(()=>n===0?(v({zoomWrapperRef:c,imageDimensions:i}),()=>v(void 0)):()=>{},[n,i,v]);let E=(o=e.slide)===null||o===void 0?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:u,maxZoom:f});if(!E&&Tu(t)){const R={slide:t,offset:n,rect:r,render:e,imageFit:C.imageFit,imageProps:C.imageProps,onClick:n===0?()=>{var I;return(I=A.click)===null||I===void 0?void 0:I.call(A,{index:x})}:void 0};E=dM(t)?F.createElement(hM,{...R,slide:t,interactive:w,rect:n===0?{width:r.width*u,height:r.height*u}:r}):F.createElement(yh,{onLoad:I=>s({width:I.naturalWidth,height:I.naturalHeight}),...R})}return E?F.createElement("div",{ref:c,className:si(bt(YI),bt(xy),bt(EA),w&&bt(QI)),style:n===0?{transform:`scale(${u}) translateX(${m}px) translateY(${h}px)`}:void 0},E):null}const gM=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const c=ZA(n);return{zoom:c,toolbar:i6(r,Xx,F.createElement(fM,null)),render:{...o,slide:u=>{var f;return Tu(u.slide)?F.createElement(mM,{render:o,...u}):(f=o.slide)===null||f===void 0?void 0:f.call(o,u)}},controller:{...i,preventDefaultWheelY:c.scrollToZoom},...s}}),t(ts(Xx,sM))},vM="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==",yM=({src:e,alt:t,size:n=40})=>D.jsx("img",{src:e||vM,alt:t,width:n,height:n,className:"rounded-full object-cover border border-gray-200"}),bM=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},p0=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=Y.useState(!1),{refs:c,floatingStyles:u,context:f}=pA({strategy:"fixed",placement:e,open:i,onOpenChange:s}),m=dA(f,{outsidePress:!0}),{getReferenceProps:h,getFloatingProps:v}=hA([m]),w=Y.Children.map(t,C=>{if(!Y.isValidElement(C))return C;const A=C.props;return Y.cloneElement(C,{onClick:bM(A.onClick,()=>s(!1))})});return D.jsxs(D.Fragment,{children:[Y.cloneElement(n,{ref:c.setReference,...h(),onClick:()=>s(C=>!C),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&D.jsx("div",{ref:c.setFloating,style:{...u,minWidth:o},className:gt("border border-gray-200 rounded-sm bg-white z-[9999999999]"),...v(),children:w})]})},xM=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>D.jsxs(p0,{trigger:D.jsx(Ht,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:D.jsx(ot,{icon:V3})}),children:[D.jsxs("ul",{className:"py-2 m-0",children:[D.jsx("li",{children:D.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&D.jsx("li",{children:D.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),D.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:ok.map(s=>D.jsx("li",{children:D.jsx(Ht,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:gt(s.color,e===s.type?s.color:"text-gray-400"),children:D.jsx(ot,{icon:s.icon,size:"lg"})})},s.type))})]}),JA=Y.createContext(null);function wM(e,t){return{getTheme:function(){return t??null}}}function ir(){const e=Y.useContext(JA);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 be(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 qA(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 jo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,SM=jo&&"documentMode"in document?document.documentMode:null,Io=jo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),bl=jo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),bh=!(!jo||!("InputEvent"in window)||SM)&&"getTargetRanges"in new window.InputEvent("input"),kd=jo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),_u=jo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,CM=jo&&/Android/.test(navigator.userAgent),e2=jo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),pw=jo&&CM&&e2,Td=jo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Io&&!e2;function t2(...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 AM=0,EM=1,kM=2,n2=128,TM=1,_M=2,RM=3,PM=4,OM=5,IM=6,im=kd||_u||Td?" ":"",Xa=`
|
|
698
|
-
|
|
699
|
-
`,MM=bl?" ":im,xl={bold:1,capitalize:1024,code:16,highlight:n2,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},NM={directionless:1,unmergeable:2},hw={center:2,end:6,justify:4,left:1,right:3,start:5},LM={[_M]:"center",[IM]:"end",[PM]:"justify",[TM]:"left",[RM]:"right",[OM]:"start"},DM={normal:0,segmented:2,token:1},FM={[AM]:"normal",[kM]:"segmented",[EM]:"token"},mw="$config";function r2(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const c=s.__key;s.__parent===t&&(ae(s)&&r2(s,c,n,r,o,i),n.has(c)||i.delete(c),o.push(c)),s=s.getNextSibling()}}let h0=!1,Ny=0;function jM(e){Ny=e.timeStamp}function Qg(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&pm(e,n)!==void 0}function zM(e,t,n){const r=go(mo(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&Jy(t,s,o,i,!1)}function BM(e,t,n){if(ge(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return ta(t)&&n.isAttached()}function UM(e,t,n,r){for(let o=e;o&&!YN(o);o=Id(o)){const i=pm(o,t);if(i!==void 0){const s=bn(i,n);if(s)return Et(s)||!Gn(o)?void 0:[o,s]}else if(o===r)return[r,uE(n)]}}function o2(e,t,n){h0=!0;const r=performance.now()-Ny>100;try{li(e,()=>{const o=Oe()||(function(v){return v.getEditorState().read(()=>{const w=Oe();return w!==null?w.clone():null})})(e),i=new Map,s=e.getRootElement(),c=e._editorState,u=e._blockCursorElement;let f=!1,m="";for(let v=0;v<t.length;v++){const w=t[v],C=w.type,A=w.target,x=UM(A,e,c,s);if(!x)continue;const[E,R]=x;if(C==="characterData")r&&Ie(R)&&ta(A)&&BM(o,A,R)&&zM(A,R,e);else if(C==="childList"){f=!0;const I=w.addedNodes;for(let U=0;U<I.length;U++){const j=I[U],W=lE(j),H=j.parentNode;if(H!=null&&j!==u&&W===null&&!Qg(j,H,e)){if(bl){const G=(Gn(j)?j.innerText:null)||j.nodeValue;G&&(m+=G)}H.removeChild(j)}}const L=w.removedNodes,M=L.length;if(M>0){let U=0;for(let j=0;j<M;j++){const W=L[j];(Qg(W,A,e)||u===W)&&(A.appendChild(W),U++)}M!==U&&i.set(E,R)}}}if(i.size>0)for(const[v,w]of i)w.reconcileObservedMutation(v,e);const h=n.takeRecords();if(h.length>0){for(let v=0;v<h.length;v++){const w=h[v],C=w.addedNodes,A=w.target;for(let x=0;x<C.length;x++){const E=C[x],R=E.parentNode;R==null||E.nodeName!=="BR"||Qg(E,A,e)||R.removeChild(E)}}n.takeRecords()}o!==null&&(f&&Er(o),bl&&hE(e)&&o.insertRawText(m))})}finally{h0=!1}}function i2(e){const t=e._observer;t!==null&&o2(e,t.takeRecords(),t)}function a2(e){(function(t){Ny===0&&mo(t).addEventListener("textInput",jM,!0)})(e),e._observer=new MutationObserver((t,n)=>{o2(e,t,n)})}function $M(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}=mm(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 WM=class s2{constructor(t,n,r=void 0,o=new Map,i=void 0){ce(this,"node");ce(this,"knownState");ce(this,"unknownState");ce(this,"sharedNodeState");ce(this,"size");this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,c=i!==void 0?i:(function(u,f,m){let h=m.size;if(f)for(const v in f){const w=u.get(v);w&&m.has(w)||h++}return h})(s,r,o);this.size=c}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 gw(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 s2(t,n,(function(i,s,c){let u;if(c)for(const[f,m]of Object.entries(c)){const h=i.get(f);h?s.has(h)||s.set(h,h.parse(m)):(u=u||{},u[f]=m)}return u})(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=gw(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 HM(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new WM(t,l2(t));return t.__state=n,n}function l2(e){return e.__state?e.__state.sharedNodeState:rE(tb(),e.getType()).sharedNodeState}function gw(e){if(e)for(const t in e)return e}function vw(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 yw(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 bw(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function xw(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,c=t.__style,u=e.__state,f=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===c)&&(e.__state===null||u===f||(function(m,h){if(m===h)return!0;if(m&&h&&m.size!==h.size)return!1;const v=new Set;return!(m&&vw(v,m,h)||h&&vw(v,h,m)||m&&yw(v,m,h)||h&&yw(v,h,m))})(u,f))}function ww(e,t){const n=e.mergeWithSibling(t),r=jt()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Sw(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Ie(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(xw(t,r)){r=ww(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Ie(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(xw(r,n)){r=ww(r,n);break}break}n.remove()}}else r.remove()}function vu(e){return Cw(e.anchor),Cw(e.focus),e}function Cw(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),Ie(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!ae(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let wl,nr,rd,am,m0,g0,Sl,Mo,v0,od,yn="",Xo=null,Hs=null,Di="",Bc=!1,xh=!1;function wh(e,t){const n=Sl.get(e);if(t!==null){const r=w0(e);r.parentNode===t&&t.removeChild(r)}if(Mo.has(e)||nr._keyToDOMMap.delete(e),ae(n)){const r=Ch(n,Sl);y0(r,0,r.length-1,null)}n!==void 0&&qy(od,rd,am,n,"destroyed")}function y0(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&wh(i,r)}}function Ws(e,t){e.setProperty("text-align",t)}const VM="40px";function c2(e,t){const n=wl.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")||VM;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function u2(e,t){const n=e.style;t===0?Ws(n,""):t===1?Ws(n,"left"):t===2?Ws(n,"center"):t===3?Ws(n,"right"):t===4?Ws(n,"justify"):t===5?Ws(n,"start"):t===6&&Ws(n,"end")}function b0(e,t){const n=(function(r){const o=r.__dir;if(o!==null)return o;if(cn(r))return null;const i=r.getParentOrThrow();return cn(i)&&i.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}function Sh(e,t){const n=Mo.get(e);n===void 0&&be(60);const r=n.createDOM(wl,nr);if((function(o,i,s){const c=s._keyToDOMMap;(function(u,f,m){const h=`__lexicalKey_${f._key}`;u[h]=m})(i,s,o),c.set(o,i)})(e,r,nr),Ie(n)?r.setAttribute("data-lexical-text","true"):Et(n)&&r.setAttribute("data-lexical-decorator","true"),ae(n)){const o=n.__indent,i=n.__size;if(b0(r,n),o!==0&&c2(r,o),i!==0){const c=i-1;x0(Ch(n,Mo),n,0,c,n.getDOMSlot(r))}const s=n.__format;s!==0&&u2(r,s),n.isInline()||f2(null,n,r),hm(n)&&(yn+=Xa,Di+=Xa)}else{const o=n.getTextContent();if(Et(n)){const i=n.decorate(nr,wl);i!==null&&d2(e,i),r.contentEditable="false"}yn+=o,Di+=o}return t!==null&&t.insertChild(r),qy(od,rd,am,n,"created"),r}function x0(e,t,n,r,o){const i=yn;yn="";let s=n;for(;s<=r;++s){Sh(e[s],o);const c=Mo.get(e[s]);c!==null&&Ie(c)&&Xo===null&&(Xo=c.getFormat(),Hs=c.getStyle())}hm(t)&&(yn+=Xa),o.element.__lexicalTextContent=yn,yn=i+yn}function Aw(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return ul(r)?"line-break":Et(r)&&r.isInline()?"decorator":null}return"empty"}return null}function f2(e,t,n){const r=Aw(e,Sl),o=Aw(t,Mo);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function KM(e,t,n){var r;Xo=null,Hs=null,(function(o,i,s){const c=yn,u=o.__size,f=i.__size;yn="";const m=s.element;if(u===1&&f===1){const h=o.__first,v=i.__first;if(h===v)Bf(h,m);else{const C=w0(h),A=Sh(v,null);try{m.replaceChild(A,C)}catch(x){if(typeof x=="object"&&x!=null){const E=`${x.toString()} Parent: ${m.tagName}, new child: {tag: ${A.tagName} key: ${v}}, old child: {tag: ${C.tagName}, key: ${h}}.`;throw new Error(E)}throw x}wh(h,null)}const w=Mo.get(v);Ie(w)&&Xo===null&&(Xo=w.getFormat(),Hs=w.getStyle())}else{const h=Ch(o,Sl),v=Ch(i,Mo);if(h.length!==u&&be(227),v.length!==f&&be(228),u===0)f!==0&&x0(v,i,0,f-1,s);else if(f===0){if(u!==0){const w=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;y0(h,0,u-1,w?null:m),w&&(m.textContent="")}}else(function(w,C,A,x,E,R){const I=x-1,L=E-1;let M,U,j=R.getFirstChild(),W=0,H=0;for(;W<=I&&H<=L;){const pe=C[W],ie=A[H];if(pe===ie)j=Zg(Bf(ie,R.element)),W++,H++;else{M===void 0&&(M=new Set(C)),U===void 0&&(U=new Set(A));const xe=U.has(pe),Ae=M.has(ie);if(xe)if(Ae){const Re=El(nr,ie);Re===j?j=Zg(Bf(ie,R.element)):(R.withBefore(j).insertChild(Re),Bf(ie,R.element)),W++,H++}else Sh(ie,R.withBefore(j)),H++;else j=Zg(w0(pe)),wh(pe,R.element),W++}const se=Mo.get(ie);se!==null&&Ie(se)&&Xo===null&&(Xo=se.getFormat(),Hs=se.getStyle())}const G=W>I,q=H>L;if(G&&!q){const pe=A[L+1],ie=pe===void 0?null:nr.getElementByKey(pe);x0(A,w,H,L,R.withBefore(ie))}else q&&!G&&y0(C,W,I,R.element)})(i,h,v,u,f,s)}hm(i)&&(yn+=Xa),m.__lexicalTextContent=yn,yn=c+yn})(e,t,t.getDOMSlot(n)),r=t,Xo==null||Xo===r.__textFormat||xh||r.setTextFormat(Xo),(function(o){Hs==null||Hs===o.__textStyle||xh||o.setTextStyle(Hs)})(t)}function Ch(e,t){const n=[];let r=e.__first;for(;r!==null;){const o=t.get(r);o===void 0&&be(101),n.push(r),r=o.__next}return n}function Bf(e,t){const n=Sl.get(e);let r=Mo.get(e);n!==void 0&&r!==void 0||be(61);const o=Bc||g0.has(e)||m0.has(e),i=El(nr,e);if(n===r&&!o){if(ae(n)){const s=i.__lexicalTextContent;s!==void 0&&(yn+=s,Di+=s)}else{const s=n.getTextContent();Di+=s,yn+=s}return i}if(n!==r&&o&&qy(od,rd,am,r,"updated"),r.updateDOM(n,i,wl)){const s=Sh(e,null);return t===null&&be(62),t.replaceChild(s,i),wh(e,null),s}if(ae(n)&&ae(r)){const s=r.__indent;(Bc||s!==n.__indent)&&c2(i,s);const c=r.__format;if((Bc||c!==n.__format)&&u2(i,c),o&&(KM(n,r,i),cn(r)||r.isInline()||f2(n,r,i)),hm(r)&&(yn+=Xa,Di+=Xa),(Bc||r.__dir!==n.__dir)&&(b0(i,r),cn(r)&&!Bc))for(const u of r.getChildren())ae(u)&&b0(El(nr,u.getKey()),u)}else{const s=r.getTextContent();if(Et(r)){const c=r.decorate(nr,wl);c!==null&&d2(e,c)}yn+=s,Di+=s}if(!xh&&cn(r)&&r.__cachedText!==Di){const s=r.getWritable();s.__cachedText=Di,r=s}return i}function d2(e,t){let n=nr._pendingDecorators;const r=nr._decorators;if(n===null){if(r[e]===t)return;n=cE(nr)}n[e]=t}function Zg(e){let t=e.nextSibling;return t!==null&&t===nr._blockCursorElement&&(t=t.nextSibling),t}function YM(e,t,n,r,o,i){yn="",Di="",Bc=r===2,nr=n,wl=n._config,rd=n._nodes,am=nr._listeners.mutation,m0=o,g0=i,Sl=e._nodeMap,Mo=t._nodeMap,xh=t._readOnly,v0=new Map(n._keyToDOMMap);const s=new Map;return od=s,Bf("root",null),nr=void 0,rd=void 0,m0=void 0,g0=void 0,Sl=void 0,Mo=void 0,wl=void 0,v0=void 0,od=void 0,s}function w0(e){const t=v0.get(e);return t===void 0&&be(75,e),t}function Ye(e){return{type:e}}const sm=Ye("SELECTION_CHANGE_COMMAND"),GM=Ye("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ly=Ye("CLICK_COMMAND"),p2=Ye("BEFORE_INPUT_COMMAND"),h2=Ye("INPUT_COMMAND"),m2=Ye("COMPOSITION_START_COMMAND"),g2=Ye("COMPOSITION_END_COMMAND"),ll=Ye("DELETE_CHARACTER_COMMAND"),Xc=Ye("INSERT_LINE_BREAK_COMMAND"),id=Ye("INSERT_PARAGRAPH_COMMAND"),Jc=Ye("CONTROLLED_TEXT_INSERTION_COMMAND"),lm=Ye("PASTE_COMMAND"),S0=Ye("REMOVE_TEXT_COMMAND"),ad=Ye("DELETE_WORD_COMMAND"),sd=Ye("DELETE_LINE_COMMAND"),ii=Ye("FORMAT_TEXT_COMMAND"),Dy=Ye("UNDO_COMMAND"),Fy=Ye("REDO_COMMAND"),v2=Ye("KEYDOWN_COMMAND"),y2=Ye("KEY_ARROW_RIGHT_COMMAND"),QM=Ye("MOVE_TO_END"),b2=Ye("KEY_ARROW_LEFT_COMMAND"),ZM=Ye("MOVE_TO_START"),x2=Ye("KEY_ARROW_UP_COMMAND"),w2=Ye("KEY_ARROW_DOWN_COMMAND"),ld=Ye("KEY_ENTER_COMMAND"),S2=Ye("KEY_SPACE_COMMAND"),C2=Ye("KEY_BACKSPACE_COMMAND"),jy=Ye("KEY_ESCAPE_COMMAND"),A2=Ye("KEY_DELETE_COMMAND"),E2=Ye("KEY_TAB_COMMAND"),XM=Ye("INSERT_TAB_COMMAND"),JM=Ye("INDENT_CONTENT_COMMAND"),Ew=Ye("OUTDENT_CONTENT_COMMAND"),k2=Ye("DROP_COMMAND"),qM=Ye("FORMAT_ELEMENT_COMMAND"),T2=Ye("DRAGSTART_COMMAND"),_2=Ye("DRAGOVER_COMMAND"),eN=Ye("DRAGEND_COMMAND"),cm=Ye("COPY_COMMAND"),zy=Ye("CUT_COMMAND"),C0=Ye("SELECT_ALL_COMMAND"),tN=Ye("CLEAR_EDITOR_COMMAND"),nN=Ye("CLEAR_HISTORY_COMMAND"),Lp=Ye("CAN_REDO_COMMAND"),Dp=Ye("CAN_UNDO_COMMAND"),rN=Ye("FOCUS_COMMAND"),oN=Ye("BLUR_COMMAND"),iN=Ye("KEY_MODIFIER_COMMAND"),Pi=Object.freeze({}),A0=[["keydown",function(e,t){cd=e.timeStamp,R2=e.key,!t.isComposing()&&Le(t,v2,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Nu(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&li(t,()=>{oE(n)||(T0=!0)})}],["compositionstart",function(e,t){Le(t,m2,e)}],["compositionend",function(e,t){bl?Uf=!0:_u||!kd&&!Td?Le(t,g2,e):(_0=!0,R0=e.data)}],["input",function(e,t){e.stopPropagation(),li(t,()=>{t.dispatchCommand(h2,e)},{event:e}),Uc=null}],["click",function(e,t){li(t,()=>{const n=Oe(),r=go(mo(t)),o=Ou();if(r){if(ge(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!cn(s)&&Xt().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 c=Ln(s,u=>ae(u)&&!u.isInline());ae(c)&&c.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(Gn(i)||ta(i))&&Er(Uy(o,r,t,e))}}Le(t,Ly,e)})}],["cut",Pi],["copy",Pi],["dragstart",Pi],["dragover",Pi],["dragend",Pi],["paste",Pi],["focus",Pi],["blur",Pi],["drop",Pi]];bh&&A0.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||bl&&hE(r)||o!=="insertCompositionText"&&Le(r,p2,n)})(e,t)]);let cd=0,R2=null,P2=0,Uc=null;const E0=new WeakMap,Ah=new WeakMap;let k0=!1,T0=!1,Kf=!1,Uf=!1,_0=!1,R0="",Ys=null,O2=[0,"",0,"root",0];function I2(e,t,n,r,o){const i=e.anchor,s=e.focus,c=i.getNode(),u=jt(),f=go(mo(u)),m=f!==null?f.anchorNode:null,h=i.key,v=u.getElementByKey(h),w=n.length;return h!==s.key||!Ie(c)||(!o&&(!bh||P2<r+50)||c.isDirty()&&w<2||fE(n))&&i.offset!==s.offset&&!c.isComposing()||Li(c)||c.isDirty()&&w>1||(o||!bh)&&v!==null&&!c.isComposing()&&m!==yu(v)||f!==null&&t!==null&&(!t.collapsed||t.startContainer!==f.anchorNode||t.startOffset!==f.anchorOffset)||c.getFormat()!==e.format||c.getStyle()!==e.style||(function(C,A){if(A.isSegmented())return!0;if(!C.isCollapsed())return!1;const x=C.anchor.offset,E=A.getParentOrThrow(),R=fl(A);return x===0?!A.canInsertTextBefore()||!E.canInsertTextBefore()&&!A.isComposing()||R||(function(I){const L=I.getPreviousSibling();return(Ie(L)||ae(L)&&L.isInline())&&!L.canInsertTextAfter()})(A):x===A.getTextContentSize()&&(!A.canInsertTextAfter()||!E.canInsertTextAfter()&&!A.isComposing()||R)})(e,c)}function kw(e,t){return ta(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Tw(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;k0&&(k0=!1,kw(r,o)&&kw(i,s)&&!Ys)||li(t,()=>{if(!n)return void Er(null);if(!Od(t,r,i))return;let c=Oe();if(Ys&&ge(c)&&c.isCollapsed()){const u=c.anchor,f=Ys.anchor;(u.key===f.key&&u.offset===f.offset+1||u.offset===1&&f.getNode().is(u.getNode().getPreviousSibling()))&&(c=Ys.clone(),Er(c))}if(Ys=null,ge(c)){const u=c.anchor,f=u.getNode();if(c.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(c.dirty=!0);const m=mo(t).event,h=m?m.timeStamp:performance.now(),[v,w,C,A,x]=O2,E=Xt(),R=t.isComposing()===!1&&E.getTextContent()==="";if(h<x+200&&u.offset===C&&u.key===A)th(c,v,w);else if(u.type==="text")Ie(f)||be(141),M2(c,f);else if(u.type==="element"&&!R){ae(f)||be(259);const I=u.getNode();I.isEmpty()?(function(L,M){const U=M.getTextFormat(),j=M.getTextStyle();th(L,U,j)})(c,I):th(c,0,"")}}else{const m=u.key,h=c.focus.key,v=c.getNodes(),w=v.length,C=c.isBackward(),A=C?s:o,x=C?o:s,E=C?h:m,R=C?m:h;let I=2047,L=!1;for(let M=0;M<w;M++){const U=v[M],j=U.getTextContentSize();if(Ie(U)&&j!==0&&!(M===0&&U.__key===E&&A===j||M===w-1&&U.__key===R&&x===0)&&(L=!0,I&=U.getFormat(),I===0))break}c.format=L?I:0}}Le(t,sm,void 0)})}function th(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function M2(e,t){th(e,t.getFormat(),t.getStyle())}function N2(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function aN(e){const t=e.inputType,n=N2(e),r=jt(),o=Oe();if(t==="deleteContentBackward"){if(o===null){const h=Ou();if(!ge(h))return!0;Er(h.clone())}if(ge(o)){const h=o.anchor.key===o.focus.key;if(i=e.timeStamp,R2==="MediaLast"&&i<cd+30&&r.isComposing()&&h){if(Kn(null),cd=0,setTimeout(()=>{li(r,()=>{Kn(null)})},30),ge(o)){const v=o.anchor.getNode();v.markDirty(),Ie(v)||be(142),M2(o,v)}}else{Kn(null),e.preventDefault();const v=o.anchor.getNode(),w=v.getTextContent(),C=v.canInsertTextAfter(),A=o.anchor.offset===0&&o.focus.offset===w.length;let x=pw&&h&&!A&&C;if(x&&o.isCollapsed()&&(x=!Et(L0(o.anchor,!0))),!x){Le(r,ll,!0);const E=Oe();pw&&ge(E)&&E.isCollapsed()&&(Ys=E,setTimeout(()=>Ys=null))}}return!0}}var i;if(!ge(o))return!0;const s=e.data;Uc!==null&&Xy(!1,r,Uc),o.dirty&&Uc===null||!o.isCollapsed()||cn(o.anchor.getNode())||n===null||o.applyDOMRange(n),Uc=null;const c=o.anchor,u=o.focus,f=c.getNode(),m=u.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
700
|
-
`)e.preventDefault(),
|
|
701
|
-
`){const r=Oe();if(ge(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void Le(e,ld,null)}}}Xy(!0,e,t)}function uN(e){const t=jt();if(e.key==null)return!0;if(_0&&Jw(e))return li(t,()=>{Eh(t,R0)}),_0=!1,R0="",!0;if((function(n){return Nt(n,"ArrowRight",{shiftKey:"any"})})(e))Le(t,y2,e);else if((function(n){return Nt(n,"ArrowRight",Mi)})(e))Le(t,QM,e);else if((function(n){return Nt(n,"ArrowLeft",{shiftKey:"any"})})(e))Le(t,b2,e);else if((function(n){return Nt(n,"ArrowLeft",Mi)})(e))Le(t,ZM,e);else if((function(n){return Nt(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))Le(t,x2,e);else if((function(n){return Nt(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))Le(t,w2,e);else if((function(n){return Nt(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))Kf=!0,Le(t,ld,e);else if((function(n){return n.key===" "})(e))Le(t,S2,e);else if((function(n){return Io&&Nt(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),Kf=!0,Le(t,Xc,!0);else if((function(n){return Nt(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))Kf=!1,Le(t,ld,e);else if((function(n){return Nt(n,"Backspace",{shiftKey:"any"})||Io&&Nt(n,"h",{ctrlKey:!0})})(e))Jw(e)?Le(t,C2,e):(e.preventDefault(),Le(t,ll,!0));else if((function(n){return n.key==="Escape"})(e))Le(t,jy,e);else if((function(n){return Nt(n,"Delete",{})||Io&&Nt(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?Le(t,A2,e):(e.preventDefault(),Le(t,ll,!1));else if((function(n){return Nt(n,"Backspace",Xw)})(e))e.preventDefault(),Le(t,ad,!0);else if((function(n){return Nt(n,"Delete",Xw)})(e))e.preventDefault(),Le(t,ad,!1);else if((function(n){return Io&&Nt(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),Le(t,sd,!0);else if((function(n){return Io&&(Nt(n,"Delete",{metaKey:!0})||Nt(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),Le(t,sd,!1);else if((function(n){return Nt(n,"b",Mi)})(e))e.preventDefault(),Le(t,ii,"bold");else if((function(n){return Nt(n,"u",Mi)})(e))e.preventDefault(),Le(t,ii,"underline");else if((function(n){return Nt(n,"i",Mi)})(e))e.preventDefault(),Le(t,ii,"italic");else if((function(n){return Nt(n,"Tab",{shiftKey:"any"})})(e))Le(t,E2,e);else if((function(n){return Nt(n,"z",Mi)})(e))e.preventDefault(),Le(t,Dy,void 0);else if((function(n){return Io?Nt(n,"z",{metaKey:!0,shiftKey:!0}):Nt(n,"y",{ctrlKey:!0})||Nt(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),Le(t,Fy,void 0);else{const n=t._editorState._selection;n===null||ge(n)?qw(e)&&(e.preventDefault(),Le(t,C0,e)):(function(r){return Nt(r,"c",Mi)})(e)?(e.preventDefault(),Le(t,cm,e)):(function(r){return Nt(r,"x",Mi)})(e)?(e.preventDefault(),Le(t,zy,e)):qw(e)&&(e.preventDefault(),Le(t,C0,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(iN,e),!0}function L2(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const qc=new Map;function D2(e){const t=WN(e.target);if(t===null)return;const n=iE(t.anchorNode);if(n===null)return;T0&&(T0=!1,li(n,()=>{const u=Ou(),f=t.anchorNode;(Gn(f)||ta(f))&&Er(Uy(u,t,n,e))}));const r=Zy(n),o=r[r.length-1],i=o._key,s=qc.get(i),c=s||o;c!==n&&Tw(t,c,!1),Tw(t,n,!0),n!==o?qc.set(i,n):s&&qc.delete(i)}function _w(e){e._lexicalHandled=!0}function Rw(e){return e._lexicalHandled===!0}function fN(e){const t=E0.get(e);if(t===void 0)return;const n=Ah.get(t);if(n===void 0)return;const r=n-1;r>=0||be(164),E0.delete(e),Ah.set(t,r),r===0&&t.removeEventListener("selectionchange",D2);const o=dm(e);Qy(o)?((function(s){if(s._parentEditor!==null){const c=Zy(s),u=c[c.length-1]._key;qc.get(u)===s&&qc.delete(u)}else qc.delete(s._key)})(o),e.__lexicalEditor=null):o&&be(198);const i=L2(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function P0(e,t,n){tr();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(c){const u=Oe();if(!ge(u)||!ae(c))return u;const{anchor:f,focus:m}=u,h=f.getNode(),v=m.getNode();return D0(h,c)&&f.set(c.__key,0,"element"),D0(v,c)&&m.set(c.__key,0,"element"),u})(e);let s=!1;if(ge(i)&&t){const c=i.anchor,u=i.focus;c.key===r&&(_h(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),u.key===r&&(_h(u,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else In(i)&&t&&e.isSelected()&&e.selectPrevious();if(ge(i)&&t&&!s){const c=e.getIndexWithinParent();dl(e),Th(i,o,c,-1)}else dl(e);n||Dr(o)||o.canBeEmpty()||!o.isEmpty()||P0(o,t),t&&i&&cn(o)&&o.isEmpty()&&o.selectEnd()}const F2=Symbol.for("ephemeral");function kh(e){return e[F2]||!1}class No{constructor(t){ce(this,"__type");ce(this,"__key");ce(this,"__parent");ce(this,"__prev");ce(this,"__next");ce(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}),DN(this,t)}static getType(){const{ownNodeType:t}=mm(this);return t===void 0&&be(64,this.name),t}static clone(t){be(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(){be(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const n=bn(t);if(n===null)break;t=n.__parent}return!1}isSelected(t){const n=t||Oe();if(n==null)return!1;const r=n.getNodes().some(o=>o.__key===this.__key);if(Ie(this))return r;if(ge(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const o=this.getParent();if(Et(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:bn(t)}getParentOrThrow(){const t=this.getParent();return t===null&&be(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const n=t.getParent();if(Dr(n))return ae(t)||t===this&&Et(t)||be(194),t;t=n}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&be(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:bn(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:bn(t)}getNextSiblings(){const t=[];let n=this.getNextSibling();for(;n!==null;)t.push(n),n=n.getNextSibling();return t}getCommonAncestor(t){const n=ae(this)?this:this.getParent(),r=ae(t)?t:t.getParent(),o=n&&r?rh(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=rh(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?xE(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&be(279),!1)))}isParentOf(t){const n=rh(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 c=ae(i)?n?i.getFirstChild():i.getLastChild():null;if(c!==null){i=c;continue}const u=n?i.getNextSibling():i.getPreviousSibling();if(u!==null){i=u;continue}const f=i.getParentOrThrow();if(o.has(f.__key)||r.push(f),f===t)break;let m=null,h=f;do{if(h===null&&be(68),m=n?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;m!==null||o.has(h.__key)||r.push(h)}while(m===null);i=m}return n||r.reverse(),r}isDirty(){const t=jt()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(kh(this))return this;const t=bn(this.__key);return t===null&&be(113),t}getWritable(){if(kh(this))return this;tr();const t=os(),n=jt(),r=t._nodeMap,o=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,c=Oe();if(c!==null&&c.setCachedNodes(null),s.has(o))return Ph(i),i;const u=vE(i);return s.add(o),Ph(u),r.set(o,u),u}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,n){be(70)}updateDOM(t,n,r){be(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){be(18,this.name)}updateFromJSON(t){return(function(n,r){const o=n.getWritable(),i=r.$;let s=i;for(const c of l2(o).flatKeys)c in r&&(s!==void 0&&s!==i||(s={...i}),s[c]=r[c]);return(o.__state||s)&&HM(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){P0(this,!0,t)}replace(t,n){tr();let r=Oe();r!==null&&(r=r.clone()),nv(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,c=t.getWritable(),u=this.getParentOrThrow().getWritable(),f=u.__size;dl(c);const m=o.getPreviousSibling(),h=o.getNextSibling(),v=o.__prev,w=o.__next,C=o.__parent;if(P0(o,!1,!0),m===null?u.__first=s:m.getWritable().__next=s,c.__prev=v,h===null?u.__last=s:h.getWritable().__prev=s,c.__next=w,c.__parent=C,u.__size=f,n&&(ae(this)&&ae(c)||be(139),this.getChildren().forEach(A=>{c.append(A)})),ge(r)){Er(r);const A=r.anchor,x=r.focus;A.key===i&&Mw(A,c),x.key===i&&Mw(x,c)}return Ua()===i&&Kn(s),c}insertAfter(t,n=!0){tr(),nv(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Oe();let c=!1,u=!1;if(i!==null){const w=t.getIndexWithinParent();if(dl(o),ge(s)){const C=i.__key,A=s.anchor,x=s.focus;c=A.type==="element"&&A.key===C&&A.offset===w+1,u=x.type==="element"&&x.key===C&&x.offset===w+1}}const f=this.getNextSibling(),m=this.getParentOrThrow().getWritable(),h=o.__key,v=r.__next;if(f===null?m.__last=h:f.getWritable().__prev=h,m.__size++,r.__next=h,o.__next=v,o.__prev=r.__key,o.__parent=r.__parent,n&&ge(s)){const w=this.getIndexWithinParent();Th(s,m,w+1);const C=m.__key;c&&s.anchor.set(C,w+2,"element"),u&&s.focus.set(C,w+2,"element")}return t}insertBefore(t,n=!0){tr(),nv(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;dl(o);const s=this.getPreviousSibling(),c=this.getParentOrThrow().getWritable(),u=r.__prev,f=this.getIndexWithinParent();s===null?c.__first=i:s.getWritable().__next=i,c.__size++,r.__prev=i,o.__prev=u,o.__next=r.__key,o.__parent=r.__parent;const m=Oe();return n&&ge(m)&&Th(m,this.getParentOrThrow(),f),t}isParentRequired(){return!1}createParentElementNode(){return Sr()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){tr();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(ae(r))return r.select();if(!Ie(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(t,n)}selectNext(t,n){tr();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(ae(r))return r.select(0,0);if(!Ie(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(t,n)}markDirty(){this.getWritable()}reconcileObservedMutation(t,n){this.markDirty()}}ce(No,"importDOM");const O0="historic",dN="history-push",cl="history-merge",pN="paste",hN="collaboration",mN="skip-scroll-into-view",gN="skip-dom-selection",vN="skip-selection-focus";class Ru extends No{static getType(){return"linebreak"}static clone(t){return new Ru(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
702
|
-
`}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&&
|
|
703
|
-
`||
|
|
704
|
-
`?o.push(
|
|
705
|
-
`),
|
|
592
|
+
*/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"]},eS={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"]},tS={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"]},nS={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"]},rS={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"]},oS={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"]},iS={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"]},sS={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"]},aS={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"]},lS={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"]},cS={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"]},uS={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"]},fS={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"]},dS={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"]},Hh=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var s,a;const o=n>0,i={[dt.INFO]:{icon:PC,color:"text-primary-600 hover:text-primary-600"},[dt.WARNING]:{icon:XC,color:"text-warning-600 hover:text-warning-600"},[dt.DANGER]:{icon:Rl,color:"text-danger-600 hover:text-danger-600"},[dt.SUCCESS]:{icon:Oy,color:"text-success-600 hover:text-success-600"}};return x.jsxs(je,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:t,className:Ee("relative",(s=i[r])==null?void 0:s.color),title:"View comments",children:[x.jsx("div",{className:"relative flex items-center justify-center",children:o?x.jsxs(x.Fragment,{children:[x.jsx(ve,{icon:OC,size:"lg"}),x.jsx(ve,{icon:(a=i[r])==null?void 0:a.icon,className:"font-bold absolute left-1/2 -translate-x-1/2 top-0.5",size:"xs",color:"white"})]}):x.jsx(ve,{icon:X4,size:"lg"})}),o&&x.jsx("span",{className:"absolute top-0.5 -right-0 flex h-3 w-3 items-center justify-center rounded-full bg-primary-600 text-[10px] text-white",children:n})]})},pS=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:xv,setPrototypeOf:qh,isFrozen:hS,getPrototypeOf:mS,getOwnPropertyDescriptor:gS}=Object;let{freeze:Nt,seal:Gt,create:Xu}=Object,{apply:ef,construct:tf}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Gt||(Gt=function(t){return t});ef||(ef=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)});tf||(tf=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),yS=Ot(Array.prototype.lastIndexOf),Vh=Ot(Array.prototype.pop),os=Ot(Array.prototype.push),vS=Ot(Array.prototype.splice),ja=Ot(String.prototype.toLowerCase),Mc=Ot(String.prototype.toString),Ic=Ot(String.prototype.match),is=Ot(String.prototype.replace),bS=Ot(String.prototype.indexOf),xS=Ot(String.prototype.trim),tn=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),ss=wS(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 ef(e,t,r)}}function wS(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tf(e,n)}}function Ce(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&&(hS(t)||(t[r]=i),o=i)}e[o]=!0}return e}function AS(e){for(let t=0;t<e.length;t++)tn(e,t)||(e[t]=null);return e}function hn(e){const t=Xu(null);for(const[n,r]of xv(e))tn(e,n)&&(Array.isArray(r)?t[n]=AS(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=hn(r):t[n]=r);return t}function as(e,t){for(;e!==null;){const r=gS(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=mS(e)}function n(){return null}return n}const Yh=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"]),Lc=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"]),Rc=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"]),CS=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"]),Dc=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"]),_S=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qh=Nt(["#text"]),Gh=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"]),Fc=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"]),Zh=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"]),ES=Gt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SS=Gt(/<%[\w\W]*|[\w\W]*%>/gm),kS=Gt(/\$\{[\w\W]*/gm),TS=Gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),NS=Gt(/^aria-[\-\w]+$/),wv=Gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OS=Gt(/^(?:\w+script|data):/i),PS=Gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Av=Gt(/^html$/i),MS=Gt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jh=Object.freeze({__proto__:null,ARIA_ATTR:NS,ATTR_WHITESPACE:PS,CUSTOM_ELEMENT:MS,DATA_ATTR:TS,DOCTYPE_NAME:Av,ERB_EXPR:SS,IS_ALLOWED_URI:wv,IS_SCRIPT_OR_DATA:OS,MUSTACHE_EXPR:ES,TMPLIT_EXPR:kS});const ls={element:1,text:3,progressingInstruction:7,comment:8,document:9},IS=function(){return typeof window>"u"?null:window},LS=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}},Xh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Cv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IS();const t=de=>Cv(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==ls.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:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=e,h=l.prototype,g=as(h,"cloneNode"),m=as(h,"remove"),y=as(h,"nextSibling"),v=as(h,"childNodes"),b=as(h,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let A,w="";const{implementation:_,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:O}=n,{importNode:P}=r;let I=Xh();t.isSupported=typeof xv=="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}=Jh;let{IS_ALLOWED_URI:L}=Jh,F=null;const K=Ce({},[...Yh,...Lc,...Rc,...Dc,...Qh]);let B=null;const J=Ce({},[...Gh,...Fc,...Zh,...wa]);let V=Object.seal(Xu(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(Xu(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,ht=!1,Ko=!1,es=!1,Mn=!1,Hr=!1,Ho=!1,se=!0,De=!1;const lt="user-content-";let Mt=!0,et=!1,Kt={},At=null;const cr=Ce({},["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 qo=null;const $t=Ce({},["audio","video","img","source","image","track"]);let qr=null;const ur=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vr="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml";let Vo=In,ic=!1,sc=null;const p1=Ce({},[Vr,fr,In],Mc);let aa=Ce({},["mi","mo","mn","ms","mtext"]),la=Ce({},["annotation-xml"]);const h1=Ce({},["title","style","font","a","script"]);let ts=null;const m1=["application/xhtml+xml","text/html"],g1="text/html";let Qe=null,Yo=null;const y1=n.createElement("form"),fp=function(N){return N instanceof RegExp||N instanceof Function},ac=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Yo&&Yo===N)){if((!N||typeof N!="object")&&(N={}),N=hn(N),ts=m1.indexOf(N.PARSER_MEDIA_TYPE)===-1?g1:N.PARSER_MEDIA_TYPE,Qe=ts==="application/xhtml+xml"?Mc:ja,F=tn(N,"ALLOWED_TAGS")?Ce({},N.ALLOWED_TAGS,Qe):K,B=tn(N,"ALLOWED_ATTR")?Ce({},N.ALLOWED_ATTR,Qe):J,sc=tn(N,"ALLOWED_NAMESPACES")?Ce({},N.ALLOWED_NAMESPACES,Mc):p1,qr=tn(N,"ADD_URI_SAFE_ATTR")?Ce(hn(ur),N.ADD_URI_SAFE_ATTR,Qe):ur,qo=tn(N,"ADD_DATA_URI_TAGS")?Ce(hn($t),N.ADD_DATA_URI_TAGS,Qe):$t,At=tn(N,"FORBID_CONTENTS")?Ce({},N.FORBID_CONTENTS,Qe):cr,ee=tn(N,"FORBID_TAGS")?Ce({},N.FORBID_TAGS,Qe):hn({}),te=tn(N,"FORBID_ATTR")?Ce({},N.FORBID_ATTR,Qe):hn({}),Kt=tn(N,"USE_PROFILES")?N.USE_PROFILES:!1,ye=N.ALLOW_ARIA_ATTR!==!1,me=N.ALLOW_DATA_ATTR!==!1,ze=N.ALLOW_UNKNOWN_PROTOCOLS||!1,G=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=N.SAFE_FOR_TEMPLATES||!1,zt=N.SAFE_FOR_XML!==!1,ht=N.WHOLE_DOCUMENT||!1,Mn=N.RETURN_DOM||!1,Hr=N.RETURN_DOM_FRAGMENT||!1,Ho=N.RETURN_TRUSTED_TYPE||!1,es=N.FORCE_BODY||!1,se=N.SANITIZE_DOM!==!1,De=N.SANITIZE_NAMED_PROPS||!1,Mt=N.KEEP_CONTENT!==!1,et=N.IN_PLACE||!1,L=N.ALLOWED_URI_REGEXP||wv,Vo=N.NAMESPACE||In,aa=N.MATHML_TEXT_INTEGRATION_POINTS||aa,la=N.HTML_INTEGRATION_POINTS||la,V=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&fp(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&fp(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(me=!1),Hr&&(Mn=!0),Kt&&(F=Ce({},Qh),B=[],Kt.html===!0&&(Ce(F,Yh),Ce(B,Gh)),Kt.svg===!0&&(Ce(F,Lc),Ce(B,Fc),Ce(B,wa)),Kt.svgFilters===!0&&(Ce(F,Rc),Ce(B,Fc),Ce(B,wa)),Kt.mathMl===!0&&(Ce(F,Dc),Ce(B,Zh),Ce(B,wa))),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?he.tagCheck=N.ADD_TAGS:(F===K&&(F=hn(F)),Ce(F,N.ADD_TAGS,Qe))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?he.attributeCheck=N.ADD_ATTR:(B===J&&(B=hn(B)),Ce(B,N.ADD_ATTR,Qe))),N.ADD_URI_SAFE_ATTR&&Ce(qr,N.ADD_URI_SAFE_ATTR,Qe),N.FORBID_CONTENTS&&(At===cr&&(At=hn(At)),Ce(At,N.FORBID_CONTENTS,Qe)),N.ADD_FORBID_CONTENTS&&(At===cr&&(At=hn(At)),Ce(At,N.ADD_FORBID_CONTENTS,Qe)),Mt&&(F["#text"]=!0),ht&&Ce(F,["html","head","body"]),F.table&&(Ce(F,["tbody"]),delete ee.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw ss('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ss('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=N.TRUSTED_TYPES_POLICY,w=A.createHTML("")}else A===void 0&&(A=LS(p,o)),A!==null&&typeof w=="string"&&(w=A.createHTML(""));Nt&&Nt(N),Yo=N}},dp=Ce({},[...Lc,...Rc,...CS]),pp=Ce({},[...Dc,..._S]),v1=function(N){let q=b(N);(!q||!q.tagName)&&(q={namespaceURI:Vo,tagName:"template"});const ce=ja(N.tagName),Ue=ja(q.tagName);return sc[N.namespaceURI]?N.namespaceURI===fr?q.namespaceURI===In?ce==="svg":q.namespaceURI===Vr?ce==="svg"&&(Ue==="annotation-xml"||aa[Ue]):!!dp[ce]:N.namespaceURI===Vr?q.namespaceURI===In?ce==="math":q.namespaceURI===fr?ce==="math"&&la[Ue]:!!pp[ce]:N.namespaceURI===In?q.namespaceURI===fr&&!la[Ue]||q.namespaceURI===Vr&&!aa[Ue]?!1:!pp[ce]&&(h1[ce]||!dp[ce]):!!(ts==="application/xhtml+xml"&&sc[N.namespaceURI]):!1},pn=function(N){os(t.removed,{element:N});try{b(N).removeChild(N)}catch{m(N)}},Yr=function(N,q){try{os(t.removed,{attribute:q.getAttributeNode(N),from:q})}catch{os(t.removed,{attribute:null,from:q})}if(q.removeAttribute(N),N==="is")if(Mn||Hr)try{pn(q)}catch{}else try{q.setAttribute(N,"")}catch{}},hp=function(N){let q=null,ce=null;if(es)N="<remove></remove>"+N;else{const Ve=Ic(N,/^[\r\n\t ]+/);ce=Ve&&Ve[0]}ts==="application/xhtml+xml"&&Vo===In&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Ue=A?A.createHTML(N):N;if(Vo===In)try{q=new d().parseFromString(Ue,ts)}catch{}if(!q||!q.documentElement){q=_.createDocument(Vo,"template",null);try{q.documentElement.innerHTML=ic?w:Ue}catch{}}const mt=q.body||q.documentElement;return N&&ce&&mt.insertBefore(n.createTextNode(ce),mt.childNodes[0]||null),Vo===In?O.call(q,ht?"html":"body")[0]:ht?q.documentElement:mt},mp=function(N){return E.call(N.ownerDocument||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},lc=function(N){return N instanceof f&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof u)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},gp=function(N){return typeof a=="function"&&N instanceof a};function Ln(de,N,q){xa(de,ce=>{ce.call(t,N,q,Yo)})}const yp=function(N){let q=null;if(Ln(I.beforeSanitizeElements,N,null),lc(N))return pn(N),!0;const ce=Qe(N.nodeName);if(Ln(I.uponSanitizeElement,N,{tagName:ce,allowedTags:F}),zt&&N.hasChildNodes()&&!gp(N.firstElementChild)&&Ct(/<[/\w!]/g,N.innerHTML)&&Ct(/<[/\w!]/g,N.textContent)||N.nodeType===ls.progressingInstruction||zt&&N.nodeType===ls.comment&&Ct(/<[/\w]/g,N.data))return pn(N),!0;if(!(he.tagCheck instanceof Function&&he.tagCheck(ce))&&(!F[ce]||ee[ce])){if(!ee[ce]&&bp(ce)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,ce)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ce)))return!1;if(Mt&&!At[ce]){const Ue=b(N)||N.parentNode,mt=v(N)||N.childNodes;if(mt&&Ue){const Ve=mt.length;for(let It=Ve-1;It>=0;--It){const Rn=g(mt[It],!0);Rn.__removalCount=(N.__removalCount||0)+1,Ue.insertBefore(Rn,y(N))}}}return pn(N),!0}return N instanceof l&&!v1(N)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&Ct(/<\/no(script|embed|frames)/i,N.innerHTML)?(pn(N),!0):(qe&&N.nodeType===ls.text&&(q=N.textContent,xa([W,j,z],Ue=>{q=is(q,Ue," ")}),N.textContent!==q&&(os(t.removed,{element:N.cloneNode()}),N.textContent=q)),Ln(I.afterSanitizeElements,N,null),!1)},vp=function(N,q,ce){if(se&&(q==="id"||q==="name")&&(ce in n||ce in y1))return!1;if(!(me&&!te[q]&&Ct(Y,q))){if(!(ye&&Ct(Q,q))){if(!(he.attributeCheck instanceof Function&&he.attributeCheck(q,N))){if(!B[q]||te[q]){if(!(bp(N)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,N)||V.tagNameCheck instanceof Function&&V.tagNameCheck(N))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,q)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(q,N))||q==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,ce)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ce))))return!1}else if(!qr[q]){if(!Ct(L,is(ce,M,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&N!=="script"&&bS(ce,"data:")===0&&qo[N])){if(!(ze&&!Ct(oe,is(ce,M,"")))){if(ce)return!1}}}}}}}return!0},bp=function(N){return N!=="annotation-xml"&&Ic(N,re)},xp=function(N){Ln(I.beforeSanitizeAttributes,N,null);const{attributes:q}=N;if(!q||lc(N))return;const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let Ue=q.length;for(;Ue--;){const mt=q[Ue],{name:Ve,namespaceURI:It,value:Rn}=mt,Qo=Qe(Ve),cc=Rn;let ct=Ve==="value"?cc:xS(cc);if(ce.attrName=Qo,ce.attrValue=ct,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Ln(I.uponSanitizeAttribute,N,ce),ct=ce.attrValue,De&&(Qo==="id"||Qo==="name")&&(Yr(Ve,N),ct=lt+ct),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,ct)){Yr(Ve,N);continue}if(Qo==="attributename"&&Ic(ct,"href")){Yr(Ve,N);continue}if(ce.forceKeepAttr)continue;if(!ce.keepAttr){Yr(Ve,N);continue}if(!G&&Ct(/\/>/i,ct)){Yr(Ve,N);continue}qe&&xa([W,j,z],Ap=>{ct=is(ct,Ap," ")});const wp=Qe(N.nodeName);if(!vp(wp,Qo,ct)){Yr(Ve,N);continue}if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!It)switch(p.getAttributeType(wp,Qo)){case"TrustedHTML":{ct=A.createHTML(ct);break}case"TrustedScriptURL":{ct=A.createScriptURL(ct);break}}if(ct!==cc)try{It?N.setAttributeNS(It,Ve,ct):N.setAttribute(Ve,ct),lc(N)?pn(N):Vh(t.removed)}catch{Yr(Ve,N)}}Ln(I.afterSanitizeAttributes,N,null)},b1=function de(N){let q=null;const ce=mp(N);for(Ln(I.beforeSanitizeShadowDOM,N,null);q=ce.nextNode();)Ln(I.uponSanitizeShadowNode,q,null),yp(q),xp(q),q.content instanceof i&&de(q.content);Ln(I.afterSanitizeShadowDOM,N,null)};return t.sanitize=function(de){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ce=null,Ue=null,mt=null;if(ic=!de,ic&&(de="<!-->"),typeof de!="string"&&!gp(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw ss("dirty is not a string, aborting")}else throw ss("toString is not a function");if(!t.isSupported)return de;if(Ko||ac(N),t.removed=[],typeof de=="string"&&(et=!1),et){if(de.nodeName){const Rn=Qe(de.nodeName);if(!F[Rn]||ee[Rn])throw ss("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)q=hp("<!---->"),ce=q.ownerDocument.importNode(de,!0),ce.nodeType===ls.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?q=ce:q.appendChild(ce);else{if(!Mn&&!qe&&!ht&&de.indexOf("<")===-1)return A&&Ho?A.createHTML(de):de;if(q=hp(de),!q)return Mn?null:Ho?w:""}q&&es&&pn(q.firstChild);const Ve=mp(et?de:q);for(;Ue=Ve.nextNode();)yp(Ue),xp(Ue),Ue.content instanceof i&&b1(Ue.content);if(et)return de;if(Mn){if(Hr)for(mt=S.call(q.ownerDocument);q.firstChild;)mt.appendChild(q.firstChild);else mt=q;return(B.shadowroot||B.shadowrootmode)&&(mt=P.call(r,mt,!0)),mt}let It=ht?q.outerHTML:q.innerHTML;return ht&&F["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ct(Av,q.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
593
|
+
`+It),qe&&xa([W,j,z],Rn=>{It=is(It,Rn," ")}),A&&Ho?A.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ac(de),Ko=!0},t.clearConfig=function(){Yo=null,Ko=!1},t.isValidAttribute=function(de,N,q){Yo||ac({});const ce=Qe(de),Ue=Qe(N);return vp(ce,Ue,q)},t.addHook=function(de,N){typeof N=="function"&&os(I[de],N)},t.removeHook=function(de,N){if(N!==void 0){const q=yS(I[de],N);return q===-1?void 0:vS(I[de],q,1)[0]}return Vh(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=Xh()},t}var nf=Cv();const RS="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",rf=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),jc=e=>atob(e),DS=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:l})=>{const c={...t?{action:t}:{},taskInstanceId:n,taskVerified:l,timezone:r,commentId:o,...i?{comment:rf(i)}:{},commentType:s,hasAssets:a},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",e||""),await(await fetch(`${nr}/manage-comment`,{method:"POST",headers:u,body:JSON.stringify(c)})).json()},_v=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return YC;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return ah;case"csv":return LC;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return ah;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return zC;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return IC;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return $C;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 VC;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 KC;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 HC;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 BC;default:return ZC}},FS=(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:jS({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),jS=({assetPath:e,mimeType:t,fileName:n})=>e?`${nr}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",md=e=>e.startsWith("image/"),zS=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)}}),$S=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",US=async(e,t,n,r)=>{var h;const o=e.name.split(".").pop(),i=$S(e,o),s=await zS(e),a=((h=e.name)==null?void 0:h.split("."))||[];a.pop();const l=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,c=s.length,u={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:l,fileSize:c,sequenceOrder:n},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",r||""),await(await fetch(`${nr}/upload-comment-asset`,{method:"POST",headers:f,body:JSON.stringify(u)})).json()},em=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${nr}/comments/${e}`,{method:"GET",headers:n})).json()},of=(e,t)=>["comments",t,+e],BS=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=Fr(),o={queryKey:of(e,n),queryFn:async()=>await em({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Cl(o,r),s=l=>{r.prefetchQuery({...o,queryKey:of(l,n),queryFn:async()=>await em({taskInstanceId:l.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},WS=(e,t,n,r)=>{const o=of(t,r.author),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},KS=(e,t,n)=>{const r=["comments",t],o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},HS=(e,t,n)=>{const r=["comments",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})}},qS=({playbookInstanceId:e})=>{const{queryClient:t}=Fr(),n=Qf({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:l,comment:c,commentType:u,hasAssets:f,attachments:d,username:p,taskVerified:h}=o,g=await DS({username:p,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:l,comment:c,commentType:u,hasAssets:f,taskVerified:h});return g.commentId&&f&&d&&await Promise.all(d.map(m=>US(m.originFile,g.commentId,m.sequenceOrder,p))),g},onMutate:async o=>{var f;const{action:i,taskInstanceId:s}=o,a=["comments",s],l=`temp-${crypto.randomUUID()}`,c=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const u=t.getQueryData(a);return i==="delete"&&o.commentId&&KS(t,s,o.commentId),i==="add"&&WS(t,s,+e,{commentId:l,author:o.username,comment:rf(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((f=o.attachments)==null?void 0:f.map(d=>({assetId:c,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&HS(t,s,{author:o.username,comment:rf(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:u,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(["comments",s.taskInstanceId],s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:["comments",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 Ev="carousel",Sv="controller",VS="navigation",YS="no-scroll",gd="portal",QS="root",kv="toolbar",tm="zoom",zc="loading",$c="error",Uc="complete",GS="placeholder",ZS=e=>`active-slide-${e}`,JS="fullsize",yd="flex_center",XS="no_scroll",Tv="no_scroll_padding",vd="slide",Nv="slide_wrapper",ek="slide_wrapper_interactive",Xr="prev",eo="next",nm="swipe",Mi="close",Ov="onPointerDown",Pv="onPointerMove",Mv="onPointerUp",Iv="onPointerLeave",Lv="onPointerCancel",bd="onKeyDown",tk="onKeyUp",xd="onWheel",nk="Escape",rk="ArrowLeft",ok="ArrowRight",ik="button",sf="icon",Rv="contain",rm="cover",Dv="Unknown action type",Fv="yarl__";function En(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${Fv}${e}`}function Dt(e){return`--${Fv}${e}`}function Js(e,t){return`${e}${t?`_${t}`:""}`}function wd(e){return t=>Js(e,t)}function Ii(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function sk(e,t,n){return Ii(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 sr(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 Ki(e){return e.type===void 0||e.type==="image"}function Ed(e,t){return e.imageFit===rm||e.imageFit!==Rv&&t===rm}function Ul(e){return typeof e=="string"?Number.parseInt(e,10):e}function ol(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Ul(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function ak(e,t){const n=ol(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 lk(){return(Cd()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Sd(e,t){return t>0?(e%t+t)%t:0}function jv(e){return e.length>0}function zv(e,t){return e[Sd(t,e.length)]}function af(e,t){return jv(e)?zv(e,t):void 0}function ck(e){return Ki(e)?e.src:void 0}function uk(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 fk(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const dk=Number(C.version.split(".")[0])>=19;function pk(e){return{inert:dk?e:e?"":void 0}}function hk(e){e.scrollTop}const lf={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Mi]},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:Rv,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 zr(e,t){return{name:e,component:t}}function nt(e,t){return{module:e,children:t}}function $v(e,t,n){return e.module.name===t?n(e):e.children?[nt(e.module,e.children.flatMap(r=>{var o;return(o=$v(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function Jo(e,t,n){return e.flatMap(r=>{var o;return(o=$v(r,t,n))!==null&&o!==void 0?o:[]})}function mk(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=Jo(r,p,g=>[nt(h,[g])])},s=(p,h)=>{r=Jo(r,p,g=>[nt(g.module,[nt(h,g.children)])])},a=(p,h,g)=>{r=Jo(r,p,m=>{var y;return[nt(m.module,[...g?[nt(h)]:[],...(y=m.children)!==null&&y!==void 0?y:[],...g?[]:[nt(h)]])]})},l=(p,h,g)=>{r=Jo(r,p,m=>[...g?[nt(h)]:[],m,...g?[]:[nt(h)]])},c=p=>{s(Sv,p)},u=(p,h)=>{r=Jo(r,p,g=>[nt(h,g.children)])},f=p=>{r=Jo(r,p,h=>h.children)},d=p=>{n.push(p)};return t.forEach(p=>{p({contains:o,addParent:i,append:s,addChild:a,addSibling:l,addModule:c,replace:u,remove:f,augment:d})}),{config:r,augmentation:p=>n.reduce((h,g)=>g(h),p)}}const Uv=C.createContext(null),Bv=sr("useA11yContext","A11yContext",Uv);function gk({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,l)=>{const c=u=>f=>{var d;f.currentTarget.contains(f.relatedTarget)||n(u),(d=u?a:l)===null||d===void 0||d(f)};return{onFocus:c(!0),onBlur:c(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(Uv.Provider,{value:i},e)}const Wv=C.createContext(null),Bl=sr("useDocument","DocumentContext",Wv);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(Wv.Provider,{value:n},t)}const Kv=C.createContext(null),Wl=sr("useEvents","EventsContext",Kv);function vk({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 l;(l=t[s])===null||l===void 0||l.splice(0,t[s].length,...t[s].filter(c=>c!==a))};return{publish:(...[s,a])=>{var l;(l=t[s])===null||l===void 0||l.forEach(c=>c(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(Kv.Provider,{value:n},e)}const Hv=C.createContext(null),Jt=sr("useLightboxProps","LightboxPropsContext",Hv);function bk({children:e,...t}){return C.createElement(Hv.Provider,{value:t},e)}const qv=C.createContext(null),$r=sr("useLightboxState","LightboxStateContext",qv),Vv=C.createContext(null),xk=sr("useLightboxDispatch","LightboxDispatchContext",Vv);function wk(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=af(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:af(t.slides,t.index)}:e;default:throw new Error(Dv)}}function Ak({slides:e,index:t,children:n}){const[r,o]=C.useReducer(wk,{slides:e,currentIndex:t,globalIndex:t,currentSlide:af(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(Vv.Provider,{value:o},C.createElement(qv.Provider,{value:i},n))}const Yv=C.createContext(null),Kl=sr("useTimeouts","TimeoutsContext",Yv);function Ck({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 l=window.setTimeout(()=>{r(l),s()},a);return t.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(Yv.Provider,{value:n},e)}const kd=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},l){const{styles:c,labels:u}=Jt(),f=Ii(u,t);return C.createElement("button",{ref:l,type:"button",title:f,"aria-label":f,className:En(Se(ik),n),onClick:i,style:{...s,...c.button},...a},o?o():C.createElement(r,{className:Se(sf),style:c.icon}))});function _k(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 $o(e,t){return _k(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Ek=$o("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"})),Sk=$o("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),kk=$o("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Tk=$o("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)`})))),Nk=$o("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"})),Nn=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 Ok(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Ul);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 om(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=Td();return Nn(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:l,duration:c,easing:u,onfinish:f}=t(n.current,e.current.getBoundingClientRect(),Ok(e.current))||{};if(l&&c){(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,l,{duration:c,easing:u})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,f==null||f()})}}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 Qv(){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),l=c=>parseFloat(c)||0;r({width:Math.round(i.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(i.clientHeight-l(a.paddingTop)-l(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}=Kl();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 Nn(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function im(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function cf(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{im(e,n),im(t,n)},[e,t])}function Pk(e,t=!1){const n=C.useRef(!1);Nn(()=>{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 Nn(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function Mk(){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(Ov,o),onPointerMove:o=>t(Pv,o),onPointerUp:o=>t(Mv,o),onPointerLeave:o=>t(Iv,o),onPointerCancel:o=>t(Lv,o),onKeyDown:o=>t(bd,o),onKeyUp:o=>t(tk,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 sm(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 Bc=wd("slide"),Wc=wd("slide_image");function il({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:l,style:c}){var u,f,d,p,h,g,m,y;const[v,b]=C.useState(zc),{publish:A}=Wl(),{setTimeout:w}=Kl(),_=C.useRef(null);C.useEffect(()=>{t===0&&A(ZS(v))},[t,v,A]);const E=Le(K=>{("decode"in K?K.decode():Promise.resolve()).catch(()=>{}).then(()=>{K.parentNode&&(b(Uc),w(()=>{a==null||a(K)},0))})}),S=C.useCallback(K=>{_.current=K,K!=null&&K.complete&&E(K)},[E]),O=C.useCallback(K=>{E(K.currentTarget)},[E]),P=Le(()=>{b($c),l==null||l()}),I=Ed(e,o),W=(K,B)=>Number.isFinite(K)?K:B,j=W(Math.max(...((f=(u=e.srcSet)===null||u===void 0?void 0:u.map(K=>K.width))!==null&&f!==void 0?f:[]).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:O,onError:P,onClick:s,draggable:!1,className:En(Se(Wc()),I&&Se(Wc("cover")),v!==Uc&&Se(Wc("loading")),L),style:{...Y,...c,...re},...F,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:Q,src:e.src}),v!==Uc&&C.createElement("div",{className:Se(Bc(GS))},v===zc&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(Tk,{className:En(Se(sf),Se(Bc(zc)))})),v===$c&&(n!=null&&n.iconError?n.iconError():C.createElement(Nk,{className:En(Se(sf),Se(Bc($c)))}))))}const Ik=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:l}=Bv();return C.createElement(yk,{nodeRef:a},C.createElement("div",{ref:cf(s,a),className:En(Se("root"),t),...l(r,o),...i},n))});var gt;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(gt||(gt={}));function Gv(e,t,n,r,o){C.useEffect(()=>o?()=>{}:Ad(e(Ov,t),e(Pv,n),e(Mv,r),e(Iv,r),e(Lv,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 Kc=30;function Lk({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,l,c,u,f,d,p,h,g,m){const y=C.useRef(0),v=C.useRef([]),b=C.useRef(void 0),A=C.useRef(0),w=C.useRef(nn.NONE),_=C.useCallback(j=>{b.current===j.pointerId&&(b.current=void 0,w.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),[]),O=Le(j=>{E(j)}),P=(j,z)=>f&&j>z||u&&j<-z,I=Le(j=>{const z=S(j);if(z)if(b.current===j.pointerId){const Y=Date.now()-A.current,Q=y.current;w.current===nn.SWIPE?Math.abs(Q)>.3*o||Math.abs(Q)>5&&Y<i?l(Q,Y):c(Q):w.current===nn.PULL&&(P(Q,2*Kc)?h(Q,Y):g(Q)),y.current=0,w.current=nn.NONE}else{const{target:Y}=j;t&&Y instanceof HTMLElement&&Y===z.target&&(Y.classList.contains(Se(vd))||Y.classList.contains(Se(Nv)))&&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,A.current=Date.now(),w.current=re};Math.abs(Q)>Math.abs(oe)&&Math.abs(Q)>Kc&&r(Q)?e||(M(nn.SWIPE),s()):Math.abs(oe)>Math.abs(Q)&&P(oe,Kc)&&(M(nn.PULL),d())}else Y&&(w.current===nn.SWIPE?(y.current=Q,a(Q)):w.current===nn.PULL&&(y.current=oe,p(oe)))}});Gv(n,O,W,I)}function Rk({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 Dk(e,t,n,r,o,i,s,a,l){const c=C.useRef(0),u=C.useRef(0),f=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}=Kl(),v=C.useCallback(()=>{f.current&&(y(f.current),f.current=void 0)},[y]),b=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),A=Le(()=>{e!==gt.SWIPE&&(c.current=0,g.current=0,v(),b())});C.useEffect(A,[e,A]);const w=Le(E=>{d.current=void 0,c.current===E&&l(c.current)}),_=Le(E=>{if(E.ctrlKey||Math.abs(E.deltaY)>Math.abs(E.deltaX))return;const S=O=>{p.current=O,y(h.current),h.current=O>0?m(()=>{p.current=0,h.current=void 0},300):void 0};if(e===gt.NONE){if(Math.abs(E.deltaX)<=1.2*Math.abs(p.current)){S(E.deltaX);return}if(!n(-E.deltaX))return;if(u.current+=E.deltaX,v(),Math.abs(u.current)>30)u.current=0,S(0),g.current=Date.now(),i();else{const O=u.current;f.current=m(()=>{f.current=void 0,O===u.current&&(u.current=0)},o)}}else if(e===gt.SWIPE){let O=c.current-E.deltaX;if(O=Math.min(Math.abs(O),r)*Math.sign(O),c.current=O,s(O),b(),Math.abs(O)>.2*r){S(E.deltaX),a(O,Date.now()-g.current);return}d.current=m(()=>w(O),2*o)}else S(E.deltaX)});C.useEffect(()=>t(xd,_),[t,_])}const am=wd("container"),Zv=C.createContext(null),ar=sr("useController","ControllerContext",Zv);function Fk({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:l}=t,{closeOnPullUp:c,closeOnPullDown:u,preventDefaultWheelX:f,preventDefaultWheelY:d}=i,[p,h]=C.useState(),g=$r(),m=xk(),[y,v]=C.useState(gt.NONE),b=C.useRef(0),A=C.useRef(0),w=C.useRef(1),{registerSensors:_,subscribeSensors:E}=Mk(),{subscribe:S,publish:O}=Wl(),P=Ua(),I=Ua(),W=Ua(),{containerRef:j,setContainerRef:z,containerRect:Y}=Qv(),Q=cf(Rk({preventDefaultWheelX:f,preventDefaultWheelY:d}),z),oe=C.useRef(null),M=cf(oe,void 0),{getOwnerDocument:re}=Bl(),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=>O(Xr,se),[O]),ee=C.useCallback(se=>O(eo,se),[O]),te=C.useCallback(()=>O(Mi),[O]),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,lt;A.current=se,w.current=(()=>{const Kt=u&&se>0?se:c&&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`),(lt=j.current)===null||lt===void 0||lt.style.setProperty(Dt("pull_opacity"),`${w.current}`)},{prepareAnimation:ze}=om(oe,(se,De,lt)=>{if(oe.current&&Y)return{keyframes:[{transform:`translate(0, ${se.rect.y-De.y+lt.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),G=(se,De)=>{if(c||u){me(se);let lt=0;oe.current&&(lt=o.fade*(De?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:w.current,duration:lt})),W(()=>{me(0),v(gt.NONE)},lt),v(gt.ANIMATION),De||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=om(oe,(se,De,lt)=>{var Mt;if(oe.current&&Y&&(!((Mt=g.animation)===null||Mt===void 0)&&Mt.duration)){const et=ol(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+lt.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),ht=Le(se=>{var De,lt;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 cr=(lt=se.count)!==null&<!==void 0?lt:1;let qo=gt.ANIMATION,$t=et*cr;if(!At){const ur=Y==null?void 0:Y.width,Vr=se.duration||0,fr=ur?et/ur*Math.abs(Mt):et;cr!==0?(Vr<fr?$t=$t/fr*Math.max(Vr,fr/5):ur&&($t=et/ur*(ur-Math.abs(Mt))),At=F(Mt)>0?Xr:eo):$t=et/2}let qr=0;At===Xr?he(F(1))?qr=-cr:(qo=gt.NONE,$t=et):At===eo&&(he(F(-1))?qr=cr:(qo=gt.NONE,$t=et)),$t=Math.round($t),I(()=>{ye(0),v(gt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:g.globalIndex}),v(qo),O(nm,{type:"swipe",increment:qr,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 Ko=[E,he,(Y==null?void 0:Y.width)||0,o.swipe,()=>v(gt.SWIPE),se=>ye(se),(se,De)=>ht({offset:se,duration:De,count:1}),se=>ht({offset:se,count:0})],es=[()=>{u&&v(gt.PULL)},se=>me(se),se=>G(se),se=>G(se,!0)];Lk(i,...Ko,c,u,...es,te),Dk(y,...Ko);const Mn=Le(()=>{i.focus&&re().querySelector(`.${Se(gd)} .${Se(am())}`)&&K()});C.useEffect(Mn,[Mn]);const Hr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:g.currentIndex})});C.useEffect(Hr,[g.globalIndex,Hr]),C.useEffect(()=>Ad(S(Xr,se=>ht({direction:Xr,...se})),S(eo,se=>ht({direction:eo,...se})),S(nm,se=>m(se))),[S,ht,m]);const Ho=C.useMemo(()=>({prev:V,next:ee,close:te,focus:K,slideRect:Y?ak(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:En(Se(am()),Se(yd)),style:{...y===gt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(b.current)}px`}:null,...y===gt.PULL?{[Dt("pull_offset")]:`${Math.round(A.current)}px`,[Dt("pull_opacity")]:`${w.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,..._},Y&&C.createElement(Zv.Provider,{value:Ho},e,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const jk=zr(Sv,Fk);function Gr(e){return Js(Ev,e)}function lm(e){return Js(vd,e)}function zk({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=$r(),{slideRect:i,focus:s}=ar(),{render:a,carousel:{imageFit:l,imageProps:c},on:{click:u},styles:{slide:f},labels:d}=Jt(),{getOwnerDocument:p}=Bl(),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 A=(m=a.slide)===null||m===void 0?void 0:m.call(a,{slide:e,offset:t,rect:i});return!A&&Ki(e)&&(A=C.createElement(il,{slide:e,offset:t,render:a,rect:i,imageFit:l,imageProps:c,onClick:h?void 0:()=>u==null?void 0:u({index:r})})),A?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:w})=>w))({slide:e,children:A}),(b=a.slideFooter)===null||b===void 0?void 0:b.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:En(Se(lm()),!h&&Se(lm("current")),Se(yd)),...pk(h),style:f,role:"group","aria-roledescription":Ii(d,"Slide"),"aria-label":sk(d,o,r+t)},g())}function $k(){const e=Jt().styles.slide;return C.createElement("div",{className:Se(vd),style:e})}function Uk({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=$r(),{setCarouselRef:i}=ar(),{autoPlaying:s,focusWithin:a}=Bv(),l=ol(e.spacing),c=ol(e.padding),u=fk(e,n,1),f=[];if(jv(n))for(let d=r-u;d<=r+u;d+=1){const p=zv(n,d),h=o-r+d,g=e.finite&&(d<0||d>n.length-1);f.push(g?{key:h}:{key:[`${h}`,ck(p)].filter(Boolean).join("|"),offset:d-r,slide:p})}return C.createElement("div",{ref:i,className:En(Se(Gr()),f.length>0&&Se(Gr("with_slides"))),style:{[`${Dt(Gr("slides_count"))}`]:f.length,[`${Dt(Gr("spacing_px"))}`]:l.pixel||0,[`${Dt(Gr("spacing_percent"))}`]:l.percent||0,[`${Dt(Gr("padding_px"))}`]:c.pixel||0,[`${Dt(Gr("padding_percent"))}`]:c.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Ii(t,"Carousel"),"aria-label":Ii(t,"Photo gallery")},f.map(({key:d,slide:p,offset:h})=>p?C.createElement(zk,{key:d,slide:p,offset:h}):C.createElement($k,{key:d})))}const Bk=zr(Ev,Uk);function Jv(){const{carousel:e}=Jt(),{slides:t,currentIndex:n}=$r(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function Wk(e){var t;const n=Nd(),{publish:r}=Wl(),{animation:o}=Jt(),{prevDisabled:i,nextDisabled:s}=Jv(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,l=sm(()=>r(Xr),a),c=sm(()=>r(eo),a),u=Le(f=>{switch(f.key){case nk:r(Mi);break;case rk:(n?s:i)||(n?c:l)();break;case ok:(n?i:s)||(n?l:c)();break}});C.useEffect(()=>e(bd,u),[e,u])}function cm({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,...Pk(ar().focus,i)})}function Kk({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=ar(),{prevDisabled:l,nextDisabled:c}=Jv();return Wk(a),C.createElement(C.Fragment,null,e?e():C.createElement(cm,{label:"Previous",action:Xr,icon:Sk,renderIcon:n,style:o.navigationPrev,disabled:l,onClick:i}),t?t():C.createElement(cm,{label:"Next",action:eo,icon:kk,renderIcon:r,style:o.navigationNext,disabled:c,onClick:s}))}const Hk=zr(VS,Kk),um=Se(XS),qk=Se(Tv);function Vk(e){return"style"in e}function fm(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,`${(Ul(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function Yk({noScroll:{disabled:e},children:t}){const n=Nd(),{getOwnerDocument:r,getOwnerWindow:o}=Bl();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:l}=r(),c=Math.round(s.innerWidth-l.clientWidth);if(c>0){i.push(fm(a,c,n));const u=a.getElementsByTagName("*");for(let f=0;f<u.length;f+=1){const d=u[f];Vk(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(qk)&&i.push(fm(d,c,n))}}return a.classList.add(um),()=>{a.classList.remove(um),i.forEach(u=>u())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const Qk=zr(YS,Yk);function dm(e){return Js(gd,e)}function pm(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function Gk({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[l,c]=C.useState(!1),[u,f]=C.useState(!1),d=C.useRef([]),p=C.useRef(null),{setTimeout:h}=Kl(),{subscribe:g}=Wl(),y=Td()?0:t.fade;C.useEffect(()=>(c(!0),()=>{c(!1),f(!1)}),[]);const v=Le(()=>{d.current.forEach(_=>_()),d.current=[]}),b=Le(()=>{var _;f(!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(Mi,b),[g,b]);const A=Le(_=>{var E,S,O;hk(_),f(!0),(E=o.entering)===null||E===void 0||E.call(o);const P=(O=(S=_.parentNode)===null||S===void 0?void 0:S.children)!==null&&O!==void 0?O:[];for(let I=0;I<P.length;I+=1){const W=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf(W.tagName)===-1&&W!==_&&(d.current.push(pm(W,"inert","")),d.current.push(pm(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)}),w=C.useCallback(_=>{_?A(_):v()},[A,v]);return l?Tn.createPortal(C.createElement(Ik,{ref:w,className:En(r,Se(dm()),Se(Tv),u&&Se(dm("open"))),"aria-modal":!0,role:"dialog","aria-label":Ii(a,"Lightbox"),style:{...t.fade!==lf.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==lf.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 Zk=zr(gd,Gk);function Jk({children:e}){return C.createElement(C.Fragment,null,e)}const Xk=zr(QS,Jk);function e3(e){return Js(kv,e)}function t3({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ar(),{setContainerRef:s,containerRect:a}=Qv();Nn(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const l=()=>t?t():C.createElement(kd,{key:Mi,label:"Close",icon:Ek,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(e3())},e==null?void 0:e.map(c=>c===Mi?l():c))}const n3=zr(kv,t3);function Xv(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=>Xv(r,t)))}function r3(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function o3({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:l,index:c,...u}){const{animation:f,carousel:d,render:p,toolbar:h,controller:g,noScroll:m,on:y,slides:v,index:b,plugins:A,...w}=lf,{config:_,augmentation:E}=mk([nt(Zk,[nt(Qk,[nt(jk,[nt(Bk),nt(n3),nt(Hk)])])])],a||A),S=E({animation:r3(f,t),carousel:{...d,...e},render:{...p,...n},toolbar:{...h,...r},controller:{...g,...o},noScroll:{...m,...i},on:{...y,...s},...w,...u});return S.open?C.createElement(bk,{...S},C.createElement(Ak,{slides:l||v,index:Ul(c||b)},C.createElement(Ck,null,C.createElement(vk,null,C.createElement(gk,null,Xv(nt(Xk,_),S)))))):null}const i3={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function s3(e){return Math.min(Math.max(e,Number.EPSILON),1)}function eb(e){const{minZoom:t,...n}={...i3,...e};return{minZoom:s3(t),...n}}function a3(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Jt().animation,a=Td(),l=Le(()=>{var c,u,f;if((c=o.current)===null||c===void 0||c.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(f=(u=r.current).animate)===null||f===void 0?void 0:f.call(u,[{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 Nn(l,[e,t,n,l]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function l3(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 Hl(){const{zoom:e}=Jt();return eb(e)}function c3(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=$r(),{imageFit:a}=Jt().carousel,{maxZoomPixelRatio:l}=Hl();if(e&&s){const u={...s,...t};if(Ki(u)){const f=Ed(u,a),d=Math.max(...(((n=u.srcSet)===null||n===void 0?void 0:n.map(h=>h.width))||[]).concat(u.width?[u.width]:[])),p=Math.max(...(((r=u.srcSet)===null||r===void 0?void 0:r.map(h=>h.height))||[]).concat(u.height?[u.height]:[]));d>0&&p>0&&e.width>0&&e.height>0&&(i=f?{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*l,height:i.height*l},o=f?{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 c=o.width?Math.max(_d(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:c}}function hm(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function mm(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function u3(e,t,n,r,o,i,s,a,l){const c=C.useRef([]),u=C.useRef(0),f=C.useRef(void 0),{globalIndex:d}=$r(),{getOwnerWindow:p}=Bl(),{containerRef:h,subscribeSensors:g}=ar(),{keyboardMoveDistance:m,zoomInMultiplier:y,wheelZoomDistanceFactor:v,scrollToZoom:b,doubleTapDelay:A,doubleClickDelay:w,doubleClickMaxStops:_,pinchZoomDistanceFactor:E,pinchZoomV4:S}=Hl(),O=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(mm(e,-M.deltaY,v),!0,...O(M));return}e>1&&(M.stopPropagation(),b||a(M.deltaX,M.deltaY))}),W=C.useCallback(M=>{const re=c.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),j=C.useCallback(M=>{W(M),M.persist(),c.current.push(M)},[W]),z=Le(M=>{var re;const L=c.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=l==null?void 0:l.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:F}=M;if(L.length===0&&F-u.current<(M.pointerType==="touch"?A:w)){u.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,...O(M))}else u.current=F;if(j(M),L.length===2){const K=hm(L[0],L[1]);f.current={previousDistance:K,initialDistance:Math.max(K,1),initialZoom:e}}}),Y=Le(M=>{const re=c.current,L=re.find(F=>F.pointerId===M.pointerId);if(re.length===2&&f.current){M.stopPropagation(),j(M);const F=hm(re[0],re[1]),K=S?f.current.initialZoom/f.current.initialDistance*F:mm(e,F-f.current.previousDistance,E);s(K,!0,...re.map(B=>O(B)).reduce((B,J)=>J.map((V,ee)=>B[ee]+V/2))),f.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=c.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(f.current=void 0),W(M)},[W]),oe=C.useCallback(()=>{const M=c.current;M.splice(0,M.length),u.current=0,f.current=void 0},[]);Gv(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 f3(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,l]=C.useState(0),c=a3(r,i,a,n),{currentSlide:u,globalIndex:f}=$r(),{containerRect:d,slideRect:p}=ar(),{minZoom:h,zoomInMultiplier:g}=Hl(),m=u&&Ki(u)?u.src:void 0,y=!m||!(n!=null&&n.current);Nn(()=>{o(1),s(0),l(0)},[f,m]);const v=C.useCallback((E,S,O)=>{const P=O||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)),l(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,O,P)=>{const I=_d(E+.01<t?E-.01>h?E:h:t,5);S||c(),v(O?O*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,h,t,v,c]),A=Le(()=>{r>1&&(r>t&&b(t,!0),v())});Nn(A,[d.width,d.height,A]);const w=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:w,zoomOut:_}}const tb=C.createContext(null),Od=sr("useZoom","ZoomControllerContext",tb);function d3({children:e}){const[t,n]=C.useState(),{slideRect:r}=ar(),{ref:o,minZoom:i}=Hl(),{imageRect:s,maxZoom:a}=c3(r,t==null?void 0:t.imageDimensions),{zoom:l,offsetX:c,offsetY:u,disabled:f,changeZoom:d,changeOffsets:p,zoomIn:h,zoomOut:g}=f3(s,a,t==null?void 0:t.zoomWrapperRef);l3(l,f),u3(l,i,a,f,h,g,d,p,t==null?void 0:t.zoomWrapperRef);const m=C.useMemo(()=>({zoom:l,minZoom:i,maxZoom:a,offsetX:c,offsetY:u,disabled:f,zoomIn:h,zoomOut:g,changeZoom:d}),[l,i,a,c,u,f,h,g,d]);C.useImperativeHandle(o,()=>m,[m]);const y=C.useMemo(()=>({...m,setZoomWrapper:n}),[m,n]);return C.createElement(tb.Provider,{value:y},e)}const p3=$o("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=$o("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"})),gm=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:l,zoomIn:c,zoomOut:u,disabled:f}=Od(),{render:d}=Jt(),p=f||(t?s>=l: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?p3:h3,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?c:u,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function m3(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=ar(),r=C.useCallback(s=>{var a,l;!((a=s.current)===null||a===void 0)&&a.disabled?n():(l=s.current)===null||l===void 0||l.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(gm,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(gm,{ref:t,onLoseFocus:o}))}function g3(){const{render:e}=Jt(),t=Od();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(m3,null)}function y3(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function v3({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(Dv)}}function b3(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(v3,{}),{slide:s,rect:a,imageFit:l,render:c,interactive:u}=e,f=s.srcSet.sort((w,_)=>w.width-_.width),d=(t=s.width)!==null&&t!==void 0?t:f[f.length-1].width,p=(n=s.height)!==null&&n!==void 0?n:f[f.length-1].height,h=Ed(s,l),g=Math.max(...f.map(w=>w.width)),m=Math.min((h?Math.max:Math.min)(a.width,d*(a.height/p)),g),y=lk(),v=Le(()=>{var w;const _=(w=f.find(E=>E.width>=m*y))!==null&&w!==void 0?w:f[f.length-1];(!r||f.findIndex(E=>E.src===r)<f.findIndex(E=>E===_))&&i({type:"fetch",source:_.src})});Nn(v,[a.width,a.height,y,v]);const b=Le(w=>i({type:"done",source:w})),A={WebkitTransform:u?"initial":"translateZ(0)"};return h||Object.assign(A,a.width/a.height<d/p?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(il,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...A},onLoad:()=>b(o),render:{...c,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(il,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:A}))}function x3({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:l,maxZoom:c,offsetX:u,offsetY:f,setZoomWrapper:d}=Od(),p=l>1,{carousel:h,on:g}=Jt(),{currentIndex:m}=$r();Nn(()=>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:l,maxZoom:c});if(!y&&Ki(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=y3(t)?C.createElement(b3,{...v,slide:t,interactive:p,rect:n===0?{width:r.width*l,height:r.height*l}:r}):C.createElement(il,{onLoad:b=>s({width:b.naturalWidth,height:b.naturalHeight}),...v})}return y?C.createElement("div",{ref:a,className:En(Se(JS),Se(yd),Se(Nv),p&&Se(ek)),style:n===0?{transform:`scale(${l}) translateX(${u}px) translateY(${f}px)`}:void 0},y):null}const w3=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=eb(n);return{zoom:a,toolbar:uk(r,tm,C.createElement(g3,null)),render:{...o,slide:l=>{var c;return Ki(l.slide)?C.createElement(x3,{render:o,...l}):(c=o.slide)===null||c===void 0?void 0:c.call(o,l)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t(zr(tm,d3))},A3="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==",C3=({src:e,alt:t,size:n=40})=>x.jsx("img",{src:e||A3,alt:t,width:n,height:n,className:"rounded-full object-cover border border-gray-200"}),_3=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},uf=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=T.useState(!1),{refs:a,floatingStyles:l,context:c}=yv({strategy:"fixed",placement:e,open:i,onOpenChange:s}),u=gv(c,{outsidePress:!0}),{getReferenceProps:f,getFloatingProps:d}=vv([u]),p=T.Children.map(t,h=>{if(!T.isValidElement(h))return h;const g=h.props;return T.cloneElement(h,{onClick:_3(g.onClick,()=>s(!1))})});return x.jsxs(x.Fragment,{children:[T.cloneElement(n,{ref:a.setReference,...f(),onClick:()=>s(h=>!h),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&x.jsx("div",{ref:a.setFloating,style:{...l,minWidth:o},className:Ee("border border-gray-200 rounded-sm bg-white z-[9999999999]"),...d(),children:p})]})},E3=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>x.jsxs(uf,{trigger:x.jsx(je,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:x.jsx(ve,{icon:GC})}),children:[x.jsxs("ul",{className:"py-2 m-0",children:[x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),x.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:l1.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:"text-gray-400"),children:x.jsx(ve,{icon:s.icon,size:"lg"})})},s.type))})]}),nb=T.createContext(null);function S3(e,t){return{getTheme:function(){return t??null}}}function wt(){const e=T.useContext(nb);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 rb(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,k3=dn&&"documentMode"in document?document.documentMode:null,sn=dn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),To=dn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sl=!(!dn||!("InputEvent"in window)||k3)&&"getTargetRanges"in new window.InputEvent("input"),Xs=dn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hi=dn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,T3=dn&&/Android/.test(navigator.userAgent),ob=dn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ym=dn&&T3&&ob,ea=dn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&sn&&!ob;function ib(...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 N3=0,O3=1,P3=2,sb=128,M3=1,I3=2,L3=3,R3=4,D3=5,F3=6,ql=Xs||Hi||ea?" ":"",Rr=`
|
|
594
|
+
|
|
595
|
+
`,j3=To?" ":ql,No={bold:1,capitalize:1024,code:16,highlight:sb,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},z3={directionless:1,unmergeable:2},vm={center:2,end:6,justify:4,left:1,right:3,start:5},$3={[I3]:"center",[F3]:"end",[R3]:"justify",[M3]:"left",[L3]:"right",[D3]:"start"},U3={normal:0,segmented:2,token:1},B3={[N3]:"normal",[P3]:"segmented",[O3]:"token"},bm="$config";function ab(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&ab(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let ff=!1,Pd=0;function W3(e){Pd=e.timeStamp}function Hc(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&ec(e,n)!==void 0}function K3(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 H3(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 q3(e,t,n,r){for(let o=e;o&&!JT(o);o=ia(o)){const i=ec(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!pt(o)?void 0:[o,s]}else if(o===r)return[r,hx(n)]}}function lb(e,t,n){ff=!0;const r=performance.now()-Pd>100;try{Sn(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,l=e._blockCursorElement;let c=!1,u="";for(let d=0;d<t.length;d++){const p=t[d],h=p.type,g=p.target,m=q3(g,e,a,s);if(!m)continue;const[y,v]=m;if(h==="characterData")r&&X(v)&&lr(g)&&H3(o,g,v)&&K3(g,v,e);else if(h==="childList"){c=!0;const b=p.addedNodes;for(let _=0;_<b.length;_++){const E=b[_],S=dx(E),O=E.parentNode;if(O!=null&&E!==l&&S===null&&!Hc(E,O,e)){if(To){const P=(pt(E)?E.innerText:null)||E.nodeValue;P&&(u+=P)}O.removeChild(E)}}const A=p.removedNodes,w=A.length;if(w>0){let _=0;for(let E=0;E<w;E++){const S=A[E];(Hc(S,g,e)||l===S)&&(g.appendChild(S),_++)}w!==_&&i.set(y,v)}}}if(i.size>0)for(const[d,p]of i)p.reconcileObservedMutation(d,e);const f=n.takeRecords();if(f.length>0){for(let d=0;d<f.length;d++){const p=f[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"||Hc(y,g,e)||v.removeChild(y)}}n.takeRecords()}o!==null&&(c&&Pt(o),To&&vx(e)&&o.insertRawText(u))})}finally{ff=!1}}function cb(e){const t=e._observer;t!==null&&lb(e,t.takeRecords(),t)}function ub(e){(function(t){Pd===0&&Xt(t).addEventListener("textInput",W3,!0)})(e),e._observer=new MutationObserver((t,n)=>{lb(e,t,n)})}function V3(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}=nc(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 Y3=class fb{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(l,c,u){let f=u.size;if(c)for(const d in c){const p=l.get(d);p&&u.has(p)||f++}return f})(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 xm(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 fb(t,n,(function(i,s,a){let l;if(a)for(const[c,u]of Object.entries(a)){const f=i.get(c);f?s.has(f)||s.set(f,f.parse(u)):(l=l||{},l[c]=u)}return l})(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=xm(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 Q3(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Y3(t,db(t));return t.__state=n,n}function db(e){return e.__state?e.__state.sharedNodeState:ax(Jd(),e.getType()).sharedNodeState}function xm(e){if(e)for(const t in e)return e}function wm(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 Am(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 Cm(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function _m(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,l=e.__state,c=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||l===c||(function(u,f){if(u===f)return!0;if(u&&f&&u.size!==f.size)return!1;const d=new Set;return!(u&&wm(d,u,f)||f&&wm(d,f,u)||u&&Am(d,u,f)||f&&Am(d,f,u))})(l,c))}function Em(e,t){const n=e.mergeWithSibling(t),r=Re()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Sm(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(_m(t,r)){r=Em(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(_m(r,n)){r=Em(r,n);break}break}n.remove()}}else r.remove()}function Li(e){return km(e.anchor),km(e.focus),e}function km(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 Oo,vt,Os,Vl,df,pf,Po,an,hf,Ps,Je="",mn=null,Jr=null,Wn="",ri=!1,al=!1;function ll(e,t){const n=Po.get(e);if(t!==null){const r=vf(e);r.parentNode===t&&t.removeChild(r)}if(an.has(e)||vt._keyToDOMMap.delete(e),R(n)){const r=ul(n,Po);mf(r,0,r.length-1,null)}n!==void 0&&Gd(Ps,Os,Vl,n,"destroyed")}function mf(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&ll(i,r)}}function Zr(e,t){e.setProperty("text-align",t)}const G3="40px";function pb(e,t){const n=Oo.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")||G3;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function hb(e,t){const n=e.style;t===0?Zr(n,""):t===1?Zr(n,"left"):t===2?Zr(n,"center"):t===3?Zr(n,"right"):t===4?Zr(n,"justify"):t===5?Zr(n,"start"):t===6&&Zr(n,"end")}function gf(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 cl(e,t){const n=an.get(e);n===void 0&&U(60);const r=n.createDOM(Oo,vt);if((function(o,i,s){const a=s._keyToDOMMap;(function(l,c,u){const f=`__lexicalKey_${c._key}`;l[f]=u})(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(gf(r,n),o!==0&&pb(r,o),i!==0){const a=i-1;yf(ul(n,an),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&hb(r,s),n.isInline()||mb(null,n,r),tc(n)&&(Je+=Rr,Wn+=Rr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(vt,Oo);i!==null&&gb(e,i),r.contentEditable="false"}Je+=o,Wn+=o}return t!==null&&t.insertChild(r),Gd(Ps,Os,Vl,n,"created"),r}function yf(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){cl(e[s],o);const a=an.get(e[s]);a!==null&&X(a)&&mn===null&&(mn=a.getFormat(),Jr=a.getStyle())}tc(t)&&(Je+=Rr),o.element.__lexicalTextContent=Je,Je=i+Je}function Tm(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return bo(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function mb(e,t,n){const r=Tm(e,Po),o=Tm(t,an);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function Z3(e,t,n){var r;mn=null,Jr=null,(function(o,i,s){const a=Je,l=o.__size,c=i.__size;Je="";const u=s.element;if(l===1&&c===1){const f=o.__first,d=i.__first;if(f===d)ps(f,u);else{const h=vf(f),g=cl(d,null);try{u.replaceChild(g,h)}catch(m){if(typeof m=="object"&&m!=null){const y=`${m.toString()} Parent: ${u.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(y)}throw m}ll(f,null)}const p=an.get(d);X(p)&&mn===null&&(mn=p.getFormat(),Jr=p.getStyle())}else{const f=ul(o,Po),d=ul(i,an);if(f.length!==l&&U(227),d.length!==c&&U(228),l===0)c!==0&&yf(d,i,0,c-1,s);else if(c===0){if(l!==0){const p=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;mf(f,0,l-1,p?null:u),p&&(u.textContent="")}}else(function(p,h,g,m,y,v){const b=m-1,A=y-1;let w,_,E=v.getFirstChild(),S=0,O=0;for(;S<=b&&O<=A;){const W=h[S],j=g[O];if(W===j)E=qc(ps(j,v.element)),S++,O++;else{w===void 0&&(w=new Set(h)),_===void 0&&(_=new Set(g));const Y=_.has(W),Q=w.has(j);if(Y)if(Q){const oe=Lo(vt,j);oe===E?E=qc(ps(j,v.element)):(v.withBefore(E).insertChild(oe),ps(j,v.element)),S++,O++}else cl(j,v.withBefore(E)),O++;else E=qc(vf(W)),ll(W,v.element),S++}const z=an.get(j);z!==null&&X(z)&&mn===null&&(mn=z.getFormat(),Jr=z.getStyle())}const P=S>b,I=O>A;if(P&&!I){const W=g[A+1],j=W===void 0?null:vt.getElementByKey(W);yf(g,p,O,A,v.withBefore(j))}else I&&!P&&mf(h,S,b,v.element)})(i,f,d,l,c,s)}tc(i)&&(Je+=Rr),u.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,mn==null||mn===r.__textFormat||al||r.setTextFormat(mn),(function(o){Jr==null||Jr===o.__textStyle||al||o.setTextStyle(Jr)})(t)}function ul(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 ps(e,t){const n=Po.get(e);let r=an.get(e);n!==void 0&&r!==void 0||U(61);const o=ri||pf.has(e)||df.has(e),i=Lo(vt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,Wn+=s)}else{const s=n.getTextContent();Wn+=s,Je+=s}return i}if(n!==r&&o&&Gd(Ps,Os,Vl,r,"updated"),r.updateDOM(n,i,Oo)){const s=cl(e,null);return t===null&&U(62),t.replaceChild(s,i),ll(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(ri||s!==n.__indent)&&pb(i,s);const a=r.__format;if((ri||a!==n.__format)&&hb(i,a),o&&(Z3(n,r,i),Ye(r)||r.isInline()||mb(n,r,i)),tc(r)&&(Je+=Rr,Wn+=Rr),(ri||r.__dir!==n.__dir)&&(gf(i,r),Ye(r)&&!ri))for(const l of r.getChildren())R(l)&&gf(Lo(vt,l.getKey()),l)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(vt,Oo);a!==null&&gb(e,a)}Je+=s,Wn+=s}if(!al&&Ye(r)&&r.__cachedText!==Wn){const s=r.getWritable();s.__cachedText=Wn,r=s}return i}function gb(e,t){let n=vt._pendingDecorators;const r=vt._decorators;if(n===null){if(r[e]===t)return;n=px(vt)}n[e]=t}function qc(e){let t=e.nextSibling;return t!==null&&t===vt._blockCursorElement&&(t=t.nextSibling),t}function J3(e,t,n,r,o,i){Je="",Wn="",ri=r===2,vt=n,Oo=n._config,Os=n._nodes,Vl=vt._listeners.mutation,df=o,pf=i,Po=e._nodeMap,an=t._nodeMap,al=t._readOnly,hf=new Map(n._keyToDOMMap);const s=new Map;return Ps=s,ps("root",null),vt=void 0,Os=void 0,df=void 0,pf=void 0,Po=void 0,an=void 0,Oo=void 0,hf=void 0,Ps=void 0,s}function vf(e){const t=hf.get(e);return t===void 0&&U(75,e),t}function pe(e){return{type:e}}const Yl=pe("SELECTION_CHANGE_COMMAND"),X3=pe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Md=pe("CLICK_COMMAND"),yb=pe("BEFORE_INPUT_COMMAND"),vb=pe("INPUT_COMMAND"),bb=pe("COMPOSITION_START_COMMAND"),xb=pe("COMPOSITION_END_COMMAND"),yo=pe("DELETE_CHARACTER_COMMAND"),hi=pe("INSERT_LINE_BREAK_COMMAND"),Ms=pe("INSERT_PARAGRAPH_COMMAND"),mi=pe("CONTROLLED_TEXT_INSERTION_COMMAND"),Ql=pe("PASTE_COMMAND"),bf=pe("REMOVE_TEXT_COMMAND"),Is=pe("DELETE_WORD_COMMAND"),Ls=pe("DELETE_LINE_COMMAND"),Cn=pe("FORMAT_TEXT_COMMAND"),Id=pe("UNDO_COMMAND"),Ld=pe("REDO_COMMAND"),wb=pe("KEYDOWN_COMMAND"),Ab=pe("KEY_ARROW_RIGHT_COMMAND"),eT=pe("MOVE_TO_END"),Cb=pe("KEY_ARROW_LEFT_COMMAND"),tT=pe("MOVE_TO_START"),_b=pe("KEY_ARROW_UP_COMMAND"),Eb=pe("KEY_ARROW_DOWN_COMMAND"),Rs=pe("KEY_ENTER_COMMAND"),Sb=pe("KEY_SPACE_COMMAND"),kb=pe("KEY_BACKSPACE_COMMAND"),Rd=pe("KEY_ESCAPE_COMMAND"),Tb=pe("KEY_DELETE_COMMAND"),Nb=pe("KEY_TAB_COMMAND"),nT=pe("INSERT_TAB_COMMAND"),rT=pe("INDENT_CONTENT_COMMAND"),Nm=pe("OUTDENT_CONTENT_COMMAND"),Ob=pe("DROP_COMMAND"),oT=pe("FORMAT_ELEMENT_COMMAND"),Pb=pe("DRAGSTART_COMMAND"),Mb=pe("DRAGOVER_COMMAND"),iT=pe("DRAGEND_COMMAND"),Gl=pe("COPY_COMMAND"),Dd=pe("CUT_COMMAND"),xf=pe("SELECT_ALL_COMMAND"),sT=pe("CLEAR_EDITOR_COMMAND"),aT=pe("CLEAR_HISTORY_COMMAND"),Aa=pe("CAN_REDO_COMMAND"),Ca=pe("CAN_UNDO_COMMAND"),lT=pe("FOCUS_COMMAND"),cT=pe("BLUR_COMMAND"),uT=pe("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),wf=[["keydown",function(e,t){Ds=e.timeStamp,Ib=e.key,!t.isComposing()&&ie(t,wb,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Zi(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&Sn(t,()=>{lx(n)||(_f=!0)})}],["compositionstart",function(e,t){ie(t,bb,e)}],["compositionend",function(e,t){To?hs=!0:Hi||!Xs&&!ea?ie(t,xb,e):(Ef=!0,Sf=e.data)}],["input",function(e,t){e.stopPropagation(),Sn(t,()=>{t.dispatchCommand(vb,e)},{event:e}),oi=null}],["click",function(e,t){Sn(t,()=>{const n=Z(),r=en(Xt(t)),o=Yi();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,l=>R(l)&&!l.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(pt(i)||lr(i))&&Pt(jd(o,r,t,e))}}ie(t,Md,e)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];sl&&wf.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||To&&vx(r)||o!=="insertCompositionText"&&ie(r,yb,n)})(e,t)]);let Ds=0,Ib=null,Lb=0,oi=null;const Af=new WeakMap,fl=new WeakMap;let Cf=!1,_f=!1,bs=!1,hs=!1,Ef=!1,Sf="",to=null,Rb=[0,"",0,"root",0];function Db(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=Re(),c=en(Xt(l)),u=c!==null?c.anchorNode:null,f=i.key,d=l.getElementByKey(f),p=n.length;return f!==s.key||!X(a)||(!o&&(!sl||Lb<r+50)||a.isDirty()&&p<2||mx(n))&&i.offset!==s.offset&&!a.isComposing()||Bn(a)||a.isDirty()&&p>1||(o||!sl)&&d!==null&&!a.isComposing()&&u!==Ri(d)||c!==null&&t!==null&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.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=xo(g);return m===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||v||(function(b){const A=b.getPreviousSibling();return(X(A)||R(A)&&A.isInline())&&!A.canInsertTextAfter()})(g):m===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||v)})(e,a)}function Om(e,t){return lr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Pm(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Cf&&(Cf=!1,Om(r,o)&&Om(i,s)&&!to)||Sn(t,()=>{if(!n)return void Pt(null);if(!oa(t,r,i))return;let a=Z();if(to&&$(a)&&a.isCollapsed()){const l=a.anchor,c=to.anchor;(l.key===c.key&&l.offset===c.offset+1||l.offset===1&&c.getNode().is(l.getNode().getPreviousSibling()))&&(a=to.clone(),Pt(a))}if(to=null,$(a)){const l=a.anchor,c=l.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const u=Xt(t).event,f=u?u.timeStamp:performance.now(),[d,p,h,g,m]=Rb,y=We(),v=t.isComposing()===!1&&y.getTextContent()==="";if(f<m+200&&l.offset===h&&l.key===g)Ba(a,d,p);else if(l.type==="text")X(c)||U(141),Fb(a,c);else if(l.type==="element"&&!v){R(c)||U(259);const b=l.getNode();b.isEmpty()?(function(A,w){const _=w.getTextFormat(),E=w.getTextStyle();Ba(A,_,E)})(a,b):Ba(a,0,"")}}else{const u=l.key,f=a.focus.key,d=a.getNodes(),p=d.length,h=a.isBackward(),g=h?s:o,m=h?o:s,y=h?f:u,v=h?u:f;let b=2047,A=!1;for(let w=0;w<p;w++){const _=d[w],E=_.getTextContentSize();if(X(_)&&E!==0&&!(w===0&&_.__key===y&&g===E||w===p-1&&_.__key===v&&m===0)&&(A=!0,b&=_.getFormat(),b===0))break}a.format=A?b:0}}ie(t,Yl,void 0)})}function Ba(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fb(e,t){Ba(e,t.getFormat(),t.getStyle())}function jb(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function fT(e){const t=e.inputType,n=jb(e),r=Re(),o=Z();if(t==="deleteContentBackward"){if(o===null){const f=Yi();if(!$(f))return!0;Pt(f.clone())}if($(o)){const f=o.anchor.key===o.focus.key;if(i=e.timeStamp,Ib==="MediaLast"&&i<Ds+30&&r.isComposing()&&f){if(ft(null),Ds=0,setTimeout(()=>{Sn(r,()=>{ft(null)})},30),$(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||U(142),Fb(o,d)}}else{ft(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=ym&&f&&!g&&h;if(m&&o.isCollapsed()&&(m=!Te(Mf(o.anchor,!0))),!m){ie(r,yo,!0);const y=Z();ym&&$(y)&&y.isCollapsed()&&(to=y,setTimeout(()=>to=null))}}return!0}}var i;if(!$(o))return!0;const s=e.data;oi!==null&&Yd(!1,r,oi),o.dirty&&oi===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),oi=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
596
|
+
`)e.preventDefault(),ie(r,hi,!1);else if(s===Rr)e.preventDefault(),ie(r,Ms,void 0);else if(s==null&&e.dataTransfer){const f=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(f)}else s!=null&&Db(o,n,s,e.timeStamp,!0)?(e.preventDefault(),ie(r,mi,s)):oi=s;return Lb=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(r,mi,e);break;case"insertFromComposition":ft(null),ie(r,mi,e);break;case"insertLineBreak":ft(null),ie(r,hi,!1);break;case"insertParagraph":ft(null),bs&&!Hi?(bs=!1,ie(r,hi,!1)):ie(r,Ms,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(r,Ql,e);break;case"deleteByComposition":(function(f,d){return f!==d||R(f)||R(d)||!xo(f)||!xo(d)})(c,u)&&ie(r,bf,e);break;case"deleteByDrag":case"deleteByCut":ie(r,bf,e);break;case"deleteContent":ie(r,yo,!1);break;case"deleteWordBackward":ie(r,Is,!0);break;case"deleteWordForward":ie(r,Is,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(r,Ls,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(r,Ls,!1);break;case"formatStrikeThrough":ie(r,Cn,"strikethrough");break;case"formatBold":ie(r,Cn,"bold");break;case"formatItalic":ie(r,Cn,"italic");break;case"formatUnderline":ie(r,Cn,"underline");break;case"historyUndo":ie(r,Id,void 0);break;case"historyRedo":ie(r,Ld,void 0)}return!0}function dT(e){if(pt(e.target)&&lx(e.target))return!0;const t=Re(),n=Z(),r=e.data,o=jb(e);if(r!=null&&$(n)&&Db(n,o,r,e.timeStamp,!1)){hs&&(dl(t,r),hs=!1);const i=n.anchor.getNode(),s=en(Xt(t));if(s===null)return!0;const a=n.isBackward(),l=a?n.anchor.offset:n.focus.offset,c=a?n.focus.offset:n.anchor.offset;sl&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,l)+r+i.getTextContent().slice(l+c)===yx(s.anchorNode)||ie(t,mi,r);const u=r.length;To&&u>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=u),Xs||Hi||ea||!t.isComposing()||(Ds=0,ft(null))}else Yd(!1,t,r!==null?r:void 0),hs&&(dl(t,r||void 0),hs=!1);return(function(){yt();const i=Re();cb(i)})(),!0}function pT(e){const t=Re(),n=Z();if($(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ft(r.key),(e.timeStamp<Ds+30||r.type==="element"||!n.isCollapsed()||o.getFormat()!==n.format||X(o)&&o.getStyle()!==n.style)&&ie(t,mi,j3)}return!0}function hT(e){return dl(Re(),e.data),!0}function dl(e,t){const n=e._compositionKey;if(ft(null),n!==null&&t!=null){if(t===""){const r=Xe(n),o=Ri(e.getElementByKey(n));return void(o!==null&&o.nodeValue!==null&&X(r)&&Qd(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
|
|
597
|
+
`){const r=Z();if($(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,Rs,null)}}}Yd(!0,e,t)}function mT(e){const t=Re();if(e.key==null)return!0;if(Ef&&ng(e))return Sn(t,()=>{dl(t,Sf)}),Ef=!1,Sf="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,Ab,e);else if((function(n){return Ie(n,"ArrowRight",$n)})(e))ie(t,eT,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,Cb,e);else if((function(n){return Ie(n,"ArrowLeft",$n)})(e))ie(t,tT,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,_b,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,Eb,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))bs=!0,ie(t,Rs,e);else if((function(n){return n.key===" "})(e))ie(t,Sb,e);else if((function(n){return sn&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),bs=!0,ie(t,hi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))bs=!1,ie(t,Rs,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||sn&&Ie(n,"h",{ctrlKey:!0})})(e))ng(e)?ie(t,kb,e):(e.preventDefault(),ie(t,yo,!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,Tb,e):(e.preventDefault(),ie(t,yo,!1));else if((function(n){return Ie(n,"Backspace",tg)})(e))e.preventDefault(),ie(t,Is,!0);else if((function(n){return Ie(n,"Delete",tg)})(e))e.preventDefault(),ie(t,Is,!1);else if((function(n){return sn&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,Ls,!0);else if((function(n){return sn&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,Ls,!1);else if((function(n){return Ie(n,"b",$n)})(e))e.preventDefault(),ie(t,Cn,"bold");else if((function(n){return Ie(n,"u",$n)})(e))e.preventDefault(),ie(t,Cn,"underline");else if((function(n){return Ie(n,"i",$n)})(e))e.preventDefault(),ie(t,Cn,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,Nb,e);else if((function(n){return Ie(n,"z",$n)})(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)?rg(e)&&(e.preventDefault(),ie(t,xf,e)):(function(r){return Ie(r,"c",$n)})(e)?(e.preventDefault(),ie(t,Gl,e)):(function(r){return Ie(r,"x",$n)})(e)?(e.preventDefault(),ie(t,Dd,e)):rg(e)&&(e.preventDefault(),ie(t,xf,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(uT,e),!0}function zb(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const gi=new Map;function $b(e){const t=YT(e.target);if(t===null)return;const n=cx(t.anchorNode);if(n===null)return;_f&&(_f=!1,Sn(n,()=>{const l=Yi(),c=t.anchorNode;(pt(c)||lr(c))&&Pt(jd(l,t,n,e))}));const r=Vd(n),o=r[r.length-1],i=o._key,s=gi.get(i),a=s||o;a!==n&&Pm(t,a,!1),Pm(t,n,!0),n!==o?gi.set(i,n):s&&gi.delete(i)}function Mm(e){e._lexicalHandled=!0}function Im(e){return e._lexicalHandled===!0}function gT(e){const t=Af.get(e);if(t===void 0)return;const n=fl.get(t);if(n===void 0)return;const r=n-1;r>=0||U(164),Af.delete(e),fl.set(t,r),r===0&&t.removeEventListener("selectionchange",$b);const o=Xl(e);qd(o)?((function(s){if(s._parentEditor!==null){const a=Vd(s),l=a[a.length-1]._key;gi.get(l)===s&&gi.delete(l)}else gi.delete(s._key)})(o),e.__lexicalEditor=null):o&&U(198);const i=zb(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function kf(e,t,n){yt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const l=Z();if(!$(l)||!R(a))return l;const{anchor:c,focus:u}=l,f=c.getNode(),d=u.getNode();return If(f,a)&&c.set(a.__key,0,"element"),If(d,a)&&u.set(a.__key,0,"element"),l})(e);let s=!1;if($(i)&&t){const a=i.anchor,l=i.focus;a.key===r&&(ml(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),l.key===r&&(ml(l,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else ot(i)&&t&&e.isSelected()&&e.selectPrevious();if($(i)&&t&&!s){const a=e.getIndexWithinParent();wo(e),hl(i,o,a,-1)}else wo(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||kf(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const Ub=Symbol.for("ephemeral");function pl(e){return e[Ub]||!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}),UT(this,t)}static getType(){const{ownNodeType:t}=nc(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"?_x(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 l=n?i.getNextSibling():i.getPreviousSibling();if(l!==null){i=l;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===t)break;let u=null,f=c;do{if(f===null&&U(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;u!==null||o.has(f.__key)||r.push(f)}while(u===null);i=u}return n||r.reverse(),r}isDirty(){const t=Re()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(pl(this))return this;const t=Xe(this.__key);return t===null&&U(113),t}getWritable(){if(pl(this))return this;yt();const t=Br(),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 yl(i),i;const l=wx(i);return s.add(o),yl(l),r.set(o,l),l}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 db(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&Q3(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){kf(this,!0,t)}replace(t,n){yt();let r=Z();r!==null&&(r=r.clone()),Jc(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),l=this.getParentOrThrow().getWritable(),c=l.__size;wo(a);const u=o.getPreviousSibling(),f=o.getNextSibling(),d=o.__prev,p=o.__next,h=o.__parent;if(kf(o,!1,!0),u===null?l.__first=s:u.getWritable().__next=s,a.__prev=d,f===null?l.__last=s:f.getWritable().__prev=s,a.__next=p,a.__parent=h,l.__size=c,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&&Fm(g,a),m.key===i&&Fm(m,a)}return Er()===i&&ft(s),a}insertAfter(t,n=!0){yt(),Jc(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,l=!1;if(i!==null){const p=t.getIndexWithinParent();if(wo(o),$(s)){const h=i.__key,g=s.anchor,m=s.focus;a=g.type==="element"&&g.key===h&&g.offset===p+1,l=m.type==="element"&&m.key===h&&m.offset===p+1}}const c=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),f=o.__key,d=r.__next;if(c===null?u.__last=f:c.getWritable().__prev=f,u.__size++,r.__next=f,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&$(s)){const p=this.getIndexWithinParent();hl(s,u,p+1);const h=u.__key;a&&s.anchor.set(h,p+2,"element"),l&&s.focus.set(h,p+2,"element")}return t}insertBefore(t,n=!0){yt(),Jc(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;wo(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=r.__prev,c=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=l,o.__next=r.__key,o.__parent=r.__parent;const u=Z();return n&&$(u)&&hl(u,this.getParentOrThrow(),c),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){yt();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){yt();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 Tf="historic",yT="history-push",vo="history-merge",vT="paste",bT="collaboration",xT="skip-scroll-into-view",wT="skip-dom-selection",AT="skip-selection-focus";class qi extends ln{static getType(){return"linebreak"}static clone(t){return new qi(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
598
|
+
`}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&&vl(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&_a(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&_a(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&vl(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&_a(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&_a(i))return!0}return!1})(t)?null:{conversion:CT,priority:0}}}static importJSON(t){return Mo().updateFromJSON(t)}}function CT(e){return{node:Mo()}}function Mo(){return Wr(new qi)}function bo(e){return e instanceof qi}function _a(e){return lr(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Vc(e,t){return 16&t?"code":t&sb?"mark":32&t?"sub":64&t?"sup":null}function Yc(e,t){return 1&t?"strong":2&t?"em":"span"}function Bb(e,t,n,r,o){const i=r.classList;let s=yi(o,"base");s!==void 0&&i.add(...s),s=yi(o,"underlineStrikethrough");let a=!1;const l=8&t&&4&t;s!==void 0&&(8&n&&4&n?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const c in No){const u=No[c];if(s=yi(o,c),s!==void 0)if(n&u){if(a&&(c==="underline"||c==="strikethrough")){t&u&&i.remove(...s);continue}((t&u)===0||l&&c==="underline"||c==="strikethrough")&&i.add(...s)}else t&u&&i.remove(...s)}}function Wb(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?ql:"");if(r==null)t.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||To){const[a,l,c]=(function(u,f){const d=u.length,p=f.length;let h=0,g=0;for(;h<d&&h<p&&u[h]===f[h];)h++;for(;g+h<d&&g+h<p&&u[d-g-1]===f[p-g-1];)g++;return[h,d-h-g,f.slice(h,p-g)]})(s,i);l!==0&&r.deleteData(a,l),r.insertData(a,c)}else r.nodeValue=i}}function Lm(e,t,n,r,o,i){Wb(o,e,t);const s=i.theme.text;s!==void 0&&Bb(0,0,r,e,s)}function Ea(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Ur 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 Ur(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 B3[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Er()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const r=No[n];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,r){return gl(this.getLatest().__format,n,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,r){const o=this.__format,i=Vc(0,o),s=Yc(0,o),a=i===null?s:i,l=document.createElement(a);let c=l;this.hasFormat("code")&&l.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),l.appendChild(c)),Lm(c,this,0,o,this.__text,n);const u=this.__style;return u!==""&&(l.style.cssText=u),l}updateDOM(n,r,o){const i=this.__text,s=n.__format,a=this.__format,l=Vc(0,s),c=Vc(0,a),u=Yc(0,s),f=Yc(0,a);if((l===null?u:l)!==(c===null?f:c))return!0;if(l===c&&u!==f){const m=r.firstChild;m==null&&U(48);const y=document.createElement(f);return Lm(y,this,0,a,i,o),r.replaceChild(y,m),!1}let d=r;c!==null&&l!==null&&(d=r.firstChild,d==null&&U(49)),Wb(i,d,this);const p=o.theme.text;p!==void 0&&s!==a&&Bb(0,s,a,d,p);const h=n.__style,g=this.__style;return h!==g&&(r.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:kT,priority:0}),b:()=>({conversion:ET,priority:0}),code:()=>({conversion:jn,priority:0}),em:()=>({conversion:jn,priority:0}),i:()=>({conversion:jn,priority:0}),mark:()=>({conversion:jn,priority:0}),s:()=>({conversion:jn,priority:0}),span:()=>({conversion:_T,priority:0}),strong:()=>({conversion:jn,priority:0}),sub:()=>({conversion:jn,priority:0}),sup:()=>({conversion:jn,priority:0}),u:()=>({conversion:jn,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 pt(r)||U(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=Ea(r,"b")),this.hasFormat("italic")&&(r=Ea(r,"i")),this.hasFormat("strikethrough")&&(r=Ea(r,"s")),this.hasFormat("underline")&&(r=Ea(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"?No[n]:n,r}setDetail(n){const r=this.getWritable();return r.__detail=typeof n=="string"?z3[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=gl(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=U3[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){yt();let o=n,i=r;const s=Z(),a=this.getTextContent(),l=this.__key;if(typeof a=="string"){const c=a.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!$(s))return Vb(l,o,l,i,"text","text");{const c=Er();c!==s.anchor.key&&c!==s.focus.key||ft(l),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,l=o.length;let c=n;c<0&&(c=l+c,c<0&&(c=0));const u=Z();if(i&&$(u)){const d=n+l;u.setTextNodeRange(s,d,s,d)}const f=a.slice(0,c)+o+a.slice(c+r);return s.__text=f,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){yt();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Er(),a=o.length;n.sort((O,P)=>O-P),n.push(a);const l=[],c=n.length;for(let O=0,P=0;O<a&&P<=c;P++){const I=n[P];I>O&&(l.push(o.slice(O,I)),O=I)}const u=l.length;if(u===1)return[r];const f=l[0],d=r.getParent();let p;const h=r.getFormat(),g=r.getStyle(),m=r.__detail;let y=!1,v=null,b=null;const A=Z();if($(A)){const[O,P]=A.isBackward()?[A.focus,A.anchor]:[A.anchor,A.focus];O.type==="text"&&O.key===i&&(v=O),P.type==="text"&&P.key===i&&(b=P)}r.isSegmented()?(p=rt(f),p.__format=h,p.__style=g,p.__detail=m,p.__state=Cm(r,p),y=!0):p=r.setTextContent(f);const w=[p];for(let O=1;O<u;O++){const P=rt(l[O]);P.__format=h,P.__style=g,P.__detail=m,P.__state=Cm(r,P);const I=P.__key;s===i&&ft(I),w.push(P)}const _=v?v.offset:null,E=b?b.offset:null;let S=0;for(const O of w){if(!v&&!b)break;const P=S+O.getTextContentSize();if(v!==null&&_!==null&&_<=P&&_>=S&&(v.set(O.getKey(),_-S,"text"),_<P&&(v=null)),b!==null&&E!==null&&E<=P&&E>=S){b.set(O.getKey(),E-S,"text");break}S=P}if(d!==null){(function(I){const W=I.getPreviousSibling(),j=I.getNextSibling();W!==null&&yl(W),j!==null&&yl(j)})(this);const O=d.getWritable(),P=this.getIndexWithinParent();y?(O.splice(P,0,w),this.remove()):O.splice(P,1,w),$(A)&&hl(A,d,P,u-1)}return w}mergeWithSibling(n){const r=n===this.getPreviousSibling();r||n===this.getNextSibling()||U(50);const o=this.__key,i=n.__key,s=this.__text,a=s.length;Er()===i&&ft(o);const l=Z();if($(l)){const d=l.anchor,p=l.focus;d!==null&&d.key===i&&Km(d,r,o,n,a),p!==null&&p.key===i&&Km(p,r,o,n,a)}const c=n.__text,u=r?c+s:s+c;this.setTextContent(u);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function _T(e){return{forChild:Fd(e.style),node:null}}function ET(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Fd(t.style,n?void 0:"bold"),node:null}}const Rm=new WeakMap;function ST(e){if(!pt(e))return!1;if(e.nodeName==="PRE")return!0;const t=e.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function kT(e){const t=e;e.parentElement===null&&U(129);let n=t.textContent||"";if((function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=Rm.get(i))===void 0&&!ST(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let l=0;l<s.length;l++)Rm.set(s[l],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===`
|
|
599
|
+
`||a===`\r
|
|
600
|
+
`?o.push(Mo()):a===" "?o.push(ta()):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=Dm(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=Dm(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 Dm(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,pt(n)){const i=n.style.display;if(i===""&&!Df(n)||i!==""&&!i.startsWith("inline"))return null}let o=n;for(;(o=t?n.firstChild:n.lastChild)!==null;)n=o;if(lr(n))return n;if(n.nodeName==="BR")return null}}const TT={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function jn(e){const t=TT[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Fd(e.style,t),node:null}}function rt(e=""){return Wr(new Ur(e))}function X(e){return e instanceof Ur}function Fd(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"),l=e.verticalAlign;return c=>(X(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),a&&!c.hasFormat("underline")&&c.toggleFormat("underline"),l!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),l!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),t&&!c.hasFormat(t)&&c.toggleFormat(t)),c)}class Vi extends Ur{static getType(){return"tab"}static clone(t){return new Vi(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const n=super.createDOM(t),r=yi(t.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(t){return ta().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&rb(126),super.setTextContent(" ")}spliceText(t,n,r,o){return r===""&&n===0||r===" "&&n===1||U(286),this}setDetail(t){return t!==2&&U(127),this}setMode(t){return t!=="normal"&&U(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function ta(){return Wr(new Vi)}function Kb(e){return e instanceof Vi}class NT{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:Cx(Yt(tr(this,"next")),Yt(tr(t,"next")))<0}getNode(){const t=Xe(this.key);return t===null&&U(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,na()||(Er()===s&&ft(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function On(e,t,n){return new NT(e,t,n)}function Qc(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 Fm(e,t){if(R(t)){const n=t.getLastDescendant();R(n)||X(n)?Qc(e,n):Qc(e,t)}else Qc(e,t)}class Zl{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 Zl(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 na()||(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()||Yi())===this&&t[0]){const n=bt(t[0],"next");a6(Dr(n,n))}for(const n of t)n.remove()}}function $(e){return e instanceof Uo}class Uo{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,l=new Set;for(const c of r)if(kn(c)){const{origin:u}=c;o.length===0?a.add(u):(l.add(u),o.push(u))}else{const{origin:u}=c;R(u)&&l.has(u)||o.push(u)}if(s&&o.push(s.caret.origin),Fi(r.focus)&&R(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=un(r.focus.origin,"previous");kn(c)&&a.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=tp(c))a.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!R(c)||l.has(c)||c.isEmpty()||a.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=Yt(r.anchor),u=Yt(r.anchor.getFlipped()),f=p=>Nr(p)?p.origin:p.getNodeAtCaret(),d=f(c)||f(u)||(r.anchor.getNodeAtCaret()?c.origin:u.origin);o.push(d)}return o})(Sx(cg(this),"next"));return na()||(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,l]=Nf(this);let c="",u=!0;for(let f=0;f<t.length;f++){const d=t[f];if(R(d)&&!d.isInline())u||(c+=`
|
|
601
|
+
`),u=!d.isEmpty();else if(u=!1,X(d)){let p=d.getTextContent();d===n?d===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(p=a<l?p.slice(a,l):p.slice(l,a)):p=s?p.slice(a):p.slice(l):d===r&&(p=s?p.slice(0,l):p.slice(0,a)),c+=p}else!Te(d)&&!bo(d)||d===r&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(t){const n=Re(),r=n.getEditorState()._selection,o=qb(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),Li(this)}clone(){const t=this.anchor,n=this.focus;return new Uo(On(t.key,t.offset,t.type),On(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(t){this.format=gl(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=No[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===`
|
|
706
602
|
`||s===`\r
|
|
707
|
-
`?r.push(Cl()):s===" "?r.push(_d()):r.push(On(s))}this.insertNodes(r)}insertText(t){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,c=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,c=n),s.type==="element"&&(function(x,E,R,I){const L=x.getNode(),M=L.getChildAtIndex(x.offset),U=On();if(U.setFormat(R),U.setStyle(I),Vy(M))M.splice(0,0,[U]);else{const j=cn(L)?Sr().append(U):U;M===null?L.append(j):M.insertBefore(j)}x.is(E)&&E.set(U.__key,0,"text"),x.set(U.__key,0,"text")})(s,c,o,i),c.type==="element"&&Rl(c,co(Gi(c,"next")));const u=s.offset;let f=c.offset;const m=this.getNodes(),h=m.length;let v=m[0];Ie(v)||be(26);const w=v.getTextContent().length,C=v.getParentOrThrow();let A=m[h-1];if(h===1&&c.type==="element"&&(f=w,c.set(s.key,f,"text")),this.isCollapsed()&&u===w&&(Li(v)||!v.canInsertTextAfter()||!C.canInsertTextAfter()&&v.getNextSibling()===null)){let x=v.getNextSibling();if(Ie(x)&&x.canInsertTextBefore()&&!Li(x)||(x=On(),x.setFormat(o),x.setStyle(i),C.canInsertTextAfter()?v.insertAfter(x):C.insertAfter(x)),x.select(0,0),v=x,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&u===0&&(Li(v)||!v.canInsertTextBefore()||!C.canInsertTextBefore()&&v.getPreviousSibling()===null)){let x=v.getPreviousSibling();if(Ie(x)&&!Li(x)||(x=On(),x.setFormat(o),C.canInsertTextBefore()?v.insertBefore(x):C.insertBefore(x)),x.select(),v=x,t!=="")return void this.insertText(t)}else if(v.isSegmented()&&u!==w){const x=On(v.getTextContent());x.setFormat(o),v.replace(x),v=x}else if(!this.isCollapsed()&&t!==""){const x=A.getParent();if(!C.canInsertTextBefore()||!C.canInsertTextAfter()||ae(x)&&(!x.canInsertTextBefore()||!x.canInsertTextAfter()))return this.insertText(""),U2(this.anchor,this.focus,null),void this.insertText(t)}if(h===1){if(fl(v)){const I=On(t);return I.select(),void v.replace(I)}const x=v.getFormat(),E=v.getStyle();if(u!==f||x===o&&E===i){if(B2(v)){const I=On(t);return I.setFormat(o),I.setStyle(i),I.select(),void v.replace(I)}}else{if(v.getTextContent()!==""){const I=On(t);if(I.setFormat(o),I.setStyle(i),I.select(),u===0)v.insertBefore(I,!1);else{const[L]=v.splitText(u);L.insertAfter(I,!1)}return void(I.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}v.setFormat(o),v.setStyle(i)}const R=f-u;v=v.spliceText(u,R,t,!0),v.getTextContent()===""?v.remove():this.anchor.type==="text"&&(v.isComposing()?this.anchor.offset-=t.length:(this.format=x,this.style=E))}else{const x=new Set([...v.getParentKeys(),...A.getParentKeys()]),E=ae(v)?v:v.getParentOrThrow();let R=ae(A)?A:A.getParentOrThrow(),I=A;if(!E.is(R)&&R.isInline())do I=R,R=R.getParentOrThrow();while(R.isInline());if(c.type==="text"&&(f!==0||A.getTextContent()==="")||c.type==="element"&&A.getIndexWithinParent()<f)if(Ie(A)&&!fl(A)&&f!==A.getTextContentSize()){if(A.isSegmented()){const W=On(A.getTextContent());A.replace(W),A=W}cn(c.getNode())||c.type!=="text"||(A=A.spliceText(0,f,"")),x.add(A.__key)}else{const W=A.getParentOrThrow();W.canBeEmpty()||W.getChildrenSize()!==1?A.remove():W.remove()}else x.add(A.__key);const L=R.getChildren(),M=new Set(m),U=E.is(R),j=E.isInline()&&v.getNextSibling()===null?E:v;for(let W=L.length-1;W>=0;W--){const H=L[W];if(H.is(v)||ae(H)&&H.isParentOf(v))break;H.isAttached()&&(!M.has(H)||H.is(I)?U||j.insertAfter(H,!1):H.remove())}if(!U){let W=R,H=null;for(;W!==null;){const G=W.getChildren(),q=G.length;(q===0||G[q-1].is(H))&&(x.delete(W.__key),H=W),W=W.getParent()}}if(fl(v))if(u===w)v.select();else{const W=On(t);W.select(),v.replace(W)}else v=v.spliceText(u,w-u,t,!0),v.getTextContent()===""?v.remove():v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let W=1;W<h;W++){const H=m[W],G=H.__key;x.has(G)||H.remove()}}}removeText(){const t=Oe()===this;oh(this,rL(i1(this))),t&&Oe()!==this&&Er(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void Kn(null);const r=this.getNodes(),o=[];for(const L of r)Ie(L)&&o.push(L);const i=L=>{r.forEach(M=>{if(ae(M)){const U=M.getFormatFlags(t,L);M.setTextFormat(U)}})},s=o.length;if(s===0)return this.toggleFormat(t),Kn(null),void i(n);const c=this.anchor,u=this.focus,f=this.isBackward(),m=f?u:c,h=f?c:u;let v=0,w=o[0],C=m.type==="element"?0:m.offset;if(m.type==="text"&&C===w.getTextContentSize()&&(v=1,w=o[1],C=0),w==null)return;const A=w.getFormatFlags(t,n);i(A);const x=s-1;let E=o[x];const R=h.type==="text"?h.offset:E.getTextContentSize();if(w.is(E)){if(C===R)return;if(Li(w)||C===0&&R===w.getTextContentSize())w.setFormat(A);else{const L=w.splitText(C,R),M=C===0?L[0]:L[1];M.setFormat(A),m.type==="text"&&m.set(M.__key,0,"text"),h.type==="text"&&h.set(M.__key,R-C,"text")}return void(this.format=A)}C===0||Li(w)||([,w]=w.splitText(C),C=0),w.setFormat(A);const I=E.getFormatFlags(t,A);R>0&&(R===E.getTextContentSize()||Li(E)||([E]=E.splitText(R)),E.setFormat(I));for(let L=v+1;L<x;L++){const M=o[L],U=M.getFormatFlags(t,I);M.setFormat(U)}m.type==="text"&&m.set(w.__key,C,"text"),h.type==="text"&&h.set(E.__key,R,"text"),this.format=A|I}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const C=Oe();return ge(C)||be(134),C.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=Ln(n,Oa),o=t[t.length-1];if(ae(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const C=ev(this);r.splice(C,0,t),o.selectEnd()}return}if(!t.some(C=>(ae(C)||Et(C))&&!C.isInline())){ae(r)||be(211,n.constructor.name,n.getType());const C=ev(this);return r.splice(C,0,t),void o.selectEnd()}const i=(function(C){const A=Sr();let x=null;for(let E=0;E<C.length;E++){const R=C[E],I=ul(R);if(I||Et(R)&&R.isInline()||ae(R)&&R.isInline()||Ie(R)||R.isParentRequired()){if(x===null&&(x=R.createParentElementNode(),A.append(x),I))continue;x!==null&&x.append(R)}else A.append(R),x=null}return A})(t),s=i.getLastDescendant(),c=i.getChildren(),u=!ae(r)||!r.isEmpty()?this.insertParagraph():null,f=c[c.length-1];let m=c[0];var h;ae(h=m)&&Oa(h)&&!h.isEmpty()&&ae(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(ae(r)||be(211,n.constructor.name,n.getType()),r.append(...m.getChildren()),m=c[1]),m&&(r===null&&be(212,n.constructor.name,n.getType()),(function(C,A){const x=A.getParentOrThrow().getLastChild();let E=A;const R=[A];for(;E!==x;)E.getNextSibling()||be(140),E=E.getNextSibling(),R.push(E);let I=C;for(const L of R)I=I.insertAfter(L)})(r,m));const v=Ln(s,Oa);u&&ae(v)&&(u.canMergeWhenEmpty()||Oa(f))&&(v.append(...u.getChildren()),u.remove()),ae(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const w=ae(r)?r.getLastChild():null;ul(w)&&v!==r&&w.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Sr();return Xt().splice(this.anchor.offset,0,[s]),s.select(),s}const t=ev(this),n=Ln(this.anchor.getNode(),Oa);ae(n)||be(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=Cl();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]=I0(this),c=this.isBackward(),[u,f]=c?[this.focus,this.anchor]:[this.anchor,this.focus],[m,h]=c?[s,i]:[i,s];if(n===0)return[];if(n===1){if(Ie(r)&&!this.isCollapsed()){const v=r.splitText(m,h),w=m===0?v[0]:v[1];return w?(u.set(w.getKey(),0,"text"),f.set(w.getKey(),w.getTextContentSize(),"text"),[w]):[]}return[r]}if(Ie(r)&&(m===r.getTextContentSize()?t.shift():m!==0&&([,r]=r.splitText(m),t[0]=r,u.set(r.getKey(),0,"text"))),Ie(o)){const v=o.getTextContent().length;h===0?t.pop():h!==v&&([o]=o.splitText(h),t[t.length-1]=o,f.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(Uw(this,t,n,r))return;const o=t==="move",i=jt(),s=go(mo(i));if(!s)return;const c=i._blockCursorElement,u=i._rootElement,f=this.focus.getNode();if(u===null||c===null||!ae(f)||f.isInline()||f.canBeEmpty()||F0(c,i,u),this.dirty){let m=El(i,this.anchor.key),h=El(i,this.focus.key);this.anchor.type==="text"&&(m=yu(m)),this.focus.type==="text"&&(h=yu(h)),m&&h&&K2(s,m,this.anchor.offset,h,this.focus.offset)}if((function(m,h,v,w){m.modify(h,v,w)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const m=s.getRangeAt(0),h=this.anchor.getNode(),v=cn(h)?h:UN(h);if(this.applyDOMRange(m),this.dirty=!0,!o){const w=this.getNodes(),C=[];let A=!1;for(let x=0;x<w.length;x++){const E=w[x];D0(E,v)?C.push(E):A=!0}if(A&&C.length>0)if(n){const x=C[0];ae(x)?x.selectStart():x.getParentOrThrow().selectStart()}else{const x=C[C.length-1];ae(x)?x.selectEnd():x.getParentOrThrow().selectEnd()}s.anchorNode===m.startContainer&&s.anchorOffset===m.startOffset||(function(x){const E=x.focus,R=x.anchor,I=R.key,L=R.offset,M=R.type;R.set(E.key,E.offset,E.type,!0),E.set(I,L,M,!0)})(this)}}r==="lineboundary"&&Uw(this,t,n,r,"decorators")}forwardDeletion(t,n,r){if(!r&&(t.type==="element"&&ae(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(ae(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=ab(Gi(r,t?"previous":"next"));if(i.getTextSlices().every(c=>c===null||c.distance===0)){let c={type:"initial"};for(const u of i.iterNodeCarets("shadowRoot"))if(ci(u)){if(!u.origin.isInline()){if(u.origin.isShadowRoot()){if(c.type==="merge-block")break;if(ae(i.anchor.origin)&&i.anchor.origin.isEmpty()){const f=co(u);oh(this,Ja(f,f)),i.anchor.origin.remove()}return}c.type!=="merge-next-block"&&c.type!=="merge-block"||(c={block:c.block,caret:u,type:"merge-block"})}}else{if(c.type==="merge-block")break;if(xu(u)){if(ae(u.origin)){if(u.origin.isInline()){if(!u.origin.isParentOf(i.anchor.origin))break}else c={block:u.origin,type:"merge-next-block"};continue}if(Et(u.origin)){if(!u.origin.isIsolated())if(c.type==="merge-next-block"&&(u.origin.isKeyboardSelectable()||!u.origin.isInline())&&ae(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const f=V2();f.add(u.origin.getKey()),Er(f)}else u.origin.remove();return}break}}if(c.type==="merge-block"){const{caret:u,block:f}=c;return oh(this,Ja(!u.origin.isEmpty()&&f.isEmpty()?sb(rr(f,u.direction)):i.anchor,u)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&Lw(this,r.getNode()))return}else{const c=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,c!==null&&c.isSegmented()){const u=s.offset,f=c.getTextContentSize();if(c.is(o)||t&&u!==f||!t&&u!==0)return void Dw(c,t,u)}else if(o!==null&&o.isSegmented()){const u=r.offset,f=o.getTextContentSize();if(o.is(c)||t&&u!==0||!t&&u!==f)return void Dw(o,t,u)}(function(u,f){const m=u.anchor,h=u.focus,v=m.getNode(),w=h.getNode();if(v===w&&m.type==="text"&&h.type==="text"){const C=m.offset,A=h.offset,x=C<A,E=x?C:A,R=x?A:C,I=R-1;E!==I&&(function(L){return!(fE(L)||EN(L))})(v.getTextContent().slice(E,R))&&(f?h.set(h.key,I,h.type):m.set(m.key,I,m.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()&&cn(r.getParent())&&r.getPreviousSibling()===null&&Lw(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 In(e){return e instanceof um}function Nw(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function I0(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]:[Nw(n),Nw(r)]}function Lw(e,t){for(let n=t;n;n=n.getParent()){if(ae(n)){if(n.collapseAtStart(e))return!0;if(Dr(n))break}if(n.getPreviousSibling())break}return!1}const EN=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function Dw(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,c=0;for(let f=0;f<i;f++){const m=f===i-1;if(c=s,s+=o[f].length,t&&s===n||s>n||m){o.splice(f,1),m&&(c=void 0);break}}const u=o.join("").trim();u===""?r.remove():(r.setTextContent(u),r.select(c,c))}function Fw(e,t,n,r){let o,i=t;if(Gn(e)){let s=!1;const c=e.childNodes,u=c.length,f=r._blockCursorElement;i===u&&(s=!0,i=u-1);let m=c[i],h=!1;if(m===f)m=c[i+1],h=!0;else if(f!==null){const v=f.parentNode;e===v&&t>Array.prototype.indexOf.call(v.children,f)&&i--}if(o=Vc(m),Ie(o))i=Ka(o,s?"next":"previous");else{let v=Vc(e);if(v===null)return null;if(ae(v)){const w=r.getElementByKey(v.getKey());w===null&&be(214),[v,i]=v.getDOMSlot(w).resolveChildIndex(v,w,e,t),ae(v)||be(215),s&&i>=v.getChildrenSize()&&(i=Math.max(0,v.getChildrenSize()-1));let A=v.getChildAtIndex(i);if(ae(A)&&(function(x,E,R){const I=x.getParent();return R===null||I===null||!I.canBeEmpty()||I!==R.getNode()})(A,0,n)){const x=s?A.getLastDescendant():A.getFirstDescendant();x===null?v=A:(A=x,v=ae(A)?A:A.getParentOrThrow()),i=0}Ie(A)?(o=A,v=null,i=Ka(A,s?"next":"previous")):A!==v&&s&&!h&&(ae(v)||be(216),i=Math.min(v.getChildrenSize(),i+1))}else{const w=v.getIndexWithinParent();i=t===0&&Et(v)&&Vc(e)===v?w:w+1,v=v.getParentOrThrow()}if(ae(v))return di(v.__key,i,"element")}}else o=Vc(e);return Ie(o)?di(o.__key,Ka(o,i,"clamp"),"text"):null}function jw(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&&ae(s)&&s.isInline()){const c=s.getPreviousSibling();Ie(c)&&e.set(c.__key,c.getTextContent().length,"text")}}else ae(i)&&!n&&i.isInline()?e.set(i.__key,i.getChildrenSize(),"element"):Ie(i)&&e.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&ae(i)&&i.isInline())e.set(i.__key,0,"element");else if((n||t)&&i===null&&ae(s)&&s.isInline()&&!s.canInsertTextAfter()){const c=s.getNextSibling();Ie(c)&&e.set(c.__key,0,"text")}}}function U2(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);jw(e,r,o),jw(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=jt();if(i.isComposing()&&i._compositionKey!==e.key&&ge(n)){const s=n.anchor,c=n.focus;e.set(s.key,s.offset,s.type,!0),t.set(c.key,c.offset,c.type,!0)}}}function $2(e,t,n,r,o,i){if(e===null||n===null||!Od(o,e,n))return null;const s=Fw(e,t,ge(i)?i.anchor:null,o);if(s===null)return null;const c=Fw(n,r,ge(i)?i.focus:null,o);if(c===null)return null;if(s.type==="element"&&c.type==="element"){const u=Vc(e),f=Vc(n);if(Et(u)&&Et(f))return null}return U2(s,c,i),[s,c]}function M0(e){return ae(e)&&!e.isInline()}function W2(e,t,n,r,o,i){const s=os(),c=new Il(di(e,t,o),di(n,r,i),0,"");return c.dirty=!0,s._selection=c,c}function H2(){const e=di("root",0,"element"),t=di("root",0,"element");return new Il(e,t,0,"")}function V2(){return new um(new Set)}function Uy(e,t,n,r){const o=n._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,c=s==="selectionchange",u=!h0&&(c||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let f,m,h,v;if(ge(e)&&!u)return e.clone();if(t===null)return null;if(f=t.anchorNode,m=t.focusNode,h=t.anchorOffset,v=t.focusOffset,(c||s===void 0)&&ge(e)&&!Od(n,f,m))return e.clone();const w=$2(f,h,m,v,n,e);if(w===null)return null;const[C,A]=w;return new Il(C,A,ge(e)?e.format:0,ge(e)?e.style:"")}function Oe(){return os()._selection}function Ou(){return jt()._editorState._selection}function Th(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),c=i.getNode();if(!t.is(s)&&!t.is(c))return;const u=t.__key;if(e.isCollapsed()){const f=o.offset;if(n<=f&&r>0||n<f&&r<0){const m=Math.max(0,f+r);o.set(u,m,"element"),i.set(u,m,"element"),zw(e)}}else{const f=e.isBackward(),m=f?i:o,h=m.getNode(),v=f?o:i,w=v.getNode();if(t.is(h)){const C=m.offset;(n<=C&&r>0||n<C&&r<0)&&m.set(u,Math.max(0,C+r),"element")}if(t.is(w)){const C=v.offset;(n<=C&&r>0||n<C&&r<0)&&v.set(u,Math.max(0,C+r),"element")}}zw(e)}function zw(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!ae(i))return;const c=i.getChildrenSize(),u=n>=c,f=u?i.getChildAtIndex(c-1):i.getChildAtIndex(n);if(Ie(f)){let m=0;u&&(m=f.getTextContentSize()),t.set(f.__key,m,"text"),r.set(f.__key,m,"text")}return}if(ae(i)){const c=i.getChildrenSize(),u=n>=c,f=u?i.getChildAtIndex(c-1):i.getChildAtIndex(n);if(Ie(f)){let m=0;u&&(m=f.getTextContentSize()),t.set(f.__key,m,"text")}}if(ae(s)){const c=s.getChildrenSize(),u=o>=c,f=u?s.getChildAtIndex(c-1):s.getChildAtIndex(o);if(Ie(f)){let m=0;u&&(m=f.getTextContentSize()),r.set(f.__key,m,"text")}}}function _h(e,t,n,r,o){let i=null,s=0,c=null;r!==null?(i=r.__key,Ie(r)?(s=r.getTextContentSize(),c="text"):ae(r)&&(s=r.getChildrenSize(),c="element")):o!==null&&(i=o.__key,Ie(o)?c="text":ae(o)&&(c="element")),i!==null&&c!==null?e.set(i,s,c):(s=t.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Bw(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 K2(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function kN(e,t,n,r,o,i,s){const c=r.anchorNode,u=r.focusNode,f=r.anchorOffset,m=r.focusOffset,h=document.activeElement;if(o.has(hN)&&h!==i||h!==null&&Gy(h))return;if(!ge(t))return void(e!==null&&Od(n,c,u)&&r.removeAllRanges());const v=t.anchor,w=t.focus,C=v.key,A=w.key,x=El(n,C),E=El(n,A),R=v.offset,I=w.offset,L=t.format,M=t.style,U=t.isCollapsed();let j=x,W=E,H=!1;if(v.type==="text"){j=yu(x);const xe=v.getNode();H=xe.getFormat()!==L||xe.getStyle()!==M}else ge(e)&&e.anchor.type==="text"&&(H=!0);var G,q,pe,ie,se;if(w.type==="text"&&(W=yu(E)),j!==null&&W!==null&&(U&&(e===null||H||ge(e)&&(e.format!==L||e.style!==M))&&(G=L,q=M,pe=R,ie=C,se=performance.now(),O2=[G,q,pe,ie,se]),f!==R||m!==I||c!==j||u!==W||r.type==="Range"&&U||(h!==null&&i.contains(h)||o.has(vN)||i.focus({preventScroll:!0}),v.type==="element"))){if(K2(r,j,R,W,I),!o.has(mN)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const xe=ge(t)&&t.anchor.type==="element"?j.childNodes[R]||null:r.rangeCount>0?r.getRangeAt(0):null;if(xe!==null){let Ae;if(xe instanceof Text){const Re=document.createRange();Re.selectNode(xe),Ae=Re.getBoundingClientRect()}else Ae=xe.getBoundingClientRect();(function(Re,Q,Ee){const ne=mE(Ee),re=eb(ne);if(ne===null||re===null)return;let{top:ue,bottom:me}=Q,Te=0,de=0,ve=Ee;for(;ve!==null;){const _e=ve===ne.body;if(_e)Te=0,de=mo(Re).innerHeight;else{const ze=ve.getBoundingClientRect();Te=ze.top,de=ze.bottom}let je=0;if(ue<Te?je=-(Te-ue):me>de&&(je=me-de),je!==0)if(_e)re.scrollBy(0,je);else{const ze=ve.scrollTop;ve.scrollTop+=je;const Be=ve.scrollTop-ze;ue-=Be,me-=Be}if(_e)break;ve=Id(ve)}})(n,Ae,i)}}k0=!0}}function Y2(e){let t=Oe()||Ou();t===null&&(t=Xt().selectEnd()),t.insertNodes(e)}function ev(e){let t=e;e.isCollapsed()||t.removeText();const n=Oe();ge(n)&&(t=n),ge(t)||be(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Oa(o);){const s=o;if([o,i]=TN(o,i),s.is(o))break}return i}function TN(e,t){const n=e.getParent();if(!n){const o=Sr();return Xt().append(o),o.select(),[Xt(),0]}if(Ie(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(!ae(e)||t===0)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const o=new Il(di(e.__key,t,"element"),di(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Uw(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[m,h]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return h.set(m.key,m.offset,m.type),!0}const i=Gi(e.focus,n?"previous":"next"),s=r==="lineboundary",c=t==="move";let u=i,f=o==="decorators-and-blocks";if(!wE(u)){for(const m of u){f=!1;const{origin:h}=m;if(!Et(h)||h.isIsolated()||(u=m,!s||!h.isInline()))break}if(f)for(const m of ab(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(ci(m))m.origin.isInline()||(u=m);else{if(ae(m.origin))continue;Et(m.origin)&&!m.origin.isInline()&&(u=m)}break}}if(u===i)return!1;if(c&&!s&&Et(u.origin)&&u.origin.isKeyboardSelectable()){const m=V2();return m.add(u.origin.getKey()),Er(m),!0}return u=co(u),c&&Rl(e.anchor,u),Rl(e.focus,u),f||!s}let Mn=null,Nn=null,Lr=!1,tv=!1,nh=0;const $w={characterData:!0,childList:!0,subtree:!0};function Rd(){return Lr||Mn!==null&&Mn._readOnly}function tr(){Lr&&be(13)}function G2(){nh>99&&be(14)}function os(){return Mn===null&&be(195,Q2()),Mn}function jt(){return Nn===null&&be(196,Q2()),Nn}function Q2(){let e=0;const t=new Set,n=Al.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=dm(o);if(Qy(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 _N(){return Nn}function Ww(e,t,n){const r=t.__type,o=rE(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 c=0;c<s&&(i[c](t),t.isAttached());c++);}function Hw(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function Z2(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 RN(e){return $y(e,jt()._nodes)}function $y(e,t){const n=e.type,r=t.get(n);r===void 0&&be(17,n);const o=r.klass;e.type!==o.getType()&&be(18,o.name);const i=o.importJSON(e),s=e.children;if(ae(i)&&Array.isArray(s))for(let c=0;c<s.length;c++){const u=$y(s[c],t);i.append(u)}return i}function Vw(e,t,n){const r=Mn,o=Lr,i=Nn;Mn=t,Lr=!0,Nn=e;try{return n()}finally{Mn=r,Lr=o,Nn=i}}function Ui(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,c=n._selection,u=e._dirtyType!==0,f=Mn,m=Lr,h=Nn,v=e._updating,w=e._observer;let C=null;if(e._pendingEditorState=null,e._editorState=n,!o&&u&&w!==null){Nn=e,Mn=n,Lr=!1,e._updating=!0;try{const U=e._dirtyType,j=e._dirtyElements,W=e._dirtyLeaves;w.disconnect(),C=YM(i,n,e,U,j,W)}catch(U){if(U instanceof Error&&e._onError(U),tv)throw U;return tE(e,null,r,n),a2(e),e._dirtyType=2,tv=!0,Ui(e,i),void(tv=!1)}finally{w.observe(r,$w),e._updating=v,Mn=f,Lr=m,Nn=h}}n._readOnly||(n._readOnly=!0);const A=e._dirtyLeaves,x=e._dirtyElements,E=e._normalizedNodes,R=e._updateTags,I=e._deferred;u&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),(function(U,j){const W=U._decorators;let H=U._pendingDecorators||W;const G=j._nodeMap;let q;for(q in H)G.has(q)||(H===W&&(H=cE(U)),delete H[q])})(e,n);const L=o?null:go(mo(e));if(e._editable&&L!==null&&(u||c===null||c.dirty||!c.is(s))&&r!==null&&!R.has(gN)){Nn=e,Mn=n;try{if(w!==null&&w.disconnect(),u||c===null||c.dirty){const U=e._blockCursorElement;U!==null&&F0(U,e,r),kN(s,c,e,L,R,r)}(function(U,j,W){let H=U._blockCursorElement;if(ge(W)&&W.isCollapsed()&&W.anchor.type==="element"&&j.contains(document.activeElement)){const G=W.anchor,q=G.getNode(),pe=G.offset;let ie=!1,se=null;if(pe===q.getChildrenSize())rv(q.getChildAtIndex(pe-1))&&(ie=!0);else{const xe=q.getChildAtIndex(pe);if(xe!==null&&rv(xe)){const Ae=xe.getPreviousSibling();(Ae===null||rv(Ae))&&(ie=!0,se=U.getElementByKey(xe.__key))}}if(ie){const xe=U.getElementByKey(q.__key);return H===null&&(U._blockCursorElement=H=(function(Ae){const Re=Ae.theme,Q=document.createElement("div");Q.contentEditable="false",Q.setAttribute("data-lexical-cursor","true");let Ee=Re.blockCursor;if(Ee!==void 0){if(typeof Ee=="string"){const ne=t2(Ee);Ee=Re.blockCursor=ne}Ee!==void 0&&Q.classList.add(...Ee)}return Q})(U._config)),j.style.caretColor="transparent",void(se===null?xe.appendChild(H):xe.insertBefore(H,se))}}H!==null&&F0(H,U,j)})(e,r,c)}finally{w!==null&&w.observe(r,$w),Nn=h,Mn=f}}C!==null&&(function(U,j,W,H,G){const q=Array.from(U._listeners.mutation),pe=q.length;for(let ie=0;ie<pe;ie++){const[se,xe]=q[ie];for(const Ae of xe){const Re=j.get(Ae);Re!==void 0&&se(Re,{dirtyLeaves:H,prevEditorState:G,updateTags:W})}}})(e,C,R,A,i),ge(c)||c===null||s!==null&&s.is(c)||e.dispatchCommand(sm,void 0);const M=e._pendingDecorators;M!==null&&(e._decorators=M,e._pendingDecorators=null,Yf("decorator",e,!0,M)),(function(U,j,W){const H=Qw(j),G=Qw(W);H!==G&&Yf("textcontent",U,!0,G)})(e,t||i,n),Yf("update",e,!0,{dirtyElements:x,dirtyLeaves:A,editorState:n,mutatedNodes:C,normalizedNodes:E,prevEditorState:t||i,tags:R}),(function(U,j){if(U._deferred=[],j.length!==0){const W=U._updating;U._updating=!0;try{for(let H=0;H<j.length;H++)j[H]()}finally{U._updating=W}}})(e,I),(function(U){const j=U._updates;if(j.length!==0){const W=j.shift();if(W){const[H,G]=W;fm(U,H,G)}}})(e)}function Yf(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 Kw(e,t){const n=e._updates;let r=t||!1;for(;n.length!==0;){const o=n.shift();if(o){const[i,s]=o,c=e._pendingEditorState;let u;s!==void 0&&(u=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(c===null&&be(191),c._flushSync=!0),u&&e._deferred.push(u),Z2(e,s.tag)),c==null?fm(e,i,s):i()}}return r}function fm(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,Z2(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const c=e._editorState;let u=e._pendingEditorState,f=!1;(u===null||u._readOnly)&&(u=e._pendingEditorState=J2(u||c),f=!0),u._flushSync=s;const m=Mn,h=Lr,v=Nn,w=e._updating;Mn=u,Lr=!1,e._updating=!0,Nn=e;const C=e._headless||e.getRootElement()===null;Ky(null);try{f&&(C?c._selection!==null&&(u._selection=c._selection.clone()):u._selection=(function(R,I){const L=R.getEditorState()._selection,M=go(mo(R));return ge(L)||L==null?Uy(L,M,R,I):L.clone()})(e,n&&n.event||null));const x=e._compositionKey;t(),i=Kw(e,i),(function(R,I){const L=I.getEditorState()._selection,M=R._selection;if(ge(M)){const U=M.anchor,j=M.focus;let W;if(U.type==="text"&&(W=U.getNode(),W.selectionTransform(L,M)),j.type==="text"){const H=j.getNode();W!==H&&H.selectionTransform(L,M)}}})(u,e),e._dirtyType!==0&&(i?(function(R,I){const L=I._dirtyLeaves,M=R._nodeMap;for(const U of L){const j=M.get(U);Ie(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Sw(j)}})(u,e):(function(R,I){const L=I._dirtyLeaves,M=I._dirtyElements,U=R._nodeMap,j=Ua(),W=new Map;let H=L,G=H.size,q=M,pe=q.size;for(;G>0||pe>0;){if(G>0){I._dirtyLeaves=new Set;for(const ie of H){const se=U.get(ie);Ie(se)&&se.isAttached()&&se.isSimpleText()&&!se.isUnmergeable()&&Sw(se),se!==void 0&&Hw(se,j)&&Ww(I,se,W),L.add(ie)}if(H=I._dirtyLeaves,G=H.size,G>0){nh++;continue}}I._dirtyLeaves=new Set,I._dirtyElements=new Map,q.delete("root")&&q.set("root",!0);for(const ie of q){const se=ie[0],xe=ie[1];if(M.set(se,xe),!xe)continue;const Ae=U.get(se);Ae!==void 0&&Hw(Ae,j)&&Ww(I,Ae,W)}H=I._dirtyLeaves,G=H.size,q=I._dirtyElements,pe=q.size,nh++}I._dirtyLeaves=L,I._dirtyElements=M})(u,e),Kw(e),(function(R,I,L,M){const U=R._nodeMap,j=I._nodeMap,W=[];for(const[H]of M){const G=j.get(H);G!==void 0&&(G.isAttached()||(ae(G)&&r2(G,H,U,j,W,M),U.has(H)||M.delete(H),W.push(H)))}for(const H of W)j.delete(H);for(const H of L){const G=j.get(H);G===void 0||G.isAttached()||(U.has(H)||L.delete(H),j.delete(H))}})(c,u,e._dirtyLeaves,e._dirtyElements)),x!==e._compositionKey&&(u._flushSync=!0);const E=u._selection;if(ge(E)){const R=u._nodeMap,I=E.anchor.key,L=E.focus.key;R.get(I)!==void 0&&R.get(L)!==void 0||be(19)}else In(E)&&E._nodes.size===0&&(u._selection=null)}catch(x){return x instanceof Error&&e._onError(x),e._pendingEditorState=c,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Ui(e)}finally{Mn=m,Lr=h,Nn=v,e._updating=w,nh=0}e._dirtyType!==0||e._deferred.length>0||(function(x,E){const R=E.getEditorState()._selection,I=x._selection;if(I!==null){if(I.dirty||!I.is(R))return!0}else if(R!==null)return!0;return!1})(u,e)?u._flushSync?(u._flushSync=!1,Ui(e)):f&&LN(()=>{Ui(e)}):(u._flushSync=!1,f&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function li(e,t,n){Nn===e&&n===void 0?t():fm(e,t,n)}class Gf{constructor(t,n,r){ce(this,"element");ce(this,"before");ce(this,"after");this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new Gf(this.element,t,this.after)}withAfter(t){return new Gf(this.element,this.before,t)}withElement(t){return this.element===t?this:new Gf(t,this.before,this.after)}insertChild(t){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&be(222),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&be(223),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&be(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"&&(Td||_u||kd);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 u=this.getFirstChildOffset();return[t,Math.min(u+t.getChildrenSize(),Math.max(u,o))]}const i=Yw(n,r);i.push(o);const s=Yw(n,this.element);let c=t.getIndexWithinParent();for(let u=0;u<s.length;u++){const f=i[u],m=s[u];if(f===void 0||f<m)break;if(f>m){c+=1;break}}return[t.getParentOrThrow(),c]}}function Yw(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&&be(225),n.reverse()}class pi extends No{constructor(n){super(n);ce(this,"__first");ce(this,"__last");ce(this,"__size");ce(this,"__format");ce(this,"__style");ce(this,"__indent");ce(this,"__dir");ce(this,"__textFormat");ce(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 LM[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=jt()._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(Ie(r)&&n.push(r),ae(r)){const o=r.getAllTextNodes();n.push(...o)}r=r.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;ae(n);){const r=n.getFirstChild();if(r===null)break;n=r}return n}getLastDescendant(){let n=this.getLastChild();for(;ae(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 ae(s)&&s.getLastDescendant()||s||null}const i=r[n];return ae(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:bn(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&be(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:bn(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&be(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(),ae(s)&&i!==o-1&&!s.isInline()&&(n+=Xa)}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(),ae(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=hw[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=xl[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return Rh(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){tr();const o=Oe();let i=n,s=r;const c=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const f=this.getFirstChild();if(Ie(f)||ae(f))return f.select(0,0)}else if(!(n!==void 0&&n!==c||r!==void 0&&r!==c)){const f=this.getLastChild();if(Ie(f)||ae(f))return f.select()}}i===void 0&&(i=c),s===void 0&&(s=c);const u=this.__key;return ge(o)?(o.anchor.set(u,i,"element"),o.focus.set(u,s,"element"),o.dirty=!0,o):W2(u,i,u,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!==""?hw[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){kh(this)&&be(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+r<=i||be(226,String(n),String(r),String(i));const c=s.__key,u=[],f=[],m=this.getChildAtIndex(n+r);let h=null,v=i-r+o.length;if(n!==0)if(n===i)h=this.getLastChild();else{const C=this.getChildAtIndex(n);C!==null&&(h=C.getPreviousSibling())}if(r>0){let C=h===null?this.getFirstChild():h.getNextSibling();for(let A=0;A<r;A++){C===null&&be(100);const x=C.getNextSibling(),E=C.__key;dl(C.getWritable()),f.push(E),C=x}}let w=h;for(const C of o){w!==null&&C.is(w)&&(h=w=w.getPreviousSibling());const A=C.getWritable();A.__parent===c&&v--,dl(A);const x=C.__key;if(w===null)s.__first=x,A.__prev=null;else{const E=w.getWritable();E.__next=x,A.__prev=E.__key}C.__key===c&&be(76),A.__parent=c,u.push(x),w=C}if(n+r===i)w!==null&&(w.getWritable().__next=null,s.__last=w.__key);else if(m!==null){const C=m.getWritable();if(w!==null){const A=w.getWritable();C.__prev=w.__key,A.__next=m.__key}else C.__prev=null}if(s.__size=v,f.length){const C=Oe();if(ge(C)){const A=new Set(f),x=new Set(u),{anchor:E,focus:R}=C;Gw(E,A,x)&&_h(E,E.getNode(),this,h,m),Gw(R,A,x)&&_h(R,R.getNode(),this,h,m),v!==0||this.canBeEmpty()||Dr(this)||this.remove()}}return s}getDOMSlot(n){return new Gf(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(Gn(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===""||Dr(this)||this.getChildren().some(Ie)||(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 c=r.getElementByKey(s.getKey());c!==null&&(i==null?(o.insertChild(c),i=c):i!==c&&o.replaceChild(c,i),i=i.nextSibling)}}}function ae(e){return e instanceof pi}function Gw(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 X2 extends No{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Et(e){return e instanceof X2}class Iu extends pi{constructor(){super("root");ce(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Iu}getTopLevelElementOrThrow(){be(51)}getTextContent(){const n=this.__cachedText;return!Rd()&&jt()._dirtyType!==0||n===null?super.getTextContent():n}remove(){be(52)}replace(n){be(53)}insertBefore(n){be(54)}insertAfter(n){be(55)}updateDOM(n,r){return!1}splice(n,r,o){for(const i of o)ae(i)||Et(i)||be(282);return super.splice(n,r,o)}static importJSON(n){return Xt().updateFromJSON(n)}collapseAtStart(){return!0}}function cn(e){return e instanceof Iu}function J2(e){return new Pd(new Map(e._nodeMap))}function Wy(){return new Pd(new Map([["root",new Iu]]))}function q2(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&be(130,n.name),ae(e)){const r=t.children;Array.isArray(r)||be(59,n.name);const o=e.getChildren();for(let i=0;i<o.length;i++){const s=q2(o[i]);r.push(s)}}return t}function PN(e){return e instanceof Pd}class Pd{constructor(t,n){ce(this,"_nodeMap");ce(this,"_selection");ce(this,"_flushSync");ce(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 Vw(n&&n.editor||null,this,t)}clone(t){const n=new Pd(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Vw(null,this,()=>({root:q2(Xt())}))}}class Hy extends pi{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Mu extends pi{static getType(){return"paragraph"}static clone(t){return new Mu(t.__key)}createDOM(t){const n=document.createElement("p"),r=eu(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:ON,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(Gn(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(t){return Sr().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(t.textFormat===void 0||t.textStyle===void 0){const n=this.getChildren().find(Ie);n?(t.textFormat=n.getFormat(),t.textStyle=n.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,n){const r=Sr();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||Ie(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 ON(e){const t=Sr();return e.style&&(t.setFormat(e.style.textAlign),KN(e,t)),{node:t}}function Sr(){return is(new Mu)}function Vy(e){return e instanceof Mu}const lt=0,$i=1,IN=3,eE=4;function tE(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Wy(),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 MN(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=mm(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 No&&s!==No?s:void 0}}return t}function nE(e){const t=e||{},n=_N(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=Wy(),c=t.namespace||(o!==null?o._config.namespace:dE()),u=t.editorState,f=[Iu,rs,Ru,Pu,Mu,Hy,...t.nodes||[]],{onError:m,html:h}=t,v=t.editable===void 0||t.editable;let w;if(e===void 0&&n!==null)w=n._nodes;else{w=new Map;for(let A=0;A<f.length;A++){let x=f[A],E=null,R=null;if(typeof x!="function"){const M=x;x=M.replace,E=M.with,R=M.withKlass||null}mm(x);const I=x.getType(),L=MN(x);w.set(I,{exportDOM:h&&h.export?h.export.get(x):void 0,klass:x,replace:E,replaceWithKlass:R,sharedNodeState:$M(f[A]),transforms:L})}}const C=new Al(s,o,w,{disableEvents:i,namespace:c,theme:r},m||console.error,(function(A,x){const E=new Map,R=new Set,I=L=>{Object.keys(L).forEach(M=>{let U=E.get(M);U===void 0&&(U=[],E.set(M,U)),U.push(L[M])})};return A.forEach(L=>{const M=L.klass.importDOM;if(M==null||R.has(M))return;R.add(M);const U=M.call(L.klass);U!==null&&I(U)}),x&&I(x),E})(w,h?h.import:void 0),v,e);return u!==void 0&&(C._pendingEditorState=u,C._dirtyType=2),(function(A){A.registerCommand(p2,aN,lt),A.registerCommand(h2,sN,lt),A.registerCommand(m2,lN,lt),A.registerCommand(g2,cN,lt),A.registerCommand(v2,uN,lt)})(C),C}class Al{constructor(t,n,r,o,i,s,c,u){ce(this,"_headless");ce(this,"_parentEditor");ce(this,"_rootElement");ce(this,"_editorState");ce(this,"_pendingEditorState");ce(this,"_compositionKey");ce(this,"_deferred");ce(this,"_keyToDOMMap");ce(this,"_updates");ce(this,"_updating");ce(this,"_listeners");ce(this,"_commands");ce(this,"_nodes");ce(this,"_decorators");ce(this,"_pendingDecorators");ce(this,"_config");ce(this,"_dirtyType");ce(this,"_cloneNotNeeded");ce(this,"_dirtyLeaves");ce(this,"_dirtyElements");ce(this,"_normalizedNodes");ce(this,"_updateTags");ce(this,"_observer");ce(this,"_key");ce(this,"_onError");ce(this,"_htmlConversions");ce(this,"_window");ce(this,"_editable");ce(this,"_blockCursorElement");ce(this,"_createEditorArgs");this._createEditorArgs=u,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=dE(),this._onError=i,this._htmlConversions=s,this._editable=c,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&&be(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&&be(36,String(t));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(c=>c.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 c=r&&r.skipInitialization;return c!==void 0&&c||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&&be(37,t.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,n){const r=this._editorState,o=n1(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,c){const u=n1(s.getEditorState()),f=[];for(const m of c){const h=u.get(m);h&&f.push(h)}f.length!==0&&s.update(()=>{for(const m of f)for(const h of m.keys()){const v=bn(h);v&&v.markDirty()}},s._pendingEditorState===null?{tag:cl}: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 Le(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=eu(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,tE(this,n,t,o),n!==null&&(this._config.disableEvents||fN(n),r!=null&&n.classList.remove(...r)),t!==null){const i=eb(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,a2(this),this._updateTags.add(cl),Ui(this),this._config.disableEvents||(function(c,u){const f=c.ownerDocument;E0.set(c,f);const m=Ah.get(f)??0;m<1&&f.addEventListener("selectionchange",D2),Ah.set(f,m+1),c.__lexicalEditor=u;const h=L2(c);for(let v=0;v<A0.length;v++){const[w,C]=A0[v],A=typeof C=="function"?x=>{Rw(x)||(_w(x),(u.isEditable()||w==="click")&&C(x,u))}:x=>{if(Rw(x))return;_w(x);const E=u.isEditable();switch(w){case"cut":return E&&Le(u,zy,x);case"copy":return Le(u,cm,x);case"paste":return E&&Le(u,lm,x);case"dragstart":return E&&Le(u,T2,x);case"dragover":return E&&Le(u,_2,x);case"dragend":return E&&Le(u,eN,x);case"focus":return E&&Le(u,rN,x);case"blur":return E&&Le(u,oN,x);case"drop":return E&&Le(u,k2,x)}};c.addEventListener(w,A),h.push(()=>{c.removeEventListener(w,A)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(cl),Ui(this);Yf("root",this,!1,t,n)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,n){t.isEmpty()&&be(38);let r=t;r._readOnly&&(r=J2(t),r._selection=t._selection?t._selection.clone():null),i2(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Ui(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Ui(this)}parseEditorState(t,n){return(function(r,o,i){const s=Wy(),c=Mn,u=Lr,f=Nn,m=o._dirtyElements,h=o._dirtyLeaves,v=o._cloneNotNeeded,w=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Mn=s,Lr=!1,Nn=o,Ky(null);try{const C=o._nodes;$y(r.root,C),i&&i(),s._readOnly=!0}catch(C){C instanceof Error&&o._onError(C)}finally{o._dirtyElements=m,o._dirtyLeaves=h,o._cloneNotNeeded=v,o._dirtyType=w,Mn=c,Lr=u,Nn=f}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Ui(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):fm(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),li(this,()=>{const o=Oe(),i=Xt();o!==null?o.dirty||Er(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),zN("focus"),BN(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=go(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,Yf("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}ce(Al,"version");Al.version="0.39.0+prod.esm";let N0=null;function Ky(e){N0=e}let NN=1;function rE(e,t){const n=Yy(e,t);return n===void 0&&be(30,t),n}function Yy(e,t){return e._nodes.get(t)}const LN=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function oE(e){return Et(bu(e))}function Gy(e){const t=document.activeElement;if(!Gn(t))return!1;const n=t.nodeName;return Et(bu(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&dm(t)==null)}function Od(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Gy(t)&&iE(t)===e}catch{return!1}}function Qy(e){return e instanceof Al}function iE(e){let t=e;for(;t!=null;){const n=dm(t);if(Qy(n))return n;t=Id(t)}return null}function dm(e){return e?e.__lexicalEditor:null}function fl(e){return B2(e)||e.isToken()}function Li(e){return fl(e)||e.isSegmented()}function ta(e){return Nu(e)&&e.nodeType===3}function aE(e){return Nu(e)&&e.nodeType===9}function yu(e){let t=e;for(;t!=null;){if(ta(t))return t;t=t.firstChild}return null}function Rh(e,t,n){const r=xl[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 sE(e){return Ie(e)||ul(e)||Et(e)}function DN(e,t){const n=(function(){const s=N0;return N0=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);tr(),G2();const r=jt(),o=os(),i=""+NN++;o._nodeMap.set(i,e),ae(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function dl(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,c=o!==null?o.__key:null,u=o!==null?o.getWritable():null,f=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=c),u!==null&&(u.__next=s),f!==null&&(f.__prev=c),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Ph(e){G2(),kh(e)&&be(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=os(),o=jt(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(u,f,m){let h=u;for(;h!==null;){if(m.has(h))return;const v=f.get(h);if(v===void 0)break;m.set(h,!1),h=v.__parent}})(n,i,s);const c=t.__key;o._dirtyType=1,ae(e)?s.set(c,!0):o._dirtyLeaves.add(c)}function Kn(e){tr();const t=jt(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){const r=bn(n);r!==null&&r.getWritable()}if(e!==null){const r=bn(e);r!==null&&r.getWritable()}}}function Ua(){return Rd()?null:jt()._compositionKey}function bn(e,t){const n=(t||os())._nodeMap.get(e);return n===void 0?null:n}function lE(e,t){const n=pm(e,jt());return n!==void 0?bn(n,t):null}function pm(e,t){return e[`__lexicalKey_${t._key}`]}function bu(e,t){let n=e;for(;n!=null;){const r=lE(n,t);if(r!==null)return r;n=Id(n)}return null}function cE(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Qw(e){return e.read(()=>Xt().getTextContent())}function Xt(){return uE(os())}function uE(e){return e._nodeMap.get("root")}function Er(e){tr();const t=os();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Vc(e){const t=jt(),n=(function(r,o){let i=r;for(;i!=null;){const s=pm(i,o);if(s!==void 0)return s;i=Id(i)}return null})(e,t);return n===null?e===t.getRootElement()?bn("root"):null:bn(n)}function fE(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Zy(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function dE(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function pE(e){return ta(e)?e.nodeValue:null}function Xy(e,t,n){const r=go(mo(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let c=pE(o);const u=bu(o);if(c!==null&&Ie(u)){if(c===im&&n){const f=n.length;c=n,i=f,s=f}c!==null&&Jy(u,c,i,s,e)}}}function Jy(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let c=t;(s||o)&&t[t.length-1]===im&&(c=t.slice(0,-1));const u=i.getTextContent();if(o||c!==u){if(c===""){if(Kn(null),kd||_u||Td)i.remove();else{const A=jt();setTimeout(()=>{A.update(()=>{i.isAttached()&&i.remove()})},20)}return}const f=i.getParent(),m=Ou(),h=i.getTextContentSize(),v=Ua(),w=i.getKey();if(i.isToken()||v!==null&&w===v&&!s||ge(m)&&(f!==null&&!f.canInsertTextBefore()&&m.anchor.offset===0||m.anchor.key===e.__key&&m.anchor.offset===0&&!i.canInsertTextBefore()&&!s||m.focus.key===e.__key&&m.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const C=Oe();if(!ge(C)||n===null||r===null)return void Zw(i,c,C);if(C.setTextNodeRange(i,n,i,r),i.isSegmented()){const A=On(i.getTextContent());i.replace(A),i=A}Zw(i,c,C)}}}function Zw(e,t,n){if(e.setTextContent(t),ge(n)){const r=e.getKey();for(const o of["anchor","focus"]){const i=n[o];i.type==="text"&&i.key===r&&(i.offset=Ka(e,i.offset,"clamp"))}}}function zp(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function FN(e,t){return zp(e,t,"altKey")&&zp(e,t,"ctrlKey")&&zp(e,t,"shiftKey")&&zp(e,t,"metaKey")}function Nt(e,t,n){return FN(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Mi={ctrlKey:!Io,metaKey:Io},Xw={altKey:Io,ctrlKey:!Io};function Jw(e){return e.key==="Backspace"}function qw(e){return Nt(e,"a",Mi)}function jN(e){const t=Xt();if(ge(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"),vu(e),e}{const n=t.select(0,t.getChildrenSize());return Er(vu(n)),n}}function eu(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=t2(o);return n[t]=i,i}return o}function qy(e,t,n,r,o){if(n.size===0)return;const i=r.__type,s=r.__key,c=t.get(i);c===void 0&&be(33,i);const u=c.klass;let f=e.get(u);f===void 0&&(f=new Map,e.set(u,f));const m=f.get(s),h=m==="destroyed"&&o==="created";(m===void 0||h)&&f.set(s,h?"updated":o)}function e1(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 L0(e,t){const n=e.offset;if(e.type==="element")return e1(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?e1(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function hE(e){const t=mo(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function Le(e,t,n){return(function(r,o,i){const s=Zy(r);for(let c=4;c>=0;c--)for(let u=0;u<s.length;u++){const f=s[u],m=f._commands.get(o);if(m!==void 0){const h=m[c];if(h!==void 0){const v=Array.from(h),w=v.length;let C=!1;if(li(f,()=>{for(let A=0;A<w;A++)if(v[A](i,r))return void(C=!0)}),C)return C}}}return!1})(e,t,n)}function hm(e){return!cn(e)&&!e.isLastChild()&&!e.isInline()}function El(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&be(75,t),n}function Id(e){const t=e.assignedSlot||e.parentElement;return j0(t)?t.host:t}function mE(e){return aE(e)?e:Gn(e)?e.ownerDocument:null}function zN(e){tr(),jt()._updateTags.add(e)}function BN(e){tr(),jt()._deferred.push(e)}function D0(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function eb(e){const t=mE(e);return t?t.defaultView:null}function mo(e){const t=e._window;return t===null&&be(78),t}function UN(e){let t=e.getParentOrThrow();for(;t!==null;){if(Dr(t))return t;t=t.getParentOrThrow()}return t}function Dr(e){return cn(e)||ae(e)&&e.isShadowRoot()}function is(e){const t=jt(),n=e.getType(),r=Yy(t,n);r===void 0&&be(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(e),c=s.constructor;return i!==null?s instanceof i||be(201,i.name,i.getType(),c.name,c.getType(),e.constructor.name,n):s instanceof e.constructor&&c!==e.constructor||be(202,c.name,c.getType(),e.constructor.name,n),s.__key===e.__key&&be(203,e.constructor.name,n,c.name,c.getType()),s}return e}function nv(e,t){!cn(e.getParent())||ae(t)||Et(t)||be(99)}function $N(e){const t=bn(e);return t===null&&be(63,e),t}function rv(e){return(Et(e)||ae(e)&&!e.canBeEmpty())&&!e.isInline()}function F0(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function go(e){return jo?(e||window).getSelection():null}function WN(e){const t=eb(e);return t?t.getSelection():null}function gE(e){return Gn(e)&&e.tagName==="A"}function Gn(e){return Nu(e)&&e.nodeType===1}function Nu(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function j0(e){return Nu(e)&&e.nodeType===11}function z0(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 Oh(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 Oa(e){if(Et(e)&&!e.isInline())return!0;if(!ae(e)||Dr(e))return!1;const t=e.getFirstChild(),n=t===null||ul(t)||Ie(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function tb(){return jt()}const t1=new WeakMap,HN=new Map;function n1(e){if(!e._readOnly&&e.isEmpty())return HN;e._readOnly||be(192);let t=t1.get(e);return t||(t=(function(n){const r=new Map;for(const[o,i]of n._nodeMap){const s=i.__type;let c=r.get(s);c||(c=new Map,r.set(s,c)),c.set(o,i)}return r})(e),t1.set(e,t)),t}function vE(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function VN(e){return(t=vE(e))[F2]=!0,t;var t}function KN(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function YN(e){return e.__lexicalUnmanaged===!0}function Df(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==No[t]}function mm(e){const t=mw in e.prototype?e.prototype[mw]():void 0,n=(function(s){if(!(s===No||s.prototype instanceof No)){let c="<unknown>",u="<unknown>";try{c=s.getType()}catch{}try{Al.version&&(u=JSON.parse(Al.version))}catch{}be(290,s.name,c,u)}return s===X2||s===pi||s===No})(e),r=!n&&Df(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[s,c]of Object.entries(t))i=s,o=c;if(!n&&i&&(Df(e,"getType")||(e.getType=()=>i),Df(e,"clone")||(e.clone=s=>(Ky(s),new e)),Df(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!Df(e,"importDOM")&&o)){const{importDOM:s}=o;s&&(e.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const Ln=(e,t)=>{let n=e;for(;n!=null&&!cn(n);){if(t(n))return n;n=n.getParent()}return null},GN={next:"previous",previous:"next"};class nb{constructor(t){ce(this,"origin");this.origin=t}[Symbol.iterator](){return yE({hasNext:xu,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return rr(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return rr(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(),c=new Map;for(let u=i.getAdjacentCaret();u!==null&&c.size<t;u=u.getAdjacentCaret()){const f=u.origin.getWritable();c.set(f.getKey(),f)}for(const u of o){if(c.size>0){const f=i.getNodeAtCaret();if(f){if(c.delete(f.getKey()),c.delete(u.getKey()),!(f.is(u)||i.origin.is(u))){const m=u.getParent();m&&m.is(s)&&u.remove(),f.replace(u)}}else f===null&&be(263,Array.from(c).join(" "))}else i.insert(u);i=rr(u,this.direction)}for(const u of c.values())u.remove();return this}}class ud extends nb{constructor(){super(...arguments);ce(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Do(n,this.direction)}getParentCaret(n="root"){return rr(rb(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Lu(this.direction);return rr(this.getNodeAtCaret(),n)||Do(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof ud&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const QN={root:cn,shadowRoot:Dr};function Lu(e){return GN[e]}function rb(e,t="root"){return QN[t](e)?null:e}class kl extends nb{constructor(){super(...arguments);ce(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rr(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return ae(this.origin)?Do(this.origin,this.direction):null}getParentCaret(n="root"){return rr(rb(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Lu(this.direction);return rr(this.getNodeAtCaret(),n)||Do(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof kl&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof kl||n instanceof Tl)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Tl extends nb{constructor(n,r){super(n);ce(this,"type","text");ce(this,"offset");this.offset=r}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:_l(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return rr(rb(this.getParentAtCaret(),n),this.direction)}getFlipped(){return _l(this.origin,Lu(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Tl&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof kl||n instanceof Tl)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return rr(this.origin,this.direction)}}function Va(e){return e instanceof Tl}function xu(e){return e instanceof kl}function ci(e){return e instanceof ud}const ZN={next:class extends Tl{constructor(){super(...arguments);ce(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Tl{constructor(){super(...arguments);ce(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},XN={next:class extends kl{constructor(){super(...arguments);ce(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends kl{constructor(){super(...arguments);ce(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},JN={next:class extends ud{constructor(){super(...arguments);ce(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends ud{constructor(){super(...arguments);ce(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function rr(e,t){return e?new XN[t](e):null}function _l(e,t,n){return e?new ZN[t](e,Ka(e,n)):null}function Ka(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&qA(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function r1(e,t){return new eL(e,t)}function Do(e,t){return ae(e)?new JN[t](e):null}function qN(e){return e&&e.getChildCaret()||e}function ob(e){return e&&qN(e.getAdjacentCaret())}class ib{constructor(t,n,r){ce(this,"type","node-caret-range");ce(this,"direction");ce(this,"anchor");ce(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 ib(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Va(i)?(function(s,c){const{direction:u,origin:f}=s,m=Ka(f,c==="focus"?Lu(u):u);return r1(s,m-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[r1(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Va(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Va(r),i=s=>s.isSameNodeCaret(r)?null:ob(s)||s.getParentCaret(t);return yE({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 eL{constructor(t,n){ce(this,"type","slice");ce(this,"caret");ce(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 _l(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function ab(e){return Ja(e,rr(Xt(),e.direction))}function tL(e){return Ja(e,e)}function Ja(e,t){return e.direction!==t.direction&&be(265),new ib(e,t,e.direction)}function yE(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 bE(e,t){const n=rh(e.origin,t.origin);switch(n===null&&be(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 xE(n)}}function xE(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 Bp(e,t){return t.is(e)}function o1(e){return ae(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function rh(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=o1(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=o1(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(Bp(e,r)||be(276),{commonAncestor:r,type:"ancestor"}):o===null?(Bp(t,r)||be(277),{commonAncestor:r,type:"descendant"}):((ae(i)||Bp(e,i))&&(ae(o)||Bp(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||be(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Gi(e,t){const{type:n,key:r,offset:o}=e,i=$N(e.key);return n==="text"?(Ie(i)||be(266,i.getType(),r),_l(i,t,o)):(ae(i)||be(267,i.getType(),r),oL(i,e.offset,t))}function Rl(e,t){const{origin:n,direction:r}=t,o=r==="next";Va(t)?e.set(n.getKey(),t.offset,"text"):xu(t)?Ie(n)?e.set(n.getKey(),Ka(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ci(t)&&ae(n)||be(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function nL(e){const t=Oe(),n=ge(t)?t:H2();return oh(n,e),Er(n),n}function oh(e,t){Rl(e.anchor,t.anchor),Rl(e.focus,t.focus)}function i1(e){const{anchor:t,focus:n}=e,r=Gi(t,"next"),o=Gi(n,"next"),i=bE(r,o)<=0?"next":"previous";return Ja(wu(r,i),wu(o,i))}function sb(e){const{direction:t,origin:n}=e,r=rr(n,Lu(t)).getNodeAtCaret();return r?rr(r,t):Do(n.getParentOrThrow(),t)}function a1(e,t="root"){const n=[e];for(let r=ci(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(sb(r));return n}function ov(e){return!!e&&e.origin.isAttached()}function rL(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=SE(e,r),s=a1(i.anchor,n),c=a1(i.focus.getFlipped(),n),u=new Set,f=[];for(const C of i.iterNodeCarets(n))if(ci(C))u.add(C.origin.getKey());else if(xu(C)){const{origin:A}=C;ae(A)&&!u.has(A.getKey())||f.push(A)}for(const C of f)C.remove();for(const C of i.getTextSlices()){if(!C)continue;const{origin:A}=C.caret,x=A.getTextContentSize(),E=sb(rr(A,r)),R=A.getMode();if(Math.abs(C.distance)===x&&o==="removeEmptySlices"||R==="token"&&C.distance!==0)E.remove();else if(C.distance!==0){o="removeEmptySlices";let I=C.removeTextSlice();const L=C.caret.origin;if(R==="segmented"){const M=I.origin,U=On(M.getTextContent()).setStyle(M.getStyle()).setFormat(M.getFormat());E.replaceOrInsert(U),I=_l(U,r,I.offset)}L.is(s[0].origin)&&(s[0]=I),L.is(c[0].origin)&&(c[0]=I.getFlipped())}}let m,h;for(const C of s)if(ov(C)){m=co(C);break}for(const C of c)if(ov(C)){h=co(C);break}const v=(function(C,A,x){if(!C||!A)return null;const E=C.getParentAtCaret(),R=A.getParentAtCaret();if(!E||!R)return null;const I=E.getParents().reverse();I.push(E);const L=R.getParents().reverse();L.push(R);const M=Math.min(I.length,L.length);let U;for(U=0;U<M&&I[U]===L[U];U++);const j=(G,q)=>{let pe;for(let ie=U;ie<G.length;ie++){const se=G[ie];if(Dr(se))return;!pe&&q(se)&&(pe=se)}return pe},W=j(I,Oa),H=W&&j(L,G=>x.has(G.getKey())&&Oa(G));return W&&H?[W,H]:null})(m,h,u);if(v){const[C,A]=v;Do(C,"previous").splice(0,A.getChildren()),A.remove()}const w=[m,h,...s,...c].find(ov);if(w)return tL(wu(co(w),e.direction));be(269,JSON.stringify(s.map(C=>C.origin.__key)))}function co(e){const t=(function(o){let i=o;for(;ci(i);){const s=ob(i);if(!ci(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(Ie(t.origin))return Va(t)?t:_l(t.origin,n,n);const r=t.getAdjacentCaret();return xu(r)&&Ie(r.origin)?_l(r.origin,n,Lu(n)):t}function wE(e){return Va(e)&&e.offset!==Ka(e.origin,e.direction)}function wu(e,t){return e.direction===t?e:e.getFlipped()}function SE(e,t){return e.direction===t?e:Ja(wu(e.focus,t),wu(e.anchor,t))}function oL(e,t,n){let r=Do(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return wu(r,n)}function iL(...e){return e}function aL(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const CE=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,sL=CE?Y.useLayoutEffect:Y.useEffect,Up={tag:cl};function lL({initialConfig:e,children:t}){const n=Y.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:c,html:u}=e,f=wM(null,r),m=nE({editable:e.editable,html:u,namespace:o,nodes:i,onError:h=>s(h,m),theme:r});return(function(h,v){if(v!==null){if(v===void 0)h.update(()=>{const w=Xt();if(w.isEmpty()){const C=Sr();w.append(C);const A=CE?document.activeElement:null;(Oe()!==null||A!==null&&A===h.getRootElement())&&C.select()}},Up);else if(v!==null)switch(typeof v){case"string":{const w=h.parseEditorState(v);h.setEditorState(w,Up);break}case"object":h.setEditorState(v,Up);break;case"function":h.update(()=>{Xt().isEmpty()&&v(h)},Up)}}})(m,c),[m,f]},[]);return sL(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),D.jsx(JA.Provider,{value:n,children:t})}const cL=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function uL(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function fL(){return(function(e){const[t]=ir(),n=Y.useMemo(()=>e(t),[t,e]),[r,o]=Y.useState(()=>n.initialValueFn()),i=Y.useRef(r);return cL(()=>{const{initialValueFn:s,subscribe:c}=n,u=s();return i.current!==u&&(i.current=u,o(u)),c(f=>{i.current=f,o(f)})},[n,e]),r})(uL)}function dL(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 B0=new Map;function AE(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 s1(e){let t=B0.get(e);return t===void 0&&(t=AE(e),B0.set(e,t)),t}function EE(e){const t=tb().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function kE(e){return EE(cn(e)?e:e.getParentOrThrow())}function l1(e){const t=kE(e);return t!==null&&t.direction==="rtl"}function TE(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Li(t)&&r!==null){const[o,i]=r,s=e.isBackward(),c=o.getNode(),u=i.getNode(),f=t.is(c),m=t.is(u);if(f||m){const[h,v]=I0(e),w=c.is(u),C=t.is(s?u:c),A=t.is(s?c:u);let x,E=0;w?(E=h>v?v:h,x=h>v?h:v):C?(E=s?v:h,x=void 0):A&&(E=0,x=s?h:v);const R=t.__text.slice(E,x);R!==t.__text&&(n==="clone"&&(t=VN(t)),t.__text=R)}}return t}function c1(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return ae(t)||dL(177),e.offset===t.getChildrenSize()}function pL(e){const t=e.getStyle(),n=AE(t);B0.set(t,n)}function _E(e){const t=RE(e);return t!==null&&t.writingMode==="vertical-rl"}function RE(e){const t=e.anchor.getNode();return ae(t)?EE(t):kE(t)}function u1(e,t){let n=_E(e)?!t:t;PE(e)&&(n=!n);const r=Gi(e.focus,n?"previous":"next");if(wE(r))return!1;for(const o of ab(r)){if(ci(o))return!o.origin.isInline();if(!ae(o.origin)){if(Et(o.origin))return!0;break}}return!1}function hL(e,t,n,r){e.modify(t?"extend":"move",n,r)}function PE(e){const t=RE(e);return t!==null&&t.direction==="rtl"}function f1(e,t,n){const r=PE(e);let o;o=_E(e)||r?!n:n,hL(e,t,o,"character")}function mL(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 OE=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gL=OE&&"documentMode"in document?document.documentMode:null;!(!OE||!("InputEvent"in window)||gL)&&"getTargetRanges"in new window.InputEvent("input");function IE(...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 Fo(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function lb(e,...t){const n=IE(...t);n.length>0&&e.classList.add(...n)}function ME(e,...t){const n=IE(...t);n.length>0&&e.classList.remove(...n)}function vL(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function yL(e){const t=Ln(e,n=>ae(n)&&!n.isInline());return ae(t)||mL(4,e.__key),t}function $a(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const bL=Symbol.for("preact-signals");function gm(){if(Ya>1)return void Ya--;let e,t=!1;for(;Qf!==void 0;){let n=Qf;for(Qf=void 0,U0++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&NE(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(U0=0,Ya--,t)throw e}function xL(e){if(Ya>0)return e();Ya++;try{return e()}finally{gm()}}let Pt,Qf;function d1(e){const t=Pt;Pt=void 0;try{return e()}finally{Pt=t}}let Ya=0,U0=0,ih=0;function p1(e){if(Pt===void 0)return;let t=e.n;return t===void 0||t.t!==Pt?(t={i:0,S:e,p:Pt.s,n:void 0,t:Pt,e:void 0,x:void 0,r:t},Pt.s!==void 0&&(Pt.s.n=t),Pt.s=t,e.n=t,32&Pt.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=Pt.s,t.n=void 0,Pt.s.n=t,Pt.s=t),t):void 0}function yr(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 wL(e,t){return new yr(e,t)}function NE(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 h1(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 LE(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 Dc(e,t){yr.call(this,void 0),this.x=e,this.s=void 0,this.g=ih-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 DE(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Ya++;const n=Pt;Pt=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,cb(e),r}finally{Pt=n,gm()}}}function cb(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,DE(e)}function SL(e){if(Pt!==this)throw new Error("Out-of-order effect");LE(this),Pt=e,this.f&=-2,8&this.f&&cb(this),gm()}function $c(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 fd(e,t){const n=new $c(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function FE(e,t={}){const n={};for(const r in e){const o=t[r],i=wL(o===void 0?e[r]:o);n[r]=i}return n}yr.prototype.brand=bL,yr.prototype.h=function(){return!0},yr.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:d1(()=>{var n;(n=this.W)==null||n.call(this)}))},yr.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&&d1(()=>{var r;(r=this.Z)==null||r.call(this)}))}},yr.prototype.subscribe=function(e){return fd(()=>{const t=this.value,n=Pt;Pt=void 0;try{e(t)}finally{Pt=n}},{name:"sub"})},yr.prototype.valueOf=function(){return this.value},yr.prototype.toString=function(){return this.value+""},yr.prototype.toJSON=function(){return this.value},yr.prototype.peek=function(){const e=Pt;Pt=void 0;try{return this.value}finally{Pt=e}},Object.defineProperty(yr.prototype,"value",{get(){const e=p1(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(U0>100)throw new Error("Cycle detected");this.v=e,this.i++,ih++,Ya++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{gm()}}}}),Dc.prototype=new yr,Dc.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ih))return!0;if(this.g=ih,this.f|=1,this.i>0&&!NE(this))return this.f&=-2,!0;const e=Pt;try{h1(this),Pt=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 Pt=e,LE(this),this.f&=-2,!0},Dc.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)}yr.prototype.S.call(this,e)},Dc.prototype.U=function(e){if(this.t!==void 0&&(yr.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)}},Dc.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(Dc.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=p1(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),$c.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()}},$c.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,DE(this),h1(this),Ya++;const e=Pt;return Pt=this,SL.bind(this,e)},$c.prototype.N=function(){2&this.f||(this.f|=2,this.o=Qf,Qf=this)},$c.prototype.d=function(){this.f|=8,1&this.f||cb(this)},$c.prototype.dispose=function(){this.d()};function CL(e){return(typeof e.nodes=="function"?e.nodes():e.nodes)||[]}function Ut(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 jE(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]=jE(n[o],r[o]);return e}return t}const ub=0,$0=1,zE=2,iv=3,$p=4,Fc=5,av=6,Ff=7;function sv(e){return e.id===ub}function BE(e){return e.id===zE}function AL(e){return(function(t){return t.id===$0})(e)||Ut(305,String(e.id),String($0)),Object.assign(e,{id:zE})}const EL=new Set;class kL{constructor(t,n){ce(this,"builder");ce(this,"configs");ce(this,"_dependency");ce(this,"_peerNameSet");ce(this,"extension");ce(this,"state");ce(this,"_signal");this.builder=t,this.extension=n,this.configs=new Set,this.state={id:ub}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):aL;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;BE(n)||Ut(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(c,u,f){return Object.assign(c,{config:u,id:iv,registerState:f})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(c,u,f){return Object.assign(c,{id:$p,initResult:u,registerState:f})})(i,s,o)}build(t){const n=this.state;let r;n.id!==$p&&Ut(307,String(n.id),String(Fc)),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,c){return Object.assign(i,{id:Fc,output:s,registerState:c})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==Fc&&Ut(308,String(r.id),String(Fc));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:av})})(r),()=>{const i=this.state;i.id!==Ff&&Ut(309,String(r.id),String(Ff)),this.state=(function(s){return Object.assign(s,{id:Fc})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==av&&Ut(310,String(n.id),String(av)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:Ff})})(n),r}getSignal(){return this._signal===void 0&&Ut(311),this._signal}getInitResult(){this.extension.init===void 0&&Ut(312,this.extension.name);const t=this.state;return(function(n){return n.id>=$p})(t)||Ut(313,String(t.id),String($p)),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>=iv})(t)||Ut(314,String(t.id),String(iv)),{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&&Ut(315,this.extension.name,t.name),n.getExtensionInitDependency()}getDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Ut(315,this.extension.name,t.name),n.getExtensionDependency()}getState(){const t=this.state;return(function(n){return n.id>=Ff})(t)||Ut(316,String(t.id),String(Ff)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||EL}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>=Fc})(t)||Ut(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const m1={tag:cl};function TL(){const e=Xt();e.isEmpty()&&e.append(Sr())}const _L={config:{setOptions:m1,updateOptions:m1},init:({$initialEditorState:e=TL})=>({$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(PN(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:[Iu,rs,Ru,Pu,Mu]},g1=Symbol.for("@lexical/extension/LexicalBuilder");function v1(){}function RL(e){throw e}function Wp(e){return Array.isArray(e)?e:[e]}const lv="0.39.0+prod.esm";class tu{constructor(t){ce(this,"roots");ce(this,"extensionNameMap");ce(this,"outgoingConfigEdges");ce(this,"incomingEdges");ce(this,"conflicts");ce(this,"_sortedExtensionReps");ce(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=lv,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Wp(_L)];for(const r of t)n.push(Wp(r));return new tu(n)}static maybeFromEditor(t){const n=t[g1];return n&&(n.PACKAGE_VERSION!==lv&&Ut(292,n.PACKAGE_VERSION,lv),n instanceof tu||Ut(293)),n}static fromEditor(t){const n=tu.maybeFromEditor(t);return n===void 0&&Ut(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(nE({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[g1]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=v1;function n(){try{t()}finally{t=v1}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=Fo(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&&Ut(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&&Ut(296);const n=Wp(t),[r]=n;typeof r.name!="string"&&Ut(297,typeof r.name);let o=this.extensionNameMap.get(r.name);if(o!==void 0&&o.extension!==r&&Ut(298,r.name),!o){o=new kL(this,r),this.extensionNameMap.set(r.name,o);const i=this.conflicts.get(r.name);typeof i=="string"&&Ut(299,r.name,i);for(const s of r.conflictsWith||[])this.extensionNameMap.has(s)&&Ut(299,r.name,s),this.conflicts.set(s,r.name);for(const s of r.dependencies||[]){const c=Wp(s);this.addEdge(r.name,c[0].name,c.slice(1)),this.addExtension(c)}for(const[s,c]of r.peerDependencies||[])this.addEdge(r.name,s,c?[c]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],n=(r,o)=>{let i=r.state;if(BE(i))return;const s=r.extension.name;var c;sv(i)||Ut(300,s,o||"[unknown]"),sv(c=i)||Ut(304,String(c.id),String(ub)),i=Object.assign(c,{id:$0}),r.state=i;const u=this.outgoingConfigEdges.get(s);if(u)for(const f of u.keys()){const m=this.extensionNameMap.get(f);m&&n(m,s)}i=AL(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())sv(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 c of i)s.configs.add(c)}for(const[r,...o]of this.roots)if(o.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Ut(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 c=s.register(t,i);c&&o.push(c)}for(const s of n){const c=s.afterRegistration(t);c&&o.push(c)}return Fo(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},c=this.sortedExtensionReps();for(const m of c){const{extension:h}=m;if(h.onError!==void 0&&(t.onError=h.onError),h.disableEvents!==void 0&&(t.disableEvents=h.disableEvents),h.parentEditor!==void 0&&(t.parentEditor=h.parentEditor),h.editable!==void 0&&(t.editable=h.editable),h.namespace!==void 0&&(t.namespace=h.namespace),h.$initialEditorState!==void 0&&(t.$initialEditorState=h.$initialEditorState),h.nodes)for(const v of CL(h)){if(typeof v!="function"){const w=r.get(v.replace);w&&Ut(302,h.name,v.replace.name,w.extension.name),r.set(v.replace,m)}n.add(v)}if(h.html){if(h.html.export)for(const[v,w]of h.html.export.entries())o.set(v,w);h.html.import&&Object.assign(i,h.html.import)}h.theme&&jE(s,h.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const u=Object.keys(i).length>0,f=o.size>0;(u||f)&&(t.html={},u&&(t.html.import=i),f&&(t.html.export=o));for(const m of c)m.init(t);return t.onError||(t.onError=RL),t}}function PL(e,t){const n=tu.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const OL={name:"@lexical/react/ReactProvider"};function IL(){return Xt().getTextContent()}function ML(e,t=!0){if(e)return!1;let n=IL();return t&&(n=n.trim()),n===""}function NL(e){if(!ML(e,!1))return!1;const t=Xt().getChildren(),n=t.length;if(n>1)return!1;for(let r=0;r<n;r++){const o=t[r];if(Et(o))return!1;if(ae(o)){if(!Vy(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let c=0;c<s;c++){const u=i[r];if(!Ie(u))return!1}}}return!0}function UE(e){return()=>NL(e)}function LL(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 c=s.payload;if(c&&c.functionId==="makeChanges"){const u=c.args;if(u){const[f,m,h,v,w]=u;e.update(()=>{const C=Oe();if(ge(C)){const A=C.anchor;let x=A.getNode(),E=0,R=0;if(Ie(x)&&f>=0&&m>=0&&(E=f,R=f+m,C.setTextNodeRange(x,E,x,R)),E===R&&h===""||(C.insertRawText(h),x=A.getNode()),Ie(x)){E=v,R=v+w;const I=x.getTextContentSize();E=E>I?I:E,R=R>I?I:R,C.setTextNodeRange(x,E,x,R)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function $E(e,t){const n=aE(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!VE.has(i.nodeName)){const s=KE(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Hy&&s.insertAfter(Cl());for(const s of i){const c=s.getChildren();for(const u of c)s.insertBefore(u);s.remove()}})(o),r}function WE(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=Xt().getChildren();for(let o=0;o<r.length;o++)HE(e,r[o],n,t);return n.innerHTML}function HE(e,t,n,r=null){let o=r===null||t.isSelected(r);const i=ae(t)&&t.excludeFromCopy("html");let s=t;r!==null&&Ie(t)&&(s=TE(r,t,"clone"));const c=ae(s)?s.getChildren():[],u=Yy(e,s.getType());let f;f=u&&u.exportDOM!==void 0?u.exportDOM(e,s):s.exportDOM(e);const{element:m,after:h}=f;if(!m)return!1;const v=document.createDocumentFragment();for(let w=0;w<c.length;w++){const C=c[w],A=HE(e,C,v,r);!o&&ae(t)&&A&&t.extractWithChild(C,r,"html")&&(o=!0)}if(o&&!i){if((Gn(m)||j0(m))&&m.append(v),n.append(m),h){const w=h.call(s,m);w&&(j0(m)?m.replaceChildren(w):m.replaceWith(w))}}else n.append(v);return o}const VE=new Set(["STYLE","SCRIPT"]);function KE(e,t,n,r,o=new Map,i){let s=[];if(VE.has(e.nodeName))return s;let c=null;const u=(function(C,A){const{nodeName:x}=C,E=A._htmlConversions.get(x.toLowerCase());let R=null;if(E!==void 0)for(const I of E){const L=I(C);L!==null&&(R===null||(R.priority||0)<=(L.priority||0))&&(R=L)}return R!==null?R.conversion:null})(e,t),f=u?u(e):null;let m=null;if(f!==null){m=f.after;const C=f.node;if(c=Array.isArray(C)?C[C.length-1]:C,c!==null){for(const[,A]of o)if(c=A(c,i),!c)break;c&&s.push(...Array.isArray(C)?C:[c])}f.forChild!=null&&o.set(e.nodeName,f.forChild)}const h=e.childNodes;let v=[];const w=(c==null||!Dr(c))&&(c!=null&&M0(c)||r);for(let C=0;C<h.length;C++)v.push(...KE(h[C],t,n,w,new Map(o),c));return m!=null&&(v=m(v)),Oh(e)&&(v=DL(e,v,w?()=>{const C=new Hy;return n.push(C),C}:Sr)),c==null?v.length>0?s=s.concat(v):Oh(e)&&(function(C){return C.nextSibling==null||C.previousSibling==null?!1:z0(C.nextSibling)&&z0(C.previousSibling)})(e)&&(s=s.concat(Cl())):ae(c)&&c.append(...v),s}function DL(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const c=t[s];if(M0(c))r&&!c.getFormat()&&c.setFormat(r),o.push(c);else if(i.push(c),s===t.length-1||s<t.length-1&&M0(t[s+1])){const u=n();u.setFormat(r),u.append(...i),o.push(u),i=[]}}return o}function Ih(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 FL(e,t=Oe()){return t==null&&Ih(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?"":WE(e,t)}function jL(e,t=Oe()){return t==null&&Ih(166),ge(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(zL(e,t))}function y1(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const c=JSON.parse(r);if(c.namespace===n._config.namespace&&Array.isArray(c.nodes))return b1(n,BL(c.nodes),t)}catch(c){console.error(c)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const c=new DOMParser().parseFromString((function(u){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:f=>f}).createHTML(u):u})(o),"text/html");return b1(n,$E(n,c),t)}catch(c){console.error(c)}const s=i||e.getData("text/uri-list");if(s!=null)if(ge(t)){const c=s.split(/(\r?\n|\t)/);c[c.length-1]===""&&c.pop();for(let u=0;u<c.length;u++){const f=Oe();if(ge(f)){const m=c[u];m===`
|
|
708
|
-
`||
|
|
709
|
-
`?f.insertParagraph():m===" "?f.insertNodes([_d()]):f.insertText(m)}}}else t.insertRawText(s)}function b1(e,t,n){e.dispatchCommand(GM,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if(ge(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=Gi(o,"previous");if(s)if(Va(s))i=s.origin;else{const c=Ja(s,Do(Xt(),"next").getFlipped());for(const u of c){if(Ie(u.origin)){i=u.origin;break}if(ae(u.origin)&&!u.origin.isInline())break}}if(i&&Ie(i)){const c=i.getFormat(),u=i.getStyle();r.format===c&&r.style===u||(r.format=c,r.style=u,r.dirty=!0)}}})(n))}function YE(e,t,n,r=[]){let o=t===null||n.isSelected(t);const i=ae(n)&&n.excludeFromCopy("html");let s=n;t!==null&&Ie(s)&&(s=TE(t,s,"clone"));const c=ae(s)?s.getChildren():[],u=(function(f){const m=f.exportJSON(),h=f.constructor;if(m.type!==h.getType()&&Ih(58,h.name),ae(f)){const v=m.children;Array.isArray(v)||Ih(59,h.name)}return m})(s);Ie(s)&&s.getTextContentSize()===0&&(o=!1);for(let f=0;f<c.length;f++){const m=c[f],h=YE(e,t,m,u.children);!o&&ae(n)&&h&&n.extractWithChild(m,t,"clone")&&(o=!0)}if(o&&!i)r.push(u);else if(Array.isArray(u.children))for(let f=0;f<u.children.length;f++){const m=u.children[f];r.push(m)}return o}function zL(e,t){const n=[],r=Xt().getChildren();for(let o=0;o<r.length;o++)YE(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function BL(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=RN(r);Ie(o)&&pL(o),t.push(o)}return t}let jc=null;async function x1(e,t,n){if(jc!==null)return!1;if(t!==null)return new Promise((f,m)=>{e.update(()=>{f(w1(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=go(o);if(r===null||s===null)return!1;const c=i.createElement("span");c.style.cssText="position: fixed; top: -1000px;",c.append(i.createTextNode("#")),r.append(c);const u=new Range;return u.setStart(c,0),u.setEnd(c,1),s.removeAllRanges(),s.addRange(u),new Promise((f,m)=>{const h=e.registerCommand(cm,v=>($a(v,ClipboardEvent)&&(h(),jc!==null&&(o.clearTimeout(jc),jc=null),f(w1(e,v,n))),!0),eE);jc=o.setTimeout(()=>{h(),jc=null,f(!1)},50),i.execCommand("copy"),c.remove()})}function w1(e,t,n){if(n===void 0){const o=go(e._window),i=Oe();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,c=o.focusNode;if(s!==null&&c!==null&&!Od(e,s,c))return!1;n=UL(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&($L(r,n),!0)}const GE=[["text/html",FL],["application/x-lexical-editor",jL]];function UL(e=Oe()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=tb();for(const[r,o]of GE){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function $L(e,t){for(const[n]of GE)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function S1(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 Ml=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,WL=Ml&&"documentMode"in document?document.documentMode:null,HL=Ml&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),VL=!(!Ml||!("InputEvent"in window)||WL)&&"getTargetRanges"in new window.InputEvent("input"),KL=Ml&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),C1=Ml&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,YL=Ml&&/^(?=.*Chrome).*/i.test(navigator.userAgent),GL=Ml&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&HL&&!YL,A1=Ye("DRAG_DROP_PASTE_FILE");function Hp(e){let t=null;if($a(e,DragEvent)?t=e.dataTransfer:$a(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 E1(e){const t=Oe();if(!ge(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 c=Ln(i,f=>ae(f)&&!f.isInline());if(c===null)continue;const u=c.getKey();c.canIndent()&&!n.has(u)&&(n.add(u),e(c))}return n.size>0}function k1(e){const t=bu(e);return Et(t)}function cv(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function QL(e){return Fo(e.registerCommand(Ly,t=>{const n=Oe();return!!In(n)&&(n.clear(),!0)},lt),e.registerCommand(ll,t=>{const n=Oe();return ge(n)?(n.deleteCharacter(t),!0):!!In(n)&&(n.deleteNodes(),!0)},lt),e.registerCommand(ad,t=>{const n=Oe();return!!ge(n)&&(n.deleteWord(t),!0)},lt),e.registerCommand(sd,t=>{const n=Oe();return!!ge(n)&&(n.deleteLine(t),!0)},lt),e.registerCommand(Jc,t=>{const n=Oe();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const r=t.dataTransfer;if(r!=null)y1(r,n,e);else if(ge(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},lt),e.registerCommand(S0,()=>{const t=Oe();return!!ge(t)&&(t.removeText(),!0)},lt),e.registerCommand(ii,t=>{const n=Oe();return!!ge(n)&&(n.formatText(t),!0)},lt),e.registerCommand(qM,t=>{const n=Oe();if(!ge(n)&&!In(n))return!1;const r=n.getNodes();for(const o of r){const i=Ln(o,s=>ae(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},lt),e.registerCommand(Xc,t=>{const n=Oe();return!!ge(n)&&(n.insertLineBreak(t),!0)},lt),e.registerCommand(id,()=>{const t=Oe();return!!ge(t)&&(t.insertParagraph(),!0)},lt),e.registerCommand(XM,()=>(Y2([_d()]),!0),lt),e.registerCommand(JM,()=>E1(t=>{const n=t.getIndent();t.setIndent(n+1)}),lt),e.registerCommand(Ew,()=>E1(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),lt),e.registerCommand(x2,t=>{const n=Oe();if(In(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if(ge(n)){const r=L0(n.focus,!0);if(!t.shiftKey&&Et(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},lt),e.registerCommand(w2,t=>{const n=Oe();if(In(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if(ge(n)){if((function(o){const i=o.focus;return i.key==="root"&&i.offset===Xt().getChildrenSize()})(n))return t.preventDefault(),!0;const r=L0(n.focus,!1);if(!t.shiftKey&&Et(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},lt),e.registerCommand(b2,t=>{const n=Oe();if(In(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),l1(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!ge(n))return!1;if(u1(n,!0)){const r=t.shiftKey;return t.preventDefault(),f1(n,r,!0),!0}return!1},lt),e.registerCommand(y2,t=>{const n=Oe();if(In(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),l1(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!ge(n))return!1;const r=t.shiftKey;return!!u1(n,!1)&&(t.preventDefault(),f1(n,r,!1),!0)},lt),e.registerCommand(C2,t=>{if(k1(t.target))return!1;const n=Oe();if(ge(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:o}=r;if(o.offset!==0)return!1;const i=o.getNode();if(cn(i))return!1;const s=yL(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Ew,void 0);if(C1&&navigator.language==="ko-KR")return!1}else if(!In(n))return!1;return t.preventDefault(),e.dispatchCommand(ll,!0)},lt),e.registerCommand(A2,t=>{if(k1(t.target))return!1;const n=Oe();return!(!ge(n)&&!In(n))&&(t.preventDefault(),e.dispatchCommand(ll,!1))},lt),e.registerCommand(ld,t=>{const n=Oe();if(!ge(n))return!1;if(cv(n),t!==null){if((C1||KL||GL)&&VL)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Xc,!1)}return e.dispatchCommand(id,void 0)},lt),e.registerCommand(jy,()=>{const t=Oe();return!!ge(t)&&(e.blur(),!0)},lt),e.registerCommand(k2,t=>{const[,n]=Hp(t);if(n.length>0){const o=S1(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,c=bu(s);if(c!==null){const u=H2();if(Ie(c))u.anchor.set(c.getKey(),i,"text"),u.focus.set(c.getKey(),i,"text");else{const m=c.getParentOrThrow().getKey(),h=c.getIndexWithinParent()+1;u.anchor.set(m,h,"element"),u.focus.set(m,h,"element")}const f=vu(u);Er(f)}e.dispatchCommand(A1,n)}return t.preventDefault(),!0}const r=Oe();return!!ge(r)},lt),e.registerCommand(T2,t=>{const[n]=Hp(t),r=Oe();return!(n&&!ge(r))},lt),e.registerCommand(_2,t=>{const[n]=Hp(t),r=Oe();if(n&&!ge(r))return!1;const o=S1(t.clientX,t.clientY);if(o!==null){const i=bu(o.node);Et(i)&&t.preventDefault()}return!0},lt),e.registerCommand(C0,()=>(jN(),!0),lt),e.registerCommand(cm,t=>(x1(e,$a(t,ClipboardEvent)?t:null),!0),lt),e.registerCommand(zy,t=>((async function(n,r){await x1(r,$a(n,ClipboardEvent)?n:null),r.update(()=>{const o=Oe();ge(o)?o.removeText():In(o)&&o.getNodes().forEach(i=>i.remove())})})(t,e),!0),lt),e.registerCommand(lm,t=>{const[,n,r]=Hp(t);return n.length>0&&!r?(e.dispatchCommand(A1,n),!0):Nu(t.target)&&Gy(t.target)?!1:Oe()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Oe(),c=$a(o,InputEvent)||$a(o,KeyboardEvent)?null:o.clipboardData;c!=null&&s!==null&&y1(c,s,i)},{tag:pN})})(t,e),!0)},lt),e.registerCommand(S2,t=>{const n=Oe();return ge(n)&&cv(n),!1},lt),e.registerCommand(E2,t=>{const n=Oe();return ge(n)&&cv(n),!1},lt))}function ZL(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 fb=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function XL({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=Y.useState(()=>n.getDecorators());return fb(()=>n.registerDecoratorListener(s=>{ui.flushSync(()=>{i(s)})}),[n]),Y.useEffect(()=>{i(n.getDecorators())},[n]),Y.useMemo(()=>{const s=[],c=Object.keys(o);for(let u=0;u<c.length;u++){const f=c[u],m=D.jsx(r,{onError:v=>n._onError(v),children:D.jsx(Y.Suspense,{fallback:null,children:o[f]})}),h=n.getElementByKey(f);h!==null&&s.push(ui.createPortal(m,h,f))}return s},[r,o,n])})(e,t)}function JL({editor:e,ErrorBoundary:t}){return(function(n){const r=tu.maybeFromEditor(n);if(r&&r.hasExtensionByName(OL.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&ZL(320,o);return!0}return!1})(e)?null:D.jsx(XL,{editor:e,ErrorBoundary:t})}function T1(e){return e.getEditorState().read(UE(e.isComposing()))}function qL({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=ir();return(function(o){fb(()=>Fo(QL(o),LL(o)),[o])})(r),D.jsxs(D.Fragment,{children:[e,D.jsx(e5,{content:t}),D.jsx(JL,{editor:r,ErrorBoundary:n})]})}function e5({content:e}){const[t]=ir(),n=(function(o){const[i,s]=Y.useState(()=>T1(o));return fb(()=>{function c(){const u=T1(o);s(u)}return c(),Fo(o.registerUpdateListener(()=>{c()}),o.registerEditableListener(()=>{c()}))},[o]),i})(t),r=fL();return n?typeof e=="function"?e(r):e:null}function t5(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(!(ge(i)&&ge(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const c=(function(E,R,I){const L=E._nodeMap,M=[];for(const U of R){const j=L.get(U);j!==void 0&&M.push(j)}for(const[U,j]of I){if(!j)continue;const W=L.get(U);W===void 0||cn(W)||M.push(W)}return M})(t,n,r);if(c.length===0)return 0;if(c.length>1){const E=t._nodeMap,R=E.get(i.anchor.key),I=E.get(s.anchor.key);return R&&I&&!e._nodeMap.has(R.__key)&&Ie(R)&&R.__text.length===1&&i.anchor.offset===1?2:0}const u=c[0],f=e._nodeMap.get(u.__key);if(!Ie(f)||!Ie(u)||f.__mode!==u.__mode)return 0;const m=f.__text,h=u.__text;if(m===h)return 0;const v=i.anchor,w=s.anchor;if(v.key!==w.key||v.type!=="text")return 0;const C=v.offset,A=w.offset,x=h.length-m.length;return x===1&&A===C-1?2:x===-1&&A===C+1?3:x===-1&&A===C?4:0}function n5(e,t){let n=Date.now(),r=0;return(o,i,s,c,u,f)=>{const m=Date.now();if(f.has(O0))return r=0,n=m,2;const h=t5(o,i,c,u,e.isComposing()),v=(()=>{const w=s===null||s.editor===e,C=f.has(dN);if(!C&&w&&f.has(cl))return 0;if(o===null)return 1;const A=i._selection;if(!(c.size>0||u.size>0))return A!==null?0:2;const x=typeof t=="number"?t:t.peek();return C===!1&&h!==0&&h===r&&m<n+x&&w||c.size===1&&(function(E,R,I){const L=R._nodeMap.get(E),M=I._nodeMap.get(E),U=R._selection,j=I._selection;return!(ge(U)&&ge(j)&&U.anchor.type==="element"&&U.focus.type==="element"&&j.anchor.type==="text"&&j.focus.type==="text"||!Ie(L)||!Ie(M)||L.__parent!==M.__parent)&&JSON.stringify(R.read(()=>L.exportJSON()))===JSON.stringify(I.read(()=>M.exportJSON()))})(Array.from(c)[0],o,i)?0:1})();return n=m,r=h,v}}function _1(e){e.undoStack=[],e.redoStack=[],e.current=null}function QE(e,t,n){const r=n5(e,n);return Fo(e.registerCommand(Dy,()=>((function(i,s){const c=s.redoStack,u=s.undoStack;if(u.length!==0){const f=s.current,m=u.pop();f!==null&&(c.push(f),i.dispatchCommand(Lp,!0)),u.length===0&&i.dispatchCommand(Dp,!1),s.current=m||null,m&&m.editor.setEditorState(m.editorState,{tag:O0})}})(e,t),!0),lt),e.registerCommand(Fy,()=>((function(i,s){const c=s.redoStack,u=s.undoStack;if(c.length!==0){const f=s.current;f!==null&&(u.push(f),i.dispatchCommand(Dp,!0));const m=c.pop();c.length===0&&i.dispatchCommand(Lp,!1),s.current=m||null,m&&m.editor.setEditorState(m.editorState,{tag:O0})}})(e,t),!0),lt),e.registerCommand(tN,()=>(_1(t),!1),lt),e.registerCommand(nN,()=>(_1(t),e.dispatchCommand(Lp,!1),e.dispatchCommand(Dp,!1),!0),lt),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:c,dirtyElements:u,tags:f})=>{const m=t.current,h=t.redoStack,v=t.undoStack,w=m===null?null:m.editorState;if(m!==null&&i===w)return;const C=r(s,i,m,c,u,f);if(C===1)h.length!==0&&(t.redoStack=[],e.dispatchCommand(Lp,!1)),m!==null&&(v.push({...m}),e.dispatchCommand(Dp,!0));else if(C===2)return;t.current={editor:e,editorState:i}}))}function ZE(){return{current:null,redoStack:[],undoStack:[]}}const uv={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>FE({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:ZE,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return fd(()=>r.disabled.value?void 0:QE(e,r.historyState.value,r.delay))}};iL(uv,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function r5({delay:e,externalHistoryState:t}){const[n]=ir();return(function(r,o,i=1e3){const s=Y.useMemo(()=>o||ZE(),[o]);Y.useEffect(()=>QE(r,s,i),[i,r,s])})(n,t,e),null}const XE=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function o5({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:c,ariaLabel:u,ariaLabelledBy:f,ariaMultiline:m,ariaOwns:h,ariaRequired:v,autoCapitalize:w,className:C,id:A,role:x="textbox",spellCheck:E=!0,style:R,tabIndex:I,"data-testid":L,...M},U){const[j,W]=Y.useState(e.isEditable()),H=Y.useCallback(q=>{q&&q.ownerDocument&&q.ownerDocument.defaultView?e.setRootElement(q):e.setRootElement(null)},[e]),G=Y.useMemo(()=>(function(...q){return pe=>{for(const ie of q)typeof ie=="function"?ie(pe):ie!=null&&(ie.current=pe)}})(U,H),[H,U]);return XE(()=>(W(e.isEditable()),e.registerEditableListener(q=>{W(q)})),[e]),D.jsx("div",{"aria-activedescendant":j?t:void 0,"aria-autocomplete":j?n:"none","aria-controls":j?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":j&&x==="combobox"?!!s:void 0,...c!=null?{"aria-invalid":c}:{},"aria-label":u,"aria-labelledby":f,"aria-multiline":m,"aria-owns":j?h:void 0,"aria-readonly":!j||void 0,"aria-required":v,autoCapitalize:w,className:C,contentEditable:j,"data-testid":L,id:A,ref:G,role:x,spellCheck:E,style:R,tabIndex:I,...M})}const i5=Y.forwardRef(o5);function R1(e){return e.getEditorState().read(UE(e.isComposing()))}const a5=Y.forwardRef(s5);function s5(e,t){const{placeholder:n,...r}=e,[o]=ir();return D.jsxs(D.Fragment,{children:[D.jsx(i5,{editor:o,...r,ref:t}),n!=null&&D.jsx(l5,{editor:o,content:n})]})}function l5({content:e,editor:t}){const n=(function(s){const[c,u]=Y.useState(()=>R1(s));return XE(()=>{function f(){const m=R1(s);u(m)}return f(),Fo(s.registerUpdateListener(()=>{f()}),s.registerEditableListener(()=>{f()}))},[s]),c})(t),[r,o]=Y.useState(t.isEditable());if(Y.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:D.jsx("div",{"aria-hidden":!0,children:i})}const c5=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?Y.useLayoutEffect:Y.useEffect;function u5({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=ir();return c5(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:c,tags:u})=>{t&&i.size===0&&s.size===0||e&&u.has(cl)||c.isEmpty()||n(o,r,u)})},[r,e,t,n]),null}const f5=Y.createContext(null),fv={didCatch:!1,error:null};class d5 extends Y.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=fv}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(fv))}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&&p5(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(fv))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let c=t;if(i){const u={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(u);else if(r)c=Y.createElement(r,u);else if(o!==void 0)c=o;else throw s}return Y.createElement(f5.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}function p5(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function h5({children:e,onError:t}){return D.jsx(d5,{fallback:D.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const m5={paragraph:"m-0",list:{ol:"list-decimal pl-4",ul:"list-disc pl-4"},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"font-mono"},link:"text-blue-600 hover:text-blue-600 underline cursor-pointer"};function Wa(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 W0(e){let t=1,n=e.getParent();for(;n!=null;){if(At(n)){const r=n.getParent();if(at(r)){t++,n=r.getParent();continue}Wa(40)}return t}return t}function H0(e){let t=e.getParent();at(t)||Wa(40);let n=t;for(;n!==null;)n=n.getParent(),at(n)&&(t=n);return t}function JE(e){let t=[];const n=e.getChildren().filter(At);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();at(i)?t=t.concat(JE(i)):t.push(o)}return t}function ni(e){return At(e)&&at(e.getFirstChild())}function P1(e){return po().append(e)}function qE(e,t){return At(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function O1(e){const t=Oe();if(t!==null){let n=t.getNodes();if(ge(t)){const o=t.getStartEndPoints();o===null&&Wa(143);const[i]=o,s=i.getNode(),c=s.getParent();if(Dr(s)){const u=s.getFirstChild();if(u)n=u.selectStart().getNodes();else{const f=Sr();s.append(f),n=f.select().getNodes()}}else if(qE(s,n)){const u=Gr(e);if(Dr(c)){s.replace(u);const f=po();ae(s)&&(f.setFormat(s.getFormatType()),f.setIndent(s.getIndent())),u.append(f)}else if(At(s)){const f=s.getParentOrThrow();Pl(u,f.getChildren()),f.replace(u)}return}}const r=new Set;for(let o=0;o<n.length;o++){const i=n[o];if(ae(i)&&i.isEmpty()&&!At(i)&&!r.has(i.getKey())){I1(i,e);continue}let s=sE(i)?i.getParent():At(i)&&i.isEmpty()?i:null;for(;s!=null;){const c=s.getKey();if(at(s)){if(!r.has(c)){const u=Gr(e);Pl(u,s.getChildren()),s.replace(u),r.add(c)}break}{const u=s.getParent();if(Dr(u)&&!r.has(c)){r.add(c),I1(s,e);break}s=u}}}}}function Pl(e,t){e.splice(e.getChildrenSize(),0,t)}function I1(e,t){if(at(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=po();let i;if(Pl(o,e.getChildren()),at(n)&&t===n.getListType())n.append(o),at(r)&&t===r.getListType()&&(Pl(n,r.getChildren()),r.remove()),i=n;else if(at(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Gr(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function db(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&ni(n)&&ni(r)&&(db(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function g5(){const e=Oe();if(ge(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(qE(r,n))t.add(H0(r));else for(let o=0;o<n.length;o++){const i=n[o];if(sE(i)){const s=vL(i,Du);s!=null&&t.add(H0(s))}}for(const o of t){let i=o;const s=JE(o);for(const c of s){const u=Sr().setTextStyle(e.style).setTextFormat(e.format);Pl(u,c.getChildren()),i.insertAfter(u),i=u,c.__key===e.anchor.key&&Rl(e.anchor,co(Do(u,"next"))),c.__key===e.focus.key&&Rl(e.focus,co(Do(u,"next"))),c.remove()}o.remove()}}}function ek(e){const t=e.getListType()!=="check";let n=e.getStart();for(const r of e.getChildren())At(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),at(r.getFirstChild())||n++)}function v5(e){const t=new Set;if(ni(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(ni(r)&&ni(o)){const i=o.getFirstChild();if(at(i)){i.append(e);const s=r.getFirstChild();at(s)&&(Pl(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(ni(r)){const i=r.getFirstChild();if(at(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(ni(o)){const i=o.getFirstChild();at(i)&&i.append(e)}else if(at(n)){const i=po().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Gr(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 y5(e){if(ni(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(at(n?n.getParent():void 0)&&At(n)&&at(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=po(),c=Gr(i);s.append(c),e.getPreviousSiblings().forEach(m=>c.append(m));const u=po(),f=Gr(i);u.append(f),Pl(f,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(u),n.replace(e)}}}function b5(){const e=Oe();if(!ge(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!At(t)||t.getChildrenSize()!==0)return!1;const n=H0(t),r=t.getParent();at(r)||Wa(40);const o=r.getParent();let i;if(Dr(o))i=Sr(),n.insertAfter(i);else{if(!At(o))return!1;i=po(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const c=Gr(r.getListType());if(At(i)){const u=po();u.append(c),i.insertAfter(u)}else i.insertAfter(c);c.append(...s)}return(function(c){let u=c;for(;u.getNextSibling()==null&&u.getPreviousSibling()==null;){const f=u.getParent();if(f==null||!At(f)&&!at(f))break;u=f}u.remove()})(t),!0}function Mh(...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 Du extends pi{constructor(n=1,r=void 0,o){super(o);ce(this,"__value");ce(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();at(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:pi,importDOM:{li:()=>({conversion:x5,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(c,u,f){const m=u.getParent();!at(m)||m.getListType()!=="check"||at(u.getFirstChild())?(c.removeAttribute("role"),c.removeAttribute("tabIndex"),c.removeAttribute("aria-checked")):(c.setAttribute("role","checkbox"),c.setAttribute("tabIndex","-1"),f&&u.__checked===f.__checked||c.setAttribute("aria-checked",u.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(c,u,f){const m=[],h=[],v=u.list,w=v?v.listitem:void 0;let C;if(v&&v.nested&&(C=v.nested.listitem),w!==void 0&&m.push(...Mh(w)),v){const A=f.getParent(),x=at(A)&&A.getListType()==="check",E=f.getChecked();x&&!E||h.push(v.listitemUnchecked),x&&E||h.push(v.listitemChecked),x&&m.push(E?v.listitemChecked:v.listitemUnchecked)}if(C!==void 0){const A=Mh(C);f.getChildren().some(x=>at(x))?m.push(...A):h.push(...A)}h.length>0&&ME(c,...h),m.length>0&&lb(c,...m)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(c,u,f){const m=s1(u.__textStyle);for(const h in m)c.style.setProperty(`--listitem-marker-${h}`,m[h]);if(f)for(const h in s1(f.__textStyle))h in m||c.style.removeProperty(`--listitem-marker-${h}`)})(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(ae(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(n,r){if(At(n))return super.replace(n);this.setIndent(0);const o=this.getParentOrThrow();if(!at(o))return n;if(o.__first===this.getKey())o.insertBefore(n);else if(o.__last===this.getKey())o.insertAfter(n);else{const i=Gr(o.getListType());let s=this.getNextSibling();for(;s;){const c=s;s=s.getNextSibling(),i.append(c)}o.insertAfter(n),n.insertAfter(i)}return r&&(ae(n)||Wa(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(at(o)||Wa(39),At(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Gr(o.getListType());i.forEach(c=>s.append(c)),n.insertAfter(s,r)}return n}remove(n){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(n),r&&o&&ni(r)&&ni(o)&&(db(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=po().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(n){const r=Sr();this.getChildren().forEach(c=>r.append(c));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=At(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const c=n.anchor,u=n.focus,f=r.getKey();c.type==="element"&&c.getNode().is(this)&&c.set(f,c.offset,"element"),u.type==="element"&&u.getNode().is(this)&&u.set(f,u.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 at(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(;At(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(n){typeof n!="number"&&Wa(117),(n=Math.floor(n))>=0||Wa(199);let r=this.getIndent();for(;r!==n;)r<n?(v5(this),r++):(y5(this),r--);return this}canInsertAfter(n){return At(n)}canReplaceWith(n){return At(n)}canMergeWith(n){return At(n)||Vy(n)}extractWithChild(n,r){if(!ge(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 Gr("bullet")}canMergeWhenEmpty(){return!0}}function x5(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return M1(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 M1(n.children[0])}const t=e.getAttribute("aria-checked");return{node:po(t==="true"||t!=="false"&&void 0)}}function M1(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:po(e.hasAttribute("checked"))}}function po(e){return is(new Du(void 0,e))}function At(e){return e instanceof Du}class Md extends pi{constructor(n="number",r=1,o){super(o);ce(this,"__tag");ce(this,"__start");ce(this,"__listType");const i=S5[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();at(o)&&r.getListType()===o.getListType()&&db(r,o)})(n),ek(n)},extends:pi,importDOM:{ol:()=>({conversion:L1,priority:0}),ul:()=>({conversion:L1,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,N1(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(N1(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 Gn(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 c=o[s];At(c)||(i===o&&(i=[...o]),i[s]=po().append(!ae(c)||at(c)||c.isInline()?c:On(c.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return At(n)}}function N1(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],c=W0(n)-1,u=c%s.length,f=s[u],m=i[n.__tag];let h;const v=i.nested,w=i.checklist;if(v!==void 0&&v.list&&(h=v.list),m!==void 0&&r.push(m),w!==void 0&&n.__listType==="check"&&r.push(w),f!==void 0){r.push(...Mh(f));for(let C=0;C<s.length;C++)C!==u&&o.push(n.__tag+C)}if(h!==void 0){const C=Mh(h);c>1?r.push(...C):o.push(...C)}}o.length>0&&ME(e,...o),r.length>0&&lb(e,...r)}function w5(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(At(r)){t.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{at(i)&&t.push(P1(i))})}else t.push(P1(r))}return t}function L1(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Gr("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(Gn(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Gr("check"):Gr("bullet")),{after:w5,node:n}}const S5={ol:"number",ul:"bullet"};function Gr(e="number",t=1){return is(new Md(e,t))}function at(e){return e instanceof Md}const C5=Ye("UPDATE_LIST_START_COMMAND"),tk=Ye("INSERT_UNORDERED_LIST_COMMAND"),nk=Ye("INSERT_ORDERED_LIST_COMMAND"),V0=Ye("REMOVE_LIST_COMMAND");function A5(e){return Fo(e.registerCommand(nk,()=>(O1("number"),!0),$i),e.registerCommand(C5,t=>{const{listNodeKey:n,newStart:r}=t,o=bn(n);return!!at(o)&&(o.getListType()==="number"&&(o.setStart(r),ek(o)),!0)},$i),e.registerCommand(tk,()=>(O1("bullet"),!0),$i),e.registerCommand(V0,()=>(g5(),!0),$i),e.registerCommand(id,()=>b5(),$i),e.registerNodeTransform(Du,t=>{const n=t.getFirstChild();if(n){if(Ie(n)){const r=n.getStyle(),o=n.getFormat();t.getTextStyle()!==r&&t.setTextStyle(r),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{const r=Oe();ge(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(rs,t=>{const n=t.getParent();if(At(n)&&t.is(n.getFirstChild())){const r=t.getStyle(),o=t.getFormat();r===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(r).setTextFormat(o)}}))}function E5(e){const t=n=>{const r=n.getParent();if(at(n.getFirstChild())||!at(r))return;const o=Ln(n,i=>At(i)&&at(i.getParent())&&At(i.getPreviousSibling()));if(o===null&&n.getIndent()>0)n.setIndent(0);else if(At(o)){const i=o.getPreviousSibling();if(At(i)){const s=(function(u){let f=u,m=f.getFirstChild();for(;at(m);){const h=m.getLastChild();if(!At(h))break;f=h,m=f.getFirstChild()}return f})(i),c=s.getParent();if(at(c)){const u=W0(c);u+1<W0(r)&&n.setIndent(u)}}}};return e.registerNodeTransform(Md,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(at(o)){for(const i of o.getChildren())if(At(i)){t(i);const s=i.getFirstChild();at(s)&&r.push(s)}}}})}const k5=new Set(["http:","https:","mailto:","sms:","tel:"]);class Nl extends pi{constructor(n="",r={},o){super(o);ce(this,"__url");ce(this,"__target");ce(this,"__rel");ce(this,"__title");const{target:i=null,rel:s=null,title:c=null}=r;this.__url=n,this.__target=i,this.__rel=s,this.__title=c}static getType(){return"link"}static clone(n){return new Nl(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),lb(r,n.theme.link),r}updateLinkDOM(n,r,o){if(gE(r)){n&&n.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,c=this[s];n&&n[s]===c||(c?r[i]=c:r.removeAttribute(i))}}}updateDOM(n,r,o){return this.updateLinkDOM(n,r,o),!1}static importDOM(){return{a:n=>({conversion:T5,priority:1})}}static importJSON(n){return pl().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=j1(n);try{const r=new URL(j1(n));if(!k5.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=pl(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(!ge(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 T5(e){let t=null;if(gE(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=pl(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function pl(e="",t){return is(new Nl(e,t))}function Vn(e){return e instanceof Nl}class vm extends Nl{constructor(n="",r={},o){super(n,r,o);ce(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(n){return new vm(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 D1().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(ae(o)){const i=D1(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function D1(e="",t){return is(new vm(e,t))}function Xs(e){return e instanceof vm}const dd=Ye("TOGGLE_LINK_COMMAND");function F1(e,t){if(e.type==="element"){const n=e.getNode();return ae(n)||(function(r,...o){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",r);for(const c of o)s.append("v",c);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 dv(e,t={}){let n;if(e&&typeof e=="object"){const{url:m,...h}=e;n=m,t={...h,...t}}else n=e;const{target:r,title:o}=t,i=t.rel===void 0?"noreferrer":t.rel,s=Oe();if(s===null||!ge(s)&&!In(s))return;if(In(s)){const m=s.getNodes();return m.length===0?void 0:void m.forEach(h=>{if(n===null){const v=Ln(h,w=>!Xs(w)&&Vn(w));v&&(v.insertBefore(h),v.getChildren().length===0&&v.remove())}else{const v=Ln(h,w=>!Xs(w)&&Vn(w));if(v)v.setURL(n),r!==void 0&&v.setTarget(r),i!==void 0&&v.setRel(i);else{const w=pl(n,{rel:i,target:r});h.insertBefore(w),w.append(h)}}})}const c=s.extract();if(n===null){const m=new Set;return void c.forEach(h=>{const v=h.getParent();if(Vn(v)&&!Xs(v)){const w=v.getKey();if(m.has(w))return;(function(C,A){const x=new Set(A.filter(j=>C.isParentOf(j)).map(j=>j.getKey())),E=C.getChildren(),R=E.filter(j=>x.has(j.getKey()));if(R.length===E.length)return E.forEach(j=>C.insertBefore(j)),void C.remove();const I=E.findIndex(j=>x.has(j.getKey())),L=E.findLastIndex(j=>x.has(j.getKey())),M=I===0,U=L===E.length-1;if(M)R.forEach(j=>C.insertBefore(j));else if(U)for(let j=R.length-1;j>=0;j--)C.insertAfter(R[j]);else{for(let W=R.length-1;W>=0;W--)C.insertAfter(R[W]);const j=E.slice(L+1);if(j.length>0){const W=pl(C.getURL(),{rel:C.getRel(),target:C.getTarget(),title:C.getTitle()});R[R.length-1].insertAfter(W),j.forEach(H=>W.append(H))}}})(v,c),m.add(w)}})}const u=new Set,f=m=>{u.has(m.getKey())||(u.add(m.getKey()),m.setURL(n),r!==void 0&&m.setTarget(r),i!==void 0&&m.setRel(i),o!==void 0&&m.setTitle(o))};if(c.length===1){const m=c[0],h=Ln(m,Vn);if(h!==null)return f(h)}(function(m){const h=Oe();if(!ge(h))return m();const v=vu(h),w=v.isBackward(),C=F1(v.anchor,w?-1:0),A=F1(v.focus,w?0:-1);if(m(),C||A){const x=Oe();if(ge(x)){const E=x.clone();if(C){const R=C.getParent();R&&E.anchor.set(R.getKey(),C.getIndexWithinParent()+(w?1:0),"element")}if(A){const R=A.getParent();R&&E.focus.set(R.getKey(),A.getIndexWithinParent()+(w?0:1),"element")}Er(vu(E))}}})(()=>{let m=null;for(const h of c){if(!h.isAttached())continue;const v=Ln(h,Vn);if(v){f(v);continue}if(ae(h)){if(!h.isInline())continue;if(Vn(h)){if(!(Xs(h)||m!==null&&m.getParentOrThrow().isParentOf(h))){f(h),m=h;continue}for(const C of h.getChildren())h.insertBefore(C);h.remove();continue}}const w=h.getPreviousSibling();Vn(w)&&w.is(m)?w.append(h):(m=pl(n,{rel:i,target:r,title:o}),h.insertAfter(m),m.append(h))}})}const _5=/^\+?[0-9\s()-]{5,}$/;function j1(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:_5.test(e)?`tel:${e}`:`https://${e}`}function R5(e,t){return Fo(fd(()=>e.registerCommand(dd,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return dv(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(dv(n,o),!0);{const{url:i,target:s,rel:c,title:u}=n;return dv(i,{...o,rel:c,target:s,title:u}),!0}},$i)),fd(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(lm,o=>{const i=Oe();if(!ge(i)||i.isCollapsed()||!$a(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(c=>ae(c))&&(e.dispatchCommand(dd,{...r,url:s}),o.preventDefault(),!0)},$i)}))}function P5({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=ir(),[c,u]=Y.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[f,m]=Y.useState(null),h=Y.useRef(null),v=Y.useRef(null),w=pb[e];Y.useLayoutEffect(()=>s.registerUpdateListener(({editorState:R})=>{R.read(()=>{const I=Oe();if(!ge(I))return;u({bold:I.hasFormat("bold"),italic:I.hasFormat("italic"),underline:I.hasFormat("underline"),strikethrough:I.hasFormat("strikethrough"),code:I.hasFormat("code")});let L=I.anchor.getNode(),M=null;for(;L;){if(at(L)){const U=L.getListType();M=U==="bullet"||U==="number"?U:null;break}if(At(L)){L=L.getParent();continue}L=L.getParent()}m(M)})}),[s]);const C=R=>{s.dispatchCommand(ii,R)},A=()=>{f!=="bullet"?s.dispatchCommand(tk,void 0):s.dispatchCommand(V0,void 0)},x=()=>{f!=="number"?s.dispatchCommand(nk,void 0):s.dispatchCommand(V0,void 0)},E=()=>{s.update(()=>{const R=Oe();if(!ge(R))return;["bold","italic","underline","strikethrough","code"].forEach(L=>{R.hasFormat(L)&&s.dispatchCommand(ii,L)})})};return D.jsxs("div",{className:gt("flex items-center w-full",r?"justify-between":"justify-end"),children:[D.jsxs("div",{className:"flex items-center gap-1",children:[D.jsx(p0,{placement:"top-end",minWidth:"fit-content",title:"text formatting menu",trigger:D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",children:D.jsx(ot,{icon:iI})}),children:D.jsxs("ul",{className:"flex items-start flex-col",children:[D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Bold",onClick:()=>C("bold"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.bold?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:XO,className:"mr-2"}),"Bold"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Italic",onClick:()=>C("italic"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.italic?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:eI,className:"mr-2"}),"Italic"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Underline",onClick:()=>C("underline"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.underline?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:ZO,className:"mr-2"}),"Underline"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>C("strikethrough"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.strikethrough?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:QO,className:"mr-2"}),"Strikethrough"]})}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Monospace",onClick:()=>C("code"),className:gt("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",c.code?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[D.jsx(ot,{icon:nI,className:"mr-2"}),"Monospace"]})}),D.jsx("hr",{className:"w-full border-gray-200"}),D.jsx("li",{className:"flex items-center w-full",children:D.jsxs("button",{type:"button",title:"Clear formatting",onClick:E,className:"cursor-pointer w-full h-full justify-start text-left p-2 text-gray-400 hover:text-gray-400 hover:bg-gray-100",children:[D.jsx(ot,{icon:qO,className:"mr-2"}),"Clear formatting"]})})]})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:A,children:D.jsx(ot,{icon:aI})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:x,children:D.jsx(ot,{icon:tI})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(dd,"https://")},children:D.jsx(ot,{icon:oI})}),i&&D.jsxs(D.Fragment,{children:[D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"border-l-1 border-gray-200 rounded-none",onClick:()=>{var R;(R=h.current)==null||R.click()},children:D.jsx(ot,{icon:JO})}),D.jsx(Ht,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var R;(R=v.current)==null||R.click()},children:D.jsx(ot,{icon:rI})})]}),n&&D.jsx(p0,{placement:"top-end",title:"comment type menu",trigger:D.jsx(Ht,{category:"link",size:"smallCollapse",className:`${w.iconColor} border-l-1 border-gray-200 rounded-none`,children:D.jsx(ot,{icon:w.icon})}),children:D.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:ok.map(R=>D.jsx("li",{children:D.jsx(Ht,{category:"link",size:"none",title:R.title,className:gt(R.color,e===R.type?R.color:"text-gray-400"),onClick:()=>t==null?void 0:t(R.type),children:D.jsx(ot,{icon:R.icon})})},R.type))})})]}),r,D.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:h,accept:"image/*",onChange:R=>{const I=R.target.files;I&&(i==null||i(I))}}),D.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:v,accept:"*",onChange:R=>{const I=R.target.files;I&&(i==null||i(I))}})]})}function O5({hasStrictIndent:e=!1}){const[t]=ir();return Y.useEffect(()=>{if(!t.hasNodes([Md,Du]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),Y.useEffect(()=>{if(e)return E5(t)},[t,e]),(function(n){Y.useEffect(()=>A5(n),[n])})(t),null}function I5({validateUrl:e,attributes:t}){const[n]=ir();return Y.useEffect(()=>{if(!n.hasNodes([Nl]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),Y.useEffect(()=>R5(n,FE({attributes:t,validateUrl:e})),[n,e,t]),null}const M5=new Set(["http:","https:","mailto:","sms:","tel:"]);function z1(e){try{const t=new URL(e);if(!M5.has(t.protocol))return"about:blank"}catch{return e}return e}function B1(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(),c=n.getBoundingClientRect(),u=i.getBoundingClientRect();let f=e.top-r,m=e.left-o;f<u.top&&(f+=s.height+e.height+r*2),m+s.width>u.right&&(m=u.right-s.width-o),f-=c.top,m-=c.left,t.style.opacity="1",t.style.transform=`translate(${m}px, ${f}px)`}function Nh(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?c1(n)?r:o:c1(t)?r:o}function N5({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=Y.useRef(null),[c,u]=Y.useState(""),[f,m]=Y.useState("https://"),[h,v]=Y.useState(null),w=Y.useCallback(()=>{var M,U;const x=Oe();if(ge(x)){const j=Nh(x),W=Ln(j,Vn);W?u(W.getURL()):Vn(j)?u(j.getURL()):u(""),o&&m(c)}else if(In(x)){const j=x.getNodes();if(j.length>0){const W=j[0],H=W.getParent();Vn(H)?u(H.getURL()):Vn(W)?u(W.getURL()):u(""),o&&m(c)}}const E=s.current,R=go(e._window),I=document.activeElement;if(E===null)return;const L=e.getRootElement();if(x!==null&&L!==null&&e.isEditable()){let j;if(In(x)){const W=x.getNodes();if(W.length>0){const H=e.getElementByKey(W[0].getKey());H&&(j=H.getBoundingClientRect())}}else R!==null&&L.contains(R.anchorNode)&&(j=(U=(M=R.focusNode)==null?void 0:M.parentElement)==null?void 0:U.getBoundingClientRect());j&&(j.y+=40,B1(j,E,r)),v(x)}else(!I||I.className!=="link-input")&&(L!==null&&B1(null,E,r),v(null),i(!1),u(""));return!0},[r,e,i,o,c]);Y.useEffect(()=>{const x=r.parentElement,E=()=>{e.getEditorState().read(()=>{w()})};return window.addEventListener("resize",E),x&&x.addEventListener("scroll",E),()=>{window.removeEventListener("resize",E),x&&x.removeEventListener("scroll",E)}},[r.parentElement,e,w]),Y.useEffect(()=>Fo(e.registerUpdateListener(({editorState:x})=>{x.read(()=>{w()})}),e.registerCommand(sm,()=>(w(),!0),$i),e.registerCommand(jy,()=>t?(n(!1),!0):!1,IN)),[e,w,n,t]),Y.useEffect(()=>{e.getEditorState().read(()=>{w()})},[e,w]),Y.useEffect(()=>{const x=s.current;if(x===null)return;const E=R=>{!x.contains(R.relatedTarget)&&t&&(n(!1),i(!1))};return x.addEventListener("focusout",E),()=>{x.removeEventListener("focusout",E)}},[n,i,t]);const C=x=>{x.key==="Enter"?A(x):x.key==="Escape"&&(x.preventDefault(),i(!1))},A=x=>{x.preventDefault(),h!==null&&(c!==""&&e.update(()=>{e.dispatchCommand(dd,z1(f));const E=Oe();if(ge(E)){const R=Nh(E).getParent();if(Xs(R)){const I=pl(R.getURL(),{rel:R.__rel,target:R.__target,title:R.__title});R.replace(I,!0)}}}),m("https://"),i(!1))};return D.jsx("div",{ref:s,className:"absolute flex top-0 left-0 shadow-lg bg-white z-10 rounded-sm w-full max-w-400",children:t?o?D.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[D.jsx(vC,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:f,onChange:x=>{m(x.target.value)},onKeyDown:x=>{C(x)}}),D.jsxs("div",{className:"flex justify-center items-center gap-4",children:[D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{i(!1)},children:D.jsx(ot,{icon:Gh})}),D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:A,children:D.jsx(ot,{icon:kC})})]})]}):D.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[D.jsx("a",{href:z1(c),target:"_blank",rel:"noopener noreferrer",children:c}),D.jsxs("div",{className:"flex items-center gap-4",children:[D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>{m(c),i(!0)},children:D.jsx(ot,{icon:P3})}),D.jsx(Ht,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:x=>x.preventDefault(),onClick:()=>e.dispatchCommand(dd,null),children:D.jsx(ot,{icon:U3})})]})]}):null})}function L5(e,t,n,r){const[o,i]=Y.useState(e),[s,c]=Y.useState(!1);return Y.useEffect(()=>{function u(){const f=Oe();if(ge(f)){const m=Nh(f),h=Ln(m,Vn),v=Ln(m,Xs);if(!(h||v)){c(!1);return}const w=f.getNodes().filter(C=>!ul(C)).find(C=>{const A=Ln(C,Vn),x=Ln(C,Xs);return h&&!h.is(A)||A&&!A.is(h)||v&&!v.is(x)||x&&(!x.is(v)||x.getIsUnlinked())});c(!w)}else if(In(f)){const m=f.getNodes();if(m.length===0){c(!1);return}const h=m[0],v=h.getParent();Vn(v)||Vn(h)?c(!0):c(!1)}}return Fo(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{u()})}),e.registerCommand(sm,(f,m)=>(u(),i(m),!1),eE),e.registerCommand(Ly,f=>{const m=Oe();if(ge(m)){const h=Nh(m),v=Ln(h,Vn);if(Vn(v)&&(f.metaKey||f.ctrlKey))return window.open(v.getURL(),"_blank"),!0}return!1},$i))},[e]),ui.createPortal(D.jsx(N5,{editor:o,isLink:s,anchorElem:t,setIsLink:c,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function D5({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=ir();return L5(r,e,t,n)}const F5=({url:e,onDelete:t})=>D.jsxs("div",{className:"relative",children:[D.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),D.jsx(Ht,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:D.jsx(ot,{icon:EC})})]}),j5=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=xA(r);return D.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[D.jsx(Ht,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:D.jsx(ot,{icon:EC})}),D.jsxs("div",{className:"flex items-center justify-center mx-2",children:[D.jsx("span",{className:"text-primary-600 my-2",children:D.jsx(ot,{icon:o,size:"3x",className:"text-primary-600"})}),D.jsx("span",{className:"font-bold p-2",children:n})]})]})},z5=({clearKey:e})=>{const[t]=ir(),n=Y.useRef(e);return Y.useEffect(()=>{n.current!==e&&(t.update(()=>{Xt().clear()}),n.current=e)},[e,t]),null},B5=({isOpen:e})=>{const[t]=ir();return Y.useEffect(()=>{e&&requestAnimationFrame(()=>{t.focus()})},[t,e]),null},U5=({initialValue:e})=>{const[t]=ir(),n=Y.useCallback((o,i)=>{const c=new DOMParser().parseFromString(i,"text/html");return $E(o,c)},[]),r=Y.useRef(!1);return Y.useEffect(()=>{!r.current&&e&&(t.update(()=>{Xt().clear(),Y2(n(t,e))}),r.current=!0)},[t,e,n]),null},$5=({onChange:e})=>{const[t]=ir();return D.jsx(u5,{onChange:n=>{n.read(()=>{const r=WE(t,null);e(r)})}})},W5=({onAddAttachments:e})=>{const[t]=ir();return Y.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 c=!1;for(let u=0;u<s.length;u++){const f=s[u];if(f.kind==="file"&&f.type.startsWith("image/")){c=!0;break}}if(c){for(let u=0;u<s.length;u++){const f=s[u];if(f.kind==="file"&&f.type.startsWith("image/")){const m=f.getAsFile();if(m){const h=Date.now(),v=m.type.split("/")[1]||"png",w=`image_${h}.${v}`,C=new File([m],w,{type:m.type});e==null||e([C])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},H5=({onSubmit:e})=>{const[t]=ir();return Y.useEffect(()=>{if(e)return t.registerCommand(ld,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null};function rk({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:c,isCommentTypeEditable:u=!0,actions:f,onAddAttachments:m,onRemoveAttachment:h,onSubmit:v,isOpen:w}){const C={namespace:"comment-editor",theme:m5,nodes:[Md,Du,Nl],onError:M=>{console.error(M)}},[A,x]=Y.useState(null),[E,R]=Y.useState(!1),I=M=>{M!==null&&x(M)},L=pb[s];return D.jsx("div",{className:r,children:D.jsxs(lL,{initialConfig:C,children:[D.jsxs("div",{className:"relative",children:[D.jsx(qL,{contentEditable:D.jsx("div",{ref:I,children:D.jsx(a5,{className:gt("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",L.bg,L.border,L.fontColor,n)})}),placeholder:D.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:h5}),D.jsx(O5,{}),D.jsx(I5,{}),A&&D.jsx(D5,{anchorElem:A,isLinkEditMode:E,setIsLinkEditMode:R}),D.jsx(r5,{}),D.jsx(U5,{initialValue:o}),D.jsx($5,{onChange:i}),D.jsx(H5,{onSubmit:v}),D.jsx(z5,{clearKey:t}),D.jsx(W5,{onAddAttachments:m}),D.jsx(B5,{isOpen:w})]}),e&&e.length>0&&D.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(M=>yy(M.type)?D.jsx(F5,{url:M.url,onDelete:()=>h==null?void 0:h(M.originFile)},M.originFile.name):D.jsx(j5,{type:M.type,label:M.name,onRemoveFile:()=>h==null?void 0:h(M.originFile)},M.originFile.name))}),D.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:D.jsx(P5,{commentType:s,onCommentTypeChange:c,isCommentTypeEditable:u,actions:f,setIsLinkEditMode:R,onAddAttachments:m})})]})})}const V5=({asset:e,onSetActiveSrc:t})=>D.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full hover:border-primary-500",children:[D.jsx("img",{src:Jp(e),onClick:()=>t(Jp(e)),onKeyDown:n=>{n.key==="Enter"&&t(Jp(e))},alt:e.name,className:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&D.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:D.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:D.jsx("div",{className:"absolute left-0 top-0 h-full w-1/3 rounded-full bg-blue-500 animate-progress"})})})]}),K5=({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=xA(t);return D.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&D.jsx("div",{className:"flex items-center justify-center",children:D.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),D.jsx(ot,{icon:n,size:"lg",className:"text-primary-600"}),D.jsx("a",{href:Jp(e),className:"text-sm text-blue-600 underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},Y5=({commentType:e=Yn.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:c,taskAssets:u,taskVerified:f})=>{const h={[Yn.INFO]:{bg:"bg-primary-100",border:"border-primary-200",icon:AC,iconColor:"text-primary-600 hover:text-primary-600",text:"text-primary-900"},[Yn.WARNING]:{bg:"bg-warning-100",border:"border-warning-200",icon:xC,iconColor:"text-warning-600 hover:text-warning-600",text:"text-warning-900"},[Yn.DANGER]:{bg:"bg-danger-100",border:"border-danger-200",icon:TC,iconColor:"text-danger-600 hover:text-danger-600",text:"text-danger-900"},[Yn.SUCCESS]:{bg:"bg-success-100",border:"border-success-200",icon:SC,iconColor:"text-success-600 hover:text-success-600",text:"text-success-900"}}[e],v=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(o||"")).replace(",",""),[w,C]=Y.useState(!1),[A,x]=Y.useState($g(r)),[E,R]=Y.useState(e),[I,L]=Y.useState(""),M=()=>{C(!0)},U=()=>{const H=a0.sanitize(A);s(H,E),C(!1)},j=H=>{const G=a0.sanitize(A);R(H),s(G,H),C(!1)},W=()=>{C(!1)};return D.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[D.jsx(yM,{alt:t}),D.jsxs("div",{className:"flex-1 min-w-0",children:[D.jsxs("div",{className:`border ${h.border} rounded-sm ${h.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[D.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:D.jsxs("div",{className:"w-full",children:[D.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[D.jsxs("div",{children:[D.jsx(ot,{icon:h.icon,size:"lg",className:`mr-2 ${h.iconColor}`}),D.jsx("span",{className:`font-semibold text-sm ${h.text}`,children:t})]}),D.jsx(xM,{commentType:e,taskVerified:f,isUsernameAuthor:n.trim()===t.trim(),onEdit:M,onSaveCommentType:j,onDelete:i})]}),w?D.jsx(rk,{inputFieldClassName:"bg-white border-0 rounded-sm",containerClassName:"bg-white border-0 rounded-sm",onChange:x,commentType:e,isCommentTypeEditable:!1,initialValue:$g(r),actions:D.jsxs("div",{className:"flex items-center gap-2",children:[D.jsx(Ht,{category:"outline",size:"smallCollapse",color:"secondary",onClick:W,title:"Cancel edit",children:"Cancel"}),D.jsx(Ht,{category:"solid",size:"smallCollapse",color:"primary",onClick:U,title:"Save edit",disabled:qp(A),children:"Save"})]})}):D.jsx("div",{className:`text-sm ${h.text}`,dangerouslySetInnerHTML:{__html:$g(r)}})]})}),c&&u&&(u==null?void 0:u.length)>0&&D.jsx("div",{className:`${h.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:u.map(H=>D.jsx(Y.Fragment,{children:yy(H.mimeType)?D.jsx(V5,{asset:H,onSetActiveSrc:L}):D.jsx(K5,{asset:H})},H.assetId))})]}),D.jsxs("div",{className:"flex gap-2 my-1",children:[o&&D.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:v}),f&&D.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[D.jsx(ot,{icon:CC}),"Comment Required"]})]})]}),D.jsx(q6,{plugins:[gM],open:!!I,zoom:{maxZoomPixelRatio:2},close:()=>L(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:I}]})]})},pb={[Yn.INFO]:{icon:H3,bg:"bg-primary-100",border:"border-l-primary-500",iconColor:"text-primary-600 hover:text-primary-700",fontColor:"text-primary-900"},[Yn.WARNING]:{icon:O3,bg:"bg-warning-100",border:"border-l-warning-500",iconColor:"text-warning-600 hover:text-warning-700",fontColor:"text-warning-900"},[Yn.DANGER]:{icon:Y3,bg:"bg-danger-100",border:"border-l-danger-500",iconColor:"text-danger-600 hover:text-danger-700",fontColor:"text-danger-900"},[Yn.SUCCESS]:{icon:CC,bg:"bg-success-100",border:"border-l-success-500",iconColor:"text-success-600 hover:text-success-700",fontColor:"text-success-900"}},ok=Object.entries(pb).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),G5=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:c})=>{const[u,f]=Y.useState(""),[m,h]=Y.useState(Yn.INFO),[v,w]=Y.useState(0),[C,A]=Y.useState([]),x=Y.useRef(null),{username:E}=ik(),{manageComment:R}=UI({playbookInstanceId:s}),I=()=>{const G=C.length,pe=C.some(se=>!yy(se.mimeType))?"Attachment":"Image",ie=G>1?"s":"";return`<p class="m-0"><span style="white-space: pre-wrap;">${pe}${ie} added.</span></p>`},L=G=>{const q=Array.from(G).map((pe,ie)=>II(pe,C.length+ie+1));A(pe=>[...pe,...q])},M=G=>{A(q=>q.filter(pe=>pe.originFile!==G))},U=G=>{h(G)},j=async()=>{if(!C.length&&qp(u)||!o)return;C.length>0&&A([]);const G=a0.sanitize(u);f(""),w(q=>q+1),await R({action:"add",comment:C.length>0&&qp(u)?I():G,username:E||"",commentType:m,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:C.length>0,taskInstanceId:o,taskVerified:c,attachments:C}),h(Yn.INFO)},W=async G=>{o&&await R({username:E||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:G})},H=async({commentId:G,comment:q,commentType:pe,hasAssets:ie,isAlreadyVerified:se})=>{o&&await R({action:"edit",username:E||"",...q&&{comment:q},taskInstanceId:o,commentId:G,hasAssets:ie,taskVerified:se,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,commentType:pe})};return Y.useLayoutEffect(()=>{x.current&&n&&!i&&e.length>0&&(x.current.scrollTop=x.current.scrollHeight)},[n,i,e.length]),D.jsxs("div",{className:gt("transition-all duration-300 fixed bg-white right-0 bottom-0 h-[100vh] z-[9999999998] flex flex-col min-w-[270px] max-w-[420px] w-[calc(100vw-1rem)] border border-gray-200 rounded-t-sm overflow-hidden",n?"translate-y-0 opacity-100":"translate-y-full opacity-0 pointer-events-none"),children:[D.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[D.jsxs("div",{className:"flex items-center gap-2",children:[D.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),D.jsx(ot,{icon:ay,className:"size-4 text-gray-300"})]}),D.jsx(Ht,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:D.jsx(ot,{icon:Gh,className:"size-4 text-gray-300"})})]}),D.jsxs("div",{ref:x,className:"flex flex-col flex-1 overflow-y-auto",children:[D.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&D.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(G=>D.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},G))}),(e==null?void 0:e.length)>0&&!i&&e.map(G=>D.jsx(Y5,{username:E||"",onDelete:()=>W(G.commentId),onEdit:(q,pe)=>H({commentId:G.commentId,comment:q,commentType:pe,hasAssets:G.hasAssets,isAlreadyVerified:G.taskVerified}),...G},G.commentId)),(e==null?void 0:e.length)===0&&!i&&D.jsxs("div",{className:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[D.jsx("img",{src:PI,className:"opacity-70",alt:"Empty"}),D.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),D.jsx(rk,{attachments:C,onChange:f,containerClassName:"fixed bottom-0 left-0 right-0 bg-white",clearKey:v,commentType:m,onCommentTypeChange:U,onAddAttachments:L,onRemoveAttachment:M,onSubmit:j,isOpen:n,actions:D.jsx(Ht,{category:"link",size:"normalCollapse",title:"Send comment",onClick:j,disabled:qp(u)&&C.length===0,children:D.jsx(ot,{icon:sI})})})]})]})},K0=Y.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),ik=()=>{if(!Y.useContext(K0))throw new Error("useCommentContext must be used within a CommentProvider");return Y.useContext(K0)},Q5=({playbookInstanceId:e,children:t,username:n})=>{const[r,o]=Y.useState({taskInstanceId:null,taskName:"",taskVerification:!1}),{taskInstanceId:i,taskName:s,taskVerification:c}=r||{taskInstanceId:null,taskName:"",taskVerification:!1},{comments:u,isLoading:f,prefetchQuery:m}=FI({taskInstanceId:i||0,enabled:i!==null,username:n});return D.jsxs(K0.Provider,{value:{comments:u,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:m,username:n},children:[t,ui.createPortal(D.jsxs("div",{id:"cnfdnc-comment-box-root",children:[D.jsx("style",{children:yd}),D.jsx("div",{className:"confidence-playbook",children:D.jsx(G5,{playbookInstanceId:e,comments:u,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:f,taskVerification:c})})]}),lI)]})},Z5={[Zt.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[Zt.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[Zt.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[Zt.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Ni={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},X5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:c,playbookId:u,taskStyle:f,listStickyTopBase:m})=>{const[h,v]=Y.useState(!1),{taskDetails:w,prefetchQuery:C}=uO({taskId:e.taskId,playbookId:u,enabled:s}),{setOpenTaskDetails:A,prefetchQuery:x}=ik(),{buttons:E}=TT({taskStatus:e.workflowStatus,canStart:i}),R=Y.useMemo(()=>e.imageRequired===0?Ni.NO_VERIFICATION:e.imageRequired===1?Ni.SCREENSHOT:e.imageRequired===2?Ni.PHOTO:e.imageRequired===4?Ni.COMMENT:null,[e.imageRequired]),I=async L=>{try{v(!0),await r(L)}finally{v(!1)}};if(o==="list"){const L=Y.useMemo(()=>e.workflowStatus===Zt.COMPLETED?"success":e.workflowStatus===Zt.IN_PROGRESS?"primary":"default",[e.workflowStatus]),M=Y.useMemo(()=>{const U=[];return E.forEach(j=>{j==="START"&&U.push({id:"START",color:"primary",action:"Start",to:Zt.IN_PROGRESS}),j==="COMPLETE"&&(!e.taskVerified&&R===Ni.COMMENT&&U.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),U.push({id:"COMPLETE",color:"success",action:"Complete",to:Zt.COMPLETED,disabled:!e.taskVerified&&R===Ni.COMMENT}))}),U},[E,R,e.taskVerified]);return D.jsxs("div",{className:gt("flex flex-col"),children:[D.jsxs("div",{className:gt("flex items-center gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",s&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:s?m:0},children:[D.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),D.jsx("div",{onClick:()=>{c==null||c(!s)},onMouseOver:C,className:gt("flex-1 truncate cursor-pointer",s&&"font-medium",e.workflowStatus===Zt.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===Zt.IN_PROGRESS&&(f==null?void 0:f.titleColor)||"#1C232D"},children:e.taskInstanceName}),D.jsx(UO,{taskVerified:e.taskVerified,verificationType:R,title:e.workflowStatus,variant:L,transitions:M,onClick:U=>{if(U===Kc.ADD_COMMENT){A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(U)}}),D.jsx(Ux,{onMouseOver:()=>x(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||Yn.INFO,onClick:()=>A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})})]}),(w==null?void 0:w.description)&&D.jsx("div",{className:gt(!s&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:D.jsx(Bx,{description:(w==null?void 0:w.description)||""})})]})}return D.jsxs("div",{className:Xf("flex items-stretch rounded-sm overflow-hidden border",Z5[e.workflowStatus]),children:[D.jsx(VO,{playbookType:n,status:e.workflowStatus,step:t}),D.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&D.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:D.jsx(YO,{status:e.workflowStatus})}),D.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[D.jsx("div",{className:gt("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(f==null?void 0:f.titleColor)||"#1C232D"},children:e.taskInstanceName}),R?D.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[D.jsx(ot,{icon:wC,className:"size-4"}),D.jsxs("div",{children:[D.jsx("span",{className:"font-medium",children:R===Ni.PHOTO?"Photo":R===Ni.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):D.jsx(D.Fragment,{})]}),(w==null?void 0:w.description)&&D.jsx("div",{className:gt(!s&&"hidden"),children:D.jsx(Bx,{description:(w==null?void 0:w.description)||""})}),(E.length>0||e.hasDescription)&&D.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[D.jsx("div",{className:"flex-1",children:D.jsx(fO,{buttons:E,onButtonClick:I,disabled:h})}),D.jsx(Ux,{onMouseOver:()=>x(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||Yn.INFO,onClick:()=>A({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})}),c&&D.jsx(Ht,{size:"smallCollapse",onMouseOver:C,category:"link",onClick:()=>{c()},title:s?"Hide task description":"Show task description",children:D.jsx(ot,{icon:ay,className:Xf("cursor-pointer text-[#0069D9]",s?"rotate-180":"")})})]})]})]})},ak=Y.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,c;return D.jsx("div",{ref:o,className:gt("border-b border-gray-200 flex items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:D.jsx("div",{className:gt("text-xl min-h-16 p-4 font-medium flex-1",{"text-dark":!((s=n==null?void 0:n.whiteLabel)!=null&&s.titleTextColor)}),style:{color:(c=n==null?void 0:n.whiteLabel)==null?void 0:c.titleTextColor},children:e})})});ak.displayName="PlaybookHeader";const J5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>{const{playbook:r,actions:o}=ET(e);if(!r)return D.jsx("div",{});const i=async(s,c)=>{var u;if(s===Kc.COMPLETE){const f=(u=r.tasks.find(m=>m.taskInstanceId===c))==null?void 0:u.sequenceOrder;if(f===void 0){console.error("Task not found in playbook");return}return o.completeTask(c,f)}if(s===Kc.START)return o.startTask(c)};return D.jsx("div",{className:"confidence-playbook",children:D.jsx(sk,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},q5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>D.jsxs("div",{className:gt("w-full p-4",e),children:[n&&D.jsxs("div",{className:gt(r==="card"&&"mb-4"),children:[D.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),D.jsx("div",{className:gt(r==="card"&&"space-y-4"),children:t})]}),sk=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var x,E,R,I,L;const{playbookInstanceName:o,tasks:i}=e,s=Y.useRef(null),[c,u]=Y.useState(0),[f,m]=Y.useState(!0),h=()=>{m(!f)},{isTaskExpanded:v,toggleTaskExpanded:w,isAtLeastOneTaskExpanded:C}=wS(e.playbookInstanceId,{onTaskExpanded:()=>{var M;u(((M=s.current)==null?void 0:M.offsetHeight)||0)}});Y.useEffect(()=>{if(C){if(!s.current)throw new Error("Playbook header ref is not set");new ResizeObserver(U=>{var j;for(const W of U)W.contentRect&&u(((j=s.current)==null?void 0:j.offsetHeight)||0)}).observe(s.current)}return()=>{s.current&&new ResizeObserver(()=>{}).unobserve(s.current)}},[C]);const A=Y.useMemo(()=>{const M=i.filter(U=>U.workflowStatus===Zt.COMPLETED).sort((U,j)=>j.sequenceOrder-U.sequenceOrder)[0];return M?M.sequenceOrder+1:0},[i]);return D.jsxs("div",{className:gt(!(r!=null&&r.overlay)&&"min-h-screen",(r==null?void 0:r.overlay)&&"fixed bottom-0 z-[9999999997] flex","transition-all duration-300 ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:f?((x=r.overlay.size)==null?void 0:x.width)||450:"2.25rem",height:((E=r.overlay.size)==null?void 0:E.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((R=r.overlay.offset)==null?void 0:R.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((I=r.overlay.offset)==null?void 0:I.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&D.jsx("div",{onClick:h,className:gt("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((L=r==null?void 0:r.whiteLabel)==null?void 0:L.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:D.jsx("img",{src:aS,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),D.jsxs("div",{className:gt("flex flex-col flex-1 bg-gray-50",(r==null?void 0:r.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[D.jsx(ak,{title:o,className:gt("top-0 sticky z-2"),playbookStyle:r,ref:s}),D.jsx(q5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((M,U)=>{var j;return D.jsx(X5,{task:M,step:U+1,viewMode:t,playbookId:e.playbookId,canStart:M.sequenceOrder===A,onButtonClick:W=>n(W,M.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(j=r==null?void 0:r.whiteLabel)==null?void 0:j.primaryColor},isExpanded:v(M.taskInstanceId),toggleExpanded:()=>w(M.taskInstanceId),listStickyTopBase:c||104},M.taskId)})})]})]})},eD=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles"})=>{const[s,c]=Y.useState(null);return Y.useEffect(()=>{(async()=>{const{playbookInstanceId:u,errorCode:f,details:m,message:h}=await SS({bank:o,email:e,timezone:i,playbookUid:t})||{};if(f)throw new Error(`Error initiating playbook: ${h} (Code: ${f}) - Details: ${m}`);c(u)})()},[]),s?D.jsx(as,{playbookInstanceId:s,playbookMode:n,playbookStyle:r,username:e}):D.jsx("div",{children:"Loading..."})},tD=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary"})=>{const[i,s]=Y.useState(null),[c,u]=Y.useState(void 0);return D.jsxs(D.Fragment,{children:[D.jsxs(Lh.div,{children:[D.jsx(A3,{playbookId:e,disabled:!!i,onInitiated:(f,m)=>{s(f),u(m)},btnLabel:r,btnColor:o}),D.jsx("style",{type:"text/css",children:yd})]}),i&&D.jsx(as,{playbookInstanceId:i,playbookMode:t,playbookStyle:n,username:c})]})},as=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})=>(console.log("Starting ConfidencePlaybook with instance ID:",e,r),D.jsx(bS,{children:D.jsx(Q5,{playbookInstanceId:e,username:r,children:D.jsx(J5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n})})}));as.Context=bS;as.View=sk;as.AutoInstantiated=eD;as.WithInstantiateButton=tD;const lk=e=>ui.createPortal(D.jsxs(Lh.div,{style:{position:"relative",zIndex:2147483646},children:[D.jsx("style",{children:yd}),D.jsx(as,{...e})]}),document.body),nD=e=>ui.createPortal(D.jsxs(Lh.div,{style:{position:"relative",zIndex:2147483646},children:[D.jsx("style",{children:yd}),D.jsx(as.AutoInstantiated,{...e})]}),document.body);lk.AutoInstantiated=nD;exports.ConfidencePlaybook=lk;
|
|
603
|
+
`?r.push(Mo()):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 A=m.getNode(),w=A.getChildAtIndex(m.offset),_=rt();if(_.setFormat(v),_.setStyle(b),Bd(w))w.splice(0,0,[_]);else{const E=Ye(A)?Tt().append(_):_;w===null?A.append(E):w.insertBefore(E)}m.is(y)&&y.set(_.__key,0,"text"),m.set(_.__key,0,"text")})(s,a,o,i),a.type==="element"&&jo(a,Yt(tr(a,"next")));const l=s.offset;let c=a.offset;const u=this.getNodes(),f=u.length;let d=u[0];X(d)||U(26);const p=d.getTextContent().length,h=d.getParentOrThrow();let g=u[f-1];if(f===1&&a.type==="element"&&(c=p,a.set(s.key,c,"text")),this.isCollapsed()&&l===p&&(Bn(d)||!d.canInsertTextAfter()||!h.canInsertTextAfter()&&d.getNextSibling()===null)){let m=d.getNextSibling();if(X(m)&&m.canInsertTextBefore()&&!Bn(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()&&l===0&&(Bn(d)||!d.canInsertTextBefore()||!h.canInsertTextBefore()&&d.getPreviousSibling()===null)){let m=d.getPreviousSibling();if(X(m)&&!Bn(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()&&l!==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(""),Hb(this.anchor,this.focus,null),void this.insertText(t)}if(f===1){if(xo(d)){const b=rt(t);return b.select(),void d.replace(b)}const m=d.getFormat(),y=d.getStyle();if(l!==c||m===o&&y===i){if(Kb(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(),l===0)d.insertBefore(b,!1);else{const[A]=d.splitText(l);A.insertAfter(b,!1)}return void(b.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const v=c-l;d=d.spliceText(l,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"&&(c!==0||g.getTextContent()==="")||a.type==="element"&&g.getIndexWithinParent()<c)if(X(g)&&!xo(g)&&c!==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,c,"")),m.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else m.add(g.__key);const A=v.getChildren(),w=new Set(u),_=y.is(v),E=y.isInline()&&d.getNextSibling()===null?y:d;for(let S=A.length-1;S>=0;S--){const O=A[S];if(O.is(d)||R(O)&&O.isParentOf(d))break;O.isAttached()&&(!w.has(O)||O.is(b)?_||E.insertAfter(O,!1):O.remove())}if(!_){let S=v,O=null;for(;S!==null;){const P=S.getChildren(),I=P.length;(I===0||P[I-1].is(O))&&(m.delete(S.__key),O=S),S=S.getParent()}}if(xo(d))if(l===p)d.select();else{const S=rt(t);S.select(),d.replace(S)}else d=d.spliceText(l,p-l,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let S=1;S<f;S++){const O=u[S],P=O.__key;m.has(P)||O.remove()}}}removeText(){const t=Z()===this;Ha(this,l6(cg(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void ft(null);const r=this.getNodes(),o=[];for(const A of r)X(A)&&o.push(A);const i=A=>{r.forEach(w=>{if(R(w)){const _=w.getFormatFlags(t,A);w.setTextFormat(_)}})},s=o.length;if(s===0)return this.toggleFormat(t),ft(null),void i(n);const a=this.anchor,l=this.focus,c=this.isBackward(),u=c?l:a,f=c?a:l;let d=0,p=o[0],h=u.type==="element"?0:u.offset;if(u.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=f.type==="text"?f.offset:y.getTextContentSize();if(p.is(y)){if(h===v)return;if(Bn(p)||h===0&&v===p.getTextContentSize())p.setFormat(g);else{const A=p.splitText(h,v),w=h===0?A[0]:A[1];w.setFormat(g),u.type==="text"&&u.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Bn(p)||([,p]=p.splitText(h),h=0),p.setFormat(g);const b=y.getFormatFlags(t,g);v>0&&(v===y.getTextContentSize()||Bn(y)||([y]=y.splitText(v)),y.setFormat(b));for(let A=d+1;A<m;A++){const w=o[A],_=w.getFormatFlags(t,b);w.setFormat(_)}u.type==="text"&&u.set(p.__key,h,"text"),f.type==="text"&&f.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,mr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const h=Gc(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=Gc(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=bo(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(),l=!R(r)||!r.isEmpty()?this.insertParagraph():null,c=a[a.length-1];let u=a[0];var f;R(f=u)&&mr(f)&&!f.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||U(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=a[1]),u&&(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 A of v)b=b.insertAfter(A)})(r,u));const d=at(s,mr);l&&R(d)&&(l.canMergeWhenEmpty()||mr(c))&&(d.append(...l.getChildren()),l.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const p=R(r)?r.getLastChild():null;bo(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=Gc(this),n=at(this.anchor.getNode(),mr);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=Mo();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]=Nf(this),a=this.isBackward(),[l,c]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,f]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(u,f),p=u===0?d[0]:d[1];return p?(l.set(p.getKey(),0,"text"),c.set(p.getKey(),p.getTextContentSize(),"text"),[p]):[]}return[r]}if(X(r)&&(u===r.getTextContentSize()?t.shift():u!==0&&([,r]=r.splitText(u),t[0]=r,l.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;f===0?t.pop():f!==d&&([o]=o.splitText(f),t[t.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(Hm(this,t,n,r))return;const o=t==="move",i=Re(),s=en(Xt(i));if(!s)return;const a=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(l===null||a===null||!R(c)||c.isInline()||c.canBeEmpty()||Lf(a,i,l),this.dirty){let u=Lo(i,this.anchor.key),f=Lo(i,this.focus.key);this.anchor.type==="text"&&(u=Ri(u)),this.focus.type==="text"&&(f=Ri(f)),u&&f&&Gb(s,u,this.anchor.offset,f,this.focus.offset)}if((function(u,f,d,p){u.modify(f,d,p)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const u=s.getRangeAt(0),f=this.anchor.getNode(),d=Ye(f)?f:qT(f);if(this.applyDOMRange(u),this.dirty=!0,!o){const p=this.getNodes(),h=[];let g=!1;for(let m=0;m<p.length;m++){const y=p[m];If(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===u.startContainer&&s.anchorOffset===u.startOffset||(function(m){const y=m.focus,v=m.anchor,b=v.key,A=v.offset,w=v.type;v.set(y.key,y.offset,y.type,!0),y.set(b,A,w,!0)})(this)}}r==="lineboundary"&&Hm(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(tr(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const l of i.iterNodeCarets("shadowRoot"))if(kn(l)){if(!l.origin.isInline()){if(l.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=Yt(l);Ha(this,Dr(c,c)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:l,type:"merge-block"})}}else{if(a.type==="merge-block")break;if(Fi(l)){if(R(l.origin)){if(l.origin.isInline()){if(!l.origin.isParentOf(i.anchor.origin))break}else a={block:l.origin,type:"merge-next-block"};continue}if(Te(l.origin)){if(!l.origin.isIsolated())if(a.type==="merge-next-block"&&(l.origin.isKeyboardSelectable()||!l.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=Qb();c.add(l.origin.getKey()),Pt(c)}else l.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:l,block:c}=a;return Ha(this,Dr(!l.origin.isEmpty()&&c.isEmpty()?op(bt(c,l.direction)):i.anchor,l)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&zm(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 l=s.offset,c=a.getTextContentSize();if(a.is(o)||t&&l!==c||!t&&l!==0)return void $m(a,t,l)}else if(o!==null&&o.isSegmented()){const l=r.offset,c=o.getTextContentSize();if(o.is(a)||t&&l!==0||!t&&l!==c)return void $m(o,t,l)}(function(l,c){const u=l.anchor,f=l.focus,d=u.getNode(),p=f.getNode();if(d===p&&u.type==="text"&&f.type==="text"){const h=u.offset,g=f.offset,m=h<g,y=m?h:g,v=m?g:h,b=v-1;y!==b&&(function(A){return!(mx(A)||OT(A))})(d.getTextContent().slice(y,v))&&(c?f.set(f.key,b,f.type):u.set(u.key,b,u.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&&zm(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 Zl}function jm(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Nf(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]:[jm(n),jm(r)]}function zm(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 OT=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function $m(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let c=0;c<i;c++){const u=c===i-1;if(a=s,s+=o[c].length,t&&s===n||s>n||u){o.splice(c,1),u&&(a=void 0);break}}const l=o.join("").trim();l===""?r.remove():(r.setTextContent(l),r.select(a,a))}function Um(e,t,n,r){let o,i=t;if(pt(e)){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],f=!1;if(u===c)u=a[i+1],f=!0;else if(c!==null){const d=c.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,c)&&i--}if(o=li(u),X(o))i=Or(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=Or(g,s?"next":"previous")):g!==d&&s&&!f&&(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 On(d.__key,i,"element")}}else o=li(e);return X(o)?On(o.__key,Or(o,i,"clamp"),"text"):null}function Bm(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 Hb(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Bm(e,r,o),Bm(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 qb(e,t,n,r,o,i){if(e===null||n===null||!oa(o,e,n))return null;const s=Um(e,t,$(i)?i.anchor:null,o);if(s===null)return null;const a=Um(n,r,$(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const l=li(e),c=li(n);if(Te(l)&&Te(c))return null}return Hb(s,a,i),[s,a]}function Of(e){return R(e)&&!e.isInline()}function Vb(e,t,n,r,o,i){const s=Br(),a=new Uo(On(e,t,o),On(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function Yb(){const e=On("root",0,"element"),t=On("root",0,"element");return new Uo(e,t,0,"")}function Qb(){return new Zl(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",l=!ff&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,u,f,d;if($(e)&&!l)return e.clone();if(t===null)return null;if(c=t.anchorNode,u=t.focusNode,f=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&$(e)&&!oa(n,c,u))return e.clone();const p=qb(c,f,u,d,n,e);if(p===null)return null;const[h,g]=p;return new Uo(h,g,$(e)?e.format:0,$(e)?e.style:"")}function Z(){return Br()._selection}function Yi(){return Re()._editorState._selection}function hl(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 l=t.__key;if(e.isCollapsed()){const c=o.offset;if(n<=c&&r>0||n<c&&r<0){const u=Math.max(0,c+r);o.set(l,u,"element"),i.set(l,u,"element"),Wm(e)}}else{const c=e.isBackward(),u=c?i:o,f=u.getNode(),d=c?o:i,p=d.getNode();if(t.is(f)){const h=u.offset;(n<=h&&r>0||n<h&&r<0)&&u.set(l,Math.max(0,h+r),"element")}if(t.is(p)){const h=d.offset;(n<=h&&r>0||n<h&&r<0)&&d.set(l,Math.max(0,h+r),"element")}}Wm(e)}function Wm(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(),l=n>=a,c=l?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),t.set(c.__key,u,"text"),r.set(c.__key,u,"text")}return}if(R(i)){const a=i.getChildrenSize(),l=n>=a,c=l?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),t.set(c.__key,u,"text")}}if(R(s)){const a=s.getChildrenSize(),l=o>=a,c=l?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),r.set(c.__key,u,"text")}}}function ml(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 Km(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 Gb(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function PT(e,t,n,r,o,i,s){const a=r.anchorNode,l=r.focusNode,c=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(o.has(bT)&&f!==i||f!==null&&Hd(f))return;if(!$(t))return void(e!==null&&oa(n,a,l)&&r.removeAllRanges());const d=t.anchor,p=t.focus,h=d.key,g=p.key,m=Lo(n,h),y=Lo(n,g),v=d.offset,b=p.offset,A=t.format,w=t.style,_=t.isCollapsed();let E=m,S=y,O=!1;if(d.type==="text"){E=Ri(m);const Y=d.getNode();O=Y.getFormat()!==A||Y.getStyle()!==w}else $(e)&&e.anchor.type==="text"&&(O=!0);var P,I,W,j,z;if(p.type==="text"&&(S=Ri(y)),E!==null&&S!==null&&(_&&(e===null||O||$(e)&&(e.format!==A||e.style!==w))&&(P=A,I=w,W=v,j=h,z=performance.now(),Rb=[P,I,W,j,z]),c!==v||u!==b||a!==E||l!==S||r.type==="Range"&&_||(f!==null&&i.contains(f)||o.has(AT)||i.focus({preventScroll:!0}),d.type==="element"))){if(Gb(r,E,v,S,b),!o.has(xT)&&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=bx(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)}}Cf=!0}}function Zb(e){let t=Z()||Yi();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function Gc(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(;!mr(o);){const s=o;if([o,i]=MT(o,i),s.is(o))break}return i}function MT(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 Uo(On(e.__key,t,"element"),On(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Hm(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[u,f]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return f.set(u.key,u.offset,u.type),!0}const i=tr(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let l=i,c=o==="decorators-and-blocks";if(!Ex(l)){for(const u of l){c=!1;const{origin:f}=u;if(!Te(f)||f.isIsolated()||(l=u,!s||!f.isInline()))break}if(c)for(const u of rp(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(kn(u))u.origin.isInline()||(l=u);else{if(R(u.origin))continue;Te(u.origin)&&!u.origin.isInline()&&(l=u)}break}}if(l===i)return!1;if(a&&!s&&Te(l.origin)&&l.origin.isKeyboardSelectable()){const u=Qb();return u.add(l.origin.getKey()),Pt(u),!0}return l=Yt(l),a&&jo(e.anchor,l),jo(e.focus,l),c||!s}let it=null,st=null,Ft=!1,Zc=!1,Wa=0;const qm={characterData:!0,childList:!0,subtree:!0};function na(){return Ft||it!==null&&it._readOnly}function yt(){Ft&&U(13)}function Jb(){Wa>99&&U(14)}function Br(){return it===null&&U(195,Xb()),it}function Re(){return st===null&&U(196,Xb()),st}function Xb(){let e=0;const t=new Set,n=Io.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=Xl(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 IT(){return st}function Vm(e,t,n){const r=t.__type,o=ax(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 Ym(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function ex(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 LT(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 l=zd(s[a],t);i.append(l)}return i}function Qm(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 Yn(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,l=e._dirtyType!==0,c=it,u=Ft,f=st,d=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&p!==null){st=e,it=n,Ft=!1,e._updating=!0;try{const _=e._dirtyType,E=e._dirtyElements,S=e._dirtyLeaves;p.disconnect(),h=J3(i,n,e,_,E,S)}catch(_){if(_ instanceof Error&&e._onError(_),Zc)throw _;return ix(e,null,r,n),ub(e),e._dirtyType=2,Zc=!0,Yn(e,i),void(Zc=!1)}finally{p.observe(r,qm),e._updating=d,it=c,Ft=u,st=f}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,b=e._deferred;l&&(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 O=_._pendingDecorators||S;const P=E._nodeMap;let I;for(I in O)P.has(I)||(O===S&&(O=px(_)),delete O[I])})(e,n);const A=o?null:en(Xt(e));if(e._editable&&A!==null&&(l||a===null||a.dirty||!a.is(s))&&r!==null&&!v.has(wT)){st=e,it=n;try{if(p!==null&&p.disconnect(),l||a===null||a.dirty){const _=e._blockCursorElement;_!==null&&Lf(_,e,r),PT(s,a,e,A,v,r)}(function(_,E,S){let O=_._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())Xc(I.getChildAtIndex(W-1))&&(j=!0);else{const Y=I.getChildAtIndex(W);if(Y!==null&&Xc(Y)){const Q=Y.getPreviousSibling();(Q===null||Xc(Q))&&(j=!0,z=_.getElementByKey(Y.__key))}}if(j){const Y=_.getElementByKey(I.__key);return O===null&&(_._blockCursorElement=O=(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=ib(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(_._config)),E.style.caretColor="transparent",void(z===null?Y.appendChild(O):Y.insertBefore(O,z))}}O!==null&&Lf(O,_,E)})(e,r,a)}finally{p!==null&&p.observe(r,qm),st=f,it=c}}h!==null&&(function(_,E,S,O,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:O,prevEditorState:P,updateTags:S})}}})(e,h,v,g,i),$(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(Yl,void 0);const w=e._pendingDecorators;w!==null&&(e._decorators=w,e._pendingDecorators=null,xs("decorator",e,!0,w)),(function(_,E,S){const O=Xm(E),P=Xm(S);O!==P&&xs("textcontent",_,!0,P)})(e,t||i,n),xs("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 O=0;O<E.length;O++)E[O]()}finally{_._updating=S}}})(e,b),(function(_){const E=_._updates;if(E.length!==0){const S=E.shift();if(S){const[O,P]=S;Jl(_,O,P)}}})(e)}function xs(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 Gm(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 l;s!==void 0&&(l=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&U(191),a._flushSync=!0),l&&e._deferred.push(l),ex(e,s.tag)),a==null?Jl(e,i,s):i()}}return r}function Jl(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,ex(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let l=e._pendingEditorState,c=!1;(l===null||l._readOnly)&&(l=e._pendingEditorState=nx(l||a),c=!0),l._flushSync=s;const u=it,f=Ft,d=st,p=e._updating;it=l,Ft=!1,e._updating=!0,st=e;const h=e._headless||e.getRootElement()===null;Wd(null);try{c&&(h?a._selection!==null&&(l._selection=a._selection.clone()):l._selection=(function(v,b){const A=v.getEditorState()._selection,w=en(Xt(v));return $(A)||A==null?jd(A,w,v,b):A.clone()})(e,n&&n.event||null));const m=e._compositionKey;t(),i=Gm(e,i),(function(v,b){const A=b.getEditorState()._selection,w=v._selection;if($(w)){const _=w.anchor,E=w.focus;let S;if(_.type==="text"&&(S=_.getNode(),S.selectionTransform(A,w)),E.type==="text"){const O=E.getNode();S!==O&&O.selectionTransform(A,w)}}})(l,e),e._dirtyType!==0&&(i?(function(v,b){const A=b._dirtyLeaves,w=v._nodeMap;for(const _ of A){const E=w.get(_);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&Sm(E)}})(l,e):(function(v,b){const A=b._dirtyLeaves,w=b._dirtyElements,_=v._nodeMap,E=Er(),S=new Map;let O=A,P=O.size,I=w,W=I.size;for(;P>0||W>0;){if(P>0){b._dirtyLeaves=new Set;for(const j of O){const z=_.get(j);X(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&Sm(z),z!==void 0&&Ym(z,E)&&Vm(b,z,S),A.add(j)}if(O=b._dirtyLeaves,P=O.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(w.set(z,Y),!Y)continue;const Q=_.get(z);Q!==void 0&&Ym(Q,E)&&Vm(b,Q,S)}O=b._dirtyLeaves,P=O.size,I=b._dirtyElements,W=I.size,Wa++}b._dirtyLeaves=A,b._dirtyElements=w})(l,e),Gm(e),(function(v,b,A,w){const _=v._nodeMap,E=b._nodeMap,S=[];for(const[O]of w){const P=E.get(O);P!==void 0&&(P.isAttached()||(R(P)&&ab(P,O,_,E,S,w),_.has(O)||w.delete(O),S.push(O)))}for(const O of S)E.delete(O);for(const O of A){const P=E.get(O);P===void 0||P.isAttached()||(_.has(O)||A.delete(O),E.delete(O))}})(a,l,e._dirtyLeaves,e._dirtyElements)),m!==e._compositionKey&&(l._flushSync=!0);const y=l._selection;if($(y)){const v=l._nodeMap,b=y.anchor.key,A=y.focus.key;v.get(b)!==void 0&&v.get(A)!==void 0||U(19)}else ot(y)&&y._nodes.size===0&&(l._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 Yn(e)}finally{it=u,Ft=f,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})(l,e)?l._flushSync?(l._flushSync=!1,Yn(e)):c&&$T(()=>{Yn(e)}):(l._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Sn(e,t,n){st===e&&n===void 0?t():Jl(e,t,n)}class ws{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 ws(this.element,t,this.after)}withAfter(t){return new ws(this.element,this.before,t)}withElement(t){return this.element===t?this:new ws(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||Hi||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 l=this.getFirstChildOffset();return[t,Math.min(l+t.getChildrenSize(),Math.max(l,o))]}const i=Zm(n,r);i.push(o);const s=Zm(n,this.element);let a=t.getIndexWithinParent();for(let l=0;l<s.length;l++){const c=i[l],u=s[l];if(c===void 0||c<u)break;if(c>u){a+=1;break}}return[t.getParentOrThrow(),a]}}function Zm(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 Pn 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 $3[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+=Rr)}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=vm[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=No[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return gl(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){yt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const c=this.getFirstChild();if(X(c)||R(c))return c.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const c=this.getLastChild();if(X(c)||R(c))return c.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const l=this.__key;return $(o)?(o.anchor.set(l,i,"element"),o.focus.set(l,s,"element"),o.dirty=!0,o):Vb(l,i,l,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!==""?vm[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){pl(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,l=[],c=[],u=this.getChildAtIndex(n+r);let f=null,d=i-r+o.length;if(n!==0)if(n===i)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(r>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<r;g++){h===null&&U(100);const m=h.getNextSibling(),y=h.__key;wo(h.getWritable()),c.push(y),h=m}}let p=f;for(const h of o){p!==null&&h.is(p)&&(f=p=p.getPreviousSibling());const g=h.getWritable();g.__parent===a&&d--,wo(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,l.push(m),p=h}if(n+r===i)p!==null&&(p.getWritable().__next=null,s.__last=p.__key);else if(u!==null){const h=u.getWritable();if(p!==null){const g=p.getWritable();h.__prev=p.__key,g.__next=u.__key}else h.__prev=null}if(s.__size=d,c.length){const h=Z();if($(h)){const g=new Set(c),m=new Set(l),{anchor:y,focus:v}=h;Jm(y,g,m)&&ml(y,y.getNode(),this,f,u),Jm(v,g,m)&&ml(v,v.getNode(),this,f,u),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new ws(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(pt(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 Pn}function Jm(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 tx extends ln{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof tx}class Qi extends Pn{constructor(){super("root");D(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Qi}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 Qi}function nx(e){return new ra(new Map(e._nodeMap))}function $d(){return new ra(new Map([["root",new Qi]]))}function rx(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=rx(o[i]);r.push(s)}}return t}function RT(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 Qm(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 Qm(null,this,()=>({root:rx(We())}))}}class Ud extends Pn{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Gi extends Pn{static getType(){return"paragraph"}static clone(t){return new Gi(t.__key)}createDOM(t){const n=document.createElement("p"),r=yi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:DT,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(pt(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 DT(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),ZT(e,t)),{node:t}}function Tt(){return Wr(new Gi)}function Bd(e){return e instanceof Gi}const Ae=0,Qn=1,FT=3,ox=4;function ix(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 jT(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=nc(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 sx(e){const t=e||{},n=IT(),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:gx()),l=t.editorState,c=[Qi,Ur,qi,Vi,Gi,Ud,...t.nodes||[]],{onError:u,html:f}=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<c.length;g++){let m=c[g],y=null,v=null;if(typeof m!="function"){const w=m;m=w.replace,y=w.with,v=w.withKlass||null}nc(m);const b=m.getType(),A=jT(m);p.set(b,{exportDOM:f&&f.export?f.export.get(m):void 0,klass:m,replace:y,replaceWithKlass:v,sharedNodeState:V3(c[g]),transforms:A})}}const h=new Io(s,o,p,{disableEvents:i,namespace:a,theme:r},u||console.error,(function(g,m){const y=new Map,v=new Set,b=A=>{Object.keys(A).forEach(w=>{let _=y.get(w);_===void 0&&(_=[],y.set(w,_)),_.push(A[w])})};return g.forEach(A=>{const w=A.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const _=w.call(A.klass);_!==null&&b(_)}),m&&b(m),y})(p,f?f.import:void 0),d,e);return l!==void 0&&(h._pendingEditorState=l,h._dirtyType=2),(function(g){g.registerCommand(yb,fT,Ae),g.registerCommand(vb,dT,Ae),g.registerCommand(bb,pT,Ae),g.registerCommand(xb,hT,Ae),g.registerCommand(wb,mT,Ae)})(h),h}class Io{constructor(t,n,r,o,i,s,a,l){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=l,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=gx(),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=sg(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 l=sg(s.getEditorState()),c=[];for(const u of a){const f=l.get(u);f&&c.push(f)}c.length!==0&&s.update(()=>{for(const u of c)for(const f of u.keys()){const d=Xe(f);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=yi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,ix(this,n,t,o),n!==null&&(this._config.disableEvents||gT(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,ub(this),this._updateTags.add(vo),Yn(this),this._config.disableEvents||(function(a,l){const c=a.ownerDocument;Af.set(a,c);const u=fl.get(c)??0;u<1&&c.addEventListener("selectionchange",$b),fl.set(c,u+1),a.__lexicalEditor=l;const f=zb(a);for(let d=0;d<wf.length;d++){const[p,h]=wf[d],g=typeof h=="function"?m=>{Im(m)||(Mm(m),(l.isEditable()||p==="click")&&h(m,l))}:m=>{if(Im(m))return;Mm(m);const y=l.isEditable();switch(p){case"cut":return y&&ie(l,Dd,m);case"copy":return ie(l,Gl,m);case"paste":return y&&ie(l,Ql,m);case"dragstart":return y&&ie(l,Pb,m);case"dragover":return y&&ie(l,Mb,m);case"dragend":return y&&ie(l,iT,m);case"focus":return y&&ie(l,lT,m);case"blur":return y&&ie(l,cT,m);case"drop":return y&&ie(l,Ob,m)}};a.addEventListener(p,g),f.push(()=>{a.removeEventListener(p,g)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(vo),Yn(this);xs("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=nx(t),r._selection=t._selection?t._selection.clone():null),cb(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Yn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Yn(this)}parseEditorState(t,n){return(function(r,o,i){const s=$d(),a=it,l=Ft,c=st,u=o._dirtyElements,f=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=u,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=p,it=a,Ft=l,st=c}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Yn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):Jl(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Sn(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),KT("focus"),HT(()=>{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,xs("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}D(Io,"version");Io.version="0.39.0+prod.esm";let Pf=null;function Wd(e){Pf=e}let zT=1;function ax(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 $T=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function lx(e){return Te(Di(e))}function Hd(e){const t=document.activeElement;if(!pt(t))return!1;const n=t.nodeName;return Te(Di(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&Xl(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)&&cx(t)===e}catch{return!1}}function qd(e){return e instanceof Io}function cx(e){let t=e;for(;t!=null;){const n=Xl(t);if(qd(n))return n;t=ia(t)}return null}function Xl(e){return e?e.__lexicalEditor:null}function xo(e){return Kb(e)||e.isToken()}function Bn(e){return xo(e)||e.isSegmented()}function lr(e){return Zi(e)&&e.nodeType===3}function ux(e){return Zi(e)&&e.nodeType===9}function Ri(e){let t=e;for(;t!=null;){if(lr(t))return t;t=t.firstChild}return null}function gl(e,t,n){const r=No[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 fx(e){return X(e)||bo(e)||Te(e)}function UT(e,t){const n=(function(){const s=Pf;return Pf=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);yt(),Jb();const r=Re(),o=Br(),i=""+zT++;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 wo(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,l=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),l!==null&&(l.__next=s),c!==null&&(c.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function yl(e){Jb(),pl(e)&&U(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=Br(),o=Re(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(l,c,u){let f=l;for(;f!==null;){if(u.has(f))return;const d=c.get(f);if(d===void 0)break;u.set(f,!1),f=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function ft(e){yt();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 Er(){return na()?null:Re()._compositionKey}function Xe(e,t){const n=(t||Br())._nodeMap.get(e);return n===void 0?null:n}function dx(e,t){const n=ec(e,Re());return n!==void 0?Xe(n,t):null}function ec(e,t){return e[`__lexicalKey_${t._key}`]}function Di(e,t){let n=e;for(;n!=null;){const r=dx(n,t);if(r!==null)return r;n=ia(n)}return null}function px(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Xm(e){return e.read(()=>We().getTextContent())}function We(){return hx(Br())}function hx(e){return e._nodeMap.get("root")}function Pt(e){yt();const t=Br();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=ec(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 mx(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 gx(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function yx(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=yx(o);const l=Di(o);if(a!==null&&X(l)){if(a===ql&&n){const c=n.length;a=n,i=c,s=c}a!==null&&Qd(l,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]===ql&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(a===""){if(ft(null),Xs||Hi||ea)i.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),u=Yi(),f=i.getTextContentSize(),d=Er(),p=i.getKey();if(i.isToken()||d!==null&&p===d&&!s||$(u)&&(c!==null&&!c.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===e.__key&&u.anchor.offset===0&&!i.canInsertTextBefore()&&!s||u.focus.key===e.__key&&u.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=Z();if(!$(h)||n===null||r===null)return void eg(i,a,h);if(h.setTextNodeRange(i,n,i,r),i.isSegmented()){const g=rt(i.getTextContent());i.replace(g),i=g}eg(i,a,h)}}}function eg(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=Or(e,i.offset,"clamp"))}}}function Sa(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function BT(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 BT(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const $n={ctrlKey:!sn,metaKey:sn},tg={altKey:sn,ctrlKey:!sn};function ng(e){return e.key==="Backspace"}function rg(e){return Ie(e,"a",$n)}function WT(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"),Li(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(Li(n)),n}}function yi(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=ib(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 l=a.klass;let c=e.get(l);c===void 0&&(c=new Map,e.set(l,c));const u=c.get(s),f=u==="destroyed"&&o==="created";(u===void 0||f)&&c.set(s,f?"updated":o)}function og(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 Mf(e,t){const n=e.offset;if(e.type==="element")return og(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?og(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function vx(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 l=0;l<s.length;l++){const c=s[l],u=c._commands.get(o);if(u!==void 0){const f=u[a];if(f!==void 0){const d=Array.from(f),p=d.length;let h=!1;if(Sn(c,()=>{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 tc(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function Lo(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 Rf(t)?t.host:t}function bx(e){return ux(e)?e:pt(e)?e.ownerDocument:null}function KT(e){yt(),Re()._updateTags.add(e)}function HT(e){yt(),Re()._deferred.push(e)}function If(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=bx(e);return t?t.defaultView:null}function Xt(e){const t=e._window;return t===null&&U(78),t}function qT(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 Wr(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 Jc(e,t){!Ye(e.getParent())||R(t)||Te(t)||U(99)}function VT(e){const t=Xe(e);return t===null&&U(63,e),t}function Xc(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function Lf(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 YT(e){const t=Zd(e);return t?t.getSelection():null}function xx(e){return pt(e)&&e.tagName==="A"}function pt(e){return Zi(e)&&e.nodeType===1}function Zi(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function Rf(e){return Zi(e)&&e.nodeType===11}function Df(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 vl(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 mr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||bo(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function Jd(){return Re()}const ig=new WeakMap,QT=new Map;function sg(e){if(!e._readOnly&&e.isEmpty())return QT;e._readOnly||U(192);let t=ig.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),ig.set(e,t)),t}function wx(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function GT(e){return(t=wx(e))[Ub]=!0,t;var t}function ZT(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function JT(e){return e.__lexicalUnmanaged===!0}function cs(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==ln[t]}function nc(e){const t=bm in e.prototype?e.prototype[bm]():void 0,n=(function(s){if(!(s===ln||s.prototype instanceof ln)){let a="<unknown>",l="<unknown>";try{a=s.getType()}catch{}try{Io.version&&(l=JSON.parse(Io.version))}catch{}U(290,s.name,a,l)}return s===tx||s===Pn||s===ln})(e),r=!n&&cs(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&&(cs(e,"getType")||(e.getType=()=>i),cs(e,"clone")||(e.clone=s=>(Wd(s),new e)),cs(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!cs(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},XT={next:"previous",previous:"next"};class Xd{constructor(t){D(this,"origin");this.origin=t}[Symbol.iterator](){return Ax({hasNext:Fi,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return bt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return bt(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 l=i.getAdjacentCaret();l!==null&&a.size<t;l=l.getAdjacentCaret()){const c=l.origin.getWritable();a.set(c.getKey(),c)}for(const l of o){if(a.size>0){const c=i.getNodeAtCaret();if(c){if(a.delete(c.getKey()),a.delete(l.getKey()),!(c.is(l)||i.origin.is(l))){const u=l.getParent();u&&u.is(s)&&l.remove(),c.replace(l)}}else c===null&&U(263,Array.from(a).join(" "))}else i.insert(l);i=bt(l,this.direction)}for(const l of a.values())l.remove();return this}}class Fs extends Xd{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 bt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Ji(this.direction);return bt(this.getNodeAtCaret(),n)||un(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Fs&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const e6={root:Ye,shadowRoot:jt};function Ji(e){return XT[e]}function ep(e,t="root"){return e6[t](e)?null:e}class Ro extends Xd{constructor(){super(...arguments);D(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:bt(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 bt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Ji(this.direction);return bt(this.getNodeAtCaret(),n)||un(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Ro&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Ro||n instanceof Do)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Do 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:Fo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return bt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Fo(this.origin,Ji(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Do&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Ro||n instanceof Do)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return bt(this.origin,this.direction)}}function Nr(e){return e instanceof Do}function Fi(e){return e instanceof Ro}function kn(e){return e instanceof Fs}const t6={next:class extends Do{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Do{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},n6={next:class extends Ro{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Ro{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},r6={next:class extends Fs{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 Fs{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 bt(e,t){return e?new n6[t](e):null}function Fo(e,t,n){return e?new t6[t](e,Or(e,n)):null}function Or(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&rb(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function ag(e,t){return new i6(e,t)}function un(e,t){return R(e)?new r6[t](e):null}function o6(e){return e&&e.getChildCaret()||e}function tp(e){return e&&o6(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 Nr(i)?(function(s,a){const{direction:l,origin:c}=s,u=Or(c,a==="focus"?Ji(l):l);return ag(s,u-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[ag(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Nr(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Nr(r),i=s=>s.isSameNodeCaret(r)?null:tp(s)||s.getParentCaret(t);return Ax({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 i6{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 Fo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function rp(e){return Dr(e,bt(We(),e.direction))}function s6(e){return Dr(e,e)}function Dr(e,t){return e.direction!==t.direction&&U(265),new np(e,t,e.direction)}function Ax(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 Cx(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 _x(n)}}function _x(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 lg(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]=lg(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=lg(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 tr(e,t){const{type:n,key:r,offset:o}=e,i=VT(e.key);return n==="text"?(X(i)||U(266,i.getType(),r),Fo(i,t,o)):(R(i)||U(267,i.getType(),r),c6(i,e.offset,t))}function jo(e,t){const{origin:n,direction:r}=t,o=r==="next";Nr(t)?e.set(n.getKey(),t.offset,"text"):Fi(t)?X(n)?e.set(n.getKey(),Or(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(kn(t)&&R(n)||U(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function a6(e){const t=Z(),n=$(t)?t:Yb();return Ha(n,e),Pt(n),n}function Ha(e,t){jo(e.anchor,t.anchor),jo(e.focus,t.focus)}function cg(e){const{anchor:t,focus:n}=e,r=tr(t,"next"),o=tr(n,"next"),i=Cx(r,o)<=0?"next":"previous";return Dr(ji(r,i),ji(o,i))}function op(e){const{direction:t,origin:n}=e,r=bt(n,Ji(t)).getNodeAtCaret();return r?bt(r,t):un(n.getParentOrThrow(),t)}function ug(e,t="root"){const n=[e];for(let r=kn(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(op(r));return n}function eu(e){return!!e&&e.origin.isAttached()}function l6(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Sx(e,r),s=ug(i.anchor,n),a=ug(i.focus.getFlipped(),n),l=new Set,c=[];for(const h of i.iterNodeCarets(n))if(kn(h))l.add(h.origin.getKey());else if(Fi(h)){const{origin:g}=h;R(g)&&!l.has(g.getKey())||c.push(g)}for(const h of c)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,m=g.getTextContentSize(),y=op(bt(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 A=h.caret.origin;if(v==="segmented"){const w=b.origin,_=rt(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());y.replaceOrInsert(_),b=Fo(_,r,b.offset)}A.is(s[0].origin)&&(s[0]=b),A.is(a[0].origin)&&(a[0]=b.getFlipped())}}let u,f;for(const h of s)if(eu(h)){u=Yt(h);break}for(const h of a)if(eu(h)){f=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 A=v.getParents().reverse();A.push(v);const w=Math.min(b.length,A.length);let _;for(_=0;_<w&&b[_]===A[_];_++);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,mr),O=S&&E(A,P=>m.has(P.getKey())&&mr(P));return S&&O?[S,O]:null})(u,f,l);if(d){const[h,g]=d;un(h,"previous").splice(0,g.getChildren()),g.remove()}const p=[u,f,...s,...a].find(eu);if(p)return s6(ji(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(;kn(i);){const s=tp(i);if(!kn(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Nr(t)?t:Fo(t.origin,n,n);const r=t.getAdjacentCaret();return Fi(r)&&X(r.origin)?Fo(r.origin,n,Ji(n)):t}function Ex(e){return Nr(e)&&e.offset!==Or(e.origin,e.direction)}function ji(e,t){return e.direction===t?e:e.getFlipped()}function Sx(e,t){return e.direction===t?e:Dr(ji(e.focus,t),ji(e.anchor,t))}function c6(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 ji(r,n)}function u6(...e){return e}function f6(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const kx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,d6=kx?T.useLayoutEffect:T.useEffect,Ta={tag:vo};function p6({initialConfig:e,children:t}){const n=T.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:l}=e,c=S3(null,r),u=sx({editable:e.editable,html:l,namespace:o,nodes:i,onError:f=>s(f,u),theme:r});return(function(f,d){if(d!==null){if(d===void 0)f.update(()=>{const p=We();if(p.isEmpty()){const h=Tt();p.append(h);const g=kx?document.activeElement:null;(Z()!==null||g!==null&&g===f.getRootElement())&&h.select()}},Ta);else if(d!==null)switch(typeof d){case"string":{const p=f.parseEditorState(d);f.setEditorState(p,Ta);break}case"object":f.setEditorState(d,Ta);break;case"function":f.update(()=>{We().isEmpty()&&d(f)},Ta)}}})(u,a),[u,c]},[]);return d6(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),x.jsx(nb.Provider,{value:n,children:t})}const h6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function m6(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function g6(){return(function(e){const[t]=wt(),n=T.useMemo(()=>e(t),[t,e]),[r,o]=T.useState(()=>n.initialValueFn()),i=T.useRef(r);return h6(()=>{const{initialValueFn:s,subscribe:a}=n,l=s();return i.current!==l&&(i.current=l,o(l)),a(c=>{i.current=c,o(c)})},[n,e]),r})(m6)}function y6(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 Ff=new Map;function Tx(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 fg(e){let t=Ff.get(e);return t===void 0&&(t=Tx(e),Ff.set(e,t)),t}function Nx(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 Ox(e){return Nx(Ye(e)?e:e.getParentOrThrow())}function dg(e){const t=Ox(e);return t!==null&&t.direction==="rtl"}function Px(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Bn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),l=i.getNode(),c=t.is(a),u=t.is(l);if(c||u){const[f,d]=Nf(e),p=a.is(l),h=t.is(s?l:a),g=t.is(s?a:l);let m,y=0;p?(y=f>d?d:f,m=f>d?f:d):h?(y=s?d:f,m=void 0):g&&(y=0,m=s?f:d);const v=t.__text.slice(y,m);v!==t.__text&&(n==="clone"&&(t=GT(t)),t.__text=v)}}return t}function pg(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||y6(177),e.offset===t.getChildrenSize()}function v6(e){const t=e.getStyle(),n=Tx(t);Ff.set(t,n)}function Mx(e){const t=Ix(e);return t!==null&&t.writingMode==="vertical-rl"}function Ix(e){const t=e.anchor.getNode();return R(t)?Nx(t):Ox(t)}function hg(e,t){let n=Mx(e)?!t:t;Lx(e)&&(n=!n);const r=tr(e.focus,n?"previous":"next");if(Ex(r))return!1;for(const o of rp(r)){if(kn(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function b6(e,t,n,r){e.modify(t?"extend":"move",n,r)}function Lx(e){const t=Ix(e);return t!==null&&t.direction==="rtl"}function mg(e,t,n){const r=Lx(e);let o;o=Mx(e)||r?!n:n,b6(e,t,o,"character")}function x6(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 Rx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,w6=Rx&&"documentMode"in document?document.documentMode:null;!(!Rx||!("InputEvent"in window)||w6)&&"getTargetRanges"in new window.InputEvent("input");function Dx(...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 fn(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ip(e,...t){const n=Dx(...t);n.length>0&&e.classList.add(...n)}function Fx(e,...t){const n=Dx(...t);n.length>0&&e.classList.remove(...n)}function A6(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function C6(e){const t=at(e,n=>R(n)&&!n.isInline());return R(t)||x6(4,e.__key),t}function Sr(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const _6=Symbol.for("preact-signals");function rc(){if(Pr>1)return void Pr--;let e,t=!1;for(;As!==void 0;){let n=As;for(As=void 0,jf++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&jx(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(jf=0,Pr--,t)throw e}function E6(e){if(Pr>0)return e();Pr++;try{return e()}finally{rc()}}let Pe,As;function gg(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Pr=0,jf=0,qa=0;function yg(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 S6(e,t){return new _t(e,t)}function jx(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 vg(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 zx(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 Xo(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 $x(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Pr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,sp(e),r}finally{Pe=n,rc()}}}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,$x(e)}function k6(e){if(Pe!==this)throw new Error("Out-of-order effect");zx(this),Pe=e,this.f&=-2,8&this.f&&sp(this),rc()}function ii(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 js(e,t){const n=new ii(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Ux(e,t={}){const n={};for(const r in e){const o=t[r],i=S6(o===void 0?e[r]:o);n[r]=i}return n}_t.prototype.brand=_6,_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:gg(()=>{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&&gg(()=>{var r;(r=this.Z)==null||r.call(this)}))}},_t.prototype.subscribe=function(e){return js(()=>{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=yg(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(jf>100)throw new Error("Cycle detected");this.v=e,this.i++,qa++,Pr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{rc()}}}}),Xo.prototype=new _t,Xo.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&&!jx(this))return this.f&=-2,!0;const e=Pe;try{vg(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,zx(this),this.f&=-2,!0},Xo.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)},Xo.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)}},Xo.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(Xo.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=yg(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ii.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()}},ii.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,$x(this),vg(this),Pr++;const e=Pe;return Pe=this,k6.bind(this,e)},ii.prototype.N=function(){2&this.f||(this.f|=2,this.o=As,As=this)},ii.prototype.d=function(){this.f|=8,1&this.f||sp(this)},ii.prototype.dispose=function(){this.d()};function T6(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 Bx(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]=Bx(n[o],r[o]);return e}return t}const ap=0,zf=1,Wx=2,tu=3,Na=4,ei=5,nu=6,us=7;function ru(e){return e.id===ap}function Kx(e){return e.id===Wx}function N6(e){return(function(t){return t.id===zf})(e)||Fe(305,String(e.id),String(zf)),Object.assign(e,{id:Wx})}const O6=new Set;class P6{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):f6;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;Kx(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,l,c){return Object.assign(a,{config:l,id:tu,registerState:c})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,l,c){return Object.assign(a,{id:Na,initResult:l,registerState:c})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Na&&Fe(307,String(n.id),String(ei)),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:ei,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==ei&&Fe(308,String(r.id),String(ei));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:nu})})(r),()=>{const i=this.state;i.id!==us&&Fe(309,String(r.id),String(us)),this.state=(function(s){return Object.assign(s,{id:ei})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==nu&&Fe(310,String(n.id),String(nu)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:us})})(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>=tu})(t)||Fe(314,String(t.id),String(tu)),{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>=us})(t)||Fe(316,String(t.id),String(us)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||O6}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>=ei})(t)||Fe(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const bg={tag:vo};function M6(){const e=We();e.isEmpty()&&e.append(Tt())}const I6={config:{setOptions:bg,updateOptions:bg},init:({$initialEditorState:e=M6})=>({$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(RT(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:[Qi,Ur,qi,Vi,Gi]},xg=Symbol.for("@lexical/extension/LexicalBuilder");function wg(){}function L6(e){throw e}function Oa(e){return Array.isArray(e)?e:[e]}const ou="0.39.0+prod.esm";class vi{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=ou,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Oa(I6)];for(const r of t)n.push(Oa(r));return new vi(n)}static maybeFromEditor(t){const n=t[xg];return n&&(n.PACKAGE_VERSION!==ou&&Fe(292,n.PACKAGE_VERSION,ou),n instanceof vi||Fe(293)),n}static fromEditor(t){const n=vi.maybeFromEditor(t);return n===void 0&&Fe(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(sx({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[xg]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=wg;function n(){try{t()}finally{t=wg}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=fn(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 P6(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(Kx(i))return;const s=r.extension.name;var a;ru(i)||Fe(300,s,o||"[unknown]"),ru(a=i)||Fe(304,String(a.id),String(ap)),i=Object.assign(a,{id:zf}),r.state=i;const l=this.outgoingConfigEdges.get(s);if(l)for(const c of l.keys()){const u=this.extensionNameMap.get(c);u&&n(u,s)}i=N6(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())ru(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 fn(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const u of a){const{extension:f}=u;if(f.onError!==void 0&&(t.onError=f.onError),f.disableEvents!==void 0&&(t.disableEvents=f.disableEvents),f.parentEditor!==void 0&&(t.parentEditor=f.parentEditor),f.editable!==void 0&&(t.editable=f.editable),f.namespace!==void 0&&(t.namespace=f.namespace),f.$initialEditorState!==void 0&&(t.$initialEditorState=f.$initialEditorState),f.nodes)for(const d of T6(f)){if(typeof d!="function"){const p=r.get(d.replace);p&&Fe(302,f.name,d.replace.name,p.extension.name),r.set(d.replace,u)}n.add(d)}if(f.html){if(f.html.export)for(const[d,p]of f.html.export.entries())o.set(d,p);f.html.import&&Object.assign(i,f.html.import)}f.theme&&Bx(s,f.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const l=Object.keys(i).length>0,c=o.size>0;(l||c)&&(t.html={},l&&(t.html.import=i),c&&(t.html.export=o));for(const u of a)u.init(t);return t.onError||(t.onError=L6),t}}function R6(e,t){const n=vi.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const D6={name:"@lexical/react/ReactProvider"};function F6(){return We().getTextContent()}function j6(e,t=!0){if(e)return!1;let n=F6();return t&&(n=n.trim()),n===""}function z6(e){if(!j6(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 l=i[r];if(!X(l))return!1}}}return!0}function Hx(e){return()=>z6(e)}function $6(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 l=a.args;if(l){const[c,u,f,d,p]=l;e.update(()=>{const h=Z();if($(h)){const g=h.anchor;let m=g.getNode(),y=0,v=0;if(X(m)&&c>=0&&u>=0&&(y=c,v=c+u,h.setTextNodeRange(m,y,m,v)),y===v&&f===""||(h.insertRawText(f),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 qx(e,t){const n=ux(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!Qx.has(i.nodeName)){const s=Gx(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Ud&&s.insertAfter(Mo());for(const s of i){const a=s.getChildren();for(const l of a)s.insertBefore(l);s.remove()}})(o),r}function Vx(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++)Yx(e,r[o],n,t);return n.innerHTML}function Yx(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=Px(r,t,"clone"));const a=R(s)?s.getChildren():[],l=Kd(e,s.getType());let c;c=l&&l.exportDOM!==void 0?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:f}=c;if(!u)return!1;const d=document.createDocumentFragment();for(let p=0;p<a.length;p++){const h=a[p],g=Yx(e,h,d,r);!o&&R(t)&&g&&t.extractWithChild(h,r,"html")&&(o=!0)}if(o&&!i){if((pt(u)||Rf(u))&&u.append(d),n.append(u),f){const p=f.call(s,u);p&&(Rf(u)?u.replaceChildren(p):u.replaceWith(p))}}else n.append(d);return o}const Qx=new Set(["STYLE","SCRIPT"]);function Gx(e,t,n,r,o=new Map,i){let s=[];if(Qx.has(e.nodeName))return s;let a=null;const l=(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 A=b(h);A!==null&&(v===null||(v.priority||0)<=(A.priority||0))&&(v=A)}return v!==null?v.conversion:null})(e,t),c=l?l(e):null;let u=null;if(c!==null){u=c.after;const h=c.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])}c.forChild!=null&&o.set(e.nodeName,c.forChild)}const f=e.childNodes;let d=[];const p=(a==null||!jt(a))&&(a!=null&&Of(a)||r);for(let h=0;h<f.length;h++)d.push(...Gx(f[h],t,n,p,new Map(o),a));return u!=null&&(d=u(d)),vl(e)&&(d=U6(e,d,p?()=>{const h=new Ud;return n.push(h),h}:Tt)),a==null?d.length>0?s=s.concat(d):vl(e)&&(function(h){return h.nextSibling==null||h.previousSibling==null?!1:Df(h.nextSibling)&&Df(h.previousSibling)})(e)&&(s=s.concat(Mo())):R(a)&&a.append(...d),s}function U6(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(Of(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&Of(t[s+1])){const l=n();l.setFormat(r),l.append(...i),o.push(l),i=[]}}return o}function bl(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 B6(e,t=Z()){return t==null&&bl(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?"":Vx(e,t)}function W6(e,t=Z()){return t==null&&bl(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(K6(e,t))}function Ag(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 Cg(n,H6(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(l){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:c=>c}).createHTML(l):l})(o),"text/html");return Cg(n,qx(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 l=0;l<a.length;l++){const c=Z();if($(c)){const u=a[l];u===`
|
|
604
|
+
`||u===`\r
|
|
605
|
+
`?c.insertParagraph():u===" "?c.insertNodes([ta()]):c.insertText(u)}}}else t.insertRawText(s)}function Cg(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=tr(o,"previous");if(s)if(Nr(s))i=s.origin;else{const a=Dr(s,un(We(),"next").getFlipped());for(const l of a){if(X(l.origin)){i=l.origin;break}if(R(l.origin)&&!l.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),l=i.getStyle();r.format===a&&r.style===l||(r.format=a,r.style=l,r.dirty=!0)}}})(n))}function Zx(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=Px(t,s,"clone"));const a=R(s)?s.getChildren():[],l=(function(c){const u=c.exportJSON(),f=c.constructor;if(u.type!==f.getType()&&bl(58,f.name),R(c)){const d=u.children;Array.isArray(d)||bl(59,f.name)}return u})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let c=0;c<a.length;c++){const u=a[c],f=Zx(e,t,u,l.children);!o&&R(n)&&f&&n.extractWithChild(u,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let c=0;c<l.children.length;c++){const u=l.children[c];r.push(u)}return o}function K6(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)Zx(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function H6(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=LT(r);X(o)&&v6(o),t.push(o)}return t}let ti=null;async function _g(e,t,n){if(ti!==null)return!1;if(t!==null)return new Promise((c,u)=>{e.update(()=>{c(Eg(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 l=new Range;return l.setStart(a,0),l.setEnd(a,1),s.removeAllRanges(),s.addRange(l),new Promise((c,u)=>{const f=e.registerCommand(Gl,d=>(Sr(d,ClipboardEvent)&&(f(),ti!==null&&(o.clearTimeout(ti),ti=null),c(Eg(e,d,n))),!0),ox);ti=o.setTimeout(()=>{f(),ti=null,c(!1)},50),i.execCommand("copy"),a.remove()})}function Eg(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=q6(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(V6(r,n),!0)}const Jx=[["text/html",B6],["application/x-lexical-editor",W6]];function q6(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Jd();for(const[r,o]of Jx){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function V6(e,t){for(const[n]of Jx)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function Sg(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 Bo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Y6=Bo&&"documentMode"in document?document.documentMode:null,Q6=Bo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),G6=!(!Bo||!("InputEvent"in window)||Y6)&&"getTargetRanges"in new window.InputEvent("input"),Z6=Bo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),kg=Bo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,J6=Bo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),X6=Bo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Q6&&!J6,Tg=pe("DRAG_DROP_PASTE_FILE");function Pa(e){let t=null;if(Sr(e,DragEvent)?t=e.dataTransfer:Sr(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 Ng(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,c=>R(c)&&!c.isInline());if(a===null)continue;const l=a.getKey();a.canIndent()&&!n.has(l)&&(n.add(l),e(a))}return n.size>0}function Og(e){const t=Di(e);return Te(t)}function iu(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function eN(e){return fn(e.registerCommand(Md,t=>{const n=Z();return!!ot(n)&&(n.clear(),!0)},Ae),e.registerCommand(yo,t=>{const n=Z();return $(n)?(n.deleteCharacter(t),!0):!!ot(n)&&(n.deleteNodes(),!0)},Ae),e.registerCommand(Is,t=>{const n=Z();return!!$(n)&&(n.deleteWord(t),!0)},Ae),e.registerCommand(Ls,t=>{const n=Z();return!!$(n)&&(n.deleteLine(t),!0)},Ae),e.registerCommand(mi,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)Ag(r,n,e);else if($(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},Ae),e.registerCommand(bf,()=>{const t=Z();return!!$(t)&&(t.removeText(),!0)},Ae),e.registerCommand(Cn,t=>{const n=Z();return!!$(n)&&(n.formatText(t),!0)},Ae),e.registerCommand(oT,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(hi,t=>{const n=Z();return!!$(n)&&(n.insertLineBreak(t),!0)},Ae),e.registerCommand(Ms,()=>{const t=Z();return!!$(t)&&(t.insertParagraph(),!0)},Ae),e.registerCommand(nT,()=>(Zb([ta()]),!0),Ae),e.registerCommand(rT,()=>Ng(t=>{const n=t.getIndent();t.setIndent(n+1)}),Ae),e.registerCommand(Nm,()=>Ng(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),Ae),e.registerCommand(_b,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=Mf(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Eb,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=Mf(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Cb,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),dg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!$(n))return!1;if(hg(n,!0)){const r=t.shiftKey;return t.preventDefault(),mg(n,r,!0),!0}return!1},Ae),e.registerCommand(Ab,t=>{const n=Z();if(ot(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),dg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!$(n))return!1;const r=t.shiftKey;return!!hg(n,!1)&&(t.preventDefault(),mg(n,r,!1),!0)},Ae),e.registerCommand(kb,t=>{if(Og(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=C6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Nm,void 0);if(kg&&navigator.language==="ko-KR")return!1}else if(!ot(n))return!1;return t.preventDefault(),e.dispatchCommand(yo,!0)},Ae),e.registerCommand(Tb,t=>{if(Og(t.target))return!1;const n=Z();return!(!$(n)&&!ot(n))&&(t.preventDefault(),e.dispatchCommand(yo,!1))},Ae),e.registerCommand(Rs,t=>{const n=Z();if(!$(n))return!1;if(iu(n),t!==null){if((kg||Z6||X6)&&G6)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(hi,!1)}return e.dispatchCommand(Ms,void 0)},Ae),e.registerCommand(Rd,()=>{const t=Z();return!!$(t)&&(e.blur(),!0)},Ae),e.registerCommand(Ob,t=>{const[,n]=Pa(t);if(n.length>0){const o=Sg(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=Di(s);if(a!==null){const l=Yb();if(X(a))l.anchor.set(a.getKey(),i,"text"),l.focus.set(a.getKey(),i,"text");else{const u=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;l.anchor.set(u,f,"element"),l.focus.set(u,f,"element")}const c=Li(l);Pt(c)}e.dispatchCommand(Tg,n)}return t.preventDefault(),!0}const r=Z();return!!$(r)},Ae),e.registerCommand(Pb,t=>{const[n]=Pa(t),r=Z();return!(n&&!$(r))},Ae),e.registerCommand(Mb,t=>{const[n]=Pa(t),r=Z();if(n&&!$(r))return!1;const o=Sg(t.clientX,t.clientY);if(o!==null){const i=Di(o.node);Te(i)&&t.preventDefault()}return!0},Ae),e.registerCommand(xf,()=>(WT(),!0),Ae),e.registerCommand(Gl,t=>(_g(e,Sr(t,ClipboardEvent)?t:null),!0),Ae),e.registerCommand(Dd,t=>((async function(n,r){await _g(r,Sr(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(Ql,t=>{const[,n,r]=Pa(t);return n.length>0&&!r?(e.dispatchCommand(Tg,n),!0):Zi(t.target)&&Hd(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=Sr(o,InputEvent)||Sr(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Ag(a,s,i)},{tag:vT})})(t,e),!0)},Ae),e.registerCommand(Sb,t=>{const n=Z();return $(n)&&iu(n),!1},Ae),e.registerCommand(Nb,t=>{const n=Z();return $(n)&&iu(n),!1},Ae))}function tN(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 lp=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function nN({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=T.useState(()=>n.getDecorators());return lp(()=>n.registerDecoratorListener(s=>{Tn.flushSync(()=>{i(s)})}),[n]),T.useEffect(()=>{i(n.getDecorators())},[n]),T.useMemo(()=>{const s=[],a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l],u=x.jsx(r,{onError:d=>n._onError(d),children:x.jsx(T.Suspense,{fallback:null,children:o[c]})}),f=n.getElementByKey(c);f!==null&&s.push(Tn.createPortal(u,f,c))}return s},[r,o,n])})(e,t)}function rN({editor:e,ErrorBoundary:t}){return(function(n){const r=vi.maybeFromEditor(n);if(r&&r.hasExtensionByName(D6.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&tN(320,o);return!0}return!1})(e)?null:x.jsx(nN,{editor:e,ErrorBoundary:t})}function Pg(e){return e.getEditorState().read(Hx(e.isComposing()))}function oN({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=wt();return(function(o){lp(()=>fn(eN(o),$6(o)),[o])})(r),x.jsxs(x.Fragment,{children:[e,x.jsx(iN,{content:t}),x.jsx(rN,{editor:r,ErrorBoundary:n})]})}function iN({content:e}){const[t]=wt(),n=(function(o){const[i,s]=T.useState(()=>Pg(o));return lp(()=>{function a(){const l=Pg(o);s(l)}return a(),fn(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=g6();return n?typeof e=="function"?e(r):e:null}function sN(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 A=y._nodeMap,w=[];for(const _ of v){const E=A.get(_);E!==void 0&&w.push(E)}for(const[_,E]of b){if(!E)continue;const S=A.get(_);S===void 0||Ye(S)||w.push(S)}return w})(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 l=a[0],c=e._nodeMap.get(l.__key);if(!X(c)||!X(l)||c.__mode!==l.__mode)return 0;const u=c.__text,f=l.__text;if(u===f)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=f.length-u.length;return m===1&&g===h-1?2:m===-1&&g===h+1?3:m===-1&&g===h?4:0}function aN(e,t){let n=Date.now(),r=0;return(o,i,s,a,l,c)=>{const u=Date.now();if(c.has(Tf))return r=0,n=u,2;const f=sN(o,i,a,l,e.isComposing()),d=(()=>{const p=s===null||s.editor===e,h=c.has(yT);if(!h&&p&&c.has(vo))return 0;if(o===null)return 1;const g=i._selection;if(!(a.size>0||l.size>0))return g!==null?0:2;const m=typeof t=="number"?t:t.peek();return h===!1&&f!==0&&f===r&&u<n+m&&p||a.size===1&&(function(y,v,b){const A=v._nodeMap.get(y),w=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(A)||!X(w)||A.__parent!==w.__parent)&&JSON.stringify(v.read(()=>A.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=u,r=f,d}}function Mg(e){e.undoStack=[],e.redoStack=[],e.current=null}function Xx(e,t,n){const r=aN(e,n);return fn(e.registerCommand(Id,()=>((function(i,s){const a=s.redoStack,l=s.undoStack;if(l.length!==0){const c=s.current,u=l.pop();c!==null&&(a.push(c),i.dispatchCommand(Aa,!0)),l.length===0&&i.dispatchCommand(Ca,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:Tf})}})(e,t),!0),Ae),e.registerCommand(Ld,()=>((function(i,s){const a=s.redoStack,l=s.undoStack;if(a.length!==0){const c=s.current;c!==null&&(l.push(c),i.dispatchCommand(Ca,!0));const u=a.pop();a.length===0&&i.dispatchCommand(Aa,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:Tf})}})(e,t),!0),Ae),e.registerCommand(sT,()=>(Mg(t),!1),Ae),e.registerCommand(aT,()=>(Mg(t),e.dispatchCommand(Aa,!1),e.dispatchCommand(Ca,!1),!0),Ae),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:l,tags:c})=>{const u=t.current,f=t.redoStack,d=t.undoStack,p=u===null?null:u.editorState;if(u!==null&&i===p)return;const h=r(s,i,u,a,l,c);if(h===1)f.length!==0&&(t.redoStack=[],e.dispatchCommand(Aa,!1)),u!==null&&(d.push({...u}),e.dispatchCommand(Ca,!0));else if(h===2)return;t.current={editor:e,editorState:i}}))}function e1(){return{current:null,redoStack:[],undoStack:[]}}const su={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>Ux({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:e1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return js(()=>r.disabled.value?void 0:Xx(e,r.historyState.value,r.delay))}};u6(su,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function lN({delay:e,externalHistoryState:t}){const[n]=wt();return(function(r,o,i=1e3){const s=T.useMemo(()=>o||e1(),[o]);T.useEffect(()=>Xx(r,s,i),[i,r,s])})(n,t,e),null}const t1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function cN({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:l,ariaLabelledBy:c,ariaMultiline:u,ariaOwns:f,ariaRequired:d,autoCapitalize:p,className:h,id:g,role:m="textbox",spellCheck:y=!0,style:v,tabIndex:b,"data-testid":A,...w},_){const[E,S]=T.useState(e.isEditable()),O=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)}})(_,O),[O,_]);return t1(()=>(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":l,"aria-labelledby":c,"aria-multiline":u,"aria-owns":E?f:void 0,"aria-readonly":!E||void 0,"aria-required":d,autoCapitalize:p,className:h,contentEditable:E,"data-testid":A,id:g,ref:P,role:m,spellCheck:y,style:v,tabIndex:b,...w})}const uN=T.forwardRef(cN);function Ig(e){return e.getEditorState().read(Hx(e.isComposing()))}const fN=T.forwardRef(dN);function dN(e,t){const{placeholder:n,...r}=e,[o]=wt();return x.jsxs(x.Fragment,{children:[x.jsx(uN,{editor:o,...r,ref:t}),n!=null&&x.jsx(pN,{editor:o,content:n})]})}function pN({content:e,editor:t}){const n=(function(s){const[a,l]=T.useState(()=>Ig(s));return t1(()=>{function c(){const u=Ig(s);l(u)}return c(),fn(s.registerUpdateListener(()=>{c()}),s.registerEditableListener(()=>{c()}))},[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 hN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function mN({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=wt();return hN(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&i.size===0&&s.size===0||e&&l.has(vo)||a.isEmpty()||n(o,r,l)})},[r,e,t,n]),null}const gN=T.createContext(null),au={didCatch:!1,error:null};class yN extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=au}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(au))}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&&vN(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(au))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=T.createElement(r,l);else if(o!==void 0)a=o;else throw s}return T.createElement(gN.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function vN(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function bN({children:e,onError:t}){return x.jsx(yN,{fallback:x.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const xN={paragraph:"m-0",list:{ol:"list-decimal pl-4",ul:"list-disc pl-4"},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"font-mono"},link:"text-blue-600 hover:text-blue-600 underline cursor-pointer"};function kr(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 $f(e){let t=1,n=e.getParent();for(;n!=null;){if(ke(n)){const r=n.getParent();if(xe(r)){t++,n=r.getParent();continue}kr(40)}return t}return t}function Uf(e){let t=e.getParent();xe(t)||kr(40);let n=t;for(;n!==null;)n=n.getParent(),xe(n)&&(t=n);return t}function n1(e){let t=[];const n=e.getChildren().filter(ke);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();xe(i)?t=t.concat(n1(i)):t.push(o)}return t}function xn(e){return ke(e)&&xe(e.getFirstChild())}function Lg(e){return Zt().append(e)}function r1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Rg(e){const t=Z();if(t!==null){let n=t.getNodes();if($(t)){const o=t.getStartEndPoints();o===null&&kr(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const l=s.getFirstChild();if(l)n=l.selectStart().getNodes();else{const c=Tt();s.append(c),n=c.select().getNodes()}}else if(r1(s,n)){const l=Bt(e);if(jt(a)){s.replace(l);const c=Zt();R(s)&&(c.setFormat(s.getFormatType()),c.setIndent(s.getIndent())),l.append(c)}else if(ke(s)){const c=s.getParentOrThrow();zo(l,c.getChildren()),c.replace(l)}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())){Dg(i,e);continue}let s=fx(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(xe(s)){if(!r.has(a)){const l=Bt(e);zo(l,s.getChildren()),s.replace(l),r.add(a)}break}{const l=s.getParent();if(jt(l)&&!r.has(a)){r.add(a),Dg(s,e);break}s=l}}}}}function zo(e,t){e.splice(e.getChildrenSize(),0,t)}function Dg(e,t){if(xe(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Zt();let i;if(zo(o,e.getChildren()),xe(n)&&t===n.getListType())n.append(o),xe(r)&&t===r.getListType()&&(zo(n,r.getChildren()),r.remove()),i=n;else if(xe(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 cp(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&xn(n)&&xn(r)&&(cp(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function wN(){const e=Z();if($(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(r1(r,n))t.add(Uf(r));else for(let o=0;o<n.length;o++){const i=n[o];if(fx(i)){const s=A6(i,Xi);s!=null&&t.add(Uf(s))}}for(const o of t){let i=o;const s=n1(o);for(const a of s){const l=Tt().setTextStyle(e.style).setTextFormat(e.format);zo(l,a.getChildren()),i.insertAfter(l),i=l,a.__key===e.anchor.key&&jo(e.anchor,Yt(un(l,"next"))),a.__key===e.focus.key&&jo(e.focus,Yt(un(l,"next"))),a.remove()}o.remove()}}}function o1(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),xe(r.getFirstChild())||n++)}function AN(e){const t=new Set;if(xn(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(xn(r)&&xn(o)){const i=o.getFirstChild();if(xe(i)){i.append(e);const s=r.getFirstChild();xe(s)&&(zo(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(xn(r)){const i=r.getFirstChild();if(xe(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(xn(o)){const i=o.getFirstChild();xe(i)&&i.append(e)}else if(xe(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 CN(e){if(xn(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(xe(n?n.getParent():void 0)&&ke(n)&&xe(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(u=>a.append(u));const l=Zt(),c=Bt(i);l.append(c),zo(c,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(l),n.replace(e)}}}function _N(){const e=Z();if(!$(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Uf(t),r=t.getParent();xe(r)||kr(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 l=Zt();l.append(a),i.insertAfter(l)}else i.insertAfter(a);a.append(...s)}return(function(a){let l=a;for(;l.getNextSibling()==null&&l.getPreviousSibling()==null;){const c=l.getParent();if(c==null||!ke(c)&&!xe(c))break;l=c}l.remove()})(t),!0}function xl(...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 Xi extends Pn{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();xe(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Pn,importDOM:{li:()=>({conversion:EN,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,l,c){const u=l.getParent();!xe(u)||u.getListType()!=="check"||xe(l.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),c&&l.__checked===c.__checked||a.setAttribute("aria-checked",l.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,l,c){const u=[],f=[],d=l.list,p=d?d.listitem:void 0;let h;if(d&&d.nested&&(h=d.nested.listitem),p!==void 0&&u.push(...xl(p)),d){const g=c.getParent(),m=xe(g)&&g.getListType()==="check",y=c.getChecked();m&&!y||f.push(d.listitemUnchecked),m&&y||f.push(d.listitemChecked),m&&u.push(y?d.listitemChecked:d.listitemUnchecked)}if(h!==void 0){const g=xl(h);c.getChildren().some(m=>xe(m))?u.push(...g):f.push(...g)}f.length>0&&Fx(a,...f),u.length>0&&ip(a,...u)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,l,c){const u=fg(l.__textStyle);for(const f in u)a.style.setProperty(`--listitem-marker-${f}`,u[f]);if(c)for(const f in fg(c.__textStyle))f in u||a.style.removeProperty(`--listitem-marker-${f}`)})(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(!xe(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)||kr(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(xe(o)||kr(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&&xn(r)&&xn(o)&&(cp(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,l=n.focus,c=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(c,a.offset,"element"),l.type==="element"&&l.getNode().is(this)&&l.set(c,l.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 xe(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"&&kr(117),(n=Math.floor(n))>=0||kr(199);let r=this.getIndent();for(;r!==n;)r<n?(AN(this),r++):(CN(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 EN(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return Fg(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 Fg(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Zt(t==="true"||t!=="false"&&void 0)}}function Fg(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Zt(e.hasAttribute("checked"))}}function Zt(e){return Wr(new Xi(void 0,e))}function ke(e){return e instanceof Xi}class sa extends Pn{constructor(n="number",r=1,o){super(o);D(this,"__tag");D(this,"__start");D(this,"__listType");const i=kN[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();xe(o)&&r.getListType()===o.getListType()&&cp(r,o)})(n),o1(n)},extends:Pn,importDOM:{ol:()=>({conversion:zg,priority:0}),ul:()=>({conversion:zg,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,jg(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(jg(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 pt(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)||xe(a)||a.isInline()?a:rt(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function jg(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=$f(n)-1,l=a%s.length,c=s[l],u=i[n.__tag];let f;const d=i.nested,p=i.checklist;if(d!==void 0&&d.list&&(f=d.list),u!==void 0&&r.push(u),p!==void 0&&n.__listType==="check"&&r.push(p),c!==void 0){r.push(...xl(c));for(let h=0;h<s.length;h++)h!==l&&o.push(n.__tag+h)}if(f!==void 0){const h=xl(f);a>1?r.push(...h):o.push(...h)}}o.length>0&&Fx(e,...o),r.length>0&&ip(e,...r)}function SN(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=>{xe(i)&&t.push(Lg(i))})}else t.push(Lg(r))}return t}function zg(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(pt(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Bt("check"):Bt("bullet")),{after:SN,node:n}}const kN={ol:"number",ul:"bullet"};function Bt(e="number",t=1){return Wr(new sa(e,t))}function xe(e){return e instanceof sa}const TN=pe("UPDATE_LIST_START_COMMAND"),i1=pe("INSERT_UNORDERED_LIST_COMMAND"),s1=pe("INSERT_ORDERED_LIST_COMMAND"),Bf=pe("REMOVE_LIST_COMMAND");function NN(e){return fn(e.registerCommand(s1,()=>(Rg("number"),!0),Qn),e.registerCommand(TN,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!xe(o)&&(o.getListType()==="number"&&(o.setStart(r),o1(o)),!0)},Qn),e.registerCommand(i1,()=>(Rg("bullet"),!0),Qn),e.registerCommand(Bf,()=>(wN(),!0),Qn),e.registerCommand(Ms,()=>_N(),Qn),e.registerNodeTransform(Xi,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(Ur,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 ON(e){const t=n=>{const r=n.getParent();if(xe(n.getFirstChild())||!xe(r))return;const o=at(n,i=>ke(i)&&xe(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(l){let c=l,u=c.getFirstChild();for(;xe(u);){const f=u.getLastChild();if(!ke(f))break;c=f,u=c.getFirstChild()}return c})(i),a=s.getParent();if(xe(a)){const l=$f(a);l+1<$f(r)&&n.setIndent(l)}}}};return e.registerNodeTransform(sa,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(xe(o)){for(const i of o.getChildren())if(ke(i)){t(i);const s=i.getFirstChild();xe(s)&&r.push(s)}}}})}const PN=new Set(["http:","https:","mailto:","sms:","tel:"]);class Wo extends Pn{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 Wo(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(xx(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:MN,priority:1})}}static importJSON(n){return Ao().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=Bg(n);try{const r=new URL(Bg(n));if(!PN.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=Ao(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 MN(e){let t=null;if(xx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=Ao(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ao(e="",t){return Wr(new Wo(e,t))}function ut(e){return e instanceof Wo}class oc extends Wo{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 oc(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 $g().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=$g(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function $g(e="",t){return Wr(new oc(e,t))}function io(e){return e instanceof oc}const zs=pe("TOGGLE_LINK_COMMAND");function Ug(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 lu(e,t={}){let n;if(e&&typeof e=="object"){const{url:u,...f}=e;n=u,t={...f,...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 u=s.getNodes();return u.length===0?void 0:void u.forEach(f=>{if(n===null){const d=at(f,p=>!io(p)&&ut(p));d&&(d.insertBefore(f),d.getChildren().length===0&&d.remove())}else{const d=at(f,p=>!io(p)&&ut(p));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const p=Ao(n,{rel:i,target:r});f.insertBefore(p),p.append(f)}}})}const a=s.extract();if(n===null){const u=new Set;return void a.forEach(f=>{const d=f.getParent();if(ut(d)&&!io(d)){const p=d.getKey();if(u.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())),A=y.findLastIndex(E=>m.has(E.getKey())),w=b===0,_=A===y.length-1;if(w)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(A+1);if(E.length>0){const S=Ao(h.getURL(),{rel:h.getRel(),target:h.getTarget(),title:h.getTitle()});v[v.length-1].insertAfter(S),E.forEach(O=>S.append(O))}}})(d,a),u.add(p)}})}const l=new Set,c=u=>{l.has(u.getKey())||(l.add(u.getKey()),u.setURL(n),r!==void 0&&u.setTarget(r),i!==void 0&&u.setRel(i),o!==void 0&&u.setTitle(o))};if(a.length===1){const u=a[0],f=at(u,ut);if(f!==null)return c(f)}(function(u){const f=Z();if(!$(f))return u();const d=Li(f),p=d.isBackward(),h=Ug(d.anchor,p?-1:0),g=Ug(d.focus,p?0:-1);if(u(),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(Li(y))}}})(()=>{let u=null;for(const f of a){if(!f.isAttached())continue;const d=at(f,ut);if(d){c(d);continue}if(R(f)){if(!f.isInline())continue;if(ut(f)){if(!(io(f)||u!==null&&u.getParentOrThrow().isParentOf(f))){c(f),u=f;continue}for(const h of f.getChildren())f.insertBefore(h);f.remove();continue}}const p=f.getPreviousSibling();ut(p)&&p.is(u)?p.append(f):(u=Ao(n,{rel:i,target:r,title:o}),f.insertAfter(u),u.append(f))}})}const IN=/^\+?[0-9\s()-]{5,}$/;function Bg(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:IN.test(e)?`tel:${e}`:`https://${e}`}function LN(e,t){return fn(js(()=>e.registerCommand(zs,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return lu(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(lu(n,o),!0);{const{url:i,target:s,rel:a,title:l}=n;return lu(i,{...o,rel:a,target:s,title:l}),!0}},Qn)),js(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Ql,o=>{const i=Z();if(!$(i)||i.isCollapsed()||!Sr(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand(zs,{...r,url:s}),o.preventDefault(),!0)},Qn)}))}function RN({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=wt(),[a,l]=T.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[c,u]=T.useState(null),f=T.useRef(null),d=T.useRef(null),p=up[e];T.useLayoutEffect(()=>s.registerUpdateListener(({editorState:v})=>{v.read(()=>{const b=Z();if(!$(b))return;l({bold:b.hasFormat("bold"),italic:b.hasFormat("italic"),underline:b.hasFormat("underline"),strikethrough:b.hasFormat("strikethrough"),code:b.hasFormat("code")});let A=b.anchor.getNode(),w=null;for(;A;){if(xe(A)){const _=A.getListType();w=_==="bullet"||_==="number"?_:null;break}if(ke(A)){A=A.getParent();continue}A=A.getParent()}u(w)})}),[s]);const h=v=>{s.dispatchCommand(Cn,v)},g=()=>{c!=="bullet"?s.dispatchCommand(i1,void 0):s.dispatchCommand(Bf,void 0)},m=()=>{c!=="number"?s.dispatchCommand(s1,void 0):s.dispatchCommand(Bf,void 0)},y=()=>{s.update(()=>{const v=Z();if(!$(v))return;["bold","italic","underline","strikethrough","code"].forEach(A=>{v.hasFormat(A)&&s.dispatchCommand(Cn,A)})})};return x.jsxs("div",{className:Ee("flex items-center w-full",r?"justify-between":"justify-end"),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx(uf,{placement:"top-end",minWidth:"fit-content",title:"text formatting menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",children:x.jsx(ve,{icon:uS})}),children:x.jsxs("ul",{className:"flex items-start flex-col",children:[x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Bold",onClick:()=>h("bold"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.bold?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:nS,className:"mr-2"}),"Bold"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Italic",onClick:()=>h("italic"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.italic?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:iS,className:"mr-2"}),"Italic"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Underline",onClick:()=>h("underline"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.underline?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:tS,className:"mr-2"}),"Underline"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>h("strikethrough"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.strikethrough?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:eS,className:"mr-2"}),"Strikethrough"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Monospace",onClick:()=>h("code"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.code?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:aS,className:"mr-2"}),"Monospace"]})}),x.jsx("hr",{className:"w-full border-gray-200"}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:"cursor-pointer w-full h-full justify-start text-left p-2 text-gray-400 hover:text-gray-400 hover:bg-gray-100",children:[x.jsx(ve,{icon:oS,className:"mr-2"}),"Clear formatting"]})})]})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:g,children:x.jsx(ve,{icon:fS})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:m,children:x.jsx(ve,{icon:sS})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(zs,"https://")},children:x.jsx(ve,{icon:cS})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"border-l-1 border-gray-200 rounded-none",onClick:()=>{var v;(v=f.current)==null||v.click()},children:x.jsx(ve,{icon:rS})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var v;(v=d.current)==null||v.click()},children:x.jsx(ve,{icon:lS})})]}),n&&x.jsx(uf,{placement:"top-end",title:"comment type menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",className:`${p.iconColor} border-l-1 border-gray-200 rounded-none`,children:x.jsx(ve,{icon:p.icon})}),children:x.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:l1.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:"text-gray-400"),onClick:()=>t==null?void 0:t(v.type),children:x.jsx(ve,{icon:v.icon})})},v.type))})})]}),r,x.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:f,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 DN({hasStrictIndent:e=!1}){const[t]=wt();return T.useEffect(()=>{if(!t.hasNodes([sa,Xi]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),T.useEffect(()=>{if(e)return ON(t)},[t,e]),(function(n){T.useEffect(()=>NN(n),[n])})(t),null}function FN({validateUrl:e,attributes:t}){const[n]=wt();return T.useEffect(()=>{if(!n.hasNodes([Wo]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),T.useEffect(()=>LN(n,Ux({attributes:t,validateUrl:e})),[n,e,t]),null}const jN=new Set(["http:","https:","mailto:","sms:","tel:"]);function Wg(e){try{const t=new URL(e);if(!jN.has(t.protocol))return"about:blank"}catch{return e}return e}function Kg(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(),l=i.getBoundingClientRect();let c=e.top-r,u=e.left-o;c<l.top&&(c+=s.height+e.height+r*2),u+s.width>l.right&&(u=l.right-s.width-o),c-=a.top,u-=a.left,t.style.opacity="1",t.style.transform=`translate(${u}px, ${c}px)`}function wl(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?pg(n)?r:o:pg(t)?r:o}function zN({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=T.useRef(null),[a,l]=T.useState(""),[c,u]=T.useState("https://"),[f,d]=T.useState(null),p=T.useCallback(()=>{var w,_;const m=Z();if($(m)){const E=wl(m),S=at(E,ut);S?l(S.getURL()):ut(E)?l(E.getURL()):l(""),o&&u(a)}else if(ot(m)){const E=m.getNodes();if(E.length>0){const S=E[0],O=S.getParent();ut(O)?l(O.getURL()):ut(S)?l(S.getURL()):l(""),o&&u(a)}}const y=s.current,v=en(e._window),b=document.activeElement;if(y===null)return;const A=e.getRootElement();if(m!==null&&A!==null&&e.isEditable()){let E;if(ot(m)){const S=m.getNodes();if(S.length>0){const O=e.getElementByKey(S[0].getKey());O&&(E=O.getBoundingClientRect())}}else v!==null&&A.contains(v.anchorNode)&&(E=(_=(w=v.focusNode)==null?void 0:w.parentElement)==null?void 0:_.getBoundingClientRect());E&&(E.y+=40,Kg(E,y,r)),d(m)}else(!b||b.className!=="link-input")&&(A!==null&&Kg(null,y,r),d(null),i(!1),l(""));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(()=>fn(e.registerUpdateListener(({editorState:m})=>{m.read(()=>{p()})}),e.registerCommand(Yl,()=>(p(),!0),Qn),e.registerCommand(Rd,()=>t?(n(!1),!0):!1,FT)),[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(),f!==null&&(a!==""&&e.update(()=>{e.dispatchCommand(zs,Wg(c));const y=Z();if($(y)){const v=wl(y).getParent();if(io(v)){const b=Ao(v.getURL(),{rel:v.__rel,target:v.__target,title:v.__title});v.replace(b,!0)}}}),u("https://"),i(!1))};return x.jsx("div",{ref:s,className:"absolute flex top-0 left-0 shadow-lg bg-white z-10 rounded-sm w-full max-w-400",children:t?o?x.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[x.jsx(wy,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:c,onChange:m=>{u(m.target.value)},onKeyDown:m=>{h(m)}}),x.jsxs("div",{className:"flex justify-center items-center gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{i(!1)},children:x.jsx(ve,{icon:Rl})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:g,children:x.jsx(ve,{icon:Oy})})]})]}):x.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[x.jsx("a",{href:Wg(a),target:"_blank",rel:"noopener noreferrer",children:a}),x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{u(a),i(!0)},children:x.jsx(ve,{icon:RC})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>e.dispatchCommand(zs,null),children:x.jsx(ve,{icon:qC})})]})]}):null})}function $N(e,t,n,r){const[o,i]=T.useState(e),[s,a]=T.useState(!1);return T.useEffect(()=>{function l(){const c=Z();if($(c)){const u=wl(c),f=at(u,ut),d=at(u,io);if(!(f||d)){a(!1);return}const p=c.getNodes().filter(h=>!bo(h)).find(h=>{const g=at(h,ut),m=at(h,io);return f&&!f.is(g)||g&&!g.is(f)||d&&!d.is(m)||m&&(!m.is(d)||m.getIsUnlinked())});a(!p)}else if(ot(c)){const u=c.getNodes();if(u.length===0){a(!1);return}const f=u[0],d=f.getParent();ut(d)||ut(f)?a(!0):a(!1)}}return fn(e.registerUpdateListener(({editorState:c})=>{c.read(()=>{l()})}),e.registerCommand(Yl,(c,u)=>(l(),i(u),!1),ox),e.registerCommand(Md,c=>{const u=Z();if($(u)){const f=wl(u),d=at(f,ut);if(ut(d)&&(c.metaKey||c.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Qn))},[e]),Tn.createPortal(x.jsx(zN,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function UN({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=wt();return $N(r,e,t,n)}const BN=({url:e,onDelete:t})=>x.jsxs("div",{className:"relative",children:[x.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),x.jsx(je,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:x.jsx(ve,{icon:Ny})})]}),WN=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=_v(r);return x.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[x.jsx(je,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:x.jsx(ve,{icon:Ny})}),x.jsxs("div",{className:"flex items-center justify-center mx-2",children:[x.jsx("span",{className:"text-primary-600 my-2",children:x.jsx(ve,{icon:o,size:"3x",className:"text-primary-600"})}),x.jsx("span",{className:"font-bold p-2",children:n})]})]})},KN=({clearKey:e})=>{const[t]=wt(),n=T.useRef(e);return T.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},HN=({isOpen:e})=>{const[t]=wt();return T.useEffect(()=>{e&&requestAnimationFrame(()=>{t.focus()})},[t,e]),null},qN=({initialValue:e})=>{const[t]=wt(),n=T.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return qx(o,a)},[]),r=T.useRef(!1);return T.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),Zb(n(t,e))}),r.current=!0)},[t,e,n]),null},VN=({onChange:e})=>{const[t]=wt();return x.jsx(mN,{onChange:n=>{n.read(()=>{const r=Vx(t,null);e(r)})}})},YN=({onAddAttachments:e})=>{const[t]=wt();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 l=0;l<s.length;l++){const c=s[l];if(c.kind==="file"&&c.type.startsWith("image/")){a=!0;break}}if(a){for(let l=0;l<s.length;l++){const c=s[l];if(c.kind==="file"&&c.type.startsWith("image/")){const u=c.getAsFile();if(u){const f=Date.now(),d=u.type.split("/")[1]||"png",p=`image_${f}.${d}`,h=new File([u],p,{type:u.type});e==null||e([h])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},QN=({onSubmit:e})=>{const[t]=wt();return T.useEffect(()=>{if(e)return t.registerCommand(Rs,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null};function a1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:l=!0,actions:c,onAddAttachments:u,onRemoveAttachment:f,onSubmit:d,isOpen:p}){const h={namespace:"comment-editor",theme:xN,nodes:[sa,Xi,Wo],onError:w=>{console.error(w)}},[g,m]=T.useState(null),[y,v]=T.useState(!1),b=w=>{w!==null&&m(w)},A=up[s];return x.jsx("div",{className:r,children:x.jsxs(p6,{initialConfig:h,children:[x.jsxs("div",{className:"relative",children:[x.jsx(oN,{contentEditable:x.jsx("div",{ref:b,children:x.jsx(fN,{className:Ee("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",A.bg,A.border,A.fontColor,n)})}),placeholder:x.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:bN}),x.jsx(DN,{}),x.jsx(FN,{}),g&&x.jsx(UN,{anchorElem:g,isLinkEditMode:y,setIsLinkEditMode:v}),x.jsx(lN,{}),x.jsx(qN,{initialValue:o}),x.jsx(VN,{onChange:i}),x.jsx(QN,{onSubmit:d}),x.jsx(KN,{clearKey:t}),x.jsx(YN,{onAddAttachments:u}),x.jsx(HN,{isOpen:p})]}),e&&e.length>0&&x.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(w=>md(w.type)?x.jsx(BN,{url:w.url,onDelete:()=>f==null?void 0:f(w.originFile)},w.originFile.name):x.jsx(WN,{type:w.type,label:w.name,onRemoveFile:()=>f==null?void 0:f(w.originFile)},w.originFile.name))}),x.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:x.jsx(RN,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:l,actions:c,setIsLinkEditMode:v,onAddAttachments:u})})]})})}const GN=({asset:e,onSetActiveSrc:t})=>x.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full 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:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&x.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:x.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:x.jsx("div",{className:"absolute left-0 top-0 h-full w-1/3 rounded-full bg-blue-500 animate-progress"})})})]}),ZN=({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=_v(t);return x.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&x.jsx("div",{className:"flex items-center justify-center",children:x.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),x.jsx(ve,{icon:n,size:"lg",className:"text-primary-600"}),x.jsx("a",{href:za(e),className:"text-sm text-blue-600 underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},JN=({commentType:e=dt.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:l,taskVerified:c})=>{const f={[dt.INFO]:{bg:"bg-primary-100",border:"border-primary-200",icon:Ty,iconColor:"text-primary-600 hover:text-primary-600",text:"text-primary-900"},[dt.WARNING]:{bg:"bg-warning-100",border:"border-warning-200",icon:_y,iconColor:"text-warning-600 hover:text-warning-600",text:"text-warning-900"},[dt.DANGER]:{bg:"bg-danger-100",border:"border-danger-200",icon:Py,iconColor:"text-danger-600 hover:text-danger-600",text:"text-danger-900"},[dt.SUCCESS]:{bg:"bg-success-100",border:"border-success-200",icon:Sy,iconColor:"text-success-600 hover:text-success-600",text:"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(jc(r)),[y,v]=T.useState(e),[b,A]=T.useState(""),w=()=>{h(!0)},_=()=>{const O=nf.sanitize(g);s(O,y),h(!1)},E=O=>{const P=nf.sanitize(g);v(O),s(P,O),h(!1)},S=()=>{h(!1)};return x.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[x.jsx(C3,{alt:t}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("div",{className:`border ${f.border} rounded-sm ${f.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[x.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:x.jsxs("div",{className:"w-full",children:[x.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[x.jsxs("div",{children:[x.jsx(ve,{icon:f.icon,size:"lg",className:`mr-2 ${f.iconColor}`}),x.jsx("span",{className:`font-semibold text-sm ${f.text}`,children:t})]}),x.jsx(E3,{commentType:e,taskVerified:c,isUsernameAuthor:n.trim()===t.trim(),onEdit:w,onSaveCommentType:E,onDelete:i})]}),p?x.jsx(a1,{inputFieldClassName:"bg-white border-0 rounded-sm",containerClassName:"bg-white border-0 rounded-sm",onChange:m,commentType:e,isCommentTypeEditable:!1,initialValue:jc(r),actions:x.jsxs("div",{className:"flex items-center 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:`text-sm ${f.text}`,dangerouslySetInnerHTML:{__html:jc(r)}})]})}),a&&l&&(l==null?void 0:l.length)>0&&x.jsx("div",{className:`${f.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:l.map(O=>x.jsx(T.Fragment,{children:md(O.mimeType)?x.jsx(GN,{asset:O,onSetActiveSrc:A}):x.jsx(ZN,{asset:O})},O.assetId))})]}),x.jsxs("div",{className:"flex gap-2 my-1",children:[o&&x.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:d}),c&&x.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[x.jsx(ve,{icon:ky}),"Comment Required"]})]})]}),x.jsx(o3,{plugins:[w3],open:!!b,zoom:{maxZoomPixelRatio:2},close:()=>A(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:b}]})]})},up={[dt.INFO]:{icon:QC,bg:"bg-primary-100",border:"border-l-primary-500",iconColor:"text-primary-600 hover:text-primary-700",fontColor:"text-primary-900"},[dt.WARNING]:{icon:DC,bg:"bg-warning-100",border:"border-l-warning-500",iconColor:"text-warning-600 hover:text-warning-700",fontColor:"text-warning-900"},[dt.DANGER]:{icon:JC,bg:"bg-danger-100",border:"border-l-danger-500",iconColor:"text-danger-600 hover:text-danger-700",fontColor:"text-danger-900"},[dt.SUCCESS]:{icon:ky,bg:"bg-success-100",border:"border-l-success-500",iconColor:"text-success-600 hover:text-success-700",fontColor:"text-success-900"}},l1=Object.entries(up).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),XN=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:a})=>{const[l,c]=T.useState(""),[u,f]=T.useState(dt.INFO),[d,p]=T.useState(0),[h,g]=T.useState([]),m=T.useRef(null),{username:y}=c1(),{manageComment:v}=qS({playbookInstanceId:s}),b=()=>{const P=h.length,W=h.some(z=>!md(z.mimeType))?"Attachment":"Image",j=P>1?"s":"";return`<p class="m-0"><span style="white-space: pre-wrap;">${W}${j} added.</span></p>`},A=P=>{const I=Array.from(P).map((W,j)=>FS(W,h.length+j+1));g(W=>[...W,...I])},w=P=>{g(I=>I.filter(W=>W.originFile!==P))},_=P=>{f(P)},E=async()=>{if(!h.length&&$a(l)||!o)return;h.length>0&&g([]);const P=nf.sanitize(l);c(""),p(I=>I+1),await v({action:"add",comment:h.length>0&&$a(l)?b():P,username:y||"",commentType:u,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:h.length>0,taskInstanceId:o,taskVerified:a,attachments:h}),f(dt.INFO)},S=async P=>{o&&await v({username:y||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:P})},O=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("transition-all duration-300 fixed bg-white right-0 bottom-0 h-[100vh] z-[9999999998] flex flex-col min-w-[270px] max-w-[420px] w-[calc(100vw-1rem)] border border-gray-200 rounded-t-sm overflow-hidden",n?"translate-y-0 opacity-100":"translate-y-full opacity-0 pointer-events-none"),children:[x.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),x.jsx(ve,{icon:rd,className:"size-4 text-gray-300"})]}),x.jsx(je,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:x.jsx(ve,{icon:Rl,className:"size-4 text-gray-300"})})]}),x.jsxs("div",{ref:m,className:"flex flex-col flex-1 overflow-y-auto",children:[x.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&x.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(P=>x.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},P))}),(e==null?void 0:e.length)>0&&!i&&e.map(P=>x.jsx(JN,{username:y||"",onDelete:()=>S(P.commentId),onEdit:(I,W)=>O({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:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[x.jsx("img",{src:RS,className:"opacity-70",alt:"Empty"}),x.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),x.jsx(a1,{attachments:h,onChange:c,containerClassName:"fixed bottom-0 left-0 right-0 bg-white",clearKey:d,commentType:u,onCommentTypeChange:_,onAddAttachments:A,onRemoveAttachment:w,onSubmit:E,isOpen:n,actions:x.jsx(je,{category:"link",size:"normalCollapse",title:"Send comment",onClick:E,disabled:$a(l)&&h.length===0,children:x.jsx(ve,{icon:dS})})})]})]})},Wf=T.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),c1=()=>{if(!T.useContext(Wf))throw new Error("useCommentContext must be used within a CommentProvider");return T.useContext(Wf)},e5=({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:l,isLoading:c,prefetchQuery:u}=BS({taskInstanceId:i||0,enabled:i!==null,username:n});return x.jsxs(Wf.Provider,{value:{comments:l,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:u,username:n},children:[t,Tn.createPortal(x.jsxs("div",{id:"cnfdnc-comment-box-root",children:[x.jsx("style",{children:Hs}),x.jsx("div",{className:"confidence-playbook",children:x.jsx(XN,{playbookInstanceId:e,comments:l,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:c,taskVerification:a})})]}),pS)]})},t5={[Be.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[Be.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[Be.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[Be.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Un={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},n5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:l,taskStyle:c,listStickyTopBase:u})=>{const[f,d]=T.useState(!1),{taskDetails:p,prefetchQuery:h}=m4({taskId:e.taskId,playbookId:l,enabled:s}),{setOpenTaskDetails:g,prefetchQuery:m}=c1(),{buttons:y}=Mw({taskStatus:e.workflowStatus,canStart:i}),v=T.useMemo(()=>e.imageRequired===0?Un.NO_VERIFICATION:e.imageRequired===1?Un.SCREENSHOT:e.imageRequired===2?Un.PHOTO:e.imageRequired===4?Un.COMMENT:null,[e.imageRequired]),b=async A=>{try{d(!0),await r(A)}finally{d(!1)}};if(o==="list"){const A=T.useMemo(()=>e.workflowStatus===Be.COMPLETED?"success":e.workflowStatus===Be.IN_PROGRESS?"primary":"default",[e.workflowStatus]),w=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===Un.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===Un.COMMENT}))}),_},[y,v,e.taskVerified]);return x.jsxs("div",{className:Ee("flex flex-col"),children:[x.jsxs("div",{className:Ee("flex items-center gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",s&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:s?u:0},children:[x.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),x.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:h,className:Ee("flex-1 truncate cursor-pointer",s&&"font-medium",e.workflowStatus===Be.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===Be.IN_PROGRESS&&(c==null?void 0:c.titleColor)||"#1C232D"},children:e.taskInstanceName}),x.jsx(q4,{taskVerified:e.taskVerified,verificationType:v,title:e.workflowStatus,variant:A,transitions:w,onClick:_=>{if(_===ci.ADD_COMMENT){g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(_)}}),x.jsx(Hh,{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&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:x.jsx(Kh,{description:(p==null?void 0:p.description)||""})})]})}return x.jsxs("div",{className:_s("flex items-stretch rounded-sm overflow-hidden border",t5[e.workflowStatus]),children:[x.jsx(G4,{playbookType:n,status:e.workflowStatus,step:t}),x.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&x.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:x.jsx(J4,{status:e.workflowStatus})}),x.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[x.jsx("div",{className:Ee("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(c==null?void 0:c.titleColor)||"#1C232D"},children:e.taskInstanceName}),v?x.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[x.jsx(ve,{icon:Ey,className:"size-4"}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium",children:v===Un.PHOTO?"Photo":v===Un.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):x.jsx(x.Fragment,{})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"hidden"),children:x.jsx(Kh,{description:(p==null?void 0:p.description)||""})}),(y.length>0||e.hasDescription)&&x.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[x.jsx("div",{className:"flex-1",children:x.jsx(g4,{buttons:y,onButtonClick:b,disabled:f})}),x.jsx(Hh,{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(ve,{icon:rd,className:_s("cursor-pointer text-[#0069D9]",s?"rotate-180":"")})})]})]})]})},u1=T.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return x.jsx("div",{ref:o,className:Ee("border-b border-gray-200 flex 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("text-xl min-h-16 p-4 font-medium flex-1",{"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})})});u1.displayName="PlaybookHeader";const r5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>{const{playbook:r,actions:o}=Ow(e);if(!r)return x.jsx("div",{});const i=async(s,a)=>{var l;if(s===ci.COMPLETE){const c=(l=r.tasks.find(u=>u.taskInstanceId===a))==null?void 0:l.sequenceOrder;if(c===void 0){console.error("Task not found in playbook");return}return o.completeTask(a,c)}if(s===ci.START)return o.startTask(a)};return x.jsx("div",{className:"confidence-playbook",children:x.jsx(f1,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},o5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>x.jsxs("div",{className:Ee("w-full p-4",e),children:[n&&x.jsxs("div",{className:Ee(r==="card"&&"mb-4"),children:[x.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),x.jsx("div",{className:Ee(r==="card"&&"space-y-4"),children:t})]}),f1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var m,y,v,b,A;const{playbookInstanceName:o,tasks:i}=e,s=T.useRef(null),[a,l]=T.useState(0),[c,u]=T.useState(!0),f=()=>{u(!c)},{isTaskExpanded:d,toggleTaskExpanded:p,isAtLeastOneTaskExpanded:h}=E0(e.playbookInstanceId,{onTaskExpanded:()=>{var w;l(((w=s.current)==null?void 0:w.offsetHeight)||0)}});T.useEffect(()=>{if(h){if(!s.current)throw new Error("Playbook header ref is not set");new ResizeObserver(_=>{var E;for(const S of _)S.contentRect&&l(((E=s.current)==null?void 0:E.offsetHeight)||0)}).observe(s.current)}return()=>{s.current&&new ResizeObserver(()=>{}).unobserve(s.current)}},[h]);const g=T.useMemo(()=>{const w=i.filter(_=>_.workflowStatus===Be.COMPLETED).sort((_,E)=>E.sequenceOrder-_.sequenceOrder)[0];return w?w.sequenceOrder+1:0},[i]);return x.jsxs("div",{className:Ee(!(r!=null&&r.overlay)&&"min-h-screen",(r==null?void 0:r.overlay)&&"fixed bottom-0 z-[9999999997] flex","transition-all duration-300 ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:c?((m=r.overlay.size)==null?void 0:m.width)||450:"2.25rem",height:((y=r.overlay.size)==null?void 0:y.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((v=r.overlay.offset)==null?void 0:v.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((b=r.overlay.offset)==null?void 0:b.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:f,className:Ee("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm 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:u0,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),x.jsxs("div",{className:Ee("flex flex-col flex-1 bg-gray-50",(r==null?void 0:r.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[x.jsx(u1,{title:o,className:Ee("top-0 sticky z-2"),playbookStyle:r,ref:s}),x.jsx(o5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((w,_)=>{var E;return x.jsx(n5,{task:w,step:_+1,viewMode:t,playbookId:e.playbookId,canStart:w.sequenceOrder===g,onButtonClick:S=>n(S,w.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(E=r==null?void 0:r.whiteLabel)==null?void 0:E.primaryColor},isExpanded:d(w.taskInstanceId),toggleExpanded:()=>p(w.taskInstanceId),listStickyTopBase:a||104},w.taskId)})})]})]})},i5=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles"})=>{const[s,a]=T.useState(null);return T.useEffect(()=>{(async()=>{const{playbookInstanceId:l,errorCode:c,details:u,message:f}=await S0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(c)throw new Error(`Error initiating playbook: ${f} (Code: ${c}) - Details: ${u}`);a(l)})()},[]),s?x.jsx(Kr,{playbookInstanceId:s,playbookMode:n,playbookStyle:r,username:e}):x.jsx("div",{children:"Loading..."})},s5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary"})=>{const[i,s]=T.useState(null),[a,l]=T.useState(void 0);return x.jsxs(x.Fragment,{children:[x.jsxs(Al.div,{children:[x.jsx(NC,{playbookId:e,disabled:!!i,onInitiated:(c,u)=>{s(c),l(u)},btnLabel:r,btnColor:o}),x.jsx("style",{type:"text/css",children:Hs})]}),i&&x.jsx(Kr,{playbookInstanceId:i,playbookMode:t,playbookStyle:n,username:a})]})},Kr=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})=>(console.log("Starting ConfidencePlaybook with instance ID:",e,r),x.jsx(C0,{children:x.jsx(e5,{playbookInstanceId:e,username:r,children:x.jsx(r5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n})})}));Kr.Context=C0;Kr.View=f1;Kr.AutoInstantiated=i5;Kr.WithInstantiateButton=s5;const d1=e=>Tn.createPortal(x.jsxs(Al.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:Hs}),x.jsx(Kr,{...e})]}),document.body),a5=e=>Tn.createPortal(x.jsxs(Al.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:Hs}),x.jsx(Kr.AutoInstantiated,{...e})]}),document.body);d1.AutoInstantiated=a5;exports.ConfidencePlaybook=d1;
|