var LikeC4Views=(function(F2){"use strict";/* prettier-ignore-start */
/* eslint-disable */

/******************************************************************************
 * This file was generated
 * DO NOT EDIT MANUALLY!
 ******************************************************************************/


function w0e(e,r){for(var n=0;n<r.length;n++){const o=r[n];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(o,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H2={exports:{}},f0={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xD;function k0e(){if(xD)return f0;xD=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(o,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:o,key:s,ref:a!==void 0?a:null,props:i}}return f0.Fragment=r,f0.jsx=n,f0.jsxs=n,f0}var wD;function _0e(){return wD||(wD=1,H2.exports=k0e()),H2.exports}var b=_0e(),U2={exports:{}},jt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kD;function E0e(){if(kD)return jt;kD=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;function p(F){return F===null||typeof F!="object"?null:(F=h&&F[h]||F["@@iterator"],typeof F=="function"?F:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function w(F,J,Q){this.props=F,this.context=J,this.refs=x,this.updater=Q||g}w.prototype.isReactComponent={},w.prototype.setState=function(F,J){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,J,"setState")},w.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function k(){}k.prototype=w.prototype;function C(F,J,Q){this.props=F,this.context=J,this.refs=x,this.updater=Q||g}var _=C.prototype=new k;_.constructor=C,y(_,w.prototype),_.isPureReactComponent=!0;var T=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function $(F,J,Q,z,W,G){return Q=G.ref,{$$typeof:e,type:F,key:J,ref:Q!==void 0?Q:null,props:G}}function R(F,J){return $(F.type,J,void 0,void 0,void 0,F.props)}function M(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function O(F){var J={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(Q){return J[Q]})}var B=/\/+/g;function I(F,J){return typeof F=="object"&&F!==null&&F.key!=null?O(""+F.key):J.toString(36)}function Y(){}function D(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(Y,Y):(F.status="pending",F.then(function(J){F.status==="pending"&&(F.status="fulfilled",F.value=J)},function(J){F.status==="pending"&&(F.status="rejected",F.reason=J)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function V(F,J,Q,z,W){var G=typeof F;(G==="undefined"||G==="boolean")&&(F=null);var Z=!1;if(F===null)Z=!0;else switch(G){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(F.$$typeof){case e:case r:Z=!0;break;case d:return Z=F._init,V(Z(F._payload),J,Q,z,W)}}if(Z)return W=W(F),Z=z===""?"."+I(F,0):z,T(W)?(Q="",Z!=null&&(Q=Z.replace(B,"$&/")+"/"),V(W,J,Q,"",function(re){return re})):W!=null&&(M(W)&&(W=R(W,Q+(W.key==null||F&&F.key===W.key?"":(""+W.key).replace(B,"$&/")+"/")+Z)),J.push(W)),1;Z=0;var oe=z===""?".":z+":";if(T(F))for(var ee=0;ee<F.length;ee++)z=F[ee],G=oe+I(z,ee),Z+=V(z,J,Q,G,W);else if(ee=p(F),typeof ee=="function")for(F=ee.call(F),ee=0;!(z=F.next()).done;)z=z.value,G=oe+I(z,ee++),Z+=V(z,J,Q,G,W);else if(G==="object"){if(typeof F.then=="function")return V(D(F),J,Q,z,W);throw J=String(F),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Z}function L(F,J,Q){if(F==null)return F;var z=[],W=0;return V(F,z,"","",function(G){return J.call(Q,G,W++)}),z}function U(F){if(F._status===-1){var J=F._result;J=J(),J.then(function(Q){(F._status===0||F._status===-1)&&(F._status=1,F._result=Q)},function(Q){(F._status===0||F._status===-1)&&(F._status=2,F._result=Q)}),F._status===-1&&(F._status=0,F._result=J)}if(F._status===1)return F._result.default;throw F._result}var q=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)};function X(){}return jt.Children={map:L,forEach:function(F,J,Q){L(F,function(){J.apply(this,arguments)},Q)},count:function(F){var J=0;return L(F,function(){J++}),J},toArray:function(F){return L(F,function(J){return J})||[]},only:function(F){if(!M(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},jt.Component=w,jt.Fragment=n,jt.Profiler=a,jt.PureComponent=C,jt.StrictMode=o,jt.Suspense=c,jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,jt.__COMPILER_RUNTIME={__proto__:null,c:function(F){return A.H.useMemoCache(F)}},jt.cache=function(F){return function(){return F.apply(null,arguments)}},jt.cloneElement=function(F,J,Q){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var z=y({},F.props),W=F.key,G=void 0;if(J!=null)for(Z in J.ref!==void 0&&(G=void 0),J.key!==void 0&&(W=""+J.key),J)!N.call(J,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&J.ref===void 0||(z[Z]=J[Z]);var Z=arguments.length-2;if(Z===1)z.children=Q;else if(1<Z){for(var oe=Array(Z),ee=0;ee<Z;ee++)oe[ee]=arguments[ee+2];z.children=oe}return $(F.type,W,void 0,void 0,G,z)},jt.createContext=function(F){return F={$$typeof:s,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:i,_context:F},F},jt.createElement=function(F,J,Q){var z,W={},G=null;if(J!=null)for(z in J.key!==void 0&&(G=""+J.key),J)N.call(J,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(W[z]=J[z]);var Z=arguments.length-2;if(Z===1)W.children=Q;else if(1<Z){for(var oe=Array(Z),ee=0;ee<Z;ee++)oe[ee]=arguments[ee+2];W.children=oe}if(F&&F.defaultProps)for(z in Z=F.defaultProps,Z)W[z]===void 0&&(W[z]=Z[z]);return $(F,G,void 0,void 0,null,W)},jt.createRef=function(){return{current:null}},jt.forwardRef=function(F){return{$$typeof:l,render:F}},jt.isValidElement=M,jt.lazy=function(F){return{$$typeof:d,_payload:{_status:-1,_result:F},_init:U}},jt.memo=function(F,J){return{$$typeof:u,type:F,compare:J===void 0?null:J}},jt.startTransition=function(F){var J=A.T,Q={};A.T=Q;try{var z=F(),W=A.S;W!==null&&W(Q,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(X,q)}catch(G){q(G)}finally{A.T=J}},jt.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},jt.use=function(F){return A.H.use(F)},jt.useActionState=function(F,J,Q){return A.H.useActionState(F,J,Q)},jt.useCallback=function(F,J){return A.H.useCallback(F,J)},jt.useContext=function(F){return A.H.useContext(F)},jt.useDebugValue=function(){},jt.useDeferredValue=function(F,J){return A.H.useDeferredValue(F,J)},jt.useEffect=function(F,J,Q){var z=A.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return z.useEffect(F,J)},jt.useId=function(){return A.H.useId()},jt.useImperativeHandle=function(F,J,Q){return A.H.useImperativeHandle(F,J,Q)},jt.useInsertionEffect=function(F,J){return A.H.useInsertionEffect(F,J)},jt.useLayoutEffect=function(F,J){return A.H.useLayoutEffect(F,J)},jt.useMemo=function(F,J){return A.H.useMemo(F,J)},jt.useOptimistic=function(F,J){return A.H.useOptimistic(F,J)},jt.useReducer=function(F,J,Q){return A.H.useReducer(F,J,Q)},jt.useRef=function(F){return A.H.useRef(F)},jt.useState=function(F){return A.H.useState(F)},jt.useSyncExternalStore=function(F,J,Q){return A.H.useSyncExternalStore(F,J,Q)},jt.useTransition=function(){return A.H.useTransition()},jt.version="19.1.1",jt}var _D;function V2(){return _D||(_D=1,U2.exports=E0e()),U2.exports}var E=V2();const Gr=vD(E),Vv=w0e({__proto__:null,default:Gr},[E]);var q2={exports:{}},_o={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ED;function S0e(){if(ED)return _o;ED=1;var e=V2();function r(c){var u="https://react.dev/errors/"+c;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(r(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(c,u,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:c,containerInfo:u,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return _o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,_o.createPortal=function(c,u){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(r(299));return i(c,u,null,d)},_o.flushSync=function(c){var u=s.T,d=o.p;try{if(s.T=null,o.p=2,c)return c()}finally{s.T=u,o.p=d,o.d.f()}},_o.preconnect=function(c,u){typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,o.d.C(c,u))},_o.prefetchDNS=function(c){typeof c=="string"&&o.d.D(c)},_o.preinit=function(c,u){if(typeof c=="string"&&u&&typeof u.as=="string"){var d=u.as,h=l(d,u.crossOrigin),p=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;d==="style"?o.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:p,fetchPriority:g}):d==="script"&&o.d.X(c,{crossOrigin:h,integrity:p,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},_o.preinitModule=function(c,u){if(typeof c=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var d=l(u.as,u.crossOrigin);o.d.M(c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&o.d.M(c)},_o.preload=function(c,u){if(typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var d=u.as,h=l(d,u.crossOrigin);o.d.L(c,d,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},_o.preloadModule=function(c,u){if(typeof c=="string")if(u){var d=l(u.as,u.crossOrigin);o.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else o.d.m(c)},_o.requestFormReset=function(c){o.d.r(c)},_o.unstable_batchedUpdates=function(c,u){return c(u)},_o.useFormState=function(c,u,d){return s.H.useFormState(c,u,d)},_o.useFormStatus=function(){return s.H.useHostTransitionStatus()},_o.version="19.1.1",_o}var SD;function CD(){if(SD)return q2.exports;SD=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),q2.exports=S0e(),q2.exports}var ji=CD();const TD=vD(ji);function C0e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function ba(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return C0e(e,r,n);throw Error("Wrong number of arguments")}function Ef(...e){return ba(T0e,e)}const T0e=(e,r)=>e.length>=r;function mt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function nt(e,r){if(!e)throw new Error(r??"Invariant failed")}function Ga(e){throw new Error(`NonExhaustive value: ${e}`)}function cr(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}const{min:A0e,max:N0e}=Math,yd=(e,r=0,n=1)=>A0e(N0e(r,e),n),Y2=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=yd(e[r],0,255)):r===3&&(e[r]=yd(e[r],0,1));return e},AD={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])AD[`[object ${e}]`]=e.toLowerCase();function Ft(e){return AD[Object.prototype.toString.call(e)]||"object"}const Mt=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ft(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),Sf=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:qv,min:ND,max:RD}=Math,Ka=e=>Math.round(e*100)/100,W2=e=>Math.round(e*100)/100,Pl=qv*2,X2=qv/3,R0e=qv/180,$0e=180/qv;function $D(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Ct={format:{},autodetect:[]};let je=class{constructor(...r){const n=this;if(Ft(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=Sf(r),a=!1;if(!o){a=!0,Ct.sorted||(Ct.autodetect=Ct.autodetect.sort((i,s)=>s.p-i.p),Ct.sorted=!0);for(let i of Ct.autodetect)if(o=i.test(...r),o)break}if(Ct.format[o]){const i=Ct.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=Y2(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Ft(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const P0e="3.1.2",Tt=(...e)=>new je(...e);Tt.version=P0e;const Cf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},M0e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,O0e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,PD=e=>{if(e.match(M0e)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(O0e)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:Yv}=Math,MD=(...e)=>{let[r,n,o,a]=Mt(e,"rgba"),i=Sf(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Yv(r),n=Yv(n),o=Yv(o);let l="000000"+(r<<16|n<<8|o).toString(16);l=l.substr(l.length-6);let c="0"+Yv(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${l}${c}`;case"argb":return`#${c}${l}`;default:return`#${l}`}};je.prototype.name=function(){const e=MD(this._rgb,"rgb");for(let r of Object.keys(Cf))if(Cf[r]===e)return r.toLowerCase();return e},Ct.format.named=e=>{if(e=e.toLowerCase(),Cf[e])return PD(Cf[e]);throw new Error("unknown color name: "+e)},Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&Cf[e.toLowerCase()])return"named"}}),je.prototype.alpha=function(e,r=!1){return e!==void 0&&Ft(e)==="number"?r?(this._rgb[3]=e,this):new je([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},je.prototype.clipped=function(){return this._rgb._clipped||!1};const Vs={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},D0e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Ml(e){const r=D0e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);Vs.labWhitePoint=e,Vs.Xn=r[0],Vs.Zn=r[1]}function p0(){return Vs.labWhitePoint}const G2=(...e)=>{e=Mt(e,"lab");const[r,n,o]=e,[a,i,s]=L0e(r,n,o),[l,c,u]=OD(a,i,s);return[l,c,u,e.length>3?e[3]:1]},L0e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:s,Yn:l,Zn:c}=Vs,u=(e+16)/116,d=.002*r+u,h=u-.005*n,p=d*d*d,g=h*h*h,y=p>o?p:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*h-16)/a,k=y*s,C=x*l,_=w*c;return[k,C,_]},K2=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},OD=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:s,Xn:l,Yn:c,Zn:u}=Vs,d=l*o.m00+c*o.m10+u*o.m20,h=l*o.m01+c*o.m11+u*o.m21,p=l*o.m02+c*o.m12+u*o.m22,g=s.X*o.m00+s.Y*o.m10+s.Z*o.m20,y=s.X*o.m01+s.Y*o.m11+s.Z*o.m21,x=s.X*o.m02+s.Y*o.m12+s.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(y/h),C=(e*o.m02+r*o.m12+n*o.m22)*(x/p),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,A=w*a.m02+k*a.m12+C*a.m22,N=K2(_*i.m00+T*i.m10+A*i.m20),$=K2(_*i.m01+T*i.m11+A*i.m21),R=K2(_*i.m02+T*i.m12+A*i.m22);return[N*255,$*255,R*255]},Z2=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),[i,s,l]=DD(r,n,o),[c,u,d]=I0e(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function I0e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:s,kK:l}=Vs,c=e/o,u=r/a,d=n/i,h=c>s?Math.pow(c,1/3):(l*c+16)/116,p=u>s?Math.pow(u,1/3):(l*u+16)/116,g=d>s?Math.pow(d,1/3):(l*d+16)/116;return[116*p-16,500*(h-p),200*(p-g)]}function Q2(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const DD=(e,r,n)=>{e=Q2(e/255),r=Q2(r/255),n=Q2(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:s,Yn:l,Zn:c,As:u,Bs:d,Cs:h}=Vs;let p=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,y=e*o.m02+r*o.m12+n*o.m22;const x=s*a.m00+l*a.m10+c*a.m20,w=s*a.m01+l*a.m11+c*a.m21,k=s*a.m02+l*a.m12+c*a.m22;let C=p*a.m00+g*a.m10+y*a.m20,_=p*a.m01+g*a.m11+y*a.m21,T=p*a.m02+g*a.m12+y*a.m22;return C*=x/u,_*=w/d,T*=k/h,p=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,y=C*i.m02+_*i.m12+T*i.m22,[p,g,y]};je.prototype.lab=function(){return Z2(this._rgb)},Object.assign(Tt,{lab:(...e)=>new je(...e,"lab"),getLabWhitePoint:p0,setLabWhitePoint:Ml}),Ct.format.lab=G2,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"lab"),Ft(e)==="array"&&e.length===3)return"lab"}}),je.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=Vs.Kn*e,new je(n,"lab").alpha(r.alpha(),!0)},je.prototype.brighten=function(e=1){return this.darken(-e)},je.prototype.darker=je.prototype.darken,je.prototype.brighter=je.prototype.brighten,je.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:z0e}=Math,j0e=1e-7,B0e=20;je.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ft(e)==="number"){if(e===0)return new je([0,0,0,this._rgb[3]],"rgb");if(e===1)return new je([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=B0e;const a=(s,l)=>{const c=s.interpolate(l,.5,r),u=c.luminance();return Math.abs(e-u)<j0e||!o--?c:u>e?a(s,c):a(c,l)},i=(n>e?a(new je([0,0,0]),this):a(this,new je([255,255,255]))).rgb();return new je([...i,this._rgb[3]])}return F0e(...this._rgb.slice(0,3))};const F0e=(e,r,n)=>(e=J2(e),r=J2(r),n=J2(n),.2126*e+.7152*r+.0722*n),J2=e=>(e/=255,e<=.03928?e/12.92:z0e((e+.055)/1.055,2.4)),Eo={},Tf=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Eo[a]&&!o.length&&(a=Object.keys(Eo)[0]),!Eo[a])throw new Error(`interpolation mode ${a} is not defined`);return Ft(e)!=="object"&&(e=new je(e)),Ft(r)!=="object"&&(r=new je(r)),Eo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};je.prototype.mix=je.prototype.interpolate=function(e,r=.5,...n){return Tf(this,e,r,...n)},je.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new je([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:H0e,cos:U0e}=Math,LD=(...e)=>{let[r,n,o]=Mt(e,"lch");return isNaN(o)&&(o=0),o=o*R0e,[r,U0e(o)*n,H0e(o)*n]},e4=(...e)=>{e=Mt(e,"lch");const[r,n,o]=e,[a,i,s]=LD(r,n,o),[l,c,u]=G2(a,i,s);return[l,c,u,e.length>3?e[3]:1]},V0e=(...e)=>{const r=$D(Mt(e,"hcl"));return e4(...r)},{sqrt:q0e,atan2:Y0e,round:W0e}=Math,ID=(...e)=>{const[r,n,o]=Mt(e,"lab"),a=q0e(n*n+o*o);let i=(Y0e(o,n)*$0e+360)%360;return W0e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},t4=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),[i,s,l]=Z2(r,n,o),[c,u,d]=ID(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};je.prototype.lch=function(){return t4(this._rgb)},je.prototype.hcl=function(){return $D(t4(this._rgb))},Object.assign(Tt,{lch:(...e)=>new je(...e,"lch"),hcl:(...e)=>new je(...e,"hcl")}),Ct.format.lch=e4,Ct.format.hcl=V0e,["lch","hcl"].forEach(e=>Ct.autodetect.push({p:2,test:(...r)=>{if(r=Mt(r,e),Ft(r)==="array"&&r.length===3)return e}})),je.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=Vs.Kn*e,n[1]<0&&(n[1]=0),new je(n,"lch").alpha(r.alpha(),!0)},je.prototype.desaturate=function(e=1){return this.saturate(-e)},je.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const s=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(s>-1){if(Ft(r)=="string")switch(r.charAt(0)){case"+":i[s]+=+r;break;case"-":i[s]+=+r;break;case"*":i[s]*=+r.substr(1);break;case"/":i[s]/=+r.substr(1);break;default:i[s]=+r}else if(Ft(r)==="number")i[s]=r;else throw new Error("unsupported value for Color.set");const l=new je(i,o);return n?(this._rgb=l._rgb,this):l}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},je.prototype.tint=function(e=.5,...r){return Tf(this,"white",e,...r)},je.prototype.shade=function(e=.5,...r){return Tf(this,"black",e,...r)};const X0e=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Eo.rgb=X0e;const{sqrt:r4,pow:Af}=Math,G0e=(e,r,n)=>{const[o,a,i]=e._rgb,[s,l,c]=r._rgb;return new je(r4(Af(o,2)*(1-n)+Af(s,2)*n),r4(Af(a,2)*(1-n)+Af(l,2)*n),r4(Af(i,2)*(1-n)+Af(c,2)*n),"rgb")};Eo.lrgb=G0e;const K0e=(e,r,n)=>{const o=e.lab(),a=r.lab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Eo.lab=K0e;const Nf=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let s,l,c,u,d,h;(o.substr(0,1)==="h"||o==="oklch")&&([s,c,d]=a,[l,u,h]=i);let p,g,y,x;return!isNaN(s)&&!isNaN(l)?(l>s&&l-s>180?x=l-(s+360):l<s&&s-l>180?x=l+360-s:x=l-s,g=s+n*x):isNaN(s)?isNaN(l)?g=Number.NaN:(g=l,(d==1||d==0)&&o!="hsv"&&(p=u)):(g=s,(h==1||h==0)&&o!="hsv"&&(p=c)),p===void 0&&(p=c+n*(u-c)),y=d+n*(h-d),o==="oklch"?new je([y,p,g],o):new je([g,p,y],o)},zD=(e,r,n)=>Nf(e,r,n,"lch");Eo.lch=zD,Eo.hcl=zD;const Z0e=e=>{if(Ft(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},Q0e=(...e)=>{const[r,n,o]=Mt(e,"rgb");return(r<<16)+(n<<8)+o};je.prototype.num=function(){return Q0e(this._rgb)},Object.assign(Tt,{num:(...e)=>new je(...e,"num")}),Ct.format.num=Z0e,Ct.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const J0e=(e,r,n)=>{const o=e.num(),a=r.num();return new je(o+n*(a-o),"num")};Eo.num=J0e;const{floor:e1e}=Math,t1e=(...e)=>{e=Mt(e,"hcg");let[r,n,o]=e,a,i,s;o=o*255;const l=n*255;if(n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=e1e(r),u=r-c,d=o*(1-n),h=d+l*(1-u),p=d+l*u,g=d+l;switch(c){case 0:[a,i,s]=[g,p,d];break;case 1:[a,i,s]=[h,g,d];break;case 2:[a,i,s]=[d,g,p];break;case 3:[a,i,s]=[d,h,g];break;case 4:[a,i,s]=[p,d,g];break;case 5:[a,i,s]=[g,d,h];break}}return[a,i,s,e.length>3?e[3]:1]},r1e=(...e)=>{const[r,n,o]=Mt(e,"rgb"),a=ND(r,n,o),i=RD(r,n,o),s=i-a,l=s*100/255,c=a/(255-s)*100;let u;return s===0?u=Number.NaN:(r===i&&(u=(n-o)/s),n===i&&(u=2+(o-r)/s),o===i&&(u=4+(r-n)/s),u*=60,u<0&&(u+=360)),[u,l,c]};je.prototype.hcg=function(){return r1e(this._rgb)};const n1e=(...e)=>new je(...e,"hcg");Tt.hcg=n1e,Ct.format.hcg=t1e,Ct.autodetect.push({p:1,test:(...e)=>{if(e=Mt(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const o1e=(e,r,n)=>Nf(e,r,n,"hcg");Eo.hcg=o1e;const{cos:Rf}=Math,a1e=(...e)=>{e=Mt(e,"hsi");let[r,n,o]=e,a,i,s;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(s=(1-n)/3,a=(1+n*Rf(Pl*r)/Rf(X2-Pl*r))/3,i=1-(s+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*Rf(Pl*r)/Rf(X2-Pl*r))/3,s=1-(a+i)):(r-=2/3,i=(1-n)/3,s=(1+n*Rf(Pl*r)/Rf(X2-Pl*r))/3,a=1-(i+s)),a=yd(o*a*3),i=yd(o*i*3),s=yd(o*s*3),[a*255,i*255,s*255,e.length>3?e[3]:1]},{min:i1e,sqrt:s1e,acos:l1e}=Math,c1e=(...e)=>{let[r,n,o]=Mt(e,"rgb");r/=255,n/=255,o/=255;let a;const i=i1e(r,n,o),s=(r+n+o)/3,l=s>0?1-i/s:0;return l===0?a=NaN:(a=(r-n+(r-o))/2,a/=s1e((r-n)*(r-n)+(r-o)*(n-o)),a=l1e(a),o>n&&(a=Pl-a),a/=Pl),[a*360,l,s]};je.prototype.hsi=function(){return c1e(this._rgb)};const u1e=(...e)=>new je(...e,"hsi");Tt.hsi=u1e,Ct.format.hsi=a1e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const d1e=(e,r,n)=>Nf(e,r,n,"hsi");Eo.hsi=d1e;const n4=(...e)=>{e=Mt(e,"hsl");const[r,n,o]=e;let a,i,s;if(n===0)a=i=s=o*255;else{const l=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,h=r/360;l[0]=h+1/3,l[1]=h,l[2]=h-1/3;for(let p=0;p<3;p++)l[p]<0&&(l[p]+=1),l[p]>1&&(l[p]-=1),6*l[p]<1?c[p]=d+(u-d)*6*l[p]:2*l[p]<1?c[p]=u:3*l[p]<2?c[p]=d+(u-d)*(2/3-l[p])*6:c[p]=d;[a,i,s]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,s,e[3]]:[a,i,s,1]},jD=(...e)=>{e=Mt(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=ND(r,n,o),i=RD(r,n,o),s=(i+a)/2;let l,c;return i===a?(l=0,c=Number.NaN):l=s<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,l,s,e[3]]:[c,l,s]};je.prototype.hsl=function(){return jD(this._rgb)};const h1e=(...e)=>new je(...e,"hsl");Tt.hsl=h1e,Ct.format.hsl=n4,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const f1e=(e,r,n)=>Nf(e,r,n,"hsl");Eo.hsl=f1e;const{floor:p1e}=Math,m1e=(...e)=>{e=Mt(e,"hsv");let[r,n,o]=e,a,i,s;if(o*=255,n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const l=p1e(r),c=r-l,u=o*(1-n),d=o*(1-n*c),h=o*(1-n*(1-c));switch(l){case 0:[a,i,s]=[o,h,u];break;case 1:[a,i,s]=[d,o,u];break;case 2:[a,i,s]=[u,o,h];break;case 3:[a,i,s]=[u,d,o];break;case 4:[a,i,s]=[h,u,o];break;case 5:[a,i,s]=[o,u,d];break}}return[a,i,s,e.length>3?e[3]:1]},{min:g1e,max:y1e}=Math,b1e=(...e)=>{e=Mt(e,"rgb");let[r,n,o]=e;const a=g1e(r,n,o),i=y1e(r,n,o),s=i-a;let l,c,u;return u=i/255,i===0?(l=Number.NaN,c=0):(c=s/i,r===i&&(l=(n-o)/s),n===i&&(l=2+(o-r)/s),o===i&&(l=4+(r-n)/s),l*=60,l<0&&(l+=360)),[l,c,u]};je.prototype.hsv=function(){return b1e(this._rgb)};const v1e=(...e)=>new je(...e,"hsv");Tt.hsv=v1e,Ct.format.hsv=m1e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const x1e=(e,r,n)=>Nf(e,r,n,"hsv");Eo.hsv=x1e;function Wv(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(s=>[s]));let o=r[0].length,a=r[0].map((s,l)=>r.map(c=>c[l])),i=e.map(s=>a.map(l=>Array.isArray(s)?s.reduce((c,u,d)=>c+u*(l[d]||0),0):l.reduce((c,u)=>c+u*s,0)));return n===1&&(i=i[0]),o===1?i.map(s=>s[0]):i}const o4=(...e)=>{e=Mt(e,"lab");const[r,n,o,...a]=e,[i,s,l]=w1e([r,n,o]),[c,u,d]=OD(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function w1e(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Wv(n,e);return Wv(r,o.map(a=>a**3))}const a4=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),i=DD(r,n,o);return[...k1e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function k1e(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Wv(r,e);return Wv(n,o.map(a=>Math.cbrt(a)))}je.prototype.oklab=function(){return a4(this._rgb)},Object.assign(Tt,{oklab:(...e)=>new je(...e,"oklab")}),Ct.format.oklab=o4,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const _1e=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Eo.oklab=_1e;const E1e=(e,r,n)=>Nf(e,r,n,"oklch");Eo.oklch=E1e;const{pow:i4,sqrt:s4,PI:l4,cos:BD,sin:FD,atan2:S1e}=Math,C1e=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(h,p){return h+p});if(n.forEach((h,p)=>{n[p]*=a}),e=e.map(h=>new je(h)),r==="lrgb")return T1e(e,n);const i=e.shift(),s=i.get(r),l=[];let c=0,u=0;for(let h=0;h<s.length;h++)if(s[h]=(s[h]||0)*n[0],l.push(isNaN(s[h])?0:n[0]),r.charAt(h)==="h"&&!isNaN(s[h])){const p=s[h]/180*l4;c+=BD(p)*n[0],u+=FD(p)*n[0]}let d=i.alpha()*n[0];e.forEach((h,p)=>{const g=h.get(r);d+=h.alpha()*n[p+1];for(let y=0;y<s.length;y++)if(!isNaN(g[y]))if(l[y]+=n[p+1],r.charAt(y)==="h"){const x=g[y]/180*l4;c+=BD(x)*n[p+1],u+=FD(x)*n[p+1]}else s[y]+=g[y]*n[p+1]});for(let h=0;h<s.length;h++)if(r.charAt(h)==="h"){let p=S1e(u/l[h],c/l[h])/l4*180;for(;p<0;)p+=360;for(;p>=360;)p-=360;s[h]=p}else s[h]=s[h]/l[h];return d/=o,new je(s,r).alpha(d>.99999?1:d,!0)},T1e=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a<e.length;a++){const i=e[a],s=r[a]/n,l=i._rgb;o[0]+=i4(l[0],2)*s,o[1]+=i4(l[1],2)*s,o[2]+=i4(l[2],2)*s,o[3]+=l[3]*s}return o[0]=s4(o[0]),o[1]=s4(o[1]),o[2]=s4(o[2]),o[3]>.9999999&&(o[3]=1),new je(Y2(o))},{pow:A1e}=Math;function Xv(e){let r="rgb",n=Tt("#ccc"),o=0,a=[0,1],i=[],s=[0,0],l=!1,c=[],u=!1,d=0,h=1,p=!1,g={},y=!0,x=1;const w=function($){if($=$||["#fff","#000"],$&&Ft($)==="string"&&Tt.brewer&&Tt.brewer[$.toLowerCase()]&&($=Tt.brewer[$.toLowerCase()]),Ft($)==="array"){$.length===1&&($=[$[0],$[0]]),$=$.slice(0);for(let R=0;R<$.length;R++)$[R]=Tt($[R]);i.length=0;for(let R=0;R<$.length;R++)i.push(R/($.length-1))}return A(),c=$},k=function($){if(l!=null){const R=l.length-1;let M=0;for(;M<R&&$>=l[M];)M++;return M-1}return 0};let C=$=>$,_=$=>$;const T=function($,R){let M,O;if(R==null&&(R=!1),isNaN($)||$===null)return n;R?O=$:l&&l.length>2?O=k($)/(l.length-2):h!==d?O=($-d)/(h-d):O=1,O=_(O),R||(O=C(O)),x!==1&&(O=A1e(O,x)),O=s[0]+O*(1-s[0]-s[1]),O=yd(O,0,1);const B=Math.floor(O*1e4);if(y&&g[B])M=g[B];else{if(Ft(c)==="array")for(let I=0;I<i.length;I++){const Y=i[I];if(O<=Y){M=c[I];break}if(O>=Y&&I===i.length-1){M=c[I];break}if(O>Y&&O<i[I+1]){O=(O-Y)/(i[I+1]-Y),M=Tt.interpolate(c[I],c[I+1],O,r);break}}else Ft(c)==="function"&&(M=c(O));y&&(g[B]=M)}return M};var A=()=>g={};w(e);const N=function($){const R=Tt(T($));return u&&R[u]?R[u]():R};return N.classes=function($){if($!=null){if(Ft($)==="array")l=$,a=[$[0],$[$.length-1]];else{const R=Tt.analyze(a);$===0?l=[R.min,R.max]:l=Tt.limits(R,"e",$)}return N}return l},N.domain=function($){if(!arguments.length)return a;d=$[0],h=$[$.length-1],i=[];const R=c.length;if($.length===R&&d!==h)for(let M of Array.from($))i.push((M-d)/(h-d));else{for(let M=0;M<R;M++)i.push(M/(R-1));if($.length>2){const M=$.map((B,I)=>I/($.length-1)),O=$.map(B=>(B-d)/(h-d));O.every((B,I)=>M[I]===B)||(_=B=>{if(B<=0||B>=1)return B;let I=0;for(;B>=O[I+1];)I++;const Y=(B-O[I])/(O[I+1]-O[I]);return M[I]+Y*(M[I+1]-M[I])})}}return a=[d,h],N},N.mode=function($){return arguments.length?(r=$,A(),N):r},N.range=function($,R){return w($),N},N.out=function($){return u=$,N},N.spread=function($){return arguments.length?(o=$,N):o},N.correctLightness=function($){return $==null&&($=!0),p=$,A(),p?C=function(R){const M=T(0,!0).lab()[0],O=T(1,!0).lab()[0],B=M>O;let I=T(R,!0).lab()[0];const Y=M+(O-M)*R;let D=I-Y,V=0,L=1,U=20;for(;Math.abs(D)>.01&&U-- >0;)(function(){return B&&(D*=-1),D<0?(V=R,R+=(L-R)*.5):(L=R,R+=(V-R)*.5),I=T(R,!0).lab()[0],D=I-Y})();return R}:C=R=>R,N},N.padding=function($){return $!=null?(Ft($)==="number"&&($=[$,$]),s=$,N):s},N.colors=function($,R){arguments.length<2&&(R="hex");let M=[];if(arguments.length===0)M=c.slice(0);else if($===1)M=[N(.5)];else if($>1){const O=a[0],B=a[1]-O;M=N1e(0,$).map(I=>N(O+I/($-1)*B))}else{e=[];let O=[];if(l&&l.length>2)for(let B=1,I=l.length,Y=1<=I;Y?B<I:B>I;Y?B++:B--)O.push((l[B-1]+l[B])*.5);else O=a;M=O.map(B=>N(B))}return Tt[R]&&(M=M.map(O=>O[R]())),M},N.cache=function($){return $!=null?(y=$,N):y},N.gamma=function($){return $!=null?(x=$,N):x},N.nodata=function($){return $!=null?(n=Tt($),N):n},N}function N1e(e,r,n){let o=[],a=e<r,i=r;for(let s=e;a?s<i:s>i;a?s++:s--)o.push(s);return o}const R1e=function(e){let r=[1,1];for(let n=1;n<e;n++){let o=[1];for(let a=1;a<=r.length;a++)o[a]=(r[a]||0)+r[a-1];r=o}return r},$1e=function(e){let r,n,o,a;if(e=e.map(i=>new je(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>n[l]+i*(o[l]-n[l]));return new je(s,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>(1-i)*(1-i)*n[l]+2*(1-i)*i*o[l]+i*i*a[l]);return new je(s,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(s=>s.lab()),r=function(s){const l=[0,1,2].map(c=>(1-s)*(1-s)*(1-s)*n[c]+3*(1-s)*(1-s)*s*o[c]+3*(1-s)*s*s*a[c]+s*s*s*i[c]);return new je(l,"lab")}}else if(e.length>=5){let i,s,l;i=e.map(c=>c.lab()),l=e.length-1,s=R1e(l),r=function(c){const u=1-c,d=[0,1,2].map(h=>i.reduce((p,g,y)=>p+s[y]*u**(l-y)*c**y*g[h],0));return new je(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},P1e=e=>{const r=$1e(e);return r.scale=()=>Xv(r),r},{round:HD}=Math;je.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(HD)},je.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:HD(r):r)},Object.assign(Tt,{rgb:(...e)=>new je(...e,"rgb")}),Ct.format.rgb=(...e)=>{const r=Mt(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Ct.autodetect.push({p:3,test:(...e)=>{if(e=Mt(e,"rgba"),Ft(e)==="array"&&(e.length===3||e.length===4&&Ft(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Bi=(e,r,n)=>{if(!Bi[n])throw new Error("unknown blend mode "+n);return Bi[n](e,r)},Hc=e=>(r,n)=>{const o=Tt(n).rgb(),a=Tt(r).rgb();return Tt.rgb(e(o,a))},Uc=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},M1e=e=>e,O1e=(e,r)=>e*r/255,D1e=(e,r)=>e>r?r:e,L1e=(e,r)=>e>r?e:r,I1e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),z1e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),j1e=(e,r)=>255*(1-(1-r/255)/(e/255)),B1e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Bi.normal=Hc(Uc(M1e)),Bi.multiply=Hc(Uc(O1e)),Bi.screen=Hc(Uc(I1e)),Bi.overlay=Hc(Uc(z1e)),Bi.darken=Hc(Uc(D1e)),Bi.lighten=Hc(Uc(L1e)),Bi.dodge=Hc(Uc(B1e)),Bi.burn=Hc(Uc(j1e));const{pow:F1e,sin:H1e,cos:U1e}=Math;function V1e(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,s;Ft(a)==="array"?s=a[1]-a[0]:(s=0,a=[a,a]);const l=function(c){const u=Pl*((e+120)/360+r*c),d=F1e(a[0]+s*c,o),p=(i!==0?n[0]+c*i:n)*d*(1-d)/2,g=U1e(u),y=H1e(u),x=d+p*(-.14861*g+1.78277*y),w=d+p*(-.29227*g-.90649*y),k=d+p*(1.97294*g);return Tt(Y2([x*255,w*255,k*255,1]))};return l.start=function(c){return c==null?e:(e=c,l)},l.rotations=function(c){return c==null?r:(r=c,l)},l.gamma=function(c){return c==null?o:(o=c,l)},l.hue=function(c){return c==null?n:(n=c,Ft(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,l)},l.lightness=function(c){return c==null?a:(Ft(c)==="array"?(a=c,s=c[1]-c[0]):(a=[c,c],s=0),l)},l.scale=()=>Tt.scale(l),l.hue(n),l}const q1e="0123456789abcdef",{floor:Y1e,random:W1e}=Math,X1e=()=>{let e="#";for(let r=0;r<6;r++)e+=q1e.charAt(Y1e(W1e()*16));return new je(e,"hex")},{log:UD,pow:G1e,floor:K1e,abs:Z1e}=Math;function VD(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ft(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ft(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,o<n.min&&(n.min=o),o>n.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>qD(n,o,a),n}function qD(e,r="equal",n=7){Ft(e)=="array"&&(e=VD(e));const{min:o,max:a}=e,i=e.values.sort((l,c)=>l-c);if(n===1)return[o,a];const s=[];if(r.substr(0,1)==="c"&&(s.push(o),s.push(a)),r.substr(0,1)==="e"){s.push(o);for(let l=1;l<n;l++)s.push(o+l/n*(a-o));s.push(a)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const l=Math.LOG10E*UD(o),c=Math.LOG10E*UD(a);s.push(o);for(let u=1;u<n;u++)s.push(G1e(10,l+u/n*(c-l)));s.push(a)}else if(r.substr(0,1)==="q"){s.push(o);for(let l=1;l<n;l++){const c=(i.length-1)*l/n,u=K1e(c);if(u===c)s.push(i[u]);else{const d=c-u;s.push(i[u]*(1-d)+i[u+1]*d)}}s.push(a)}else if(r.substr(0,1)==="k"){let l;const c=i.length,u=new Array(c),d=new Array(n);let h=!0,p=0,g=null;g=[],g.push(o);for(let w=1;w<n;w++)g.push(o+w/n*(a-o));for(g.push(a);h;){for(let k=0;k<n;k++)d[k]=0;for(let k=0;k<c;k++){const C=i[k];let _=Number.MAX_VALUE,T;for(let A=0;A<n;A++){const N=Z1e(g[A]-C);N<_&&(_=N,T=A),d[T]++,u[k]=T}}const w=new Array(n);for(let k=0;k<n;k++)w[k]=null;for(let k=0;k<c;k++)l=u[k],w[l]===null?w[l]=i[k]:w[l]+=i[k];for(let k=0;k<n;k++)w[k]*=1/d[k];h=!1;for(let k=0;k<n;k++)if(w[k]!==g[k]){h=!0;break}g=w,p++,p>200&&(h=!1)}const y={};for(let w=0;w<n;w++)y[w]=[];for(let w=0;w<c;w++)l=u[w],y[l].push(i[w]);let x=[];for(let w=0;w<n;w++)x.push(y[w][0]),x.push(y[w][y[w].length-1]);x=x.sort((w,k)=>w-k),s.push(x[0]);for(let w=1;w<x.length;w+=2){const k=x[w];!isNaN(k)&&s.indexOf(k)===-1&&s.push(k)}}return s}const Q1e=(e,r)=>{e=new je(e),r=new je(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/**
 * @license
 *
 * The APCA contrast prediction algorithm is based of the formulas published
 * in the APCA-1.0.98G specification by Myndex. The specification is available at:
 * https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
 *
 * Note that the APCA implementation is still beta, so please update to
 * future versions of chroma.js when they become available.
 *
 * You can read more about the APCA Readability Criterion at
 * https://readtech.org/ARC/
 */const YD=.027,J1e=5e-4,eye=.1,WD=1.14,Gv=.022,XD=1.414,tye=(e,r)=>{e=new je(e),r=new je(r),e.alpha()<1&&(e=Tf(r,e,e.alpha(),"rgb"));const n=GD(...e.rgb()),o=GD(...r.rgb()),a=n>=Gv?n:n+Math.pow(Gv-n,XD),i=o>=Gv?o:o+Math.pow(Gv-o,XD),s=Math.pow(i,.56)-Math.pow(a,.57),l=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)<J1e?0:a<i?s*WD:l*WD;return(Math.abs(c)<eye?0:c>0?c-YD:c+YD)*100};function GD(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Ol,pow:fn,min:rye,max:nye,atan2:KD,abs:ZD,cos:Kv,sin:QD,exp:oye,PI:JD}=Math;function aye(e,r,n=1,o=1,a=1){var i=function(z){return 360*z/(2*JD)},s=function(z){return 2*JD*z/360};e=new je(e),r=new je(r);const[l,c,u]=Array.from(e.lab()),[d,h,p]=Array.from(r.lab()),g=(l+d)/2,y=Ol(fn(c,2)+fn(u,2)),x=Ol(fn(h,2)+fn(p,2)),w=(y+x)/2,k=.5*(1-Ol(fn(w,7)/(fn(w,7)+fn(25,7)))),C=c*(1+k),_=h*(1+k),T=Ol(fn(C,2)+fn(u,2)),A=Ol(fn(_,2)+fn(p,2)),N=(T+A)/2,$=i(KD(u,C)),R=i(KD(p,_)),M=$>=0?$:$+360,O=R>=0?R:R+360,B=ZD(M-O)>180?(M+O+360)/2:(M+O)/2,I=1-.17*Kv(s(B-30))+.24*Kv(s(2*B))+.32*Kv(s(3*B+6))-.2*Kv(s(4*B-63));let Y=O-M;Y=ZD(Y)<=180?Y:O<=M?Y+360:Y-360,Y=2*Ol(T*A)*QD(s(Y)/2);const D=d-l,V=A-T,L=1+.015*fn(g-50,2)/Ol(20+fn(g-50,2)),U=1+.045*N,q=1+.015*N*I,X=30*oye(-fn((B-275)/25,2)),J=-(2*Ol(fn(N,7)/(fn(N,7)+fn(25,7))))*QD(2*s(X)),Q=Ol(fn(D/(n*L),2)+fn(V/(o*U),2)+fn(Y/(a*q),2)+J*(V/(o*U))*(Y/(a*q)));return nye(0,rye(100,Q))}function iye(e,r,n="lab"){e=new je(e),r=new je(r);const o=e.get(n),a=r.get(n);let i=0;for(let s in o){const l=(o[s]||0)-(a[s]||0);i+=l*l}return Math.sqrt(i)}const sye=(...e)=>{try{return new je(...e),!0}catch{return!1}},lye={cool(){return Xv([Tt.hsl(180,1,.9),Tt.hsl(250,.7,.4)])},hot(){return Xv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},c4={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},eL=Object.keys(c4),tL=new Map(eL.map(e=>[e.toLowerCase(),e])),cye=typeof Proxy=="function"?new Proxy(c4,{get(e,r){const n=r.toLowerCase();if(tL.has(n))return e[tL.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(eL)}}):c4,uye=(...e)=>{e=Mt(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:rL}=Math,dye=(...e)=>{let[r,n,o]=Mt(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-rL(r,rL(n,o)),i=a<1?1/(1-a):0,s=(1-r-a)*i,l=(1-n-a)*i,c=(1-o-a)*i;return[s,l,c,a]};je.prototype.cmyk=function(){return dye(this._rgb)},Object.assign(Tt,{cmyk:(...e)=>new je(...e,"cmyk")}),Ct.format.cmyk=uye,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const hye=(...e)=>{const r=Mt(e,"hsla");let n=Sf(e)||"lsa";return r[0]=Ka(r[0]||0)+"deg",r[1]=Ka(r[1]*100)+"%",r[2]=Ka(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},fye=(...e)=>{const r=Mt(e,"lab");let n=Sf(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=Ka(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},pye=(...e)=>{const r=Mt(e,"lch");let n=Sf(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},mye=(...e)=>{const r=Mt(e,"lab");return r[0]=Ka(r[0]*100)+"%",r[1]=W2(r[1]),r[2]=W2(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},nL=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),[i,s,l]=a4(r,n,o),[c,u,d]=ID(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},gye=(...e)=>{const r=Mt(e,"lch");return r[0]=Ka(r[0]*100)+"%",r[1]=W2(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:u4}=Math,yye=(...e)=>{const r=Mt(e,"rgba");let n=Sf(e)||"rgb";if(n.substr(0,3)==="hsl")return hye(jD(r),n);if(n.substr(0,3)==="lab"){const o=p0();Ml("d50");const a=fye(Z2(r),n);return Ml(o),a}if(n.substr(0,3)==="lch"){const o=p0();Ml("d50");const a=pye(t4(r),n);return Ml(o),a}return n.substr(0,5)==="oklab"?mye(a4(r)):n.substr(0,5)==="oklch"?gye(nL(r)):(r[0]=u4(r[0]),r[1]=u4(r[1]),r[2]=u4(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},oL=(...e)=>{e=Mt(e,"lch");const[r,n,o,...a]=e,[i,s,l]=LD(r,n,o),[c,u,d]=o4(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Dl=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Zv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Za=/\s*/.source,$f=/\s+/.source,d4=/\s*,\s*/.source,Qv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Pf=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,aL=new RegExp("^rgba?\\("+Za+[Dl,Dl,Dl].join($f)+Pf+"\\)$"),iL=new RegExp("^rgb\\("+Za+[Dl,Dl,Dl].join(d4)+Za+"\\)$"),sL=new RegExp("^rgba\\("+Za+[Dl,Dl,Dl,Fi].join(d4)+Za+"\\)$"),lL=new RegExp("^hsla?\\("+Za+[Qv,Zv,Zv].join($f)+Pf+"\\)$"),cL=new RegExp("^hsl?\\("+Za+[Qv,Zv,Zv].join(d4)+Za+"\\)$"),uL=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,dL=new RegExp("^lab\\("+Za+[Fi,Fi,Fi].join($f)+Pf+"\\)$"),hL=new RegExp("^lch\\("+Za+[Fi,Fi,Qv].join($f)+Pf+"\\)$"),fL=new RegExp("^oklab\\("+Za+[Fi,Fi,Fi].join($f)+Pf+"\\)$"),pL=new RegExp("^oklch\\("+Za+[Fi,Fi,Qv].join($f)+Pf+"\\)$"),{round:mL}=Math,Mf=e=>e.map((r,n)=>n<=2?yd(mL(r),0,255):r),pn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Bo=(e,r)=>e==="none"?r:e,h4=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Ct.format.named)try{return Ct.format.named(e)}catch{}if((r=e.match(aL))||(r=e.match(iL))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+pn(Bo(n[a],0),0,255);n=Mf(n);const o=r[4]!==void 0?+pn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(sL)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+pn(n[o],0,255);return n}if((r=e.match(lL))||(r=e.match(cL))){const n=r.slice(1,4);n[0]=+Bo(n[0].replace("deg",""),0),n[1]=+pn(Bo(n[1],0),0,100)*.01,n[2]=+pn(Bo(n[2],0),0,100)*.01;const o=Mf(n4(n)),a=r[4]!==void 0?+pn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(uL)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=n4(n);for(let a=0;a<3;a++)o[a]=mL(o[a]);return o[3]=+r[4],o}if(r=e.match(dL)){const n=r.slice(1,4);n[0]=pn(Bo(n[0],0),0,100),n[1]=pn(Bo(n[1],0),-125,125,!0),n[2]=pn(Bo(n[2],0),-125,125,!0);const o=p0();Ml("d50");const a=Mf(G2(n));Ml(o);const i=r[4]!==void 0?+pn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(hL)){const n=r.slice(1,4);n[0]=pn(n[0],0,100),n[1]=pn(Bo(n[1],0),0,150,!1),n[2]=+Bo(n[2].replace("deg",""),0);const o=p0();Ml("d50");const a=Mf(e4(n));Ml(o);const i=r[4]!==void 0?+pn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(fL)){const n=r.slice(1,4);n[0]=pn(Bo(n[0],0),0,1),n[1]=pn(Bo(n[1],0),-.4,.4,!0),n[2]=pn(Bo(n[2],0),-.4,.4,!0);const o=Mf(o4(n)),a=r[4]!==void 0?+pn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(pL)){const n=r.slice(1,4);n[0]=pn(Bo(n[0],0),0,1),n[1]=pn(Bo(n[1],0),0,.4,!1),n[2]=+Bo(n[2].replace("deg",""),0);const o=Mf(oL(n)),a=r[4]!==void 0?+pn(r[4],0,1):1;return o[3]=a,o}};h4.test=e=>aL.test(e)||lL.test(e)||dL.test(e)||hL.test(e)||fL.test(e)||pL.test(e)||iL.test(e)||sL.test(e)||cL.test(e)||uL.test(e)||e==="transparent",je.prototype.css=function(e){return yye(this._rgb,e)};const bye=(...e)=>new je(...e,"css");Tt.css=bye,Ct.format.css=h4,Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&h4.test(e))return"css"}}),Ct.format.gl=(...e)=>{const r=Mt(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const vye=(...e)=>new je(...e,"gl");Tt.gl=vye,je.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},je.prototype.hex=function(e){return MD(this._rgb,e)};const xye=(...e)=>new je(...e,"hex");Tt.hex=xye,Ct.format.hex=PD,Ct.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Jv}=Math,gL=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*Jv(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*Jv(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*Jv(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*Jv(o),a=255),[n,o,a,1]},{round:wye}=Math,kye=(...e)=>{const r=Mt(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const s=.4;let l;for(;i-a>s;){l=(i+a)*.5;const c=gL(l);c[2]/c[0]>=o/n?i=l:a=l}return wye(l)};je.prototype.temp=je.prototype.kelvin=je.prototype.temperature=function(){return kye(this._rgb)};const f4=(...e)=>new je(...e,"temp");Object.assign(Tt,{temp:f4,kelvin:f4,temperature:f4}),Ct.format.temp=Ct.format.kelvin=Ct.format.temperature=gL,je.prototype.oklch=function(){return nL(this._rgb)},Object.assign(Tt,{oklch:(...e)=>new je(...e,"oklch")}),Ct.format.oklch=oL,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Tt,{analyze:VD,average:C1e,bezier:P1e,blend:Bi,brewer:cye,Color:je,colors:Cf,contrast:Q1e,contrastAPCA:tye,cubehelix:V1e,deltaE:aye,distance:iye,input:Ct,interpolate:Tf,limits:qD,mix:Tf,random:X1e,scale:Xv,scales:lye,valid:sye});const p4=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],yL=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function _ye(e){const r=e.get("hsl.l");return p4.reduce((n,o)=>Math.abs(o-r)<Math.abs(n-r)?o:n)}function Eye(e){const r=Tt(e),n=_ye(r),o=p4.findIndex(i=>i===n),a=p4.map(i=>r.set("hsl.l",i)).map(i=>Tt(i)).map((i,s)=>{const l=yL[s]-yL[o];return l>=0?i.saturate(l):i.desaturate(l*-1)});return a[o]=Tt(e),{baseColorIndex:o,colors:a}}function Sye(e){return Eye(e).colors.map(r=>r.hex())}function Cye(...e){return ba(Tye,e)}function Tye(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function m4(...e){return ba(m0,e)}function m0(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Aye(e,r);if(e instanceof Map)return Nye(e,r);if(e instanceof Set)return Rye(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!m0(o,r[n]))return!1;return!0}function Aye(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!m0(o,r[n]))return!1;return!0}function Nye(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!m0(o,r.get(n)))return!1;return!0}function Rye(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(m0(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const bL={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},vL={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},xL={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},$ye={primary:bL,blue:bL,secondary:vL,sky:vL,muted:xL,slate:xL,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},Pye={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},wL={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},kL={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},_L={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},Mye={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:kL,gray:Pye,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:wL,primary:kL,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:_L,sky:_L,slate:wL},EL=60,SL=2,CL=1;function Oye(e){nt(Tt.valid(e),`Invalid color: ${e}`);const r=Sye(e),n=r[6],o=Dye(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function Dye(e){const r=Tt(e);let n=r.brighten(SL),o=r.darken(SL),a,i,s,l;do a=n,i=o,n=n.brighten(CL),o=o.darken(CL),s=Tt.contrastAPCA(r,n),l=Tt.contrastAPCA(r,o);while(Math.abs(s)<EL&&Math.abs(l)<EL&&(!m4(n,a)||!m4(o,i)));return Math.abs(s)>Math.abs(l)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Lye=["rectangle","person","browser","mobile","cylinder","storage","queue"],Iye={colors:Cye(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:$ye[e],relationships:Mye[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function g4(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function y4(e,r,n=".",o){if(!g4(r))return y4(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(a[i])?a[i]=[...s,...a[i]]:g4(s)&&g4(a[i])?a[i]=y4(s,a[i],(n?`${n}.`:"")+i.toString()):a[i]=s)}return a}function zye(e){return(...r)=>r.reduce((n,o)=>y4(n,o,""),{})}const jye=zye();function ex({size:e,padding:r,textSize:n,...o},a=b4.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const b4={theme:Iye,defaults:{color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}}};let TL=class bD{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new bD(b4);static from(...r){return Ef(r,1)?new bD(jye(...r,b4)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?cr(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=ex(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){if(this.isThemeColor(r))return this.theme.colors[r];if(!Tt.valid(r))throw new Error(`Invalid color value: "${r}"`);return cr(this,`compute-${r}`,()=>Oye(r))}equals(r){return r===this?!0:m4(this.config,r.config)}};function tx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vc(e){return typeof e=="string"}var v4={exports:{}},AL;function Bye(){if(AL)return v4.exports;AL=1;/*
 * @version    1.4.0
 * @date       2015-10-26
 * @stability  3 - Stable
 * @author     Lauri Rooden (https://github.com/litejs/natural-compare-lite)
 * @license    MIT License
 */var e=function(r,n){var o,a,i=1,s=0,l=0,c=String.alphabet;function u(d,h,p){if(p){for(o=h;p=u(d,o),p<76&&p>65;)++o;return+d.slice(h-1,o)}return p=c&&c.indexOf(d.charAt(h)),p>-1?p+76:(p=d.charCodeAt(h)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,s++),i=u(n,l++),a<76&&i<76&&a>66&&i>66&&(a=u(r,s,s),i=u(n,l,s=o),l=o),a!=i)return a<i?-1:1}return 0};try{v4.exports=e}catch{String.naturalCompare=e}return v4.exports}var Fye=Bye();const NL=tx(Fye);function rx(e,r){return e===r?0:Vc(e)?Vc(r)?NL(e,r):1:Vc(r)?-1:0}function RL(e=".",r=!1){return(n,o)=>{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),s=Math.min(a.length,i.length);for(let c=0;c<s;c++){const u=a[c],d=i[c],h=NL(u,d);if(h!==0)return h}const l=a.length-i.length;return r?-1*l:l}}function x4(e){return e!=null&&typeof e=="string"}function nx(e){const r=e.lastIndexOf(".");return r>0?e.slice(0,r):null}function g0(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const y0=e=>x4(e)?e:e.id;function Un(e,r){const n=y0(e);return r?y0(r).startsWith(n+"."):o=>{const a=y0(o);return n.startsWith(a+".")}}function $L(e,r){if(!r)return a=>$L(e,a);const n=y0(e),o=y0(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function PL(e,r){return n=>Un(e,n)}function ox(e){return(x4(e)?e:e.id).split(".").length}function b0(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;i<Math.min(n.length,o.length)-1&&n[i]===o[i];i++)a.push(n[i]);return a.length===0?null:a.join(".")}function bd(e){const r=e.split(".");return r.pop(),r.length===0?[]:r.reduce((n,o,a)=>a===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function Hye(e,r){let n=r;for(const o of e)Un(o,n)&&(n=o);return n!==r?n:null}function qc(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=Hye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function ML(e,r){if(!e||x4(e)){const o=e??"asc";return a=>ML(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;i<o.fqn.length;i++){const s=rx(o.fqn[i],a.fqn[i]);if(s!==0)return s}return 0}).map(({item:o})=>o)}var ax={},OL;function Uye(){return OL||(OL=1,ax.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",ax.SYMBOL_SUPPORT=typeof Symbol<"u"),ax}var w4,DL;function Vye(){if(DL)return w4;DL=1;function e(r){if(typeof r!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=r}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var r=arguments,n=r.length,o=0;return new e(function(){return o>=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},w4=e,w4}var k4,LL;function qye(){if(LL)return k4;LL=1;var e=Uye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return k4=function(a,i){var s,l,c,u,d;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,u=a.length;c<u;c++)i(a[c],c);return}if(typeof a.forEach=="function"){a.forEach(i);return}if(n&&Symbol.iterator in a&&typeof a.next!="function"&&(a=a[Symbol.iterator]()),typeof a.next=="function"){for(s=a,c=0;d=s.next(),d.done!==!0;)i(d.value,c),c++;return}for(l in a)a.hasOwnProperty(l)&&i(a[l],l)},k4}var _4,IL;function Yye(){if(IL)return _4;IL=1;var e=Vye(),r=qye();function n(){this.clear()}return n.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},n.prototype.enqueue=function(o){return this.items.push(o),++this.size},n.prototype.dequeue=function(){if(this.size){var o=this.items[this.offset];return++this.offset*2>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,s=0,l=this.items.length;i<l;i++,s++)o.call(a,this.items[i],s,this)},n.prototype.toArray=function(){return this.items.slice(this.offset)},n.prototype.values=function(){var o=this.items,a=this.offset;return new e(function(){if(a>=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var s=o[a];return a++,{value:[i++,s],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},_4=n,_4}var Wye=Yye();const E4=tx(Wye);var S4,zL;function Xye(){if(zL)return S4;zL=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},S4=e,S4}var Gye=Xye();const lo=tx(Gye);function ix(e){return e.summary??e.description}function sx(e){return e.description??e.summary}function Ll(e){return!!e}const vd="@group";function Kye(e){return e.kind===vd}function jL(e,r){return nt(typeof e=="string"&&e!=""),"@"+e+"."+r}function Zye(e){return e.startsWith("@")}function Qye(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function v0(e){return e.startsWith("step-")}function BL(e){if(!v0(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}const FL=-1,lx=0,x0=1,cx=2,C4=3,T4=4,A4=5,N4=6,HL=7,UL=8,VL=typeof self=="object"?self:globalThis,Jye=(e,r)=>{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,s]=r[a];switch(i){case lx:case FL:return n(s,a);case x0:{const l=n([],a);for(const c of s)l.push(o(c));return l}case cx:{const l=n({},a);for(const[c,u]of s)l[o(c)]=o(u);return l}case C4:return n(new Date(s),a);case T4:{const{source:l,flags:c}=s;return n(new RegExp(l,c),a)}case A4:{const l=n(new Map,a);for(const[c,u]of s)l.set(o(c),o(u));return l}case N4:{const l=n(new Set,a);for(const c of s)l.add(o(c));return l}case HL:{const{name:l,message:c}=s;return n(new VL[l](c),a)}case UL:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new VL[i](s),a)};return o},qL=e=>Jye(new Map,e)(0),Of="",{toString:ebe}={},{keys:tbe}=Object,w0=e=>{const r=typeof e;if(r!=="object"||!e)return[lx,r];const n=ebe.call(e).slice(8,-1);switch(n){case"Array":return[x0,Of];case"Object":return[cx,Of];case"Date":return[C4,Of];case"RegExp":return[T4,Of];case"Map":return[A4,Of];case"Set":return[N4,Of];case"DataView":return[x0,n]}return n.includes("Array")?[x0,n]:n.includes("Error")?[HL,n]:[cx,n]},ux=([e,r])=>e===lx&&(r==="function"||r==="symbol"),rbe=(e,r,n,o)=>{const a=(s,l)=>{const c=o.push(s)-1;return n.set(l,c),c},i=s=>{if(n.has(s))return n.get(s);let[l,c]=w0(s);switch(l){case lx:{let d=s;switch(c){case"bigint":l=UL,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([FL],s)}return a([l,d],s)}case x0:{if(c){let p=s;return c==="DataView"?p=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(s)),a([c,[...p]],s)}const d=[],h=a([l,d],s);for(const p of s)d.push(i(p));return h}case cx:{if(c)switch(c){case"BigInt":return a([c,s.toString()],s);case"Boolean":case"Number":case"String":return a([c,s.valueOf()],s)}if(r&&"toJSON"in s)return i(s.toJSON());const d=[],h=a([l,d],s);for(const p of tbe(s))(e||!ux(w0(s[p])))&&d.push([i(p),i(s[p])]);return h}case C4:return a([l,s.toISOString()],s);case T4:{const{source:d,flags:h}=s;return a([l,{source:d,flags:h}],s)}case A4:{const d=[],h=a([l,d],s);for(const[p,g]of s)(e||!(ux(w0(p))||ux(w0(g))))&&d.push([i(p),i(g)]);return h}case N4:{const d=[],h=a([l,d],s);for(const p of s)(e||!ux(w0(p)))&&d.push(i(p));return h}}const{message:u}=s;return a([l,{name:c,message:u}],s)};return i},YL=(e,{json:r,lossy:n}={})=>{const o=[];return rbe(!(r||n),!!r,new Map,o)(e),o},xd=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?qL(YL(e,r)):structuredClone(e):(e,r)=>qL(YL(e,r));function i2t(){}let k0=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};k0.prototype.normal={},k0.prototype.property={},k0.prototype.space=void 0;function WL(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new k0(n,o,r)}function _0(e){return e.toLowerCase()}let Xo=class{constructor(r,n){this.attribute=n,this.property=r}};Xo.prototype.attribute="",Xo.prototype.booleanish=!1,Xo.prototype.boolean=!1,Xo.prototype.commaOrSpaceSeparated=!1,Xo.prototype.commaSeparated=!1,Xo.prototype.defined=!1,Xo.prototype.mustUseProperty=!1,Xo.prototype.number=!1,Xo.prototype.overloadedBoolean=!1,Xo.prototype.property="",Xo.prototype.spaceSeparated=!1,Xo.prototype.space=void 0;let nbe=0;const Ot=wd(),mn=wd(),XL=wd(),He=wd(),_r=wd(),Df=wd(),va=wd();function wd(){return 2**++nbe}const R4={__proto__:null,boolean:Ot,booleanish:mn,commaOrSpaceSeparated:va,commaSeparated:Df,number:He,overloadedBoolean:XL,spaceSeparated:_r},$4=Object.keys(R4);let P4=class extends Xo{constructor(r,n,o,a){let i=-1;if(super(r,n),GL(this,"space",a),typeof o=="number")for(;++i<$4.length;){const s=$4[i];GL(this,$4[i],(o&R4[s])===R4[s])}}};P4.prototype.defined=!0;function GL(e,r,n){n&&(e[r]=n)}function Lf(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new P4(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[_0(o)]=o,n[_0(i.attribute)]=o}return new k0(r,n,e.space)}const KL=Lf({properties:{ariaActiveDescendant:null,ariaAtomic:mn,ariaAutoComplete:null,ariaBusy:mn,ariaChecked:mn,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:mn,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:mn,ariaFlowTo:_r,ariaGrabbed:mn,ariaHasPopup:null,ariaHidden:mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:He,ariaLive:null,ariaModal:mn,ariaMultiLine:mn,ariaMultiSelectable:mn,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:mn,ariaReadOnly:mn,ariaRelevant:null,ariaRequired:mn,ariaRoleDescription:_r,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:mn,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function ZL(e,r){return r in e?e[r]:r}function QL(e,r){return ZL(e,r.toLowerCase())}const obe=Lf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Df,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:_r,autoFocus:Ot,autoPlay:Ot,blocking:_r,capture:null,charSet:null,checked:Ot,cite:null,className:_r,cols:He,colSpan:null,content:null,contentEditable:mn,controls:Ot,controlsList:_r,coords:He|Df,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:XL,draggable:mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:_r,height:He,hidden:Ot,high:He,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:_r,itemRef:_r,itemScope:Ot,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ot,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:Ot,muted:Ot,name:null,nonce:null,noModule:Ot,noValidate:Ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ot,optimum:He,pattern:null,ping:_r,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:_r,required:Ot,reversed:Ot,rows:He,rowSpan:He,sandbox:_r,scope:null,scoped:Ot,seamless:Ot,selected:Ot,shadowRootClonable:Ot,shadowRootDelegatesFocus:Ot,shadowRootMode:null,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:Ot,useMap:null,value:mn,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ot,declare:Ot,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:Ot,noHref:Ot,noShade:Ot,noWrap:Ot,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:mn,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ot,disableRemotePlayback:Ot,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:QL}),abe=Lf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:va,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:Ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Df,g2:Df,glyphName:Df,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:va,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:He,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:va,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:va,rev:va,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:va,requiredFeatures:va,requiredFonts:va,requiredFormats:va,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:va,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:va,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:va,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ZL}),JL=Lf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),eI=Lf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:QL}),tI=Lf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),ibe=/[A-Z]/g,rI=/-[a-z]/g,sbe=/^data[-\w.:]+$/i;function M4(e,r){const n=_0(r);let o=r,a=Xo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(rI,cbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!rI.test(i)){let s=i.replace(ibe,lbe);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=P4}return new a(o,r)}function lbe(e){return"-"+e.toLowerCase()}function cbe(e){return e.charAt(1).toUpperCase()}const dx=WL([KL,obe,JL,eI,tI],"html"),E0=WL([KL,abe,JL,eI,tI],"svg");function nI(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const s=n.slice(a,o).trim();(s||!i)&&r.push(s),a=o+1,o=n.indexOf(",",a)}return r}function oI(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const aI=/[#.]/g;function ube(e,r){const n=e||"",o={};let a=0,i,s;for(;a<n.length;){aI.lastIndex=a;const l=aI.exec(n),c=n.slice(a,l?l.index:n.length);c&&(i?i==="#"?o.id=c:Array.isArray(o.className)?o.className.push(c):o.className=[c]:s=c,a+=c.length),l&&(i=l[0],a++)}return{type:"element",tagName:s||r||"div",properties:o,children:[]}}function iI(e){const r=String(e||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function sI(e){return e.join(" ").trim()}function lI(e,r,n){const o=n?pbe(n):void 0;function a(i,s,...l){let c;if(i==null){c={type:"root",children:[]};const u=s;l.unshift(u)}else{c=ube(i,r);const u=c.tagName.toLowerCase(),d=o?o.get(u):void 0;if(c.tagName=d||u,dbe(s))l.unshift(s);else for(const[h,p]of Object.entries(s))hbe(e,c.properties,h,p)}for(const u of l)O4(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function dbe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const r=e,n=Object.keys(e);for(const o of n){const a=r[o];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function hbe(e,r,n,o){const a=M4(e,n);let i;if(o!=null){if(typeof o=="number"){if(Number.isNaN(o))return;i=o}else typeof o=="boolean"?i=o:typeof o=="string"?a.spaceSeparated?i=iI(o):a.commaSeparated?i=nI(o):a.commaOrSpaceSeparated?i=iI(nI(o).join(" ")):i=cI(a,a.property,o):Array.isArray(o)?i=[...o]:i=a.property==="style"?fbe(o):String(o);if(Array.isArray(i)){const s=[];for(const l of i)s.push(cI(a,a.property,l));i=s}a.property==="className"&&Array.isArray(r.className)&&(i=r.className.concat(i)),r[a.property]=i}}function O4(e,r){if(r!=null)if(typeof r=="number"||typeof r=="string")e.push({type:"text",value:String(r)});else if(Array.isArray(r))for(const n of r)O4(e,n);else if(typeof r=="object"&&"type"in r)r.type==="root"?O4(e,r.children):e.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function cI(e,r,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||_0(n)===_0(r)))return!0}return n}function fbe(e){const r=[];for(const[n,o]of Object.entries(e))r.push([n,o].join(": "));return r.join("; ")}function pbe(e){const r=new Map;for(const n of e)r.set(n.toLowerCase(),n);return r}const mbe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],gbe=lI(dx,"div"),ybe=lI(E0,"g",mbe);function bbe(e){const r=String(e),n=[];return{toOffset:a,toPoint:o};function o(i){if(typeof i=="number"&&i>-1&&i<=r.length){let s=0;for(;;){let l=n[s];if(l===void 0){const c=uI(r,n[s-1]);l=c===-1?r.length+1:c+1,n[s]=l}if(l>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const l=n[n.length-1],c=uI(r,l),u=c===-1?r.length+1:c+1;if(l===u)break;n.push(u)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function uI(e,r){const n=e.indexOf("\r",r),o=e.indexOf(`
`,r);return o===-1?n:n===-1||n+1===o?o:n<o?n:o}const kd={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},dI={}.hasOwnProperty,vbe=Object.prototype;function xbe(e,r){const n=r||{};return D4({file:n.file||void 0,location:!1,schema:n.space==="svg"?E0:dx,verbose:n.verbose||!1},e)}function D4(e,r){let n;switch(r.nodeName){case"#comment":{const o=r;return n={type:"comment",value:o.data},hx(e,o,n),n}case"#document":case"#document-fragment":{const o=r,a="mode"in o?o.mode==="quirks"||o.mode==="limited-quirks":!1;if(n={type:"root",children:hI(e,r.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=bbe(i),l=s.toPoint(0),c=s.toPoint(i.length);n.position={start:l,end:c}}return n}case"#documentType":{const o=r;return n={type:"doctype"},hx(e,o,n),n}case"#text":{const o=r;return n={type:"text",value:o.value},hx(e,o,n),n}default:return n=wbe(e,r),n}}function hI(e,r){let n=-1;const o=[];for(;++n<r.length;){const a=D4(e,r[n]);o.push(a)}return o}function wbe(e,r){const n=e.schema;e.schema=r.namespaceURI===kd.svg?E0:dx;let o=-1;const a={};for(;++o<r.attrs.length;){const l=r.attrs[o],c=(l.prefix?l.prefix+":":"")+l.name;dI.call(vbe,c)||(a[c]=l.value)}const s=(e.schema.space==="svg"?ybe:gbe)(r.tagName,a,hI(e,r.childNodes));if(hx(e,r,s),s.tagName==="template"){const l=r,c=l.sourceCodeLocation,u=c&&c.startTag&&If(c.startTag),d=c&&c.endTag&&If(c.endTag),h=D4(e,l.content);u&&d&&e.file&&(h.position={start:u.end,end:d.start}),s.content=h}return e.schema=n,s}function hx(e,r,n){if("sourceCodeLocation"in r&&r.sourceCodeLocation&&e.file){const o=kbe(e,n,r.sourceCodeLocation);o&&(e.location=!0,n.position=o)}}function kbe(e,r,n){const o=If(n);if(r.type==="element"){const a=r.children[r.children.length-1];if(o&&!n.endTag&&a&&a.position&&a.position.end&&(o.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)dI.call(n.attrs,s)&&(i[M4(e.schema,s).property]=If(n.attrs[s]));n.startTag;const l=If(n.startTag),c=n.endTag?If(n.endTag):void 0,u={opening:l};c&&(u.closing=c),u.properties=i,r.data={position:u}}}return o}function If(e){const r=fI({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fI({line:e.endLine,column:e.endCol,offset:e.endOffset});return r||n?{start:r,end:n}:void 0}function fI(e){return e.line&&e.column?e:void 0}class S0{constructor(r,n,o){this.property=r,this.normal=n,o&&(this.space=o)}}S0.prototype.property={},S0.prototype.normal={},S0.prototype.space=null;function pI(e,r){const n={},o={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(o,e[a].normal);return new S0(n,o,r)}function L4(e){return e.toLowerCase()}class Qa{constructor(r,n){this.property=r,this.attribute=n}}Qa.prototype.space=null,Qa.prototype.boolean=!1,Qa.prototype.booleanish=!1,Qa.prototype.overloadedBoolean=!1,Qa.prototype.number=!1,Qa.prototype.commaSeparated=!1,Qa.prototype.spaceSeparated=!1,Qa.prototype.commaOrSpaceSeparated=!1,Qa.prototype.mustUseProperty=!1,Qa.prototype.defined=!1;let _be=0;const Dt=_d(),gn=_d(),mI=_d(),Ue=_d(),Er=_d(),zf=_d(),xa=_d();function _d(){return 2**++_be}const I4={__proto__:null,boolean:Dt,booleanish:gn,commaOrSpaceSeparated:xa,commaSeparated:zf,number:Ue,overloadedBoolean:mI,spaceSeparated:Er},z4=Object.keys(I4);class j4 extends Qa{constructor(r,n,o,a){let i=-1;if(super(r,n),gI(this,"space",a),typeof o=="number")for(;++i<z4.length;){const s=z4[i];gI(this,z4[i],(o&I4[s])===I4[s])}}}j4.prototype.defined=!0;function gI(e,r,n){n&&(e[r]=n)}const Ebe={}.hasOwnProperty;function jf(e){const r={},n={};let o;for(o in e.properties)if(Ebe.call(e.properties,o)){const a=e.properties[o],i=new j4(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[L4(o)]=o,n[L4(i.attribute)]=o}return new S0(r,n,e.space)}const yI=jf({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),bI=jf({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vI(e,r){return r in e?e[r]:r}function xI(e,r){return vI(e,r.toLowerCase())}const wI=jf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xI,properties:{xmlns:null,xmlnsXLink:null}}),kI=jf({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:gn,ariaAutoComplete:null,ariaBusy:gn,ariaChecked:gn,ariaColCount:Ue,ariaColIndex:Ue,ariaColSpan:Ue,ariaControls:Er,ariaCurrent:null,ariaDescribedBy:Er,ariaDetails:null,ariaDisabled:gn,ariaDropEffect:Er,ariaErrorMessage:null,ariaExpanded:gn,ariaFlowTo:Er,ariaGrabbed:gn,ariaHasPopup:null,ariaHidden:gn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Er,ariaLevel:Ue,ariaLive:null,ariaModal:gn,ariaMultiLine:gn,ariaMultiSelectable:gn,ariaOrientation:null,ariaOwns:Er,ariaPlaceholder:null,ariaPosInSet:Ue,ariaPressed:gn,ariaReadOnly:gn,ariaRelevant:null,ariaRequired:gn,ariaRoleDescription:Er,ariaRowCount:Ue,ariaRowIndex:Ue,ariaRowSpan:Ue,ariaSelected:gn,ariaSetSize:Ue,ariaSort:null,ariaValueMax:Ue,ariaValueMin:Ue,ariaValueNow:Ue,ariaValueText:null,role:null}}),Sbe=jf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xI,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zf,acceptCharset:Er,accessKey:Er,action:null,allow:null,allowFullScreen:Dt,allowPaymentRequest:Dt,allowUserMedia:Dt,alt:null,as:null,async:Dt,autoCapitalize:null,autoComplete:Er,autoFocus:Dt,autoPlay:Dt,blocking:Er,capture:null,charSet:null,checked:Dt,cite:null,className:Er,cols:Ue,colSpan:null,content:null,contentEditable:gn,controls:Dt,controlsList:Er,coords:Ue|zf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Dt,defer:Dt,dir:null,dirName:null,disabled:Dt,download:mI,draggable:gn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Dt,formTarget:null,headers:Er,height:Ue,hidden:Dt,high:Ue,href:null,hrefLang:null,htmlFor:Er,httpEquiv:Er,id:null,imageSizes:null,imageSrcSet:null,inert:Dt,inputMode:null,integrity:null,is:null,isMap:Dt,itemId:null,itemProp:Er,itemRef:Er,itemScope:Dt,itemType:Er,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Dt,low:Ue,manifest:null,max:null,maxLength:Ue,media:null,method:null,min:null,minLength:Ue,multiple:Dt,muted:Dt,name:null,nonce:null,noModule:Dt,noValidate:Dt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Dt,optimum:Ue,pattern:null,ping:Er,placeholder:null,playsInline:Dt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Dt,referrerPolicy:null,rel:Er,required:Dt,reversed:Dt,rows:Ue,rowSpan:Ue,sandbox:Er,scope:null,scoped:Dt,seamless:Dt,selected:Dt,shadowRootClonable:Dt,shadowRootDelegatesFocus:Dt,shadowRootMode:null,shape:null,size:Ue,sizes:null,slot:null,span:Ue,spellCheck:gn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ue,step:null,style:null,tabIndex:Ue,target:null,title:null,translate:null,type:null,typeMustMatch:Dt,useMap:null,value:gn,width:Ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Er,axis:null,background:null,bgColor:null,border:Ue,borderColor:null,bottomMargin:Ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Dt,declare:Dt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ue,leftMargin:Ue,link:null,longDesc:null,lowSrc:null,marginHeight:Ue,marginWidth:Ue,noResize:Dt,noHref:Dt,noShade:Dt,noWrap:Dt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ue,rules:null,scheme:null,scrolling:gn,standby:null,summary:null,text:null,topMargin:Ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Dt,disableRemotePlayback:Dt,prefix:null,property:null,results:Ue,security:null,unselectable:null}}),Cbe=jf({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:vI,properties:{about:xa,accentHeight:Ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ue,amplitude:Ue,arabicForm:null,ascent:Ue,attributeName:null,attributeType:null,azimuth:Ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ue,by:null,calcMode:null,capHeight:Ue,className:Er,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ue,diffuseConstant:Ue,direction:null,display:null,dur:null,divisor:Ue,dominantBaseline:null,download:Dt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ue,enableBackground:null,end:null,event:null,exponent:Ue,externalResourcesRequired:null,fill:null,fillOpacity:Ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zf,g2:zf,glyphName:zf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ue,horizOriginX:Ue,horizOriginY:Ue,id:null,ideographic:Ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ue,k:Ue,k1:Ue,k2:Ue,k3:Ue,k4:Ue,kernelMatrix:xa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ue,overlineThickness:Ue,paintOrder:null,panose1:null,path:null,pathLength:Ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Er,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ue,pointsAtY:Ue,pointsAtZ:Ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xa,rev:xa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xa,requiredFeatures:xa,requiredFonts:xa,requiredFormats:xa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ue,specularExponent:Ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ue,strikethroughThickness:Ue,string:null,stroke:null,strokeDashArray:xa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ue,strokeOpacity:Ue,strokeWidth:null,style:null,surfaceScale:Ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xa,tabIndex:Ue,tableValues:null,target:null,targetX:Ue,targetY:Ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ue,underlineThickness:Ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ue,values:null,vAlphabetic:Ue,vMathematical:Ue,vectorEffect:null,vHanging:Ue,vIdeographic:Ue,version:null,vertAdvY:Ue,vertOriginX:Ue,vertOriginY:Ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Tbe=/^data[-\w.:]+$/i,_I=/-[a-z]/g,Abe=/[A-Z]/g;function Nbe(e,r){const n=L4(r);let o=r,a=Qa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Tbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(_I,$be);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!_I.test(i)){let s=i.replace(Abe,Rbe);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=j4}return new a(o,r)}function Rbe(e){return"-"+e.toLowerCase()}function $be(e){return e.charAt(1).toUpperCase()}const Pbe=pI([bI,yI,wI,kI,Sbe],"html"),EI=pI([bI,yI,wI,kI,Cbe],"svg"),SI={}.hasOwnProperty;function B4(e,r){const n=r||{};function o(a,...i){let s=o.invalid;const l=o.handlers;if(a&&SI.call(a,e)){const c=String(a[e]);s=SI.call(l,c)?l[c]:o.unknown}if(s)return s.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Mbe={},Obe={}.hasOwnProperty,CI=B4("type",{handlers:{root:Lbe,element:Fbe,text:jbe,comment:Bbe,doctype:zbe}});function Dbe(e,r){const o=(r||Mbe).space;return CI(e,o==="svg"?EI:Pbe)}function Lbe(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=F4(e.children,n,r),Bf(e,n),n}function Ibe(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=F4(e.children,n,r),Bf(e,n),n}function zbe(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Bf(e,r),r}function jbe(e){const r={nodeName:"#text",value:e.value,parentNode:null};return Bf(e,r),r}function Bbe(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return Bf(e,r),r}function Fbe(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=EI);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Obe.call(e.properties,i)){const c=Hbe(o,i,e.properties[i]);c&&a.push(c)}}const s=o.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:kd[s],childNodes:[],parentNode:null};return l.childNodes=F4(e.children,l,o),Bf(e,l),e.tagName==="template"&&e.content&&(l.content=Ibe(e.content,o)),l}function Hbe(e,r,n){const o=Nbe(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?oI(n):sI(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=kd[o.space]}return a}function F4(e,r,n){let o=-1;const a=[];if(e)for(;++o<e.length;){const i=CI(e[o],n);i.parentNode=r,a.push(i)}return a}function Bf(e,r){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,r.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const TI=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ube=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Dr="�";var ne;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(ne||(ne={}));const Go={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function AI(e){return e>=55296&&e<=57343}function Vbe(e){return e>=56320&&e<=57343}function qbe(e,r){return(e-55296)*1024+9216+r}function NI(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function RI(e){return e>=64976&&e<=65007||Ube.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const Ybe=65536;class Wbe{constructor(r){this.handler=r,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ybe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(r,n){const{line:o,col:a,offset:i}=this,s=a+n,l=i+n;return{code:r,startLine:o,endLine:o,startCol:s,endCol:s,startOffset:l,endOffset:l}}_err(r){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(r,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(r){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Vbe(n))return this.pos++,this._addGap(),qbe(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Ee.surrogateInInputStream),r}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(r,n){this.html.length>0?this.html+=r:this.html=r,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(r){this.html=this.html.substring(0,this.pos+1)+r+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(r,n){if(this.pos+r.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(r,this.pos);for(let o=0;o<r.length;o++)if((this.html.charCodeAt(this.pos+o)|32)!==r.charCodeAt(o))return!1;return!0}peek(r){const n=this.pos+r;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;const o=this.html.charCodeAt(n);return o===ne.CARRIAGE_RETURN?ne.LINE_FEED:o}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;let r=this.html.charCodeAt(this.pos);return r===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):r===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,AI(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===ne.LINE_FEED||r===ne.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){NI(r)?this._err(Ee.controlCharacterInInputStream):RI(r)&&this._err(Ee.noncharacterInInputStream)}retreat(r){for(this.pos-=r;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ht;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ht||(Ht={}));function $I(e,r){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===r)return e.attrs[n].value;return null}const PI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Xbe=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var H4;const Gbe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Kbe=(H4=String.fromCodePoint)!==null&&H4!==void 0?H4:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Zbe(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Gbe.get(e))!==null&&r!==void 0?r:e}var Vn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Vn||(Vn={}));const Qbe=32;var Yc;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yc||(Yc={}));function U4(e){return e>=Vn.ZERO&&e<=Vn.NINE}function Jbe(e){return e>=Vn.UPPER_A&&e<=Vn.UPPER_F||e>=Vn.LOWER_A&&e<=Vn.LOWER_F}function eve(e){return e>=Vn.UPPER_A&&e<=Vn.UPPER_Z||e>=Vn.LOWER_A&&e<=Vn.LOWER_Z||U4(e)}function tve(e){return e===Vn.EQUALS||eve(e)}var qn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(qn||(qn={}));var Il;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Il||(Il={}));let MI=class{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=qn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Il.Strict}startEntity(r){this.decodeMode=r,this.state=qn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case qn.EntityStart:return r.charCodeAt(n)===Vn.NUM?(this.state=qn.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=qn.NamedEntity,this.stateNamedEntity(r,n));case qn.NumericStart:return this.stateNumericStart(r,n);case qn.NumericDecimal:return this.stateNumericDecimal(r,n);case qn.NumericHex:return this.stateNumericHex(r,n);case qn.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Qbe)===Vn.LOWER_X?(this.state=qn.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=qn.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(U4(a)||Jbe(a))n+=1;else return this.addToNumericResult(r,o,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(r,o,n,16),-1}stateNumericDecimal(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(U4(a))n+=1;else return this.addToNumericResult(r,o,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(r,o,n,10),-1}emitNumericEntity(r,n){var o;if(this.consumed<=n)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(r===Vn.SEMI)this.consumed+=1;else if(this.decodeMode===Il.Strict)return 0;return this.emitCodePoint(Zbe(this.result),this.consumed),this.errors&&(r!==Vn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,n){const{decodeTree:o}=this;let a=o[this.treeIndex],i=(a&Yc.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const s=r.charCodeAt(n);if(this.treeIndex=rve(o,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Il.Attribute&&(i===0||tve(s))?0:this.emitNotTerminatedNamedEntity();if(a=o[this.treeIndex],i=(a&Yc.VALUE_LENGTH)>>14,i!==0){if(s===Vn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Il.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&Yc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~Yc.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case qn.NamedEntity:return this.result!==0&&(this.decodeMode!==Il.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case qn.NumericDecimal:return this.emitNumericEntity(0,2);case qn.NumericHex:return this.emitNumericEntity(0,3);case qn.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qn.EntityStart:return 0}}};function OI(e){let r="";const n=new MI(e,o=>r+=Kbe(o));return function(a,i){let s=0,l=0;for(;(l=a.indexOf("&",l))>=0;){r+=a.slice(s,l),n.startEntity(i);const u=n.write(a,l+1);if(u<0){s=l+n.end();break}s=l+u,l=u===0?s+1:s}const c=r+a.slice(s);return r="",c}}function rve(e,r,n,o){const a=(r&Yc.BRANCH_LENGTH)>>7,i=r&Yc.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let s=n,l=s+a-1;for(;s<=l;){const c=s+l>>>1,u=e[c];if(u<o)s=c+1;else if(u>o)l=c-1;else return e[c+a]}return-1}OI(PI),OI(Xbe);var Me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Me||(Me={}));var Ed;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ed||(Ed={}));var Ja;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ja||(Ja={}));var me;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(me||(me={}));var H;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(H||(H={}));const nve=new Map([[me.A,H.A],[me.ADDRESS,H.ADDRESS],[me.ANNOTATION_XML,H.ANNOTATION_XML],[me.APPLET,H.APPLET],[me.AREA,H.AREA],[me.ARTICLE,H.ARTICLE],[me.ASIDE,H.ASIDE],[me.B,H.B],[me.BASE,H.BASE],[me.BASEFONT,H.BASEFONT],[me.BGSOUND,H.BGSOUND],[me.BIG,H.BIG],[me.BLOCKQUOTE,H.BLOCKQUOTE],[me.BODY,H.BODY],[me.BR,H.BR],[me.BUTTON,H.BUTTON],[me.CAPTION,H.CAPTION],[me.CENTER,H.CENTER],[me.CODE,H.CODE],[me.COL,H.COL],[me.COLGROUP,H.COLGROUP],[me.DD,H.DD],[me.DESC,H.DESC],[me.DETAILS,H.DETAILS],[me.DIALOG,H.DIALOG],[me.DIR,H.DIR],[me.DIV,H.DIV],[me.DL,H.DL],[me.DT,H.DT],[me.EM,H.EM],[me.EMBED,H.EMBED],[me.FIELDSET,H.FIELDSET],[me.FIGCAPTION,H.FIGCAPTION],[me.FIGURE,H.FIGURE],[me.FONT,H.FONT],[me.FOOTER,H.FOOTER],[me.FOREIGN_OBJECT,H.FOREIGN_OBJECT],[me.FORM,H.FORM],[me.FRAME,H.FRAME],[me.FRAMESET,H.FRAMESET],[me.H1,H.H1],[me.H2,H.H2],[me.H3,H.H3],[me.H4,H.H4],[me.H5,H.H5],[me.H6,H.H6],[me.HEAD,H.HEAD],[me.HEADER,H.HEADER],[me.HGROUP,H.HGROUP],[me.HR,H.HR],[me.HTML,H.HTML],[me.I,H.I],[me.IMG,H.IMG],[me.IMAGE,H.IMAGE],[me.INPUT,H.INPUT],[me.IFRAME,H.IFRAME],[me.KEYGEN,H.KEYGEN],[me.LABEL,H.LABEL],[me.LI,H.LI],[me.LINK,H.LINK],[me.LISTING,H.LISTING],[me.MAIN,H.MAIN],[me.MALIGNMARK,H.MALIGNMARK],[me.MARQUEE,H.MARQUEE],[me.MATH,H.MATH],[me.MENU,H.MENU],[me.META,H.META],[me.MGLYPH,H.MGLYPH],[me.MI,H.MI],[me.MO,H.MO],[me.MN,H.MN],[me.MS,H.MS],[me.MTEXT,H.MTEXT],[me.NAV,H.NAV],[me.NOBR,H.NOBR],[me.NOFRAMES,H.NOFRAMES],[me.NOEMBED,H.NOEMBED],[me.NOSCRIPT,H.NOSCRIPT],[me.OBJECT,H.OBJECT],[me.OL,H.OL],[me.OPTGROUP,H.OPTGROUP],[me.OPTION,H.OPTION],[me.P,H.P],[me.PARAM,H.PARAM],[me.PLAINTEXT,H.PLAINTEXT],[me.PRE,H.PRE],[me.RB,H.RB],[me.RP,H.RP],[me.RT,H.RT],[me.RTC,H.RTC],[me.RUBY,H.RUBY],[me.S,H.S],[me.SCRIPT,H.SCRIPT],[me.SEARCH,H.SEARCH],[me.SECTION,H.SECTION],[me.SELECT,H.SELECT],[me.SOURCE,H.SOURCE],[me.SMALL,H.SMALL],[me.SPAN,H.SPAN],[me.STRIKE,H.STRIKE],[me.STRONG,H.STRONG],[me.STYLE,H.STYLE],[me.SUB,H.SUB],[me.SUMMARY,H.SUMMARY],[me.SUP,H.SUP],[me.TABLE,H.TABLE],[me.TBODY,H.TBODY],[me.TEMPLATE,H.TEMPLATE],[me.TEXTAREA,H.TEXTAREA],[me.TFOOT,H.TFOOT],[me.TD,H.TD],[me.TH,H.TH],[me.THEAD,H.THEAD],[me.TITLE,H.TITLE],[me.TR,H.TR],[me.TRACK,H.TRACK],[me.TT,H.TT],[me.U,H.U],[me.UL,H.UL],[me.SVG,H.SVG],[me.VAR,H.VAR],[me.WBR,H.WBR],[me.XMP,H.XMP]]);function Ff(e){var r;return(r=nve.get(e))!==null&&r!==void 0?r:H.UNKNOWN}const Le=H,ove={[Me.HTML]:new Set([Le.ADDRESS,Le.APPLET,Le.AREA,Le.ARTICLE,Le.ASIDE,Le.BASE,Le.BASEFONT,Le.BGSOUND,Le.BLOCKQUOTE,Le.BODY,Le.BR,Le.BUTTON,Le.CAPTION,Le.CENTER,Le.COL,Le.COLGROUP,Le.DD,Le.DETAILS,Le.DIR,Le.DIV,Le.DL,Le.DT,Le.EMBED,Le.FIELDSET,Le.FIGCAPTION,Le.FIGURE,Le.FOOTER,Le.FORM,Le.FRAME,Le.FRAMESET,Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,Le.HEAD,Le.HEADER,Le.HGROUP,Le.HR,Le.HTML,Le.IFRAME,Le.IMG,Le.INPUT,Le.LI,Le.LINK,Le.LISTING,Le.MAIN,Le.MARQUEE,Le.MENU,Le.META,Le.NAV,Le.NOEMBED,Le.NOFRAMES,Le.NOSCRIPT,Le.OBJECT,Le.OL,Le.P,Le.PARAM,Le.PLAINTEXT,Le.PRE,Le.SCRIPT,Le.SECTION,Le.SELECT,Le.SOURCE,Le.STYLE,Le.SUMMARY,Le.TABLE,Le.TBODY,Le.TD,Le.TEMPLATE,Le.TEXTAREA,Le.TFOOT,Le.TH,Le.THEAD,Le.TITLE,Le.TR,Le.TRACK,Le.UL,Le.WBR,Le.XMP]),[Me.MATHML]:new Set([Le.MI,Le.MO,Le.MN,Le.MS,Le.MTEXT,Le.ANNOTATION_XML]),[Me.SVG]:new Set([Le.TITLE,Le.FOREIGN_OBJECT,Le.DESC]),[Me.XLINK]:new Set,[Me.XML]:new Set,[Me.XMLNS]:new Set},V4=new Set([Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6]);me.STYLE,me.SCRIPT,me.XMP,me.IFRAME,me.NOEMBED,me.NOFRAMES,me.PLAINTEXT;var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ae||(ae={}));const on={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function ave(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function C0(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function ive(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Wc(e){return ive(e)||C0(e)}function DI(e){return Wc(e)||ave(e)}function fx(e){return e+32}function LI(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function II(e){return LI(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}function sve(e){return e===ne.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:AI(e)?Ee.surrogateCharacterReference:RI(e)?Ee.noncharacterCharacterReference:NI(e)||e===ne.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class lve{constructor(r,n){this.options=r,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Wbe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new MI(PI,(o,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(o)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:o=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+o)},validateNumericCharacterReference:o=>{const a=sve(o);a&&this._err(a,1)}}:void 0)}_err(r,n=0){var o,a;(a=(o=this.handler).onParseError)===null||a===void 0||a.call(o,this.preprocessor.getError(r,n))}getCurrentLocation(r){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-r,startOffset:this.preprocessor.offset-r,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const r=this._consume();this._ensureHibernation()||this._callState(r)}this.inLoop=!1}}pause(){this.paused=!0}resume(r){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||r?.())}write(r,n,o){this.active=!0,this.preprocessor.write(r,n),this._runParsingLoop(),this.paused||o?.()}insertHtmlAtCurrentPos(r){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(r),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(r){this.consumedAfterSnapshot+=r;for(let n=0;n<r;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(r,n){return this.preprocessor.startsWith(r,n)?(this._advanceBy(r.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ht.START_TAG,tagName:"",tagID:H.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ht.END_TAG,tagName:"",tagID:H.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(r){this.currentToken={type:Ht.COMMENT,data:"",location:this.getCurrentLocation(r)}}_createDoctypeToken(r){this.currentToken={type:Ht.DOCTYPE,name:r,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(r,n){this.currentCharacterToken={type:r,chars:n,location:this.currentLocation}}_createAttr(r){this.currentAttr={name:r,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var r,n;const o=this.currentToken;if($I(o,this.currentAttr.name)===null){if(o.attrs.push(this.currentAttr),o.location&&this.currentLocation){const a=(r=(n=o.location).attrs)!==null&&r!==void 0?r:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ee.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(r){this._emitCurrentCharacterToken(r.location),this.currentToken=null,r.location&&(r.location.endLine=this.preprocessor.line,r.location.endCol=this.preprocessor.col+1,r.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const r=this.currentToken;this.prepareToken(r),r.tagID=Ff(r.tagName),r.type===Ht.START_TAG?(this.lastStartTagName=r.tagName,this.handler.onStartTag(r)):(r.attrs.length>0&&this._err(Ee.endTagWithAttributes),r.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(r)),this.preprocessor.dropParsedChunk()}emitCurrentComment(r){this.prepareToken(r),this.handler.onComment(r),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(r){this.prepareToken(r),this.handler.onDoctype(r),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(r){if(this.currentCharacterToken){switch(r&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentCharacterToken.type){case Ht.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ht.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ht.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const r=this.getCurrentLocation(0);r&&(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset),this._emitCurrentCharacterToken(r),this.handler.onEof({type:Ht.EOF,location:r}),this.active=!1}_appendCharToCurrentCharacterToken(r,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===r){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(r,n)}_emitCodePoint(r){const n=LI(r)?Ht.WHITESPACE_CHARACTER:r===ne.NULL?Ht.NULL_CHARACTER:Ht.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(r))}_emitChars(r){this._appendCharToCurrentCharacterToken(Ht.CHARACTER,r)}_startCharacterReference(){this.returnState=this.state,this.state=ae.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Il.Attribute:Il.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(r){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(r):this._emitCodePoint(r)}_callState(r){switch(this.state){case ae.DATA:{this._stateData(r);break}case ae.RCDATA:{this._stateRcdata(r);break}case ae.RAWTEXT:{this._stateRawtext(r);break}case ae.SCRIPT_DATA:{this._stateScriptData(r);break}case ae.PLAINTEXT:{this._statePlaintext(r);break}case ae.TAG_OPEN:{this._stateTagOpen(r);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(r);break}case ae.TAG_NAME:{this._stateTagName(r);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(r);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(r);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(r);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(r);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(r);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(r);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(r);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(r);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(r);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(r);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(r);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(r);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(r);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(r);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(r);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(r);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(r);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(r);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(r);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(r);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(r);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(r);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(r);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(r);break}case ae.COMMENT_START:{this._stateCommentStart(r);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(r);break}case ae.COMMENT:{this._stateComment(r);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(r);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(r);break}case ae.COMMENT_END:{this._stateCommentEnd(r);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(r);break}case ae.DOCTYPE:{this._stateDoctype(r);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(r);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(r);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(r);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(r);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(r);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(r);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(r);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(r);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(r);break}case ae.CDATA_SECTION:{this._stateCdataSection(r);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(r);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(r);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(r);break}default:throw new Error("Unknown state")}}_stateData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(r);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case ne.AMPERSAND:{this._startCharacterReference();break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(Wc(r))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r);break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(r)}}_stateEndTagOpen(r){if(Wc(r))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r)}}_stateTagName(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=Dr;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(C0(r)?fx(r):r)}}_stateRcdataLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRcdataEndTagOpen(r){Wc(r)?(this.state=ae.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(r)):(this._emitChars("</"),this.state=ae.RCDATA,this._stateRcdata(r))}handleSpecialEndTag(r){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ae.BEFORE_ATTRIBUTE_NAME,!1;case ne.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ae.SELF_CLOSING_START_TAG,!1;case ne.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ae.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRawtextLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagOpen(r){Wc(r)?(this.state=ae.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(r)):(this._emitChars("</"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateScriptDataLessThanSign(r){switch(r){case ne.SOLIDUS:{this.state=ae.SCRIPT_DATA_END_TAG_OPEN;break}case ne.EXCLAMATION_MARK:{this.state=ae.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ae.SCRIPT_DATA,this._stateScriptData(r)}}_stateScriptDataEndTagOpen(r){Wc(r)?(this.state=ae.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(r)):(this._emitChars("</"),this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscapeStart(r){r===ne.HYPHEN_MINUS?(this.state=ae.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscapeStartDash(r){r===ne.HYPHEN_MINUS?(this.state=ae.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscaped(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptDataEscapedDash(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedDashDash(r){switch(r){case ne.HYPHEN_MINUS:{this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ne.GREATER_THAN_SIGN:{this.state=ae.SCRIPT_DATA,this._emitChars(">");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wc(r)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(r)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagOpen(r){Wc(r)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(r)):(this._emitChars("</"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataDoubleEscapeStart(r){if(this.preprocessor.startsWith(Go.SCRIPT,!1)&&II(this.preprocessor.peek(Go.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n<Go.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataDoubleEscaped(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedDash(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedDashDash(r){switch(r){case ne.HYPHEN_MINUS:{this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ne.GREATER_THAN_SIGN:{this.state=ae.SCRIPT_DATA,this._emitChars(">");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateScriptDataDoubleEscapeEnd(r){if(this.preprocessor.startsWith(Go.SCRIPT,!1)&&II(this.preprocessor.peek(Go.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n<Go.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=ae.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateBeforeAttributeName(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.SOLIDUS:case ne.GREATER_THAN_SIGN:case ne.EOF:{this.state=ae.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(r);break}case ne.EQUALS_SIGN:{this._err(Ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ae.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ae.ATTRIBUTE_NAME,this._stateAttributeName(r)}}_stateAttributeName(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:case ne.SOLIDUS:case ne.GREATER_THAN_SIGN:case ne.EOF:{this._leaveAttrName(),this.state=ae.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(r);break}case ne.EQUALS_SIGN:{this._leaveAttrName(),this.state=ae.BEFORE_ATTRIBUTE_VALUE;break}case ne.QUOTATION_MARK:case ne.APOSTROPHE:case ne.LESS_THAN_SIGN:{this._err(Ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(r);break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.name+=Dr;break}default:this.currentAttr.name+=String.fromCodePoint(C0(r)?fx(r):r)}}_stateAfterAttributeName(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case ne.EQUALS_SIGN:{this.state=ae.BEFORE_ATTRIBUTE_VALUE;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ae.ATTRIBUTE_NAME,this._stateAttributeName(r)}}_stateBeforeAttributeValue(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.QUOTATION_MARK:{this.state=ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this.state=ae.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingAttributeValue),this.state=ae.DATA,this.emitCurrentTagToken();break}default:this.state=ae.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(r)}}_stateAttributeValueDoubleQuoted(r){switch(r){case ne.QUOTATION_MARK:{this.state=ae.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Dr;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAttributeValueSingleQuoted(r){switch(r){case ne.APOSTROPHE:{this.state=ae.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Dr;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAttributeValueUnquoted(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this._leaveAttrValue(),this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Dr;break}case ne.QUOTATION_MARK:case ne.APOSTROPHE:case ne.LESS_THAN_SIGN:case ne.EQUALS_SIGN:case ne.GRAVE_ACCENT:{this._err(Ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(r);break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAfterAttributeValueQuoted(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this._leaveAttrValue(),this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.SOLIDUS:{this._leaveAttrValue(),this.state=ae.SELF_CLOSING_START_TAG;break}case ne.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBetweenAttributes),this.state=ae.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(r)}}_stateSelfClosingStartTag(r){switch(r){case ne.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.unexpectedSolidusInTag),this.state=ae.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(r)}}_stateBogusComment(r){const n=this.currentToken;switch(r){case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Dr;break}default:n.data+=String.fromCodePoint(r)}}_stateMarkupDeclarationOpen(r){this._consumeSequenceIfMatch(Go.DASH_DASH,!0)?(this._createCommentToken(Go.DASH_DASH.length+1),this.state=ae.COMMENT_START):this._consumeSequenceIfMatch(Go.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Go.DOCTYPE.length+1),this.state=ae.DOCTYPE):this._consumeSequenceIfMatch(Go.CDATA_START,!0)?this.inForeignNode?this.state=ae.CDATA_SECTION:(this._err(Ee.cdataInHtmlContent),this._createCommentToken(Go.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ae.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r))}_stateCommentStart(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.COMMENT_START_DASH;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=ae.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentStartDash(r){const n=this.currentToken;switch(r){case ne.HYPHEN_MINUS:{this.state=ae.COMMENT_END;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=ae.COMMENT,this._stateComment(r)}}_stateComment(r){const n=this.currentToken;switch(r){case ne.HYPHEN_MINUS:{this.state=ae.COMMENT_END_DASH;break}case ne.LESS_THAN_SIGN:{n.data+="<",this.state=ae.COMMENT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Dr;break}case ne.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(r)}}_stateCommentLessThanSign(r){const n=this.currentToken;switch(r){case ne.EXCLAMATION_MARK:{n.data+="!",this.state=ae.COMMENT_LESS_THAN_SIGN_BANG;break}case ne.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentLessThanSignBang(r){r===ne.HYPHEN_MINUS?this.state=ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ae.COMMENT,this._stateComment(r))}_stateCommentLessThanSignBangDash(r){r===ne.HYPHEN_MINUS?this.state=ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ae.COMMENT_END_DASH,this._stateCommentEndDash(r))}_stateCommentLessThanSignBangDashDash(r){r!==ne.GREATER_THAN_SIGN&&r!==ne.EOF&&this._err(Ee.nestedComment),this.state=ae.COMMENT_END,this._stateCommentEnd(r)}_stateCommentEndDash(r){const n=this.currentToken;switch(r){case ne.HYPHEN_MINUS:{this.state=ae.COMMENT_END;break}case ne.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentEnd(r){const n=this.currentToken;switch(r){case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.EXCLAMATION_MARK:{this.state=ae.COMMENT_END_BANG;break}case ne.HYPHEN_MINUS:{n.data+="-";break}case ne.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentEndBang(r){const n=this.currentToken;switch(r){case ne.HYPHEN_MINUS:{n.data+="--!",this.state=ae.COMMENT_END_DASH;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.incorrectlyClosedComment),this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=ae.COMMENT,this._stateComment(r)}}_stateDoctype(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_NAME;break}case ne.GREATER_THAN_SIGN:{this.state=ae.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(r);break}case ne.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBeforeDoctypeName),this.state=ae.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(r)}}_stateBeforeDoctypeName(r){if(C0(r))this._createDoctypeToken(String.fromCharCode(fx(r))),this.state=ae.DOCTYPE_NAME;else switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._createDoctypeToken(Dr),this.state=ae.DOCTYPE_NAME;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(r)),this.state=ae.DOCTYPE_NAME}}_stateDoctypeName(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.AFTER_DOCTYPE_NAME;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.name+=Dr;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(C0(r)?fx(r):r)}}_stateAfterDoctypeName(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Go.PUBLIC,!1)?this.state=ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Go.SYSTEM,!1)?this.state=ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ee.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r))}}_stateAfterDoctypePublicKeyword(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ne.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBeforeDoctypePublicIdentifier(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.QUOTATION_MARK:{n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateDoctypePublicIdentifierDoubleQuoted(r){const n=this.currentToken;switch(r){case ne.QUOTATION_MARK:{this.state=ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Dr;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(r)}}_stateDoctypePublicIdentifierSingleQuoted(r){const n=this.currentToken;switch(r){case ne.APOSTROPHE:{this.state=ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Dr;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(r)}}_stateAfterDoctypePublicIdentifier(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.QUOTATION_MARK:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBetweenDoctypePublicAndSystemIdentifiers(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.QUOTATION_MARK:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateAfterDoctypeSystemKeyword(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ne.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBeforeDoctypeSystemIdentifier(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.QUOTATION_MARK:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateDoctypeSystemIdentifierDoubleQuoted(r){const n=this.currentToken;switch(r){case ne.QUOTATION_MARK:{this.state=ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Dr;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(r)}}_stateDoctypeSystemIdentifierSingleQuoted(r){const n=this.currentToken;switch(r){case ne.APOSTROPHE:{this.state=ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Dr;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(r)}}_stateAfterDoctypeSystemIdentifier(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBogusDoctype(r){const n=this.currentToken;switch(r){case ne.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter);break}case ne.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(r){switch(r){case ne.RIGHT_SQUARE_BRACKET:{this.state=ae.CDATA_SECTION_BRACKET;break}case ne.EOF:{this._err(Ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateCdataSectionBracket(r){r===ne.RIGHT_SQUARE_BRACKET?this.state=ae.CDATA_SECTION_END:(this._emitChars("]"),this.state=ae.CDATA_SECTION,this._stateCdataSection(r))}_stateCdataSectionEnd(r){switch(r){case ne.GREATER_THAN_SIGN:{this.state=ae.DATA;break}case ne.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ae.CDATA_SECTION,this._stateCdataSection(r)}}_stateCharacterReference(){let r=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(r<0)if(this.preprocessor.lastChunkWritten)r=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}r===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ne.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&DI(this.preprocessor.peek(1))?ae.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(r){DI(r)?this._flushCodePointConsumedAsCharacterReference(r):(r===ne.SEMICOLON&&this._err(Ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(r))}}const zI=new Set([H.DD,H.DT,H.LI,H.OPTGROUP,H.OPTION,H.P,H.RB,H.RP,H.RT,H.RTC]),jI=new Set([...zI,H.CAPTION,H.COLGROUP,H.TBODY,H.TD,H.TFOOT,H.TH,H.THEAD,H.TR]),px=new Set([H.APPLET,H.CAPTION,H.HTML,H.MARQUEE,H.OBJECT,H.TABLE,H.TD,H.TEMPLATE,H.TH]),cve=new Set([...px,H.OL,H.UL]),uve=new Set([...px,H.BUTTON]),BI=new Set([H.ANNOTATION_XML,H.MI,H.MN,H.MO,H.MS,H.MTEXT]),FI=new Set([H.DESC,H.FOREIGN_OBJECT,H.TITLE]),dve=new Set([H.TR,H.TEMPLATE,H.HTML]),hve=new Set([H.TBODY,H.TFOOT,H.THEAD,H.TEMPLATE,H.HTML]),fve=new Set([H.TABLE,H.TEMPLATE,H.HTML]),pve=new Set([H.TD,H.TH]);class mve{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(r,n,o){this.treeAdapter=n,this.handler=o,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=H.UNKNOWN,this.current=r}_indexOf(r){return this.items.lastIndexOf(r,this.stackTop)}_isInTemplate(){return this.currentTagId===H.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(r,n){this.stackTop++,this.items[this.stackTop]=r,this.current=r,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(r,n,!0)}pop(){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!0)}replace(r,n){const o=this._indexOf(r);this.items[o]=n,o===this.stackTop&&(this.current=n)}insertAfter(r,n,o){const a=this._indexOf(r)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,o),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(r){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(r,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Me.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(r){for(;this.stackTop>=r;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<r)}}popUntilElementPopped(r){const n=this._indexOf(r);this.shortenToLength(n<0?0:n)}popUntilPopped(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o<0?0:o)}popUntilNumberedHeaderPopped(){this.popUntilPopped(V4,Me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(pve,Me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(r,n){for(let o=this.stackTop;o>=0;o--)if(r.has(this.tagIDs[o])&&this.treeAdapter.getNamespaceURI(this.items[o])===n)return o;return-1}clearBackTo(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o+1)}clearBackToTableContext(){this.clearBackTo(fve,Me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(hve,Me.HTML)}clearBackToTableRowContext(){this.clearBackTo(dve,Me.HTML)}remove(r){const n=this._indexOf(r);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===H.BODY?this.items[1]:null}contains(r){return this._indexOf(r)>-1}getCommonAncestor(r){const n=this._indexOf(r)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===H.HTML}hasInDynamicScope(r,n){for(let o=this.stackTop;o>=0;o--){const a=this.tagIDs[o];switch(this.treeAdapter.getNamespaceURI(this.items[o])){case Me.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case Me.SVG:{if(FI.has(a))return!1;break}case Me.MATHML:{if(BI.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,px)}hasInListItemScope(r){return this.hasInDynamicScope(r,cve)}hasInButtonScope(r){return this.hasInDynamicScope(r,uve)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Me.HTML:{if(V4.has(n))return!0;if(px.has(n))return!1;break}case Me.SVG:{if(FI.has(n))return!1;break}case Me.MATHML:{if(BI.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Me.HTML)switch(this.tagIDs[n]){case r:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Me.HTML)switch(this.tagIDs[r]){case H.TBODY:case H.THEAD:case H.TFOOT:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Me.HTML)switch(this.tagIDs[n]){case r:return!0;case H.OPTION:case H.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;zI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;jI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&jI.has(this.currentTagId);)this.pop()}}const q4=3;var qs;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(qs||(qs={}));const HI={type:qs.Marker};class gve{constructor(r){this.treeAdapter=r,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(r,n){const o=[],a=n.length,i=this.treeAdapter.getTagName(r),s=this.treeAdapter.getNamespaceURI(r);for(let l=0;l<this.entries.length;l++){const c=this.entries[l];if(c.type===qs.Marker)break;const{element:u}=c;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s){const d=this.treeAdapter.getAttrList(u);d.length===a&&o.push({idx:l,attrs:d})}}return o}_ensureNoahArkCondition(r){if(this.entries.length<q4)return;const n=this.treeAdapter.getAttrList(r),o=this._getNoahArkConditionCandidates(r,n);if(o.length<q4)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<o.length;s++){const l=o[s];l.attrs.every(c=>a.get(c.name)===c.value)&&(i+=1,i>=q4&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(HI)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:qs.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:qs.Element,element:r,token:n})}removeEntry(r){const n=this.entries.indexOf(r);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const r=this.entries.indexOf(HI);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===qs.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===qs.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===qs.Element&&n.element===r)}}const Xc={createDocument(){return{nodeName:"#document",mode:Ja.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,r,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:r,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,r){e.childNodes.push(r),r.parentNode=e},insertBefore(e,r,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,r),r.parentNode=e},setTemplateContent(e,r){e.content=r},getTemplateContent(e){return e.content},setDocumentType(e,r,n,o){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=r,a.publicId=n,a.systemId=o;else{const i={nodeName:"#documentType",name:r,publicId:n,systemId:o,parentNode:null};Xc.appendChild(e,i)}},setDocumentMode(e,r){e.mode=r},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const r=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(r,1),e.parentNode=null}},insertText(e,r){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Xc.isTextNode(n)){n.value+=r;return}}Xc.appendChild(e,Xc.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&Xc.isTextNode(o)?o.value+=r:Xc.insertBefore(e,Xc.createTextNode(r),n)},adoptAttributes(e,r){const n=new Set(e.attrs.map(o=>o.name));for(let o=0;o<r.length;o++)n.has(r[o].name)||e.attrs.push(r[o])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,r){e.sourceCodeLocation=r},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,r){e.sourceCodeLocation={...e.sourceCodeLocation,...r}}},UI="html",yve="about:legacy-compat",bve="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",VI=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],vve=[...VI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],xve=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),qI=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wve=[...qI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function YI(e,r){return r.some(n=>e.startsWith(n))}function kve(e){return e.name===UI&&e.publicId===null&&(e.systemId===null||e.systemId===yve)}function _ve(e){if(e.name!==UI)return Ja.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===bve)return Ja.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),xve.has(n))return Ja.QUIRKS;let o=r===null?vve:VI;if(YI(n,o))return Ja.QUIRKS;if(o=r===null?qI:wve,YI(n,o))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}const WI={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Eve="definitionurl",Sve="definitionURL",Cve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Tve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Me.XMLNS}]]),Ave=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Nve=new Set([H.B,H.BIG,H.BLOCKQUOTE,H.BODY,H.BR,H.CENTER,H.CODE,H.DD,H.DIV,H.DL,H.DT,H.EM,H.EMBED,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HR,H.I,H.IMG,H.LI,H.LISTING,H.MENU,H.META,H.NOBR,H.OL,H.P,H.PRE,H.RUBY,H.S,H.SMALL,H.SPAN,H.STRONG,H.STRIKE,H.SUB,H.SUP,H.TABLE,H.TT,H.U,H.UL,H.VAR]);function Rve(e){const r=e.tagID;return r===H.FONT&&e.attrs.some(({name:o})=>o===Ed.COLOR||o===Ed.SIZE||o===Ed.FACE)||Nve.has(r)}function XI(e){for(let r=0;r<e.attrs.length;r++)if(e.attrs[r].name===Eve){e.attrs[r].name=Sve;break}}function GI(e){for(let r=0;r<e.attrs.length;r++){const n=Cve.get(e.attrs[r].name);n!=null&&(e.attrs[r].name=n)}}function Y4(e){for(let r=0;r<e.attrs.length;r++){const n=Tve.get(e.attrs[r].name);n&&(e.attrs[r].prefix=n.prefix,e.attrs[r].name=n.name,e.attrs[r].namespace=n.namespace)}}function $ve(e){const r=Ave.get(e.tagName);r!=null&&(e.tagName=r,e.tagID=Ff(e.tagName))}function Pve(e,r){return r===Me.MATHML&&(e===H.MI||e===H.MO||e===H.MN||e===H.MS||e===H.MTEXT)}function Mve(e,r,n){if(r===Me.MATHML&&e===H.ANNOTATION_XML){for(let o=0;o<n.length;o++)if(n[o].name===Ed.ENCODING){const a=n[o].value.toLowerCase();return a===WI.TEXT_HTML||a===WI.APPLICATION_XML}}return r===Me.SVG&&(e===H.FOREIGN_OBJECT||e===H.DESC||e===H.TITLE)}function Ove(e,r,n,o){return(!o||o===Me.HTML)&&Mve(e,r,n)||(!o||o===Me.MATHML)&&Pve(e,r)}const Dve="hidden",Lve=8,Ive=3;var se;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(se||(se={}));const zve={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},KI=new Set([H.TABLE,H.TBODY,H.TFOOT,H.THEAD,H.TR]),ZI={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Xc,onParseError:null};class QI{constructor(r,n,o=null,a=null){this.fragmentContext=o,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=se.INITIAL,this.originalInsertionMode=se.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...ZI,...r},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new lve(this.options,this),this.activeFormattingElements=new gve(this.treeAdapter),this.fragmentContextID=o?Ff(this.treeAdapter.getTagName(o)):H.UNKNOWN,this._setContextModes(o??this.document,this.fragmentContextID),this.openElements=new mve(this.document,this.treeAdapter,this)}static parse(r,n){const o=new this(n);return o.tokenizer.write(r,!0),o.document}static getFragmentParser(r,n){const o={...ZI,...n};r??(r=o.treeAdapter.createElement(me.TEMPLATE,Me.HTML,[]));const a=o.treeAdapter.createElement("documentmock",Me.HTML,[]),i=new this(o,a,r);return i.fragmentContextID===H.TEMPLATE&&i.tmplInsertionModeStack.unshift(se.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const r=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,n),n}_err(r,n,o){var a;if(!this.onParseError)return;const i=(a=r.location)!==null&&a!==void 0?a:zve,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:o?i.startLine:i.endLine,endCol:o?i.startCol:i.endCol,endOffset:o?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(r,n,o){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,r),o&&this.openElements.stackTop>0&&this._setContextModes(r,n)}onItemPop(r,n){var o,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(r,this.currentToken),(a=(o=this.treeAdapter).onItemPop)===null||a===void 0||a.call(o,r,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(r,n){const o=r===this.document||this.treeAdapter.getNamespaceURI(r)===Me.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,Me.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=se.TEXT}switchToPlaintextParsing(){this.insertionMode=se.TEXT,this.originalInsertionMode=se.IN_BODY,this.tokenizer.state=on.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let r=this.fragmentContext;for(;r;){if(this.treeAdapter.getTagName(r)===me.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Me.HTML))switch(this.fragmentContextID){case H.TITLE:case H.TEXTAREA:{this.tokenizer.state=on.RCDATA;break}case H.STYLE:case H.XMP:case H.IFRAME:case H.NOEMBED:case H.NOFRAMES:case H.NOSCRIPT:{this.tokenizer.state=on.RAWTEXT;break}case H.SCRIPT:{this.tokenizer.state=on.SCRIPT_DATA;break}case H.PLAINTEXT:{this.tokenizer.state=on.PLAINTEXT;break}}}_setDocumentType(r){const n=r.name||"",o=r.publicId||"",a=r.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,o,a),r.location){const s=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));s&&this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}_attachElementToTree(r,n){if(this.options.sourceCodeLocationInfo){const o=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(r,o)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(r);else{const o=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(o,r)}}_appendElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location)}_insertElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location),this.openElements.push(o,r.tagID)}_insertFakeElement(r,n){const o=this.treeAdapter.createElement(r,Me.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,Me.HTML,r.attrs),o=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,o),this._attachElementToTree(n,r.location),this.openElements.push(n,r.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null)}_insertFakeRootElement(){const r=this.treeAdapter.createElement(me.HTML,Me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,H.HTML)}_appendCommentNode(r,n){const o=this.treeAdapter.createCommentNode(r.data);this.treeAdapter.appendChild(n,o),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,r.location)}_insertCharacters(r){let n,o;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:o}=this._findFosterParentingLocation(),o?this.treeAdapter.insertTextBefore(n,r.chars,o):this.treeAdapter.insertText(n,r.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,r.chars)),!r.location)return;const a=this.treeAdapter.getChildNodes(n),i=o?a.lastIndexOf(o):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}_adoptNodes(r,n){for(let o=this.treeAdapter.getFirstChild(r);o;o=this.treeAdapter.getFirstChild(r))this.treeAdapter.detachNode(o),this.treeAdapter.appendChild(n,o)}_setEndLocation(r,n){if(this.treeAdapter.getNodeSourceCodeLocation(r)&&n.location){const o=n.location,a=this.treeAdapter.getTagName(r),i=n.type===Ht.END_TAG&&a===n.tagName?{endTag:{...o},endLine:o.endLine,endCol:o.endCol,endOffset:o.endOffset}:{endLine:o.startLine,endCol:o.startCol,endOffset:o.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(r,i)}}shouldProcessStartTagTokenInForeignContent(r){if(!this.currentNotInHTML)return!1;let n,o;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,r.tagID===H.SVG&&this.treeAdapter.getTagName(n)===me.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Me.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===H.MGLYPH||r.tagID===H.MALIGNMARK)&&!this._isIntegrationPoint(o,n,Me.HTML)}_processToken(r){switch(r.type){case Ht.CHARACTER:{this.onCharacter(r);break}case Ht.NULL_CHARACTER:{this.onNullCharacter(r);break}case Ht.COMMENT:{this.onComment(r);break}case Ht.DOCTYPE:{this.onDoctype(r);break}case Ht.START_TAG:{this._processStartTag(r);break}case Ht.END_TAG:{this.onEndTag(r);break}case Ht.EOF:{this.onEof(r);break}case Ht.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(r);break}}}_isIntegrationPoint(r,n,o){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Ove(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===qs.Marker||this.openElements.contains(a.element)),o=n<0?r-1:n-1;for(let a=o;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=se.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(H.P),this.openElements.popUntilTagNamePopped(H.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case H.TR:{this.insertionMode=se.IN_ROW;return}case H.TBODY:case H.THEAD:case H.TFOOT:{this.insertionMode=se.IN_TABLE_BODY;return}case H.CAPTION:{this.insertionMode=se.IN_CAPTION;return}case H.COLGROUP:{this.insertionMode=se.IN_COLUMN_GROUP;return}case H.TABLE:{this.insertionMode=se.IN_TABLE;return}case H.BODY:{this.insertionMode=se.IN_BODY;return}case H.FRAMESET:{this.insertionMode=se.IN_FRAMESET;return}case H.SELECT:{this._resetInsertionModeForSelect(r);return}case H.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case H.HTML:{this.insertionMode=this.headElement?se.AFTER_HEAD:se.BEFORE_HEAD;return}case H.TD:case H.TH:{if(r>0){this.insertionMode=se.IN_CELL;return}break}case H.HEAD:{if(r>0){this.insertionMode=se.IN_HEAD;return}break}}this.insertionMode=se.IN_BODY}_resetInsertionModeForSelect(r){if(r>0)for(let n=r-1;n>0;n--){const o=this.openElements.tagIDs[n];if(o===H.TEMPLATE)break;if(o===H.TABLE){this.insertionMode=se.IN_SELECT_IN_TABLE;return}}this.insertionMode=se.IN_SELECT}_isElementCausesFosterParenting(r){return KI.has(r)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let r=this.openElements.stackTop;r>=0;r--){const n=this.openElements.items[r];switch(this.openElements.tagIDs[r]){case H.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Me.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case H.TABLE:{const o=this.treeAdapter.getParentNode(n);return o?{parent:o,beforeElement:n}:{parent:this.openElements.items[r-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(r){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,r,n.beforeElement):this.treeAdapter.appendChild(n.parent,r)}_isSpecialElement(r,n){const o=this.treeAdapter.getNamespaceURI(r);return ove[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pwe(this,r);return}switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{A0(this,r);break}case se.BEFORE_HEAD:{N0(this,r);break}case se.IN_HEAD:{R0(this,r);break}case se.IN_HEAD_NO_SCRIPT:{$0(this,r);break}case se.AFTER_HEAD:{P0(this,r);break}case se.IN_BODY:case se.IN_CAPTION:case se.IN_CELL:case se.IN_TEMPLATE:{ez(this,r);break}case se.TEXT:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:{this._insertCharacters(r);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{K4(this,r);break}case se.IN_TABLE_TEXT:{lz(this,r);break}case se.IN_COLUMN_GROUP:{yx(this,r);break}case se.AFTER_BODY:{xx(this,r);break}case se.AFTER_AFTER_BODY:{wx(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){fwe(this,r);return}switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{A0(this,r);break}case se.BEFORE_HEAD:{N0(this,r);break}case se.IN_HEAD:{R0(this,r);break}case se.IN_HEAD_NO_SCRIPT:{$0(this,r);break}case se.AFTER_HEAD:{P0(this,r);break}case se.TEXT:{this._insertCharacters(r);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{K4(this,r);break}case se.IN_COLUMN_GROUP:{yx(this,r);break}case se.AFTER_BODY:{xx(this,r);break}case se.AFTER_AFTER_BODY:{wx(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){X4(this,r);return}switch(this.insertionMode){case se.INITIAL:case se.BEFORE_HTML:case se.BEFORE_HEAD:case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:case se.IN_BODY:case se.IN_TABLE:case se.IN_CAPTION:case se.IN_COLUMN_GROUP:case se.IN_TABLE_BODY:case se.IN_ROW:case se.IN_CELL:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:case se.IN_TEMPLATE:case se.IN_FRAMESET:case se.AFTER_FRAMESET:{X4(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.AFTER_BODY:{qve(this,r);break}case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{Yve(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case se.INITIAL:{Wve(this,r);break}case se.BEFORE_HEAD:case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:{this._err(r,Ee.misplacedDoctype);break}case se.IN_TABLE_TEXT:{D0(this,r);break}}}onStartTag(r){this.skipNextNewLine=!1,this.currentToken=r,this._processStartTag(r),r.selfClosing&&!r.ackSelfClosing&&this._err(r,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(r){this.shouldProcessStartTagTokenInForeignContent(r)?mwe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{Xve(this,r);break}case se.BEFORE_HEAD:{Kve(this,r);break}case se.IN_HEAD:{Hi(this,r);break}case se.IN_HEAD_NO_SCRIPT:{Jve(this,r);break}case se.AFTER_HEAD:{txe(this,r);break}case se.IN_BODY:{So(this,r);break}case se.IN_TABLE:{Hf(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.IN_CAPTION:{Zxe(this,r);break}case se.IN_COLUMN_GROUP:{Z4(this,r);break}case se.IN_TABLE_BODY:{bx(this,r);break}case se.IN_ROW:{vx(this,r);break}case se.IN_CELL:{ewe(this,r);break}case se.IN_SELECT:{dz(this,r);break}case se.IN_SELECT_IN_TABLE:{rwe(this,r);break}case se.IN_TEMPLATE:{owe(this,r);break}case se.AFTER_BODY:{iwe(this,r);break}case se.IN_FRAMESET:{swe(this,r);break}case se.AFTER_FRAMESET:{cwe(this,r);break}case se.AFTER_AFTER_BODY:{dwe(this,r);break}case se.AFTER_AFTER_FRAMESET:{hwe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?gwe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{Gve(this,r);break}case se.BEFORE_HEAD:{Zve(this,r);break}case se.IN_HEAD:{Qve(this,r);break}case se.IN_HEAD_NO_SCRIPT:{exe(this,r);break}case se.AFTER_HEAD:{rxe(this,r);break}case se.IN_BODY:{gx(this,r);break}case se.TEXT:{Fxe(this,r);break}case se.IN_TABLE:{M0(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.IN_CAPTION:{Qxe(this,r);break}case se.IN_COLUMN_GROUP:{Jxe(this,r);break}case se.IN_TABLE_BODY:{Q4(this,r);break}case se.IN_ROW:{uz(this,r);break}case se.IN_CELL:{twe(this,r);break}case se.IN_SELECT:{hz(this,r);break}case se.IN_SELECT_IN_TABLE:{nwe(this,r);break}case se.IN_TEMPLATE:{awe(this,r);break}case se.AFTER_BODY:{pz(this,r);break}case se.IN_FRAMESET:{lwe(this,r);break}case se.AFTER_FRAMESET:{uwe(this,r);break}case se.AFTER_AFTER_BODY:{wx(this,r);break}}}onEof(r){switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{A0(this,r);break}case se.BEFORE_HEAD:{N0(this,r);break}case se.IN_HEAD:{R0(this,r);break}case se.IN_HEAD_NO_SCRIPT:{$0(this,r);break}case se.AFTER_HEAD:{P0(this,r);break}case se.IN_BODY:case se.IN_TABLE:case se.IN_CAPTION:case se.IN_COLUMN_GROUP:case se.IN_TABLE_BODY:case se.IN_ROW:case se.IN_CELL:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:{iz(this,r);break}case se.TEXT:{Hxe(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.IN_TEMPLATE:{fz(this,r);break}case se.AFTER_BODY:case se.IN_FRAMESET:case se.AFTER_FRAMESET:case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{G4(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===ne.LINE_FEED)){if(r.chars.length===1)return;r.chars=r.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(r);return}switch(this.insertionMode){case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:case se.TEXT:case se.IN_COLUMN_GROUP:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:case se.IN_FRAMESET:case se.AFTER_FRAMESET:{this._insertCharacters(r);break}case se.IN_BODY:case se.IN_CAPTION:case se.IN_CELL:case se.IN_TEMPLATE:case se.AFTER_BODY:case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{JI(this,r);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{K4(this,r);break}case se.IN_TABLE_TEXT:{sz(this,r);break}}}}function jve(e,r){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(r.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(r.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):az(e,r),n}function Bve(e,r){let n=null,o=e.openElements.stackTop;for(;o>=0;o--){const a=e.openElements.items[o];if(a===r.element)break;e._isSpecialElement(a,e.openElements.tagIDs[o])&&(n=a)}return n||(e.openElements.shortenToLength(o<0?0:o),e.activeFormattingElements.removeEntry(r)),n}function Fve(e,r,n){let o=r,a=e.openElements.getCommonAncestor(r);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const l=e.activeFormattingElements.getElementEntry(s),c=l&&i>=Ive;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(s)):(s=Hve(e,l),o===r&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(s,o),o=s)}return o}function Hve(e,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=e.treeAdapter.createElement(r.token.tagName,n,r.token.attrs);return e.openElements.replace(r.element,o),r.element=o,o}function Uve(e,r,n){const o=e.treeAdapter.getTagName(r),a=Ff(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===H.TEMPLATE&&i===Me.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function Vve(e,r,n){const o=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,o,a.attrs);e._adoptNodes(r,i),e.treeAdapter.appendChild(r,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,i,a.tagID)}function W4(e,r){for(let n=0;n<Lve;n++){const o=jve(e,r);if(!o)break;const a=Bve(e,o);if(!a)break;e.activeFormattingElements.bookmark=o;const i=Fve(e,a,o.element),s=e.openElements.getCommonAncestor(o.element);e.treeAdapter.detachNode(i),s&&Uve(e,s,i),Vve(e,a,o)}}function X4(e,r){e._appendCommentNode(r,e.openElements.currentTmplContentOrNode)}function qve(e,r){e._appendCommentNode(r,e.openElements.items[0])}function Yve(e,r){e._appendCommentNode(r,e.document)}function G4(e,r){if(e.stopped=!0,r.location){const n=e.fragmentContext?0:2;for(let o=e.openElements.stackTop;o>=n;o--)e._setEndLocation(e.openElements.items[o],r);if(!e.fragmentContext&&e.openElements.stackTop>=0){const o=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(o);if(a&&!a.endTag&&(e._setEndLocation(o,r),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,r)}}}}function Wve(e,r){e._setDocumentType(r);const n=r.forceQuirks?Ja.QUIRKS:_ve(r);kve(r)||e._err(r,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=se.BEFORE_HTML}function T0(e,r){e._err(r,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ja.QUIRKS),e.insertionMode=se.BEFORE_HTML,e._processToken(r)}function Xve(e,r){r.tagID===H.HTML?(e._insertElement(r,Me.HTML),e.insertionMode=se.BEFORE_HEAD):A0(e,r)}function Gve(e,r){const n=r.tagID;(n===H.HTML||n===H.HEAD||n===H.BODY||n===H.BR)&&A0(e,r)}function A0(e,r){e._insertFakeRootElement(),e.insertionMode=se.BEFORE_HEAD,e._processToken(r)}function Kve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.HEAD:{e._insertElement(r,Me.HTML),e.headElement=e.openElements.current,e.insertionMode=se.IN_HEAD;break}default:N0(e,r)}}function Zve(e,r){const n=r.tagID;n===H.HEAD||n===H.BODY||n===H.HTML||n===H.BR?N0(e,r):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function N0(e,r){e._insertFakeElement(me.HEAD,H.HEAD),e.headElement=e.openElements.current,e.insertionMode=se.IN_HEAD,e._processToken(r)}function Hi(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case H.TITLE:{e._switchToTextParsing(r,on.RCDATA);break}case H.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,on.RAWTEXT):(e._insertElement(r,Me.HTML),e.insertionMode=se.IN_HEAD_NO_SCRIPT);break}case H.NOFRAMES:case H.STYLE:{e._switchToTextParsing(r,on.RAWTEXT);break}case H.SCRIPT:{e._switchToTextParsing(r,on.SCRIPT_DATA);break}case H.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=se.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(se.IN_TEMPLATE);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:R0(e,r)}}function Qve(e,r){switch(r.tagID){case H.HEAD:{e.openElements.pop(),e.insertionMode=se.AFTER_HEAD;break}case H.BODY:case H.BR:case H.HTML:{R0(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function Sd(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==H.TEMPLATE&&e._err(r,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function R0(e,r){e.openElements.pop(),e.insertionMode=se.AFTER_HEAD,e._processToken(r)}function Jve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASEFONT:case H.BGSOUND:case H.HEAD:case H.LINK:case H.META:case H.NOFRAMES:case H.STYLE:{Hi(e,r);break}case H.NOSCRIPT:{e._err(r,Ee.nestedNoscriptInHead);break}default:$0(e,r)}}function exe(e,r){switch(r.tagID){case H.NOSCRIPT:{e.openElements.pop(),e.insertionMode=se.IN_HEAD;break}case H.BR:{$0(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function $0(e,r){const n=r.type===Ht.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(r,n),e.openElements.pop(),e.insertionMode=se.IN_HEAD,e._processToken(r)}function txe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BODY:{e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=se.IN_BODY;break}case H.FRAMESET:{e._insertElement(r,Me.HTML),e.insertionMode=se.IN_FRAMESET;break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{e._err(r,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,H.HEAD),Hi(e,r),e.openElements.remove(e.headElement);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:P0(e,r)}}function rxe(e,r){switch(r.tagID){case H.BODY:case H.HTML:case H.BR:{P0(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function P0(e,r){e._insertFakeElement(me.BODY,H.BODY),e.insertionMode=se.IN_BODY,mx(e,r)}function mx(e,r){switch(r.type){case Ht.CHARACTER:{ez(e,r);break}case Ht.WHITESPACE_CHARACTER:{JI(e,r);break}case Ht.COMMENT:{X4(e,r);break}case Ht.START_TAG:{So(e,r);break}case Ht.END_TAG:{gx(e,r);break}case Ht.EOF:{iz(e,r);break}}}function JI(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function ez(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function nxe(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function oxe(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function axe(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_FRAMESET)}function ixe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML)}function sxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),V4.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,Me.HTML)}function lxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function cxe(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),n||(e.formElement=e.openElements.current))}function uxe(e,r){e.framesetOk=!1;const n=r.tagID;for(let o=e.openElements.stackTop;o>=0;o--){const a=e.openElements.tagIDs[o];if(n===H.LI&&a===H.LI||(n===H.DD||n===H.DT)&&(a===H.DD||a===H.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==H.ADDRESS&&a!==H.DIV&&a!==H.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML)}function dxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.tokenizer.state=on.PLAINTEXT}function hxe(e,r){e.openElements.hasInScope(H.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.framesetOk=!1}function fxe(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(me.A);n&&(W4(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function pxe(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function mxe(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(H.NOBR)&&(W4(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function gxe(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function yxe(e,r){e.treeAdapter.getDocumentMode(e.document)!==Ja.QUIRKS&&e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=se.IN_TABLE}function tz(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Me.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function rz(e){const r=$I(e,Ed.TYPE);return r!=null&&r.toLowerCase()===Dve}function bxe(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Me.HTML),rz(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function vxe(e,r){e._appendElement(r,Me.HTML),r.ackSelfClosing=!0}function xxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._appendElement(r,Me.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function wxe(e,r){r.tagName=me.IMG,r.tagID=H.IMG,tz(e,r)}function kxe(e,r){e._insertElement(r,Me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=on.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=se.TEXT}function _xe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function Exe(e,r){e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function nz(e,r){e._switchToTextParsing(r,on.RAWTEXT)}function Sxe(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===se.IN_TABLE||e.insertionMode===se.IN_CAPTION||e.insertionMode===se.IN_TABLE_BODY||e.insertionMode===se.IN_ROW||e.insertionMode===se.IN_CELL?se.IN_SELECT_IN_TABLE:se.IN_SELECT}function Cxe(e,r){e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML)}function Txe(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,Me.HTML)}function Axe(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(H.RTC),e._insertElement(r,Me.HTML)}function Nxe(e,r){e._reconstructActiveFormattingElements(),XI(r),Y4(r),r.selfClosing?e._appendElement(r,Me.MATHML):e._insertElement(r,Me.MATHML),r.ackSelfClosing=!0}function Rxe(e,r){e._reconstructActiveFormattingElements(),GI(r),Y4(r),r.selfClosing?e._appendElement(r,Me.SVG):e._insertElement(r,Me.SVG),r.ackSelfClosing=!0}function oz(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML)}function So(e,r){switch(r.tagID){case H.I:case H.S:case H.B:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.SMALL:case H.STRIKE:case H.STRONG:{pxe(e,r);break}case H.A:{fxe(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{sxe(e,r);break}case H.P:case H.DL:case H.OL:case H.UL:case H.DIV:case H.DIR:case H.NAV:case H.MAIN:case H.MENU:case H.ASIDE:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.DETAILS:case H.ADDRESS:case H.ARTICLE:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{ixe(e,r);break}case H.LI:case H.DD:case H.DT:{uxe(e,r);break}case H.BR:case H.IMG:case H.WBR:case H.AREA:case H.EMBED:case H.KEYGEN:{tz(e,r);break}case H.HR:{xxe(e,r);break}case H.RB:case H.RTC:{Txe(e,r);break}case H.RT:case H.RP:{Axe(e,r);break}case H.PRE:case H.LISTING:{lxe(e,r);break}case H.XMP:{_xe(e,r);break}case H.SVG:{Rxe(e,r);break}case H.HTML:{nxe(e,r);break}case H.BASE:case H.LINK:case H.META:case H.STYLE:case H.TITLE:case H.SCRIPT:case H.BGSOUND:case H.BASEFONT:case H.TEMPLATE:{Hi(e,r);break}case H.BODY:{oxe(e,r);break}case H.FORM:{cxe(e,r);break}case H.NOBR:{mxe(e,r);break}case H.MATH:{Nxe(e,r);break}case H.TABLE:{yxe(e,r);break}case H.INPUT:{bxe(e,r);break}case H.PARAM:case H.TRACK:case H.SOURCE:{vxe(e,r);break}case H.IMAGE:{wxe(e,r);break}case H.BUTTON:{hxe(e,r);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{gxe(e,r);break}case H.IFRAME:{Exe(e,r);break}case H.SELECT:{Sxe(e,r);break}case H.OPTION:case H.OPTGROUP:{Cxe(e,r);break}case H.NOEMBED:case H.NOFRAMES:{nz(e,r);break}case H.FRAMESET:{axe(e,r);break}case H.TEXTAREA:{kxe(e,r);break}case H.NOSCRIPT:{e.options.scriptingEnabled?nz(e,r):oz(e,r);break}case H.PLAINTEXT:{dxe(e,r);break}case H.COL:case H.TH:case H.TD:case H.TR:case H.HEAD:case H.FRAME:case H.TBODY:case H.TFOOT:case H.THEAD:case H.CAPTION:case H.COLGROUP:break;default:oz(e,r)}}function $xe(e,r){if(e.openElements.hasInScope(H.BODY)&&(e.insertionMode=se.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function Pxe(e,r){e.openElements.hasInScope(H.BODY)&&(e.insertionMode=se.AFTER_BODY,pz(e,r))}function Mxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Oxe(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(H.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(H.FORM):n&&e.openElements.remove(n))}function Dxe(e){e.openElements.hasInButtonScope(H.P)||e._insertFakeElement(me.P,H.P),e._closePElement()}function Lxe(e){e.openElements.hasInListItemScope(H.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(H.LI),e.openElements.popUntilTagNamePopped(H.LI))}function Ixe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function zxe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Bxe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(me.BR,H.BR),e.openElements.pop(),e.framesetOk=!1}function az(e,r){const n=r.tagName,o=r.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(o===s&&(o!==H.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function gx(e,r){switch(r.tagID){case H.A:case H.B:case H.I:case H.S:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.NOBR:case H.SMALL:case H.STRIKE:case H.STRONG:{W4(e,r);break}case H.P:{Dxe(e);break}case H.DL:case H.UL:case H.OL:case H.DIR:case H.DIV:case H.NAV:case H.PRE:case H.MAIN:case H.MENU:case H.ASIDE:case H.BUTTON:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.ADDRESS:case H.ARTICLE:case H.DETAILS:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.LISTING:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{Mxe(e,r);break}case H.LI:{Lxe(e);break}case H.DD:case H.DT:{Ixe(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{zxe(e);break}case H.BR:{Bxe(e);break}case H.BODY:{$xe(e,r);break}case H.HTML:{Pxe(e,r);break}case H.FORM:{Oxe(e);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{jxe(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:az(e,r)}}function iz(e,r){e.tmplInsertionModeStack.length>0?fz(e,r):G4(e,r)}function Fxe(e,r){var n;r.tagID===H.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Hxe(e,r){e._err(r,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function K4(e,r){if(KI.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=se.IN_TABLE_TEXT,r.type){case Ht.CHARACTER:{lz(e,r);break}case Ht.WHITESPACE_CHARACTER:{sz(e,r);break}}else O0(e,r)}function Uxe(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_CAPTION}function Vxe(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_COLUMN_GROUP}function qxe(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.COLGROUP,H.COLGROUP),e.insertionMode=se.IN_COLUMN_GROUP,Z4(e,r)}function Yxe(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_TABLE_BODY}function Wxe(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.TBODY,H.TBODY),e.insertionMode=se.IN_TABLE_BODY,bx(e,r)}function Xxe(e,r){e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function Gxe(e,r){rz(r)?e._appendElement(r,Me.HTML):O0(e,r),r.ackSelfClosing=!0}function Kxe(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,Me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hf(e,r){switch(r.tagID){case H.TD:case H.TH:case H.TR:{Wxe(e,r);break}case H.STYLE:case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}case H.COL:{qxe(e,r);break}case H.FORM:{Kxe(e,r);break}case H.TABLE:{Xxe(e,r);break}case H.TBODY:case H.TFOOT:case H.THEAD:{Yxe(e,r);break}case H.INPUT:{Gxe(e,r);break}case H.CAPTION:{Uxe(e,r);break}case H.COLGROUP:{Vxe(e,r);break}default:O0(e,r)}}function M0(e,r){switch(r.tagID){case H.TABLE:{e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:O0(e,r)}}function O0(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mx(e,r),e.fosterParentingEnabled=n}function sz(e,r){e.pendingCharacterTokens.push(r)}function lz(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function D0(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)O0(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(r)}const cz=new Set([H.CAPTION,H.COL,H.COLGROUP,H.TBODY,H.TD,H.TFOOT,H.TH,H.THEAD,H.TR]);function Zxe(e,r){const n=r.tagID;cz.has(n)?e.openElements.hasInTableScope(H.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=se.IN_TABLE,Hf(e,r)):So(e,r)}function Qxe(e,r){const n=r.tagID;switch(n){case H.CAPTION:case H.TABLE:{e.openElements.hasInTableScope(H.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=se.IN_TABLE,n===H.TABLE&&M0(e,r));break}case H.BODY:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:gx(e,r)}}function Z4(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.COL:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case H.TEMPLATE:{Hi(e,r);break}default:yx(e,r)}}function Jxe(e,r){switch(r.tagID){case H.COLGROUP:{e.openElements.currentTagId===H.COLGROUP&&(e.openElements.pop(),e.insertionMode=se.IN_TABLE);break}case H.TEMPLATE:{Sd(e,r);break}case H.COL:break;default:yx(e,r)}}function yx(e,r){e.openElements.currentTagId===H.COLGROUP&&(e.openElements.pop(),e.insertionMode=se.IN_TABLE,e._processToken(r))}function bx(e,r){switch(r.tagID){case H.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_ROW;break}case H.TH:case H.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(me.TR,H.TR),e.insertionMode=se.IN_ROW,vx(e,r);break}case H.CAPTION:case H.COL:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE,Hf(e,r));break}default:Hf(e,r)}}function Q4(e,r){const n=r.tagID;switch(r.tagID){case H.TBODY:case H.TFOOT:case H.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE);break}case H.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE,M0(e,r));break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TD:case H.TH:case H.TR:break;default:M0(e,r)}}function vx(e,r){switch(r.tagID){case H.TH:case H.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_CELL,e.activeFormattingElements.insertMarker();break}case H.CAPTION:case H.COL:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:case H.TR:{e.openElements.hasInTableScope(H.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY,bx(e,r));break}default:Hf(e,r)}}function uz(e,r){switch(r.tagID){case H.TR:{e.openElements.hasInTableScope(H.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY);break}case H.TABLE:{e.openElements.hasInTableScope(H.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY,Q4(e,r));break}case H.TBODY:case H.TFOOT:case H.THEAD:{(e.openElements.hasInTableScope(r.tagID)||e.openElements.hasInTableScope(H.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY,Q4(e,r));break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TD:case H.TH:break;default:M0(e,r)}}function ewe(e,r){const n=r.tagID;cz.has(n)?(e.openElements.hasInTableScope(H.TD)||e.openElements.hasInTableScope(H.TH))&&(e._closeTableCell(),vx(e,r)):So(e,r)}function twe(e,r){const n=r.tagID;switch(n){case H.TD:case H.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=se.IN_ROW);break}case H.TABLE:case H.TBODY:case H.TFOOT:case H.THEAD:case H.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),uz(e,r));break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:break;default:gx(e,r)}}function dz(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._insertElement(r,Me.HTML);break}case H.OPTGROUP:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop(),e._insertElement(r,Me.HTML);break}case H.HR:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop(),e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case H.INPUT:case H.KEYGEN:case H.TEXTAREA:case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),r.tagID!==H.SELECT&&e._processStartTag(r));break}case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}}}function hz(e,r){switch(r.tagID){case H.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===H.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===H.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop();break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop();break}case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}}}function rwe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e._processStartTag(r)):dz(e,r)}function nwe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e.onEndTag(r)):hz(e,r)}function owe(e,r){switch(r.tagID){case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{Hi(e,r);break}case H.CAPTION:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.tmplInsertionModeStack[0]=se.IN_TABLE,e.insertionMode=se.IN_TABLE,Hf(e,r);break}case H.COL:{e.tmplInsertionModeStack[0]=se.IN_COLUMN_GROUP,e.insertionMode=se.IN_COLUMN_GROUP,Z4(e,r);break}case H.TR:{e.tmplInsertionModeStack[0]=se.IN_TABLE_BODY,e.insertionMode=se.IN_TABLE_BODY,bx(e,r);break}case H.TD:case H.TH:{e.tmplInsertionModeStack[0]=se.IN_ROW,e.insertionMode=se.IN_ROW,vx(e,r);break}default:e.tmplInsertionModeStack[0]=se.IN_BODY,e.insertionMode=se.IN_BODY,So(e,r)}}function awe(e,r){r.tagID===H.TEMPLATE&&Sd(e,r)}function fz(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):G4(e,r)}function iwe(e,r){r.tagID===H.HTML?So(e,r):xx(e,r)}function pz(e,r){var n;if(r.tagID===H.HTML){if(e.fragmentContext||(e.insertionMode=se.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===H.HTML){e._setEndLocation(e.openElements.items[0],r);const o=e.openElements.items[1];o&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(o))===null||n===void 0)&&n.endTag)&&e._setEndLocation(o,r)}}else xx(e,r)}function xx(e,r){e.insertionMode=se.IN_BODY,mx(e,r)}function swe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.FRAMESET:{e._insertElement(r,Me.HTML);break}case H.FRAME:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case H.NOFRAMES:{Hi(e,r);break}}}function lwe(e,r){r.tagID===H.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==H.FRAMESET&&(e.insertionMode=se.AFTER_FRAMESET))}function cwe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function uwe(e,r){r.tagID===H.HTML&&(e.insertionMode=se.AFTER_AFTER_FRAMESET)}function dwe(e,r){r.tagID===H.HTML?So(e,r):wx(e,r)}function wx(e,r){e.insertionMode=se.IN_BODY,mx(e,r)}function hwe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function fwe(e,r){r.chars=Dr,e._insertCharacters(r)}function pwe(e,r){e._insertCharacters(r),e.framesetOk=!1}function mz(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Me.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function mwe(e,r){if(Rve(r))mz(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===Me.MATHML?XI(r):o===Me.SVG&&($ve(r),GI(r)),Y4(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function gwe(e,r){if(r.tagID===H.P||r.tagID===H.BR){mz(e),e._endTagOutsideForeignContent(r);return}for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===Me.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}me.AREA,me.BASE,me.BASEFONT,me.BGSOUND,me.BR,me.COL,me.EMBED,me.FRAME,me.HR,me.IMG,me.INPUT,me.KEYGEN,me.LINK,me.META,me.PARAM,me.SOURCE,me.TRACK,me.WBR;const kx=gz("end"),zl=gz("start");function gz(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function yz(e){const r=zl(e),n=kx(e);if(r&&n)return{start:r,end:n}}const _x=(function(e){if(e==null)return xwe;if(typeof e=="function")return Ex(e);if(typeof e=="object")return Array.isArray(e)?ywe(e):bwe(e);if(typeof e=="string")return vwe(e);throw new Error("Expected function, string, or object as test")});function ywe(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=_x(e[n]);return Ex(o);function o(...a){let i=-1;for(;++i<r.length;)if(r[i].apply(this,a))return!0;return!1}}function bwe(e){const r=e;return Ex(n);function n(o){const a=o;let i;for(i in e)if(a[i]!==r[i])return!1;return!0}}function vwe(e){return Ex(r);function r(n){return n&&n.type===e}}function Ex(e){return r;function r(n,o,a){return!!(wwe(n)&&e.call(this,n,typeof o=="number"?o:void 0,a||void 0))}}function xwe(){return!0}function wwe(e){return e!==null&&typeof e=="object"&&"type"in e}function s2t(e){return e}const bz=[],kwe=!0,J4=!1,_we="skip";function vz(e,r,n,o){let a;typeof r=="function"&&typeof n!="function"?(o=n,n=r):a=r;const i=_x(a),s=o?-1:1;l(e,void 0,[])();function l(c,u,d){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const g=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(g?"<"+g+">":""))+")"})}return p;function p(){let g=bz,y,x,w;if((!r||i(c,u,d[d.length-1]||void 0))&&(g=Ewe(n(c,d)),g[0]===J4))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==_we)for(x=(o?k.children.length:-1)+s,w=d.concat(k);x>-1&&x<k.children.length;){const C=k.children[x];if(y=l(C,x,w)(),y[0]===J4)return y;x=typeof y[1]=="number"?y[1]:x+s}}return g}}}function Ewe(e){return Array.isArray(e)?e:typeof e=="number"?[kwe,e]:e==null?bz:[e]}function eS(e,r,n,o){let a,i,s;typeof r=="function"&&typeof n!="function"?(i=void 0,s=r,a=n):(i=r,s=n,a=o),vz(e,i,l,a);function l(c,u){const d=u[u.length-1],h=d?d.children.indexOf(c):void 0;return s(c,h,d)}}const Swe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Cwe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wz(e,r){const n=Lwe(e),o=B4("type",{handlers:{root:Twe,element:Awe,text:Nwe,comment:_z,doctype:Rwe,raw:Pwe},unknown:Mwe}),a={parser:n?new QI(xz):QI.getFragmentParser(void 0,xz),handle(l){o(l,a)},stitches:!1,options:r||{}};o(e,a),Uf(a,zl());const i=n?a.parser.document:a.parser.getFragment(),s=xbe(i,{file:a.options.file});return a.stitches&&eS(s,"comment",function(l,c,u){const d=l;if(d.value.stitch&&u&&c!==void 0){const h=u.children;return h[c]=d.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function kz(e,r){let n=-1;if(e)for(;++n<e.length;)r.handle(e[n])}function Twe(e,r){kz(e.children,r)}function Awe(e,r){Owe(e,r),kz(e.children,r),Dwe(e,r)}function Nwe(e,r){r.parser.tokenizer.state>4&&(r.parser.tokenizer.state=0);const n={type:Ht.CHARACTER,chars:e.value,location:L0(e)};Uf(r,zl(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Rwe(e,r){const n={type:Ht.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:L0(e)};Uf(r,zl(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function $we(e,r){r.stitches=!0;const n=Iwe(e);if("children"in e&&"children"in n){const o=wz({type:"root",children:e.children},r.options);n.children=o.children}_z({type:"comment",value:{stitch:n}},r)}function _z(e,r){const n=e.value,o={type:Ht.COMMENT,data:n,location:L0(e)};Uf(r,zl(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function Pwe(e,r){if(r.parser.tokenizer.preprocessor.html="",r.parser.tokenizer.preprocessor.pos=-1,r.parser.tokenizer.preprocessor.lastGapPos=-2,r.parser.tokenizer.preprocessor.gapStack=[],r.parser.tokenizer.preprocessor.skipNextNewLine=!1,r.parser.tokenizer.preprocessor.lastChunkWritten=!1,r.parser.tokenizer.preprocessor.endOfChunkHit=!1,r.parser.tokenizer.preprocessor.isEol=!1,Ez(r,zl(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(Swe,"&lt;$1$2"):e.value,!1),r.parser.tokenizer._runParsingLoop(),r.parser.tokenizer.state===72||r.parser.tokenizer.state===78){r.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=r.parser.tokenizer._consume();r.parser.tokenizer._callState(n)}}function Mwe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))$we(n,r);else{let o="";throw Cwe.has(n.type)&&(o=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+o)}}function Uf(e,r){Ez(e,r);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=on.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ez(e,r){if(r&&r.offset!==void 0){const n={startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-r.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=r.offset,e.parser.tokenizer.preprocessor.line=r.line,e.parser.tokenizer.currentLocation=n}}function Owe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===on.PLAINTEXT)return;Uf(r,zl(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:kd.html;a===kd.html&&n==="svg"&&(a=kd.svg);const i=Dbe({...e,children:[]},{space:a===kd.svg?"svg":"html"}),s={type:Ht.START_TAG,tagName:n,tagID:Ff(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:L0(e)};r.parser.currentToken=s,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function Dwe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&TI.includes(n)||r.parser.tokenizer.state===on.PLAINTEXT)return;Uf(r,kx(e));const o={type:Ht.END_TAG,tagName:n,tagID:Ff(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:L0(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===on.RCDATA||r.parser.tokenizer.state===on.RAWTEXT||r.parser.tokenizer.state===on.SCRIPT_DATA)&&(r.parser.tokenizer.state=on.DATA)}function Lwe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function L0(e){const r=zl(e)||{line:void 0,column:void 0,offset:void 0},n=kx(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Iwe(e){return"children"in e?xd({...e,children:[]}):xd(e)}function zwe(e){return function(r,n){return wz(r,{...e,file:n})}}const Cd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Sz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cd],h2:[["className","sr-only"]],img:[...Cd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cd],table:[...Cd],ul:[...Cd,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gc={}.hasOwnProperty;function jwe(e,r){let n={type:"root",children:[]};const o={schema:r?{...Sz,...r}:Sz,stack:[]},a=Cz(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Cz(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return Bwe(e,n);case"doctype":return Fwe(e,n);case"element":return Hwe(e,n);case"root":return Uwe(e,n);case"text":return Vwe(e,n)}}}function Bwe(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return I0(i,r),i}}function Fwe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return I0(n,r),n}}function Hwe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=Tz(e,r.children),a=qwe(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Gc.call(e.schema.ancestors,n))){const l=e.schema.ancestors[n];let c=-1;for(i=!1;++c<l.length;)e.stack.includes(l[c])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?o:void 0;const s={type:"element",tagName:n,properties:a,children:o};return I0(s,r),s}function Uwe(e,r){const o={type:"root",children:Tz(e,r.children)};return I0(o,r),o}function Vwe(e,r){const o={type:"text",value:typeof r.value=="string"?r.value:""};return I0(o,r),o}function Tz(e,r){const n=[];if(Array.isArray(r)){const o=r;let a=-1;for(;++a<o.length;){const i=Cz(e,o[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function qwe(e,r){const n=e.stack[e.stack.length-1],o=e.schema.attributes,a=e.schema.required,i=o&&Gc.call(o,n)?o[n]:void 0,s=o&&Gc.call(o,"*")?o["*"]:void 0,l=r&&typeof r=="object"?r:{},c={};let u;for(u in l)if(Gc.call(l,u)){const d=l[u];let h=Az(e,Rz(i,u),u,d);h==null&&(h=Az(e,Rz(s,u),u,d)),h!=null&&(c[u]=h)}if(a&&Gc.call(a,n)){const d=a[n];for(u in d)Gc.call(d,u)&&!Gc.call(c,u)&&(c[u]=d[u])}return c}function Az(e,r,n,o){return r?Array.isArray(o)?Ywe(e,r,n,o):Nz(e,r,n,o):void 0}function Ywe(e,r,n,o){let a=-1;const i=[];for(;++a<o.length;){const s=Nz(e,r,n,o[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function Nz(e,r,n,o){if(!(typeof o!="boolean"&&typeof o!="number"&&typeof o!="string")&&Wwe(e,n,o)){if(typeof r=="object"&&r.length>1){let a=!1,i=0;for(;++i<r.length;){const s=r[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(o))){a=!0;break}}else if(s===o){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+o:o}}function Wwe(e,r,n){const o=e.schema.protocols&&Gc.call(e.schema.protocols,r)?e.schema.protocols[r]:void 0;if(!o||o.length===0)return!0;const a=String(n),i=a.indexOf(":"),s=a.indexOf("?"),l=a.indexOf("#"),c=a.indexOf("/");if(i<0||c>-1&&i>c||s>-1&&i>s||l>-1&&i>l)return!0;let u=-1;for(;++u<o.length;){const d=o[u];if(i===d.length&&a.slice(0,d.length)===d)return!0}return!1}function I0(e,r){const n=yz(r);r.data&&(e.data=xd(r.data)),n&&(e.position=n)}function Rz(e,r){let n,o=-1;if(e)for(;++o<e.length;){const a=e[o],i=typeof a=="string"?a:a[0];if(i===r)return a;i==="data*"&&(n=a)}if(r.length>4&&r.slice(0,4).toLowerCase()==="data")return n}function Xwe(e){return function(r){return jwe(r,e)}}const Gwe=/["&'<>`]/g,Kwe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zwe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qwe=/[|\\{}()[\]^$+*?.]/g,$z=new WeakMap;function Jwe(e,r){if(e=e.replace(r.subset?e3e(r.subset):Gwe,o),r.subset||r.escapeOnly)return e;return e.replace(Kwe,n).replace(Zwe,o);function n(a,i,s){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),r)}function o(a,i,s){return r.format(a.charCodeAt(0),s.charCodeAt(i+1),r)}}function e3e(e){let r=$z.get(e);return r||(r=t3e(e),$z.set(e,r)),r}function t3e(e){const r=[];let n=-1;for(;++n<e.length;)r.push(e[n].replace(Qwe,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}const r3e=/[\dA-Fa-f]/;function n3e(e,r,n){const o="&#x"+e.toString(16).toUpperCase();return n&&r&&!r3e.test(String.fromCharCode(r))?o:o+";"}const o3e=/\d/;function a3e(e,r,n){const o="&#"+String(e);return n&&r&&!o3e.test(String.fromCharCode(r))?o:o+";"}const i3e=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tS={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},s3e=["cent","copy","divide","gt","lt","not","para","times"],Pz={}.hasOwnProperty,rS={};let Sx;for(Sx in tS)Pz.call(tS,Sx)&&(rS[tS[Sx]]=Sx);const l3e=/[^\dA-Za-z]/;function c3e(e,r,n,o){const a=String.fromCharCode(e);if(Pz.call(rS,a)){const i=rS[a],s="&"+i;return n&&i3e.includes(i)&&!s3e.includes(i)&&(!o||r&&r!==61&&l3e.test(String.fromCharCode(r)))?s:s+";"}return""}function u3e(e,r,n){let o=n3e(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=c3e(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=a3e(e,r,n.omitOptionalSemicolons);i.length<o.length&&(o=i)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function Vf(e,r){return Jwe(e,Object.assign({format:u3e},r))}const d3e=/^>|^->|<!--|-->|--!>|<!-$/g,h3e=[">"],f3e=["<",">"];function p3e(e,r,n,o){return o.settings.bogusComments?"<?"+Vf(e.value,Object.assign({},o.settings.characterReferences,{subset:h3e}))+">":"<!--"+e.value.replace(d3e,a)+"-->";function a(i){return Vf(i,Object.assign({},o.settings.characterReferences,{subset:f3e}))}}function m3e(e,r,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Cx(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const g3e=/[ \t\n\f\r]/g;function nS(e){return typeof e=="object"?e.type==="text"?Mz(e.value):!1:Mz(e)}function Mz(e){return e.replace(g3e,"")===""}const In=Dz(1),Oz=Dz(-1),y3e=[];function Dz(e){return r;function r(n,o,a){const i=n?n.children:y3e;let s=(o||0)+e,l=i[s];if(!a)for(;l&&nS(l);)s+=e,l=i[s];return l}}const b3e={}.hasOwnProperty;function Lz(e){return r;function r(n,o,a){return b3e.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const oS=Lz({body:x3e,caption:aS,colgroup:aS,dd:E3e,dt:_3e,head:aS,html:v3e,li:k3e,optgroup:S3e,option:C3e,p:w3e,rp:Iz,rt:Iz,tbody:A3e,td:zz,tfoot:N3e,th:zz,thead:T3e,tr:R3e});function aS(e,r,n){const o=In(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&nS(o.value.charAt(0)))}function v3e(e,r,n){const o=In(n,r);return!o||o.type!=="comment"}function x3e(e,r,n){const o=In(n,r);return!o||o.type!=="comment"}function w3e(e,r,n){const o=In(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function k3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="li"}function _3e(e,r,n){const o=In(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function E3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Iz(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function S3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function C3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function T3e(e,r,n){const o=In(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function A3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function N3e(e,r,n){return!In(n,r)}function R3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function zz(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const $3e=Lz({body:O3e,colgroup:D3e,head:M3e,html:P3e,tbody:L3e});function P3e(e){const r=In(e,-1);return!r||r.type!=="comment"}function M3e(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function O3e(e){const r=In(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&nS(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function D3e(e,r,n){const o=Oz(n,r),a=In(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&oS(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function L3e(e,r,n){const o=Oz(n,r),a=In(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&oS(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Tx={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function I3e(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let s=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=E0);const u=z3e(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(s=!1),(u||!i||!$3e(e,r,n))&&(l.push("<",e.tagName,u?" "+u:""),s&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!s&&(!i||!oS(e,r,n))&&l.push("</"+e.tagName+">"),l.join("")}function z3e(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=j3e(e,a,r[a]);i&&n.push(i)}}for(;++o<n.length;){const i=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&i!=='"'&&i!=="'"&&(n[o]+=" ")}return n.join("")}function j3e(e,r,n){const o=M4(e.schema,r),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let s=e.quote,l;if(o.overloadedBoolean&&(n===o.attribute||n==="")?n=!0:(o.boolean||o.overloadedBoolean)&&(typeof n!="string"||n===o.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Vf(o.attribute,Object.assign({},e.settings.characterReferences,{subset:Tx.name[a][i]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?oI:sI)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=Vf(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Tx.unquoted[a][i]}))),l!==n&&(e.settings.quoteSmart&&Cx(n,s)>Cx(n,e.alternative)&&(s=e.alternative),l=s+Vf(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Tx.single:Tx.double)[a][i],attribute:!0}))+s),c+(l&&"="+l))}const B3e=["<","&"];function jz(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Vf(e.value,Object.assign({},o.settings.characterReferences,{subset:B3e}))}function F3e(e,r,n,o){return o.settings.allowDangerousHtml?e.value:jz(e,r,n,o)}function H3e(e,r,n,o){return o.all(e)}const U3e=B4("type",{invalid:V3e,unknown:q3e,handlers:{comment:p3e,doctype:m3e,element:I3e,raw:F3e,root:H3e,text:jz}});function V3e(e){throw new Error("Expected node, not `"+e+"`")}function q3e(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Y3e={},W3e={},X3e=[];function G3e(e,r){const n=r||Y3e,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:K3e,all:Z3e,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||TI,characterReferences:n.characterReferences||W3e,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?E0:dx,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function K3e(e,r,n){return U3e(e,r,n,this)}function Z3e(e){const r=[],n=e&&e.children||X3e;let o=-1;for(;++o<n.length;)r[o]=this.one(n[o],o,e);return r.join("")}function Q3e(e){const r=this,n={...r.data("settings"),...e};r.compiler=o;function o(a){return G3e(a,n)}}const Fo=Kc(/[A-Za-z]/),Co=Kc(/[\dA-Za-z]/),J3e=Kc(/[#-'*+\--9=?A-Z^-~]/);function Ax(e){return e!==null&&(e<32||e===127)}const iS=Kc(/\d/),eke=Kc(/[\dA-Fa-f]/),tke=Kc(/[!-/:-@[-`{-~]/);function ht(e){return e!==null&&e<-2}function xr(e){return e!==null&&(e<0||e===32)}function Yt(e){return e===-2||e===-1||e===32}const Nx=Kc(new RegExp("\\p{P}|\\p{S}","u")),Td=Kc(/\s/);function Kc(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rke(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function nke(e,r,n){const a=_x((n||{}).ignore||[]),i=oke(r);let s=-1;for(;++s<i.length;)vz(e,"text",l);function l(u,d){let h=-1,p;for(;++h<d.length;){const g=d[h],y=p?p.children:void 0;if(a(g,y?y.indexOf(g):void 0,p))return;p=g}if(p)return c(u,d)}function c(u,d){const h=d[d.length-1],p=i[s][0],g=i[s][1];let y=0;const w=h.children.indexOf(u);let k=!1,C=[];p.lastIndex=0;let _=p.exec(u.value);for(;_;){const T=_.index,A={index:_.index,input:_.input,stack:[...d,u]};let N=g(..._,A);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=T+1:(y!==T&&C.push({type:"text",value:u.value.slice(y,T)}),Array.isArray(N)?C.push(...N):N&&C.push(N),y=T+_[0].length,k=!0),!p.global)break;_=p.exec(u.value)}return k?(y<u.value.length&&C.push({type:"text",value:u.value.slice(y)}),h.children.splice(w,1,...C)):C=[u],w+C.length}}function oke(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<n.length;){const a=n[o];r.push([ake(a[0]),ike(a[1])])}return r}function ake(e){return typeof e=="string"?new RegExp(rke(e),"g"):e}function ike(e){return typeof e=="function"?e:function(){return e}}const sS="phrasing",lS=["autolink","link","image","label"];function ske(){return{transforms:[pke],enter:{literalAutolink:cke,literalAutolinkEmail:cS,literalAutolinkHttp:cS,literalAutolinkWww:cS},exit:{literalAutolink:fke,literalAutolinkEmail:hke,literalAutolinkHttp:uke,literalAutolinkWww:dke}}}function lke(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sS,notInConstruct:lS},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sS,notInConstruct:lS},{character:":",before:"[ps]",after:"\\/",inConstruct:sS,notInConstruct:lS}]}}function cke(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cS(e){this.config.enter.autolinkProtocol.call(this,e)}function uke(e){this.config.exit.autolinkProtocol.call(this,e)}function dke(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function hke(e){this.config.exit.autolinkEmail.call(this,e)}function fke(e){this.exit(e)}function pke(e){nke(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mke],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),gke]],{ignore:["link","linkReference"]})}function mke(e,r,n,o,a){let i="";if(!Bz(a)||(/^w/i.test(r)&&(n=r+n,r="",i="http://"),!yke(n)))return!1;const s=bke(n+o);if(!s[0])return!1;const l={type:"link",title:null,url:i+r+s[0],children:[{type:"text",value:r+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function gke(e,r,n,o){return!Bz(o,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+n,children:[{type:"text",value:r+"@"+n}]}}function yke(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function bke(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=Cx(e,"(");let i=Cx(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function Bz(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Td(n)||Nx(n))&&(!r||n!==47)}function Ui(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Fz.peek=Tke;function vke(){this.buffer()}function xke(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wke(){this.buffer()}function kke(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _ke(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ui(this.sliceSerialize(e)).toLowerCase(),n.label=r}function Eke(e){this.exit(e)}function Ske(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ui(this.sliceSerialize(e)).toLowerCase(),n.label=r}function Cke(e){this.exit(e)}function Tke(){return"["}function Fz(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),s(),i+=a.move("]"),i}function Ake(){return{enter:{gfmFootnoteCallString:vke,gfmFootnoteCall:xke,gfmFootnoteDefinitionLabelString:wke,gfmFootnoteDefinition:kke},exit:{gfmFootnoteCallString:_ke,gfmFootnoteCall:Eke,gfmFootnoteDefinitionLabelString:Ske,gfmFootnoteDefinition:Cke}}}function Nke(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,s){const l=i.createTracker(s);let c=l.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return c+=l.move(i.safe(i.associationId(o),{before:c,after:"]"})),d(),c+=l.move("]:"),o.children&&o.children.length>0&&(l.shift(4),c+=l.move((r?`
`:" ")+i.indentLines(i.containerFlow(o,l.current()),r?Hz:Rke))),u(),c}}function Rke(e,r,n){return r===0?e:Hz(e,r,n)}function Hz(e,r,n){return(n?"":"    ")+e}const $ke=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Uz.peek=Lke;function Pke(){return{canContainEols:["delete"],enter:{strikethrough:Oke},exit:{strikethrough:Dke}}}function Mke(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$ke}],handlers:{delete:Uz}}}function Oke(e){this.enter({type:"delete",children:[]},e)}function Dke(e){this.exit(e)}function Uz(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function Lke(){return"~"}function Ike(e){return e.length}function zke(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||Ike,i=[],s=[],l=[],c=[];let u=0,d=-1;for(;++d<e.length;){const x=[],w=[];let k=-1;for(e[d].length>u&&(u=e[d].length);++k<e[d].length;){const C=jke(e[d][k]);if(n.alignDelimiters!==!1){const _=a(C);w[k]=_,(c[k]===void 0||_>c[k])&&(c[k]=_)}x.push(C)}s[d]=x,l[d]=w}let h=-1;if(typeof o=="object"&&"length"in o)for(;++h<u;)i[h]=Vz(o[h]);else{const x=Vz(o);for(;++h<u;)i[h]=x}h=-1;const p=[],g=[];for(;++h<u;){const x=i[h];let w="",k="";x===99?(w=":",k=":"):x===108?w=":":x===114&&(k=":");let C=n.alignDelimiters===!1?1:Math.max(1,c[h]-w.length-k.length);const _=w+"-".repeat(C)+k;n.alignDelimiters!==!1&&(C=w.length+C+k.length,C>c[h]&&(c[h]=C),g[h]=C),p[h]=_}s.splice(1,0,p),l.splice(1,0,g),d=-1;const y=[];for(;++d<s.length;){const x=s[d],w=l[d];h=-1;const k=[];for(;++h<u;){const C=x[h]||"";let _="",T="";if(n.alignDelimiters!==!1){const A=c[h]-(w[h]||0),N=i[h];N===114?_=" ".repeat(A):N===99?A%2?(_=" ".repeat(A/2+.5),T=" ".repeat(A/2-.5)):(_=" ".repeat(A/2),T=_):T=" ".repeat(A)}n.delimiterStart!==!1&&!h&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||h)&&k.push(" "),n.alignDelimiters!==!1&&k.push(_),k.push(C),n.alignDelimiters!==!1&&k.push(T),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||h!==u-1)&&k.push("|")}y.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return y.join(`
`)}function jke(e){return e==null?"":String(e)}function Vz(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function Bke(e,r,n,o){const a=n.enter("blockquote"),i=n.createTracker(o);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),Fke);return a(),s}function Fke(e,r,n){return">"+(n?"":" ")+e}function Hke(e,r){return qz(e,r.inConstruct,!0)&&!qz(e,r.notInConstruct,!1)}function qz(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++o<r.length;)if(e.includes(r[o]))return!0;return!1}function Yz(e,r,n,o){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&Hke(n.stack,n.unsafe[a]))return/[ \t]/.test(o.before)?"":" ";return`\\
`}function Uke(e,r){const n=String(e);let o=n.indexOf(r),a=o,i=0,s=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===a?++i>s&&(s=i):i=1,a=o+r.length,o=n.indexOf(r,a);return s}function Vke(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qke(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Yke(e,r,n,o){const a=qke(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(Vke(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(i,Wke);return h(),p}const l=n.createTracker(o),c=a.repeat(Math.max(Uke(i,a)+1,3)),u=n.enter("codeFenced");let d=l.move(c);if(e.lang){const h=n.enter(`codeFencedLang${s}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:`
`,encode:["`"],...l.current()})),h()}return d+=l.move(`
`),i&&(d+=l.move(i+`
`)),d+=l.move(c),u(),d}function Wke(e,r,n){return(n?"":"    ")+e}function uS(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Xke(e,r,n,o){const a=uS(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const c=n.createTracker(o);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":`
`,...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),s(),u}function Gke(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function z0(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qf(e){if(e===null||xr(e)||Td(e))return 1;if(Nx(e))return 2}function Rx(e,r,n){const o=qf(e),a=qf(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wz.peek=Kke;function Wz(e,r,n,o){const a=Gke(n),i=n.enter("emphasis"),s=n.createTracker(o),l=s.move(a);let c=s.move(n.containerPhrasing(e,{after:a,before:l,...s.current()}));const u=c.charCodeAt(0),d=Rx(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z0(u)+c.slice(1));const h=c.charCodeAt(c.length-1),p=Rx(o.after.charCodeAt(0),h,a);p.inside&&(c=c.slice(0,-1)+z0(h));const g=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+g}function Kke(e,r,n){return n.options.emphasis||"*"}const Zke={};function $x(e,r){const n=r||Zke,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Xz(e,o,a)}function Xz(e,r,n){if(Qke(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gz(e.children,r,n)}return Array.isArray(e)?Gz(e,r,n):""}function Gz(e,r,n){const o=[];let a=-1;for(;++a<e.length;)o[a]=Xz(e[a],r,n);return o.join("")}function Qke(e){return!!(e&&typeof e=="object")}function Jke(e,r){let n=!1;return eS(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,J4}),!!((!e.depth||e.depth<3)&&$x(e)&&(r.options.setext||n))}function e_e(e,r,n,o){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(o);if(Jke(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...i.current(),before:`
`,after:`
`});return h(),d(),p+`
`+(a===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
`))+1))}const s="#".repeat(a),l=n.enter("headingAtx"),c=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
`,...i.current()});return/^[\t ]/.test(u)&&(u=z0(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),c(),l(),u}Kz.peek=t_e;function Kz(e){return e.value||""}function t_e(){return"<"}Zz.peek=r_e;function Zz(e,r,n,o){const a=uS(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const c=n.createTracker(o);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),u+=c.move(")"),s(),u}function r_e(){return"!"}Qz.peek=n_e;function Qz(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(o);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=d,i(),a==="full"||!u||u!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function n_e(){return"!"}Jz.peek=o_e;function Jz(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i<n.unsafe.length;){const s=n.unsafe[i],l=n.compilePattern(s);let c;if(s.atBreak)for(;c=l.exec(o);){let u=c.index;o.charCodeAt(u)===10&&o.charCodeAt(u-1)===13&&u--,o=o.slice(0,u)+" "+o.slice(c.index+1)}}return a+o+a}function o_e(){return"`"}function ej(e,r){const n=$x(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}tj.peek=a_e;function tj(e,r,n,o){const a=uS(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(o);let l,c;if(ej(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),l(),n.stack=d,h}l=n.enter("link"),c=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(c=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),c()),u+=s.move(")"),l(),u}function a_e(e,r,n){return ej(e,n)?"<":"["}rj.peek=i_e;function rj(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(o);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=d,i(),a==="full"||!u||u!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function i_e(){return"["}function dS(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function s_e(e){const r=dS(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function l_e(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function nj(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function c_e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?l_e(n):dS(n);const l=e.ordered?s==="."?")":".":s_e(n);let c=r&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),nj(n)===s&&d){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(s=l),n.bulletCurrent=s;const u=n.containerFlow(e,o);return n.bulletLastUsed=s,n.bulletCurrent=i,a(),u}function u_e(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function d_e(e,r,n,o){const a=u_e(n);let i=n.bulletCurrent||dS(n);r&&r.type==="list"&&r.ordered&&(i=(typeof r.start=="number"&&r.start>-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(o);l.move(i+" ".repeat(s-i.length)),l.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return c(),u;function d(h,p,g){return p?(g?"":" ".repeat(s))+h:(g?i:i+" ".repeat(s-i.length))+h}}function h_e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,o);return i(),a(),s}const f_e=_x(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function p_e(e,r,n,o){return(e.children.some(function(s){return f_e(s)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function m_e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}oj.peek=g_e;function oj(e,r,n,o){const a=m_e(n),i=n.enter("strong"),s=n.createTracker(o),l=s.move(a+a);let c=s.move(n.containerPhrasing(e,{after:a,before:l,...s.current()}));const u=c.charCodeAt(0),d=Rx(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z0(u)+c.slice(1));const h=c.charCodeAt(c.length-1),p=Rx(o.after.charCodeAt(0),h,a);p.inside&&(c=c.slice(0,-1)+z0(h));const g=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+g}function g_e(e,r,n){return n.options.strong||"*"}function y_e(e,r,n,o){return n.safe(e.value,o)}function b_e(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function v_e(e,r,n){const o=(nj(n)+(n.options.ruleSpaces?" ":"")).repeat(b_e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const aj={blockquote:Bke,break:Yz,code:Yke,definition:Xke,emphasis:Wz,hardBreak:Yz,heading:e_e,html:Kz,image:Zz,imageReference:Qz,inlineCode:Jz,link:tj,linkReference:rj,list:c_e,listItem:d_e,paragraph:h_e,root:p_e,strong:oj,text:y_e,thematicBreak:v_e},ij={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"Ĳ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"	",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",filig:"ﬁ",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},x_e={}.hasOwnProperty;function hS(e){return x_e.call(ij,e)?ij[e]:!1}function sj(e,r){const n=Number.parseInt(e,r);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const w_e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k_e(e){return e.replace(w_e,__e)}function __e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return sj(n.slice(i?2:1),i?16:10)}return hS(n)||e}function E_e(){return{enter:{table:S_e,tableData:lj,tableHeader:lj,tableRow:T_e},exit:{codeText:A_e,table:C_e,tableData:fS,tableHeader:fS,tableRow:fS}}}function S_e(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function C_e(e){this.exit(e),this.data.inTable=void 0}function T_e(e){this.enter({type:"tableRow",children:[]},e)}function fS(e){this.exit(e)}function lj(e){this.enter({type:"tableCell",children:[]},e)}function A_e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,N_e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function N_e(e,r){return r==="|"?r:e}function R_e(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:c,tableRow:l}};function s(g,y,x,w){return u(d(g,x,w),g.align)}function l(g,y,x,w){const k=h(g,x,w),C=u([k]);return C.slice(0,C.indexOf(`
`))}function c(g,y,x,w){const k=x.enter("tableCell"),C=x.enter("phrasing"),_=x.containerPhrasing(g,{...w,before:i,after:i});return C(),k(),_}function u(g,y){return zke(g,{align:y,alignDelimiters:o,padding:n,stringLength:a})}function d(g,y,x){const w=g.children;let k=-1;const C=[],_=y.enter("table");for(;++k<w.length;)C[k]=h(w[k],y,x);return _(),C}function h(g,y,x){const w=g.children;let k=-1;const C=[],_=y.enter("tableRow");for(;++k<w.length;)C[k]=c(w[k],g,y,x);return _(),C}function p(g,y,x){let w=aj.inlineCode(g,y,x);return x.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function $_e(){return{exit:{taskListCheckValueChecked:cj,taskListCheckValueUnchecked:cj,paragraph:M_e}}}function P_e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O_e}}}function cj(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function M_e(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const a=r.children;let i=-1,s;for(;++i<a.length;){const l=a[i];if(l.type==="paragraph"){s=l;break}}s===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function O_e(e,r,n,o){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(o);i&&l.move(s);let c=aj.listItem(e,r,n,{...o,...l.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+s}}function D_e(){return[ske(),Ake(),Pke(),E_e(),$_e()]}function L_e(e){return{extensions:[lke(),Nke(e),Mke(),R_e(e),P_e()]}}function wa(e,r,n,o){const a=e.length;let i=0,s;if(r<0?r=-r>a?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)s=Array.from(o),s.unshift(r,n),e.splice(...s);else for(n&&e.splice(r,n);i<o.length;)s=o.slice(i,i+1e4),s.unshift(r,0),e.splice(...s),i+=1e4,r+=1e4}function ei(e,r){return e.length>0?(wa(e,e.length,0,r),e):r}const uj={}.hasOwnProperty;function dj(e){const r={};let n=-1;for(;++n<e.length;)I_e(r,e[n]);return r}function I_e(e,r){let n;for(n in r){const a=(uj.call(e,n)?e[n]:void 0)||(e[n]={}),i=r[n];let s;if(i)for(s in i){uj.call(a,s)||(a[s]=[]);const l=i[s];z_e(a[s],Array.isArray(l)?l:l?[l]:[])}}}function z_e(e,r){let n=-1;const o=[];for(;++n<r.length;)(r[n].add==="after"?e:o).push(r[n]);wa(e,0,0,o)}const j_e={tokenize:q_e,partial:!0},hj={tokenize:Y_e,partial:!0},fj={tokenize:W_e,partial:!0},pj={tokenize:X_e,partial:!0},B_e={tokenize:G_e,partial:!0},mj={name:"wwwAutolink",tokenize:U_e,previous:yj},gj={name:"protocolAutolink",tokenize:V_e,previous:bj},jl={name:"emailAutolink",tokenize:H_e,previous:vj},Ys={};function F_e(){return{text:Ys}}let Ad=48;for(;Ad<123;)Ys[Ad]=jl,Ad++,Ad===58?Ad=65:Ad===91&&(Ad=97);Ys[43]=jl,Ys[45]=jl,Ys[46]=jl,Ys[95]=jl,Ys[72]=[jl,gj],Ys[104]=[jl,gj],Ys[87]=[jl,mj],Ys[119]=[jl,mj];function H_e(e,r,n){const o=this;let a,i;return s;function s(h){return!pS(h)||!vj.call(o,o.previous)||mS(o.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return pS(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(B_e,d,u)(h):h===45||h===95||Co(h)?(i=!0,e.consume(h),c):d(h)}function u(h){return e.consume(h),a=!0,c}function d(h){return i&&a&&Fo(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(h)):n(h)}}function U_e(e,r,n){const o=this;return a;function a(s){return s!==87&&s!==119||!yj.call(o,o.previous)||mS(o.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(j_e,e.attempt(hj,e.attempt(fj,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(s)}}function V_e(e,r,n){const o=this;let a="",i=!1;return s;function s(h){return(h===72||h===104)&&bj.call(o,o.previous)&&!mS(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(Fo(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),i?u:(i=!0,c)):n(h)}function u(h){return h===null||Ax(h)||xr(h)||Td(h)||Nx(h)?n(h):e.attempt(hj,e.attempt(fj,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(h)}}function q_e(e,r,n){let o=0;return a;function a(s){return(s===87||s===119)&&o<3?(o++,e.consume(s),a):s===46&&o===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):r(s)}}function Y_e(e,r,n){let o,a,i;return s;function s(u){return u===46||u===95?e.check(pj,c,l)(u):u===null||xr(u)||Td(u)||u!==45&&Nx(u)?c(u):(i=!0,e.consume(u),s)}function l(u){return u===95?o=!0:(a=o,o=void 0),e.consume(u),s}function c(u){return a||o||!i?n(u):r(u)}}function W_e(e,r){let n=0,o=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&o<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(pj,r,i)(s):s===null||xr(s)||Td(s)?r(s):(e.consume(s),a)}function i(s){return s===41&&o++,e.consume(s),a}}function X_e(e,r,n){return o;function o(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),o):l===38?(e.consume(l),i):l===93?(e.consume(l),a):l===60||l===null||xr(l)||Td(l)?r(l):n(l)}function a(l){return l===null||l===40||l===91||xr(l)||Td(l)?r(l):o(l)}function i(l){return Fo(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),o):Fo(l)?(e.consume(l),s):n(l)}}function G_e(e,r,n){return o;function o(i){return e.consume(i),a}function a(i){return Co(i)?n(i):r(i)}}function yj(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xr(e)}function bj(e){return!Fo(e)}function vj(e){return!(e===47||pS(e))}function pS(e){return e===43||e===45||e===46||e===95||Co(e)}function mS(e){let r=e.length,n=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Yf(e){const r=[];let n=-1,o=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Co(e.charCodeAt(n+1))&&Co(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(s=String.fromCharCode(i,l),a=1):s="�"}else s=String.fromCharCode(i);s&&(r.push(e.slice(o,n),encodeURIComponent(s)),o=n+a+1,s=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function Px(e,r,n){const o=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!o.includes(i)&&(r=i(r,n),o.push(i))}return r}const gS={name:"attention",resolveAll:K_e,tokenize:Z_e};function K_e(e,r){let n=-1,o,a,i,s,l,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(o=n;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&r.sliceSerialize(e[o][1]).charCodeAt(0)===r.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[o][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[o][1].end.offset-e[o][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[o][1].end},p={...e[n][1].start};xj(h,-c),xj(p,c),s={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[o][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[o][1].end={...s.start},e[n][1].start={...l.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=ei(u,[["enter",e[o][1],r],["exit",e[o][1],r]])),u=ei(u,[["enter",a,r],["enter",s,r],["exit",s,r],["enter",i,r]]),u=ei(u,Px(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),u=ei(u,[["exit",i,r],["enter",l,r],["exit",l,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=ei(u,[["enter",e[n][1],r],["exit",e[n][1],r]])):d=0,wa(e,o-1,n-o+3,u),n=o+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Z_e(e,r){const n=this.parser.constructs.attentionMarkers.null,o=this.previous,a=qf(o);let i;return s;function s(c){return i=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===i)return e.consume(c),l;const u=e.exit("attentionSequence"),d=qf(c),h=!d||d===2&&a||n.includes(c),p=!a||a===2&&d||n.includes(o);return u._open=!!(i===42?h:h&&(a||!p)),u._close=!!(i===42?p:p&&(d||!h)),r(c)}}function xj(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const Q_e={name:"autolink",tokenize:J_e};function J_e(e,r,n){let o=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(g){return Fo(g)?(e.consume(g),s):g===64?n(g):u(g)}function s(g){return g===43||g===45||g===46||Co(g)?(o=1,l(g)):u(g)}function l(g){return g===58?(e.consume(g),o=0,c):(g===43||g===45||g===46||Co(g))&&o++<32?(e.consume(g),l):(o=0,u(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),r):g===null||g===32||g===60||Ax(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),d):J3e(g)?(e.consume(g),u):n(g)}function d(g){return Co(g)?h(g):n(g)}function h(g){return g===46?(e.consume(g),o=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),r):p(g)}function p(g){if((g===45||Co(g))&&o++<63){const y=g===45?p:h;return e.consume(g),y}return n(g)}}function Qt(e,r,n,o){const a=o?o-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(c){return Yt(c)?(e.enter(n),l(c)):r(c)}function l(c){return Yt(c)&&i++<a?(e.consume(c),l):(e.exit(n),r(c))}}const j0={partial:!0,tokenize:eEe};function eEe(e,r,n){return o;function o(i){return Yt(i)?Qt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ht(i)?r(i):n(i)}}const wj={continuation:{tokenize:rEe},exit:nEe,name:"blockQuote",tokenize:tEe};function tEe(e,r,n){const o=this;return a;function a(s){if(s===62){const l=o.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return Yt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(s))}}function rEe(e,r,n){const o=this;return a;function a(s){return Yt(s)?Qt(e,i,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(wj,r,n)(s)}}function nEe(e){e.exit("blockQuote")}const kj={name:"characterEscape",tokenize:oEe};function oEe(e,r,n){return o;function o(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return tke(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):n(i)}}const _j={name:"characterReference",tokenize:aEe};function aEe(e,r,n){const o=this;let a=0,i,s;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=Co,d(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=eke,d):(e.enter("characterReferenceValue"),i=7,s=iS,d(h))}function d(h){if(h===59&&a){const p=e.exit("characterReferenceValue");return s===Co&&!hS(o.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return s(h)&&a++<i?(e.consume(h),d):n(h)}}const Ej={partial:!0,tokenize:sEe},Sj={concrete:!0,name:"codeFenced",tokenize:iEe};function iEe(e,r,n){const o=this,a={partial:!0,tokenize:A};let i=0,s=0,l;return c;function c(N){return u(N)}function u(N){const $=o.events[o.events.length-1];return i=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,l=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(N)}function d(N){return N===l?(s++,e.consume(N),d):s<3?n(N):(e.exit("codeFencedFenceSequence"),Yt(N)?Qt(e,h,"whitespace")(N):h(N))}function h(N){return N===null||ht(N)?(e.exit("codeFencedFence"),o.interrupt?r(N):e.check(Ej,x,T)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(N))}function p(N){return N===null||ht(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(N)):Yt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qt(e,g,"whitespace")(N)):N===96&&N===l?n(N):(e.consume(N),p)}function g(N){return N===null||ht(N)?h(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(N))}function y(N){return N===null||ht(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(N)):N===96&&N===l?n(N):(e.consume(N),y)}function x(N){return e.attempt(a,T,w)(N)}function w(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),k}function k(N){return i>0&&Yt(N)?Qt(e,C,"linePrefix",i+1)(N):C(N)}function C(N){return N===null||ht(N)?e.check(Ej,x,T)(N):(e.enter("codeFlowValue"),_(N))}function _(N){return N===null||ht(N)?(e.exit("codeFlowValue"),C(N)):(e.consume(N),_)}function T(N){return e.exit("codeFenced"),r(N)}function A(N,$,R){let M=0;return O;function O(V){return N.enter("lineEnding"),N.consume(V),N.exit("lineEnding"),B}function B(V){return N.enter("codeFencedFence"),Yt(V)?Qt(N,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):I(V)}function I(V){return V===l?(N.enter("codeFencedFenceSequence"),Y(V)):R(V)}function Y(V){return V===l?(M++,N.consume(V),Y):M>=s?(N.exit("codeFencedFenceSequence"),Yt(V)?Qt(N,D,"whitespace")(V):D(V)):R(V)}function D(V){return V===null||ht(V)?(N.exit("codeFencedFence"),$(V)):R(V)}}}function sEe(e,r,n){const o=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return o.parser.lazy[o.now().line]?n(s):r(s)}}const yS={name:"codeIndented",tokenize:cEe},lEe={partial:!0,tokenize:uEe};function cEe(e,r,n){const o=this;return a;function a(u){return e.enter("codeIndented"),Qt(e,i,"linePrefix",5)(u)}function i(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?c(u):ht(u)?e.attempt(lEe,s,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||ht(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),r(u)}}function uEe(e,r,n){const o=this;return a;function a(s){return o.parser.lazy[o.now().line]?n(s):ht(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Qt(e,i,"linePrefix",5)(s)}function i(s){const l=o.events[o.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?r(s):ht(s)?a(s):n(s)}}const dEe={name:"codeText",previous:fEe,resolve:hEe,tokenize:pEe};function hEe(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o<r;)if(e[o][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[r][1].type="codeTextPadding",n+=2,r-=2;break}}for(o=n-1,r++;++o<=r;)a===void 0?o!==r&&e[o][1].type!=="lineEnding"&&(a=o):(o===r||e[o][1].type==="lineEnding")&&(e[a][1].type="codeTextData",o!==a+2&&(e[a][1].end=e[o-1][1].end,e.splice(a+2,o-a-2),r-=o-a-2,o=a+2),a=void 0);return e}function fEe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pEe(e,r,n){let o=0,a,i;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),o++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(i=e.enter("codeTextSequence"),a=0,d(h)):ht(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||ht(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function d(h){return h===96?(e.consume(h),a++,d):a===o?(e.exit("codeTextSequence"),e.exit("codeText"),r(h)):(i.type="codeTextData",u(h))}}class mEe{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,n){const o=n??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&B0(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),B0(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),B0(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const n=this.left.splice(r,Number.POSITIVE_INFINITY);B0(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);B0(this.left,n.reverse())}}}function B0(e,r){let n=0;if(r.length<1e4)e.push(...r);else for(;n<r.length;)e.push(...r.slice(n,n+1e4)),n+=1e4}function Cj(e){const r={};let n=-1,o,a,i,s,l,c,u;const d=new mEe(e);for(;++n<d.length;){for(;n in r;)n=r[n];if(o=d.get(n),n&&o[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=o[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,gEe(d,n)),n=r[n],u=!0);else if(o[1]._container){for(i=n,a=void 0;i--;)if(s=d.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(o[1].end={...d.get(a)[1].start},l=d.slice(a,n),l.unshift(o),d.splice(a,n-a+1,l))}}return wa(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function gEe(e,r){const n=e.get(r)[1],o=e.get(r)[2];let a=r-1;const i=[];let s=n._tokenizer;s||(s=o.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,c=[],u={};let d,h,p=-1,g=n,y=0,x=0;const w=[x];for(;g;){for(;e.get(++a)[1]!==g;);i.push(a),g._tokenizer||(d=o.sliceStream(g),g.next||d.push(null),h&&s.defineSkip(g.start),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=g,g=g.next}for(g=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(x=p+1,w.push(x),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(s.events=[],g?(g._tokenizer=void 0,g.previous=void 0):w.pop(),p=w.length;p--;){const k=l.slice(w[p],w[p+1]),C=i.pop();c.push([C,C+k.length-1]),e.splice(C,2,k)}for(c.reverse(),p=-1;++p<c.length;)u[y+c[p][0]]=y+c[p][1],y+=c[p][1]-c[p][0]-1;return u}const yEe={resolve:vEe,tokenize:xEe},bEe={partial:!0,tokenize:wEe};function vEe(e){return Cj(e),e}function xEe(e,r){let n;return o;function o(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?i(l):ht(l)?e.check(bEe,s,i)(l):(e.consume(l),a)}function i(l){return e.exit("chunkContent"),e.exit("content"),r(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function wEe(e,r,n){const o=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Qt(e,i,"linePrefix")}function i(s){if(s===null||ht(s))return n(s);const l=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?r(s):e.interrupt(o.parser.constructs.flow,n,r)(s)}}function Tj(e,r,n,o,a,i,s,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return h;function h(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),p):k===null||k===32||k===41||Ax(k)?n(k):(e.enter(o),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(k))}function p(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(l),p(k)):k===null||k===60||ht(k)?n(k):(e.consume(k),k===92?y:g)}function y(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function x(k){return!d&&(k===null||k===41||xr(k))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(o),r(k)):d<u&&k===40?(e.consume(k),d++,x):k===41?(e.consume(k),d--,x):k===null||k===32||k===40||Ax(k)?n(k):(e.consume(k),k===92?w:x)}function w(k){return k===40||k===41||k===92?(e.consume(k),x):x(k)}}function Aj(e,r,n,o,a,i){const s=this;let l=0,c;return u;function u(g){return e.enter(o),e.enter(a),e.consume(g),e.exit(a),e.enter(i),d}function d(g){return l>999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):ht(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||ht(g)||l++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!Yt(g)),g===92?p:h)}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function Nj(e,r,n,o,a,i){let s;return l;function l(p){return p===34||p===39||p===40?(e.enter(o),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,c):n(p)}function c(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(o),r):(e.enter(i),u(p))}function u(p){return p===s?(e.exit(i),c(s)):p===null?n(p):ht(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Qt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||ht(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?h:d)}function h(p){return p===s||p===92?(e.consume(p),d):d(p)}}function F0(e,r){let n;return o;function o(a){return ht(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Yt(a)?Qt(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const kEe={name:"definition",tokenize:EEe},_Ee={partial:!0,tokenize:SEe};function EEe(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),s(g)}function s(g){return Aj.call(o,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return a=Ui(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return xr(g)?F0(e,u)(g):u(g)}function u(g){return Tj(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(_Ee,h,h)(g)}function h(g){return Yt(g)?Qt(e,p,"whitespace")(g):p(g)}function p(g){return g===null||ht(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function SEe(e,r,n){return o;function o(l){return xr(l)?F0(e,a)(l):n(l)}function a(l){return Nj(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return Yt(l)?Qt(e,s,"whitespace")(l):s(l)}function s(l){return l===null||ht(l)?r(l):n(l)}}const CEe={name:"hardBreakEscape",tokenize:TEe};function TEe(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ht(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const AEe={name:"headingAtx",resolve:NEe,tokenize:REe};function NEe(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},wa(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function REe(e,r,n){let o=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&o++<6?(e.consume(d),s):d===null||xr(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||ht(d)?(e.exit("atxHeading"),r(d)):Yt(d)?Qt(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||xr(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const $Ee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rj=["pre","script","style","textarea"],PEe={concrete:!0,name:"htmlFlow",resolveTo:DEe,tokenize:LEe},MEe={partial:!0,tokenize:zEe},OEe={partial:!0,tokenize:IEe};function DEe(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function LEe(e,r,n){const o=this;let a,i,s,l,c;return u;function u(z){return d(z)}function d(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),h}function h(z){return z===33?(e.consume(z),p):z===47?(e.consume(z),i=!0,x):z===63?(e.consume(z),a=3,o.interrupt?r:F):Fo(z)?(e.consume(z),s=String.fromCharCode(z),w):n(z)}function p(z){return z===45?(e.consume(z),a=2,g):z===91?(e.consume(z),a=5,l=0,y):Fo(z)?(e.consume(z),a=4,o.interrupt?r:F):n(z)}function g(z){return z===45?(e.consume(z),o.interrupt?r:F):n(z)}function y(z){const W="CDATA[";return z===W.charCodeAt(l++)?(e.consume(z),l===W.length?o.interrupt?r:I:y):n(z)}function x(z){return Fo(z)?(e.consume(z),s=String.fromCharCode(z),w):n(z)}function w(z){if(z===null||z===47||z===62||xr(z)){const W=z===47,G=s.toLowerCase();return!W&&!i&&Rj.includes(G)?(a=1,o.interrupt?r(z):I(z)):$Ee.includes(s.toLowerCase())?(a=6,W?(e.consume(z),k):o.interrupt?r(z):I(z)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(z):i?C(z):_(z))}return z===45||Co(z)?(e.consume(z),s+=String.fromCharCode(z),w):n(z)}function k(z){return z===62?(e.consume(z),o.interrupt?r:I):n(z)}function C(z){return Yt(z)?(e.consume(z),C):O(z)}function _(z){return z===47?(e.consume(z),O):z===58||z===95||Fo(z)?(e.consume(z),T):Yt(z)?(e.consume(z),_):O(z)}function T(z){return z===45||z===46||z===58||z===95||Co(z)?(e.consume(z),T):A(z)}function A(z){return z===61?(e.consume(z),N):Yt(z)?(e.consume(z),A):_(z)}function N(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,$):Yt(z)?(e.consume(z),N):R(z)}function $(z){return z===c?(e.consume(z),c=null,M):z===null||ht(z)?n(z):(e.consume(z),$)}function R(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||xr(z)?A(z):(e.consume(z),R)}function M(z){return z===47||z===62||Yt(z)?_(z):n(z)}function O(z){return z===62?(e.consume(z),B):n(z)}function B(z){return z===null||ht(z)?I(z):Yt(z)?(e.consume(z),B):n(z)}function I(z){return z===45&&a===2?(e.consume(z),L):z===60&&a===1?(e.consume(z),U):z===62&&a===4?(e.consume(z),J):z===63&&a===3?(e.consume(z),F):z===93&&a===5?(e.consume(z),X):ht(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(MEe,Q,Y)(z)):z===null||ht(z)?(e.exit("htmlFlowData"),Y(z)):(e.consume(z),I)}function Y(z){return e.check(OEe,D,Q)(z)}function D(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),V}function V(z){return z===null||ht(z)?Y(z):(e.enter("htmlFlowData"),I(z))}function L(z){return z===45?(e.consume(z),F):I(z)}function U(z){return z===47?(e.consume(z),s="",q):I(z)}function q(z){if(z===62){const W=s.toLowerCase();return Rj.includes(W)?(e.consume(z),J):I(z)}return Fo(z)&&s.length<8?(e.consume(z),s+=String.fromCharCode(z),q):I(z)}function X(z){return z===93?(e.consume(z),F):I(z)}function F(z){return z===62?(e.consume(z),J):z===45&&a===2?(e.consume(z),F):I(z)}function J(z){return z===null||ht(z)?(e.exit("htmlFlowData"),Q(z)):(e.consume(z),J)}function Q(z){return e.exit("htmlFlow"),r(z)}}function IEe(e,r,n){const o=this;return a;function a(s){return ht(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return o.parser.lazy[o.now().line]?n(s):r(s)}}function zEe(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(j0,r,n)}}const jEe={name:"htmlText",tokenize:BEe};function BEe(e,r,n){const o=this;let a,i,s;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),A):F===63?(e.consume(F),_):Fo(F)?(e.consume(F),R):n(F)}function u(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),i=0,y):Fo(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),g):n(F)}function h(F){return F===null?n(F):F===45?(e.consume(F),p):ht(F)?(s=h,U(F)):(e.consume(F),h)}function p(F){return F===45?(e.consume(F),g):h(F)}function g(F){return F===62?L(F):F===45?p(F):h(F)}function y(F){const J="CDATA[";return F===J.charCodeAt(i++)?(e.consume(F),i===J.length?x:y):n(F)}function x(F){return F===null?n(F):F===93?(e.consume(F),w):ht(F)?(s=x,U(F)):(e.consume(F),x)}function w(F){return F===93?(e.consume(F),k):x(F)}function k(F){return F===62?L(F):F===93?(e.consume(F),k):x(F)}function C(F){return F===null||F===62?L(F):ht(F)?(s=C,U(F)):(e.consume(F),C)}function _(F){return F===null?n(F):F===63?(e.consume(F),T):ht(F)?(s=_,U(F)):(e.consume(F),_)}function T(F){return F===62?L(F):_(F)}function A(F){return Fo(F)?(e.consume(F),N):n(F)}function N(F){return F===45||Co(F)?(e.consume(F),N):$(F)}function $(F){return ht(F)?(s=$,U(F)):Yt(F)?(e.consume(F),$):L(F)}function R(F){return F===45||Co(F)?(e.consume(F),R):F===47||F===62||xr(F)?M(F):n(F)}function M(F){return F===47?(e.consume(F),L):F===58||F===95||Fo(F)?(e.consume(F),O):ht(F)?(s=M,U(F)):Yt(F)?(e.consume(F),M):L(F)}function O(F){return F===45||F===46||F===58||F===95||Co(F)?(e.consume(F),O):B(F)}function B(F){return F===61?(e.consume(F),I):ht(F)?(s=B,U(F)):Yt(F)?(e.consume(F),B):M(F)}function I(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,Y):ht(F)?(s=I,U(F)):Yt(F)?(e.consume(F),I):(e.consume(F),D)}function Y(F){return F===a?(e.consume(F),a=void 0,V):F===null?n(F):ht(F)?(s=Y,U(F)):(e.consume(F),Y)}function D(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||xr(F)?M(F):(e.consume(F),D)}function V(F){return F===47||F===62||xr(F)?M(F):n(F)}function L(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),r):n(F)}function U(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),q}function q(F){return Yt(F)?Qt(e,X,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):X(F)}function X(F){return e.enter("htmlTextData"),s(F)}}const bS={name:"labelEnd",resolveAll:VEe,resolveTo:qEe,tokenize:YEe},FEe={tokenize:WEe},HEe={tokenize:XEe},UEe={tokenize:GEe};function VEe(e){let r=-1;const n=[];for(;++r<e.length;){const o=e[r][1];if(n.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const a=o.type==="labelImage"?4:2;o.type="data",r+=a}}return e.length!==n.length&&wa(e,0,e.length,n),e}function qEe(e,r){let n=e.length,o=0,a,i,s,l;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){o=2;break}}else a.type==="labelEnd"&&(s=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[i+o+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",c,r],["enter",u,r]],l=ei(l,e.slice(i+1,i+o+3)),l=ei(l,[["enter",d,r]]),l=ei(l,Px(r.parser.constructs.insideSpan.null,e.slice(i+o+4,s-3),r)),l=ei(l,[["exit",d,r],e[s-2],e[s-1],["exit",u,r]]),l=ei(l,e.slice(s+1)),l=ei(l,[["exit",c,r]]),wa(e,i,e.length,l),e}function YEe(e,r,n){const o=this;let a=o.events.length,i,s;for(;a--;)if((o.events[a][1].type==="labelImage"||o.events[a][1].type==="labelLink")&&!o.events[a][1]._balanced){i=o.events[a][1];break}return l;function l(p){return i?i._inactive?h(p):(s=o.parser.defined.includes(Ui(o.sliceSerialize({start:i.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):n(p)}function c(p){return p===40?e.attempt(FEe,d,s?d:h)(p):p===91?e.attempt(HEe,d,s?u:h)(p):s?d(p):h(p)}function u(p){return e.attempt(UEe,d,h)(p)}function d(p){return r(p)}function h(p){return i._balanced=!0,n(p)}}function WEe(e,r,n){return o;function o(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return xr(h)?F0(e,i)(h):i(h)}function i(h){return h===41?d(h):Tj(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return xr(h)?F0(e,c)(h):d(h)}function l(h){return n(h)}function c(h){return h===34||h===39||h===40?Nj(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return xr(h)?F0(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),r):n(h)}}function XEe(e,r,n){const o=this;return a;function a(l){return Aj.call(o,e,i,s,"reference","referenceMarker","referenceString")(l)}function i(l){return o.parser.defined.includes(Ui(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(l):n(l)}function s(l){return n(l)}}function GEe(e,r,n){return o;function o(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),r):n(i)}}const KEe={name:"labelStartImage",resolveAll:bS.resolveAll,tokenize:ZEe};function ZEe(e,r,n){const o=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),i}function i(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(l):r(l)}}const QEe={name:"labelStartLink",resolveAll:bS.resolveAll,tokenize:JEe};function JEe(e,r,n){const o=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(s):r(s)}}const vS={name:"lineEnding",tokenize:e5e};function e5e(e,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Qt(e,r,"linePrefix")}}const Mx={name:"thematicBreak",tokenize:t5e};function t5e(e,r,n){let o=0,a;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,l(u)}function l(u){return u===a?(e.enter("thematicBreakSequence"),c(u)):o>=3&&(u===null||ht(u))?(e.exit("thematicBreak"),r(u)):n(u)}function c(u){return u===a?(e.consume(u),o++,c):(e.exit("thematicBreakSequence"),Yt(u)?Qt(e,l,"whitespace")(u):l(u))}}const Ko={continuation:{tokenize:a5e},exit:s5e,name:"list",tokenize:o5e},r5e={partial:!0,tokenize:l5e},n5e={partial:!0,tokenize:i5e};function o5e(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return l;function l(g){const y=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:iS(g)){if(o.containerState.type||(o.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Mx,n,u)(g):u(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return iS(g)&&++s<10?(e.consume(g),c):(!o.interrupt||s<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(j0,o.interrupt?n:d,e.attempt(r5e,p,h))}function d(g){return o.containerState.initialBlankLine=!0,i++,p(g)}function h(g){return Yt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function a5e(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(j0,a,i);function a(l){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Qt(e,r,"listItemIndent",o.containerState.size+1)(l)}function i(l){return o.containerState.furtherBlankLines||!Yt(l)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,s(l)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(n5e,r,s)(l))}function s(l){return o.containerState._closeFlow=!0,o.interrupt=void 0,Qt(e,e.attempt(Ko,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function i5e(e,r,n){const o=this;return Qt(e,a,"listItemIndent",o.containerState.size+1);function a(i){const s=o.events[o.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===o.containerState.size?r(i):n(i)}}function s5e(e){e.exit(this.containerState.type)}function l5e(e,r,n){const o=this;return Qt(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=o.events[o.events.length-1];return!Yt(i)&&s&&s[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const $j={name:"setextUnderline",resolveTo:c5e,tokenize:u5e};function c5e(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=s,e.push(["exit",s,r]),e}function u5e(e,r,n){const o=this;let a;return i;function i(u){let d=o.events.length,h;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){h=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||h)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Yt(u)?Qt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||ht(u)?(e.exit("setextHeadingLine"),r(u)):n(u)}}const d5e={tokenize:v5e,partial:!0};function h5e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:g5e,continuation:{tokenize:y5e},exit:b5e}},text:{91:{name:"gfmFootnoteCall",tokenize:m5e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:f5e,resolveTo:p5e}}}}function f5e(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let s;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!s||!s._balanced)return n(c);const u=Ui(o.sliceSerialize({start:s.end,end:o.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function p5e(e,r){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",s,r],["exit",s,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...l),e}function m5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,s;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(i>999||h===93&&!s||h===null||h===91||xr(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(Ui(o.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(h)}return xr(h)||(s=!0),i++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),i++,u):u(h)}}function g5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,s=0,l;return c;function c(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(y)}function d(y){if(s>999||y===93&&!l||y===null||y===91||xr(y))return n(y);if(y===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=Ui(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return xr(y)||(l=!0),s++,e.consume(y),y===92?h:d}function h(y){return y===91||y===92||y===93?(e.consume(y),s++,d):d(y)}function p(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),a.includes(i)||a.push(i),Qt(e,g,"gfmFootnoteDefinitionWhitespace")):n(y)}function g(y){return r(y)}}function y5e(e,r,n){return e.check(j0,r,e.attempt(d5e,r,n))}function b5e(e){e.exit("gfmFootnoteDefinition")}function v5e(e,r,n){const o=this;return Qt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=o.events[o.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?r(i):n(i)}}function x5e(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(s,l){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let u=c;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[c][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[c][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[c][1].start)},p=[["enter",d,l],["enter",s[u][1],l],["exit",s[u][1],l],["enter",h,l]],g=l.parser.constructs.insideSpan.null;g&&wa(p,p.length,0,Px(g,s.slice(u+1,c),l)),wa(p,p.length,0,[["exit",h,l],["enter",s[c][1],l],["exit",s[c][1],l],["exit",d,l]]),wa(s,u-1,c-u+3,p),c=u+p.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function i(s,l,c){const u=this.previous,d=this.events;let h=0;return p;function p(y){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(s.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const x=qf(u);if(y===126)return h>1?c(y):(s.consume(y),h++,g);if(h<2&&!n)return c(y);const w=s.exit("strikethroughSequenceTemporary"),k=qf(y);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,l(y)}}}class w5e{constructor(){this.map=[]}add(r,n,o){k5e(this,r,n,o)}consume(r){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function k5e(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a<e.map.length;){if(e.map[a][0]===r){e.map[a][1]+=n,e.map[a][2].push(...o);return}a+=1}e.map.push([r,n,o])}}function _5e(e,r){let n=!1;const o=[];for(;r<e.length;){const a=e[r];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&o.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const i=o.length-1;o[i]=o[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);r+=1}return o}function E5e(){return{flow:{null:{name:"table",tokenize:S5e,resolveAll:C5e}}}}function S5e(e,r,n){const o=this;let a=0,i=0,s;return l;function l(O){let B=o.events.length-1;for(;B>-1;){const D=o.events[B][1].type;if(D==="lineEnding"||D==="linePrefix")B--;else break}const I=B>-1?o.events[B][1].type:null,Y=I==="tableHead"||I==="tableRow"?N:c;return Y===N&&o.parser.lazy[o.now().line]?n(O):Y(O)}function c(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,i+=1),d(O)}function d(O){return O===null?n(O):ht(O)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Yt(O)?Qt(e,d,"whitespace")(O):(i+=1,s&&(s=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(O)))}function h(O){return O===null||O===124||xr(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?p:h)}function p(O){return O===92||O===124?(e.consume(O),h):h(O)}function g(O){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Yt(O)?Qt(e,y,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):y(O))}function y(O){return O===45||O===58?w(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),x):A(O)}function x(O){return Yt(O)?Qt(e,w,"whitespace")(O):w(O)}function w(O){return O===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),k):O===45?(i+=1,k(O)):O===null||ht(O)?T(O):A(O)}function k(O){return O===45?(e.enter("tableDelimiterFiller"),C(O)):A(O)}function C(O){return O===45?(e.consume(O),C):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Yt(O)?Qt(e,T,"whitespace")(O):T(O)}function T(O){return O===124?y(O):O===null||ht(O)?!s||a!==i?A(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(O)):A(O)}function A(O){return n(O)}function N(O){return e.enter("tableRow"),$(O)}function $(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),$):O===null||ht(O)?(e.exit("tableRow"),r(O)):Yt(O)?Qt(e,$,"whitespace")(O):(e.enter("data"),R(O))}function R(O){return O===null||O===124||xr(O)?(e.exit("data"),$(O)):(e.consume(O),O===92?M:R)}function M(O){return O===92||O===124?(e.consume(O),R):R(O)}}function C5e(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],l=!1,c=0,u,d,h;const p=new w5e;for(;++n<e.length;){const g=e[n],y=g[1];g[0]==="enter"?y.type==="tableHead"?(l=!1,c!==0&&(Pj(p,r,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},p.add(n,0,[["enter",u,r]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(o=!0,h=void 0,i=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},p.add(n,0,[["enter",d,r]])),a=y.type==="tableDelimiterRow"?2:d?3:1):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(o=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],h=Ox(p,r,i,a,void 0,h),i=[0,0,0,0]),s[2]=n)):y.type==="tableCellDivider"&&(o?o=!1:(i[1]!==0&&(s[0]=s[1],h=Ox(p,r,i,a,void 0,h)),i=s,s=[i[1],n,0,0])):y.type==="tableHead"?(l=!0,c=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(c=n,i[1]!==0?(s[0]=s[1],h=Ox(p,r,i,a,n,h)):s[1]!==0&&(h=Ox(p,r,s,a,n,h)),a=0):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&Pj(p,r,c,u,d),p.consume(r.events),n=-1;++n<r.events.length;){const g=r.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=_5e(r.events,n))}return e}function Ox(e,r,n,o,a,i){const s=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(i.end=Object.assign({},Wf(r.events,n[0])),e.add(n[0],0,[["exit",i,r]]));const c=Wf(r.events,n[1]);if(i={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,r]]),n[2]!==0){const u=Wf(r.events,n[2]),d=Wf(r.events,n[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,r]]),o!==2){const p=r.events[n[2]],g=r.events[n[3]];if(p[1].end=Object.assign({},g[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,x=n[3]-n[2]-1;e.add(y,x,[])}}e.add(n[3]+1,0,[["exit",h,r]])}return a!==void 0&&(i.end=Object.assign({},Wf(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function Pj(e,r,n,o,a){const i=[],s=Wf(r.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,r])),o.end=Object.assign({},s),i.push(["exit",o,r]),e.add(n+1,0,i)}function Wf(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const T5e={name:"tasklistCheck",tokenize:N5e};function A5e(){return{text:{91:T5e}}}function N5e(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return xr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return ht(c)?r(c):Yt(c)?e.check({tokenize:R5e},r,n)(c):n(c)}}function R5e(e,r,n){return Qt(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function $5e(e){return dj([F_e(),h5e(),x5e(e),E5e(),A5e()])}const P5e={};function M5e(e){const r=this,n=e||P5e,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),s=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push($5e(n)),i.push(D_e()),s.push(L_e(n))}const O5e={tokenize:D5e};function D5e(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qt(e,r,"linePrefix")}function a(l){return e.enter("paragraph"),i(l)}function i(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ht(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),s)}}const L5e={tokenize:I5e},Mj={tokenize:z5e};function I5e(e){const r=this,n=[];let o=0,a,i,s;return l;function l(_){if(o<n.length){const T=n[o];return r.containerState=T[1],e.attempt(T[0].continuation,c,u)(_)}return u(_)}function c(_){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,a&&C();const T=r.events.length;let A=T,N;for(;A--;)if(r.events[A][0]==="exit"&&r.events[A][1].type==="chunkFlow"){N=r.events[A][1].end;break}k(o);let $=T;for(;$<r.events.length;)r.events[$][1].end={...N},$++;return wa(r.events,A+1,0,r.events.slice(T)),r.events.length=$,u(_)}return l(_)}function u(_){if(o===n.length){if(!a)return p(_);if(a.currentConstruct&&a.currentConstruct.concrete)return y(_);r.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(Mj,d,h)(_)}function d(_){return a&&C(),k(o),p(_)}function h(_){return r.parser.lazy[r.now().line]=o!==n.length,s=r.now().offset,y(_)}function p(_){return r.containerState={},e.attempt(Mj,g,y)(_)}function g(_){return o++,n.push([r.currentConstruct,r.containerState]),p(_)}function y(_){if(_===null){a&&C(),k(0),e.consume(_);return}return a=a||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),x(_)}function x(_){if(_===null){w(e.exit("chunkFlow"),!0),k(0),e.consume(_);return}return ht(_)?(e.consume(_),w(e.exit("chunkFlow")),o=0,r.interrupt=void 0,l):(e.consume(_),x)}function w(_,T){const A=r.sliceStream(_);if(T&&A.push(null),_.previous=i,i&&(i.next=_),i=_,a.defineSkip(_.start),a.write(A),r.parser.lazy[_.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<s&&(!a.events[N][1].end||a.events[N][1].end.offset>s))return;const $=r.events.length;let R=$,M,O;for(;R--;)if(r.events[R][0]==="exit"&&r.events[R][1].type==="chunkFlow"){if(M){O=r.events[R][1].end;break}M=!0}for(k(o),N=$;N<r.events.length;)r.events[N][1].end={...O},N++;wa(r.events,R+1,0,r.events.slice($)),r.events.length=N}}function k(_){let T=n.length;for(;T-- >_;){const A=n[T];r.containerState=A[1],A[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function z5e(e,r,n){return Qt(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const j5e={tokenize:B5e};function B5e(e){const r=this,n=e.attempt(j0,o,e.attempt(this.parser.constructs.flowInitial,a,Qt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(yEe,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const F5e={resolveAll:Dj()},H5e=Oj("string"),U5e=Oj("text");function Oj(e){return{resolveAll:Dj(e==="text"?V5e:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,s,l);return s;function s(d){return u(d)?i(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const h=a[d];let p=-1;if(h)for(;++p<h.length;){const g=h[p];if(!g.previous||g.previous.call(o,o.previous))return!0}return!1}}}function Dj(e){return r;function r(n,o){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,o):n}}function V5e(e,r){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const o=e[n-1][1],a=r.sliceStream(o);let i=a.length,s=-1,l=0,c;for(;i--;){const u=a[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(u===-2)c=!0,l++;else if(u!==-1){i++;break}}if(r._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:o.start._bufferIndex+s,_index:o.start._index+i,line:o.end.line,column:o.end.column-l,offset:o.end.offset-l},end:{...o.end}};o.end={...u.start},o.start.offset===o.end.offset?Object.assign(o,u):(e.splice(n,0,["enter",u,r],["exit",u,r]),n+=2)}n++}return e}const q5e={__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:kEe},disable:{null:[]},document:{42:Ko,43:Ko,45:Ko,48:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,62:wj},flow:{35:AEe,42:Mx,45:[$j,Mx],60:PEe,61:$j,95:Mx,96:Sj,126:Sj},flowInitial:{[-2]:yS,[-1]:yS,32:yS},insideSpan:{null:[gS,F5e]},string:{38:_j,92:kj},text:{[-5]:vS,[-4]:vS,[-3]:vS,33:KEe,38:_j,42:gS,60:[Q_e,jEe],91:QEe,92:[CEe,kj],93:bS,95:gS,96:dEe}};function Y5e(e,r,n){let o={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let s=[],l=[];const c={attempt:$(A),check:$(N),consume:C,enter:_,exit:T,interrupt:$(N,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:p,sliceStream:g,write:h};let d=r.tokenize.call(u,c);return r.resolveAll&&i.push(r),u;function h(B){return s=ei(s,B),w(),s[s.length-1]!==null?[]:(R(r,0),u.events=Px(i,u.events,u),u.events)}function p(B,I){return X5e(g(B),I)}function g(B){return W5e(s,B)}function y(){const{_bufferIndex:B,_index:I,line:Y,column:D,offset:V}=o;return{_bufferIndex:B,_index:I,line:Y,column:D,offset:V}}function x(B){a[B.line]=B.column,O()}function w(){let B;for(;o._index<s.length;){const I=s[o._index];if(typeof I=="string")for(B=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===B&&o._bufferIndex<I.length;)k(I.charCodeAt(o._bufferIndex));else k(I)}}function k(B){d=d(B)}function C(B){ht(B)?(o.line++,o.column=1,o.offset+=B===-3?2:1,O()):B!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===s[o._index].length&&(o._bufferIndex=-1,o._index++)),u.previous=B}function _(B,I){const Y=I||{};return Y.type=B,Y.start=y(),u.events.push(["enter",Y,u]),l.push(Y),Y}function T(B){const I=l.pop();return I.end=y(),u.events.push(["exit",I,u]),I}function A(B,I){R(B,I.from)}function N(B,I){I.restore()}function $(B,I){return Y;function Y(D,V,L){let U,q,X,F;return Array.isArray(D)?Q(D):"tokenize"in D?Q([D]):J(D);function J(Z){return oe;function oe(ee){const re=ee!==null&&Z[ee],he=ee!==null&&Z.null,Ce=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(he)?he:he?[he]:[]];return Q(Ce)(ee)}}function Q(Z){return U=Z,q=0,Z.length===0?L:z(Z[q])}function z(Z){return oe;function oe(ee){return F=M(),X=Z,Z.partial||(u.currentConstruct=Z),Z.name&&u.parser.constructs.disable.null.includes(Z.name)?G():Z.tokenize.call(I?Object.assign(Object.create(u),I):u,c,W,G)(ee)}}function W(Z){return B(X,F),V}function G(Z){return F.restore(),++q<U.length?z(U[q]):L}}}function R(B,I){B.resolveAll&&!i.includes(B)&&i.push(B),B.resolve&&wa(u.events,I,u.events.length-I,B.resolve(u.events.slice(I),u)),B.resolveTo&&(u.events=B.resolveTo(u.events,u))}function M(){const B=y(),I=u.previous,Y=u.currentConstruct,D=u.events.length,V=Array.from(l);return{from:D,restore:L};function L(){o=B,u.previous=I,u.currentConstruct=Y,u.events.length=D,l=V,O()}}function O(){o.line in a&&o.column<2&&(o.column=a[o.line],o.offset+=a[o.line]-1)}}function W5e(e,r){const n=r.start._index,o=r.start._bufferIndex,a=r.end._index,i=r.end._bufferIndex;let s;if(n===a)s=[e[n].slice(o,i)];else{if(s=e.slice(n,a),o>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(o):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function X5e(e,r){let n=-1;const o=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=r?" ":"	";break}case-1:{if(!r&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,o.push(s)}return o.join("")}function G5e(e){const o={constructs:dj([q5e,...(e||{}).extensions||[]]),content:a(O5e),defined:[],document:a(L5e),flow:a(j5e),lazy:{},string:a(H5e),text:a(U5e)};return o;function a(i){return s;function s(l){return Y5e(o,i,l)}}}function K5e(e){for(;!Cj(e););return e}const Lj=/[\0\t\n\r]/g;function Z5e(){let e=1,r="",n=!0,o;return a;function a(i,s,l){const c=[];let u,d,h,p,g;for(i=r+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),h=0,r="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(Lj.lastIndex=h,u=Lj.exec(i),p=u&&u.index!==void 0?u.index:i.length,g=i.charCodeAt(p),!u){r=i.slice(h);break}if(g===10&&h===p&&o)c.push(-3),o=void 0;else switch(o&&(c.push(-5),o=void 0),h<p&&(c.push(i.slice(h,p)),e+=p-h),g){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:o=!0,e=1}h=p+1}return l&&(o&&c.push(-5),r&&c.push(r),c.push(null)),c}}function H0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ij(e.position):"start"in e||"end"in e?Ij(e):"line"in e||"column"in e?xS(e):""}function xS(e){return zj(e&&e.line)+":"+zj(e&&e.column)}function Ij(e){return xS(e&&e.start)+"-"+xS(e&&e.end)}function zj(e){return e&&typeof e=="number"?e:1}const jj={}.hasOwnProperty;function Bj(e,r,n){return typeof r!="string"&&(n=r,r=void 0),Q5e(n)(K5e(G5e(n).document().write(Z5e()(e,r,!0))))}function Q5e(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Qe),autolinkProtocol:M,autolinkEmail:M,atxHeading:i(De),blockQuote:i(he),characterEscape:M,characterReference:M,codeFenced:i(Ce),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Ce,s),codeText:i(ce,s),codeTextData:M,data:M,codeFlowValue:M,definition:i(de),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(be),hardBreakEscape:i(Ge),hardBreakTrailing:i(Ge),htmlFlow:i(Xe,s),htmlFlowData:M,htmlText:i(Xe,s),htmlTextData:M,image:i(_t),label:s,link:i(Qe),listItem:i(Ke),listItemValue:p,listOrdered:i(St,h),listUnordered:i(St),paragraph:i(We),reference:z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(De),strong:i(lt),thematicBreak:i(Pn)},exit:{atxHeading:c(),atxHeadingSequence:A,autolink:c(),autolinkEmail:re,autolinkProtocol:ee,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:Z,characterReference:oe,codeFenced:c(w),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:y,codeFlowValue:O,codeIndented:c(k),codeText:c(V),codeTextData:O,data:O,definition:c(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:_,emphasis:c(),hardBreakEscape:c(I),hardBreakTrailing:c(I),htmlFlow:c(Y),htmlFlowData:O,htmlText:c(D),htmlTextData:O,image:c(U),label:X,labelText:q,lineEnding:B,link:c(L),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:W,resourceDestinationString:F,resourceTitleString:J,resource:Q,setextHeading:c(R),setextHeadingLineSequence:$,setextHeadingText:N,strong:c(),thematicBreak:c()}};Fj(r,(e||{}).mdastExtensions||[]);const n={};return o;function o(_e){let we={type:"root",children:[]};const rt={stack:[we],tokenStack:[],config:r,enter:l,exit:u,buffer:s,resume:d,data:n},at=[];let $t=-1;for(;++$t<_e.length;)if(_e[$t][1].type==="listOrdered"||_e[$t][1].type==="listUnordered")if(_e[$t][0]==="enter")at.push($t);else{const Wr=at.pop();$t=a(_e,Wr,$t)}for($t=-1;++$t<_e.length;){const Wr=r[_e[$t][0]];jj.call(Wr,_e[$t][1].type)&&Wr[_e[$t][1].type].call(Object.assign({sliceSerialize:_e[$t][2].sliceSerialize},rt),_e[$t][1])}if(rt.tokenStack.length>0){const Wr=rt.tokenStack[rt.tokenStack.length-1];(Wr[1]||Hj).call(rt,void 0,Wr[0])}for(we.position={start:Zc(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:Zc(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},$t=-1;++$t<r.transforms.length;)we=r.transforms[$t](we)||we;return we}function a(_e,we,rt){let at=we-1,$t=-1,Wr=!1,Pt,Tr,vo,Mn;for(;++at<=rt;){const Fr=_e[at];switch(Fr[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Fr[0]==="enter"?$t++:$t--,Mn=void 0;break}case"lineEndingBlank":{Fr[0]==="enter"&&(Pt&&!Mn&&!$t&&!vo&&(vo=at),Mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mn=void 0}if(!$t&&Fr[0]==="enter"&&Fr[1].type==="listItemPrefix"||$t===-1&&Fr[0]==="exit"&&(Fr[1].type==="listUnordered"||Fr[1].type==="listOrdered")){if(Pt){let no=at;for(Tr=void 0;no--;){const ur=_e[no];if(ur[1].type==="lineEnding"||ur[1].type==="lineEndingBlank"){if(ur[0]==="exit")continue;Tr&&(_e[Tr][1].type="lineEndingBlank",Wr=!0),ur[1].type="lineEnding",Tr=no}else if(!(ur[1].type==="linePrefix"||ur[1].type==="blockQuotePrefix"||ur[1].type==="blockQuotePrefixWhitespace"||ur[1].type==="blockQuoteMarker"||ur[1].type==="listItemIndent"))break}vo&&(!Tr||vo<Tr)&&(Pt._spread=!0),Pt.end=Object.assign({},Tr?_e[Tr][1].start:Fr[1].end),_e.splice(Tr||at,0,["exit",Pt,Fr[2]]),at++,rt++}if(Fr[1].type==="listItemPrefix"){const no={type:"listItem",_spread:!1,start:Object.assign({},Fr[1].start),end:void 0};Pt=no,_e.splice(at,0,["enter",no,Fr[2]]),at++,rt++,vo=void 0,Mn=!0}}}return _e[we][1]._spread=Wr,rt}function i(_e,we){return rt;function rt(at){l.call(this,_e(at),at),we&&we.call(this,at)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(_e,we,rt){this.stack[this.stack.length-1].children.push(_e),this.stack.push(_e),this.tokenStack.push([we,rt||void 0]),_e.position={start:Zc(we.start),end:void 0}}function c(_e){return we;function we(rt){_e&&_e.call(this,rt),u.call(this,rt)}}function u(_e,we){const rt=this.stack.pop(),at=this.tokenStack.pop();if(at)at[0].type!==_e.type&&(we?we.call(this,_e,at[0]):(at[1]||Hj).call(this,_e,at[0]));else throw new Error("Cannot close `"+_e.type+"` ("+H0({start:_e.start,end:_e.end})+"): it’s not open");rt.position.end=Zc(_e.end)}function d(){return $x(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(_e){if(this.data.expectingFirstListItemValue){const we=this.stack[this.stack.length-2];we.start=Number.parseInt(this.sliceSerialize(_e),10),this.data.expectingFirstListItemValue=void 0}}function g(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.lang=_e}function y(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.meta=_e}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e.replace(/(\r?\n|\r)$/g,"")}function C(_e){const we=this.resume(),rt=this.stack[this.stack.length-1];rt.label=we,rt.identifier=Ui(this.sliceSerialize(_e)).toLowerCase()}function _(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.title=_e}function T(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.url=_e}function A(_e){const we=this.stack[this.stack.length-1];if(!we.depth){const rt=this.sliceSerialize(_e).length;we.depth=rt}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function $(_e){const we=this.stack[this.stack.length-1];we.depth=this.sliceSerialize(_e).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function M(_e){const rt=this.stack[this.stack.length-1].children;let at=rt[rt.length-1];(!at||at.type!=="text")&&(at=Et(),at.position={start:Zc(_e.start),end:void 0},rt.push(at)),this.stack.push(at)}function O(_e){const we=this.stack.pop();we.value+=this.sliceSerialize(_e),we.position.end=Zc(_e.end)}function B(_e){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak){const rt=we.children[we.children.length-1];rt.position.end=Zc(_e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(we.type)&&(M.call(this,_e),O.call(this,_e))}function I(){this.data.atHardBreak=!0}function Y(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e}function D(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e}function V(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e}function L(){const _e=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";_e.type+="Reference",_e.referenceType=we,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;this.data.referenceType=void 0}function U(){const _e=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";_e.type+="Reference",_e.referenceType=we,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;this.data.referenceType=void 0}function q(_e){const we=this.sliceSerialize(_e),rt=this.stack[this.stack.length-2];rt.label=k_e(we),rt.identifier=Ui(we).toLowerCase()}function X(){const _e=this.stack[this.stack.length-1],we=this.resume(),rt=this.stack[this.stack.length-1];if(this.data.inReference=!0,rt.type==="link"){const at=_e.children;rt.children=at}else rt.alt=we}function F(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.url=_e}function J(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.title=_e}function Q(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function W(_e){const we=this.resume(),rt=this.stack[this.stack.length-1];rt.label=we,rt.identifier=Ui(this.sliceSerialize(_e)).toLowerCase(),this.data.referenceType="full"}function G(_e){this.data.characterReferenceType=_e.type}function Z(_e){const we=this.sliceSerialize(_e),rt=this.data.characterReferenceType;let at;rt?(at=sj(we,rt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):at=hS(we);const $t=this.stack[this.stack.length-1];$t.value+=at}function oe(_e){const we=this.stack.pop();we.position.end=Zc(_e.end)}function ee(_e){O.call(this,_e);const we=this.stack[this.stack.length-1];we.url=this.sliceSerialize(_e)}function re(_e){O.call(this,_e);const we=this.stack[this.stack.length-1];we.url="mailto:"+this.sliceSerialize(_e)}function he(){return{type:"blockquote",children:[]}}function Ce(){return{type:"code",lang:null,meta:null,value:""}}function ce(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function be(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ge(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function _t(){return{type:"image",title:null,url:"",alt:null}}function Qe(){return{type:"link",title:null,url:"",children:[]}}function St(_e){return{type:"list",ordered:_e.type==="listOrdered",start:null,spread:_e._spread,children:[]}}function Ke(_e){return{type:"listItem",spread:_e._spread,checked:null,children:[]}}function We(){return{type:"paragraph",children:[]}}function lt(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function Pn(){return{type:"thematicBreak"}}}function Zc(e){return{line:e.line,column:e.column,offset:e.offset}}function Fj(e,r){let n=-1;for(;++n<r.length;){const o=r[n];Array.isArray(o)?Fj(e,o):J5e(e,o)}}function J5e(e,r){let n;for(n in r)if(jj.call(r,n))switch(n){case"canContainEols":{const o=r[n];o&&e[n].push(...o);break}case"transforms":{const o=r[n];o&&e[n].push(...o);break}case"enter":case"exit":{const o=r[n];o&&Object.assign(e[n],o);break}}}function Hj(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+H0({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+H0({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+H0({start:r.start,end:r.end})+") is still open")}function e2e(e){const r=this;r.parser=n;function n(o){return Bj(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function t2e(e,r){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,n),e.applyData(r,n)}function r2e(e,r){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,n),[e.applyData(r,n),{type:"text",value:`
`}]}function n2e(e,r){const n=r.value?r.value+`
`:"",o={};r.lang&&(o.className=["language-"+r.lang]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return r.meta&&(a.data={meta:r.meta}),e.patch(r,a),a=e.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(r,a),a}function o2e(e,r){const n={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function a2e(e,r){const n={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function i2e(e,r){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),a=Yf(o.toLowerCase()),i=e.footnoteOrder.indexOf(o);let s,l=e.footnoteCounts.get(o);l===void 0?(l=0,e.footnoteOrder.push(o),s=e.footnoteOrder.length):s=i+1,l+=1,e.footnoteCounts.set(o,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(r,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,u),e.applyData(r,u)}function s2e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function l2e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function Uj(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=o:a.push({type:"text",value:o}),a}function c2e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return Uj(e,r);const a={src:Yf(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function u2e(e,r){const n={src:Yf(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function d2e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function h2e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return Uj(e,r);const a={href:Yf(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function f2e(e,r){const n={href:Yf(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function p2e(e,r,n){const o=e.all(r),a=n?m2e(n):Vj(r),i={},s=[];if(typeof r.checked=="boolean"){const d=o[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},o.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<o.length;){const d=o[l];(a||l!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
`}),d.type==="element"&&d.tagName==="p"&&!a?s.push(...d.children):s.push(d)}const c=o[o.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(r,u),e.applyData(r,u)}function m2e(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const n=e.children;let o=-1;for(;!r&&++o<n.length;)r=Vj(n[o])}return r}function Vj(e){const r=e.spread;return r??e.children.length>1}function g2e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a<o.length;){const s=o[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:r.ordered?"ol":"ul",properties:n,children:e.wrap(o,!0)};return e.patch(r,i),e.applyData(r,i)}function y2e(e,r){const n={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function b2e(e,r){const n={type:"root",children:e.wrap(e.all(r))};return e.patch(r,n),e.applyData(r,n)}function v2e(e,r){const n={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function x2e(e,r){const n=e.all(r),o=n.shift(),a=[];if(o){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(r.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=zl(r.children[1]),c=kx(r.children[r.children.length-1]);l&&c&&(s.position={start:l,end:c}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function w2e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:r.children.length;let c=-1;const u=[];for(;++c<l;){const h=r.children[c],p={},g=s?s[c]:void 0;g&&(p.align=g);let y={type:"element",tagName:i,properties:p,children:[]};h&&(y.children=e.all(h),e.patch(h,y),y=e.applyData(h,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(r,d),e.applyData(r,d)}function k2e(e,r){const n={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}const qj=9,Yj=32;function _2e(e){const r=String(e),n=/\r?\n|\r/g;let o=n.exec(r),a=0;const i=[];for(;o;)i.push(Wj(r.slice(a,o.index),a>0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(Wj(r.slice(a),a>0,!1)),i.join("")}function Wj(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===qj||i===Yj;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===qj||i===Yj;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function E2e(e,r){const n={type:"text",value:_2e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function S2e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const C2e={blockquote:t2e,break:r2e,code:n2e,delete:o2e,emphasis:a2e,footnoteReference:i2e,heading:s2e,html:l2e,imageReference:c2e,image:u2e,inlineCode:d2e,linkReference:h2e,link:f2e,listItem:p2e,list:g2e,paragraph:y2e,root:b2e,strong:v2e,table:x2e,tableCell:k2e,tableRow:w2e,text:E2e,thematicBreak:S2e,toml:Dx,yaml:Dx,definition:Dx,footnoteDefinition:Dx};function Dx(){}function T2e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function A2e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function N2e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T2e,o=e.options.footnoteBackLabel||A2e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),h=String(u.identifier).toUpperCase(),p=Yf(h.toLowerCase());let g=0;const y=[],x=e.footnoteCounts.get(h);for(;x!==void 0&&++g<=x;){y.length>0&&y.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),y.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...y)}else d.push(...y);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,k),l.push(k)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xd(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
`}]}}const wS={}.hasOwnProperty,R2e={};function $2e(e,r){const n=r||R2e,o=new Map,a=new Map,i=new Map,s={...C2e,...n.handlers},l={all:u,applyData:M2e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:c,options:n,patch:P2e,wrap:D2e};return eS(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?o:a,p=String(d.identifier).toUpperCase();h.has(p)||h.set(p,d)}}),l;function c(d,h){const p=d.type,g=l.handlers[p];if(wS.call(l.handlers,p)&&g)return g(l,d,h);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in d){const{children:x,...w}=d,k=xd(w);return k.children=l.all(d),k}return xd(d)}return(l.options.unknownHandler||O2e)(l,d,h)}function u(d){const h=[];if("children"in d){const p=d.children;let g=-1;for(;++g<p.length;){const y=l.one(p[g],d);if(y){if(g&&p[g-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Xj(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=Xj(x.value))}Array.isArray(y)?h.push(...y):h.push(y)}}}return h}}function P2e(e,r){e.position&&(r.position=yz(e))}function M2e(e,r){let n=r;if(e&&e.data){const o=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof o=="string")if(n.type==="element")n.tagName=o;else{const s="children"in n?n.children:[n];n={type:"element",tagName:o,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,xd(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function O2e(e,r){const n=r.data||{},o="value"in r&&!(wS.call(n,"hProperties")||wS.call(n,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function D2e(e,r){const n=[];let o=-1;for(r&&n.push({type:"text",value:`
`});++o<e.length;)o&&n.push({type:"text",value:`
`}),n.push(e[o]);return r&&e.length>0&&n.push({type:"text",value:`
`}),n}function Xj(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function Gj(e,r){const n=$2e(e,r),o=n.one(e,void 0),a=N2e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
`},a),i}function L2e(e,r){return e&&"run"in e?async function(n,o){const a=Gj(n,{file:o,...r});await e.run(a,o)}:function(n,o){return Gj(n,{file:o,...e||r})}}function Kj(e){if(e)throw e}var kS,Zj;function I2e(){if(Zj)return kS;Zj=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},i=function(u){if(!u||r.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!h)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},s=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},l=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(o)return o(u,d).value}else return;return u[d]};return kS=function c(){var u,d,h,p,g,y,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<k;++w)if(u=arguments[w],u!=null)for(d in u)h=l(x,d),p=l(u,d),x!==p&&(C&&p&&(i(p)||(g=a(p)))?(g?(g=!1,y=h&&a(h)?h:[]):y=h&&i(h)?h:{},s(x,{name:d,newValue:c(C,y,p)})):typeof p<"u"&&s(x,{name:d,newValue:p}));return x},kS}var z2e=I2e();const _S=tx(z2e);function ES(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function j2e(){const e=[],r={run:n,use:o};return r;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...a);function l(c,...u){const d=e[++i];let h=-1;if(c){s(c);return}for(;++h<a.length;)(u[h]===null||u[h]===void 0)&&(u[h]=a[h]);a=u,d?B2e(d,l)(...u):s(null,...u)}}function o(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),r}}function B2e(e,r){let n;return o;function o(...s){const l=e.length>s.length;let c;l&&s.push(a);try{c=e.apply(this,s)}catch(u){const d=u;if(l&&n)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(s,...l){n||(n=!0,r(s,...l))}function i(s){a(null,s)}}let Zo=class extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(s=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=H0(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Zo.prototype.file="",Zo.prototype.name="",Zo.prototype.reason="",Zo.prototype.message="",Zo.prototype.stack="",Zo.prototype.column=void 0,Zo.prototype.line=void 0,Zo.prototype.ancestors=void 0,Zo.prototype.cause=void 0,Zo.prototype.fatal=void 0,Zo.prototype.place=void 0,Zo.prototype.ruleId=void 0,Zo.prototype.source=void 0;const Ws={basename:F2e,dirname:H2e,extname:U2e,join:V2e,sep:"/"};function F2e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');U0(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let s=-1,l=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),l>-1&&(e.codePointAt(a)===r.codePointAt(l--)?l<0&&(o=a):(l=-1,o=s));return n===o?o=s:o<0&&(o=e.length),e.slice(n,o)}function H2e(e){if(U0(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function U2e(e){U0(e);let r=e.length,n=-1,o=0,a=-1,i=0,s;for(;r--;){const l=e.codePointAt(r);if(l===47){if(s){o=r+1;break}continue}n<0&&(s=!0,n=r+1),l===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function V2e(...e){let r=-1,n;for(;++r<e.length;)U0(e[r]),e[r]&&(n=n===void 0?e[r]:n+"/"+e[r]);return n===void 0?".":q2e(n)}function q2e(e){U0(e);const r=e.codePointAt(0)===47;let n=Y2e(e,!r);return n.length===0&&!r&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function Y2e(e,r){let n="",o=0,a=-1,i=0,s=-1,l,c;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",o=0,a=s,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),o=s-a-1;a=s,i=0}else l===46&&i>-1?i++:i=-1}return n}function U0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W2e={cwd:X2e};function X2e(){return"/"}function SS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function G2e(e){if(typeof e=="string")e=new URL(e);else if(!SS(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return K2e(e)}function K2e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n<r.length;)if(r.codePointAt(n)===37&&r.codePointAt(n+1)===50){const o=r.codePointAt(n+2);if(o===70||o===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(r)}const CS=["history","path","basename","stem","extname","dirname"];let Z2e=class{constructor(r){let n;r?SS(r)?n={path:r}:typeof r=="string"||Q2e(r)?n={value:r}:n=r:n={},this.cwd="cwd"in n?"":W2e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<CS.length;){const i=CS[o];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)CS.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Ws.basename(this.path):void 0}set basename(r){AS(r,"basename"),TS(r,"basename"),this.path=Ws.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Ws.dirname(this.path):void 0}set dirname(r){Qj(this.basename,"dirname"),this.path=Ws.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Ws.extname(this.path):void 0}set extname(r){if(TS(r,"extname"),Qj(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ws.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){SS(r)&&(r=G2e(r)),AS(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Ws.basename(this.path,this.extname):void 0}set stem(r){AS(r,"stem"),TS(r,"stem"),this.path=Ws.join(this.dirname||"",r+(this.extname||""))}fail(r,n,o){const a=this.message(r,n,o);throw a.fatal=!0,a}info(r,n,o){const a=this.message(r,n,o);return a.fatal=void 0,a}message(r,n,o){const a=new Zo(r,n,o);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}};function TS(e,r){if(e&&e.includes(Ws.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Ws.sep+"`")}function AS(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Qj(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Q2e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const J2e=(function(e){const o=this.constructor.prototype,a=o[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,o),i}),e4e={}.hasOwnProperty;let t4e=class x0e extends J2e{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j2e()}copy(){const r=new x0e;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];r.use(...o)}return r.data(_S(!0,{},this.namespace)),r}data(r,n){return typeof r=="string"?arguments.length===2?($S("data",this.frozen),this.namespace[r]=n,this):e4e.call(this.namespace,r)&&this.namespace[r]||void 0:r?($S("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const a=n.call(r,...o);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const n=Lx(r),o=this.parser||this.Parser;return NS("parse",o),o(String(n),n)}process(r,n){const o=this;return this.freeze(),NS("process",this.parser||this.Parser),RS("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const l=Lx(r),c=o.parse(l);o.run(c,l,function(d,h,p){if(d||!h||!p)return u(d);const g=h,y=o.stringify(g,p);o4e(y)?p.value=y:p.result=y,u(d,p)});function u(d,h){d||!h?s(d):i?i(h):n(void 0,h)}}}processSync(r){let n=!1,o;return this.freeze(),NS("processSync",this.parser||this.Parser),RS("processSync",this.compiler||this.Compiler),this.process(r,a),eB("processSync","process",n),o;function a(i,s){n=!0,Kj(i),o=s}}run(r,n,o){Jj(r),this.freeze();const a=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?i(void 0,o):new Promise(i);function i(s,l){const c=Lx(n);a.run(r,c,u);function u(d,h,p){const g=h||r;d?l(d):s?s(g):o(void 0,g,p)}}}runSync(r,n){let o=!1,a;return this.run(r,n,i),eB("runSync","run",o),a;function i(s,l){Kj(s),a=l,o=!0}}stringify(r,n){this.freeze();const o=Lx(n),a=this.compiler||this.Compiler;return RS("stringify",a),Jj(r),a(r,o)}use(r,...n){const o=this.attachers,a=this.namespace;if($S("use",this.frozen),r!=null)if(typeof r=="function")c(r,n);else if(typeof r=="object")Array.isArray(r)?l(r):s(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;c(d,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(a.settings=_S(!0,a.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];i(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let h=-1,p=-1;for(;++h<o.length;)if(o[h][0]===u){p=h;break}if(p===-1)o.push([u,...d]);else if(d.length>0){let[g,...y]=d;const x=o[p][1];ES(x)&&ES(g)&&(g=_S(!0,x,g)),o[p]=[u,g,...y]}}}};const r4e=new t4e().freeze();function NS(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function RS(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $S(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jj(e){if(!ES(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function eB(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Lx(e){return n4e(e)?e:new Z2e(e)}function n4e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o4e(e){return typeof e=="string"||a4e(e)}function a4e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function i4e(){return r4e().use(e2e).use(M5e).use(L2e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(zwe).use(Xwe).use(Q3e,{closeSelfClosing:!0,tightSelfClosing:!0})}function s4e(e){return String(i4e().processSync(e.trim())).trim()}function l4e(e){return $x(Bj(e),{includeHtml:!1,includeImageAlt:!1})}function c4e(...e){return ba(u4e,e)}function u4e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function V0(e){return c4e(e,r=>r===void 0)}const d4e=Symbol.for("text"),h4e=Symbol.for("html"),Xs="";class Kt{static _cache=new WeakMap;static memoize(r,n,o){return cr(r,n,()=>Kt.from(o))}static from(r){if(r==null||r===Kt.EMPTY)return Kt.EMPTY;if(r instanceof Kt)return r;if(typeof r=="string")return r.trim()===Xs?Kt.EMPTY:new Kt({txt:r});if("isEmpty"in r&&r.isEmpty||"md"in r&&r.md.trim()===Xs||"txt"in r&&r.txt.trim()===Xs)return Kt.EMPTY;const n=r,o=Kt._cache.get(n);if(o)return o;const a=new Kt(n);return Kt._cache.set(n,a),a}static EMPTY=new class extends Kt{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Xs})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===Xs):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Xs,this.isMarkdown=!0):this.isEmpty=r.txt===Xs),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Xs;const r=this.$source;return"txt"in r?r.txt:cr(this,d4e,()=>l4e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Xs;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Ga(r)}get html(){if(this.isEmpty||this.$source===null)return Xs;const r=this.$source;return"txt"in r?r.txt:cr(this,h4e,()=>s4e(r.md))}equals(r){return this===r?!0:r instanceof Kt?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}function tB(e){return r=>!e(r)}function f4e(...e){return ba(p4e,e)}const p4e=(e,r)=>r.every(n=>n(e));function m4e(...e){return ba(g4e,e)}const g4e=(e,r)=>r.some(n=>n(e));function y4e(e){return e==null}function rB(e,r){return e[q0]===r}const q0="_stage",Y0="_type";function b4e(e){return Ll(e.kind)&&!Ll(e.element)}function v4e(e){return"tag"in e}function x4e(e){return"kind"in e}function w4e(e){return"participant"in e}function k4e(e){return"not"in e}function _4e(e){return"and"in e}function E4e(e){return"or"in e}function Nd(e){switch(!0){case w4e(e):{const r=e.participant,n=Nd(e.operator);return S4e(r,n)}case v4e(e):{if(Vc(e.tag)||"eq"in e.tag){const n=Vc(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case x4e(e):{if(Vc(e.kind)||"eq"in e.kind){const n=Vc(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>y4e(n.kind)||n.kind!==r}case k4e(e):{const r=Nd(e.not);return tB(r)}case _4e(e):{const r=e.and.map(Nd);return f4e(r)}case E4e(e):{const r=e.or.map(Nd);return m4e(r)}default:Ga(e)}}function S4e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}var W0;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(Vc(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return jL(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function s(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=s;function l(c){return s(c)||i(c)}e.isDeploymentRef=l})(W0||(W0={}));function PS(e){return v0(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var Qc;(e=>{function r({x:l,y:c,width:u,height:d}){return{x:l+u/2,y:c+d/2}}e.center=r;function n(l){const{x1:c,y1:u,x2:d,y2:h}=MS.fromPoints(l);return{x:c,y:u,width:d-c,height:h-u}}e.fromPoints=n;function o(...l){if(nt(Ef(l,1),"No boxes provided"),l.length===1)return l[0];let c=1/0,u=1/0,d=-1/0,h=-1/0;for(const p of l)c=Math.min(c,p.x),u=Math.min(u,p.y),d=Math.max(d,p.x+p.width),h=Math.max(h,p.y+p.height);return{x:c,y:u,width:d-c,height:h-u}}e.merge=o;function a(l){return{x1:l.x,y1:l.y,x2:l.x+l.width,y2:l.y+l.height}}e.toRectBox=a;function i(l,c){return c===0?l:{x:l.x-c,y:l.y-c,width:l.width+c*2,height:l.height+c*2}}e.expand=i;function s(l,c){return c===0?l:{x:l.x+c,y:l.y+c,width:l.width-c*2,height:l.height-c*2}}e.shrink=s})(Qc||(Qc={}));var MS;(e=>{function r({x1:i,y1:s,x2:l,y2:c}){return{x:(i+l)/2,y:(s+c)/2}}e.center=r;function n(i){nt(i.length>0,"At least one point is required");let s=1/0,l=1/0,c=-1/0,u=-1/0;for(const[d,h]of i)s=Math.min(s,d),l=Math.min(l,h),c=Math.max(c,d),u=Math.max(u,h);return{x1:s,y1:l,x2:c,y2:u}}e.fromPoints=n;function o(...i){nt(i.length>0,"No boxes provided");let s=1/0,l=1/0,c=-1/0,u=-1/0;for(const d of i)s=Math.min(s,d.x1),l=Math.min(l,d.y1),c=Math.max(c,d.x2),u=Math.max(u,d.y2);return{x1:s,y1:l,x2:c,y2:u}}e.merge=o;function a(i){return{x:i.x1,y:i.y1,width:i.x2-i.x1,height:i.y2-i.y1}}e.toBBox=a})(MS||(MS={}));function nB(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const oB={done:!1,hasNext:!1};function X0(e,...r){let n=e,o=r.map(i=>"lazy"in i?C4e(i):void 0),a=0;for(;a<r.length;){if(o[a]===void 0||!T4e(n)){let c=r[a];n=c(n),a+=1;continue}let i=[];for(let c=a;c<r.length;c++){let u=o[c];if(u===void 0||(i.push(u),u.isSingle))break}let s=[];for(let c of n)if(aB(c,s,i))break;let{isSingle:l}=i.at(-1);n=l?s[0]:s,a+=i.length}return n}function aB(e,r,n){if(n.length===0)return r.push(e),!1;let o=e,a=oB,i=!1;for(let[s,l]of n.entries()){let{index:c,items:u}=l;if(u.push(o),a=l(o,c,u),l.index+=1,a.hasNext){if(a.hasMany??!1){for(let d of a.next)if(aB(d,r,n.slice(s+1)))return!0;return i}o=a.next}if(!a.hasNext)break;a.done&&(i=!0)}return a.hasNext&&r.push(o),i}function C4e(e){let{lazy:r,lazyArgs:n}=e,o=r(...n);return Object.assign(o,{isSingle:r.single??!1,index:0,items:[]})}function T4e(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function iB(...e){return ba(A4e,e,N4e)}const A4e=(e,r)=>e.map(r),N4e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function R4e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var OS={},sB;function $4e(){return sB||(sB=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,s=arguments.length;for(i=0;i<s;i++){if(a=arguments[i],a.size===0)return r;a.size<n&&(n=a.size,o=a)}for(var l=o.values(),c,u,d,h;c=l.next(),!c.done;){for(u=c.value,d=!0,i=0;i<s;i++)if(h=arguments[i],h!==o&&!h.has(u)){d=!1;break}d&&r.add(u)}return r},e.union=function(){if(arguments.length<2)throw new Error("mnemonist/Set.union: needs at least two arguments.");var r=new Set,n,o=arguments.length,a,i;for(n=0;n<o;n++)for(a=arguments[n].values();i=a.next(),!i.done;)r.add(i.value);return r},e.difference=function(r,n){if(!r.size)return new Set;if(!n.size)return new Set(r);for(var o=new Set,a=r.values(),i;i=a.next(),!i.done;)n.has(i.value)||o.add(i.value);return o},e.symmetricDifference=function(r,n){for(var o=new Set,a=r.values(),i;i=a.next(),!i.done;)n.has(i.value)||o.add(i.value);for(a=n.values();i=a.next(),!i.done;)r.has(i.value)||o.add(i.value);return o},e.isSubset=function(r,n){var o=r.values(),a;if(r===n)return!0;if(r.size>n.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var s=0,l=i.length;s<l;s++)r.delete(i[s])},e.intersectionSize=function(r,n){var o;if(r.size>n.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,s=0;i=a.next(),!i.done;)n.has(i.value)&&s++;return s},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(OS)),OS}var P4e=$4e();function DS(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function Xf(e,...r){let n=new Set;if(e.size===0)return n;let o=Ef(r,2)?P4e.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function LS(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function M4e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function O4e(e){let r=5381;const n=e.length;nt(n>0,"stringHash: empty string");for(let o=0;o<n;o++)r=r*33^e.charCodeAt(o);return(r>>>0).toString(36)}const Ix=e=>typeof e=="function";function Rd(e,r){const n=r??e;nt(Ix(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function G0(e,r){const n=r??e;nt(Ix(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function lB(e){return e?cB(e):cB}function cB(e){for(const r of e)return r}function D4e(e,r){const n=e;nt(Ix(n));function*o(a){for(const i of a)yield n(i)}return o}function K0(e){return e?Array.from(e):r=>Array.from(r)}function L4e(e){return e?new Set(e):r=>new Set(r)}function I4e(e,r){const n=r??e;nt(Ix(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function z4e(e,r){const n=e;nt(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const s of a){if(i>=n)break;yield s,i++}}return a=>o(a)}function j4e(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o<n)throw RangeError(`randomInteger: The range [${e.toString()},${r.toString()}] contains no integer`);return Math.floor(Math.random()*(o-n+1)+n)}const B4e="LIKEC4_DELAY";function F4e(...e){let r=100;return e.length===2?r=j4e(e[0],e[1]):e.length===1&&(r=e[0]),new Promise(n=>{setTimeout(()=>{n(B4e)},r??100)})}function zx(e){const r=qc([...e]),n=new Set(r),o=new Map(r.map(s=>[s._literalId,s])),a=new lo(()=>null),i=r.reduce((s,l,c,u)=>(s.set(l,u.slice(c+1).filter(PL(l)).map(d=>(n.delete(d),d)).reduce((d,h)=>(d.some(Un(h))||(d.push(h),a.set(h,l)),d),[])),s),new lo(()=>[]));return{sorted:r,byId:s=>mt(o.get(s),`Element not found by id: ${s}`),root:n,parent:s=>a.get(s),children:s=>i.get(s),flatten:()=>new Set([...n,...r.reduce((s,l)=>{const c=i.get(l);return c.length===0?(s.push(l),s):(c.length>1&&s.push(...c),s)},[])])}}const IS=(e,r)=>e.size>2&&r.size!==e.size?new Set(qc([...zx(e).flatten(),...r])):e.size>1?new Set(qc([...e])):e;function uB(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let s=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let h=c.target.parent;for(;h&&h!==e;)a.add(h),h=h.parent}let u=c.source;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d})),l=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let h=c.source.parent;for(;h&&h!==e;)a.add(h),h=h.parent}let u=c.target;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d}));return{incomers:IS(s,i.incomers),incoming:new Set(n.incoming),subjects:IS(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:IS(l,i.outgoers)}}function dB(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return nt(a,'Scope view id is required when scope is "view"'),H4e(e,a,r);const i=r.element(e),s=L4e(i.ascendingSiblings());return uB(i,s,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function H4e(e,r,n){const o=n.element(e);let a={incoming:K0(Rd(o.incoming(),l=>r.includesRelation(l.id))),outgoing:K0(Rd(o.outgoing(),l=>r.includesRelation(l.id)))};const i=PL(o),s=new Set([...o.ascendingSiblings(),...X0(r.elements(),D4e(l=>l.element),Rd(l=>l!==o&&i(l)))]);return uB(o,s,a)}var hB;(e=>{e.isInside=r=>n=>Un(r,n.source.id)&&Un(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||Un(r,o.source.id))&&(o.target.id===n||Un(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||Un(r,n.target.id))&&!Un(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||Un(r,n.source.id))&&!Un(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(hB||(hB={}));const U4e=Symbol.for("nodejs.util.inspect.custom");function V4e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return X0(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>X0(a,o),o)}throw Error("Wrong number of arguments")}function Gf(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function q4e(...e){return ba(Y4e,e)}const Y4e=e=>e.length===1?e[0]:void 0;function zS(...e){return V4e(W4e,e)}function W4e(){let e=new Set;return r=>e.has(r)?oB:(e.add(r),{done:!1,hasNext:!0,next:r})}class fB{get style(){return cr(this,"style",()=>V0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return g0(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return Kt.memoize(this,"summary",ix(this.$node))}get description(){return Kt.memoize(this,"description",sx(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b0(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>Jc.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>Jc.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!Gf(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class pB extends fB{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=ox(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return cr(this,Symbol.for("tags"),()=>zS([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=q4e([...r]);return n?.isInstance()?n:null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return Xf(n,r)}}class mB extends fB{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=ox(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return mt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return cr(this,"style",()=>V0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return cr(this,Symbol.for("tags"),()=>zS([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return Kt.memoize(this,"summary",ix(this.$instance)??ix(this.element.$element))}get description(){return Kt.memoize(this,"description",sx(this.$instance)??sx(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class X4e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return cr(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class G4e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=b0(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Ll(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!Gf(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Jc{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new Jc}static from(r,n){return new Jc(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return Jc.from(Xf(this.model,r.model),Xf(this.deployment,r.deployment))}difference(r){return Jc.from(LS(this.model,r.model),LS(this.deployment,r.deployment))}union(r){return Jc.from(DS(this.model,r.model),DS(this.deployment,r.deployment))}}function gB(e,r){return n=>e.source===n.source&&e.target===n.target}function jS(e,r,n="directed"){if(e===r)return[];if($L(e,r))return[];const o=Xf(e.allOutgoing,r.allIncoming),a=o.size>0?new ti(e,r,o):null;if(n==="directed")return a?[a]:[];const i=Xf(e.allIncoming,r.allOutgoing),s=i.size>0?new ti(r,e,i):null;return a&&s?[a,s]:a?[a]:s?[s]:[]}function yB(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const s of jS(e,i,n))s.source===e?o.push(s):a.push(s);return[...o,...a]}function K4e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...yB(n,a.slice(o+1),"both")),r),[])}const Z4e={__proto__:null,findConnection:jS,findConnectionsBetween:yB,findConnectionsWithin:K4e};class ti{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=O4e(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&I4e(this.relations,tB(gB(this)))}get directRelations(){return new Set(Rd(this.relations,gB(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return nt(this.source.id===r.source.id,"Cannot merge connections with different sources"),nt(this.target.id===r.target.id,"Cannot merge connections with different targets"),new ti(this.source,this.target,DS(this.relations,r.relations))}difference(r){return new ti(this.source,this.target,LS(this.relations,r.relations))}intersect(r){return nt(r instanceof ti,"Cannot intersect connection with different type"),new ti(this.source,this.target,Xf(this.relations,r.relations))}equals(r){nt(r instanceof ti,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&M4e(this.relations,n.relations)}update(r){return new ti(this.source,this.target,r)}[U4e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:ti,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?"  relations:":"  relations: [ ]",...[...this.relations].map(r=>"    "+r.expression)].join(`
`)}reversed(r=!1){if(!r)return new ti(this.target,this.source);const[n]=jS(this.target,this.source,"directed");return n??new ti(this.target,this.source,new Set)}}const bB={asc:(e,r)=>e>r,desc:(e,r)=>e<r};function Q4e(e,r){let[n,...o]=r;if(!J4e(n)){let i=BS(...o);return e(n,i)}let a=BS(n,...o);return i=>e(i,a)}function BS(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=bB,s=r===void 0?void 0:BS(r,...n);return(l,c)=>{let u=o(l),d=o(c);return i(u,d)?1:i(d,u)?-1:s?.(l,c)??0}}function J4e(e){if(vB(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return vB(r)&&typeof n=="string"&&n in bB&&o.length===0}const vB=e=>typeof e=="function"&&e.length===1;function xB(...e){return ba(Object.entries,e)}function eSe(...e){return ba(tSe,e)}function tSe(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return rSe(e,r);if(e instanceof Set&&r instanceof Set)return nSe(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function rSe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function nSe(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function oSe(...e){return ba(aSe,e)}const aSe=e=>e.at(-1);function iSe(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>wB(n,e,...r):wB(e,...r)}function wB(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function FS(...e){return ba(sSe,e)}function sSe(e,r){let n=[...e];return n.sort(r),n}function lSe(...e){return Q4e(cSe,e)}const cSe=(e,r)=>[...e].sort(r);function kB(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function jx(...e){return ba(Object.values,e)}class Bx{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=Qye(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=ox(a)):(this.imported=null,this.hierarchyLevel=ox(this.id))}id;_literalId;hierarchyLevel;imported;get name(){return g0(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return cr(this,Symbol.for("tags"),()=>zS([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!eSe(this.$element.summary,this.$element.description)}get summary(){return Kt.memoize(this,"summary",ix(this.$element))}get description(){return Kt.memoize(this,"description",sx(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return cr(this,Symbol.for("defaultView"),()=>lB(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return cr(this,"style",()=>V0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return Un(this,r)}isDescendantOf(r){return Un(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b0(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?ML([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return cr(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return cr(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return Ll(lB(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!Gf(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const fr=e=>typeof e=="string"?e:e.id,ka="/",HS=e=>{if(nt(!e.includes(`
`),"View title cannot contain newlines"),e.includes(ka)){const r=e.split(ka).map(n=>n.trim()).filter(n=>n.length>0);return Ef(r,1)?r:[""]}return[e.trim()]},Fx=e=>HS(e).join(ka),uSe=e=>{const r=HS(e);return Ef(r,2)?r.slice(0,-1).join(ka):null},dSe=e=>e.includes(ka)?HS(e).pop()??e:e.trim();class hSe{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=jx(n.elements);for(const a of qc(o)){const i=this.addElement(a);for(const s of i.tags)this.#l.get(s).add(i);i.isInstance()&&this.#a.get(i.element.id).add(i)}for(const a of jx(n.relations)){const i=this.addRelation(a);for(const s of i.tags)this.#l.get(s).add(i)}}#e=new Map;#t=new Map;#r=new lo(()=>new Set);#a=new lo(()=>new Set);#i=new Set;#n=new Map;#o=new lo(()=>new Set);#s=new lo(()=>new Set);#c=new lo(()=>new Set);#l=new lo(()=>new Set);#u=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof pB||r instanceof mB)return r;const n=fr(r);return mt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return nt(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(nt(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return nt(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(nt(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#i.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=fr(r),o=this.#a.get(n);o&&(yield*o)}deploymentRef(r){if(W0.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return R4e(this.#u,`${n}@${o}`,()=>new X4e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return mt(this.#n.get(fr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=fr(r);return this.#t.get(n)||null}children(r){const n=fr(r);return this.#r.get(n)}*siblings(r){const n=fr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=fr(r),o;for(;o=this.#t.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=fr(r);for(const a of this.#o.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=fr(r);for(const a of this.#s.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=b4e(r)?new pB(this,Object.freeze(r)):new mB(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=nx(n.id);return o?(nt(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#t.set(n.id,this.node(o)),this.#r.get(o).add(n)):(nt(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#i.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new G4e(this,Object.freeze(r));this.#n.set(n.id,n),this.#o.get(n.target.id).add(n),this.#s.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...bd(o)])this.#c.get(a).add(n);for(const a of bd(n.source.id)){if(a===o)break;this.#s.get(a).add(n)}for(const a of bd(n.target.id)){if(a===o)break;this.#o.get(a).add(n)}return n}}class _B{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(W0.flatten(n.source)),this.target=r.element(W0.flatten(n.target));const o=b0(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Ll(this.$relationship.title)?this.$relationship.title:null}get technology(){return Ll(this.$relationship.technology)?this.$relationship.technology:null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!Gf(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class fSe{constructor(r,n,o,a){this.view=r,this.$edge=n,this.source=o,this.target=a,this.#e=n}#e;get id(){return this.#e.id}get parent(){return this.#e.parent?this.view.node(this.#e.parent):null}get label(){return this.#e.label??null}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}hasParent(){return this.#e.parent!==null}get tags(){return this.#e.tags??[]}get stepNumber(){return this.isStep()?BL(this.id):null}get navigateTo(){return this.#e.navigateTo?this.view.$model.view(this.#e.navigateTo):null}get color(){return this.#e.color}get line(){return this.#e.line??this.view.$model.$styles.defaults.relationship.line}get head(){return this.#e.head??this.view.$model.$styles.defaults.relationship.arrow}get tail(){return this.#e.tail}isStep(){return v0(this.id)}*relationships(r){for(const n of this.#e.relations)if(r){const o=this.view.$model.findRelationship(n,r);o&&(yield o)}else yield this.view.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.#e.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class pSe{constructor(r,n){this.$view=r,this.$node=n,this.#e=n}#e;get id(){return this.#e.id}get title(){return this.#e.title}get kind(){return this.#e.kind}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}get parent(){return this.#e.parent?this.$view.node(this.#e.parent):null}get element(){const r=this.#e.modelRef;return r?this.$view.$model.element(r):null}get deployment(){const r=this.#e.deploymentRef;return r?this.$view.$model.deployment.element(r):null}get shape(){return this.#e.shape}get color(){return this.#e.color}get icon(){return this.#e.icon??null}get tags(){return this.#e.tags}get links(){return this.#e.links??[]}get navigateTo(){return this.#e.navigateTo?this.$view.$model.view(this.#e.navigateTo):null}get style(){return this.#e.style}children(){return cr(this,"children",()=>new Set(this.#e.children.map(r=>this.$view.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$view.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.#e.inEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.#e.outEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isDiagramNode(){return"width"in this.#e&&"height"in this.#e}hasChildren(){return this.#e.children.length>0}hasParent(){return this.#e.parent!==null}hasElement(){return Ll(this.#e.modelRef)}hasDeployment(){return Ll(this.#e.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return Kye(this.#e)}isTagged(r){return this.tags.includes(r)}}class US{Aux;#e=new Set;#t=new Map;#r=new Map;#a=new Set;#i=new Set;#n=new Set;#o=new lo(r=>new Set);$view;$model;title;folder;viewPath;constructor(r,n,o){this.$model=r,this.$view=n,this.folder=o;for(const a of n.nodes){const i=new pSe(this,Object.freeze(a));this.#t.set(a.id,i),a.parent||this.#e.add(i),i.hasDeployment()&&this.#i.add(i.deployment.id),i.hasElement()&&this.#a.add(i.element.id);for(const s of i.tags)this.#o.get(s).add(i)}for(const a of n.edges){const i=new fSe(this,Object.freeze(a),this.node(a.source),this.node(a.target));for(const s of i.tags)this.#o.get(s).add(i);for(const s of a.relations)this.#n.add(s);this.#r.set(a.id,i)}this.title=this.$view.title?dSe(this.$view.title):null,this.viewPath=this.$view.title?Fx(this.$view.title):this.$view.id}get _type(){return this.$view[Y0]}get id(){return this.$view.id}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return cr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return Kt.memoize(this,"description",this.$view.description)}get tags(){return this.$view.tags??[]}get links(){return this.$view.links??[]}get viewOf(){if(this.isElementView()){const r=this.$view.viewOf;return r?this.$model.element(r):null}return null}get mode(){if(this.isDynamicView())return this.$view.variant??"diagram";throw new Error("View is not dynamic")}get includedTags(){return[...this.#o.keys()]}roots(){return this.#e.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=fr(r);return mt(this.#t.get(n),`Node ${n} not found in view ${this.$view.id}`)}findNode(r){return this.#t.get(fr(r))??null}findNodeWithElement(r){const n=fr(r);return G0(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null}nodes(){return this.#t.values()}edge(r){const n=fr(r);return mt(this.#r.get(n),`Edge ${n} not found in view ${this.$view.id}`)}findEdge(r){return this.#r.get(fr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#a.has(fr(r))}includesDeployment(r){return this.#i.has(fr(r))}includesRelation(r){return this.#n.has(fr(r))}isComputed(){return this.$view[q0]==="computed"}isDiagram(){return this.$view[q0]==="layouted"}isElementView(){return this.$view[Y0]==="element"}isScopedElementView(){return this.$view[Y0]==="element"&&Ll(this.$view.viewOf)}isDeploymentView(){return this.$view[Y0]==="deployment"}isDynamicView(){return this.$view[Y0]==="dynamic"}}class Hx{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=oSe(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return nt(!this.isRoot,"Root view folder has no breadcrumbs"),cr(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return nt(!this.isRoot,"Root view folder has no parent"),Gf(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return cr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof Hx&&r.push(n);return r})}get views(){return cr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof US&&r.push(n);return r})}}class $d{Aux;_elements=new Map;_parents=new Map;_children=new lo(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new lo(()=>new Set);_outgoing=new lo(()=>new Set);_internal=new lo(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new lo(()=>new Set);_allTags=new lo(()=>new Set);static fromParsed(r){return new $d(r).asParsed}static create(r){return new $d(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:s,deployments:l,views:c,relations:u,elements:d,specification:h}=r;return new $d({[q0]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:s??{},deployments:{elements:l?.elements??{},relations:l?.relations??{}},views:c??{},relations:u??{},elements:d??{},specification:h})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of xB(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of xB(r.imports??{}))for(const a of qc(o)){const i=this.addImportedElement(n,a);for(const s of i.tags)this._allTags.get(s).add(i)}for(const n of jx(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new hSe(this),rB(r,"computed")||rB(r,"layouted")){const n=RL(ka),o=X0(jx(r.views),iB(i=>({view:i,path:Fx(i.title??i.id),folderPath:i.title&&uSe(i.title)||""})),FS((i,s)=>n(i.folderPath,s.folderPath))),a=i=>{let s=this._viewFolders.get(i);if(!s){const l=kB(i,ka);nt(Ef(l,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(u=>u.view.id==="index"):c=o.find(u=>u.path===i),s=new Hx(this,l,c?.view.id),this._viewFolders.set(i,s)}return s};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||kB(i,ka).reduce((s,l)=>{const c=s.join(ka),u=Gf(c)?l:c+ka+l,d=a(u);return this._viewFolderItems.get(c).add(d),s.push(l),s},[]);for(const{view:i,folderPath:s}of o){const l=new US(this,i,a(s));this._viewFolderItems.get(s).add(l),this._views.set(i.id,l);for(const c of l.tags)this._allTags.get(c).add(l)}}else this._rootViewFolder=new Hx(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return cr(this,"styles",()=>TL.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[q0]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??cr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return cr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof Bx)return r;const n=fr(r);return mt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(fr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=fr(r);let a=this._relations.get(o)??null;return a||n==="model"?mt(a,`Model relation ${o} not found`):mt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(fr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=fr(r);return mt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return mt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return nt(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=fr(r);return this._parents.get(n)||null}children(r){const n=fr(r);return this._children.get(n)}*siblings(r){const n=fr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=fr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=fr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=fr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return cr(this,"tags",()=>FS([...this._allTags.keys()],rx))}get tagsSortedByUsage(){return cr(this,"tagsSortedByUsage",()=>X0([...this._allTags.entries()],iB(([r,n])=>({tag:r,count:n.size,tagged:n})),FS((r,n)=>rx(r.tag,n.tag)),lSe([iSe("count"),"desc"])))}findByTag(r,n){return Rd(this._allTags.get(r),o=>n==="elements"?o instanceof Bx:n==="views"?o instanceof US:n==="relationships"?o instanceof _B:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=Nd(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=Nd(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new Bx(this,Object.freeze(r));this._elements.set(n.id,n);const o=nx(n.id);return o?(nt(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){nt(!Zye(n.id),"Imported element already has global FQN");const o=jL(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new Bx(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=nx(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=nx(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new _B(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=b0(o.id,a.id);if(i)for(const s of[i,...bd(i)])this._internal.get(s).add(n);for(const s of bd(o.id)){if(s===i)break;this._outgoing.get(s).add(n)}for(const s of bd(a.id)){if(s===i)break;this._incoming.get(s).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})($d||($d={}));function Ux(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var mSe=e=>typeof e=="object"&&e!==null;function Pd(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var gSe=e=>e==="base";function ySe(e){return e.slice().filter(r=>!gSe(r))}function EB(e){return String.fromCharCode(e+(e>25?39:97))}function bSe(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=EB(n%52)+r;return EB(n%52)+r}function vSe(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function xSe(e){return bSe(vSe(5381,e)>>>0)}var SB=/\s*!(important)?/i;function wSe(e){return typeof e=="string"?SB.test(e):!1}function kSe(e){return typeof e=="string"?e.replace(SB,"").trim():e}function VS(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var co=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},_Se=new Set(["__proto__","constructor","prototype"]);function qS(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(_Se.has(o))return;const a=r[o],i=n[o];Ux(a)&&Ux(i)?r[o]=qS(a,i):r[o]=i}),r),{})}var ESe=e=>e!=null;function YS(e,r,n={}){const{stop:o,getKey:a}=n;function i(s,l=[]){if(mSe(s)){const c={};for(const[u,d]of Object.entries(s)){const h=a?.(u,d)??u,p=[...l,h];if(o?.(s,p))return r(s,l);const g=i(d,p);ESe(g)&&(c[h]=g)}return c}return r(s,l)}return i(e)}function SSe(e,r){return Array.isArray(e)?e.map(n=>r(n)):Ux(e)?YS(e,n=>r(n)):r(e)}function CSe(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function CB(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:s}=o;return YS(e,l=>Array.isArray(l)?CSe(l,a.breakpoints.keys):l,{stop:l=>Array.isArray(l),getKey:n?l=>i?s(l):l:void 0})}var TSe={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},ASe=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function TB(e){const{utility:r,hash:n,conditions:o=TSe}=e,a=s=>[r.prefix,s].filter(Boolean).join("-"),i=(s,l)=>{let c;if(n){const u=[...o.finalize(s),l];c=a(r.toHash(u,xSe))}else c=[...o.finalize(s),a(l)].join(":");return c};return co(({base:s,...l}={})=>{const c=Object.assign(l,s),u=CB(c,e),d=new Set;return YS(u,(h,p)=>{if(h==null)return;const g=wSe(h),[y,...x]=o.shift(p),w=ySe(x),k=r.transform(y,kSe(ASe(h)));let C=i(w,k.className);g&&(C=`${C}!`),d.add(C)}),Array.from(d).join(" ")})}function NSe(...e){return e.flat().filter(r=>Ux(r)&&Object.keys(Pd(r)).length>0)}function RSe(e){function r(a){const i=NSe(...a);return i.length===1?i:i.map(s=>CB(s,e))}function n(...a){return qS(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:co(n),assignCss:o}}var $Se=/([A-Z])/g,PSe=/^ms-/,MSe=co(e=>e.startsWith("--")?e:e.replace($Se,"-$1").replace(PSe,"-ms-").toLowerCase()),OSe=["min","max","clamp","calc"],DSe=new RegExp(`^(${OSe.join("|")})\\(.*\\)`),LSe=e=>typeof e=="string"&&DSe.test(e),ISe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",zSe=`(?:${ISe.split(",").join("|")})`,jSe=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${zSe}$`),BSe=e=>typeof e=="string"&&jSe.test(e),FSe=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),Z0={map:SSe,isCssFunction:LSe,isCssVar:FSe,isCssUnit:BSe},Q0=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,Pd(r))},HSe=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?WS(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,s]of Object.entries(a))n.forEach(([l,c])=>{c.variants[o]??={},c.variants[o][i]=s[l]??{}});return Object.fromEntries(n)},WS=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Yn(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=s=>{const l={};for(let c=0;c<s.length;c++){const u=s[c];n[u]&&(Object.defineProperty(l,u,n[u]),delete n[u])}return l},i=s=>a(Array.isArray(s)?s:o.filter(s));return r.map(i).concat(a(o))}var XS=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},AB=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function USe(e){return AB.includes(e)?e.replace("html","").toLowerCase():e}function GS(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[USe(r),n]))}GS.keys=AB;const VSe="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",NB=new Set(VSe.split(",")),qSe=/^@|&|&$/;function RB(e){return NB.has(e)||qSe.test(e)}const YSe=/^_/,WSe=/&|@/;function $B(e){return e.map(r=>NB.has(r)?r.replace(YSe,""):WSe.test(r)?`[${VS(r.trim())}]`:r)}function PB(e){return e.sort((r,n)=>{const o=RB(r),a=RB(n);return o&&!a?1:!o&&a?-1:0})}const XSe="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",MB=new Map,OB=new Map;XSe.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");MB.set(r,o),a.length&&a.forEach(i=>{OB.set(i==="1"?o:i,r)})});const DB=e=>OB.get(e)||e,LB={conditions:{shift:PB,finalize:$B,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=DB(e);return{className:`${MB.get(n)||MSe(n)}_${VS(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:DB}},GSe=TB(LB),ye=(...e)=>GSe(Md(...e));ye.raw=(...e)=>Md(...e);const{mergeCss:Md}=RSe(LB);function Je(){let e="",r=0,n;for(;r<arguments.length;)(n=arguments[r++])&&typeof n=="string"&&(e&&(e+=" "),e+=n);return e}const IB=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function J0(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=IB(e),i=p=>({...o,...Pd(p)});function s(p={}){const g=i(p);let y={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(y=Md(y,n[w][k]));const x=KS(a,g);return Md(y,x)}function l(p){const g=IB(p.config),y=XS(p.variantKeys,Object.keys(n));return J0({base:Md(r,g.base),variants:Object.fromEntries(y.map(x=>[x,Md(n[x],g.variants[x])])),defaultVariants:qS(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(p){return ye(s(p))}const u=Object.keys(n);function d(p){return Yn(p,u)}const h=Object.fromEntries(Object.entries(n).map(([p,g])=>[p,Object.keys(g)]));return Object.assign(co(c),{__cva__:!0,variantMap:h,variantKeys:u,raw:s,config:e,merge:l,splitVariantProps:d,getVariantProps:i})}function KS(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(s=>r[a]===s))&&(n=Md(n,o.css))}),n}function KSe(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function ZSe(e){const r=Object.entries(HSe(e)).map(([h,p])=>[h,J0(p)]),n=e.defaultVariants??{},o=r.reduce((h,[p,g])=>(e.className&&(h[p]=g.config.className),h),{});function a(h){const p=r.map(([g,y])=>[g,Je(y(h),o[g])]);return Object.fromEntries(p)}function i(h){const p=r.map(([g,y])=>[g,y.raw(h)]);return Object.fromEntries(p)}const s=e.variants??{},l=Object.keys(s);function c(h){return Yn(h,l)}const u=h=>({...n,...Pd(h)}),d=Object.fromEntries(Object.entries(s).map(([h,p])=>[h,Object.keys(p)]));return Object.assign(co(a),{__cva__:!1,raw:i,config:e,variantMap:d,variantKeys:l,classNameMap:o,splitVariantProps:c,getVariantProps:u})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var QSe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const yt=(e,r,n,o)=>{const a=E.forwardRef(({color:i="currentColor",size:s=24,stroke:l=2,title:c,className:u,children:d,...h},p)=>E.createElement("svg",{ref:p,...QSe[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:l,stroke:i},...h},[c&&E.createElement("title",{key:"svg-title"},c),...o.map(([g,y])=>E.createElement(g,y)),...Array.isArray(d)?d:[d]]));return a.displayName=`${n}`,a};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const JSe=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],zB=yt("outline","cylinder","Cylinder",JSe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const e6e=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],t6e=yt("outline","rectangular-prism","RectangularPrism",e6e);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const r6e=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],n6e=yt("outline","reorder","Reorder",r6e);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const o6e=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],a6e=yt("outline","user","User",o6e);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const i6e=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],s6e=yt("outline","device-mobile","DeviceMobile",i6e);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const l6e=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],c6e=yt("outline","browser","Browser",l6e),ZS=E.createContext(null);function u6e({value:e,children:r}){return E.useContext(ZS)?b.jsx(b.Fragment,{children:r}):b.jsx(ZS.Provider,{value:e,children:r})}function Vx({element:e,className:r,style:n}){const o=E.useContext(ZS);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=b.jsx("img",{src:e.icon,alt:e.title}):o&&(a=b.jsx(o,{node:e})),a?b.jsx("div",{className:Je(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const d6e={browser:c6e,cylinder:zB,mobile:s6e,person:a6e,queue:n6e,rectangle:t6e,storage:zB};function h6e({element:e,className:r}){const n=b.jsx(Vx,{element:e,className:r});if(n)return n;const o=d6e[e.shape];return b.jsx("div",{className:Je(r,"likec4-shape-icon"),children:b.jsx(o,{})})}function Kf(e){const r=E.useRef(e);return r.current=e,E.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function jB(e){const r=Kf(e);E.useEffect(()=>()=>{r.current()},[])}function qx(e,r,n,o=0){const a=E.useRef(void 0),i=E.useRef(void 0),s=E.useRef(e),l=E.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return jB(c),E.useEffect(()=>{s.current=e},r),E.useMemo(()=>{const u=()=>{if(c(),!l.current)return;const h=l.current;l.current=void 0,s.current.apply(h.this,h.args)},d=function(...h){a.current&&clearTimeout(a.current),l.current={args:h,this:this},a.current=setTimeout(u,n),o>0&&!i.current&&(i.current=setTimeout(u,o))};return Object.defineProperties(d,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),d},[n,o,...r])}const f6e=()=>{},Yx=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function p6e(e){const r=Kf(e),n=E.useRef(0),o=E.useCallback(()=>{Yx&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return jB(o),[E.useMemo(()=>{const a=(...i)=>{Yx&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const m6e=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function BB(e,r,n=m6e,o=E.useEffect,...a){const i=E.useRef(void 0);(i.current===void 0||Yx&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function g6e(e,r,n,o=0){E.useEffect(qx(e,r,n,o),r)}function FB(){const e=E.useRef(!0);return E.useEffect(()=>{e.current=!1},[]),e.current}const QS=Yx?E.useLayoutEffect:E.useEffect;function y6e(e){E.useEffect(()=>{e()},[])}function HB(e,r){const[n,o]=p6e(e);E.useEffect(()=>(n(),o),r)}const b6e=e=>(e+1)%Number.MAX_SAFE_INTEGER;function v6e(){const[,e]=E.useState(0);return E.useCallback(()=>{e(b6e)},[])}function UB(e,r){const n=FB();E.useEffect(n?f6e:e,r)}const x6e=e=>{e&&clearTimeout(e)};function Wx(e,r){const n=Kf(e),o=Kf(r),a=E.useRef(null),i=E.useCallback(()=>{x6e(a.current)},[]),s=E.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return E.useEffect(()=>(s(),i),[r]),[i,s]}const VB=(e,r,n)=>{const o=E.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),E.useMemo(e,o.current)};function an(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=an(e[n]))!==""&&(r+=(r&&" ")+o);else for(let n in e)e[n]&&(r+=(r&&" ")+n);return r}var w6e={value:()=>{}};function Xx(){for(var e=0,r=arguments.length,n={},o;e<r;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Gx(n)}function Gx(e){this._=e}function k6e(e,r){return e.trim().split(/^|\s+/).map(function(n){var o="",a=n.indexOf(".");if(a>=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Gx.prototype=Xx.prototype={constructor:Gx,on:function(e,r){var n=this._,o=k6e(e+"",n),a,i=-1,s=o.length;if(arguments.length<2){for(;++i<s;)if((a=(e=o[i]).type)&&(a=_6e(n[a],e.name)))return a;return}if(r!=null&&typeof r!="function")throw new Error("invalid callback: "+r);for(;++i<s;)if(a=(e=o[i]).type)n[a]=qB(n[a],e.name,r);else if(r==null)for(a in n)n[a]=qB(n[a],e.name,null);return this},copy:function(){var e={},r=this._;for(var n in r)e[n]=r[n].slice();return new Gx(e)},call:function(e,r){if((a=arguments.length-2)>0)for(var n=new Array(a),o=0,a,i;o<a;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(r,n)},apply:function(e,r,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],a=0,i=o.length;a<i;++a)o[a].value.apply(r,n)}};function _6e(e,r){for(var n=0,o=e.length,a;n<o;++n)if((a=e[n]).name===r)return a.value}function qB(e,r,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===r){e[o]=w6e,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:r,value:n}),e}var JS="http://www.w3.org/1999/xhtml";const YB={svg:"http://www.w3.org/2000/svg",xhtml:JS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Kx(e){var r=e+="",n=r.indexOf(":");return n>=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),YB.hasOwnProperty(r)?{space:YB[r],local:e}:e}function E6e(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===JS&&r.documentElement.namespaceURI===JS?r.createElement(e):r.createElementNS(n,e)}}function S6e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function WB(e){var r=Kx(e);return(r.local?S6e:E6e)(r)}function C6e(){}function e6(e){return e==null?C6e:function(){return this.querySelector(e)}}function T6e(e){typeof e!="function"&&(e=e6(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],s=i.length,l=o[a]=new Array(s),c,u,d=0;d<s;++d)(c=i[d])&&(u=e.call(c,c.__data__,d,i))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new _a(o,this._parents)}function A6e(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function N6e(){return[]}function XB(e){return e==null?N6e:function(){return this.querySelectorAll(e)}}function R6e(e){return function(){return A6e(e.apply(this,arguments))}}function $6e(e){typeof e=="function"?e=R6e(e):e=XB(e);for(var r=this._groups,n=r.length,o=[],a=[],i=0;i<n;++i)for(var s=r[i],l=s.length,c,u=0;u<l;++u)(c=s[u])&&(o.push(e.call(c,c.__data__,u,s)),a.push(c));return new _a(o,a)}function GB(e){return function(){return this.matches(e)}}function KB(e){return function(r){return r.matches(e)}}var P6e=Array.prototype.find;function M6e(e){return function(){return P6e.call(this.children,e)}}function O6e(){return this.firstElementChild}function D6e(e){return this.select(e==null?O6e:M6e(typeof e=="function"?e:KB(e)))}var L6e=Array.prototype.filter;function I6e(){return Array.from(this.children)}function z6e(e){return function(){return L6e.call(this.children,e)}}function j6e(e){return this.selectAll(e==null?I6e:z6e(typeof e=="function"?e:KB(e)))}function B6e(e){typeof e!="function"&&(e=GB(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],s=i.length,l=o[a]=[],c,u=0;u<s;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&l.push(c);return new _a(o,this._parents)}function ZB(e){return new Array(e.length)}function F6e(){return new _a(this._enter||this._groups.map(ZB),this._parents)}function Zx(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}Zx.prototype={constructor:Zx,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function H6e(e){return function(){return e}}function U6e(e,r,n,o,a,i){for(var s=0,l,c=r.length,u=i.length;s<u;++s)(l=r[s])?(l.__data__=i[s],o[s]=l):n[s]=new Zx(e,i[s]);for(;s<c;++s)(l=r[s])&&(a[s]=l)}function V6e(e,r,n,o,a,i,s){var l,c,u=new Map,d=r.length,h=i.length,p=new Array(d),g;for(l=0;l<d;++l)(c=r[l])&&(p[l]=g=s.call(c,c.__data__,l,r)+"",u.has(g)?a[l]=c:u.set(g,c));for(l=0;l<h;++l)g=s.call(e,i[l],l,i)+"",(c=u.get(g))?(o[l]=c,c.__data__=i[l],u.delete(g)):n[l]=new Zx(e,i[l]);for(l=0;l<d;++l)(c=r[l])&&u.get(p[l])===c&&(a[l]=c)}function q6e(e){return e.__data__}function Y6e(e,r){if(!arguments.length)return Array.from(this,q6e);var n=r?V6e:U6e,o=this._parents,a=this._groups;typeof e!="function"&&(e=H6e(e));for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],h=a[u],p=h.length,g=W6e(e.call(d,d&&d.__data__,u,o)),y=g.length,x=l[u]=new Array(y),w=s[u]=new Array(y),k=c[u]=new Array(p);n(d,h,x,w,k,g,r);for(var C=0,_=0,T,A;C<y;++C)if(T=x[C]){for(C>=_&&(_=C+1);!(A=w[_])&&++_<y;);T._next=A||null}}return s=new _a(s,o),s._enter=l,s._exit=c,s}function W6e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function X6e(){return new _a(this._exit||this._groups.map(ZB),this._parents)}function G6e(e,r,n){var o=this.enter(),a=this,i=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),r!=null&&(a=r(a),a&&(a=a.selection())),n==null?i.remove():n(i),o&&a?o.merge(a).order():a}function K6e(e){for(var r=e.selection?e.selection():e,n=this._groups,o=r._groups,a=n.length,i=o.length,s=Math.min(a,i),l=new Array(a),c=0;c<s;++c)for(var u=n[c],d=o[c],h=u.length,p=l[c]=new Array(h),g,y=0;y<h;++y)(g=u[y]||d[y])&&(p[y]=g);for(;c<a;++c)l[c]=n[c];return new _a(l,this._parents)}function Z6e(){for(var e=this._groups,r=-1,n=e.length;++r<n;)for(var o=e[r],a=o.length-1,i=o[a],s;--a>=0;)(s=o[a])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function Q6e(e){e||(e=J6e);function r(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,o=n.length,a=new Array(o),i=0;i<o;++i){for(var s=n[i],l=s.length,c=a[i]=new Array(l),u,d=0;d<l;++d)(u=s[d])&&(c[d]=u);c.sort(r)}return new _a(a,this._parents).order()}function J6e(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function eCe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tCe(){return Array.from(this)}function rCe(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length;a<i;++a){var s=o[a];if(s)return s}return null}function nCe(){let e=0;for(const r of this)++e;return e}function oCe(){return!this.node()}function aCe(e){for(var r=this._groups,n=0,o=r.length;n<o;++n)for(var a=r[n],i=0,s=a.length,l;i<s;++i)(l=a[i])&&e.call(l,l.__data__,i,a);return this}function iCe(e){return function(){this.removeAttribute(e)}}function sCe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lCe(e,r){return function(){this.setAttribute(e,r)}}function cCe(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function uCe(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function dCe(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function hCe(e,r){var n=Kx(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((r==null?n.local?sCe:iCe:typeof r=="function"?n.local?dCe:uCe:n.local?cCe:lCe)(n,r))}function QB(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function fCe(e){return function(){this.style.removeProperty(e)}}function pCe(e,r,n){return function(){this.style.setProperty(e,r,n)}}function mCe(e,r,n){return function(){var o=r.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function gCe(e,r,n){return arguments.length>1?this.each((r==null?fCe:typeof r=="function"?mCe:pCe)(e,r,n??"")):Zf(this.node(),e)}function Zf(e,r){return e.style.getPropertyValue(r)||QB(e).getComputedStyle(e,null).getPropertyValue(r)}function yCe(e){return function(){delete this[e]}}function bCe(e,r){return function(){this[e]=r}}function vCe(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xCe(e,r){return arguments.length>1?this.each((r==null?yCe:typeof r=="function"?vCe:bCe)(e,r)):this.node()[e]}function JB(e){return e.trim().split(/^|\s+/)}function t6(e){return e.classList||new eF(e)}function eF(e){this._node=e,this._names=JB(e.getAttribute("class")||"")}eF.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tF(e,r){for(var n=t6(e),o=-1,a=r.length;++o<a;)n.add(r[o])}function rF(e,r){for(var n=t6(e),o=-1,a=r.length;++o<a;)n.remove(r[o])}function wCe(e){return function(){tF(this,e)}}function kCe(e){return function(){rF(this,e)}}function _Ce(e,r){return function(){(r.apply(this,arguments)?tF:rF)(this,e)}}function ECe(e,r){var n=JB(e+"");if(arguments.length<2){for(var o=t6(this.node()),a=-1,i=n.length;++a<i;)if(!o.contains(n[a]))return!1;return!0}return this.each((typeof r=="function"?_Ce:r?wCe:kCe)(n,r))}function SCe(){this.textContent=""}function CCe(e){return function(){this.textContent=e}}function TCe(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function ACe(e){return arguments.length?this.each(e==null?SCe:(typeof e=="function"?TCe:CCe)(e)):this.node().textContent}function NCe(){this.innerHTML=""}function RCe(e){return function(){this.innerHTML=e}}function $Ce(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function PCe(e){return arguments.length?this.each(e==null?NCe:(typeof e=="function"?$Ce:RCe)(e)):this.node().innerHTML}function MCe(){this.nextSibling&&this.parentNode.appendChild(this)}function OCe(){return this.each(MCe)}function DCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function LCe(){return this.each(DCe)}function ICe(e){var r=typeof e=="function"?e:WB(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function zCe(){return null}function jCe(e,r){var n=typeof e=="function"?e:WB(e),o=r==null?zCe:typeof r=="function"?r:e6(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function BCe(){var e=this.parentNode;e&&e.removeChild(this)}function FCe(){return this.each(BCe)}function HCe(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function UCe(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function VCe(e){return this.select(e?UCe:HCe)}function qCe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function YCe(e){return function(r){e.call(this,r,this.__data__)}}function WCe(e){return e.trim().split(/^|\s+/).map(function(r){var n="",o=r.indexOf(".");return o>=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function XCe(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n<a;++n)i=r[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):r[++o]=i;++o?r.length=o:delete this.__on}}}function GCe(e,r,n){return function(){var o=this.__on,a,i=YCe(r);if(o){for(var s=0,l=o.length;s<l;++s)if((a=o[s]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=n),a.value=r;return}}this.addEventListener(e.type,i,n),a={type:e.type,name:e.name,value:r,listener:i,options:n},o?o.push(a):this.__on=[a]}}function KCe(e,r,n){var o=WCe(e+""),a,i=o.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(a=0,d=l[c];a<i;++a)if((s=o[a]).type===d.type&&s.name===d.name)return d.value}return}for(l=r?GCe:XCe,a=0;a<i;++a)this.each(l(o[a],r,n));return this}function nF(e,r,n){var o=QB(e),a=o.CustomEvent;typeof a=="function"?a=new a(r,n):(a=o.document.createEvent("Event"),n?(a.initEvent(r,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(r,!1,!1)),e.dispatchEvent(a)}function ZCe(e,r){return function(){return nF(this,e,r)}}function QCe(e,r){return function(){return nF(this,e,r.apply(this,arguments))}}function JCe(e,r){return this.each((typeof r=="function"?QCe:ZCe)(e,r))}function*eTe(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length,s;a<i;++a)(s=o[a])&&(yield s)}var oF=[null];function _a(e,r){this._groups=e,this._parents=r}function e1(){return new _a([[document.documentElement]],oF)}function tTe(){return this}_a.prototype=e1.prototype={constructor:_a,select:T6e,selectAll:$6e,selectChild:D6e,selectChildren:j6e,filter:B6e,data:Y6e,enter:F6e,exit:X6e,join:G6e,merge:K6e,selection:tTe,order:Z6e,sort:Q6e,call:eCe,nodes:tCe,node:rCe,size:nCe,empty:oCe,each:aCe,attr:hCe,style:gCe,property:xCe,classed:ECe,text:ACe,html:PCe,raise:OCe,lower:LCe,append:ICe,insert:jCe,remove:FCe,clone:VCe,datum:qCe,on:KCe,dispatch:JCe,[Symbol.iterator]:eTe};function Ea(e){return typeof e=="string"?new _a([[document.querySelector(e)]],[document.documentElement]):new _a([[e]],oF)}function rTe(e){let r;for(;r=e.sourceEvent;)e=r;return e}function Vi(e,r){if(e=rTe(e),r===void 0&&(r=e.currentTarget),r){var n=r.ownerSVGElement||r;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(r.getScreenCTM().inverse()),[o.x,o.y]}if(r.getBoundingClientRect){var a=r.getBoundingClientRect();return[e.clientX-a.left-r.clientLeft,e.clientY-a.top-r.clientTop]}}return[e.pageX,e.pageY]}const nTe={passive:!1},t1={capture:!0,passive:!1};function r6(e){e.stopImmediatePropagation()}function Qf(e){e.preventDefault(),e.stopImmediatePropagation()}function aF(e){var r=e.document.documentElement,n=Ea(e).on("dragstart.drag",Qf,t1);"onselectstart"in r?n.on("selectstart.drag",Qf,t1):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function iF(e,r){var n=e.document.documentElement,o=Ea(e).on("dragstart.drag",null);r&&(o.on("click.drag",Qf,t1),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Qx=e=>()=>e;function n6(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:s,y:l,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}n6.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function oTe(e){return!e.ctrlKey&&!e.button}function aTe(){return this.parentNode}function iTe(e,r){return r??{x:e.x,y:e.y}}function sTe(){return navigator.maxTouchPoints||"ontouchstart"in this}function sF(){var e=oTe,r=aTe,n=iTe,o=sTe,a={},i=Xx("start","drag","end"),s=0,l,c,u,d,h=0;function p(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,nTe).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,A){if(!(d||!e.call(this,T,A))){var N=_(this,r.call(this,T,A),T,A,"mouse");N&&(Ea(T.view).on("mousemove.drag",y,t1).on("mouseup.drag",x,t1),aF(T.view),r6(T),u=!1,l=T.clientX,c=T.clientY,N("start",T))}}function y(T){if(Qf(T),!u){var A=T.clientX-l,N=T.clientY-c;u=A*A+N*N>h}a.mouse("drag",T)}function x(T){Ea(T.view).on("mousemove.drag mouseup.drag",null),iF(T.view,u),Qf(T),a.mouse("end",T)}function w(T,A){if(e.call(this,T,A)){var N=T.changedTouches,$=r.call(this,T,A),R=N.length,M,O;for(M=0;M<R;++M)(O=_(this,$,T,A,N[M].identifier,N[M]))&&(r6(T),O("start",T,N[M]))}}function k(T){var A=T.changedTouches,N=A.length,$,R;for($=0;$<N;++$)(R=a[A[$].identifier])&&(Qf(T),R("drag",T,A[$]))}function C(T){var A=T.changedTouches,N=A.length,$,R;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),$=0;$<N;++$)(R=a[A[$].identifier])&&(r6(T),R("end",T,A[$]))}function _(T,A,N,$,R,M){var O=i.copy(),B=Vi(M||N,A),I,Y,D;if((D=n.call(T,new n6("beforestart",{sourceEvent:N,target:p,identifier:R,active:s,x:B[0],y:B[1],dx:0,dy:0,dispatch:O}),$))!=null)return I=D.x-B[0]||0,Y=D.y-B[1]||0,function V(L,U,q){var X=B,F;switch(L){case"start":a[R]=V,F=s++;break;case"end":delete a[R],--s;case"drag":B=Vi(q||U,A),F=s;break}O.call(L,T,new n6(L,{sourceEvent:U,subject:D,target:p,identifier:R,active:F,x:B[0]+I,y:B[1]+Y,dx:B[0]-X[0],dy:B[1]-X[1],dispatch:O}),$)}}return p.filter=function(T){return arguments.length?(e=typeof T=="function"?T:Qx(!!T),p):e},p.container=function(T){return arguments.length?(r=typeof T=="function"?T:Qx(T),p):r},p.subject=function(T){return arguments.length?(n=typeof T=="function"?T:Qx(T),p):n},p.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:Qx(!!T),p):o},p.on=function(){var T=i.on.apply(i,arguments);return T===i?p:T},p.clickDistance=function(T){return arguments.length?(h=(T=+T)*T,p):Math.sqrt(h)},p}function o6(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function lF(e,r){var n=Object.create(e.prototype);for(var o in r)n[o]=r[o];return n}function r1(){}var n1=.7,Jx=1/n1,Jf="\\s*([+-]?\\d+)\\s*",o1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lTe=/^#([0-9a-f]{3,8})$/,cTe=new RegExp(`^rgb\\(${Jf},${Jf},${Jf}\\)$`),uTe=new RegExp(`^rgb\\(${Gs},${Gs},${Gs}\\)$`),dTe=new RegExp(`^rgba\\(${Jf},${Jf},${Jf},${o1}\\)$`),hTe=new RegExp(`^rgba\\(${Gs},${Gs},${Gs},${o1}\\)$`),fTe=new RegExp(`^hsl\\(${o1},${Gs},${Gs}\\)$`),pTe=new RegExp(`^hsla\\(${o1},${Gs},${Gs},${o1}\\)$`),cF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};o6(r1,Od,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uF,formatHex:uF,formatHex8:mTe,formatHsl:gTe,formatRgb:dF,toString:dF});function uF(){return this.rgb().formatHex()}function mTe(){return this.rgb().formatHex8()}function gTe(){return gF(this).formatHsl()}function dF(){return this.rgb().formatRgb()}function Od(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=lTe.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?hF(r):n===3?new Qo(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?ew(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?ew(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=cTe.exec(e))?new Qo(r[1],r[2],r[3],1):(r=uTe.exec(e))?new Qo(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=dTe.exec(e))?ew(r[1],r[2],r[3],r[4]):(r=hTe.exec(e))?ew(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=fTe.exec(e))?mF(r[1],r[2]/100,r[3]/100,1):(r=pTe.exec(e))?mF(r[1],r[2]/100,r[3]/100,r[4]):cF.hasOwnProperty(e)?hF(cF[e]):e==="transparent"?new Qo(NaN,NaN,NaN,0):null}function hF(e){return new Qo(e>>16&255,e>>8&255,e&255,1)}function ew(e,r,n,o){return o<=0&&(e=r=n=NaN),new Qo(e,r,n,o)}function yTe(e){return e instanceof r1||(e=Od(e)),e?(e=e.rgb(),new Qo(e.r,e.g,e.b,e.opacity)):new Qo}function a6(e,r,n,o){return arguments.length===1?yTe(e):new Qo(e,r,n,o??1)}function Qo(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}o6(Qo,a6,lF(r1,{brighter(e){return e=e==null?Jx:Math.pow(Jx,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?n1:Math.pow(n1,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qo(Dd(this.r),Dd(this.g),Dd(this.b),tw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fF,formatHex:fF,formatHex8:bTe,formatRgb:pF,toString:pF}));function fF(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}`}function bTe(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}${Ld((isNaN(this.opacity)?1:this.opacity)*255)}`}function pF(){const e=tw(this.opacity);return`${e===1?"rgb(":"rgba("}${Dd(this.r)}, ${Dd(this.g)}, ${Dd(this.b)}${e===1?")":`, ${e})`}`}function tw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ld(e){return e=Dd(e),(e<16?"0":"")+e.toString(16)}function mF(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new qi(e,r,n,o)}function gF(e){if(e instanceof qi)return new qi(e.h,e.s,e.l,e.opacity);if(e instanceof r1||(e=Od(e)),!e)return new qi;if(e instanceof qi)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),s=NaN,l=i-a,c=(i+a)/2;return l?(r===i?s=(n-o)/l+(n<o)*6:n===i?s=(o-r)/l+2:s=(r-n)/l+4,l/=c<.5?i+a:2-i-a,s*=60):l=c>0&&c<1?0:s,new qi(s,l,c,e.opacity)}function vTe(e,r,n,o){return arguments.length===1?gF(e):new qi(e,r,n,o??1)}function qi(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}o6(qi,vTe,lF(r1,{brighter(e){return e=e==null?Jx:Math.pow(Jx,e),new qi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?n1:Math.pow(n1,e),new qi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new Qo(i6(e>=240?e-240:e+120,a,o),i6(e,a,o),i6(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new qi(yF(this.h),rw(this.s),rw(this.l),tw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tw(this.opacity);return`${e===1?"hsl(":"hsla("}${yF(this.h)}, ${rw(this.s)*100}%, ${rw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yF(e){return e=(e||0)%360,e<0?e+360:e}function rw(e){return Math.max(0,Math.min(1,e||0))}function i6(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const s6=e=>()=>e;function xTe(e,r){return function(n){return e+n*r}}function wTe(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function kTe(e){return(e=+e)==1?bF:function(r,n){return n-r?wTe(r,n,e):s6(isNaN(r)?n:r)}}function bF(e,r){var n=r-e;return n?xTe(e,n):s6(isNaN(e)?r:e)}const nw=(function e(r){var n=kTe(r);function o(a,i){var s=n((a=a6(a)).r,(i=a6(i)).r),l=n(a.g,i.g),c=n(a.b,i.b),u=bF(a.opacity,i.opacity);return function(d){return a.r=s(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function _Te(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;a<n;++a)o[a]=e[a]*(1-i)+r[a]*i;return o}}function ETe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function STe(e,r){var n=r?r.length:0,o=e?Math.min(n,e.length):0,a=new Array(o),i=new Array(n),s;for(s=0;s<o;++s)a[s]=a1(e[s],r[s]);for(;s<n;++s)i[s]=r[s];return function(l){for(s=0;s<o;++s)i[s]=a[s](l);return i}}function CTe(e,r){var n=new Date;return e=+e,r=+r,function(o){return n.setTime(e*(1-o)+r*o),n}}function Ks(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}function TTe(e,r){var n={},o={},a;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(a in r)a in e?n[a]=a1(e[a],r[a]):o[a]=r[a];return function(i){for(a in n)o[a]=n[a](i);return o}}var l6=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,c6=new RegExp(l6.source,"g");function ATe(e){return function(){return e}}function NTe(e){return function(r){return e(r)+""}}function vF(e,r){var n=l6.lastIndex=c6.lastIndex=0,o,a,i,s=-1,l=[],c=[];for(e=e+"",r=r+"";(o=l6.exec(e))&&(a=c6.exec(r));)(i=a.index)>n&&(i=r.slice(n,i),l[s]?l[s]+=i:l[++s]=i),(o=o[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,c.push({i:s,x:Ks(o,a)})),n=c6.lastIndex;return n<r.length&&(i=r.slice(n),l[s]?l[s]+=i:l[++s]=i),l.length<2?c[0]?NTe(c[0].x):ATe(r):(r=c.length,function(u){for(var d=0,h;d<r;++d)l[(h=c[d]).i]=h.x(u);return l.join("")})}function a1(e,r){var n=typeof r,o;return r==null||n==="boolean"?s6(r):(n==="number"?Ks:n==="string"?(o=Od(r))?(r=o,nw):vF:r instanceof Od?nw:r instanceof Date?CTe:ETe(r)?_Te:Array.isArray(r)?STe:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?TTe:Ks)(e,r)}var xF=180/Math.PI,wF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kF(e,r,n,o,a,i){var s,l,c;return(s=Math.sqrt(e*e+r*r))&&(e/=s,r/=s),(c=e*n+r*o)&&(n-=e*c,o-=r*c),(l=Math.sqrt(n*n+o*o))&&(n/=l,o/=l,c/=l),e*o<r*n&&(e=-e,r=-r,c=-c,s=-s),{translateX:a,translateY:i,rotate:Math.atan2(r,e)*xF,skewX:Math.atan(c)*xF,scaleX:s,scaleY:l}}var ow;function RTe(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?wF:kF(r.a,r.b,r.c,r.d,r.e,r.f)}function $Te(e){return e==null||(ow||(ow=document.createElementNS("http://www.w3.org/2000/svg","g")),ow.setAttribute("transform",e),!(e=ow.transform.baseVal.consolidate()))?wF:(e=e.matrix,kF(e.a,e.b,e.c,e.d,e.e,e.f))}function _F(e,r,n,o){function a(u){return u.length?u.pop()+" ":""}function i(u,d,h,p,g,y){if(u!==h||d!==p){var x=g.push("translate(",null,r,null,n);y.push({i:x-4,x:Ks(u,h)},{i:x-2,x:Ks(d,p)})}else(h||p)&&g.push("translate("+h+r+p+n)}function s(u,d,h,p){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),p.push({i:h.push(a(h)+"rotate(",null,o)-2,x:Ks(u,d)})):d&&h.push(a(h)+"rotate("+d+o)}function l(u,d,h,p){u!==d?p.push({i:h.push(a(h)+"skewX(",null,o)-2,x:Ks(u,d)}):d&&h.push(a(h)+"skewX("+d+o)}function c(u,d,h,p,g,y){if(u!==h||d!==p){var x=g.push(a(g)+"scale(",null,",",null,")");y.push({i:x-4,x:Ks(u,h)},{i:x-2,x:Ks(d,p)})}else(h!==1||p!==1)&&g.push(a(g)+"scale("+h+","+p+")")}return function(u,d){var h=[],p=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,h,p),s(u.rotate,d.rotate,h,p),l(u.skewX,d.skewX,h,p),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,p),u=d=null,function(g){for(var y=-1,x=p.length,w;++y<x;)h[(w=p[y]).i]=w.x(g);return h.join("")}}}var PTe=_F(RTe,"px, ","px)","deg)"),MTe=_F($Te,", ",")",")"),OTe=1e-12;function EF(e){return((e=Math.exp(e))+1/e)/2}function DTe(e){return((e=Math.exp(e))-1/e)/2}function LTe(e){return((e=Math.exp(2*e))-1)/(e+1)}const aw=(function e(r,n,o){function a(i,s){var l=i[0],c=i[1],u=i[2],d=s[0],h=s[1],p=s[2],g=d-l,y=h-c,x=g*g+y*y,w,k;if(x<OTe)k=Math.log(p/u)/r,w=function($){return[l+$*g,c+$*y,u*Math.exp(r*$*k)]};else{var C=Math.sqrt(x),_=(p*p-u*u+o*x)/(2*u*n*C),T=(p*p-u*u-o*x)/(2*p*n*C),A=Math.log(Math.sqrt(_*_+1)-_),N=Math.log(Math.sqrt(T*T+1)-T);k=(N-A)/r,w=function($){var R=$*k,M=EF(A),O=u/(n*C)*(M*LTe(r*R+A)-DTe(A));return[l+O*g,c+O*y,u*M/EF(r*R+A)]}}return w.duration=k*1e3*r/Math.SQRT2,w}return a.rho=function(i){var s=Math.max(.001,+i),l=s*s,c=l*l;return e(s,l,c)},a})(Math.SQRT2,2,4);var ep=0,i1=0,s1=0,SF=1e3,iw,l1,sw=0,Id=0,lw=0,c1=typeof performance=="object"&&performance.now?performance:Date,CF=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function u6(){return Id||(CF(ITe),Id=c1.now()+lw)}function ITe(){Id=0}function cw(){this._call=this._time=this._next=null}cw.prototype=TF.prototype={constructor:cw,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?u6():+n)+(r==null?0:+r),!this._next&&l1!==this&&(l1?l1._next=this:iw=this,l1=this),this._call=e,this._time=n,d6()},stop:function(){this._call&&(this._call=null,this._time=1/0,d6())}};function TF(e,r,n){var o=new cw;return o.restart(e,r,n),o}function zTe(){u6(),++ep;for(var e=iw,r;e;)(r=Id-e._time)>=0&&e._call.call(void 0,r),e=e._next;--ep}function AF(){Id=(sw=c1.now())+lw,ep=i1=0;try{zTe()}finally{ep=0,BTe(),Id=0}}function jTe(){var e=c1.now(),r=e-sw;r>SF&&(lw-=r,sw=e)}function BTe(){for(var e,r=iw,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:iw=n);l1=e,d6(o)}function d6(e){if(!ep){i1&&(i1=clearTimeout(i1));var r=e-Id;r>24?(e<1/0&&(i1=setTimeout(AF,e-c1.now()-lw)),s1&&(s1=clearInterval(s1))):(s1||(sw=c1.now(),s1=setInterval(jTe,SF)),ep=1,CF(AF))}}function NF(e,r,n){var o=new cw;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var FTe=Xx("start","end","cancel","interrupt"),HTe=[],RF=0,$F=1,h6=2,uw=3,PF=4,f6=5,dw=6;function hw(e,r,n,o,a,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;UTe(e,n,{name:r,index:o,group:a,on:FTe,tween:HTe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:RF})}function p6(e,r){var n=Yi(e,r);if(n.state>RF)throw new Error("too late; already scheduled");return n}function Zs(e,r){var n=Yi(e,r);if(n.state>uw)throw new Error("too late; already running");return n}function Yi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function UTe(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=TF(i,0,n.time);function i(u){n.state=$F,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var d,h,p,g;if(n.state!==$F)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===uw)return NF(s);g.state===PF?(g.state=dw,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+d<r&&(g.state=dw,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[d])}if(NF(function(){n.state===uw&&(n.state=PF,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=h6,n.on.call("start",e,e.__data__,n.index,n.group),n.state===h6){for(n.state=uw,a=new Array(p=n.tween.length),d=0,h=-1;d<p;++d)(g=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++h]=g);a.length=h+1}}function l(u){for(var d=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=f6,1),h=-1,p=a.length;++h<p;)a[h].call(e,d);n.state===f6&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=dw,n.timer.stop(),delete o[r];for(var u in o)return;delete e.__transition}}function fw(e,r){var n=e.__transition,o,a,i=!0,s;if(n){r=r==null?null:r+"";for(s in n){if((o=n[s]).name!==r){i=!1;continue}a=o.state>h6&&o.state<f6,o.state=dw,o.timer.stop(),o.on.call(a?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[s]}i&&delete e.__transition}}function VTe(e){return this.each(function(){fw(this,e)})}function qTe(e,r){var n,o;return function(){var a=Zs(this,e),i=a.tween;if(i!==n){o=n=i;for(var s=0,l=o.length;s<l;++s)if(o[s].name===r){o=o.slice(),o.splice(s,1);break}}a.tween=o}}function YTe(e,r,n){var o,a;if(typeof n!="function")throw new Error;return function(){var i=Zs(this,e),s=i.tween;if(s!==o){a=(o=s).slice();for(var l={name:r,value:n},c=0,u=a.length;c<u;++c)if(a[c].name===r){a[c]=l;break}c===u&&a.push(l)}i.tween=a}}function WTe(e,r){var n=this._id;if(e+="",arguments.length<2){for(var o=Yi(this.node(),n).tween,a=0,i=o.length,s;a<i;++a)if((s=o[a]).name===e)return s.value;return null}return this.each((r==null?qTe:YTe)(n,e,r))}function m6(e,r,n){var o=e._id;return e.each(function(){var a=Zs(this,o);(a.value||(a.value={}))[r]=n.apply(this,arguments)}),function(a){return Yi(a,o).value[r]}}function MF(e,r){var n;return(typeof r=="number"?Ks:r instanceof Od?nw:(n=Od(r))?(r=n,nw):vF)(e,r)}function XTe(e){return function(){this.removeAttribute(e)}}function GTe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function KTe(e,r,n){var o,a=n+"",i;return function(){var s=this.getAttribute(e);return s===a?null:s===o?i:i=r(o=s,n)}}function ZTe(e,r,n){var o,a=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===o?i:i=r(o=s,n)}}function QTe(e,r,n){var o,a,i;return function(){var s,l=n(this),c;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=l+"",s===c?null:s===o&&c===a?i:(a=c,i=r(o=s,l)))}}function JTe(e,r,n){var o,a,i;return function(){var s,l=n(this),c;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=l+"",s===c?null:s===o&&c===a?i:(a=c,i=r(o=s,l)))}}function e8e(e,r){var n=Kx(e),o=n==="transform"?MTe:MF;return this.attrTween(e,typeof r=="function"?(n.local?JTe:QTe)(n,o,m6(this,"attr."+e,r)):r==null?(n.local?GTe:XTe)(n):(n.local?ZTe:KTe)(n,o,r))}function t8e(e,r){return function(n){this.setAttribute(e,r.call(this,n))}}function r8e(e,r){return function(n){this.setAttributeNS(e.space,e.local,r.call(this,n))}}function n8e(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&r8e(e,i)),n}return a._value=r,a}function o8e(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&t8e(e,i)),n}return a._value=r,a}function a8e(e,r){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;var o=Kx(e);return this.tween(n,(o.local?n8e:o8e)(o,r))}function i8e(e,r){return function(){p6(this,e).delay=+r.apply(this,arguments)}}function s8e(e,r){return r=+r,function(){p6(this,e).delay=r}}function l8e(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?i8e:s8e)(r,e)):Yi(this.node(),r).delay}function c8e(e,r){return function(){Zs(this,e).duration=+r.apply(this,arguments)}}function u8e(e,r){return r=+r,function(){Zs(this,e).duration=r}}function d8e(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?c8e:u8e)(r,e)):Yi(this.node(),r).duration}function h8e(e,r){if(typeof r!="function")throw new Error;return function(){Zs(this,e).ease=r}}function f8e(e){var r=this._id;return arguments.length?this.each(h8e(r,e)):Yi(this.node(),r).ease}function p8e(e,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;Zs(this,e).ease=n}}function m8e(e){if(typeof e!="function")throw new Error;return this.each(p8e(this._id,e))}function g8e(e){typeof e!="function"&&(e=GB(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],s=i.length,l=o[a]=[],c,u=0;u<s;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&l.push(c);return new Bl(o,this._parents,this._name,this._id)}function y8e(e){if(e._id!==this._id)throw new Error;for(var r=this._groups,n=e._groups,o=r.length,a=n.length,i=Math.min(o,a),s=new Array(o),l=0;l<i;++l)for(var c=r[l],u=n[l],d=c.length,h=s[l]=new Array(d),p,g=0;g<d;++g)(p=c[g]||u[g])&&(h[g]=p);for(;l<o;++l)s[l]=r[l];return new Bl(s,this._parents,this._name,this._id)}function b8e(e){return(e+"").trim().split(/^|\s+/).every(function(r){var n=r.indexOf(".");return n>=0&&(r=r.slice(0,n)),!r||r==="start"})}function v8e(e,r,n){var o,a,i=b8e(r)?p6:Zs;return function(){var s=i(this,e),l=s.on;l!==o&&(a=(o=l).copy()).on(r,n),s.on=a}}function x8e(e,r){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(v8e(n,e,r))}function w8e(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function k8e(){return this.on("end.remove",w8e(this._id))}function _8e(e){var r=this._name,n=this._id;typeof e!="function"&&(e=e6(e));for(var o=this._groups,a=o.length,i=new Array(a),s=0;s<a;++s)for(var l=o[s],c=l.length,u=i[s]=new Array(c),d,h,p=0;p<c;++p)(d=l[p])&&(h=e.call(d,d.__data__,p,l))&&("__data__"in d&&(h.__data__=d.__data__),u[p]=h,hw(u[p],r,n,p,u,Yi(d,n)));return new Bl(i,this._parents,r,n)}function E8e(e){var r=this._name,n=this._id;typeof e!="function"&&(e=XB(e));for(var o=this._groups,a=o.length,i=[],s=[],l=0;l<a;++l)for(var c=o[l],u=c.length,d,h=0;h<u;++h)if(d=c[h]){for(var p=e.call(d,d.__data__,h,c),g,y=Yi(d,n),x=0,w=p.length;x<w;++x)(g=p[x])&&hw(g,r,n,x,p,y);i.push(p),s.push(d)}return new Bl(i,s,r,n)}var S8e=e1.prototype.constructor;function C8e(){return new S8e(this._groups,this._parents)}function T8e(e,r){var n,o,a;return function(){var i=Zf(this,e),s=(this.style.removeProperty(e),Zf(this,e));return i===s?null:i===n&&s===o?a:a=r(n=i,o=s)}}function OF(e){return function(){this.style.removeProperty(e)}}function A8e(e,r,n){var o,a=n+"",i;return function(){var s=Zf(this,e);return s===a?null:s===o?i:i=r(o=s,n)}}function N8e(e,r,n){var o,a,i;return function(){var s=Zf(this,e),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(e),Zf(this,e))),s===c?null:s===o&&c===a?i:(a=c,i=r(o=s,l))}}function R8e(e,r){var n,o,a,i="style."+r,s="end."+i,l;return function(){var c=Zs(this,e),u=c.on,d=c.value[i]==null?l||(l=OF(r)):void 0;(u!==n||a!==d)&&(o=(n=u).copy()).on(s,a=d),c.on=o}}function $8e(e,r,n){var o=(e+="")=="transform"?PTe:MF;return r==null?this.styleTween(e,T8e(e,o)).on("end.style."+e,OF(e)):typeof r=="function"?this.styleTween(e,N8e(e,o,m6(this,"style."+e,r))).each(R8e(this._id,e)):this.styleTween(e,A8e(e,o,r),n).on("end.style."+e,null)}function P8e(e,r,n){return function(o){this.style.setProperty(e,r.call(this,o),n)}}function M8e(e,r,n){var o,a;function i(){var s=r.apply(this,arguments);return s!==a&&(o=(a=s)&&P8e(e,s,n)),o}return i._value=r,i}function O8e(e,r,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(r==null)return this.tween(o,null);if(typeof r!="function")throw new Error;return this.tween(o,M8e(e,r,n??""))}function D8e(e){return function(){this.textContent=e}}function L8e(e){return function(){var r=e(this);this.textContent=r??""}}function I8e(e){return this.tween("text",typeof e=="function"?L8e(m6(this,"text",e)):D8e(e==null?"":e+""))}function z8e(e){return function(r){this.textContent=e.call(this,r)}}function j8e(e){var r,n;function o(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&z8e(a)),r}return o._value=e,o}function B8e(e){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,j8e(e))}function F8e(){for(var e=this._name,r=this._id,n=DF(),o=this._groups,a=o.length,i=0;i<a;++i)for(var s=o[i],l=s.length,c,u=0;u<l;++u)if(c=s[u]){var d=Yi(c,r);hw(c,e,n,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Bl(o,this._parents,e,n)}function H8e(){var e,r,n=this,o=n._id,a=n.size();return new Promise(function(i,s){var l={value:s},c={value:function(){--a===0&&i()}};n.each(function(){var u=Zs(this,o),d=u.on;d!==e&&(r=(e=d).copy(),r._.cancel.push(l),r._.interrupt.push(l),r._.end.push(c)),u.on=r}),a===0&&i()})}var U8e=0;function Bl(e,r,n,o){this._groups=e,this._parents=r,this._name=n,this._id=o}function DF(){return++U8e}var Fl=e1.prototype;Bl.prototype={constructor:Bl,select:_8e,selectAll:E8e,selectChild:Fl.selectChild,selectChildren:Fl.selectChildren,filter:g8e,merge:y8e,selection:C8e,transition:F8e,call:Fl.call,nodes:Fl.nodes,node:Fl.node,size:Fl.size,empty:Fl.empty,each:Fl.each,on:x8e,attr:e8e,attrTween:a8e,style:$8e,styleTween:O8e,text:I8e,textTween:B8e,remove:k8e,tween:WTe,delay:l8e,duration:d8e,ease:f8e,easeVarying:m8e,end:H8e,[Symbol.iterator]:Fl[Symbol.iterator]};function V8e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var q8e={time:null,delay:0,duration:250,ease:V8e};function Y8e(e,r){for(var n;!(n=e.__transition)||!(n=n[r]);)if(!(e=e.parentNode))throw new Error(`transition ${r} not found`);return n}function W8e(e){var r,n;e instanceof Bl?(r=e._id,e=e._name):(r=DF(),(n=q8e).time=u6(),e=e==null?null:e+"");for(var o=this._groups,a=o.length,i=0;i<a;++i)for(var s=o[i],l=s.length,c,u=0;u<l;++u)(c=s[u])&&hw(c,e,r,u,s,n||Y8e(c,r));return new Bl(o,this._parents,e,r)}e1.prototype.interrupt=VTe,e1.prototype.transition=W8e;const pw=e=>()=>e;function X8e(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Hl(e,r,n){this.k=e,this.x=r,this.y=n}Hl.prototype={constructor:Hl,scale:function(e){return e===1?this:new Hl(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Hl(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mw=new Hl(1,0,0);LF.prototype=Hl.prototype;function LF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mw;return e.__zoom}function g6(e){e.stopImmediatePropagation()}function u1(e){e.preventDefault(),e.stopImmediatePropagation()}function G8e(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function K8e(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function IF(){return this.__zoom||mw}function Z8e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Q8e(){return navigator.maxTouchPoints||"ontouchstart"in this}function J8e(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],s=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function zF(){var e=G8e,r=K8e,n=J8e,o=Z8e,a=Q8e,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=aw,u=Xx("start","zoom","end"),d,h,p,g=500,y=150,x=0,w=10;function k(D){D.property("__zoom",IF).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",B).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(D,V,L,U){var q=D.selection?D.selection():D;q.property("__zoom",IF),D!==q?A(D,V,L,U):q.interrupt().each(function(){N(this,arguments).event(U).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},k.scaleBy=function(D,V,L,U){k.scaleTo(D,function(){var q=this.__zoom.k,X=typeof V=="function"?V.apply(this,arguments):V;return q*X},L,U)},k.scaleTo=function(D,V,L,U){k.transform(D,function(){var q=r.apply(this,arguments),X=this.__zoom,F=L==null?T(q):typeof L=="function"?L.apply(this,arguments):L,J=X.invert(F),Q=typeof V=="function"?V.apply(this,arguments):V;return n(_(C(X,Q),F,J),q,s)},L,U)},k.translateBy=function(D,V,L,U){k.transform(D,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof L=="function"?L.apply(this,arguments):L),r.apply(this,arguments),s)},null,U)},k.translateTo=function(D,V,L,U,q){k.transform(D,function(){var X=r.apply(this,arguments),F=this.__zoom,J=U==null?T(X):typeof U=="function"?U.apply(this,arguments):U;return n(mw.translate(J[0],J[1]).scale(F.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof L=="function"?-L.apply(this,arguments):-L),X,s)},U,q)};function C(D,V){return V=Math.max(i[0],Math.min(i[1],V)),V===D.k?D:new Hl(V,D.x,D.y)}function _(D,V,L){var U=V[0]-L[0]*D.k,q=V[1]-L[1]*D.k;return U===D.x&&q===D.y?D:new Hl(D.k,U,q)}function T(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function A(D,V,L,U){D.on("start.zoom",function(){N(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){N(this,arguments).event(U).end()}).tween("zoom",function(){var q=this,X=arguments,F=N(q,X).event(U),J=r.apply(q,X),Q=L==null?T(J):typeof L=="function"?L.apply(q,X):L,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=q.__zoom,G=typeof V=="function"?V.apply(q,X):V,Z=c(W.invert(Q).concat(z/W.k),G.invert(Q).concat(z/G.k));return function(oe){if(oe===1)oe=G;else{var ee=Z(oe),re=z/ee[2];oe=new Hl(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function N(D,V,L){return!L&&D.__zooming||new $(D,V)}function $(D,V){this.that=D,this.args=V,this.active=0,this.sourceEvent=null,this.extent=r.apply(D,V),this.taps=0}$.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,V){return this.mouse&&D!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var V=Ea(this.that).datum();u.call(D,this.that,new X8e(D,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),V)}};function R(D,...V){if(!e.apply(this,arguments))return;var L=N(this,V).event(D),U=this.__zoom,q=Math.max(i[0],Math.min(i[1],U.k*Math.pow(2,o.apply(this,arguments)))),X=Vi(D);if(L.wheel)(L.mouse[0][0]!==X[0]||L.mouse[0][1]!==X[1])&&(L.mouse[1]=U.invert(L.mouse[0]=X)),clearTimeout(L.wheel);else{if(U.k===q)return;L.mouse=[X,U.invert(X)],fw(this),L.start()}u1(D),L.wheel=setTimeout(F,y),L.zoom("mouse",n(_(C(U,q),L.mouse[0],L.mouse[1]),L.extent,s));function F(){L.wheel=null,L.end()}}function M(D,...V){if(p||!e.apply(this,arguments))return;var L=D.currentTarget,U=N(this,V,!0).event(D),q=Ea(D.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),X=Vi(D,L),F=D.clientX,J=D.clientY;aF(D.view),g6(D),U.mouse=[X,this.__zoom.invert(X)],fw(this),U.start();function Q(W){if(u1(W),!U.moved){var G=W.clientX-F,Z=W.clientY-J;U.moved=G*G+Z*Z>x}U.event(W).zoom("mouse",n(_(U.that.__zoom,U.mouse[0]=Vi(W,L),U.mouse[1]),U.extent,s))}function z(W){q.on("mousemove.zoom mouseup.zoom",null),iF(W.view,U.moved),u1(W),U.event(W).end()}}function O(D,...V){if(e.apply(this,arguments)){var L=this.__zoom,U=Vi(D.changedTouches?D.changedTouches[0]:D,this),q=L.invert(U),X=L.k*(D.shiftKey?.5:2),F=n(_(C(L,X),U,q),r.apply(this,V),s);u1(D),l>0?Ea(this).transition().duration(l).call(A,F,U,D):Ea(this).call(k.transform,F,U,D)}}function B(D,...V){if(e.apply(this,arguments)){var L=D.touches,U=L.length,q=N(this,V,D.changedTouches.length===U).event(D),X,F,J,Q;for(g6(D),F=0;F<U;++F)J=L[F],Q=Vi(J,this),Q=[Q,this.__zoom.invert(Q),J.identifier],q.touch0?!q.touch1&&q.touch0[2]!==Q[2]&&(q.touch1=Q,q.taps=0):(q.touch0=Q,X=!0,q.taps=1+!!d);d&&(d=clearTimeout(d)),X&&(q.taps<2&&(h=Q[0],d=setTimeout(function(){d=null},g)),fw(this),q.start())}}function I(D,...V){if(this.__zooming){var L=N(this,V).event(D),U=D.changedTouches,q=U.length,X,F,J,Q;for(u1(D),X=0;X<q;++X)F=U[X],J=Vi(F,this),L.touch0&&L.touch0[2]===F.identifier?L.touch0[0]=J:L.touch1&&L.touch1[2]===F.identifier&&(L.touch1[0]=J);if(F=L.that.__zoom,L.touch1){var z=L.touch0[0],W=L.touch0[1],G=L.touch1[0],Z=L.touch1[1],oe=(oe=G[0]-z[0])*oe+(oe=G[1]-z[1])*oe,ee=(ee=Z[0]-W[0])*ee+(ee=Z[1]-W[1])*ee;F=C(F,Math.sqrt(oe/ee)),J=[(z[0]+G[0])/2,(z[1]+G[1])/2],Q=[(W[0]+Z[0])/2,(W[1]+Z[1])/2]}else if(L.touch0)J=L.touch0[0],Q=L.touch0[1];else return;L.zoom("touch",n(_(F,J,Q),L.extent,s))}}function Y(D,...V){if(this.__zooming){var L=N(this,V).event(D),U=D.changedTouches,q=U.length,X,F;for(g6(D),p&&clearTimeout(p),p=setTimeout(function(){p=null},g),X=0;X<q;++X)F=U[X],L.touch0&&L.touch0[2]===F.identifier?delete L.touch0:L.touch1&&L.touch1[2]===F.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(F=Vi(F,this),Math.hypot(h[0]-F[0],h[1]-F[1])<w)){var J=Ea(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return k.wheelDelta=function(D){return arguments.length?(o=typeof D=="function"?D:pw(+D),k):o},k.filter=function(D){return arguments.length?(e=typeof D=="function"?D:pw(!!D),k):e},k.touchable=function(D){return arguments.length?(a=typeof D=="function"?D:pw(!!D),k):a},k.extent=function(D){return arguments.length?(r=typeof D=="function"?D:pw([[+D[0][0],+D[0][1]],[+D[1][0],+D[1][1]]]),k):r},k.scaleExtent=function(D){return arguments.length?(i[0]=+D[0],i[1]=+D[1],k):[i[0],i[1]]},k.translateExtent=function(D){return arguments.length?(s[0][0]=+D[0][0],s[1][0]=+D[1][0],s[0][1]=+D[0][1],s[1][1]=+D[1][1],k):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},k.constrain=function(D){return arguments.length?(n=D,k):n},k.duration=function(D){return arguments.length?(l=+D,k):l},k.interpolate=function(D){return arguments.length?(c=D,k):c},k.on=function(){var D=u.on.apply(u,arguments);return D===u?k:D},k.clickDistance=function(D){return arguments.length?(x=(D=+D)*D,k):Math.sqrt(x)},k.tapDistance=function(D){return arguments.length?(w=+D,k):w},k}const Qs={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},d1=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],jF=["Enter"," ","Escape"],BF={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var tp;(function(e){e.Strict="strict",e.Loose="loose"})(tp||(tp={}));var zd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(zd||(zd={}));var h1;(function(e){e.Partial="partial",e.Full="full"})(h1||(h1={}));const FF={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var eu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(eu||(eu={}));var gw;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(gw||(gw={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const HF={[tt.Left]:tt.Right,[tt.Right]:tt.Left,[tt.Top]:tt.Bottom,[tt.Bottom]:tt.Top};function UF(e){return e===null?null:e?"valid":"invalid"}const VF=e=>"id"in e&&"source"in e&&"target"in e,e9e=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),y6=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),f1=(e,r=[0,0])=>{const{width:n,height:o}=Wn(e),a=e.origin??r,i=n*a[0],s=o*a[1];return{x:e.position.x-i,y:e.position.y-s}},qF=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let s=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(s=i?r.nodeLookup.get(a):y6(a)?a:r.nodeLookup.get(a.id));const l=s?bw(s,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return yw(o,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return p1(n)},rp=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=bw(o);n=yw(n,a)}}),p1(n)},b6=(e,r,[n,o,a]=[0,0,1],i=!1,s=!1)=>{const l={...y1(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:h=!0,hidden:p=!1}=u;if(s&&!h||p)continue;const g=d.width??u.width??u.initialWidth??null,y=d.height??u.height??u.initialHeight??null,x=m1(l,Bd(u)),w=(g??0)*(y??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},t9e=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function r9e(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function n9e({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const l=r9e(e,s),c=rp(l),u=tu(c,r,n,s?.minZoom??a,s?.maxZoom??i,s?.padding??.1);return await o.setViewport(u,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),Promise.resolve(!0)}function YF({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const s=n.get(e),l=s.parentId?n.get(s.parentId):void 0,{x:c,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},d=s.origin??o;let h=s.extent||a;if(s.extent==="parent"&&!s.expandParent)if(!l)i?.("005",Qs.error005());else{const g=l.measured.width,y=l.measured.height;g&&y&&(h=[[c,u],[c+g,u+y]])}else l&&ip(s.extent)&&(h=[[s.extent[0][0]+c,s.extent[0][1]+u],[s.extent[1][0]+c,s.extent[1][1]+u]]);const p=ip(h)?jd(r,h,s.measured):r;return(s.measured.width===void 0||s.measured.height===void 0)&&i?.("015",Qs.error015()),{position:{x:p.x-c+(s.measured.width??0)*d[0],y:p.y-u+(s.measured.height??0)*d[1]},positionAbsolute:p}}async function o9e({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(h=>h.id)),s=[];for(const h of n){if(h.deletable===!1)continue;const p=i.has(h.id),g=!p&&h.parentId&&s.find(y=>y.id===h.parentId);(p||g)&&s.push(h)}const l=new Set(r.map(h=>h.id)),c=o.filter(h=>h.deletable!==!1),u=t9e(s,c);for(const h of c)l.has(h.id)&&!u.find(p=>p.id===h.id)&&u.push(h);if(!a)return{edges:u,nodes:s};const d=await a({nodes:s,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:s}:{edges:[],nodes:[]}:d}const np=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),jd=(e={x:0,y:0},r,n)=>({x:np(e.x,r[0][0],r[1][0]-(n?.width??0)),y:np(e.y,r[0][1],r[1][1]-(n?.height??0))});function WF(e,r,n){const{width:o,height:a}=Wn(n),{x:i,y:s}=n.internals.positionAbsolute;return jd(e,[[i,s],[i+o,s+a]],r)}const XF=(e,r,n)=>e<r?np(Math.abs(e-r),1,r)/r:e>n?-np(Math.abs(e-n),1,r)/r:0,GF=(e,r,n=15,o=40)=>{const a=XF(e.x,o,r.width-o)*n,i=XF(e.y,o,r.height-o)*n;return[a,i]},yw=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),v6=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),p1=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Bd=(e,r=[0,0])=>{const{x:n,y:o}=y6(e)?e.internals.positionAbsolute:f1(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},bw=(e,r=[0,0])=>{const{x:n,y:o}=y6(e)?e.internals.positionAbsolute:f1(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},vw=(e,r)=>p1(yw(v6(e),v6(r))),m1=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},KF=e=>Wi(e.width)&&Wi(e.height)&&Wi(e.x)&&Wi(e.y),Wi=e=>!isNaN(e)&&isFinite(e),a9e=(e,r)=>{},g1=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),y1=({x:e,y:r},[n,o,a],i=!1,s=[1,1])=>{const l={x:(e-n)/a,y:(r-o)/a};return i?g1(l,s):l},xw=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function op(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function i9e(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=op(e,n),a=op(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=op(e.top??e.y??0,n),a=op(e.bottom??e.y??0,n),i=op(e.left??e.x??0,r),s=op(e.right??e.x??0,r);return{top:o,right:s,bottom:a,left:i,x:i+s,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function s9e(e,r,n,o,a,i){const{x:s,y:l}=xw(e,[r,n,o]),{x:c,y:u}=xw({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,h=i-u;return{left:Math.floor(s),top:Math.floor(l),right:Math.floor(d),bottom:Math.floor(h)}}const tu=(e,r,n,o,a,i)=>{const s=i9e(i,r,n),l=(r-s.x)/e.width,c=(n-s.y)/e.height,u=Math.min(l,c),d=np(u,o,a),h=e.x+e.width/2,p=e.y+e.height/2,g=r/2-h*d,y=n/2-p*d,x=s9e(e,g,y,d,r,n),w={left:Math.min(x.left-s.left,0),top:Math.min(x.top-s.top,0),right:Math.min(x.right-s.right,0),bottom:Math.min(x.bottom-s.bottom,0)};return{x:g-w.left+w.right,y:y-w.top+w.bottom,zoom:d}},ap=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function ip(e){return e!=null&&e!=="parent"}function Wn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function ZF(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function QF(e,r={width:0,height:0},n,o,a){const i={...e},s=o.get(n);if(s){const l=s.origin||a;i.x+=s.internals.positionAbsolute.x-(r.width??0)*l[0],i.y+=s.internals.positionAbsolute.y-(r.height??0)*l[1]}return i}function JF(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function l9e(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function c9e(e){return{...BF,...e||{}}}function b1(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:s}=Xi(e),l=y1({x:i-(a?.left??0),y:s-(a?.top??0)},o),{x:c,y:u}=n?g1(l,r):l;return{xSnapped:c,ySnapped:u,...l}}const x6=e=>({width:e.offsetWidth,height:e.offsetHeight}),eH=e=>e?.getRootNode?.()||window?.document,u9e=["INPUT","SELECT","TEXTAREA"];function tH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:u9e.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const rH=e=>"clientX"in e,Xi=(e,r)=>{const n=rH(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},nH=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const l=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:a,position:s.getAttribute("data-handlepos"),x:(l.left-n.left)/o,y:(l.top-n.top)/o,...x6(s)}})};function oH({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:s,targetControlY:l}){const c=e*.125+a*.375+s*.375+n*.125,u=r*.125+i*.375+l*.375+o*.125,d=Math.abs(c-e),h=Math.abs(u-r);return[c,u,d,h]}function ww(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function aH({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-ww(r-o,i),n];case tt.Right:return[r+ww(o-r,i),n];case tt.Top:return[r,n-ww(n-a,i)];case tt.Bottom:return[r,n+ww(a-n,i)]}}function kw({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:s=.25}){const[l,c]=aH({pos:n,x1:e,y1:r,x2:o,y2:a,c:s}),[u,d]=aH({pos:i,x1:o,y1:a,x2:e,y2:r,c:s}),[h,p,g,y]=oH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${l},${c} ${u},${d} ${o},${a}`,h,p,g,y]}function iH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n<e?n+a:n-a,s=Math.abs(o-r)/2,l=o<r?o+s:o-s;return[i,l,a,s]}function d9e({sourceNode:e,targetNode:r,selected:n=!1,zIndex:o,elevateOnSelect:a=!1}){if(o!==void 0)return o;const i=a&&n?1e3:0,s=Math.max(e.parentId||a&&e.selected?e.internals.z:0,r.parentId||a&&r.selected?r.internals.z:0);return i+s}function h9e({sourceNode:e,targetNode:r,width:n,height:o,transform:a}){const i=yw(bw(e),bw(r));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const s={x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:o/a[2]};return m1(s,p1(i))>0}const f9e=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,p9e=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),m9e=(e,r)=>{if(!e.source||!e.target)return r;let n;return VF(e)?n={...e}:n={...e,id:f9e(e)},p9e(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function sH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,s,l]=iH({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,s,l]}const lH={[tt.Left]:{x:-1,y:0},[tt.Right]:{x:1,y:0},[tt.Top]:{x:0,y:-1},[tt.Bottom]:{x:0,y:1}},g9e=({source:e,sourcePosition:r=tt.Bottom,target:n})=>r===tt.Left||r===tt.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},cH=(e,r)=>Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function y9e({source:e,sourcePosition:r=tt.Bottom,target:n,targetPosition:o=tt.Top,center:a,offset:i,stepPosition:s}){const l=lH[r],c=lH[o],u={x:e.x+l.x*i,y:e.y+l.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},h=g9e({source:u,sourcePosition:r,target:d}),p=h.x!==0?"x":"y",g=h[p];let y=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=iH({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[p]*c[p]===-1){p==="x"?(x=a.x??u.x+(d.x-u.x)*s,w=a.y??(u.y+d.y)/2):(x=a.x??(u.x+d.x)/2,w=a.y??u.y+(d.y-u.y)*s);const A=[{x,y:u.y},{x,y:d.y}],N=[{x:u.x,y:w},{x:d.x,y:w}];l[p]===g?y=p==="x"?A:N:y=p==="x"?N:A}else{const A=[{x:u.x,y:d.y}],N=[{x:d.x,y:u.y}];if(p==="x"?y=l.x===g?N:A:y=l.y===g?A:N,r===o){const B=Math.abs(e[p]-n[p]);if(B<=i){const I=Math.min(i-1,i-B);l[p]===g?k[p]=(u[p]>e[p]?-1:1)*I:C[p]=(d[p]>n[p]?-1:1)*I}}if(r!==o){const B=p==="x"?"y":"x",I=l[p]===c[B],Y=u[B]>d[B],D=u[B]<d[B];(l[p]===1&&(!I&&Y||I&&D)||l[p]!==1&&(!I&&D||I&&Y))&&(y=p==="x"?A:N)}const $={x:u.x+k.x,y:u.y+k.y},R={x:d.x+C.x,y:d.y+C.y},M=Math.max(Math.abs($.x-y[0].x),Math.abs(R.x-y[0].x)),O=Math.max(Math.abs($.y-y[0].y),Math.abs(R.y-y[0].y));M>=O?(x=($.x+R.x)/2,w=y[0].y):(x=y[0].x,w=($.y+R.y)/2)}return[[e,{x:u.x+k.x,y:u.y+k.y},...y,{x:d.x+C.x,y:d.y+C.y},n],x,w,_,T]}function b9e(e,r,n,o){const a=Math.min(cH(e,r)/2,cH(r,n)/2,o),{x:i,y:s}=r;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const u=e.x<n.x?-1:1,d=e.y<n.y?1:-1;return`L ${i+a*u},${s}Q ${i},${s} ${i},${s+a*d}`}const l=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${i},${s+a*c}Q ${i},${s} ${i+a*l},${s}`}function _w({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,borderRadius:s=5,centerX:l,centerY:c,offset:u=20,stepPosition:d=.5}){const[h,p,g,y,x]=y9e({source:{x:e,y:r},sourcePosition:n,target:{x:o,y:a},targetPosition:i,center:{x:l,y:c},offset:u,stepPosition:d});return[h.reduce((w,k,C)=>{let _="";return C>0&&C<h.length-1?_=b9e(h[C-1],k,h[C+1],s):_=`${C===0?"M":"L"}${k.x} ${k.y}`,w+=_,w},""),p,g,y,x]}function uH(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function dH(e){const{sourceNode:r,targetNode:n}=e;if(!uH(r)||!uH(n))return null;const o=r.internals.handleBounds||hH(r.handles),a=n.internals.handleBounds||hH(n.handles),i=fH(o?.source??[],e.sourceHandle),s=fH(e.connectionMode===tp.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!s)return e.onError?.("008",Qs.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const l=i?.position||tt.Bottom,c=s?.position||tt.Top,u=v1(r,i,l),d=v1(n,s,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:l,targetPosition:c}}function hH(e){if(!e)return null;const r=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?r.push(o):o.type==="target"&&n.push(o);return{source:r,target:n}}function v1(e,r,n=tt.Left,o=!1){const a=(r?.x??0)+e.internals.positionAbsolute.x,i=(r?.y??0)+e.internals.positionAbsolute.y,{width:s,height:l}=r??Wn(e);if(o)return{x:a+s/2,y:i+l/2};switch(r?.position??n){case tt.Top:return{x:a+s/2,y:i};case tt.Right:return{x:a+s,y:i+l/2};case tt.Bottom:return{x:a+s/2,y:i+l};case tt.Left:return{x:a,y:i+l/2}}}function fH(e,r){return e&&(r?e.find(n=>n.id===r):e[0])||null}function w6(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function v9e(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((s,l)=>([l.markerStart||o,l.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const u=w6(c,r);i.has(u)||(s.push({id:u,color:c.color||n,...c}),i.add(u))}}),s),[]).sort((s,l)=>s.id.localeCompare(l.id))}function x9e(e,r,n,o,a){let i=.5;a==="start"?i=0:a==="end"&&(i=1);let s=[(e.x+e.width*i)*r.zoom+r.x,e.y*r.zoom+r.y-o],l=[-100*i,-100];switch(n){case tt.Right:s=[(e.x+e.width)*r.zoom+r.x+o,(e.y+e.height*i)*r.zoom+r.y],l=[0,-100*i];break;case tt.Bottom:s[1]=(e.y+e.height)*r.zoom+r.y+o,l[1]=0;break;case tt.Left:s=[e.x*r.zoom+r.x-o,(e.y+e.height*i)*r.zoom+r.y],l=[-100,-100*i];break}return`translate(${s[0]}px, ${s[1]}px) translate(${l[0]}%, ${l[1]}%)`}const k6={nodeOrigin:[0,0],nodeExtent:d1,elevateNodesOnSelect:!0,defaults:{}},w9e={...k6,checkEquality:!0};function _6(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function k9e(e,r,n){const o=_6(k6,n);for(const a of e.values())if(a.parentId)S6(a,e,r,o);else{const i=f1(a,o.nodeOrigin),s=ip(a.extent)?a.extent:o.nodeExtent,l=jd(i,s,Wn(a));a.internals.positionAbsolute=l}}function _9e(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function E6(e,r,n,o){const a=_6(w9e,o);let i=e.length>0;const s=new Map(r),l=a?.elevateNodesOnSelect?1e3:0;r.clear(),n.clear();for(const c of e){let u=s.get(c.id);if(a.checkEquality&&c===u?.internals.userNode)r.set(c.id,u);else{const d=f1(c,a.nodeOrigin),h=ip(c.extent)?c.extent:a.nodeExtent,p=jd(d,h,Wn(c));u={...a.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:p,handleBounds:_9e(c,u),z:pH(c,l),userNode:c}},r.set(c.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(i=!1),c.parentId&&S6(u,r,n,o)}return i}function E9e(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function S6(e,r,n,o){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:s}=_6(k6,o),l=e.parentId,c=r.get(l);if(!c){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}E9e(e,n);const u=a?1e3:0,{x:d,y:h,z:p}=S9e(e,c,i,s,u),{positionAbsolute:g}=e.internals,y=d!==g.x||h!==g.y;(y||p!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:y?{x:d,y:h}:g,z:p}})}function pH(e,r){return(Wi(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function S9e(e,r,n,o,a){const{x:i,y:s}=r.internals.positionAbsolute,l=Wn(e),c=f1(e,n),u=ip(e.extent)?jd(c,e.extent,l):c;let d=jd({x:i+u.x,y:s+u.y},o,l);e.extent==="parent"&&(d=WF(d,l,r));const h=pH(e,a),p=r.internals.z??0;return{x:d.x,y:d.y,z:p>=h?p+1:h}}function C6(e,r,n,o=[0,0]){const a=[],i=new Map;for(const s of e){const l=r.get(s.parentId);if(!l)continue;const c=i.get(s.parentId)?.expandedRect??Bd(l),u=vw(c,s.rect);i.set(s.parentId,{expandedRect:u,parent:l})}return i.size>0&&i.forEach(({expandedRect:s,parent:l},c)=>{const u=l.internals.positionAbsolute,d=Wn(l),h=l.origin??o,p=s.x<u.x?Math.round(Math.abs(u.x-s.x)):0,g=s.y<u.y?Math.round(Math.abs(u.y-s.y)):0,y=Math.max(d.width,Math.round(s.width)),x=Math.max(d.height,Math.round(s.height)),w=(y-d.width)*h[0],k=(x-d.height)*h[1];(p>0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:l.position.x-p+w,y:l.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+p,y:C.position.y+g}})})),(d.width<s.width||d.height<s.height||p||g)&&a.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:y+(p?h[0]*p-w:0),height:x+(g?h[1]*g-k:0)}})}),a}function C9e(e,r,n,o,a,i){const s=o?.querySelector(".xyflow__viewport");let l=!1;if(!s)return{changes:[],updatedInternals:l};const c=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),h=[];for(const p of e.values()){const g=r.get(p.id);if(!g)continue;if(g.hidden){r.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),l=!0;continue}const y=x6(p.nodeElement),x=g.measured.width!==y.width||g.measured.height!==y.height;if(y.width&&y.height&&(x||!g.internals.handleBounds||p.force)){const w=p.nodeElement.getBoundingClientRect(),k=ip(g.extent)?g.extent:i;let{positionAbsolute:C}=g.internals;g.parentId&&g.extent==="parent"?C=WF(C,y,r.get(g.parentId)):k&&(C=jd(C,k,y));const _={...g,measured:y,internals:{...g.internals,positionAbsolute:C,handleBounds:{source:nH("source",p.nodeElement,w,d,g.id),target:nH("target",p.nodeElement,w,d,g.id)}}};r.set(g.id,_),g.parentId&&S6(_,r,n,{nodeOrigin:a}),l=!0,x&&(c.push({id:g.id,type:"dimensions",dimensions:y}),g.expandParent&&g.parentId&&h.push({id:g.id,parentId:g.parentId,rect:Bd(_,a)}))}}if(h.length>0){const p=C6(h,r,n,a);c.push(...p)}return{changes:c,updatedInternals:l}}async function T9e({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const s=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),l=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(l)}function mH(e,r,n,o,a,i){let s=a;const l=o.get(s)||new Map;o.set(s,l.set(n,r)),s=`${a}-${e}`;const c=o.get(s)||new Map;if(o.set(s,c.set(n,r)),i){s=`${a}-${e}-${i}`;const u=o.get(s)||new Map;o.set(s,u.set(n,r))}}function gH(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:s=null,targetHandle:l=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:s,targetHandle:l},u=`${a}-${s}--${i}-${l}`,d=`${i}-${l}--${a}-${s}`;mH("source",c,d,e,a,s),mH("target",c,u,e,i,l),r.set(o.id,o)}}function yH(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:yH(n,r):!1}function bH(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function A9e(e,r,n,o){const a=new Map;for(const[i,s]of e)if((s.selected||s.id===o)&&(!s.parentId||!yH(s,e))&&(s.draggable||r&&typeof s.draggable>"u")){const l=e.get(i);l&&a.set(i,{id:i,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return a}function T6({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[s,l]of r){const c=n.get(s)?.internals.userNode;c&&a.push({...c,position:l.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function N9e({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},s=g1(i,r);return{x:s.x-i.x,y:s.y-i.y}}function R9e({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},s=0,l=new Map,c=!1,u={x:0,y:0},d=null,h=!1,p=null,g=!1,y=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:A,nodeId:N,nodeClickDistance:$=0}){p=Ea(T);function R({x:I,y:Y}){const{nodeLookup:D,nodeExtent:V,snapGrid:L,snapToGrid:U,nodeOrigin:q,onNodeDrag:X,onSelectionDrag:F,onError:J,updateNodePositions:Q}=r();i={x:I,y:Y};let z=!1;const W=l.size>1,G=W&&V?v6(rp(l)):null,Z=W&&U?N9e({dragItems:l,snapGrid:L,x:I,y:Y}):null;for(const[oe,ee]of l){if(!D.has(oe))continue;let re={x:I-ee.distance.x,y:Y-ee.distance.y};U&&(re=Z?{x:Math.round(re.x+Z.x),y:Math.round(re.y+Z.y)}:g1(re,L));let he=null;if(W&&V&&!ee.extent&&G){const{positionAbsolute:de}=ee.internals,be=de.x-G.x+V[0][0],De=de.x+ee.measured.width-G.x2+V[1][0],Ge=de.y-G.y+V[0][1],Xe=de.y+ee.measured.height-G.y2+V[1][1];he=[[be,Ge],[De,Xe]]}const{position:Ce,positionAbsolute:ce}=YF({nodeId:oe,nextPosition:re,nodeLookup:D,nodeExtent:he||V,nodeOrigin:q,onError:J});z=z||ee.position.x!==Ce.x||ee.position.y!==Ce.y,ee.position=Ce,ee.internals.positionAbsolute=ce}if(y=y||z,!!z&&(Q(l,!0),x&&(o||X||!N&&F))){const[oe,ee]=T6({nodeId:N,dragItems:l,nodeLookup:D});o?.(x,l,oe,ee),X?.(x,oe,ee),N||F?.(x,ee)}}async function M(){if(!d)return;const{transform:I,panBy:Y,autoPanSpeed:D,autoPanOnNodeDrag:V}=r();if(!V){c=!1,cancelAnimationFrame(s);return}const[L,U]=GF(u,d,D);(L!==0||U!==0)&&(i.x=(i.x??0)-L/I[2],i.y=(i.y??0)-U/I[2],await Y({x:L,y:U})&&R(i)),s=requestAnimationFrame(M)}function O(I){const{nodeLookup:Y,multiSelectionActive:D,nodesDraggable:V,transform:L,snapGrid:U,snapToGrid:q,selectNodesOnDrag:X,onNodeDragStart:F,onSelectionDragStart:J,unselectNodesAndEdges:Q}=r();h=!0,(!X||!A)&&!D&&N&&(Y.get(N)?.selected||Q()),A&&X&&N&&e?.(N);const z=b1(I.sourceEvent,{transform:L,snapGrid:U,snapToGrid:q,containerBounds:d});if(i=z,l=A9e(Y,V,z,N),l.size>0&&(n||F||!N&&J)){const[W,G]=T6({nodeId:N,dragItems:l,nodeLookup:Y});n?.(I.sourceEvent,l,W,G),F?.(I.sourceEvent,W,G),N||J?.(I.sourceEvent,G)}}const B=sF().clickDistance($).on("start",I=>{const{domNode:Y,nodeDragThreshold:D,transform:V,snapGrid:L,snapToGrid:U}=r();d=Y?.getBoundingClientRect()||null,g=!1,y=!1,x=I.sourceEvent,D===0&&O(I),i=b1(I.sourceEvent,{transform:V,snapGrid:L,snapToGrid:U,containerBounds:d}),u=Xi(I.sourceEvent,d)}).on("drag",I=>{const{autoPanOnNodeDrag:Y,transform:D,snapGrid:V,snapToGrid:L,nodeDragThreshold:U,nodeLookup:q}=r(),X=b1(I.sourceEvent,{transform:D,snapGrid:V,snapToGrid:L,containerBounds:d});if(x=I.sourceEvent,(I.sourceEvent.type==="touchmove"&&I.sourceEvent.touches.length>1||N&&!q.has(N))&&(g=!0),!g){if(!c&&Y&&h&&(c=!0,M()),!h){const F=Xi(I.sourceEvent,d),J=F.x-u.x,Q=F.y-u.y;Math.sqrt(J*J+Q*Q)>U&&O(I)}(i.x!==X.xSnapped||i.y!==X.ySnapped)&&l&&h&&(u=Xi(I.sourceEvent,d),R(X))}}).on("end",I=>{if(!(!h||g)&&(c=!1,h=!1,cancelAnimationFrame(s),l.size>0)){const{nodeLookup:Y,updateNodePositions:D,onNodeDragStop:V,onSelectionDragStop:L}=r();if(y&&(D(l,!1),y=!1),a||V||!N&&L){const[U,q]=T6({nodeId:N,dragItems:l,nodeLookup:Y,dragging:!1});a?.(I.sourceEvent,l,U,q),V?.(I.sourceEvent,U,q),N||L?.(I.sourceEvent,q)}}}).filter(I=>{const Y=I.target;return!I.button&&(!C||!bH(Y,`.${C}`,T))&&(!_||bH(Y,_,T))});p.call(B)}function k(){p?.on(".drag",null)}return{update:w,destroy:k}}function $9e(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())m1(a,Bd(i))>0&&o.push(i);return o}const P9e=250;function M9e(e,r,n,o){let a=[],i=1/0;const s=$9e(e,n,r+P9e);for(const l of s){const c=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(const u of c){if(o.nodeId===u.nodeId&&o.type===u.type&&o.id===u.id)continue;const{x:d,y:h}=v1(l,u,u.position,!0),p=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(h-e.y,2));p>r||(p<i?(a=[{...u,x:d,y:h}],i=p):p===i&&a.push({...u,x:d,y:h}))}}if(!a.length)return null;if(a.length>1){const l=o.type==="source"?"target":"source";return a.find(c=>c.type===l)??a[0]}return a[0]}function vH(e,r,n,o,a,i=!1){const s=o.get(e);if(!s)return null;const l=a==="strict"?s.internals.handleBounds?.[r]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],c=(n?l?.find(u=>u.id===n):l?.[0])??null;return c&&i?{...c,...v1(s,c,c.position,!0)}:c}function xH(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function O9e(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const wH=()=>!0;function D9e(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:s,domNode:l,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:h,panBy:p,cancelConnection:g,onConnectStart:y,onConnect:x,onConnectEnd:w,isValidConnection:k=wH,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:A,autoPanSpeed:N,dragThreshold:$=1,handleDomNode:R}){const M=eH(e.target);let O=0,B;const{x:I,y:Y}=Xi(e),D=xH(i,R),V=l?.getBoundingClientRect();let L=!1;if(!V||!D)return;const U=vH(a,D,o,c,r);if(!U)return;let q=Xi(e,V),X=!1,F=null,J=!1,Q=null;function z(){if(!d||!V)return;const[he,Ce]=GF(q,V,N);p({x:he,y:Ce}),O=requestAnimationFrame(z)}const W={...U,nodeId:a,type:D,position:U.position},G=c.get(a);let Z={inProgress:!0,isValid:null,from:v1(G,W,tt.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:G,to:q,toHandle:null,toPosition:HF[W.position],toNode:null};function oe(){L=!0,_(Z),y?.(e,{nodeId:a,handleId:o,handleType:D})}$===0&&oe();function ee(he){if(!L){const{x:be,y:De}=Xi(he),Ge=be-I,Xe=De-Y;if(!(Ge*Ge+Xe*Xe>$*$))return;oe()}if(!A()||!W){re(he);return}const Ce=T();q=Xi(he,V),B=M9e(y1(q,Ce,!1,[1,1]),n,c,W),X||(z(),X=!0);const ce=kH(he,{handle:B,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:s?"target":"source",isValidConnection:k,doc:M,lib:u,flowId:h,nodeLookup:c});Q=ce.handleDomNode,F=ce.connection,J=O9e(!!B,ce.isValid);const de={...Z,isValid:J,to:ce.toHandle&&J?xw({x:ce.toHandle.x,y:ce.toHandle.y},Ce):q,toHandle:ce.toHandle,toPosition:J&&ce.toHandle?ce.toHandle.position:HF[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};J&&B&&Z.toHandle&&de.toHandle&&Z.toHandle.type===de.toHandle.type&&Z.toHandle.nodeId===de.toHandle.nodeId&&Z.toHandle.id===de.toHandle.id&&Z.to.x===de.to.x&&Z.to.y===de.to.y||(_(de),Z=de)}function re(he){if(!("touches"in he&&he.touches.length>0)){if(L){(B||Q)&&F&&J&&x?.(F);const{inProgress:Ce,...ce}=Z,de={...ce,toPosition:Z.toHandle?Z.toPosition:null};w?.(he,de),i&&C?.(he,de)}g(),cancelAnimationFrame(O),X=!1,J=!1,F=null,Q=null,M.removeEventListener("mousemove",ee),M.removeEventListener("mouseup",re),M.removeEventListener("touchmove",ee),M.removeEventListener("touchend",re)}}M.addEventListener("mousemove",ee),M.addEventListener("mouseup",re),M.addEventListener("touchmove",ee),M.addEventListener("touchend",re)}function kH(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:s,lib:l,flowId:c,isValidConnection:u=wH,nodeLookup:d}){const h=i==="target",p=r?s.querySelector(`.${l}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y}=Xi(e),x=s.elementFromPoint(g,y),w=x?.classList.contains(`${l}-flow__handle`)?x:p,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=xH(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),A=w.classList.contains("connectable"),N=w.classList.contains("connectableend");if(!_||!C)return k;const $={source:h?_:o,sourceHandle:h?T:a,target:h?o:_,targetHandle:h?a:T};k.connection=$;const R=A&&N&&(n===tp.Strict?h&&C==="source"||!h&&C==="target":_!==o||T!==a);k.isValid=R&&u($),k.toHandle=vH(_,C,T,d,n,!0)}return k}const A6={onPointerDown:D9e,isValid:kH};function L9e({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ea(e);function i({translateExtent:l,width:c,height:u,zoomStep:d=1,pannable:h=!0,zoomable:p=!0,inversePan:g=!1}){const y=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),A=_.sourceEvent.ctrlKey&&ap()?10:1,N=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*d,$=T[2]*Math.pow(2,N*A);r.scaleTo($)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const A=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],N=[A[0]-x[0],A[1]-x[1]];x=A;const $=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),R={x:T[0]-N[0]*$,y:T[1]-N[1]*$},M=[[0,0],[c,u]];r.setViewportConstrained({x:R.x,y:R.y,zoom:T[2]},M,l)},C=zF().on("start",w).on("zoom",h?k:null).on("zoom.wheel",p?y:null);a.call(C,{})}function s(){a.on("zoom",null)}return{update:i,destroy:s,pointer:Vi}}const I9e=(e,r)=>e.x!==r.x||e.y!==r.y||e.zoom!==r.k,Ew=e=>({x:e.x,y:e.y,zoom:e.k}),N6=({x:e,y:r,zoom:n})=>mw.translate(e,r).scale(n),sp=(e,r)=>e.target.closest(`.${r}`),_H=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),z9e=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,R6=(e,r=0,n=z9e,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},EH=e=>{const r=e.ctrlKey&&ap()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function j9e({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(sp(d,r))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();const h=n.property("__zoom").k||1;if(d.ctrlKey&&s){const w=Vi(d),k=EH(d),C=h*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const p=d.deltaMode===1?20:1;let g=a===zd.Vertical?0:d.deltaX*p,y=a===zd.Horizontal?0:d.deltaY*p;!ap()&&d.shiftKey&&a!==zd.Vertical&&(g=d.deltaY*p,y=0),o.translateBy(n,-(g/h)*i,-(y/h)*i,{internal:!0});const x=Ew(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l?.(d,x)),e.isPanScrolling&&(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150))}}function B9e({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",s=!r&&i&&!o.ctrlKey,l=sp(o,e);if(o.ctrlKey&&i&&l&&o.preventDefault(),s||l)return null;o.preventDefault(),n.call(this,o,a)}}function F9e({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Ew(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function H9e({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&_H(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Ew(i.transform))}}function U9e({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&_H(r,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,o(!1),a&&I9e(e.prevViewport,s.transform))){const l=Ew(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(s.sourceEvent,l)},n?150:0)}}}function V9e({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:l,noPanClassName:c,lib:u,connectionInProgress:d}){return h=>{const p=e||r,g=n&&h.ctrlKey,y=h.type==="wheel";if(h.button===1&&h.type==="mousedown"&&(sp(h,`${u}-flow__node`)||sp(h,`${u}-flow__edge`)))return!0;if(!o&&!p&&!a&&!i&&!n||s||d&&!y||sp(h,l)&&y||sp(h,c)&&(!y||a&&y&&!e)||!n&&h.ctrlKey&&y)return!1;if(!n&&h.type==="touchstart"&&h.touches?.length>1)return h.preventDefault(),!1;if(!p&&!a&&!g&&y||!o&&(h.type==="mousedown"||h.type==="touchstart")||Array.isArray(o)&&!o.includes(h.button)&&h.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||y)&&x}}function q9e({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:s,onPanZoomStart:l,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),p=zF().clickDistance(!Wi(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ea(e).call(p);_({x:i.x,y:i.y,zoom:np(i.zoom,r,n)},[[0,0],[h.width,h.height]],a);const y=g.on("wheel.zoom"),x=g.on("dblclick.zoom");p.wheelDelta(EH);function w(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?a1:aw).transform(R6(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function k({noWheelClassName:I,noPanClassName:Y,onPaneContextMenu:D,userSelectionActive:V,panOnScroll:L,panOnDrag:U,panOnScrollMode:q,panOnScrollSpeed:X,preventScrolling:F,zoomOnPinch:J,zoomOnScroll:Q,zoomOnDoubleClick:z,zoomActivationKeyPressed:W,lib:G,onTransformChange:Z,connectionInProgress:oe}){V&&!d.isZoomingOrPanning&&C();const ee=L&&!W&&!V?j9e({zoomPanValues:d,noWheelClassName:I,d3Selection:g,d3Zoom:p,panOnScrollMode:q,panOnScrollSpeed:X,zoomOnPinch:J,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:c}):B9e({noWheelClassName:I,preventScrolling:F,d3ZoomHandler:y});if(g.on("wheel.zoom",ee,{passive:!1}),!V){const he=F9e({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:l});p.on("start",he);const Ce=H9e({zoomPanValues:d,panOnDrag:U,onPaneContextMenu:!!D,onPanZoom:s,onTransformChange:Z});p.on("zoom",Ce);const ce=U9e({zoomPanValues:d,panOnDrag:U,panOnScroll:L,onPaneContextMenu:D,onPanZoomEnd:c,onDraggingChange:u});p.on("end",ce)}const re=V9e({zoomActivationKeyPressed:W,panOnDrag:U,zoomOnScroll:Q,panOnScroll:L,zoomOnDoubleClick:z,zoomOnPinch:J,userSelectionActive:V,noPanClassName:Y,noWheelClassName:I,lib:G,connectionInProgress:oe});p.filter(re),z?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){p.on("zoom",null)}async function _(I,Y,D){const V=N6(I),L=p?.constrain()(V,Y,D);return L&&await w(L),new Promise(U=>U(L))}async function T(I,Y){const D=N6(I);return await w(D,Y),new Promise(V=>V(D))}function A(I){if(g){const Y=N6(I),D=g.property("__zoom");(D.k!==I.zoom||D.x!==I.x||D.y!==I.y)&&p?.transform(g,Y,null,{sync:!0})}}function N(){const I=g?LF(g.node()):{x:0,y:0,k:1};return{x:I.x,y:I.y,zoom:I.k}}function $(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?a1:aw).scaleTo(R6(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function R(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?a1:aw).scaleBy(R6(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function M(I){p?.scaleExtent(I)}function O(I){p?.translateExtent(I)}function B(I){const Y=!Wi(I)||I<0?0:I;p?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:N,scaleTo:$,scaleBy:R,setScaleExtent:M,setTranslateExtent:O,syncViewport:A,setClickDistance:B}}var lp;(function(e){e.Line="line",e.Handle="handle"})(lp||(lp={}));function Y9e({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const s=e-r,l=n-o,c=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&a&&(c[0]=c[0]*-1),l&&i&&(c[1]=c[1]*-1),c}function W9e(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function ru(e,r){return Math.max(0,r-e)}function nu(e,r){return Math.max(0,e-r)}function Sw(e,r,n){return Math.max(0,r-e,e-n)}function SH(e,r){return e?!r:r}function X9e(e,r,n,o,a,i,s,l){let{affectsX:c,affectsY:u}=r;const{isHorizontal:d,isVertical:h}=r,p=d&&h,{xSnapped:g,ySnapped:y}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:A,height:N,aspectRatio:$}=e;let R=Math.floor(d?g-e.pointerX:0),M=Math.floor(h?y-e.pointerY:0);const O=A+(c?-R:R),B=N+(u?-M:M),I=-i[0]*A,Y=-i[1]*N;let D=Sw(O,x,w),V=Sw(B,k,C);if(s){let q=0,X=0;c&&R<0?q=ru(_+R+I,s[0][0]):!c&&R>0&&(q=nu(_+O+I,s[1][0])),u&&M<0?X=ru(T+M+Y,s[0][1]):!u&&M>0&&(X=nu(T+B+Y,s[1][1])),D=Math.max(D,q),V=Math.max(V,X)}if(l){let q=0,X=0;c&&R>0?q=nu(_+R,l[0][0]):!c&&R<0&&(q=ru(_+O,l[1][0])),u&&M>0?X=nu(T+M,l[0][1]):!u&&M<0&&(X=ru(T+B,l[1][1])),D=Math.max(D,q),V=Math.max(V,X)}if(a){if(d){const q=Sw(O/$,k,C)*$;if(D=Math.max(D,q),s){let X=0;!c&&!u||c&&!u&&p?X=nu(T+Y+O/$,s[1][1])*$:X=ru(T+Y+(c?R:-R)/$,s[0][1])*$,D=Math.max(D,X)}if(l){let X=0;!c&&!u||c&&!u&&p?X=ru(T+O/$,l[1][1])*$:X=nu(T+(c?R:-R)/$,l[0][1])*$,D=Math.max(D,X)}}if(h){const q=Sw(B*$,x,w)/$;if(V=Math.max(V,q),s){let X=0;!c&&!u||u&&!c&&p?X=nu(_+B*$+I,s[1][0])/$:X=ru(_+(u?M:-M)*$+I,s[0][0])/$,V=Math.max(V,X)}if(l){let X=0;!c&&!u||u&&!c&&p?X=ru(_+B*$,l[1][0])/$:X=nu(_+(u?M:-M)*$,l[0][0])/$,V=Math.max(V,X)}}}M=M+(M<0?V:-V),R=R+(R<0?D:-D),a&&(p?O>B*$?M=(SH(c,u)?-R:R)/$:R=(SH(c,u)?-M:M)*$:d?(M=R/$,u=c):(R=M*$,c=u));const L=c?_+R:_,U=u?T+M:T;return{width:A+(c?-R:R),height:N+(u?-M:M),x:i[0]*R*(c?-1:1)+L,y:i[1]*M*(u?-1:1)+U}}const CH={width:0,height:0,x:0,y:0},G9e={...CH,pointerX:0,pointerY:0,aspectRatio:1};function K9e(e){return[[0,0],[e.measured.width,e.measured.height]]}function Z9e(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,l=n[0]*i,c=n[1]*s;return[[o-l,a-c],[o+i-l,a+s-c]]}function Q9e({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ea(e);function s({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:h,onResizeStart:p,onResize:g,onResizeEnd:y,shouldResize:x}){let w={...CH},k={...G9e};const C=W9e(c);let _,T=null,A=[],N,$,R,M=!1;const O=sF().on("start",B=>{const{nodeLookup:I,transform:Y,snapGrid:D,snapToGrid:V,nodeOrigin:L,paneDomNode:U}=n();if(_=I.get(r),!_)return;T=U?.getBoundingClientRect()??null;const{xSnapped:q,ySnapped:X}=b1(B.sourceEvent,{transform:Y,snapGrid:D,snapToGrid:V,containerBounds:T});w={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},k={...w,pointerX:q,pointerY:X,aspectRatio:w.width/w.height},N=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(N=I.get(_.parentId),$=N&&_.extent==="parent"?K9e(N):void 0),A=[],R=void 0;for(const[F,J]of I)if(J.parentId===r&&(A.push({id:F,position:{...J.position},extent:J.extent}),J.extent==="parent"||J.expandParent)){const Q=Z9e(J,_,J.origin??L);R?R=[[Math.min(Q[0][0],R[0][0]),Math.min(Q[0][1],R[0][1])],[Math.max(Q[1][0],R[1][0]),Math.max(Q[1][1],R[1][1])]]:R=Q}p?.(B,{...w})}).on("drag",B=>{const{transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V}=n(),L=b1(B.sourceEvent,{transform:I,snapGrid:Y,snapToGrid:D,containerBounds:T}),U=[];if(!_)return;const{x:q,y:X,width:F,height:J}=w,Q={},z=_.origin??V,{width:W,height:G,x:Z,y:oe}=X9e(k,C,L,u,d,z,$,R),ee=W!==F,re=G!==J,he=Z!==q&&ee,Ce=oe!==X&&re;if(!he&&!Ce&&!ee&&!re)return;if((he||Ce||z[0]===1||z[1]===1)&&(Q.x=he?Z:w.x,Q.y=Ce?oe:w.y,w.x=Q.x,w.y=Q.y,A.length>0)){const be=Z-q,De=oe-X;for(const Ge of A)Ge.position={x:Ge.position.x-be+z[0]*(W-F),y:Ge.position.y-De+z[1]*(G-J)},U.push(Ge)}if((ee||re)&&(Q.width=ee&&(!h||h==="horizontal")?W:w.width,Q.height=re&&(!h||h==="vertical")?G:w.height,w.width=Q.width,w.height=Q.height),N&&_.expandParent){const be=z[0]*(Q.width??0);Q.x&&Q.x<be&&(w.x=be,k.x=k.x-(Q.x-be));const De=z[1]*(Q.height??0);Q.y&&Q.y<De&&(w.y=De,k.y=k.y-(Q.y-De))}const ce=Y9e({width:w.width,prevWidth:F,height:w.height,prevHeight:J,affectsX:C.affectsX,affectsY:C.affectsY}),de={...w,direction:ce};x?.(B,de)!==!1&&(M=!0,g?.(B,de),o(Q,U))}).on("end",B=>{M&&(y?.(B,{...w}),a?.({...w}),M=!1)});i.call(O)}function l(){i.on(".drag",null)}return{update:s,destroy:l}}function $6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TH={exports:{}},P6={},AH={exports:{}},M6={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var NH;function J9e(){if(NH)return M6;NH=1;var e=Gr;function r(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(h,p){var g=p(),y=o({inst:{value:g,getSnapshot:p}}),x=y[0].inst,w=y[1];return i(function(){x.value=g,x.getSnapshot=p,c(x)&&w({inst:x})},[h,g,p]),a(function(){return c(x)&&w({inst:x}),h(function(){c(x)&&w({inst:x})})},[h]),s(g),g}function c(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!n(h,g)}catch{return!0}}function u(h,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return M6.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,M6}var RH;function $H(){return RH||(RH=1,AH.exports=J9e()),AH.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PH;function eAe(){if(PH)return P6;PH=1;var e=Gr,r=$H();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return P6.useSyncExternalStoreWithSelector=function(u,d,h,p,g){var y=i(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=l(function(){function k(N){if(!C){if(C=!0,_=N,N=p(N),g!==void 0&&x.hasValue){var $=x.value;if(g($,N))return T=$}return T=N}if($=T,o(_,N))return $;var R=p(N);return g!==void 0&&g($,R)?(_=N,$):(_=N,T=R)}var C=!1,_,T,A=h===void 0?null:h;return[function(){return k(d())},A===null?void 0:function(){return k(A())}]},[d,h,p,g]);var w=a(u,y[0],y[1]);return s(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},P6}var MH;function tAe(){return MH||(MH=1,TH.exports=eAe()),TH.exports}var OH=tAe();const rAe=$6(OH),nAe={},DH=e=>{let r;const n=new Set,o=(l,c)=>{const u=typeof l=="function"?l(r):l;if(!Object.is(u,r)){const d=r;r=c??(typeof u!="object"||u===null)?u:Object.assign({},r,u),n.forEach(h=>h(r,d))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{(nAe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=r=e(o,a,i);return i},oAe=e=>e?DH(e):DH,{useDebugValue:aAe}=Gr,{useSyncExternalStoreWithSelector:iAe}=rAe,sAe=e=>e;function LH(e,r=sAe,n){const o=iAe(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return aAe(o),o}const IH=(e,r)=>{const n=oAe(e),o=(a,i=r)=>LH(n,a,i);return Object.assign(o,n),o},lAe=(e,r)=>e?IH(e,r):IH;function Nr(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const Cw=E.createContext(null),cAe=Cw.Provider,zH=Qs.error001();function At(e,r){const n=E.useContext(Cw);if(n===null)throw new Error(zH);return LH(n,e,r)}function pr(){const e=E.useContext(Cw);if(e===null)throw new Error(zH);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const jH={display:"none"},uAe={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},BH="react-flow__node-desc",FH="react-flow__edge-desc",dAe="react-flow__aria-live",hAe=e=>e.ariaLiveMessage,fAe=e=>e.ariaLabelConfig;function pAe({rfId:e}){const r=At(hAe);return b.jsx("div",{id:`${dAe}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:uAe,children:r})}function mAe({rfId:e,disableKeyboardA11y:r}){const n=At(fAe);return b.jsxs(b.Fragment,{children:[b.jsx("div",{id:`${BH}-${e}`,style:jH,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),b.jsx("div",{id:`${FH}-${e}`,style:jH,children:n["edge.a11yDescription.default"]}),!r&&b.jsx(pAe,{rfId:e})]})}const ou=E.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const s=`${e}`.split("-");return b.jsx("div",{className:an(["react-flow__panel",n,...s]),style:o,ref:i,...a,children:r})});ou.displayName="Panel";function gAe({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:b.jsx(ou,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:b.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const yAe=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},Tw=e=>e.id;function bAe(e,r){return Nr(e.selectedNodes.map(Tw),r.selectedNodes.map(Tw))&&Nr(e.selectedEdges.map(Tw),r.selectedEdges.map(Tw))}function vAe({onSelectionChange:e}){const r=pr(),{selectedNodes:n,selectedEdges:o}=At(yAe,bAe);return E.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const xAe=e=>!!e.onSelectionChangeHandlers;function wAe({onSelectionChange:e}){const r=At(xAe);return e||r?b.jsx(vAe,{onSelectionChange:e}):null}const HH=[0,0],kAe={x:0,y:0,zoom:1},_Ae=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],UH=[..._Ae,"rfId"],EAe=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),VH={translateExtent:d1,nodeOrigin:HH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function SAe(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=At(EAe,Nr),d=pr();E.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{h.current=VH,l()}),[]);const h=E.useRef(VH);return E.useEffect(()=>{for(const p of UH){const g=e[p],y=h.current[p];g!==y&&(typeof e[p]>"u"||(p==="nodes"?r(g):p==="edges"?n(g):p==="minZoom"?o(g):p==="maxZoom"?a(g):p==="translateExtent"?i(g):p==="nodeExtent"?s(g):p==="paneClickDistance"?u(g):p==="ariaLabelConfig"?d.setState({ariaLabelConfig:c9e(g)}):p==="fitView"?d.setState({fitViewQueued:g}):p==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[p]:g})))}h.current=e},UH.map(p=>e[p])),null}function qH(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function CAe(e){const[r,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=qH(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:qH()?.matches?"dark":"light"}const YH=typeof document<"u"?document:null;function x1(e=null,r={target:YH,actInsideInputWithModifier:!0}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(new Set([])),[s,l]=E.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace("+",`
`).replace(`

`,`
+`).split(`
`)),u=c.reduce((d,h)=>d.concat(...h),[]);return[c,u]}return[[],[]]},[e]);return E.useEffect(()=>{const c=r?.target??YH,u=r?.actInsideInputWithModifier??!0;if(e!==null){const d=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!u)&&tH(g))return!1;const y=XH(g.code,l);if(i.current.add(g[y]),WH(s,i.current,!1)){const x=g.composedPath?.()?.[0]||g.target,w=x?.nodeName==="BUTTON"||x?.nodeName==="A";r.preventDefault!==!1&&(a.current||!w)&&g.preventDefault(),o(!0)}},h=g=>{const y=XH(g.code,l);WH(s,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[y]),g.key==="Meta"&&i.current.clear(),a.current=!1},p=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",d),c?.addEventListener("keyup",h),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{c?.removeEventListener("keydown",d),c?.removeEventListener("keyup",h),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,o]),n}function WH(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function XH(e,r){return r.includes(e)?"code":"key"}const TAe=()=>{const e=pr();return E.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:s,panZoom:l}=e.getState(),c=tu(r,o,a,i,s,n?.padding??.1);return l?(await l.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:s}=e.getState();if(!s)return r;const{x:l,y:c}=s.getBoundingClientRect(),u={x:r.x-l,y:r.y-c},d=n.snapGrid??a,h=n.snapToGrid??i;return y1(u,o,h,d)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),s=xw(r,n);return{x:s.x+a,y:s.y+i}}}),[])};function GH(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const s=o.get(i.id);s?s.push(i):o.set(i.id,[i])}for(const i of r){const s=o.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const l={...i};for(const c of s)AAe(c,l);n.push(l)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function AAe(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured??={},r.measured.width=e.dimensions.width,r.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function Aw(e,r){return GH(e,r)}function Nw(e,r){return GH(e,r)}function Fd(e,r){return{id:e,type:"select",selected:r}}function cp(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const s=r.has(a);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),o.push(Fd(i.id,s)))}return o}function KH({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const s=r.get(i.id),l=s?.internals?.userNode??s;l!==void 0&&l!==i&&n.push({id:i.id,item:i,type:"replace"}),l===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function ZH(e){return{id:e.id,type:"remove"}}const QH=e=>e9e(e),NAe=e=>VF(e);function JH(e){return E.forwardRef(e)}const RAe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function eU(e){const[r,n]=E.useState(BigInt(0)),[o]=E.useState(()=>$Ae(()=>n(a=>a+BigInt(1))));return RAe(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function $Ae(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const tU=E.createContext(null);function PAe({children:e}){const r=pr(),n=E.useCallback(l=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:h,nodeLookup:p,fitViewQueued:g}=r.getState();let y=c;for(const w of l)y=typeof w=="function"?w(y):w;const x=KH({items:y,lookup:p});d&&u(y),x.length>0?h?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:C}=r.getState();w&&C(k)})},[]),o=eU(n),a=E.useCallback(l=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:h,edgeLookup:p}=r.getState();let g=c;for(const y of l)g=typeof y=="function"?y(g):y;d?u(g):h&&h(KH({items:g,lookup:p}))},[]),i=eU(a),s=E.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return b.jsx(tU.Provider,{value:s,children:e})}function MAe(){const e=E.useContext(tU);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const OAe=e=>!!e.panZoom;function up(){const e=TAe(),r=pr(),n=MAe(),o=At(OAe),a=E.useMemo(()=>{const i=h=>r.getState().nodeLookup.get(h),s=h=>{n.nodeQueue.push(h)},l=h=>{n.edgeQueue.push(h)},c=h=>{const{nodeLookup:p,nodeOrigin:g}=r.getState(),y=QH(h)?h:p.get(h.id),x=y.parentId?QF(y.position,y.measured,y.parentId,p,g):y.position,w={...y,position:x,width:y.measured?.width??y.width,height:y.measured?.height??y.height};return Bd(w)},u=(h,p,g={replace:!1})=>{s(y=>y.map(x=>{if(x.id===h){const w=typeof p=="function"?p(x):p;return g.replace&&QH(w)?w:{...x,...w}}return x}))},d=(h,p,g={replace:!1})=>{l(y=>y.map(x=>{if(x.id===h){const w=typeof p=="function"?p(x):p;return g.replace&&NAe(w)?w:{...x,...w}}return x}))};return{getNodes:()=>r.getState().nodes.map(h=>({...h})),getNode:h=>i(h)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:h=[]}=r.getState();return h.map(p=>({...p}))},getEdge:h=>r.getState().edgeLookup.get(h),setNodes:s,setEdges:l,addNodes:h=>{const p=Array.isArray(h)?h:[h];n.nodeQueue.push(g=>[...g,...p])},addEdges:h=>{const p=Array.isArray(h)?h:[h];n.edgeQueue.push(g=>[...g,...p])},toObject:()=>{const{nodes:h=[],edges:p=[],transform:g}=r.getState(),[y,x,w]=g;return{nodes:h.map(k=>({...k})),edges:p.map(k=>({...k})),viewport:{x:y,y:x,zoom:w}}},deleteElements:async({nodes:h=[],edges:p=[]})=>{const{nodes:g,edges:y,onNodesDelete:x,onEdgesDelete:w,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:T}=r.getState(),{nodes:A,edges:N}=await o9e({nodesToRemove:h,edgesToRemove:p,nodes:g,edges:y,onBeforeDelete:T}),$=N.length>0,R=A.length>0;if($){const M=N.map(ZH);w?.(N),C(M)}if(R){const M=A.map(ZH);x?.(A),k(M)}return(R||$)&&_?.({nodes:A,edges:N}),{deletedNodes:A,deletedEdges:N}},getIntersectingNodes:(h,p=!0,g)=>{const y=KF(h),x=y?h:c(h),w=g!==void 0;return x?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!y&&(k.id===h.id||!C.internals.positionAbsolute))return!1;const _=Bd(w?k:C),T=m1(_,x);return p&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(h,p,g=!0)=>{const y=KF(h)?h:c(h);if(!y)return!1;const x=m1(y,p);return g&&x>0||x>=p.width*p.height||x>=y.width*y.height},updateNode:u,updateNodeData:(h,p,g={replace:!1})=>{u(h,y=>{const x=typeof p=="function"?p(y):p;return g.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},g)},updateEdge:d,updateEdgeData:(h,p,g={replace:!1})=>{d(h,y=>{const x=typeof p=="function"?p(y):p;return g.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},g)},getNodesBounds:h=>{const{nodeLookup:p,nodeOrigin:g}=r.getState();return qF(h,{nodeLookup:p,nodeOrigin:g})},getHandleConnections:({type:h,id:p,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${h}${p?`-${p}`:""}`)?.values()??[]),getNodeConnections:({type:h,handleId:p,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${h?p?`-${h}-${p}`:`-${h}`:""}`)?.values()??[]),fitView:async h=>{const p=r.getState().fitViewResolver??l9e();return r.setState({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:p}),n.nodeQueue.push(g=>[...g]),p.promise}}},[]);return E.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const rU=e=>e.selected,DAe=typeof window<"u"?window:void 0;function LAe({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=pr(),{deleteElements:o}=up(),a=x1(e,{actInsideInputWithModifier:!1}),i=x1(r,{target:DAe});E.useEffect(()=>{if(a){const{edges:s,nodes:l}=n.getState();o({nodes:l.filter(rU),edges:s.filter(rU)}),n.setState({nodesSelectionActive:!1})}},[a]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function IAe(e){const r=pr();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=x6(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",Qs.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const Rw={position:"absolute",width:"100%",height:"100%",top:0,left:0},zAe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function jAe({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=zd.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:h,zoomActivationKeyCode:p,preventScrolling:g=!0,children:y,noWheelClassName:x,noPanClassName:w,onViewportChange:k,isControlledViewport:C,paneClickDistance:_}){const T=pr(),A=E.useRef(null),{userSelectionActive:N,lib:$,connectionInProgress:R}=At(zAe,Nr),M=x1(p),O=E.useRef();IAe(A);const B=E.useCallback(I=>{k?.({x:I[0],y:I[1],zoom:I[2]}),C||T.setState({transform:I})},[k,C]);return E.useEffect(()=>{if(A.current){O.current=q9e({domNode:A.current,minZoom:d,maxZoom:h,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:V=>T.setState({paneDragging:V}),onPanZoomStart:(V,L)=>{const{onViewportChangeStart:U,onMoveStart:q}=T.getState();q?.(V,L),U?.(L)},onPanZoom:(V,L)=>{const{onViewportChange:U,onMove:q}=T.getState();q?.(V,L),U?.(L)},onPanZoomEnd:(V,L)=>{const{onViewportChangeEnd:U,onMoveEnd:q}=T.getState();q?.(V,L),U?.(L)}});const{x:I,y:Y,zoom:D}=O.current.getViewport();return T.setState({panZoom:O.current,transform:[I,Y,D],domNode:A.current.closest(".react-flow")}),()=>{O.current?.destroy()}}},[]),E.useEffect(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:M,preventScrolling:g,noPanClassName:w,userSelectionActive:N,noWheelClassName:x,lib:$,onTransformChange:B,connectionInProgress:R})},[e,r,n,o,a,i,s,l,M,g,w,N,x,$,B,R]),b.jsx("div",{className:"react-flow__renderer",ref:A,style:Rw,children:y})}const BAe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function FAe(){const{userSelectionActive:e,userSelectionRect:r}=At(BAe,Nr);return e&&r?b.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const O6=(e,r)=>n=>{n.target===r.current&&e?.(n)},HAe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function UAe({isSelecting:e,selectionKeyPressed:r,selectionMode:n=h1.Full,panOnDrag:o,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:h,onPaneMouseLeave:p,children:g}){const y=pr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=At(HAe,Nr),_=w&&(e||x),T=E.useRef(null),A=E.useRef(),N=E.useRef(new Set),$=E.useRef(new Set),R=E.useRef(!1),M=E.useRef(!1),O=U=>{if(R.current||C){R.current=!1;return}l?.(U),y.getState().resetSelectedElements(),y.setState({nodesSelectionActive:!1})},B=U=>{if(Array.isArray(o)&&o?.includes(2)){U.preventDefault();return}c?.(U)},I=u?U=>u(U):void 0,Y=U=>{const{resetSelectedElements:q,domNode:X}=y.getState();if(A.current=X?.getBoundingClientRect(),!w||!e||U.button!==0||U.target!==T.current||!A.current)return;U.target?.setPointerCapture?.(U.pointerId),M.current=!0,R.current=!1;const{x:F,y:J}=Xi(U.nativeEvent,A.current);q(),y.setState({userSelectionRect:{width:0,height:0,startX:F,startY:J,x:F,y:J}}),i?.(U)},D=U=>{const{userSelectionRect:q,transform:X,nodeLookup:F,edgeLookup:J,connectionLookup:Q,triggerNodeChanges:z,triggerEdgeChanges:W,defaultEdgeOptions:G}=y.getState();if(!A.current||!q)return;R.current=!0;const{x:Z,y:oe}=Xi(U.nativeEvent,A.current),{startX:ee,startY:re}=q,he={startX:ee,startY:re,x:Z<ee?Z:ee,y:oe<re?oe:re,width:Math.abs(Z-ee),height:Math.abs(oe-re)},Ce=N.current,ce=$.current;N.current=new Set(b6(F,he,X,n===h1.Partial,!0).map(be=>be.id)),$.current=new Set;const de=G?.selectable??!0;for(const be of N.current){const De=Q.get(be);if(De)for(const{edgeId:Ge}of De.values()){const Xe=J.get(Ge);Xe&&(Xe.selectable??de)&&$.current.add(Ge)}}if(!JF(Ce,N.current)){const be=cp(F,N.current,!0);z(be)}if(!JF(ce,$.current)){const be=cp(J,$.current);W(be)}y.setState({userSelectionRect:he,userSelectionActive:!0,nodesSelectionActive:!1})},V=U=>{if(U.button!==0||!M.current)return;U.target?.releasePointerCapture?.(U.pointerId);const{userSelectionRect:q}=y.getState();!x&&q&&U.target===T.current&&O?.(U),y.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:N.current.size>0}),s?.(U),(r||a)&&(R.current=!1),M.current=!1},L=o===!0||Array.isArray(o)&&o.includes(0);return b.jsxs("div",{className:an(["react-flow__pane",{draggable:L,dragging:k,selection:e}]),onClick:_?void 0:O6(O,T),onContextMenu:O6(B,T),onWheel:O6(I,T),onPointerEnter:_?void 0:d,onPointerDown:_?Y:h,onPointerMove:_?D:h,onPointerUp:_?V:void 0,onPointerLeave:p,ref:T,style:Rw,children:[g,b.jsx(FAe,{})]})}function D6({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:l,onError:c}=r.getState(),u=l.get(e);if(!u){c?.("012",Qs.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function nU({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:s}){const l=pr(),[c,u]=E.useState(!1),d=E.useRef();return E.useEffect(()=>{d.current=R9e({getStoreItems:()=>l.getState(),onNodeMouseDown:h=>{D6({id:h,store:l,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),E.useEffect(()=>{if(r)d.current?.destroy();else if(e.current)return d.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:s}),()=>{d.current?.destroy()}},[n,o,r,i,e,a]),c}const VAe=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function oU(){const e=pr();return E.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:s,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,h=VAe(i),p=o?a[0]:5,g=o?a[1]:5,y=r.direction.x*p*r.factor,x=r.direction.y*g*r.factor;for(const[,w]of c){if(!h(w))continue;let k={x:w.internals.positionAbsolute.x+y,y:w.internals.positionAbsolute.y+x};o&&(k=g1(k,a));const{position:C,positionAbsolute:_}=YF({nodeId:w.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:u,onError:s});w.position=C,w.internals.positionAbsolute=_,d.set(w.id,w)}l(d)},[])}const L6=E.createContext(null),qAe=L6.Provider;L6.Consumer;const I6=()=>E.useContext(L6),YAe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),WAe=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:s}=o,{fromHandle:l,toHandle:c,isValid:u}=s,d=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:l?.nodeId===e&&l?.id===r&&l?.type===n,connectingTo:d,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===tp.Strict?l?.type!==n:e!==l?.nodeId||r!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!a,valid:d&&u}};function XAe({type:e="source",position:r=tt.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:h,...p},g){const y=s||null,x=e==="target",w=pr(),k=I6(),{connectOnClick:C,noPanClassName:_,rfId:T}=At(YAe,Nr),{connectingFrom:A,connectingTo:N,clickConnecting:$,isPossibleEndHandle:R,connectionInProcess:M,clickConnectionInProcess:O,valid:B}=At(WAe(k,y,e),Nr);k||w.getState().onError?.("010",Qs.error010());const I=V=>{const{defaultEdgeOptions:L,onConnect:U,hasDefaultEdges:q}=w.getState(),X={...L,...V};if(q){const{edges:F,setEdges:J}=w.getState();J(m9e(X,F))}U?.(X),l?.(X)},Y=V=>{if(!k)return;const L=rH(V.nativeEvent);if(a&&(L&&V.button===0||!L)){const U=w.getState();A6.onPointerDown(V.nativeEvent,{handleDomNode:V.currentTarget,autoPanOnConnect:U.autoPanOnConnect,connectionMode:U.connectionMode,connectionRadius:U.connectionRadius,domNode:U.domNode,nodeLookup:U.nodeLookup,lib:U.lib,isTarget:x,handleId:y,nodeId:k,flowId:U.rfId,panBy:U.panBy,cancelConnection:U.cancelConnection,onConnectStart:U.onConnectStart,onConnectEnd:U.onConnectEnd,updateConnection:U.updateConnection,onConnect:I,isValidConnection:n||U.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:U.autoPanSpeed,dragThreshold:U.connectionDragThreshold})}L?d?.(V):h?.(V)},D=V=>{const{onClickConnectStart:L,onClickConnectEnd:U,connectionClickStartHandle:q,connectionMode:X,isValidConnection:F,lib:J,rfId:Q,nodeLookup:z,connection:W}=w.getState();if(!k||!q&&!a)return;if(!q){L?.(V.nativeEvent,{nodeId:k,handleId:y,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:y}});return}const G=eH(V.target),Z=n||F,{connection:oe,isValid:ee}=A6.isValid(V.nativeEvent,{handle:{nodeId:k,id:y,type:e},connectionMode:X,fromNodeId:q.nodeId,fromHandleId:q.id||null,fromType:q.type,isValidConnection:Z,flowId:Q,doc:G,lib:J,nodeLookup:z});ee&&oe&&I(oe);const re=structuredClone(W);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,U?.(V,re),w.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":y,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${y}-${e}`,className:an(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,u,{source:!x,target:x,connectable:o,connectablestart:a,connectableend:i,clickconnecting:$,connectingfrom:A,connectingto:N,valid:B,connectionindicator:o&&(!M||R)&&(M||O?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?D:void 0,ref:g,...p,children:c})}const uo=E.memo(JH(XAe));function GAe({data:e,isConnectable:r,sourcePosition:n=tt.Bottom}){return b.jsxs(b.Fragment,{children:[e?.label,b.jsx(uo,{type:"source",position:n,isConnectable:r})]})}function KAe({data:e,isConnectable:r,targetPosition:n=tt.Top,sourcePosition:o=tt.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(uo,{type:"target",position:n,isConnectable:r}),e?.label,b.jsx(uo,{type:"source",position:o,isConnectable:r})]})}function ZAe(){return null}function QAe({data:e,isConnectable:r,targetPosition:n=tt.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(uo,{type:"target",position:n,isConnectable:r}),e?.label]})}const $w={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},aU={input:GAe,default:KAe,output:QAe,group:ZAe};function JAe(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const e7e=e=>{const{width:r,height:n,x:o,y:a}=rp(e.nodeLookup,{filter:i=>!!i.selected});return{width:Wi(r)?r:null,height:Wi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function t7e({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=pr(),{width:a,height:i,transformString:s,userSelectionActive:l}=At(e7e,Nr),c=oU(),u=E.useRef(null);if(E.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),nU({nodeRef:u}),l||!a||!i)return null;const d=e?p=>{const g=o.getState().nodes.filter(y=>y.selected);e(p,g)}:void 0,h=p=>{Object.prototype.hasOwnProperty.call($w,p.key)&&(p.preventDefault(),c({direction:$w[p.key],factor:p.shiftKey?4:1}))};return b.jsx("div",{className:an(["react-flow__nodesselection","react-flow__container",r]),style:{transform:s},children:b.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:a,height:i}})})}const iU=typeof window<"u"?window:void 0,r7e=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function sU({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:h,onSelectionStart:p,onSelectionEnd:g,multiSelectionKeyCode:y,panActivationKeyCode:x,zoomActivationKeyCode:w,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:A,panOnScrollMode:N,zoomOnDoubleClick:$,panOnDrag:R,defaultViewport:M,translateExtent:O,minZoom:B,maxZoom:I,preventScrolling:Y,onSelectionContextMenu:D,noWheelClassName:V,noPanClassName:L,disableKeyboardA11y:U,onViewportChange:q,isControlledViewport:X}){const{nodesSelectionActive:F,userSelectionActive:J}=At(r7e),Q=x1(u,{target:iU}),z=x1(x,{target:iU}),W=z||R,G=z||T,Z=d&&W!==!0,oe=Q||J||Z;return LAe({deleteKeyCode:c,multiSelectionKeyCode:y}),b.jsx(jAe,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:G,panOnScrollSpeed:A,panOnScrollMode:N,zoomOnDoubleClick:$,panOnDrag:!Q&&W,defaultViewport:M,translateExtent:O,minZoom:B,maxZoom:I,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:V,noPanClassName:L,onViewportChange:q,isControlledViewport:X,paneClickDistance:l,children:b.jsxs(UAe,{onSelectionStart:p,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:W,isSelecting:!!oe,selectionMode:h,selectionKeyPressed:Q,selectionOnDrag:Z,children:[e,F&&b.jsx(t7e,{onSelectionContextMenu:D,noPanClassName:L,disableKeyboardA11y:U})]})})}sU.displayName="FlowRenderer";const n7e=E.memo(sU),o7e=e=>r=>e?b6(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function a7e(e){return At(E.useCallback(o7e(e),[e]),Nr)}const i7e=e=>e.updateNodeInternals;function s7e(){const e=At(i7e),[r]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return E.useEffect(()=>()=>{r?.disconnect()},[r]),r}function l7e({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=pr(),i=E.useRef(null),s=E.useRef(null),l=E.useRef(e.sourcePosition),c=E.useRef(e.targetPosition),u=E.useRef(r),d=n&&!!e.internals.handleBounds;return E.useEffect(()=>{i.current&&!e.hidden&&(!d||s.current!==i.current)&&(s.current&&o?.unobserve(s.current),o?.observe(i.current),s.current=i.current)},[d,e.hidden]),E.useEffect(()=>()=>{s.current&&(o?.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(i.current){const h=u.current!==r,p=l.current!==e.sourcePosition,g=c.current!==e.targetPosition;(h||p||g)&&(u.current=r,l.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function c7e({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:s,nodesDraggable:l,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:h,noDragClassName:p,noPanClassName:g,disableKeyboardA11y:y,rfId:x,nodeTypes:w,nodeClickDistance:k,onError:C}){const{node:_,internals:T,isParent:A}=At(ee=>{const re=ee.nodeLookup.get(e),he=ee.parentLookup.has(e);return{node:re,internals:re.internals,isParent:he}},Nr);let N=_.type||"default",$=w?.[N]||aU[N];$===void 0&&(C?.("003",Qs.error003(N)),N="default",$=w?.default||aU.default);const R=!!(_.draggable||l&&typeof _.draggable>"u"),M=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||u&&typeof _.connectable>"u"),B=!!(_.focusable||d&&typeof _.focusable>"u"),I=pr(),Y=ZF(_),D=l7e({node:_,nodeType:N,hasDimensions:Y,resizeObserver:h}),V=nU({nodeRef:D,disabled:_.hidden||!R,noDragClassName:p,handleSelector:_.dragHandle,nodeId:e,isSelectable:M,nodeClickDistance:k}),L=oU();if(_.hidden)return null;const U=Wn(_),q=JAe(_),X=M||R||r||n||o||a,F=n?ee=>n(ee,{...T.userNode}):void 0,J=o?ee=>o(ee,{...T.userNode}):void 0,Q=a?ee=>a(ee,{...T.userNode}):void 0,z=i?ee=>i(ee,{...T.userNode}):void 0,W=s?ee=>s(ee,{...T.userNode}):void 0,G=ee=>{const{selectNodesOnDrag:re,nodeDragThreshold:he}=I.getState();M&&(!re||!R||he>0)&&D6({id:e,store:I,nodeRef:D}),r&&r(ee,{...T.userNode})},Z=ee=>{if(!(tH(ee.nativeEvent)||y)){if(jF.includes(ee.key)&&M){const re=ee.key==="Escape";D6({id:e,store:I,unselect:re,nodeRef:D})}else if(R&&_.selected&&Object.prototype.hasOwnProperty.call($w,ee.key)){ee.preventDefault();const{ariaLabelConfig:re}=I.getState();I.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:ee.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),L({direction:$w[ee.key],factor:ee.shiftKey?4:1})}}},oe=()=>{if(y||!D.current?.matches(":focus-visible"))return;const{transform:ee,width:re,height:he,autoPanOnNodeFocus:Ce,setCenter:ce}=I.getState();Ce&&(b6(new Map([[e,_]]),{x:0,y:0,width:re,height:he},ee,!0).length>0||ce(_.position.x+U.width/2,_.position.y+U.height/2,{zoom:ee[2]}))};return b.jsx("div",{className:an(["react-flow__node",`react-flow__node-${N}`,{[g]:R},_.className,{selected:_.selected,selectable:M,parent:A,draggable:R,dragging:V}]),ref:D,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:Y?"visible":"hidden",..._.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:F,onMouseMove:J,onMouseLeave:Q,onContextMenu:z,onClick:G,onDoubleClick:W,onKeyDown:B?Z:void 0,tabIndex:B?0:void 0,onFocus:B?oe:void 0,role:_.ariaRole??(B?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${BH}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:b.jsx(qAe,{value:e,children:b.jsx($,{id:e,data:_.data,type:N,positionAbsoluteX:T.positionAbsolute.x,positionAbsoluteY:T.positionAbsolute.y,selected:_.selected??!1,selectable:M,draggable:R,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:V,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...U})})})}const u7e=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function lU(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=At(u7e,Nr),s=a7e(e.onlyRenderVisibleElements),l=s7e();return b.jsx("div",{className:"react-flow__nodes",style:Rw,children:s.map(c=>b.jsx(c7e,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:l,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}lU.displayName="NodeRenderer";const d7e=E.memo(lU);function h7e(e){return At(E.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&h9e({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Nr)}const f7e=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return b.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},p7e=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return b.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},cU={[gw.Arrow]:f7e,[gw.ArrowClosed]:p7e};function m7e(e){const r=pr();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(cU,e)?cU[e]:(r.getState().onError?.("009",Qs.error009(e)),null),[e])}const g7e=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=m7e(r);return c?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:l,refX:"0",refY:"0",children:b.jsx(c,{color:n,strokeWidth:s})}):null},uU=({defaultColor:e,rfId:r})=>{const n=At(i=>i.edges),o=At(i=>i.defaultEdgeOptions),a=E.useMemo(()=>v9e(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?b.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:b.jsx("defs",{children:a.map(i=>b.jsx(g7e,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};uU.displayName="MarkerDefinitions";var y7e=E.memo(uU);function dU({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d}){const[h,p]=E.useState({x:1,y:0,width:0,height:0}),g=an(["react-flow__edge-textwrapper",u]),y=E.useRef(null);return E.useEffect(()=>{if(y.current){const x=y.current.getBBox();p({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?b.jsxs("g",{transform:`translate(${e-h.width/2} ${r-h.height/2})`,className:g,visibility:h.width?"visible":"hidden",...d,children:[a&&b.jsx("rect",{width:h.width+2*s[0],x:-s[0],y:-s[1],height:h.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:l,ry:l}),b.jsx("text",{className:"react-flow__edge-text",y:h.height/2,dy:"0.3em",ref:y,style:o,children:n}),c]}):null}dU.displayName="EdgeText";const b7e=E.memo(dU);function Pw({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,interactionWidth:u=20,...d}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...d,d:e,fill:"none",className:an(["react-flow__edge-path",d.className])}),u?b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,o&&Wi(r)&&Wi(n)?b.jsx(b7e,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null]})}function hU({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===tt.Left||e===tt.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function fU({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top}){const[s,l]=hU({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=hU({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,h,p,g]=oH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${r} C${s},${l} ${c},${u} ${o},${a}`,d,h,p,g]}function pU(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s,targetPosition:l,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:k})=>{const[C,_,T]=fU({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l}),A=e.isInternal?void 0:r;return b.jsx(Pw,{id:A,path:C,labelX:_,labelY:T,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:k})})}const v7e=pU({isInternal:!1}),mU=pU({isInternal:!0});v7e.displayName="SimpleBezierEdge",mU.displayName="SimpleBezierEdgeInternal";function gU(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,sourcePosition:g=tt.Bottom,targetPosition:y=tt.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=_w({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:y,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),N=e.isInternal?void 0:r;return b.jsx(Pw,{id:N,path:_,labelX:T,labelY:A,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:x,markerStart:w,interactionWidth:C})})}const yU=gU({isInternal:!1}),bU=gU({isInternal:!0});yU.displayName="SmoothStepEdge",bU.displayName="SmoothStepEdgeInternal";function vU(e){return E.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return b.jsx(yU,{...n,id:o,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const x7e=vU({isInternal:!1}),xU=vU({isInternal:!0});x7e.displayName="StepEdge",xU.displayName="StepEdgeInternal";function wU(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:g,markerStart:y,interactionWidth:x})=>{const[w,k,C]=sH({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return b.jsx(Pw,{id:_,path:w,labelX:k,labelY:C,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:g,markerStart:y,interactionWidth:x})})}const w7e=wU({isInternal:!1}),kU=wU({isInternal:!0});w7e.displayName="StraightEdge",kU.displayName="StraightEdgeInternal";function _U(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s=tt.Bottom,targetPosition:l=tt.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=kw({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l,curvature:k?.curvature}),N=e.isInternal?void 0:r;return b.jsx(Pw,{id:N,path:_,labelX:T,labelY:A,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:C})})}const k7e=_U({isInternal:!1}),EU=_U({isInternal:!0});k7e.displayName="BezierEdge",EU.displayName="BezierEdgeInternal";const SU={default:EU,straight:kU,step:xU,smoothstep:bU,simplebezier:mU},CU={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},_7e=(e,r,n)=>n===tt.Left?e-r:n===tt.Right?e+r:e,E7e=(e,r,n)=>n===tt.Top?e-r:n===tt.Bottom?e+r:e,TU="react-flow__edgeupdater";function AU({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:s,type:l}){return b.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:s,className:an([TU,`${TU}-${l}`]),cx:_7e(r,o,e),cy:E7e(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function S7e({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:s,sourcePosition:l,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,setReconnecting:p,setUpdateHover:g}){const y=pr(),x=(T,A)=>{if(T.button!==0)return;const{autoPanOnConnect:N,domNode:$,isValidConnection:R,connectionMode:M,connectionRadius:O,lib:B,onConnectStart:I,onConnectEnd:Y,cancelConnection:D,nodeLookup:V,rfId:L,panBy:U,updateConnection:q}=y.getState(),X=A.type==="target",F=(z,W)=>{p(!1),h?.(z,n,A.type,W)},J=z=>u?.(n,z),Q=(z,W)=>{p(!0),d?.(T,n,A.type),I?.(z,W)};A6.onPointerDown(T.nativeEvent,{autoPanOnConnect:N,connectionMode:M,connectionRadius:O,domNode:$,handleId:A.id,nodeId:A.nodeId,nodeLookup:V,isTarget:X,edgeUpdaterType:A.type,lib:B,flowId:L,cancelConnection:D,panBy:U,isValidConnection:R,onConnect:J,onConnectStart:Q,onConnectEnd:Y,onReconnectEnd:F,updateConnection:q,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:T.currentTarget})},w=T=>x(T,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=T=>x(T,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(AU,{position:l,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&b.jsx(AU,{position:c,centerX:i,centerY:s,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function C7e({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:h,onReconnectStart:p,onReconnectEnd:g,rfId:y,edgeTypes:x,noPanClassName:w,onError:k,disableKeyboardA11y:C}){let _=At(ce=>ce.edgeLookup.get(e));const T=At(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let A=_.type||"default",N=x?.[A]||SU[A];N===void 0&&(k?.("011",Qs.error011(A)),A="default",N=x?.default||SU.default);const $=!!(_.focusable||r&&typeof _.focusable>"u"),R=typeof h<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),M=!!(_.selectable||o&&typeof _.selectable>"u"),O=E.useRef(null),[B,I]=E.useState(!1),[Y,D]=E.useState(!1),V=pr(),{zIndex:L,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q}=At(E.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),be=ce.nodeLookup.get(_.target);if(!de||!be)return{zIndex:_.zIndex,...CU};const De=dH({id:e,sourceNode:de,targetNode:be,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:d9e({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:be,elevateOnSelect:ce.elevateEdgesOnSelect}),...De||CU}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Nr),z=E.useMemo(()=>_.markerStart?`url('#${w6(_.markerStart,y)}')`:void 0,[_.markerStart,y]),W=E.useMemo(()=>_.markerEnd?`url('#${w6(_.markerEnd,y)}')`:void 0,[_.markerEnd,y]);if(_.hidden||U===null||q===null||X===null||F===null)return null;const G=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:be,multiSelectionActive:De}=V.getState();M&&(V.setState({nodesSelectionActive:!1}),_.selected&&De?(be({nodes:[],edges:[_]}),O.current?.blur()):de([e])),a&&a(ce,_)},Z=i?ce=>{i(ce,{..._})}:void 0,oe=s?ce=>{s(ce,{..._})}:void 0,ee=l?ce=>{l(ce,{..._})}:void 0,re=c?ce=>{c(ce,{..._})}:void 0,he=u?ce=>{u(ce,{..._})}:void 0,Ce=ce=>{if(!C&&jF.includes(ce.key)&&M){const{unselectNodesAndEdges:de,addSelectedEdges:be}=V.getState();ce.key==="Escape"?(O.current?.blur(),de({edges:[_]})):be([e])}};return b.jsx("svg",{style:{zIndex:L},children:b.jsxs("g",{className:an(["react-flow__edge",`react-flow__edge-${A}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!M&&!a,updating:B,selectable:M}]),onClick:G,onDoubleClick:Z,onContextMenu:oe,onMouseEnter:ee,onMouseMove:re,onMouseLeave:he,onKeyDown:$?Ce:void 0,tabIndex:$?0:void 0,role:_.ariaRole??($?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":$?`${FH}-${y}`:void 0,ref:O,..._.domAttributes,children:[!Y&&b.jsx(N,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:M,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:z,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),R&&b.jsx(S7e,{edge:_,isReconnectable:R,reconnectRadius:d,onReconnect:h,onReconnectStart:p,onReconnectEnd:g,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q,setUpdateHover:I,setReconnecting:D})]})})}const T7e=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function NU({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:h,onEdgeDoubleClick:p,onReconnectStart:g,onReconnectEnd:y,disableKeyboardA11y:x}){const{edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,onError:_}=At(T7e,Nr),T=h7e(r);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(y7e,{defaultColor:e,rfId:n}),T.map(A=>b.jsx(C7e,{id:A,edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:h,onDoubleClick:p,onReconnectStart:g,onReconnectEnd:y,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:x},A))]})}NU.displayName="EdgeRenderer";const A7e=E.memo(NU),N7e=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function R7e({children:e}){const r=At(N7e);return b.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function $7e(e){const r=up(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const P7e=e=>e.panZoom?.syncViewport;function M7e(e){const r=At(P7e),n=pr();return E.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function O7e(e){return e.connection.inProgress?{...e.connection,to:y1(e.connection.to,e.transform)}:{...e.connection}}function D7e(e){return O7e}function L7e(e){const r=D7e();return At(r,Nr)}const I7e=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function z7e({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:s,isValid:l,inProgress:c}=At(I7e,Nr);return i&&a&&c?b.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:an(["react-flow__connection",UF(l)]),children:b.jsx(RU,{style:r,type:n,CustomComponent:o,isValid:l})})}):null}const RU=({style:e,type:r=eu.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:s,fromHandle:l,fromPosition:c,to:u,toNode:d,toHandle:h,toPosition:p}=L7e();if(!a)return;if(n)return b.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:p,connectionStatus:UF(o),toNode:d,toHandle:h});let g="";const y={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:p};switch(r){case eu.Bezier:[g]=kw(y);break;case eu.SimpleBezier:[g]=fU(y);break;case eu.Step:[g]=_w({...y,borderRadius:0});break;case eu.SmoothStep:[g]=_w(y);break;default:[g]=sH(y)}return b.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};RU.displayName="ConnectionLine";const j7e={};function $U(e=j7e){E.useRef(e),pr(),E.useEffect(()=>{},[e])}function B7e(){pr(),E.useRef(!1),E.useEffect(()=>{},[])}function PU({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:h,onSelectionStart:p,onSelectionEnd:g,connectionLineType:y,connectionLineStyle:x,connectionLineComponent:w,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,multiSelectionKeyCode:A,panActivationKeyCode:N,zoomActivationKeyCode:$,deleteKeyCode:R,onlyRenderVisibleElements:M,elementsSelectable:O,defaultViewport:B,translateExtent:I,minZoom:Y,maxZoom:D,preventScrolling:V,defaultMarkerColor:L,zoomOnScroll:U,zoomOnPinch:q,panOnScroll:X,panOnScrollSpeed:F,panOnScrollMode:J,zoomOnDoubleClick:Q,panOnDrag:z,onPaneClick:W,onPaneMouseEnter:G,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneScroll:ee,onPaneContextMenu:re,paneClickDistance:he,nodeClickDistance:Ce,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:De,reconnectRadius:Ge,onReconnect:Xe,onReconnectStart:_t,onReconnectEnd:Qe,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:lt,nodeExtent:Et,rfId:Pn,viewport:_e,onViewportChange:we}){return $U(e),$U(r),B7e(),$7e(n),M7e(_e),b.jsx(n7e,{onPaneClick:W,onPaneMouseEnter:G,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneContextMenu:re,onPaneScroll:ee,paneClickDistance:he,deleteKeyCode:R,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:p,onSelectionEnd:g,multiSelectionKeyCode:A,panActivationKeyCode:N,zoomActivationKeyCode:$,elementsSelectable:O,zoomOnScroll:U,zoomOnPinch:q,zoomOnDoubleClick:Q,panOnScroll:X,panOnScrollSpeed:F,panOnScrollMode:J,panOnDrag:z,defaultViewport:B,translateExtent:I,minZoom:Y,maxZoom:D,onSelectionContextMenu:h,preventScrolling:V,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:lt,onViewportChange:we,isControlledViewport:!!_e,children:b.jsxs(R7e,{children:[b.jsx(A7e,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:s,onReconnect:Xe,onReconnectStart:_t,onReconnectEnd:Qe,onlyRenderVisibleElements:M,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:De,reconnectRadius:Ge,defaultMarkerColor:L,noPanClassName:We,disableKeyboardA11y:lt,rfId:Pn}),b.jsx(z7e,{style:x,type:y,component:w,containerStyle:k}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(d7e,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Ce,onlyRenderVisibleElements:M,noPanClassName:We,noDragClassName:St,disableKeyboardA11y:lt,nodeExtent:Et,rfId:Pn}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}PU.displayName="GraphView";const F7e=E.memo(PU),MU=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c=.5,maxZoom:u=2,nodeOrigin:d,nodeExtent:h}={})=>{const p=new Map,g=new Map,y=new Map,x=new Map,w=o??r??[],k=n??e??[],C=d??[0,0],_=h??d1;gH(y,x,w);const T=E6(k,p,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let A=[0,0,1];if(s&&a&&i){const N=rp(p,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:$,y:R,zoom:M}=tu(N,a,i,c,u,l?.padding??.1);A=[$,R,M]}return{rfId:"1",width:a??0,height:i??0,transform:A,nodes:k,nodesInitialized:T,nodeLookup:p,parentLookup:g,edges:w,edgeLookup:x,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:u,translateExtent:d1,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:tp.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:l,fitViewResolver:null,connection:{...FF},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:a9e,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:BF}},H7e=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:h})=>lAe((p,g)=>{async function y(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:A,maxZoom:N}=g();w&&(await n9e({nodes:x,width:_,height:T,panZoom:w,minZoom:A,maxZoom:N},k),C?.resolve(!0),p({fitViewResolver:null}))}return{...MU({nodes:e,edges:r,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:h,defaultNodes:n,defaultEdges:o}),setNodes:x=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:C,elevateNodesOnSelect:_,fitViewQueued:T}=g(),A=E6(x,w,k,{nodeOrigin:C,nodeExtent:h,elevateNodesOnSelect:_,checkEquality:!0});T&&A?(y(),p({nodes:x,nodesInitialized:A,fitViewQueued:!1,fitViewOptions:void 0})):p({nodes:x,nodesInitialized:A})},setEdges:x=>{const{connectionLookup:w,edgeLookup:k}=g();gH(w,k,x),p({edges:x})},setDefaultNodesAndEdges:(x,w)=>{if(x){const{setNodes:k}=g();k(x),p({hasDefaultNodes:!0})}if(w){const{setEdges:k}=g();k(w),p({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:C,domNode:_,nodeOrigin:T,nodeExtent:A,debug:N,fitViewQueued:$}=g(),{changes:R,updatedInternals:M}=C9e(x,k,C,_,T,A);M&&(k9e(k,C,{nodeOrigin:T,nodeExtent:A}),$?(y(),p({fitViewQueued:!1,fitViewOptions:void 0})):p({}),R?.length>0&&(N&&console.log("React Flow: trigger node changes",R),w?.(R)))},updateNodePositions:(x,w=!1)=>{const k=[],C=[],{nodeLookup:_,triggerNodeChanges:T}=g();for(const[A,N]of x){const $=_.get(A),R=!!($?.expandParent&&$?.parentId&&N?.position),M={id:A,type:"position",position:R?{x:Math.max(0,N.position.x),y:Math.max(0,N.position.y)}:N.position,dragging:w};R&&$.parentId&&k.push({id:A,parentId:$.parentId,rect:{...N.internals.positionAbsolute,width:N.measured.width??0,height:N.measured.height??0}}),C.push(M)}if(k.length>0){const{parentLookup:A,nodeOrigin:N}=g(),$=C6(k,_,A,N);C.push(...$)}T(C)},triggerNodeChanges:x=>{const{onNodesChange:w,setNodes:k,nodes:C,hasDefaultNodes:_,debug:T}=g();if(x?.length){if(_){const A=Aw(x,C);k(A)}T&&console.log("React Flow: trigger node changes",x),w?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:w,setEdges:k,edges:C,hasDefaultEdges:_,debug:T}=g();if(x?.length){if(_){const A=Nw(x,C);k(A)}T&&console.log("React Flow: trigger edge changes",x),w?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(N=>Fd(N,!0));_(A);return}_(cp(C,new Set([...x]),!0)),T(cp(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(N=>Fd(N,!0));T(A);return}T(cp(k,new Set([...x]))),_(cp(C,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:w}={})=>{const{edges:k,nodes:C,nodeLookup:_,triggerNodeChanges:T,triggerEdgeChanges:A}=g(),N=x||C,$=w||k,R=N.map(O=>{const B=_.get(O.id);return B&&(B.selected=!1),Fd(O.id,!1)}),M=$.map(O=>Fd(O.id,!1));T(R),A(M)},setMinZoom:x=>{const{panZoom:w,maxZoom:k}=g();w?.setScaleExtent([x,k]),p({minZoom:x})},setMaxZoom:x=>{const{panZoom:w,minZoom:k}=g();w?.setScaleExtent([k,x]),p({maxZoom:x})},setTranslateExtent:x=>{g().panZoom?.setTranslateExtent(x),p({translateExtent:x})},setPaneClickDistance:x=>{g().panZoom?.setClickDistance(x)},resetSelectedElements:()=>{const{edges:x,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:C,elementsSelectable:_}=g();if(!_)return;const T=w.reduce((N,$)=>$.selected?[...N,Fd($.id,!1)]:N,[]),A=x.reduce((N,$)=>$.selected?[...N,Fd($.id,!1)]:N,[]);k(T),C(A)},setNodeExtent:x=>{const{nodes:w,nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:T,nodeExtent:A}=g();x[0][0]===A[0][0]&&x[0][1]===A[0][1]&&x[1][0]===A[1][0]&&x[1][1]===A[1][1]||(E6(w,k,C,{nodeOrigin:_,nodeExtent:x,elevateNodesOnSelect:T,checkEquality:!1}),p({nodeExtent:x}))},panBy:x=>{const{transform:w,width:k,height:C,panZoom:_,translateExtent:T}=g();return T9e({delta:x,panZoom:_,transform:w,translateExtent:T,width:k,height:C})},setCenter:async(x,w,k)=>{const{width:C,height:_,maxZoom:T,panZoom:A}=g();if(!A)return Promise.resolve(!1);const N=typeof k?.zoom<"u"?k.zoom:T;return await A.setViewport({x:C/2-x*N,y:_/2-w*N,zoom:N},{duration:k?.duration,ease:k?.ease,interpolate:k?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{p({connection:{...FF}})},updateConnection:x=>{p({connection:x})},reset:()=>p({...MU()})}},Object.is);function Mw({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:s,initialMaxZoom:l,initialFitViewOptions:c,fitView:u,nodeOrigin:d,nodeExtent:h,children:p}){const[g]=E.useState(()=>H7e({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:u,minZoom:s,maxZoom:l,fitViewOptions:c,nodeOrigin:d,nodeExtent:h}));return b.jsx(cAe,{value:g,children:b.jsx(PAe,{children:p})})}function U7e({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:s,fitView:l,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:h,nodeExtent:p}){return E.useContext(Cw)?b.jsx(b.Fragment,{children:e}):b.jsx(Mw,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:s,fitView:l,initialFitViewOptions:c,initialMinZoom:u,initialMaxZoom:d,nodeOrigin:h,nodeExtent:p,children:e})}const V7e={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function q7e({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:s,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:h,onMoveEnd:p,onConnect:g,onConnectStart:y,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:N,onNodeDragStart:$,onNodeDrag:R,onNodeDragStop:M,onNodesDelete:O,onEdgesDelete:B,onDelete:I,onSelectionChange:Y,onSelectionDragStart:D,onSelectionDrag:V,onSelectionDragStop:L,onSelectionContextMenu:U,onSelectionStart:q,onSelectionEnd:X,onBeforeDelete:F,connectionMode:J,connectionLineType:Q=eu.Bezier,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:G,deleteKeyCode:Z="Backspace",selectionKeyCode:oe="Shift",selectionOnDrag:ee=!1,selectionMode:re=h1.Full,panActivationKeyCode:he="Space",multiSelectionKeyCode:Ce=ap()?"Meta":"Control",zoomActivationKeyCode:ce=ap()?"Meta":"Control",snapToGrid:de,snapGrid:be,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:Ge,nodesDraggable:Xe,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,nodeOrigin:Ke=HH,edgesFocusable:We,edgesReconnectable:lt,elementsSelectable:Et=!0,defaultViewport:Pn=kAe,minZoom:_e=.5,maxZoom:we=2,translateExtent:rt=d1,preventScrolling:at=!0,nodeExtent:$t,defaultMarkerColor:Wr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Tr=!0,panOnScroll:vo=!1,panOnScrollSpeed:Mn=.5,panOnScrollMode:Fr=zd.Free,zoomOnDoubleClick:no=!0,panOnDrag:ur=!0,onPaneClick:fa,onPaneMouseEnter:_l,onPaneMouseMove:Qh,onPaneMouseLeave:Cc,onPaneScroll:Ub,onPaneContextMenu:Sg,paneClickDistance:Hu=0,nodeClickDistance:Jh=0,children:ef,onReconnect:Cg,onReconnectStart:Vb,onReconnectEnd:Ti,onEdgeContextMenu:On,onEdgeDoubleClick:oo,onEdgeMouseEnter:El,onEdgeMouseMove:tf,onEdgeMouseLeave:qb,reconnectRadius:Yb=10,onNodesChange:Tg,onEdgesChange:Tc,noDragClassName:rf="nodrag",noWheelClassName:Sl="nowheel",noPanClassName:Ai="nopan",fitView:zs,fitViewOptions:Ni,connectOnClick:tn,attributionPosition:Ag,proOptions:Ng,defaultEdgeOptions:js,elevateNodesOnSelect:Cl,elevateEdgesOnSelect:Wb,disableKeyboardA11y:Uu=!1,autoPanOnConnect:Rg,autoPanOnNodeDrag:Xb,autoPanSpeed:Vu,connectionRadius:qu,isValidConnection:Fa,onError:nf,style:$g,id:Ri,nodeDragThreshold:of,connectionDragThreshold:af,viewport:Gb,onViewportChange:Pg,width:Io,height:Mg,colorMode:Kb="light",debug:Yu,onScroll:Wu,ariaLabelConfig:Xu,...Zb},zo){const Bs=Ri||"1",Og=CAe(Kb),sf=E.useCallback($i=>{$i.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Wu?.($i)},[Wu]);return b.jsx("div",{"data-testid":"rf__wrapper",...Zb,onScroll:sf,style:{...$g,...V7e},ref:zo,className:an(["react-flow",a,Og]),id:Ri,role:"application",children:b.jsxs(U7e,{nodes:e,edges:r,width:Io,height:Mg,fitView:zs,fitViewOptions:Ni,minZoom:_e,maxZoom:we,nodeOrigin:Ke,nodeExtent:$t,children:[b.jsx(F7e,{onInit:u,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:N,nodeTypes:i,edgeTypes:s,connectionLineType:Q,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:G,selectionKeyCode:oe,selectionOnDrag:ee,selectionMode:re,deleteKeyCode:Z,multiSelectionKeyCode:Ce,panActivationKeyCode:he,zoomActivationKeyCode:ce,onlyRenderVisibleElements:De,defaultViewport:Pn,translateExtent:rt,minZoom:_e,maxZoom:we,preventScrolling:at,zoomOnScroll:Pt,zoomOnPinch:Tr,zoomOnDoubleClick:no,panOnScroll:vo,panOnScrollSpeed:Mn,panOnScrollMode:Fr,panOnDrag:ur,onPaneClick:fa,onPaneMouseEnter:_l,onPaneMouseMove:Qh,onPaneMouseLeave:Cc,onPaneScroll:Ub,onPaneContextMenu:Sg,paneClickDistance:Hu,nodeClickDistance:Jh,onSelectionContextMenu:U,onSelectionStart:q,onSelectionEnd:X,onReconnect:Cg,onReconnectStart:Vb,onReconnectEnd:Ti,onEdgeContextMenu:On,onEdgeDoubleClick:oo,onEdgeMouseEnter:El,onEdgeMouseMove:tf,onEdgeMouseLeave:qb,reconnectRadius:Yb,defaultMarkerColor:Wr,noDragClassName:rf,noWheelClassName:Sl,noPanClassName:Ai,rfId:Bs,disableKeyboardA11y:Uu,nodeExtent:$t,viewport:Gb,onViewportChange:Pg}),b.jsx(SAe,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:y,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:Xe,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,edgesFocusable:We,edgesReconnectable:lt,elementsSelectable:Et,elevateNodesOnSelect:Cl,elevateEdgesOnSelect:Wb,minZoom:_e,maxZoom:we,nodeExtent:$t,onNodesChange:Tg,onEdgesChange:Tc,snapToGrid:de,snapGrid:be,connectionMode:J,translateExtent:rt,connectOnClick:tn,defaultEdgeOptions:js,fitView:zs,fitViewOptions:Ni,onNodesDelete:O,onEdgesDelete:B,onDelete:I,onNodeDragStart:$,onNodeDrag:R,onNodeDragStop:M,onSelectionDrag:V,onSelectionDragStart:D,onSelectionDragStop:L,onMove:d,onMoveStart:h,onMoveEnd:p,noPanClassName:Ai,nodeOrigin:Ke,rfId:Bs,autoPanOnConnect:Rg,autoPanOnNodeDrag:Xb,autoPanSpeed:Vu,onError:nf,connectionRadius:qu,isValidConnection:Fa,selectNodesOnDrag:Ge,nodeDragThreshold:of,connectionDragThreshold:af,onBeforeDelete:F,paneClickDistance:Hu,debug:Yu,ariaLabelConfig:Xu}),b.jsx(wAe,{onSelectionChange:Y}),ef,b.jsx(gAe,{proOptions:Ng,position:Ag}),b.jsx(mAe,{rfId:Bs,disableKeyboardA11y:Uu})]})})}var Y7e=JH(q7e);const W7e=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function OU({children:e}){const r=At(W7e);return r?ji.createPortal(e,r):null}function X7e(e){return At(E.useCallback(r=>r.nodeLookup.get(e),[e]),Nr)}function G7e({dimensions:e,lineWidth:r,variant:n,className:o}){return b.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:an(["react-flow__background-pattern",n,o])})}function K7e({radius:e,className:r}){return b.jsx("circle",{cx:e,cy:e,r:e,className:an(["react-flow__background-pattern","dots",r])})}var Gi;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Gi||(Gi={}));const Z7e={[Gi.Dots]:1,[Gi.Lines]:1,[Gi.Cross]:6},Q7e=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function DU({id:e,variant:r=Gi.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:s,bgColor:l,style:c,className:u,patternClassName:d}){const h=E.useRef(null),{transform:p,patternId:g}=At(Q7e,Nr),y=o||Z7e[r],x=r===Gi.Dots,w=r===Gi.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*p[2]||1,k[1]*p[2]||1],_=y*p[2],T=Array.isArray(i)?i:[i,i],A=w?[_,_]:C,N=[T[0]*p[2]||1+A[0]/2,T[1]*p[2]||1+A[1]/2],$=`${g}${e||""}`;return b.jsxs("svg",{className:an(["react-flow__background",u]),style:{...c,...Rw,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:h,"data-testid":"rf__background",children:[b.jsx("pattern",{id:$,x:p[0]%C[0],y:p[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${N[0]},-${N[1]})`,children:x?b.jsx(K7e,{radius:_/2,className:d}):b.jsx(G7e,{dimensions:A,lineWidth:a,variant:r,className:d})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${$})`})]})}DU.displayName="Background";const LU=E.memo(DU);function J7e(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function eNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function tNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function rNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function nNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Ow({children:e,className:r,...n}){return b.jsx("button",{type:"button",className:an(["react-flow__controls-button",r]),...n,children:e})}const oNe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function IU({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:s,onFitView:l,onInteractiveChange:c,className:u,children:d,position:h="bottom-left",orientation:p="vertical","aria-label":g}){const y=pr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=At(oNe,Nr),{zoomIn:_,zoomOut:T,fitView:A}=up(),N=()=>{_(),i?.()},$=()=>{T(),s?.()},R=()=>{A(a),l?.()},M=()=>{y.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return b.jsxs(ou,{className:an(["react-flow__controls",p==="horizontal"?"horizontal":"vertical",u]),position:h,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&b.jsxs(b.Fragment,{children:[b.jsx(Ow,{onClick:N,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:b.jsx(J7e,{})}),b.jsx(Ow,{onClick:$,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:b.jsx(eNe,{})})]}),n&&b.jsx(Ow,{className:"react-flow__controls-fitview",onClick:R,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:b.jsx(tNe,{})}),o&&b.jsx(Ow,{className:"react-flow__controls-interactive",onClick:M,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?b.jsx(nNe,{}):b.jsx(rNe,{})}),d]})}IU.displayName="Controls",E.memo(IU);function aNe({id:e,x:r,y:n,width:o,height:a,style:i,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:h,selected:p,onClick:g}){const{background:y,backgroundColor:x}=i||{},w=s||y||x;return b.jsx("rect",{className:an(["react-flow__minimap-node",{selected:p},u]),x:r,y:n,rx:d,ry:d,width:o,height:a,style:{fill:w,stroke:l,strokeWidth:c},shapeRendering:h,onClick:g?k=>g(k,e):void 0})}const iNe=E.memo(aNe),sNe=e=>e.nodes.map(r=>r.id),z6=e=>e instanceof Function?e:()=>e;function lNe({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=iNe,onClick:s}){const l=At(sNe,Nr),c=z6(r),u=z6(e),d=z6(n),h=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:l.map(p=>b.jsx(uNe,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:s,shapeRendering:h},p))})}function cNe({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:l,onClick:c}){const{node:u,x:d,y:h,width:p,height:g}=At(y=>{const{internals:x}=y.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=Wn(w);return{node:w,x:k,y:C,width:_,height:T}},Nr);return!u||u.hidden||!ZF(u)?null:b.jsx(l,{x:d,y:h,width:p,height:g,style:u.style,selected:!!u.selected,className:o(u),color:r(u),borderRadius:a,strokeColor:n(u),strokeWidth:i,shapeRendering:s,onClick:c,id:u.id})}const uNe=E.memo(cNe);var dNe=E.memo(lNe);const hNe=200,fNe=150,pNe=e=>!e.hidden,mNe=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?vw(rp(e.nodeLookup,{filter:pNe}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},gNe="react-flow__minimap-desc";function zU({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:h,position:p="bottom-right",onClick:g,onNodeClick:y,pannable:x=!1,zoomable:w=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:T=5}){const A=pr(),N=E.useRef(null),{boundingRect:$,viewBB:R,rfId:M,panZoom:O,translateExtent:B,flowWidth:I,flowHeight:Y,ariaLabelConfig:D}=At(mNe,Nr),V=e?.width??hNe,L=e?.height??fNe,U=$.width/V,q=$.height/L,X=Math.max(U,q),F=X*V,J=X*L,Q=T*X,z=$.x-(F-$.width)/2-Q,W=$.y-(J-$.height)/2-Q,G=F+Q*2,Z=J+Q*2,oe=`${gNe}-${M}`,ee=E.useRef(0),re=E.useRef();ee.current=X,E.useEffect(()=>{if(N.current&&O)return re.current=L9e({domNode:N.current,panZoom:O,getTransform:()=>A.getState().transform,getViewScale:()=>ee.current}),()=>{re.current?.destroy()}},[O]),E.useEffect(()=>{re.current?.update({translateExtent:B,width:I,height:Y,inversePan:C,pannable:x,zoomStep:_,zoomable:w})},[x,w,C,_,B,I,Y]);const he=g?de=>{const[be,De]=re.current?.pointer(de)||[0,0];g(de,{x:be,y:De})}:void 0,Ce=y?E.useCallback((de,be)=>{const De=A.getState().nodeLookup.get(be).internals.userNode;y(de,De)},[]):void 0,ce=k??D["minimap.ariaLabel"];return b.jsx(ou,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof h=="number"?h*X:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:an(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:V,height:L,viewBox:`${z} ${W} ${G} ${Z}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":oe,ref:N,onClick:he,children:[ce&&b.jsx("title",{id:oe,children:ce}),b.jsx(dNe,{onClick:Ce,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:s,nodeComponent:l}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${z-Q},${W-Q}h${G+Q*2}v${Z+Q*2}h${-G-Q*2}z
        M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}zU.displayName="MiniMap",E.memo(zU);const yNe=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,bNe={[lp.Line]:"right",[lp.Handle]:"bottom-right"};function vNe({nodeId:e,position:r,variant:n=lp.Handle,className:o,style:a=void 0,children:i,color:s,minWidth:l=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:h=!1,resizeDirection:p,autoScale:g=!0,shouldResize:y,onResizeStart:x,onResize:w,onResizeEnd:k}){const C=I6(),_=typeof e=="string"?e:C,T=pr(),A=E.useRef(null),N=n===lp.Handle,$=At(E.useCallback(yNe(N&&g),[N,g]),Nr),R=E.useRef(null),M=r??bNe[n];E.useEffect(()=>{if(!(!A.current||!_))return R.current||(R.current=Q9e({domNode:A.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:B,transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V,domNode:L}=T.getState();return{nodeLookup:B,transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V,paneDomNode:L}},onChange:(B,I)=>{const{triggerNodeChanges:Y,nodeLookup:D,parentLookup:V,nodeOrigin:L}=T.getState(),U=[],q={x:B.x,y:B.y},X=D.get(_);if(X&&X.expandParent&&X.parentId){const F=X.origin??L,J=B.width??X.measured.width??0,Q=B.height??X.measured.height??0,z={id:X.id,parentId:X.parentId,rect:{width:J,height:Q,...QF({x:B.x??X.position.x,y:B.y??X.position.y},{width:J,height:Q},X.parentId,D,F)}},W=C6([z],D,V,L);U.push(...W),q.x=B.x?Math.max(F[0]*J,B.x):void 0,q.y=B.y?Math.max(F[1]*Q,B.y):void 0}if(q.x!==void 0&&q.y!==void 0){const F={id:_,type:"position",position:{...q}};U.push(F)}if(B.width!==void 0&&B.height!==void 0){const F={id:_,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:B.width,height:B.height}};U.push(F)}for(const F of I){const J={...F,type:"position"};U.push(J)}Y(U)},onEnd:({width:B,height:I})=>{const Y={id:_,type:"dimensions",resizing:!1,dimensions:{width:B,height:I}};T.getState().triggerNodeChanges([Y])}})),R.current.update({controlPosition:M,boundaries:{minWidth:l,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:h,resizeDirection:p,onResizeStart:x,onResize:w,onResizeEnd:k,shouldResize:y}),()=>{R.current?.destroy()}},[M,l,c,u,d,h,x,w,k,y]);const O=M.split("-");return b.jsx("div",{className:an(["react-flow__resize-control","nodrag",...O,n,o]),ref:A,style:{...a,scale:$,...s&&{[N?"backgroundColor":"borderColor"]:s}},children:i})}E.memo(vNe);const xNe=e=>e.domNode?.querySelector(".react-flow__renderer");function wNe({children:e}){const r=At(xNe);return r?ji.createPortal(e,r):null}const kNe=(e,r)=>e?.internals.positionAbsolute.x!==r?.internals.positionAbsolute.x||e?.internals.positionAbsolute.y!==r?.internals.positionAbsolute.y||e?.measured.width!==r?.measured.width||e?.measured.height!==r?.measured.height||e?.selected!==r?.selected||e?.internals.z!==r?.internals.z,_Ne=(e,r)=>{if(e.size!==r.size)return!1;for(const[n,o]of e)if(kNe(o,r.get(n)))return!1;return!0},ENe=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(r=>r.selected).length});function jU({nodeId:e,children:r,className:n,style:o,isVisible:a,position:i=tt.Top,offset:s=10,align:l="center",...c}){const u=I6(),d=E.useCallback(T=>(Array.isArray(e)?e:[e||u||""]).reduce((A,N)=>{const $=T.nodeLookup.get(N);return $&&A.set($.id,$),A},new Map),[e,u]),h=At(d,_Ne),{x:p,y:g,zoom:y,selectedNodesCount:x}=At(ENe,Nr);if(!(typeof a=="boolean"?a:h.size===1&&h.values().next().value?.selected&&x===1)||!h.size)return null;const w=rp(h),k=Array.from(h.values()),C=Math.max(...k.map(T=>T.internals.z+1)),_={position:"absolute",transform:x9e(w,{x:p,y:g,zoom:y},i,s,l),zIndex:C,...o};return b.jsx(wNe,{children:b.jsx("div",{style:_,className:an(["react-flow__node-toolbar",n]),...c,"data-id":k.reduce((T,A)=>`${T}${A.id} `,"").trim(),children:r})})}var SNe=Object.getOwnPropertyNames,CNe=Object.getOwnPropertySymbols,TNe=Object.prototype.hasOwnProperty;function BU(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function Dw(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),s=a.get(n);if(i&&s)return i===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,o);return a.delete(r),a.delete(n),l}}function FU(e){return SNe(e).concat(CNe(e))}var ANe=Object.hasOwn||(function(e,r){return TNe.call(e,r)});function Hd(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var NNe="__v",RNe="__o",$Ne="_owner",HU=Object.getOwnPropertyDescriptor,UU=Object.keys;function PNe(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function MNe(e,r){return Hd(e.getTime(),r.getTime())}function ONe(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function DNe(e,r){return e===r}function VU(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),s,l,c=0;(s=i.next())&&!s.done;){for(var u=r.entries(),d=!1,h=0;(l=u.next())&&!l.done;){if(a[h]){h++;continue}var p=s.value,g=l.value;if(n.equals(p[0],g[0],c,h,e,r,n)&&n.equals(p[1],g[1],p[0],g[0],e,r,n)){d=a[h]=!0;break}h++}if(!d)return!1;c++}return!0}var LNe=Hd;function INe(e,r,n){var o=UU(e),a=o.length;if(UU(r).length!==a)return!1;for(;a-- >0;)if(!YU(e,r,n,o[a]))return!1;return!0}function w1(e,r,n){var o=FU(e),a=o.length;if(FU(r).length!==a)return!1;for(var i,s,l;a-- >0;)if(i=o[a],!YU(e,r,n,i)||(s=HU(e,i),l=HU(r,i),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function zNe(e,r){return Hd(e.valueOf(),r.valueOf())}function jNe(e,r){return e.source===r.source&&e.flags===r.flags}function qU(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),s,l;(s=i.next())&&!s.done;){for(var c=r.values(),u=!1,d=0;(l=c.next())&&!l.done;){if(!a[d]&&n.equals(s.value,l.value,s.value,l.value,e,r,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function BNe(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function FNe(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function YU(e,r,n,o){return(o===$Ne||o===RNe||o===NNe)&&(e.$$typeof||r.$$typeof)?!0:ANe(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var HNe="[object Arguments]",UNe="[object Boolean]",VNe="[object Date]",qNe="[object Error]",YNe="[object Map]",WNe="[object Number]",XNe="[object Object]",GNe="[object RegExp]",KNe="[object Set]",ZNe="[object String]",QNe="[object URL]",JNe=Array.isArray,WU=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,XU=Object.assign,eRe=Object.prototype.toString.call.bind(Object.prototype.toString);function tRe(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,h=e.areTypedArraysEqual,p=e.areUrlsEqual;return function(g,y,x){if(g===y)return!0;if(g==null||y==null)return!1;var w=typeof g;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(g,y,x):w==="function"?a(g,y,x):!1;var k=g.constructor;if(k!==y.constructor)return!1;if(k===Object)return l(g,y,x);if(JNe(g))return r(g,y,x);if(WU!=null&&WU(g))return h(g,y,x);if(k===Date)return n(g,y,x);if(k===RegExp)return u(g,y,x);if(k===Map)return i(g,y,x);if(k===Set)return d(g,y,x);var C=eRe(g);return C===VNe?n(g,y,x):C===GNe?u(g,y,x):C===YNe?i(g,y,x):C===KNe?d(g,y,x):C===XNe?typeof g.then!="function"&&typeof y.then!="function"&&l(g,y,x):C===QNe?p(g,y,x):C===qNe?o(g,y,x):C===HNe?l(g,y,x):C===UNe||C===WNe||C===ZNe?c(g,y,x):!1}}function rRe(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?w1:PNe,areDatesEqual:MNe,areErrorsEqual:ONe,areFunctionsEqual:DNe,areMapsEqual:o?BU(VU,w1):VU,areNumbersEqual:LNe,areObjectsEqual:o?w1:INe,arePrimitiveWrappersEqual:zNe,areRegExpsEqual:jNe,areSetsEqual:o?BU(qU,w1):qU,areTypedArraysEqual:o?w1:BNe,areUrlsEqual:FNe};if(n&&(a=XU({},a,n(a))),r){var i=Dw(a.areArraysEqual),s=Dw(a.areMapsEqual),l=Dw(a.areObjectsEqual),c=Dw(a.areSetsEqual);a=XU({},a,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return a}function nRe(e){return function(r,n,o,a,i,s,l){return e(r,n,l)}}function oRe(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(l,c){var u=o(),d=u.cache,h=d===void 0?r?new WeakMap:void 0:d,p=u.meta;return n(l,c,{cache:h,equals:a,meta:p,strict:i})};if(r)return function(l,c){return n(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var s={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return n(l,c,s)}}var ut=au();au({strict:!0}),au({circular:!0}),au({circular:!0,strict:!0});var Xn=au({createInternalComparator:function(){return Hd}});au({strict:!0,createInternalComparator:function(){return Hd}}),au({circular:!0,createInternalComparator:function(){return Hd}}),au({circular:!0,createInternalComparator:function(){return Hd},strict:!0});function au(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,s=i===void 0?!1:i,l=rRe(e),c=tRe(l),u=o?o(c):nRe(c);return oRe({circular:n,comparator:c,createState:a,equals:u,strict:s})}function aRe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function sr(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return aRe(e,r,n);throw Error("Wrong number of arguments")}const iRe=e=>(r,n)=>{if(n===0)return e(r);if(!Number.isInteger(n))throw TypeError(`precision must be an integer: ${n.toString()}`);if(n>15||n<-15)throw RangeError("precision must be between -15 and 15");if(Number.isNaN(r)||!Number.isFinite(r))return e(r);let o=GU(r,n),a=e(o);return GU(a,-n)};function GU(e,r){let[n,o]=e.toString().split("e"),a=(o===void 0?0:Number.parseInt(o,10))+r,i=`${n}e${a.toString()}`;return Number.parseFloat(i)}function sRe(...e){return sr(iRe(Math.ceil),e)}function Ki(...e){return sr(lRe,e)}const lRe=(e,{min:r,max:n})=>r!==void 0&&e<r?r:n!==void 0&&e>n?n:e;function cRe(...e){return sr(uRe,e)}const uRe=(e,r)=>[...e,...r],Lw={done:!1,hasNext:!1};function yn(e,...r){let n=e,o=r.map(i=>"lazy"in i?dRe(i):void 0),a=0;for(;a<r.length;){if(o[a]===void 0||!hRe(n)){let c=r[a];n=c(n),a+=1;continue}let i=[];for(let c=a;c<r.length;c++){let u=o[c];if(u===void 0||(i.push(u),u.isSingle))break}let s=[];for(let c of n)if(KU(c,s,i))break;let{isSingle:l}=i.at(-1);n=l?s[0]:s,a+=i.length}return n}function KU(e,r,n){if(n.length===0)return r.push(e),!1;let o=e,a=Lw,i=!1;for(let[s,l]of n.entries()){let{index:c,items:u}=l;if(u.push(o),a=l(o,c,u),l.index+=1,a.hasNext){if(a.hasMany??!1){for(let d of a.next)if(KU(d,r,n.slice(s+1)))return!0;return i}o=a.next}if(!a.hasNext)break;a.done&&(i=!0)}return a.hasNext&&r.push(o),i}function dRe(e){let{lazy:r,lazyArgs:n}=e,o=r(...n);return Object.assign(o,{isSingle:r.single??!1,index:0,items:[]})}function hRe(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function fRe(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return yn(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>yn(a,o),o)}throw Error("Wrong number of arguments")}function To(...e){return sr(pRe,e)}const pRe=(e,r)=>e.length>=r,ZU={asc:(e,r)=>e>r,desc:(e,r)=>e<r};function mRe(e,r){let[n,...o]=r;if(!gRe(n)){let i=j6(...o);return e(n,i)}let a=j6(n,...o);return i=>e(i,a)}function j6(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=ZU,s=r===void 0?void 0:j6(r,...n);return(l,c)=>{let u=o(l),d=o(c);return i(u,d)?1:i(d,u)?-1:s?.(l,c)??0}}function gRe(e){if(QU(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return QU(r)&&typeof n=="string"&&n in ZU&&o.length===0}const QU=e=>typeof e=="function"&&e.length===1;function B6(...e){return sr(Object.entries,e)}function dp(...e){return sr(yRe,e,bRe)}const yRe=(e,r)=>e.filter(r),bRe=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:Lw,JU=e=>Object.assign(e,{single:!0});function Iw(...e){return sr(vRe,e,JU(xRe))}const vRe=(e,r)=>e.find(r),xRe=e=>(r,n,o)=>e(r,n,o)?{done:!0,hasNext:!0,next:r}:Lw;function hp(...e){return sr(wRe,e,JU(kRe))}const wRe=([e])=>e,kRe=()=>_Re,_Re=e=>({hasNext:!0,next:e,done:!0});function ERe(...e){return sr(SRe,e,CRe)}const SRe=(e,r)=>e.flatMap(r),CRe=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function TRe(...e){return sr(ARe,e)}function ARe(e,r){for(let[n,o]of Object.entries(e))r(o,n,e);return e}function NRe(...e){return sr(RRe,e)}const RRe=(e,r)=>{let n=Object.create(null);for(let o=0;o<e.length;o++){let a=e[o],i=r(a,o,e);if(i!==void 0){let s=n[i];s===void 0?n[i]=[a]:s.push(a)}}return Object.setPrototypeOf(n,Object.prototype),n};function $Re(...e){return sr(k1,e)}function k1(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return PRe(e,r);if(e instanceof Map)return MRe(e,r);if(e instanceof Set)return ORe(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!k1(o,r[n]))return!1;return!0}function PRe(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!k1(o,r[n]))return!1;return!0}function MRe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!k1(o,r.get(n)))return!1;return!0}function ORe(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(k1(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}function DRe(...e){return sr(LRe,e)}function LRe(e,r){for(let[n,o]of Object.entries(r))if(!Object.hasOwn(e,n)||!$Re(o,e[n]))return!1;return!0}function F6(e){return Array.isArray(e)}function eV(e){return typeof e=="boolean"}function H6(e){return e!==void 0}function iu(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}const _1=e=>typeof e=="function";function IRe(e){return e!==null}function tV(e){return e!=null}function rV(e){return e==null}function nV(e){return typeof e=="number"&&!Number.isNaN(e)}function U6(e){if(typeof e!="object"||!e)return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function V6(e){return typeof e=="string"}function Sa(e){return!!e}function oV(...e){return sr(zRe,e)}const zRe=(e,r)=>e.join(r);function q6(...e){return sr(Object.keys,e)}function Ud(...e){return sr(jRe,e)}const jRe=e=>e.at(-1);function Ao(...e){return sr(BRe,e,FRe)}const BRe=(e,r)=>e.map(r),FRe=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function E1(...e){return sr(HRe,e)}function HRe(e,r){let n={};for(let[o,a]of e.entries()){let[i,s]=r(a,o,e);n[i]=s}return n}function URe(...e){return sr(VRe,e)}function VRe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function aV(...e){return sr(iV,e)}function iV(e,r){let n={...e,...r};for(let o in r){if(!(o in e))continue;let{[o]:a}=e;if(!U6(a))continue;let{[o]:i}=r;U6(i)&&(n[o]=iV(a,i))}return n}function Vd(...e){return sr(qRe,e)}function qRe(e,r){if(!To(r,1))return{...e};if(!To(r,2)){let{[r[0]]:o,...a}=e;return a}let n={...e};for(let o of r)delete n[o];return n}function zw(...e){return sr(YRe,e)}const YRe=e=>e.length===1?e[0]:void 0;function sV(...e){return sr(WRe,e)}const WRe=(e,r)=>{let n=[[],[]];for(let[o,a]of e.entries())r(a,o,e)?n[0].push(a):n[1].push(a);return n};function lV(...e){return sr(XRe,e)}function XRe(e,r){let n={};for(let o of r)o in e&&(n[o]=e[o]);return n}function GRe(...e){return sr(KRe,e)}function KRe(e,r){let n={};for(let[o,a]of Object.entries(e))r(a,o,e)&&(n[o]=a);return n}function Ca(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>cV(n,e,...r):cV(e,...r)}function cV(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function ZRe(...e){return sr(QRe,e)}function QRe(e,r){let n=[];for(let o=e;o<r;o++)n.push(o);return n}function fp(...e){return sr(JRe,e)}const JRe=(e,r,n)=>e.reduce(r,n);function e$e(...e){return sr(t$e,e)}function t$e(e){return[...e].reverse()}function r$e(...e){return sr(n$e,e)}function n$e(e,r){let n=[...e];return n.sort(r),n}function jw(...e){return mRe(o$e,e)}const o$e=(e,r)=>[...e].sort(r);function uV(...e){return sr(a$e,e)}function a$e(e,r){return r(e),e}function Y6(...e){return fRe(i$e,e)}function i$e(){let e=new Set;return r=>e.has(r)?Lw:(e.add(r),{done:!1,hasNext:!0,next:r})}let Zi=[],su=0;const Bw=4;let s$e=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=su+Bw;i<Zi.length;)Zi[i]===o?Zi.splice(i,Bw):i+=Bw;let a=r.indexOf(o);~a&&(r.splice(a,1),--n.lc||n.off())}},notify(o,a){let i=!Zi.length;for(let s of r)Zi.push(s,n.value,o,a);if(i){for(su=0;su<Zi.length;su+=Bw)Zi[su](Zi[su+1],Zi[su+2],Zi[su+3]);Zi.length=0}},off(){},set(o){let a=n.value;a!==o&&(n.value=o,n.notify(a))},subscribe(o){let a=n.listen(o);return o(n.value),a},value:e};return n};var Js=function(){return Js=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Js.apply(this,arguments)};function dV(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function l$e(e,r,n){for(var o=0,a=r.length,i;o<a;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}var Fw="right-scroll-bar-position",Hw="width-before-scroll-bar",c$e="with-scroll-bars-hidden",u$e="--removed-body-scroll-bar-size";function W6(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function d$e(e,r){var n=E.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var h$e=typeof window<"u"?E.useLayoutEffect:E.useEffect,hV=new WeakMap;function f$e(e,r){var n=d$e(null,function(o){return e.forEach(function(a){return W6(a,o)})});return h$e(function(){var o=hV.get(n);if(o){var a=new Set(o),i=new Set(e),s=n.current;a.forEach(function(l){i.has(l)||W6(l,null)}),i.forEach(function(l){a.has(l)||W6(l,s)})}hV.set(n,e)},[e]),n}function p$e(e){return e}function m$e(e,r){r===void 0&&(r=p$e);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=r(i,o);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return a}function g$e(e){e===void 0&&(e={});var r=m$e(null);return r.options=Js({async:!0,ssr:!1},e),r}var fV=function(e){var r=e.sideCar,n=dV(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return E.createElement(o,Js({},n))};fV.isSideCarExport=!0;function y$e(e,r){return e.useMedium(r),fV}var pV=g$e(),X6=function(){},Uw=E.forwardRef(function(e,r){var n=E.useRef(null),o=E.useState({onScrollCapture:X6,onWheelCapture:X6,onTouchMoveCapture:X6}),a=o[0],i=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,y=e.noIsolation,x=e.inert,w=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,_=e.gapMode,T=dV(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,N=f$e([n,r]),$=Js(Js({},T),a);return E.createElement(E.Fragment,null,d&&E.createElement(A,{sideCar:pV,removeScrollBar:u,shards:h,noRelative:g,noIsolation:y,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:_}),s?E.cloneElement(E.Children.only(l),Js(Js({},$),{ref:N})):E.createElement(C,Js({},$,{className:c,ref:N}),l))});Uw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Uw.classNames={fullWidth:Hw,zeroRight:Fw};var b$e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v$e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=b$e();return r&&e.setAttribute("nonce",r),e}function x$e(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function w$e(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var k$e=function(){var e=0,r=null;return{add:function(n){e==0&&(r=v$e())&&(x$e(r,n),w$e(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},_$e=function(){var e=k$e();return function(r,n){E.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},mV=function(){var e=_$e(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},E$e={left:0,top:0,right:0,gap:0},G6=function(e){return parseInt(e||"",10)||0},S$e=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[G6(n),G6(o),G6(a)]},C$e=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return E$e;var r=S$e(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},T$e=mV(),pp="data-scroll-locked",A$e=function(e,r,n,o){var a=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(c$e,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(l,"px ").concat(o,`;
  }
  body[`).concat(pp,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(l,"px ").concat(o,`;
    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Fw,` {
    right: `).concat(l,"px ").concat(o,`;
  }
  
  .`).concat(Hw,` {
    margin-right: `).concat(l,"px ").concat(o,`;
  }
  
  .`).concat(Fw," .").concat(Fw,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(Hw," .").concat(Hw,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(pp,`] {
    `).concat(u$e,": ").concat(l,`px;
  }
`)},gV=function(){var e=parseInt(document.body.getAttribute(pp)||"0",10);return isFinite(e)?e:0},N$e=function(){E.useEffect(function(){return document.body.setAttribute(pp,(gV()+1).toString()),function(){var e=gV()-1;e<=0?document.body.removeAttribute(pp):document.body.setAttribute(pp,e.toString())}},[])},R$e=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;N$e();var i=E.useMemo(function(){return C$e(a)},[a]);return E.createElement(T$e,{styles:A$e(i,!r,a,n?"":"!important")})},K6=!1;if(typeof window<"u")try{var Vw=Object.defineProperty({},"passive",{get:function(){return K6=!0,!0}});window.addEventListener("test",Vw,Vw),window.removeEventListener("test",Vw,Vw)}catch{K6=!1}var mp=K6?{passive:!1}:!1,$$e=function(e){return e.tagName==="TEXTAREA"},yV=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!$$e(e)&&n[r]==="visible")},P$e=function(e){return yV(e,"overflowY")},M$e=function(e){return yV(e,"overflowX")},bV=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=vV(e,o);if(a){var i=xV(e,o),s=i[1],l=i[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},O$e=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},D$e=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},vV=function(e,r){return e==="v"?P$e(r):M$e(r)},xV=function(e,r){return e==="v"?O$e(r):D$e(r)},L$e=function(e,r){return e==="h"&&r==="rtl"?-1:1},I$e=function(e,r,n,o,a){var i=L$e(e,window.getComputedStyle(r).direction),s=i*o,l=n.target,c=r.contains(l),u=!1,d=s>0,h=0,p=0;do{if(!l)break;var g=xV(e,l),y=g[0],x=g[1],w=g[2],k=x-w-i*y;(y||k)&&vV(e,l)&&(h+=k,p+=y);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&l!==document.body||c&&(r.contains(l)||r===l));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(u=!0),u},qw=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wV=function(e){return[e.deltaX,e.deltaY]},kV=function(e){return e&&"current"in e?e.current:e},z$e=function(e,r){return e[0]===r[0]&&e[1]===r[1]},j$e=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},B$e=0,gp=[];function F$e(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState(B$e++)[0],i=E.useState(mV)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=l$e([e.lockRef.current],(e.shards||[]).map(kV)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var k=qw(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],A,N=x.target,$=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&$==="h"&&N.type==="range")return!1;var R=bV($,N);if(!R)return!0;if(R?A=$:(A=$==="v"?"h":"v",R=bV($,N)),!R)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=A),!A)return!0;var M=o.current||A;return I$e(M,w,x,M==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!gp.length||gp[gp.length-1]!==i)){var k="deltaY"in w?wV(w):qw(w),C=r.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&z$e(A.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(s.current.shards||[]).map(kV).filter(Boolean).filter(function(A){return A.contains(w.target)}),T=_.length>0?l(w,_[0]):!s.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),u=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:H$e(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=E.useCallback(function(x){n.current=qw(x),o.current=void 0},[]),h=E.useCallback(function(x){u(x.type,wV(x),x.target,l(x,e.lockRef.current))},[]),p=E.useCallback(function(x){u(x.type,qw(x),x.target,l(x,e.lockRef.current))},[]);E.useEffect(function(){return gp.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,mp),document.addEventListener("touchmove",c,mp),document.addEventListener("touchstart",d,mp),function(){gp=gp.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,mp),document.removeEventListener("touchmove",c,mp),document.removeEventListener("touchstart",d,mp)}},[]);var g=e.removeScrollBar,y=e.inert;return E.createElement(E.Fragment,null,y?E.createElement(i,{styles:j$e(a)}):null,g?E.createElement(R$e,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function H$e(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const U$e=y$e(pV,F$e);var S1=E.forwardRef(function(e,r){return E.createElement(Uw,Js({},e,{ref:r,sideCar:U$e}))});S1.classNames=Uw.classNames;function No(e){return Object.keys(e)}function Z6(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Q6(e,r){const n={...e},o=r;return Z6(e)&&Z6(r)&&Object.keys(r).forEach(a=>{Z6(o[a])&&a in e?n[a]=Q6(n[a],o[a]):n[a]=o[a]}),n}function V$e(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function q$e(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function J6(e){const r=q$e(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function _V(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function EV(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?_V(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?_V(i):i}}return o}return n}const Ne=EV("rem",{shouldScale:!0}),SV=EV("em");function yp(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function CV(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function Qi(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function ri(e){const r=E.createContext(null);return[({children:n,value:o})=>b.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function C1(e=null){const r=E.createContext(e);return[({children:n,value:o})=>b.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function TV(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function bp(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function Y$e(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function W$e(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].disabled)return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].disabled)return o}return e}function X$e(e,r,n){return bp(e,n)===bp(r,n)}function T1({parentSelector:e,siblingSelector:r,onKeyDown:n,loop:o=!0,activateOnFocus:a=!1,dir:i="rtl",orientation:s}){return l=>{n?.(l);const c=Array.from(bp(l.currentTarget,e)?.querySelectorAll(r)||[]).filter(y=>X$e(l.currentTarget,y,e)),u=c.findIndex(y=>l.currentTarget===y),d=W$e(u,c,o),h=Y$e(u,c,o),p=i==="rtl"?h:d,g=i==="rtl"?d:h;switch(l.key){case"ArrowRight":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[p].focus(),a&&c[p].click());break}case"ArrowLeft":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[h].focus(),a&&c[h].click());break}case"ArrowDown":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[d].focus(),a&&c[d].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const y=c.length-1;!c[y].disabled&&c[y].focus();break}}}}const G$e={app:100,modal:200,popover:300,overlay:400,max:9999};function Yw(e){return G$e[e]}const AV=()=>{};function K$e(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||AV:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function lr(e,r="size",n=!0){if(e!==void 0)return CV(e)?n?Ne(e):e:`var(--${r}-${e})`}function Ul(e){return lr(e,"mantine-spacing")}function bn(e){return e===void 0?"var(--mantine-radius-default)":lr(e,"mantine-radius")}function Ro(e){return lr(e,"mantine-font-size")}function Z$e(e){return lr(e,"mantine-line-height",!1)}function NV(e){if(e)return lr(e,"mantine-shadow",!1)}function vn(e,r){return n=>{e?.(n),r?.(n)}}function Q$e(e,r){return e in r?J6(r[e]):J6(e)}function RV(e,r){const n=e.map(o=>({value:o,px:Q$e(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function A1(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function J$e(e,r,n){return n?Array.from(bp(n,r)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function lu(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function eC(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function ePe(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in r)||e[i]!==r[i]&&!(Number.isNaN(e[i])&&Number.isNaN(r[i])))return!1}return!0}function it(e){const r=E.useRef(e);return E.useEffect(()=>{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function vp(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=it(e),s=E.useRef(0),l=E.useMemo(()=>{const c=Object.assign((...u)=>{window.clearTimeout(s.current);const d=c._isFirstCall;c._isFirstCall=!1;function h(){window.clearTimeout(s.current),s.current=0,c._isFirstCall=!0}if(a&&d){i(...u);const y=()=>{h()},x=()=>{s.current!==0&&(h(),i(...u))},w=()=>{h()};c.flush=x,c.cancel=w,s.current=window.setTimeout(y,n);return}if(a&&!d){const y=()=>{s.current!==0&&(h(),i(...u))},x=()=>{h()};c.flush=y,c.cancel=x;const w=()=>{h()};s.current=window.setTimeout(w,n);return}const p=()=>{s.current!==0&&(h(),i(...u))},g=()=>{h()};c.flush=p,c.cancel=g,s.current=window.setTimeout(p,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return E.useEffect(()=>()=>{o?l.flush():l.cancel()},[l,o]),l}const tPe=["mousedown","touchstart"];function $V(e,r,n){const o=E.useRef(null),a=r||tPe;return E.useEffect(()=>{const i=s=>{const{target:l}=s??{};if(Array.isArray(n)){const c=!document.body.contains(l)&&l.tagName!=="HTML";n.every(u=>!!u&&!s.composedPath().includes(u))&&!c&&e()}else o.current&&!o.current.contains(l)&&e()};return a.forEach(s=>document.addEventListener(s,i)),()=>{a.forEach(s=>document.removeEventListener(s,i))}},[o,e,n]),o}function rPe(e={timeout:2e3}){const[r,n]=E.useState(null),[o,a]=E.useState(!1),[i,s]=E.useState(null),l=c=>{window.clearTimeout(i),s(window.setTimeout(()=>a(!1),e.timeout)),a(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>l(!0)).catch(u=>n(u)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),n(null),window.clearTimeout(i)},error:r,copied:o}}function nPe(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function oPe(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function PV(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:oPe(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),nPe(i,s=>a(s.matches))}catch{return}},[e]),o||!1}function MV(e,r){return PV("(prefers-color-scheme: dark)",e==="dark",r)?"dark":"light"}function aPe(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(null),s=E.useRef(!0),l=()=>window.clearTimeout(i.current);E.useEffect(()=>l,[]);const c=E.useCallback(u=>{l(),s.current&&n.leading?a(u):i.current=window.setTimeout(()=>{s.current=!0,a(u)},r),s.current=!1},[n.leading]);return[o,c]}function tC(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(!1),s=E.useRef(null),l=E.useRef(!1),c=E.useCallback(()=>window.clearTimeout(s.current),[]);return E.useEffect(()=>{i.current&&(!l.current&&n.leading?(l.current=!0,a(e)):(c(),s.current=window.setTimeout(()=>{l.current=!1,a(e)},r)))},[e,n.leading,r]),E.useEffect(()=>(i.current=!0,c),[]),[o,c]}const N1=typeof document<"u"?E.useLayoutEffect:E.useEffect;function qd(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function iPe({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return qd(()=>{let a=-1;const i=s=>{s.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const sPe=/input|select|textarea|button|object/,OV="a, input, select, textarea, button, object, [tabindex]";function lPe(e){return e.style.display==="none"}function cPe(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(lPe(r))return!1;r=r.parentNode}return!0}function DV(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function rC(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(DV(e));return(sPe.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&cPe(e)}function LV(e){const r=DV(e);return(Number.isNaN(r)||r>=0)&&rC(e)}function uPe(e){return Array.from(e.querySelectorAll(OV)).filter(LV)}function dPe(e,r){const n=uPe(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===s.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const l=n[r.shiftKey?n.length-1:0];l&&l.focus()}function IV(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const s=Array.from(a.querySelectorAll(OV));i=s.find(LV)||s.find(rC)||null,!i&&rC(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&dPe(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const hPe=Gr.useId||(()=>{});function fPe(){const e=hPe();return e?`mantine-${e.replace(/:/g,"")}`:""}function Ta(e){const r=fPe(),[n,o]=E.useState(r);return N1(()=>{o(eC())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function xp(e,r,n){E.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function pPe(e,r="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${r}: Failed to serialize the value`)}}function mPe(e){try{return e&&JSON.parse(e)}catch{return e}}function gPe(e){return{getItem:r=>{try{return window[e].getItem(r)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(r,n)=>{try{window[e].setItem(r,n)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:r=>{try{window[e].removeItem(r)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function zV(e,r){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:o,setItem:a,removeItem:i}=gPe(e);return function({key:s,defaultValue:l,getInitialValueInEffect:c=!0,sync:u=!0,deserialize:d=mPe,serialize:h=p=>pPe(p,r)}){const p=E.useCallback(k=>{let C;try{C=typeof window>"u"||!(e in window)||window[e]===null||!!k}catch{C=!0}if(C)return l;const _=o(s);return _!==null?d(_):l},[s,l]),[g,y]=E.useState(p(c)),x=E.useCallback(k=>{k instanceof Function?y(C=>{const _=k(C);return a(s,h(_)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:k(C)}}))}),_}):(a(s,h(k)),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:k}})),y(k))},[s]),w=E.useCallback(()=>{i(s),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:l}}))},[]);return xp("storage",k=>{u&&k.storageArea===window[e]&&k.key===s&&y(d(k.newValue??void 0))}),xp(n,k=>{u&&k.detail.key===s&&y(k.detail.value)}),E.useEffect(()=>{l!==void 0&&g===void 0&&x(l)},[l,g,x]),E.useEffect(()=>{const k=p();k!==void 0&&x(k)},[s]),[g===void 0?l:g,x,w]}}function yPe(e){return zV("localStorage","use-local-storage")(e)}function bPe(e){return zV("sessionStorage","use-session-storage")(e)}function nC(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function jV(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=nC(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():nC(o,null)}),r.clear()}}}function Rr(...e){return E.useCallback(jV(...e),e)}function vPe(e){return{x:lu(e.x,0,1),y:lu(e.y,0,1)}}function BV(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[s,l]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.useCallback(u=>{if(c.current&&(c.current(),c.current=null),!u)return;const d=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const A=u.getBoundingClientRect();if(A.width&&A.height){const N=lu((_-A.left)/A.width,0,1);e({x:n==="ltr"?N:1-N,y:lu((T-A.top)/A.height,0,1)})}}})},h=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",y),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",y)},p=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",y)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),l(!0),h())},y=()=>{a.current&&o.current&&(a.current=!1,l(!1),p(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>d({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),d({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};u.addEventListener("mousedown",x),u.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{u.removeEventListener("mousedown",x),u.removeEventListener("touchstart",k)}},[n,e]),active:s}}function Vl({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(l,...c)=>{i(l),o?.(l,...c)},!1]}function FV(e,r){return PV("(prefers-reduced-motion: reduce)",e,r)}function xPe(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n<e.length;n+=1)if(!ePe(e[n],r[n]))return!1;return!0}function wPe(e){const r=E.useRef([]),n=E.useRef(0);return xPe(r.current,e)||(r.current=e,n.current+=1),[n.current]}function kPe(e,r){E.useEffect(e,wPe(r))}const HV={passive:!0};function _Pe(){const[e,r]=E.useState({width:0,height:0}),n=E.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return xp("resize",n,HV),xp("orientationchange",n,HV),E.useEffect(n,[]),e}const EPe={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function Ww(e){const r=e.replace("Key","").toLowerCase();return EPe[e]||r}function SPe(e){const r=e.toLowerCase().split("+").map(i=>i.trim()),n={alt:r.includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},o=["alt","ctrl","meta","shift","mod"],a=r.find(i=>!o.includes(i));return{...n,key:a==="[plus]"?"+":a}}function CPe(e,r,n){const{alt:o,ctrl:a,meta:i,mod:s,shift:l,key:c}=e,{altKey:u,ctrlKey:d,metaKey:h,shiftKey:p,key:g,code:y}=r;if(o!==u)return!1;if(s){if(!d&&!h)return!1}else if(a!==d||i!==h)return!1;return l!==p?!1:!!(c&&(n?Ww(y)===Ww(c):Ww(g??y)===Ww(c)))}function UV(e,r){return n=>CPe(SPe(e),n,r)}function oC(e){return r=>{const n="nativeEvent"in r?r.nativeEvent:r;e.forEach(([o,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{UV(o,i.usePhysicalKeys)(n)&&(i.preventDefault&&r.preventDefault(),a(n))})}}function TPe(e,r,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!r.includes(e.target.tagName):!0}function APe(e,r=["INPUT","TEXTAREA","SELECT"],n=!1){E.useEffect(()=>{const o=a=>{e.forEach(([i,s,l={preventDefault:!0,usePhysicalKeys:!1}])=>{UV(i,l.usePhysicalKeys)(a)&&TPe(a,r,n)&&(l.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function aC(){const[e,r]=E.useState(!1),n=E.useRef(null),o=E.useCallback(()=>{r(!0)},[]),a=E.useCallback(()=>{r(!1)},[]);return{ref:E.useCallback(i=>{n.current&&(n.current.removeEventListener("mouseenter",o),n.current.removeEventListener("mouseleave",a)),i&&(i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",a)),n.current=i},[o,a]),hovered:e}}function NPe(e=!1,r={}){const[n,o]=E.useState(e),a=E.useCallback(()=>{o(l=>l||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(l=>l&&(r.onClose?.(),!1))},[r.onClose]),s=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:s}]}function RPe(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function $Pe({onBlur:e,onFocus:r}={}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(null),s=E.useCallback(d=>{o(d),a.current=d},[]),l=E.useCallback(d=>{a.current||(s(!0),r?.(d))},[r]),c=E.useCallback(d=>{a.current&&!RPe(d)&&(s(!1),e?.(d))},[e]),u=E.useCallback(d=>{d&&(i.current&&(i.current.removeEventListener("focusin",l),i.current.removeEventListener("focusout",c)),d.addEventListener("focusin",l),d.addEventListener("focusout",c))},[l,c]);return E.useEffect(()=>()=>{i.current&&(i.current.removeEventListener("focusin",l),i.current.removeEventListener("focusout",c))},[]),{ref:u,focused:n}}function VV(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...s)=>{o.current||(o.current=window.setTimeout(()=>{e(s),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function qV(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function PPe(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function YV(e){const[r,n]=E.useState({history:[e],current:0}),o=E.useCallback(c=>n(u=>{const d=[...u.history.slice(0,u.current+1),c];return{history:d,current:d.length-1}}),[]),a=E.useCallback((c=1)=>n(u=>({history:u.history,current:Math.max(0,u.current-c)})),[]),i=E.useCallback((c=1)=>n(u=>({history:u.history,current:Math.min(u.history.length-1,u.current+c)})),[]),s=E.useCallback(()=>{n({history:[e],current:0})},[e]),l=E.useMemo(()=>({back:a,forward:i,reset:s,set:o}),[a,i,s,o]);return[r.history[r.current],l,r]}function MPe(e,r){const n=it(e),o=E.useRef(null),a=E.useRef(null),i=E.useRef(!0),s=E.useRef(r),l=E.useRef(-1),c=()=>window.clearTimeout(l.current),u=E.useCallback((...p)=>{n(...p),o.current=p,a.current=p,i.current=!1},[n]),d=E.useCallback(()=>{o.current&&o.current!==a.current?(u(...o.current),l.current=window.setTimeout(d,s.current)):i.current=!0},[u]),h=E.useCallback((...p)=>{i.current?(u(...p),l.current=window.setTimeout(d,s.current)):o.current=p},[u,d]);return E.useEffect(()=>{s.current=r},[r]),[h,c]}function OPe(e,r){return MPe(e,r)[0]}function DPe(){return typeof process<"u"&&process.env?"production":"development"}function WV(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function XV(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e)<Math.abs(n-e)?o:n)}function Xw(e){const r=Gr.version;return typeof Gr.version!="string"||r.startsWith("18.")?e?.ref:e?.props?.ref}function GV(e){var r,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=GV(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ji(){for(var e,r,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=GV(e))&&(o&&(o+=" "),o+=r);return o}const LPe={};function IPe(e){const r={};return e.forEach(n=>{Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=Ji(r[o],a):r[o]=a})}),r}function Gw({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||LPe);return IPe(a)}function Kw({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const Zw=E.createContext(null);function cu(){const e=E.useContext(Zw);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function zPe(){return cu().cssVariablesResolver}function jPe(){return cu().classNamesPrefix}function Yd(){return cu().getStyleNonce}function BPe(){return cu().withStaticClasses}function FPe(){return cu().headless}function HPe(){return cu().stylesTransform?.sx}function UPe(){return cu().stylesTransform?.styles}function Qw(){return cu().env||"default"}function VPe(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function qPe(e){let r=e.replace("#","");if(r.length===3){const s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(r.length===8){const s=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:s}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function YPe(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function WPe(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*i-1))*a,c=o/60,u=l*(1-Math.abs(c%2-1)),d=i-l/2;let h,p,g;return c>=0&&c<1?(h=l,p=u,g=0):c>=1&&c<2?(h=u,p=l,g=0):c>=2&&c<3?(h=0,p=l,g=u):c>=3&&c<4?(h=0,p=u,g=l):c>=4&&c<5?(h=u,p=0,g=l):(h=l,p=0,g=u),{r:Math.round((h+d)*255),g:Math.round((p+d)*255),b:Math.round((g+d)*255),a:s||1}}function iC(e){return VPe(e)?qPe(e):e.startsWith("rgb")?YPe(e):e.startsWith("hsl")?WPe(e):{r:0,g:0,b:0,a:1}}function Jw(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:n,g:o,b:a,a:i}=iC(e),s=1-r,l=c=>Math.round(c*s);return`rgba(${l(n)}, ${l(o)}, ${l(a)}, ${i})`}function R1(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function sC(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function XPe(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function GPe(e){if(e.startsWith("oklch("))return(XPe(e)||0)/100;const{r,g:n,b:o}=iC(e),a=r/255,i=n/255,s=o/255,l=sC(a),c=sC(i),u=sC(s);return .2126*l+.7152*c+.0722*u}function $1(e,r=.179){return e.startsWith("var(")?!1:GPe(e)>r}function uu({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:$1(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:$1(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:$1(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,s=o in r.colors;if(s){const l=i!==void 0?r.colors[o][i]:r.colors[o][R1(r,n||"light")];return{color:o,value:l,shade:i,isThemeColor:s,isLight:$1(l,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:$1(e,r.luminanceThreshold),shade:i,variable:void 0}}function Jo(e,r){const n=uu({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function lC(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Jo(n.from,r),a=Jo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function el(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=iC(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const wp=el,KPe=({color:e,theme:r,variant:n,gradient:o,autoContrast:a})=>{const i=uu({color:e,theme:r}),s=typeof a=="boolean"?a:r.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const l=s&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:l,border:`${Ne(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:l,border:`${Ne(1)} solid transparent`}:{background:e,hover:Jw(e,.1),color:l,border:`${Ne(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Ne(1)} solid transparent`};const l=r.colors[i.color][i.shade];return{background:el(l,.1),hover:el(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ne(1)} solid transparent`}}return{background:el(e,.1),hover:el(e,.12),color:e,border:`${Ne(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${Ne(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:el(r.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ne(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:el(e,.05),color:e,border:`${Ne(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Ne(1)} solid transparent`};const l=r.colors[i.color][i.shade];return{background:"transparent",hover:el(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ne(1)} solid transparent`}}return{background:"transparent",hover:el(e,.12),color:e,border:`${Ne(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${Ne(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ne(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${Ne(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:Jw(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Ne(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jw(r.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ne(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jw(r.white,.01),color:e,border:`${Ne(1)} solid transparent`}:n==="gradient"?{background:lC(o,r),hover:lC(o,r),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Ne(1)} solid var(--mantine-color-default-border)`}:{}},ZPe={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},KV="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",cC={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:ZPe,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:KPe,autoContrast:!1,luminanceThreshold:.3,fontFamily:KV,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:KV,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Ne(34),lineHeight:"1.3"},h2:{fontSize:Ne(26),lineHeight:"1.35"},h3:{fontSize:Ne(22),lineHeight:"1.4"},h4:{fontSize:Ne(18),lineHeight:"1.45"},h5:{fontSize:Ne(16),lineHeight:"1.5"},h6:{fontSize:Ne(14),lineHeight:"1.5"}}},fontSizes:{xs:Ne(12),sm:Ne(14),md:Ne(16),lg:Ne(18),xl:Ne(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Ne(2),sm:Ne(4),md:Ne(8),lg:Ne(16),xl:Ne(32)},spacing:{xs:Ne(10),sm:Ne(12),md:Ne(16),lg:Ne(20),xl:Ne(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), 0 ${Ne(1)} ${Ne(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(10)} ${Ne(15)} ${Ne(-5)}, rgba(0, 0, 0, 0.04) 0 ${Ne(7)} ${Ne(7)} ${Ne(-5)}`,md:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(20)} ${Ne(25)} ${Ne(-5)}, rgba(0, 0, 0, 0.04) 0 ${Ne(10)} ${Ne(10)} ${Ne(-5)}`,lg:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(28)} ${Ne(23)} ${Ne(-7)}, rgba(0, 0, 0, 0.04) 0 ${Ne(12)} ${Ne(12)} ${Ne(-7)}`,xl:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(36)} ${Ne(28)} ${Ne(-7)}, rgba(0, 0, 0, 0.04) 0 ${Ne(17)} ${Ne(17)} ${Ne(-7)}`},other:{},components:{}};function ZV(e){return e==="auto"||e==="dark"||e==="light"}function QPe({key:e="mantine-color-scheme-value"}={}){let r;return{get:n=>{if(typeof window>"u")return n;try{const o=window.localStorage.getItem(e);return ZV(o)?o:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{r=o=>{o.storageArea===window.localStorage&&o.key===e&&ZV(o.newValue)&&n(o.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const JPe="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",QV="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function uC(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function JV(e){if(!(e.primaryColor in e.colors))throw new Error(JPe);if(typeof e.primaryShade=="object"&&(!uC(e.primaryShade.dark)||!uC(e.primaryShade.light)))throw new Error(QV);if(typeof e.primaryShade=="number"&&!uC(e.primaryShade))throw new Error(QV)}function eMe(e,r){if(!r)return JV(e),e;const n=Q6(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(n.headings.fontFamily=r.fontFamily),JV(n),n}const dC=E.createContext(null),tMe=()=>E.useContext(dC)||cC;function ho(){const e=E.useContext(dC);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function eq({theme:e,children:r,inherit:n=!0}){const o=tMe(),a=E.useMemo(()=>eMe(n?o:cC,e),[e,o,n]);return b.jsx(dC.Provider,{value:a,children:r})}eq.displayName="@mantine/core/MantineThemeProvider";function rMe(){const e=ho(),r=Yd(),n=No(e.breakpoints).reduce((o,a)=>{const i=e.breakpoints[a].includes("px"),s=J6(e.breakpoints[a]),l=i?`${s-.1}px`:SV(s-.1),c=i?`${s}px`:SV(s);return`${o}@media (max-width: ${l}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${a} {display: none !important;}}`},"");return b.jsx("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:n}})}function hC(e){return Object.entries(e).map(([r,n])=>`${r}: ${n};`).join("")}function fC(e,r){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,r)}function nMe(e,r){const n=hC(e.variables),o=n?fC(r,n):"",a=hC(e.dark),i=hC(e.light),s=a?fC(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,a):"",l=i?fC(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,i):"";return`${o}

${s}

${l}`}function pC({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&uu({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function tq(e,r){return pC({color:e.colors[e.primaryColor][R1(e,r)],theme:e,autoContrast:null})}function e3({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const l=R1(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${l===9?8:l+1})`,[`--mantine-color-${o}-light`]:wp(e.colors[r][l],.1),[`--mantine-color-${o}-light-hover`]:wp(e.colors[r][l],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline-hover`]:wp(e.colors[r][l],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=R1(e,"dark"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:wp(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:wp(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:wp(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...s}:s}function oMe(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function kp(e,r,n){No(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}const rq=e=>{const r=R1(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Ne(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":tq(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":tq(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};kp(o.variables,e.breakpoints,"breakpoint"),kp(o.variables,e.spacing,"spacing"),kp(o.variables,e.fontSizes,"font-size"),kp(o.variables,e.lineHeights,"line-height"),kp(o.variables,e.shadows,"shadow"),kp(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,s)=>{o.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${e.primaryColor}-${s})`}),No(e.colors).forEach(i=>{const s=e.colors[i];if(oMe(s)){Object.assign(o.light,e3({theme:e,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,e3({theme:e,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((l,c)=>{o.variables[`--mantine-color-${i}-${c}`]=l}),Object.assign(o.light,e3({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,e3({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return No(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o};function aMe({theme:e,generator:r}){const n=rq(e),o=r?.(e);return o?Q6(n,o):n}const mC=rq(cC);function iMe(e){const r={variables:{},light:{},dark:{}};return No(e.variables).forEach(n=>{mC.variables[n]!==e.variables[n]&&(r.variables[n]=e.variables[n])}),No(e.light).forEach(n=>{mC.light[n]!==e.light[n]&&(r.light[n]=e.light[n])}),No(e.dark).forEach(n=>{mC.dark[n]!==e.dark[n]&&(r.dark[n]=e.dark[n])}),r}function sMe(e){return`
  ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
  ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function nq({cssVariablesSelector:e,deduplicateCssVariables:r}){const n=ho(),o=Yd(),a=zPe(),i=aMe({theme:n,generator:a}),s=e===":root"&&r,l=s?iMe(i):i,c=nMe(l,e);return c?b.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${c}${s?"":sMe(e)}`}}):null}nq.displayName="@mantine/CssVariables";function _p(e,r){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o=e!=="auto"?e:n?"dark":"light";r()?.setAttribute("data-mantine-color-scheme",o)}function lMe({manager:e,defaultColorScheme:r,getRootElement:n,forceColorScheme:o}){const a=E.useRef(null),[i,s]=E.useState(()=>e.get(r)),l=o||i,c=E.useCallback(d=>{o||(_p(d,n),s(d),e.set(d))},[e.set,l,o]),u=E.useCallback(()=>{s(r),_p(r,n),e.clear()},[e.clear,r]);return E.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),N1(()=>{_p(e.get(r),n)},[]),E.useEffect(()=>{if(o)return _p(o,n),()=>{};o===void 0&&_p(i,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const d=h=>{i==="auto"&&_p(h.matches?"dark":"light",n)};return a.current?.addEventListener("change",d),()=>a.current?.removeEventListener("change",d)},[i,o]),{colorScheme:l,setColorScheme:c,clearColorScheme:u}}function cMe({respectReducedMotion:e,getRootElement:r}){N1(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}function gC({theme:e,children:r,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:a=!0,deduplicateCssVariables:i=!0,withCssVariables:s=!0,cssVariablesSelector:l=":root",classNamesPrefix:c="mantine",colorSchemeManager:u=QPe(),defaultColorScheme:d="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:g,stylesTransform:y,env:x}){const{colorScheme:w,setColorScheme:k,clearColorScheme:C}=lMe({defaultColorScheme:d,forceColorScheme:g,manager:u,getRootElement:h});return cMe({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:h}),b.jsx(Zw.Provider,{value:{colorScheme:w,setColorScheme:k,clearColorScheme:C,getRootElement:h,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:l,withStaticClasses:o,stylesTransform:y,env:x},children:b.jsxs(eq,{theme:e,children:[s&&b.jsx(nq,{cssVariablesSelector:l,deduplicateCssVariables:i}),a&&b.jsx(rMe,{}),r]})})}gC.displayName="@mantine/core/MantineProvider";function yC({classNames:e,styles:r,props:n,stylesCtx:o}){const a=ho();return{resolvedClassNames:Gw({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:Kw({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const uMe={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function dMe({theme:e,options:r,unstyled:n}){return Ji(r?.focusable&&!n&&(e.focusClassName||uMe[e.focusRing]),r?.active&&!n&&e.activeClassName)}function hMe({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return Gw({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function oq({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return Gw({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function fMe({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function pMe({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function mMe({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function gMe({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>Gw({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function yMe({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function bMe({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:s,unstyled:l,className:c,rootSelector:u,props:d,stylesCtx:h,withStaticClasses:p,headless:g,transformedStyles:y}){return Ji(dMe({theme:e,options:r,unstyled:l||g}),gMe({theme:e,themeName:n,selector:o,props:d,stylesCtx:h}),yMe({options:r,classes:s,selector:o,unstyled:l}),oq({selector:o,stylesCtx:h,theme:e,classNames:i,props:d}),oq({selector:o,stylesCtx:h,theme:e,classNames:y,props:d}),hMe({selector:o,stylesCtx:h,options:r,props:d,theme:e}),fMe({rootSelector:u,selector:o,className:c}),pMe({selector:o,classes:s,unstyled:l||g}),p&&!g&&mMe({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function vMe({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>Kw({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,s)=>({...i,...s}),{})}function bC({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...bC({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function xMe(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...yp(n[o])}}),r),{})}function wMe({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:s,headless:l}){return xMe([l?{}:r?.(n,o,a),...s.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function kMe({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:s,styles:l,style:c,vars:u,varsResolver:d,headless:h,withStylesTransform:p}){return{...!p&&vMe({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!p&&Kw({theme:e,styles:l,props:a,stylesCtx:i})[n],...!p&&Kw({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...wMe({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:h}),...s===n?bC({style:c,theme:e}):null,...bC({style:o?.style,theme:e})}}function _Me({props:e,stylesCtx:r,themeName:n}){const o=ho(),a=UPe()?.();return{getTransformedStyles:i=>a?[...i.map(s=>a(s,{props:e,theme:o,ctx:r})),...n.map(s=>a(o.components[s]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function bt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:s="root",unstyled:l,classNames:c,styles:u,vars:d,varsResolver:h,attributes:p}){const g=ho(),y=jPe(),x=BPe(),w=FPe(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=_Me({props:n,stylesCtx:o,themeName:k});return(T,A)=>({className:bMe({theme:g,options:A,themeName:k,selector:T,classNamesPrefix:y,classNames:c,classes:r,unstyled:l,className:a,rootSelector:s,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([A?.styles,u])}),style:kMe({theme:g,themeName:k,selector:T,options:A,props:n,stylesCtx:o,rootSelector:s,styles:u,style:i,vars:d,varsResolver:h,headless:w,withStylesTransform:C}),...p?.[T]})}function EMe(e,r){return typeof e=="boolean"?e:r.autoContrast}function aq(e){const r=document.createElement("style");return r.setAttribute("data-mantine-styles","inline"),r.innerHTML="*, *::before, *::after {transition: none !important;}",r.setAttribute("data-mantine-disable-transition","true"),e&&r.setAttribute("nonce",e),document.head.appendChild(r),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(n=>n.remove())}function SMe({keepTransitions:e}={}){const r=E.useRef(AV),n=E.useRef(-1),o=E.useContext(Zw),a=Yd(),i=E.useRef(a?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const s=h=>{o.setColorScheme(h),r.current=e?()=>{}:aq(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},l=()=>{o.clearColorScheme(),r.current=e?()=>{}:aq(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},c=MV("light",{getInitialValueInEffect:!1}),u=o.colorScheme==="auto"?c:o.colorScheme,d=E.useCallback(()=>s(u==="light"?"dark":"light"),[s,u]);return E.useEffect(()=>()=>{r.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:s,clearColorScheme:l,toggleColorScheme:d}}function ze(e,r,n){const o=ho(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...yp(n)}}function vC(e){return No(e).reduce((r,n)=>e[n]!==void 0?`${r}${V$e(n)}:${e[n]};`:r,"").trim()}function CMe({selector:e,styles:r,media:n,container:o}){const a=r?vC(r):"",i=Array.isArray(n)?n.map(l=>`@media${l.query}{${e}{${vC(l.styles)}}}`):[],s=Array.isArray(o)?o.map(l=>`@container ${l.query}{${e}{${vC(l.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${s.join("")}`.trim()}function t3(e){const r=Yd();return b.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:CMe(e)}})}function iq(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:u,p:d,px:h,py:p,pt:g,pb:y,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:A,c:N,opacity:$,ff:R,fz:M,fw:O,lts:B,ta:I,lh:Y,fs:D,tt:V,td:L,w:U,miw:q,maw:X,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:G,bga:Z,pos:oe,top:ee,left:re,bottom:he,right:Ce,inset:ce,display:de,flex:be,hiddenFrom:De,visibleFrom:Ge,lightHidden:Xe,darkHidden:_t,sx:Qe,...St}=e;return{styleProps:yp({m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:u,p:d,px:h,py:p,pt:g,pb:y,pl:x,pr:w,pe:k,ps:C,bd:_,bg:A,c:N,opacity:$,ff:R,fz:M,fw:O,lts:B,ta:I,lh:Y,fs:D,tt:V,td:L,w:U,miw:q,maw:X,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:G,bga:Z,pos:oe,top:ee,left:re,bottom:he,right:Ce,inset:ce,display:de,flex:be,bdrs:T,hiddenFrom:De,visibleFrom:Ge,lightHidden:Xe,darkHidden:_t,sx:Qe}),rest:St}}const TMe={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function xC(e,r){const n=uu({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function AMe(e,r){const n=uu({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:xC(e,r)}function NMe(e,r){if(typeof e=="number")return Ne(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(s=>s.trim()!=="");let i=`${Ne(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${xC(a.join(" "),r)}`),i.trim()}return e}const sq={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function RMe(e){return typeof e=="string"&&e in sq?sq[e]:e}const $Me=["h1","h2","h3","h4","h5","h6"];function PMe(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&$Me.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Ne(e):e}function MMe(e){return e}const OMe=["h1","h2","h3","h4","h5","h6"];function DMe(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&OMe.includes(e)?`var(--mantine-${e}-line-height)`:e}function LMe(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Ne(e):e}function IMe(e){return typeof e=="number"?Ne(e):e}function zMe(e,r){if(typeof e=="number")return Ne(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return Ne(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const wC={color:xC,textColor:AMe,fontSize:PMe,spacing:zMe,radius:LMe,identity:MMe,size:IMe,lineHeight:DMe,fontFamily:RMe,border:NMe};function lq(e){return e.replace("(min-width: ","").replace("em)","")}function jMe({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(lq(o))-Number(lq(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function BMe(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function FMe(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function HMe(e){return typeof e=="object"&&e!==null?No(e).filter(r=>r!=="base"):[]}function UMe(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function cq({styleProps:e,data:r,theme:n}){return jMe(No(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],s=Array.isArray(i.property)?i.property:[i.property],l=FMe(e[a]);if(!BMe(e[a]))return s.forEach(u=>{o.inlineStyles[u]=wC[i.type](l,n)}),o;o.hasResponsiveStyles=!0;const c=HMe(e[a]);return s.forEach(u=>{l!=null&&(o.styles[u]=wC[i.type](l,n)),c.forEach(d=>{const h=`(min-width: ${n.breakpoints[d]})`;o.media[h]={...o.media[h],[u]:wC[i.type](UMe(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function r3(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function kC(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...kC(o,r)}),{}):typeof e=="function"?e(r):e??{}}function uq(e){return e.startsWith("data-")?e:`data-${e}`}function VMe(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[uq(n)]=e[n]),r},{})}function dq(e){return e?typeof e=="string"?{[uq(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...dq(n)}),{}):VMe(e):null}function _C(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,..._C(o,r)}),{}):typeof e=="function"?e(r):e??{}}function qMe({theme:e,style:r,vars:n,styleProps:o}){const a=_C(r,e),i=_C(n,e);return{...a,...i,...o}}const hq=E.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:s,hiddenFrom:l,visibleFrom:c,lightHidden:u,darkHidden:d,renderRoot:h,__size:p,...g},y)=>{const x=ho(),w=e||"div",{styleProps:k,rest:C}=iq(g),_=HPe()?.()?.(k.sx),T=r3(),A=cq({styleProps:k,theme:x,data:TMe}),N={ref:y,style:qMe({theme:x,style:r,vars:n,styleProps:A.inlineStyles}),className:Ji(o,_,{[T]:A.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":CV(s)?void 0:s||void 0,size:p,...dq(i),...C};return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(t3,{selector:`.${T}`,styles:A.styles,media:A.media}),typeof h=="function"?h(N):b.jsx(w,{...N})]})});hq.displayName="@mantine/core/Box";const Se=hq;function fq(e){return e}function YMe(e){const r=e;return n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o}}function st(e){const r=E.forwardRef(e);return r.extend=fq,r.withProps=n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function Gn(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=fq,r}const WMe=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function du(){return E.useContext(WMe)}function XMe(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function EC(e){return e?.current?e.current.scrollHeight:"auto"}const n3=typeof window<"u"&&window.requestAnimationFrame,pq=0,GMe=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function KMe({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),s=GMe(a),[l,c]=E.useState(o?{}:s),u=y=>{ji.flushSync(()=>c(y))},d=y=>{u(x=>({...x,...y}))};function h(y){const x=e||XMe(y);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}qd(()=>{typeof n3=="function"&&n3(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),n3(()=>{const y=EC(i);d({...h(y),height:y})})}:()=>{const y=EC(i);d({...h(y),willChange:"height",height:y}),n3(()=>d({height:pq,overflow:"hidden"}))})},[o]);const p=y=>{if(!(y.target!==i.current||y.propertyName!=="height"))if(o){const x=EC(i);x===l.height?u({}):d({height:x}),n()}else l.height===pq&&(u(s),n())};function g({style:y={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:jV(i,k),onTransitionEnd:p,style:{boxSizing:"border-box",...y,...l}};return Gr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const ZMe={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},mq=st((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:s,onTransitionEnd:l,animateOpacity:c,keepMounted:u,...d}=ze("Collapse",ZMe,e),h=ho(),p=FV(),g=h.respectReducedMotion&&p?0:a,y=KMe({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:l,keepMounted:u});return g===0?o?b.jsx(Se,{...d,children:n}):null:b.jsx(Se,{...y({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...kC(s,h)},ref:r,...d}),children:n})});mq.displayName="@mantine/core/Collapse";function o3(){return typeof window<"u"}function Ep(e){return gq(e)?(e.nodeName||"").toLowerCase():"#document"}function ea(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function tl(e){var r;return(r=(gq(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function gq(e){return o3()?e instanceof Node||e instanceof ea(e).Node:!1}function $r(e){return o3()?e instanceof Element||e instanceof ea(e).Element:!1}function Aa(e){return o3()?e instanceof HTMLElement||e instanceof ea(e).HTMLElement:!1}function SC(e){return!o3()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ea(e).ShadowRoot}const QMe=new Set(["inline","contents"]);function P1(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!QMe.has(a)}const JMe=new Set(["table","td","th"]);function eOe(e){return JMe.has(Ep(e))}const tOe=[":popover-open",":modal"];function a3(e){return tOe.some(r=>{try{return e.matches(r)}catch{return!1}})}const rOe=["transform","translate","scale","rotate","perspective"],nOe=["transform","translate","scale","rotate","perspective","filter"],oOe=["paint","layout","strict","content"];function CC(e){const r=i3(),n=$r(e)?ni(e):e;return rOe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||nOe.some(o=>(n.willChange||"").includes(o))||oOe.some(o=>(n.contain||"").includes(o))}function aOe(e){let r=Yl(e);for(;Aa(r)&&!ql(r);){if(CC(r))return r;if(a3(r))return null;r=Yl(r)}return null}function i3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iOe=new Set(["html","body","#document"]);function ql(e){return iOe.has(Ep(e))}function ni(e){return ea(e).getComputedStyle(e)}function s3(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yl(e){if(Ep(e)==="html")return e;const r=e.assignedSlot||e.parentNode||SC(e)&&e.host||tl(e);return SC(r)?r.host:r}function yq(e){const r=Yl(e);return ql(r)?e.ownerDocument?e.ownerDocument.body:e.body:Aa(r)&&P1(r)?r:yq(r)}function Wl(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=yq(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),s=ea(a);if(i){const l=TC(s);return r.concat(s,s.visualViewport||[],P1(a)?a:[],l&&n?Wl(l):[])}return r.concat(a,Wl(a,[],n))}function TC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const bq=["top","right","bottom","left"],vq=["start","end"],xq=bq.reduce((e,r)=>e.concat(r,r+"-"+vq[0],r+"-"+vq[1]),[]),es=Math.min,$o=Math.max,l3=Math.round,c3=Math.floor,rl=e=>({x:e,y:e}),sOe={left:"right",right:"left",bottom:"top",top:"bottom"},lOe={start:"end",end:"start"};function AC(e,r,n){return $o(e,es(r,n))}function ts(e,r){return typeof e=="function"?e(r):e}function Na(e){return e.split("-")[0]}function rs(e){return e.split("-")[1]}function NC(e){return e==="x"?"y":"x"}function RC(e){return e==="y"?"height":"width"}const cOe=new Set(["top","bottom"]);function ns(e){return cOe.has(Na(e))?"y":"x"}function $C(e){return NC(ns(e))}function wq(e,r,n){n===void 0&&(n=!1);const o=rs(e),a=$C(e),i=RC(a);let s=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=d3(s)),[s,d3(s)]}function uOe(e){const r=d3(e);return[u3(e),r,u3(r)]}function u3(e){return e.replace(/start|end/g,r=>lOe[r])}const kq=["left","right"],_q=["right","left"],dOe=["top","bottom"],hOe=["bottom","top"];function fOe(e,r,n){switch(e){case"top":case"bottom":return n?r?_q:kq:r?kq:_q;case"left":case"right":return r?dOe:hOe;default:return[]}}function pOe(e,r,n,o){const a=rs(e);let i=fOe(Na(e),n==="start",o);return a&&(i=i.map(s=>s+"-"+a),r&&(i=i.concat(i.map(u3)))),i}function d3(e){return e.replace(/left|right|bottom|top/g,r=>sOe[r])}function mOe(e){return{top:0,right:0,bottom:0,left:0,...e}}function PC(e){return typeof e!="number"?mOe(e):{top:e,right:e,bottom:e,left:e}}function Sp(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function gOe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function yOe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function bOe(){return/apple/i.test(navigator.vendor)}function vOe(){return gOe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function xOe(){return yOe().includes("jsdom/")}const Eq="data-floating-ui-focusable",wOe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Sq(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function M1(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&SC(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Cp(e){return"composedPath"in e?e.composedPath()[0]:e.target}function MC(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function kOe(e){return e.matches("html,body")}function Wd(e){return e?.ownerDocument||document}function _Oe(e){return Aa(e)&&e.matches(wOe)}function EOe(e){if(!e||xOe())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function SOe(e){return e?e.hasAttribute(Eq)?e:e.querySelector("["+Eq+"]")||e:null}function h3(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...h3(e,o.id,n)])}function COe(e){return"nativeEvent"in e}function OC(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var TOe=typeof document<"u",AOe=function(){},nl=TOe?E.useLayoutEffect:AOe;const NOe={...Vv};function f3(e){const r=E.useRef(e);return nl(()=>{r.current=e}),r}const ROe=NOe.useInsertionEffect,$Oe=ROe||(e=>e());function ol(e){const r=E.useRef(()=>{});return $Oe(()=>{r.current=e}),E.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r.current==null?void 0:r.current(...o)},[])}function Cq(e,r,n){let{reference:o,floating:a}=e;const i=ns(r),s=$C(r),l=RC(s),c=Na(r),u=i==="y",d=o.x+o.width/2-a.width/2,h=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-a.width,y:h};break;default:g={x:o.x,y:o.y}}switch(rs(r)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const POe=async(e,r,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(r));let u=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:d,y:h}=Cq(u,o,c),p=o,g={},y=0;for(let x=0;x<l.length;x++){const{name:w,fn:k}=l[x],{x:C,y:_,data:T,reset:A}=await k({x:d,y:h,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:r}});d=C??d,h=_??h,g={...g,[w]:{...g[w],...T}},A&&y<=50&&(y++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:a}):A.rects),{x:d,y:h}=Cq(u,p,c)),x=-1)}return{x:d,y:h,placement:p,strategy:a,middlewareData:g}};async function Tp(e,r){var n;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=ts(r,e),y=PC(g),x=l[p?h==="floating"?"reference":"floating":h],w=Sp(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),k=h==="floating"?{x:o,y:a,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Sp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:C,strategy:c}):k);return{top:(w.top-T.top+y.top)/_.y,bottom:(T.bottom-w.bottom+y.bottom)/_.y,left:(w.left-T.left+y.left)/_.x,right:(T.right-w.right+y.right)/_.x}}const MOe=e=>({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=r,{element:u,padding:d=0}=ts(e,r)||{};if(u==null)return{};const h=PC(d),p={x:n,y:o},g=$C(a),y=RC(g),x=await s.getDimensions(u),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[y]+i.reference[g]-p[g]-i.floating[y],A=p[g]-i.reference[g],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let $=N?N[_]:0;(!$||!await(s.isElement==null?void 0:s.isElement(N)))&&($=l.floating[_]||i.floating[y]);const R=T/2-A/2,M=$/2-x[y]/2-1,O=es(h[k],M),B=es(h[C],M),I=O,Y=$-x[y]-B,D=$/2-x[y]/2+R,V=AC(I,D,Y),L=!c.arrow&&rs(a)!=null&&D!==V&&i.reference[y]/2-(D<I?O:B)-x[y]/2<0,U=L?D<I?D-I:D-Y:0;return{[g]:p[g]+U,data:{[g]:V,centerOffset:D-V-U,...L&&{alignmentOffset:U}},reset:L}}});function OOe(e,r,n){return(e?[...n.filter(o=>rs(o)===e),...n.filter(o=>rs(o)!==e)]:n.filter(o=>Na(o)===o)).filter(o=>e?rs(o)===e||(r?u3(o)!==o:!1):!0)}const DOe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var n,o,a;const{rects:i,middlewareData:s,placement:l,platform:c,elements:u}=r,{crossAxis:d=!1,alignment:h,allowedPlacements:p=xq,autoAlignment:g=!0,...y}=ts(e,r),x=h!==void 0||p===xq?OOe(h||null,g,p):p,w=await Tp(r,y),k=((n=s.autoPlacement)==null?void 0:n.index)||0,C=x[k];if(C==null)return{};const _=wq(C,i,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(l!==C)return{reset:{placement:x[0]}};const T=[w[Na(C)],w[_[0]],w[_[1]]],A=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:T}],N=x[k+1];if(N)return{data:{index:k+1,overflows:A},reset:{placement:N}};const $=A.map(M=>{const O=rs(M.placement);return[M.placement,O&&d?M.overflows.slice(0,2).reduce((B,I)=>B+I,0):M.overflows[0],M.overflows]}).sort((M,O)=>M[1]-O[1]),R=((a=$.filter(M=>M[2].slice(0,rs(M[0])?2:3).every(O=>O<=0))[0])==null?void 0:a[0])||$[0][0];return R!==l?{data:{index:k+1,overflows:A},reset:{placement:R}}:{}}}},LOe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=r,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...w}=ts(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Na(a),C=ns(l),_=Na(l)===l,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),A=p||(_||!x?[d3(l)]:uOe(l)),N=y!=="none";!p&&N&&A.push(...pOe(l,x,y,T));const $=[l,...A],R=await Tp(r,w),M=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&M.push(R[k]),h){const D=wq(a,s,T);M.push(R[D[0]],R[D[1]])}if(O=[...O,{placement:a,overflows:M}],!M.every(D=>D<=0)){var B,I;const D=(((B=i.flip)==null?void 0:B.index)||0)+1,V=$[D];if(V&&(!(h==="alignment"&&C!==ns(V))||O.every(U=>ns(U.placement)===C?U.overflows[0]>0:!0)))return{data:{index:D,overflows:O},reset:{placement:V}};let L=(I=O.filter(U=>U.overflows[0]<=0).sort((U,q)=>U.overflows[1]-q.overflows[1])[0])==null?void 0:I.placement;if(!L)switch(g){case"bestFit":{var Y;const U=(Y=O.filter(q=>{if(N){const X=ns(q.placement);return X===C||X==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(X=>X>0).reduce((X,F)=>X+F,0)]).sort((q,X)=>q[1]-X[1])[0])==null?void 0:Y[0];U&&(L=U);break}case"initialPlacement":L=l;break}if(a!==L)return{reset:{placement:L}}}return{}}}};function Tq(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Aq(e){return bq.some(r=>e[r]>=0)}const IOe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=ts(e,r);switch(o){case"referenceHidden":{const i=await Tp(r,{...a,elementContext:"reference"}),s=Tq(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Aq(s)}}}case"escaped":{const i=await Tp(r,{...a,altBoundary:!0}),s=Tq(i,n.floating);return{data:{escapedOffsets:s,escaped:Aq(s)}}}default:return{}}}}};function Nq(e){const r=es(...e.map(i=>i.left)),n=es(...e.map(i=>i.top)),o=$o(...e.map(i=>i.right)),a=$o(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function zOe(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;a<r.length;a++){const i=r[a];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>Sp(Nq(a)))}const jOe=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:s}=r,{padding:l=2,x:c,y:u}=ts(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),h=zOe(d),p=Sp(Nq(d)),g=PC(l);function y(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&u!=null)return h.find(w=>c>w.left-g.left&&c<w.right+g.right&&u>w.top-g.top&&u<w.bottom+g.bottom)||p;if(h.length>=2){if(ns(n)==="y"){const O=h[0],B=h[h.length-1],I=Na(n)==="top",Y=O.top,D=B.bottom,V=I?O.left:B.left,L=I?O.right:B.right,U=L-V,q=D-Y;return{top:Y,bottom:D,left:V,right:L,width:U,height:q,x:V,y:Y}}const w=Na(n)==="left",k=$o(...h.map(O=>O.right)),C=es(...h.map(O=>O.left)),_=h.filter(O=>w?O.left===C:O.right===k),T=_[0].top,A=_[_.length-1].bottom,N=C,$=k,R=$-N,M=A-T;return{top:T,bottom:A,left:N,right:$,width:R,height:M,x:N,y:T}}return p}const x=await i.getElementRects({reference:{getBoundingClientRect:y},floating:o.floating,strategy:s});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},Rq=new Set(["left","top"]);async function BOe(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),s=Na(n),l=rs(n),c=ns(n)==="y",u=Rq.has(s)?-1:1,d=i&&c?-1:1,h=ts(r,e);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(g=l==="end"?y*-1:y),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const FOe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:s,middlewareData:l}=r,c=await BOe(r,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},HOe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=ts(e,r),u={x:n,y:o},d=await Tp(r,c),h=ns(Na(a)),p=NC(h);let g=u[p],y=u[h];if(i){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=g+d[w],_=g-d[k];g=AC(C,g,_)}if(s){const w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",C=y+d[w],_=y-d[k];y=AC(C,y,_)}const x=l.fn({...r,[p]:g,[h]:y});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[p]:i,[h]:s}}}}}},UOe=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:s}=r,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=ts(e,r),d={x:n,y:o},h=ns(a),p=NC(h);let g=d[p],y=d[h];const x=ts(l,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=p==="y"?"height":"width",T=i.reference[p]-i.floating[_]+w.mainAxis,A=i.reference[p]+i.reference[_]-w.mainAxis;g<T?g=T:g>A&&(g=A)}if(u){var k,C;const _=p==="y"?"width":"height",T=Rq.has(Na(a)),A=i.reference[h]-i.floating[_]+(T&&((k=s.offset)==null?void 0:k[h])||0)+(T?0:w.crossAxis),N=i.reference[h]+i.reference[_]+(T?0:((C=s.offset)==null?void 0:C[h])||0)-(T?w.crossAxis:0);y<A?y=A:y>N&&(y=N)}return{[p]:g,[h]:y}}}},VOe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...u}=ts(e,r),d=await Tp(r,u),h=Na(a),p=rs(a),g=ns(a)==="y",{width:y,height:x}=i.floating;let w,k;h==="top"||h==="bottom"?(w=h,k=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(k=h,w=p==="end"?"top":"bottom");const C=x-d.top-d.bottom,_=y-d.left-d.right,T=es(x-d[w],C),A=es(y-d[k],_),N=!r.middlewareData.shift;let $=T,R=A;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(R=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&($=C),N&&!p){const O=$o(d.left,0),B=$o(d.right,0),I=$o(d.top,0),Y=$o(d.bottom,0);g?R=y-2*(O!==0||B!==0?O+B:$o(d.left,d.right)):$=x-2*(I!==0||Y!==0?I+Y:$o(d.top,d.bottom))}await c({...r,availableWidth:R,availableHeight:$});const M=await s.getDimensions(l.floating);return y!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}};function $q(e){const r=ni(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Aa(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:o,l=l3(n)!==i||l3(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function DC(e){return $r(e)?e:e.contextElement}function Ap(e){const r=DC(e);if(!Aa(r))return rl(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=$q(r);let s=(i?l3(n.width):n.width)/o,l=(i?l3(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const qOe=rl(0);function Pq(e){const r=ea(e);return!i3()||!r.visualViewport?qOe:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YOe(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ea(e)?!1:r}function Xd(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=DC(e);let s=rl(1);r&&(o?$r(o)&&(s=Ap(o)):s=Ap(e));const l=YOe(i,n,o)?Pq(i):rl(0);let c=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,d=a.width/s.x,h=a.height/s.y;if(i){const p=ea(i),g=o&&$r(o)?ea(o):o;let y=p,x=TC(y);for(;x&&o&&g!==y;){const w=Ap(x),k=x.getBoundingClientRect(),C=ni(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,h*=w.y,c+=_,u+=T,y=ea(x),x=TC(y)}}return Sp({width:d,height:h,x:c,y:u})}function p3(e,r){const n=s3(e).scrollLeft;return r?r.left+n:Xd(tl(e)).left+n}function Mq(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-p3(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function WOe(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",s=tl(o),l=r?a3(r.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=rl(1);const d=rl(0),h=Aa(o);if((h||!h&&!i)&&((Ep(o)!=="body"||P1(s))&&(c=s3(o)),Aa(o))){const g=Xd(o);u=Ap(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const p=s&&!h&&!i?Mq(s,c):rl(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function XOe(e){return Array.from(e.getClientRects())}function GOe(e){const r=tl(e),n=s3(e),o=e.ownerDocument.body,a=$o(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=$o(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+p3(e);const l=-n.scrollTop;return ni(o).direction==="rtl"&&(s+=$o(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}const Oq=25;function KOe(e,r){const n=ea(e),o=tl(e),a=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const d=i3();(!d||d&&r==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const u=p3(o);if(u<=0){const d=o.ownerDocument,h=d.body,p=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(o.clientWidth-h.clientWidth-g);y<=Oq&&(i-=y)}else u<=Oq&&(i+=u);return{width:i,height:s,x:l,y:c}}const ZOe=new Set(["absolute","fixed"]);function QOe(e,r){const n=Xd(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Aa(e)?Ap(e):rl(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,u=o*i.y;return{width:s,height:l,x:c,y:u}}function Dq(e,r,n){let o;if(r==="viewport")o=KOe(e,n);else if(r==="document")o=GOe(tl(e));else if($r(r))o=QOe(r,n);else{const a=Pq(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Sp(o)}function Lq(e,r){const n=Yl(e);return n===r||!$r(n)||ql(n)?!1:ni(n).position==="fixed"||Lq(n,r)}function JOe(e,r){const n=r.get(e);if(n)return n;let o=Wl(e,[],!1).filter(l=>$r(l)&&Ep(l)!=="body"),a=null;const i=ni(e).position==="fixed";let s=i?Yl(e):e;for(;$r(s)&&!ql(s);){const l=ni(s),c=CC(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&a&&ZOe.has(a.position)||P1(s)&&!c&&Lq(e,s))?o=o.filter(u=>u!==s):a=l,s=Yl(s)}return r.set(e,o),o}function eDe(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?a3(r)?[]:JOe(r,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,u)=>{const d=Dq(r,u,a);return c.top=$o(d.top,c.top),c.right=es(d.right,c.right),c.bottom=es(d.bottom,c.bottom),c.left=$o(d.left,c.left),c},Dq(r,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tDe(e){const{width:r,height:n}=$q(e);return{width:r,height:n}}function rDe(e,r,n){const o=Aa(r),a=tl(r),i=n==="fixed",s=Xd(e,!0,i,r);let l={scrollLeft:0,scrollTop:0};const c=rl(0);function u(){c.x=p3(a)}if(o||!o&&!i)if((Ep(r)!=="body"||P1(a))&&(l=s3(r)),o){const g=Xd(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&u();i&&!o&&a&&u();const d=a&&!o&&!i?Mq(a,l):rl(0),h=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function LC(e){return ni(e).position==="static"}function Iq(e,r){if(!Aa(e)||ni(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return tl(e)===n&&(n=n.ownerDocument.body),n}function zq(e,r){const n=ea(e);if(a3(e))return n;if(!Aa(e)){let a=Yl(e);for(;a&&!ql(a);){if($r(a)&&!LC(a))return a;a=Yl(a)}return n}let o=Iq(e,r);for(;o&&eOe(o)&&LC(o);)o=Iq(o,r);return o&&ql(o)&&LC(o)&&!CC(o)?n:o||aOe(e)||n}const nDe=async function(e){const r=this.getOffsetParent||zq,n=this.getDimensions,o=await n(e.floating);return{reference:rDe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function oDe(e){return ni(e).direction==="rtl"}const aDe={convertOffsetParentRelativeRectToViewportRelativeRect:WOe,getDocumentElement:tl,getClippingRect:eDe,getOffsetParent:zq,getElementRects:nDe,getClientRects:XOe,getDimensions:tDe,getScale:Ap,isElement:$r,isRTL:oDe};function jq(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function iDe(e,r){let n=null,o;const a=tl(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(l||r(),!p||!g)return;const y=c3(h),x=c3(a.clientWidth-(d+p)),w=c3(a.clientHeight-(h+g)),k=c3(d),C={rootMargin:-y+"px "+-x+"px "+-w+"px "+-k+"px",threshold:$o(0,es(1,c))||1};let _=!0;function T(A){const N=A[0].intersectionRatio;if(N!==c){if(!_)return s();N?s(!1,N):o=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!jq(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function m3(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=DC(e),d=a||i?[...u?Wl(u):[],...Wl(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const h=u&&l?iDe(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),u&&!c&&g.observe(u),g.observe(r));let y,x=c?Xd(e):null;c&&w();function w(){const k=Xd(e);x&&!jq(x,k)&&n(),x=k,y=requestAnimationFrame(w)}return n(),()=>{var k;d.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(y)}}const Bq=FOe,sDe=DOe,lDe=HOe,cDe=LOe,Fq=VOe,Hq=IOe,Uq=MOe,uDe=jOe,dDe=UOe,Vq=(e,r,n)=>{const o=new Map,a={platform:aDe,...n},i={...a.platform,_c:o};return POe(e,r,{...a,platform:i})};var hDe=typeof document<"u",fDe=function(){},g3=hDe?E.useLayoutEffect:fDe;function y3(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!y3(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!y3(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function qq(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yq(e,r){const n=qq(e);return Math.round(r*n)/n}function IC(e){const r=E.useRef(e);return g3(()=>{r.current=e}),r}function pDe(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[p,g]=E.useState(o);y3(p,o)||g(o);const[y,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(q=>{q!==N.current&&(N.current=q,x(q))},[]),_=E.useCallback(q=>{q!==$.current&&($.current=q,k(q))},[]),T=i||y,A=s||w,N=E.useRef(null),$=E.useRef(null),R=E.useRef(d),M=c!=null,O=IC(c),B=IC(a),I=IC(u),Y=E.useCallback(()=>{if(!N.current||!$.current)return;const q={placement:r,strategy:n,middleware:p};B.current&&(q.platform=B.current),Vq(N.current,$.current,q).then(X=>{const F={...X,isPositioned:I.current!==!1};D.current&&!y3(R.current,F)&&(R.current=F,ji.flushSync(()=>{h(F)}))})},[p,r,n,B,I]);g3(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(q=>({...q,isPositioned:!1})))},[u]);const D=E.useRef(!1);g3(()=>(D.current=!0,()=>{D.current=!1}),[]),g3(()=>{if(T&&(N.current=T),A&&($.current=A),T&&A){if(O.current)return O.current(T,A,Y);Y()}},[T,A,Y,O,M]);const V=E.useMemo(()=>({reference:N,floating:$,setReference:C,setFloating:_}),[C,_]),L=E.useMemo(()=>({reference:T,floating:A}),[T,A]),U=E.useMemo(()=>{const q={position:n,left:0,top:0};if(!L.floating)return q;const X=Yq(L.floating,d.x),F=Yq(L.floating,d.y);return l?{...q,transform:"translate("+X+"px, "+F+"px)",...qq(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:F}},[n,l,L.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:Y,refs:V,elements:L,floatingStyles:U}),[d,Y,V,L,U])}const mDe=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?Uq({element:o.current,padding:a}).fn(n):{}:o?Uq({element:o,padding:a}).fn(n):{}}}},Wq=(e,r)=>({...Bq(e),options:[e,r]}),zC=(e,r)=>({...lDe(e),options:[e,r]}),Xq=(e,r)=>({...dDe(e),options:[e,r]}),b3=(e,r)=>({...cDe(e),options:[e,r]}),gDe=(e,r)=>({...Fq(e),options:[e,r]}),yDe=(e,r)=>({...Hq(e),options:[e,r]}),O1=(e,r)=>({...uDe(e),options:[e,r]}),Gq=(e,r)=>({...mDe(e),options:[e,r]});function Kq(e){const r=E.useRef(void 0),n=E.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const s=i,l=s(o);return typeof l=="function"?l:()=>{s(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const bDe="data-floating-ui-focusable",Zq="active",Qq="selected",vDe={...Vv};let Jq=!1,xDe=0;const eY=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xDe++;function wDe(){const[e,r]=E.useState(()=>Jq?eY():void 0);return nl(()=>{e==null&&r(eY())},[]),E.useEffect(()=>{Jq=!0},[]),e}const kDe=vDe.useId,tY=kDe||wDe;function _De(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const EDe=E.createContext(null),SDe=E.createContext(null),jC=()=>{var e;return((e=E.useContext(EDe))==null?void 0:e.id)||null},BC=()=>E.useContext(SDe);function FC(e){return"data-floating-ui-"+e}function oi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const rY=FC("safe-polygon");function v3(e,r,n){if(n&&!OC(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function HC(e){return typeof e=="function"?e():e}function nY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:h=0,move:p=!0}=r,g=BC(),y=jC(),x=f3(u),w=f3(c),k=f3(n),C=f3(h),_=E.useRef(),T=E.useRef(-1),A=E.useRef(),N=E.useRef(-1),$=E.useRef(!0),R=E.useRef(!1),M=E.useRef(()=>{}),O=E.useRef(!1),B=ol(()=>{var U;const q=(U=a.current.openEvent)==null?void 0:U.type;return q?.includes("mouse")&&q!=="mousedown"});E.useEffect(()=>{if(!l)return;function U(q){let{open:X}=q;X||(oi(T),oi(N),$.current=!0,O.current=!1)}return i.on("openchange",U),()=>{i.off("openchange",U)}},[l,i]),E.useEffect(()=>{if(!l||!x.current||!n)return;function U(X){B()&&o(!1,X,"hover")}const q=Wd(s.floating).documentElement;return q.addEventListener("mouseleave",U),()=>{q.removeEventListener("mouseleave",U)}},[s.floating,n,o,l,x,B]);const I=E.useCallback(function(U,q,X){q===void 0&&(q=!0),X===void 0&&(X="hover");const F=v3(w.current,"close",_.current);F&&!A.current?(oi(T),T.current=window.setTimeout(()=>o(!1,U,X),F)):q&&(oi(T),o(!1,U,X))},[w,o]),Y=ol(()=>{M.current(),A.current=void 0}),D=ol(()=>{if(R.current){const U=Wd(s.floating).body;U.style.pointerEvents="",U.removeAttribute(rY),R.current=!1}}),V=ol(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!l)return;function U(Q){if(oi(T),$.current=!1,d&&!OC(_.current)||HC(C.current)>0&&!v3(w.current,"open"))return;const z=v3(w.current,"open",_.current);z?T.current=window.setTimeout(()=>{k.current||o(!0,Q,"hover")},z):n||o(!0,Q,"hover")}function q(Q){if(V()){D();return}M.current();const z=Wd(s.floating);if(oi(N),O.current=!1,x.current&&a.current.floatingContext){n||oi(T),A.current=x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){D(),Y(),V()||I(Q,!0,"safe-polygon")}});const W=A.current;z.addEventListener("mousemove",W),M.current=()=>{z.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!M1(s.floating,Q.relatedTarget))&&I(Q)}function X(Q){V()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){D(),Y(),V()||I(Q)}})(Q))}function F(){oi(T)}function J(Q){V()||I(Q,!1)}if($r(s.domReference)){const Q=s.domReference,z=s.floating;return n&&Q.addEventListener("mouseleave",X),p&&Q.addEventListener("mousemove",U,{once:!0}),Q.addEventListener("mouseenter",U),Q.addEventListener("mouseleave",q),z&&(z.addEventListener("mouseleave",X),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",J)),()=>{n&&Q.removeEventListener("mouseleave",X),p&&Q.removeEventListener("mousemove",U),Q.removeEventListener("mouseenter",U),Q.removeEventListener("mouseleave",q),z&&(z.removeEventListener("mouseleave",X),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",J))}}},[s,l,e,d,p,I,Y,D,o,n,k,g,w,x,a,V,C]),nl(()=>{var U;if(l&&n&&(U=x.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&B()){R.current=!0;const X=s.floating;if($r(s.domReference)&&X){var q;const F=Wd(s.floating).body;F.setAttribute(rY,"");const J=s.domReference,Q=g==null||(q=g.nodesRef.current.find(z=>z.id===y))==null||(q=q.context)==null?void 0:q.elements.floating;return Q&&(Q.style.pointerEvents=""),F.style.pointerEvents="none",J.style.pointerEvents="auto",X.style.pointerEvents="auto",()=>{F.style.pointerEvents="",J.style.pointerEvents="",X.style.pointerEvents=""}}}},[l,n,y,s,g,x,B]),nl(()=>{n||(_.current=void 0,O.current=!1,Y(),D())},[n,Y,D]),E.useEffect(()=>()=>{Y(),oi(T),oi(N),D()},[l,s.domReference,Y,D]);const L=E.useMemo(()=>{function U(q){_.current=q.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(q){const{nativeEvent:X}=q;function F(){!$.current&&!k.current&&o(!0,X,"hover")}d&&!OC(_.current)||n||HC(C.current)===0||O.current&&q.movementX**2+q.movementY**2<2||(oi(N),_.current==="touch"?F():(O.current=!0,N.current=window.setTimeout(F,HC(C.current))))}}},[d,o,n,k,C]);return E.useMemo(()=>l?{reference:L}:{},[l,L])}const UC=()=>{},oY=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:UC,setState:UC,isInstantPhase:!1}),CDe=()=>E.useContext(oY);function aY(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=E.useRef(null),l=E.useCallback(c=>{i({currentId:c})},[]);return nl(()=>{a.currentId?s.current===null?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[a.currentId,a.isInstantPhase]),b.jsx(oY.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:l}),[a,l]),children:r})}function iY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:s=!0}=r,l=i??a,c=CDe(),{currentId:u,setCurrentId:d,initialDelay:h,setState:p,timeoutMs:g}=c;return nl(()=>{s&&u&&(p({delay:{open:1,close:v3(h,"close")}}),u!==l&&o(!1))},[s,l,o,p,u,h]),nl(()=>{function y(){o(!1),p({delay:h,currentId:null})}if(s&&u&&!n&&u===l){if(g){const x=window.setTimeout(y,g);return()=>{clearTimeout(x)}}y()}},[s,n,p,u,l,o,h,g]),nl(()=>{s&&(d===UC||!n||d(l))},[s,n,d,l]),c}const TDe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ADe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},sY=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function lY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:h="pointerdown",ancestorScroll:p=!1,bubbles:g,capture:y}=r,x=BC(),w=ol(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=sY(g),{escapeKey:A,outsidePress:N}=sY(y),$=E.useRef(!1),R=ol(D=>{var V;if(!n||!s||!l||D.key!=="Escape"||$.current)return;const L=(V=i.current.floatingContext)==null?void 0:V.nodeId,U=x?h3(x.nodesRef.current,L):[];if(!_&&(D.stopPropagation(),U.length>0)){let q=!0;if(U.forEach(X=>{var F;if((F=X.context)!=null&&F.open&&!X.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o(!1,COe(D)?D.nativeEvent:D,"escape-key")}),M=ol(D=>{var V;const L=()=>{var U;R(D),(U=Cp(D))==null||U.removeEventListener("keydown",L)};(V=Cp(D))==null||V.addEventListener("keydown",L)}),O=ol(D=>{var V;const L=i.current.insideReactTree;i.current.insideReactTree=!1;const U=C.current;if(C.current=!1,u==="click"&&U||L||typeof k=="function"&&!k(D))return;const q=Cp(D),X="["+FC("inert")+"]",F=Wd(a.floating).querySelectorAll(X);let J=$r(q)?q:null;for(;J&&!ql(J);){const G=Yl(J);if(ql(G)||!$r(G))break;J=G}if(F.length&&$r(q)&&!kOe(q)&&!M1(q,a.floating)&&Array.from(F).every(G=>!M1(J,G)))return;if(Aa(q)&&Y){const G=ql(q),Z=ni(q),oe=/auto|scroll/,ee=G||oe.test(Z.overflowX),re=G||oe.test(Z.overflowY),he=ee&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,Ce=re&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,ce=Z.direction==="rtl",de=Ce&&(ce?D.offsetX<=q.offsetWidth-q.clientWidth:D.offsetX>q.clientWidth),be=he&&D.offsetY>q.clientHeight;if(de||be)return}const Q=(V=i.current.floatingContext)==null?void 0:V.nodeId,z=x&&h3(x.nodesRef.current,Q).some(G=>{var Z;return MC(D,(Z=G.context)==null?void 0:Z.elements.floating)});if(MC(D,a.floating)||MC(D,a.domReference)||z)return;const W=x?h3(x.nodesRef.current,Q):[];if(W.length>0){let G=!0;if(W.forEach(Z=>{var oe;if((oe=Z.context)!=null&&oe.open&&!Z.context.dataRef.current.__outsidePressBubbles){G=!1;return}}),!G)return}o(!1,D,"outside-press")}),B=ol(D=>{var V;const L=()=>{var U;O(D),(U=Cp(D))==null||U.removeEventListener(u,L)};(V=Cp(D))==null||V.addEventListener(u,L)});E.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let D=-1;function V(F){o(!1,F,"ancestor-scroll")}function L(){window.clearTimeout(D),$.current=!0}function U(){D=window.setTimeout(()=>{$.current=!1},i3()?5:0)}const q=Wd(a.floating);l&&(q.addEventListener("keydown",A?M:R,A),q.addEventListener("compositionstart",L),q.addEventListener("compositionend",U)),k&&q.addEventListener(u,N?B:O,N);let X=[];return p&&($r(a.domReference)&&(X=Wl(a.domReference)),$r(a.floating)&&(X=X.concat(Wl(a.floating))),!$r(a.reference)&&a.reference&&a.reference.contextElement&&(X=X.concat(Wl(a.reference.contextElement)))),X=X.filter(F=>{var J;return F!==((J=q.defaultView)==null?void 0:J.visualViewport)}),X.forEach(F=>{F.addEventListener("scroll",V,{passive:!0})}),()=>{l&&(q.removeEventListener("keydown",A?M:R,A),q.removeEventListener("compositionstart",L),q.removeEventListener("compositionend",U)),k&&q.removeEventListener(u,N?B:O,N),X.forEach(F=>{F.removeEventListener("scroll",V)}),window.clearTimeout(D)}},[i,a,l,k,u,n,o,p,s,_,T,R,A,M,O,N,B]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const I=E.useMemo(()=>({onKeyDown:R,...d&&{[TDe[h]]:D=>{o(!1,D.nativeEvent,"reference-press")},...h!=="click"&&{onClick(D){o(!1,D.nativeEvent,"reference-press")}}}}),[R,o,d,h]),Y=E.useMemo(()=>({onKeyDown:R,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[ADe[u]]:()=>{i.current.insideReactTree=!0}}),[R,u,i]);return E.useMemo(()=>s?{reference:I,floating:Y}:{},[s,I,Y])}function NDe(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=tY(),i=E.useRef({}),[s]=E.useState(()=>_De()),l=jC()!=null,[c,u]=E.useState(o.reference),d=ol((g,y,x)=>{i.current.openEvent=g?y:void 0,s.emit("openchange",{open:g,event:y,reason:x,nested:l}),n?.(g,y,x)}),h=E.useMemo(()=>({setPositionReference:u}),[]),p=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:p,events:s,floatingId:a,refs:h}),[r,d,p,s,a,h])}function x3(e){e===void 0&&(e={});const{nodeId:r}=e,n=NDe({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,s]=E.useState(null),[l,c]=E.useState(null),u=a?.domReference||i,d=E.useRef(null),h=BC();nl(()=>{u&&(d.current=u)},[u]);const p=pDe({...e,elements:{...a,...l&&{reference:l}}}),g=E.useCallback(C=>{const _=$r(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),p.refs.setReference(_)},[p.refs]),y=E.useCallback(C=>{($r(C)||C===null)&&(d.current=C,s(C)),($r(p.refs.reference.current)||p.refs.reference.current===null||C!==null&&!$r(C))&&p.refs.setReference(C)},[p.refs]),x=E.useMemo(()=>({...p.refs,setReference:y,setPositionReference:g,domReference:d}),[p.refs,y,g]),w=E.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),k=E.useMemo(()=>({...p,...o,refs:x,elements:w,nodeId:r}),[p,x,w,r,o]);return nl(()=>{o.dataRef.current.floatingContext=k;const C=h?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...p,context:k,refs:x,elements:w}),[p,x,w,k])}function VC(){return vOe()&&bOe()}function RDe(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=r,u=E.useRef(!1),d=E.useRef(-1),h=E.useRef(!0);E.useEffect(()=>{if(!l)return;const g=ea(s.domReference);function y(){!n&&Aa(s.domReference)&&s.domReference===Sq(Wd(s.domReference))&&(u.current=!0)}function x(){h.current=!0}function w(){h.current=!1}return g.addEventListener("blur",y),VC()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",y),VC()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[s.domReference,n,l]),E.useEffect(()=>{if(!l)return;function g(y){let{reason:x}=y;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,l]),E.useEffect(()=>()=>{oi(d)},[]);const p=E.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const y=Cp(g.nativeEvent);if(c&&$r(y)){if(VC()&&!g.relatedTarget){if(!h.current&&!_Oe(y))return}else if(!EOe(y))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const y=g.relatedTarget,x=g.nativeEvent,w=$r(y)&&y.hasAttribute(FC("focus-guard"))&&y.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=Sq(s.domReference?s.domReference.ownerDocument:document);!y&&C===s.domReference||M1((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||M1(s.domReference,C)||w||o(!1,x,"focus")})}}),[i,s.domReference,o,c]);return E.useMemo(()=>l?{reference:p}:{},[l,p])}function qC(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[Zq]:s,[Qq]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[bDe]:""},...i,...r.map(s=>{const l=s?s[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(c=>{let[u,d]=c;if(!(a&&[Zq,Qq].includes(u)))if(u.indexOf("on")===0){if(o.has(u)||o.set(u,[]),typeof d=="function"){var h;(h=o.get(u))==null||h.push(d),s[u]=function(){for(var p,g=arguments.length,y=new Array(g),x=0;x<g;x++)y[x]=arguments[x];return(p=o.get(u))==null?void 0:p.map(w=>w(...y)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function cY(e){e===void 0&&(e=[]);const r=e.map(l=>l?.reference),n=e.map(l=>l?.floating),o=e.map(l=>l?.item),a=E.useCallback(l=>qC(l,e,"reference"),r),i=E.useCallback(l=>qC(l,e,"floating"),n),s=E.useCallback(l=>qC(l,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const $De=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function uY(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:s}=e,{enabled:l=!0,role:c="dialog"}=r,u=tY(),d=((n=i.domReference)==null?void 0:n.id)||u,h=E.useMemo(()=>{var k;return((k=SOe(i.floating))==null?void 0:k.id)||s},[i.floating,s]),p=(o=$De.get(c))!=null?o:c,g=jC()!=null,y=E.useMemo(()=>p==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?h:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":a?h:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:d},...p==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[p,h,g,a,d,c]),x=E.useMemo(()=>{const k={id:h,...p&&{role:p}};return p==="tooltip"||c==="label"?k:{...k,...p==="menu"&&{"aria-labelledby":d}}},[p,h,d,c]),w=E.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[h,c]);return E.useMemo(()=>l?{reference:y,floating:x,item:w}:{},[l,y,x,w])}const[PDe,ai]=ri("ScrollArea.Root component was not found in tree");function Np(e,r){const n=it(r);N1(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const MDe=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=ai(),[i,s]=E.useState(0),[l,c]=E.useState(0),u=!!(i&&l);return Np(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),Np(a.scrollbarY,()=>{const d=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(d),s(d)}),u?b.jsx("div",{...o,ref:r,style:{...n,width:i,height:l}}):null}),ODe=E.forwardRef((e,r)=>{const n=ai(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?b.jsx(MDe,{...e,ref:r}):null}),DDe={scrollHideDelay:1e3,type:"hover"},dY=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...s}=ze("ScrollAreaRoot",DDe,e),[l,c]=E.useState(null),[u,d]=E.useState(null),[h,p]=E.useState(null),[g,y]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[A,N]=E.useState(!1),[$,R]=E.useState(!1),M=Rr(r,O=>c(O));return b.jsx(PDe,{value:{type:n,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:p,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:A,onScrollbarXEnabledChange:N,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:$,onScrollbarYEnabledChange:R,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:b.jsx(Se,{...s,ref:M,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});dY.displayName="@mantine/core/ScrollAreaRoot";function hY(e,r){const n=e/r;return Number.isNaN(n)?0:n}function w3(e){const r=hY(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function fY(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function LDe(e,[r,n]){return Math.min(n,Math.max(r,e))}function pY(e,r,n="ltr"){const o=w3(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,s=r.content-r.viewport,l=i-o,c=n==="ltr"?[0,s]:[s*-1,0],u=LDe(e,c);return fY([0,s],[0,l])(u)}function IDe(e,r,n,o="ltr"){const a=w3(n),i=a/2,s=r||i,l=a-s,c=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,d=n.content-n.viewport,h=o==="ltr"?[0,d]:[d*-1,0];return fY([c,u],h)(e)}function mY(e,r){return e>0&&e<r}function hu(e){return e?parseInt(e,10):0}function Gd(e,r,{checkForDefaultPrevented:n=!0}={}){return o=>{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[zDe,gY]=ri("ScrollAreaScrollbar was not found in tree"),yY=E.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...h}=e,p=ai(),[g,y]=E.useState(null),x=Rr(r,R=>y(R)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=p,_=n.content-n.viewport,T=it(u),A=it(l),N=vp(d,10),$=R=>{if(w.current){const M=R.clientX-w.current.left,O=R.clientY-w.current.top;c({x:M,y:O})}};return E.useEffect(()=>{const R=M=>{const O=M.target;g?.contains(O)&&T(M,_)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[C,g,_,T]),E.useEffect(A,[n,A]),Np(g,N),Np(p.content,N),b.jsx(zDe,{value:{scrollbar:g,hasThumb:o,onThumbChange:it(a),onThumbPointerUp:it(i),onThumbPositionChange:A,onThumbPointerDown:it(s)},children:b.jsx("div",{...h,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:Gd(e.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(R))}),onPointerMove:Gd(e.onPointerMove,$),onPointerUp:Gd(e.onPointerUp,R=>{const M=R.target;M.hasPointerCapture(R.pointerId)&&(R.preventDefault(),M.releasePointerCapture(R.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),bY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=ai(),[l,c]=E.useState(),u=E.useRef(null),d=Rr(r,u,s.onScrollbarXChange);return E.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),b.jsx(yY,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${w3(n)}px`},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,p)=>{if(s.viewport){const g=s.viewport.scrollLeft+h.deltaX;e.onWheelScroll(g),mY(g,p)&&h.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:hu(l.paddingLeft),paddingEnd:hu(l.paddingRight)}})}})});bY.displayName="@mantine/core/ScrollAreaScrollbarX";const vY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=ai(),[l,c]=E.useState(),u=E.useRef(null),d=Rr(r,u,s.onScrollbarYChange);return E.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),b.jsx(yY,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${w3(n)}px`,...a},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,p)=>{if(s.viewport){const g=s.viewport.scrollTop+h.deltaY;e.onWheelScroll(g),mY(g,p)&&h.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:hu(l.paddingTop),paddingEnd:hu(l.paddingBottom)}})}})});vY.displayName="@mantine/core/ScrollAreaScrollbarY";const k3=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=du(),i=ai(),s=E.useRef(null),l=E.useRef(0),[c,u]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=hY(c.viewport,c.content),h={...o,sizes:c,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:g=>{l.current=g}},p=(g,y)=>IDe(g,l.current,c,y);return n==="horizontal"?b.jsx(bY,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollLeft,y=pY(g,c,a);s.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=p(g,a))}}):n==="vertical"?b.jsx(vY,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollTop,y=pY(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=p(g))}}):null});k3.displayName="@mantine/core/ScrollAreaScrollbarVisible";const YC=E.forwardRef((e,r)=>{const n=ai(),{forceMount:o,...a}=e,[i,s]=E.useState(!1),l=e.orientation==="horizontal",c=vp(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?u:d)}},10);return Np(n.viewport,c),Np(n.content,c),o||i?b.jsx(k3,{"data-state":i?"visible":"hidden",...a,ref:r}):null});YC.displayName="@mantine/core/ScrollAreaScrollbarAuto";const xY=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),[i,s]=E.useState(!1);return E.useEffect(()=>{const{scrollArea:l}=a;let c=0;if(l){const u=()=>{window.clearTimeout(c),s(!0)},d=()=>{c=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),n||i?b.jsx(YC,{"data-state":i?"visible":"hidden",...o,ref:r}):null});xY.displayName="@mantine/core/ScrollAreaScrollbarHover";const jDe=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),i=e.orientation==="horizontal",[s,l]=E.useState("hidden"),c=vp(()=>l("idle"),100);return E.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,a.scrollHideDelay]),E.useEffect(()=>{const{viewport:u}=a,d=i?"scrollLeft":"scrollTop";if(u){let h=u[d];const p=()=>{const g=u[d];h!==g&&(l("scrolling"),c()),h=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[a.viewport,i,c]),n||s!=="hidden"?b.jsx(k3,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Gd(e.onPointerEnter,()=>l("interacting")),onPointerLeave:Gd(e.onPointerLeave,()=>l("idle"))}):null}),WC=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,l=e.orientation==="horizontal";return E.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),a.type==="hover"?b.jsx(xY,{...o,ref:r,forceMount:n}):a.type==="scroll"?b.jsx(jDe,{...o,ref:r,forceMount:n}):a.type==="auto"?b.jsx(YC,{...o,ref:r,forceMount:n}):a.type==="always"?b.jsx(k3,{...o,ref:r}):null});WC.displayName="@mantine/core/ScrollAreaScrollbar";function BDe(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,l=n.top!==i.top;(s||l)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const wY=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=ai(),i=gY(),{onThumbPositionChange:s}=i,l=Rr(r,d=>i.onThumbChange(d)),c=E.useRef(void 0),u=vp(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:d}=a;if(d){const h=()=>{if(u(),!c.current){const p=BDe(d,s);c.current=p,s()}};return s(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[a.viewport,u,s]),b.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Gd(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),p=d.clientX-h.left,g=d.clientY-h.top;i.onThumbPointerDown({x:p,y:g})}),onPointerUp:Gd(e.onPointerUp,i.onThumbPointerUp)})});wY.displayName="@mantine/core/ScrollAreaThumb";const XC=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=gY();return n||a.hasThumb?b.jsx(wY,{ref:r,...o}):null});XC.displayName="@mantine/core/ScrollAreaThumb";const kY=E.forwardRef(({children:e,style:r,...n},o)=>{const a=ai(),i=Rr(o,a.onViewportChange);return b.jsx(Se,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:b.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});kY.displayName="@mantine/core/ScrollAreaViewport";var GC={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const _Y={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},FDe=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Ne(r),"--scrollarea-over-scroll-behavior":n}}),os=st((e,r)=>{const n=ze("ScrollArea",_Y,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:u,type:d,scrollHideDelay:h,viewportProps:p,viewportRef:g,onScrollPositionChange:y,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:A,...N}=n,[$,R]=E.useState(!1),[M,O]=E.useState(!1),[B,I]=E.useState(!1),Y=bt({name:"ScrollArea",props:n,classes:GC,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:A,vars:u,varsResolver:FDe}),D=E.useRef(null),V=Kq([g,D]);return E.useEffect(()=>{if(!D.current||w!=="present")return;const L=D.current,U=new ResizeObserver(()=>{const{scrollHeight:q,clientHeight:X,scrollWidth:F,clientWidth:J}=L;O(q>X),I(F>J)});return U.observe(L),()=>U.disconnect()},[D,w]),b.jsxs(dY,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:h,ref:r,scrollbars:k,...Y("root"),...N,children:[b.jsx(kY,{...p,...Y("viewport",{style:p?.style}),ref:V,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!B?"true":void 0,"data-vertical-hidden":w==="present"&&!M?"true":void 0,onScroll:L=>{p?.onScroll?.(L),y?.({x:L.currentTarget.scrollLeft,y:L.currentTarget.scrollTop});const{scrollTop:U,scrollHeight:q,clientHeight:X}=L.currentTarget;U-(q-X)>=-.6&&C?.(),U===0&&_?.()},children:x}),(k==="xy"||k==="x")&&b.jsx(WC,{...Y("scrollbar"),orientation:"horizontal","data-hidden":d==="never"||w==="present"&&!B?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(XC,{...Y("thumb")})}),(k==="xy"||k==="y")&&b.jsx(WC,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!M?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(XC,{...Y("thumb")})}),b.jsx(ODe,{...Y("corner"),"data-hovered":$||void 0,"data-hidden":d==="never"||void 0})]})});os.displayName="@mantine/core/ScrollArea";const ta=st((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:h,unstyled:p,variant:g,viewportProps:y,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...A}=ze("ScrollAreaAutosize",_Y,e),N=E.useRef(null),$=Kq([d,N]),[R,M]=E.useState(!1),O=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const B=N.current;if(!B)return;const I=()=>{const D=B.scrollHeight>B.clientHeight;D!==R&&(O.current?T?.(D):(O.current=!0,D&&T?.(!0)),M(D))};I();const Y=new ResizeObserver(I);return Y.observe(B),()=>Y.disconnect()},[T,R]),b.jsx(Se,{...A,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:b.jsx(Se,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:b.jsx(os,{classNames:o,styles:a,scrollHideDelay:s,scrollbarSize:i,type:l,dir:c,offsetScrollbars:u,viewportRef:$,onScrollPositionChange:h,unstyled:p,variant:g,viewportProps:y,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});os.classes=GC,ta.displayName="@mantine/core/ScrollAreaAutosize",ta.classes=GC,os.Autosize=ta;var EY={root:"m_87cf2631"};const HDe={__staticSelector:"UnstyledButton"},Pr=Gn((e,r)=>{const n=ze("UnstyledButton",HDe,e),{className:o,component:a="button",__staticSelector:i,unstyled:s,classNames:l,styles:c,style:u,attributes:d,...h}=n,p=bt({name:i,props:n,classes:EY,className:o,style:u,classNames:l,styles:c,unstyled:s,attributes:d});return b.jsx(Se,{...p("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...h})});Pr.classes=EY,Pr.displayName="@mantine/core/UnstyledButton";var SY={root:"m_515a97f8"};const _3=st((e,r)=>{const n=ze("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,attributes:u,...d}=n,h=bt({name:"VisuallyHidden",classes:SY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u});return b.jsx(Se,{component:"span",ref:r,...h("root"),...d})});_3.classes=SY,_3.displayName="@mantine/core/VisuallyHidden";var CY={root:"m_1b7284a3"};const UDe=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:bn(r),"--paper-shadow":NV(n)}}),Rp=Gn((e,r)=>{const n=ze("Paper",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,withBorder:c,vars:u,radius:d,shadow:h,variant:p,mod:g,attributes:y,...x}=n,w=bt({name:"Paper",props:n,classes:CY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:u,varsResolver:UDe});return b.jsx(Se,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:p,...x})});Rp.classes=CY,Rp.displayName="@mantine/core/Paper";function TY(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function AY(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const VDe={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function qDe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:s,dir:l}){const[c,u="center"]=e.split("-"),d={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[VDe[c]]:o},h=-r/2;return c==="left"?{...d,...TY(u,s,n,a),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...TY(u,s,n,a),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...AY(u,i,n,a,l),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...AY(u,i,n,a,l),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const E3=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:s,arrowY:l,style:c,...u},d)=>{const{dir:h}=du();return i?b.jsx("div",{...u,ref:d,style:{...c,...qDe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:h,arrowX:s,arrowY:l})}}):null});E3.displayName="@mantine/core/FloatingArrow";function NY(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var RY={root:"m_9814e45f"};const YDe={zIndex:Yw("modal")},WDe=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:s})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&el(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Ne(a)})`:void 0,"--overlay-radius":i===void 0?void 0:bn(i),"--overlay-z-index":s?.toString()}}),KC=Gn((e,r)=>{const n=ze("Overlay",YDe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fixed:u,center:d,children:h,radius:p,zIndex:g,gradient:y,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,A=bt({name:"Overlay",props:n,classes:RY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:WDe});return b.jsx(Se,{ref:r,...A("root"),mod:[{center:d,fixed:u},C],...T,children:h})});KC.classes=RY,KC.displayName="@mantine/core/Overlay";function ZC(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function XDe({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||ZC(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=ZC(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return ZC(n)}const GDe={reuseTargetNode:!0},D1=st((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=ze("Portal",GDe,e),[s,l]=E.useState(!1),c=E.useRef(null);return N1(()=>(l(!0),c.current=XDe({target:o,reuseTargetNode:a,...i}),nC(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!s||!c.current?null:ji.createPortal(b.jsx(b.Fragment,{children:n}),c.current)});D1.displayName="@mantine/core/Portal";const $p=st(({withinPortal:e=!0,children:r,...n},o)=>Qw()==="test"||!e?b.jsx(b.Fragment,{children:r}):b.jsx(D1,{ref:o,...n,children:r}));$p.displayName="@mantine/core/OptionalPortal";const L1=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),S3={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...L1("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...L1("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...L1("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...L1("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...L1("top"),common:{transformOrigin:"top right"}}},$Y={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function KDe({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in S3?{transitionProperty:S3[e].transitionProperty,...a,...S3[e].common,...S3[e][$Y[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[$Y[r]]}}function ZDe({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:u}){const d=ho(),h=FV(),p=d.respectReducedMotion?h:!1,[g,y]=E.useState(p?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const A=$=>{T();const R=$?a:i,M=$?s:l,O=p?0:$?e:r;y(O),O===0?(typeof R=="function"&&R(),typeof M=="function"&&M(),w($?"entered":"exited")):_.current=requestAnimationFrame(()=>{TD.flushSync(()=>{w($?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof R=="function"&&R(),w($?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof M=="function"&&M(),w($?"entered":"exited")},O)})})},N=$=>{if(T(),typeof($?c:u)!="number"){A($);return}C.current=window.setTimeout(()=>{A($)},$?c:u)};return qd(()=>{N(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function fu({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:s="ease",onExit:l,onEntered:c,onEnter:u,onExited:d,enterDelay:h,exitDelay:p}){const g=Qw(),{transitionDuration:y,transitionStatus:x,transitionTimingFunction:w}=ZDe({mounted:a,exitDuration:o,duration:n,timingFunction:s,onExit:l,onEntered:c,onEnter:u,onExited:d,enterDelay:h,exitDelay:p});return y===0||g==="test"?a?b.jsx(b.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:b.jsx(b.Fragment,{children:i(KDe({transition:r,duration:y,state:x,timingFunction:w}))})}fu.displayName="@mantine/core/Transition";const[QDe,PY]=ri("Popover component was not found in the tree");function C3({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=IV(r),i=Rr(a,o);return Qi(e)?E.cloneElement(e,{[n]:i}):e}function MY(e){return b.jsx(_3,{tabIndex:-1,"data-autofocus":!0,...e})}C3.displayName="@mantine/core/FocusTrap",MY.displayName="@mantine/core/FocusTrapInitialFocus",C3.InitialFocus=MY;var OY={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Xl=st((e,r)=>{const n=ze("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:u,styles:d,...h}=n,p=PY(),g=iPe({opened:p.opened,shouldReturnFocus:p.returnFocus}),y=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Rr(r,p.floating);return p.disabled?null:b.jsx($p,{...p.portalProps,withinPortal:p.withinPortal,children:b.jsx(fu,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:typeof p.transitionProps?.exitDuration=="number"?p.transitionProps.exitDuration:p.transitionProps?.duration,children:w=>b.jsx(C3,{active:p.trapFocus&&p.opened,innerRef:x,children:b.jsxs(Se,{...y,...h,variant:c,onKeyDownCapture:K$e(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:g,onKeyDown:l}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:o,props:n,classNames:u,styles:d,style:[{...w,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:Ne(p.width),...p.referenceHidden?{display:"none"}:null},p.resolvedStyles.dropdown,d?.dropdown,a]}),children:[s,b.jsx(E3,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});Xl.classes=OY,Xl.displayName="@mantine/core/PopoverDropdown";const JDe={refProp:"ref",popupType:"dialog"},pu=st((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=ze("PopoverTarget",JDe,e);if(!Qi(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=PY(),c=Rr(l.reference,Xw(n),r),u=l.withRoles?{"aria-haspopup":a,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return E.cloneElement(n,{...s,...u,...l.targetProps,className:Ji(l.targetProps.className,s.className,n.props.className),[o]:c,...l.controlled?null:{onClick:()=>{l.onToggle(),n.props.onClick?.()}}})});pu.displayName="@mantine/core/PopoverTarget";function eLe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function tLe(e,r,n){const o=eLe(e.middlewares),a=[Wq(e.offset),yDe()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(zC(typeof o.shift=="boolean"?{limiter:Xq(),padding:5}:{limiter:Xq(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?b3():b3(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?O1():O1(o.inline)),a.push(Gq({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(gDe({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:s,availableHeight:l,...c}){const u=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:s,availableHeight:l,...c}):Object.assign(u,{maxWidth:`${s}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),a}function rLe(e){const r=Qw(),[n,o]=Vl({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},s=()=>{e.disabled||o(!n)},l=x3({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:tLe(e,()=>l,r),whileElementsMounted:e.keepMounted?void 0:m3});return E.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&n)return m3(l.refs.reference.current,l.refs.floating.current,l.update)},[n,l.update]),qd(()=>{e.onPositionChange?.(l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),qd(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),qd(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:s}}const nLe={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Yw("popover"),__staticSelector:"Popover",width:"max-content"},oLe=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:bn(r),"--popover-shadow":NV(n)}});function mr(e){const r=ze("Popover",nLe,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:h,middlewares:p,withArrow:g,arrowSize:y,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:A,withinPortal:N,portalProps:$,closeOnEscape:R,clickOutsideEvents:M,trapFocus:O,onClose:B,onDismiss:I,onOpen:Y,onChange:D,zIndex:V,radius:L,shadow:U,id:q,defaultOpened:X,__staticSelector:F,withRoles:J,disabled:Q,returnFocus:z,variant:W,keepMounted:G,vars:Z,floatingStrategy:oe,withOverlay:ee,overlayProps:re,hideDetached:he,attributes:Ce,preventPositionChangeWhenVisible:ce,...de}=r,be=bt({name:F,props:r,classes:OY,classNames:_,styles:T,unstyled:C,attributes:Ce,rootSelector:"dropdown",vars:Z,varsResolver:oLe}),{resolvedStyles:De}=yC({classNames:_,styles:T,props:r}),[Ge,Xe]=E.useState(l??X??!1),_t=E.useRef(o),Qe=E.useRef(null),[St,Ke]=E.useState(null),[We,lt]=E.useState(null),{dir:Et}=du(),Pn=Qw(),_e=Ta(q),we=rLe({middlewares:p,width:h,position:NY(Et,o),offset:typeof a=="number"?a+(g?y/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:X,onChange:D,onOpen:Y,onClose:B,onDismiss:I,strategy:oe,dropdownVisible:Ge,setDropdownVisible:Xe,positionRef:_t,disabled:Q,preventPositionChangeWhenVisible:ce,keepMounted:G});$V(()=>{A&&(we.onClose(),I?.())},M,[St,We]);const rt=E.useCallback(Pt=>{Ke(Pt),we.floating.refs.setReference(Pt)},[we.floating.refs.setReference]),at=E.useCallback(Pt=>{lt(Pt),we.floating.refs.setFloating(Pt)},[we.floating.refs.setFloating]),$t=E.useCallback(()=>{c?.onExited?.(),u?.(),Xe(!1),_t.current=o},[c?.onExited,u]),Wr=E.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return b.jsxs(QDe,{value:{returnFocus:z,disabled:Q,controlled:we.controlled,reference:rt,floating:at,x:we.floating.x,y:we.floating.y,arrowX:we.floating?.middlewareData?.arrow?.x,arrowY:we.floating?.middlewareData?.arrow?.y,opened:we.opened,arrowRef:Qe,transitionProps:{...c,onExited:$t,onEntered:Wr},width:h,withArrow:g,arrowSize:y,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:we.floating.placement,trapFocus:O,withinPortal:N,portalProps:$,zIndex:V,radius:L,shadow:U,closeOnEscape:R,onDismiss:I,onClose:we.onClose,onToggle:we.onToggle,getTargetId:()=>`${_e}-target`,getDropdownId:()=>`${_e}-dropdown`,withRoles:J,targetProps:de,__staticSelector:F,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:G,getStyles:be,resolvedStyles:De,floatingStrategy:oe,referenceHidden:he&&Pn!=="test"?we.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ee&&b.jsx(fu,{transition:"fade",mounted:we.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>b.jsx($p,{withinPortal:N,children:b.jsx(KC,{...re,...be("overlay",{className:re?.className,style:[Pt,re?.style]})})})})]})}mr.Target=pu,mr.Dropdown=Xl,mr.displayName="@mantine/core/Popover",mr.extend=e=>e;var as={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const DY=E.forwardRef(({className:e,...r},n)=>b.jsxs(Se,{component:"span",className:Ji(as.barsLoader,e),...r,ref:n,children:[b.jsx("span",{className:as.bar}),b.jsx("span",{className:as.bar}),b.jsx("span",{className:as.bar})]}));DY.displayName="@mantine/core/Bars";const LY=E.forwardRef(({className:e,...r},n)=>b.jsxs(Se,{component:"span",className:Ji(as.dotsLoader,e),...r,ref:n,children:[b.jsx("span",{className:as.dot}),b.jsx("span",{className:as.dot}),b.jsx("span",{className:as.dot})]}));LY.displayName="@mantine/core/Dots";const IY=E.forwardRef(({className:e,...r},n)=>b.jsx(Se,{component:"span",className:Ji(as.ovalLoader,e),...r,ref:n}));IY.displayName="@mantine/core/Oval";const zY={bars:DY,oval:IY,dots:LY},aLe={loaders:zY,type:"oval"},iLe=(e,{size:r,color:n})=>({root:{"--loader-size":lr(r,"loader-size"),"--loader-color":n?Jo(n,e):void 0}}),Pp=st((e,r)=>{const n=ze("Loader",aLe,e),{size:o,color:a,type:i,vars:s,className:l,style:c,classNames:u,styles:d,unstyled:h,loaders:p,variant:g,children:y,attributes:x,...w}=n,k=bt({name:"Loader",props:n,classes:as,className:l,style:c,classNames:u,styles:d,unstyled:h,attributes:x,vars:s,varsResolver:iLe});return y?b.jsx(Se,{...k("root"),ref:r,...w,children:y}):b.jsx(Se,{...k("root"),ref:r,component:p[i],variant:g,size:o,...w})});Pp.defaultLoaders=zY,Pp.classes=as,Pp.displayName="@mantine/core/Loader";var Mp={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const jY={orientation:"horizontal"},sLe=(e,{borderWidth:r})=>({group:{"--ai-border-width":Ne(r)}}),T3=st((e,r)=>{const n=ze("ActionIconGroup",jY,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:u,borderWidth:d,variant:h,mod:p,attributes:g,...y}=ze("ActionIconGroup",jY,e),x=bt({name:"ActionIconGroup",props:n,classes:Mp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:u,varsResolver:sLe,rootSelector:"group"});return b.jsx(Se,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},p],role:"group",...y})});T3.classes=Mp,T3.displayName="@mantine/core/ActionIconGroup";const lLe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":lr(s,"section-height"),"--section-padding-x":lr(s,"section-padding-x"),"--section-fz":Ro(s),"--section-radius":r===void 0?void 0:bn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},QC=st((e,r)=>{const n=ze("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:u,gradient:d,radius:h,autoContrast:p,attributes:g,...y}=n,x=bt({name:"ActionIconGroupSection",props:n,classes:Mp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:lLe,rootSelector:"groupSection"});return b.jsx(Se,{...x("groupSection"),ref:r,variant:u,...y})});QC.classes=Mp,QC.displayName="@mantine/core/ActionIconGroupSection";const cLe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ai-size":lr(r,"ai-size"),"--ai-radius":n===void 0?void 0:bn(n),"--ai-bg":i||o?l.background:void 0,"--ai-hover":i||o?l.hover:void 0,"--ai-hover-color":i||o?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":i||o?l.border:void 0}}},or=Gn((e,r)=>{const n=ze("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:s,styles:l,style:c,loading:u,loaderProps:d,size:h,color:p,radius:g,__staticSelector:y,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:A,attributes:N,...$}=n,R=bt({name:["ActionIcon",y],props:n,className:o,style:c,classes:Mp,classNames:s,styles:l,unstyled:a,attributes:N,vars:w,varsResolver:cLe});return b.jsxs(Pr,{...R("root",{active:!C&&!u&&!_}),...$,unstyled:a,variant:i,size:h,disabled:C||u,ref:r,mod:[{loading:u,disabled:C||_},A],children:[typeof u=="boolean"&&b.jsx(fu,{mounted:u,transition:"slide-down",duration:150,children:M=>b.jsx(Se,{component:"span",...R("loader",{style:M}),"aria-hidden":!0,children:b.jsx(Pp,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),b.jsx(Se,{component:"span",mod:{loading:u},...R("icon"),children:k})]})});or.classes=Mp,or.displayName="@mantine/core/ActionIcon",or.Group=T3,or.GroupSection=QC;const BY=E.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:b.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));BY.displayName="@mantine/core/CloseIcon";var FY={root:"m_86a44da5","root--subtle":"m_220c80f2"};const uLe={variant:"subtle"},dLe=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":lr(r,"cb-size"),"--cb-radius":n===void 0?void 0:bn(n),"--cb-icon-size":Ne(o)}}),Kd=Gn((e,r)=>{const n=ze("CloseButton",uLe,e),{iconSize:o,children:a,vars:i,radius:s,className:l,classNames:c,style:u,styles:d,unstyled:h,"data-disabled":p,disabled:g,variant:y,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=bt({name:C||"CloseButton",props:n,className:l,style:u,classes:FY,classNames:c,styles:d,unstyled:h,attributes:k,vars:i,varsResolver:dLe});return b.jsxs(Pr,{ref:r,..._,unstyled:h,variant:y,disabled:g,mod:[{disabled:g||p},w],...T("root",{variant:y,active:!g&&!p}),children:[x||b.jsx(BY,{}),a]})});Kd.classes=FY,Kd.displayName="@mantine/core/CloseButton";function hLe(e){return E.Children.toArray(e).filter(Boolean)}var HY={root:"m_4081bf90"};const fLe={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},pLe=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:s},{childWidth:l})=>({root:{"--group-child-width":r&&n?l:void 0,"--group-gap":Ul(o),"--group-align":a,"--group-justify":i,"--group-wrap":s}}),Ur=st((e,r)=>{const n=ze("Group",fLe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,children:c,gap:u,align:d,justify:h,wrap:p,grow:g,preventGrowOverflow:y,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,A=hLe(c),N=A.length,$=Ul(u??"md"),R={childWidth:`calc(${100/N}% - (${$} - ${$} / ${N}))`},M=bt({name:"Group",props:n,stylesCtx:R,className:a,style:i,classes:HY,classNames:o,styles:s,unstyled:l,attributes:_,vars:x,varsResolver:pLe});return b.jsx(Se,{...M("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:A})});Ur.classes=HY,Ur.displayName="@mantine/core/Group";const[mLe,gLe]=C1({size:"sm"}),UY=st((e,r)=>{const n=ze("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:s,styles:l,...c}=n,u=gLe(),{resolvedClassNames:d,resolvedStyles:h}=yC({classNames:s,styles:l,props:n});return b.jsx(Kd,{variant:a||"transparent",ref:r,size:o||u?.size||"sm",classNames:d,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});UY.displayName="@mantine/core/InputClearButton";const yLe={xs:7,sm:8,md:10,lg:12,xl:15};function bLe({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?b.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:yLe[a]},children:[i,n||o]}):n||i||o}const[vLe,A3]=C1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ii={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const xLe=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`}}),N3=st((e,r)=>{const n=ze("InputDescription",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,__staticSelector:d,__inheritStyles:h=!0,attributes:p,variant:g,...y}=ze("InputDescription",null,n),x=A3(),w=bt({name:["InputWrapper",d],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:p,rootSelector:"description",vars:c,varsResolver:xLe}),k=h&&x?.getStyles||w;return b.jsx(Se,{component:"p",ref:r,variant:g,size:u,...k("description",x?.getStyles?{className:a,style:i}:void 0),...y})});N3.classes=ii,N3.displayName="@mantine/core/InputDescription";const wLe=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`}}),R3=st((e,r)=>{const n=ze("InputError",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,attributes:d,__staticSelector:h,__inheritStyles:p=!0,variant:g,...y}=n,x=bt({name:["InputWrapper",h],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d,rootSelector:"error",vars:c,varsResolver:wLe}),w=A3(),k=p&&w?.getStyles||x;return b.jsx(Se,{component:"p",ref:r,variant:g,size:u,...k("error",w?.getStyles?{className:a,style:i}:void 0),...y})});R3.classes=ii,R3.displayName="@mantine/core/InputError";const VY={labelElement:"label"},kLe=(e,{size:r})=>({label:{"--input-label-size":Ro(r),"--input-asterisk-color":void 0}}),$3=st((e,r)=>{const n=ze("InputLabel",VY,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,labelElement:u,size:d,required:h,htmlFor:p,onMouseDown:g,children:y,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=ze("InputLabel",VY,n),T=bt({name:["InputWrapper",x],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,rootSelector:"label",vars:c,varsResolver:kLe}),A=A3(),N=A?.getStyles||T;return b.jsxs(Se,{...N("label",A?.getStyles?{className:a,style:i}:void 0),component:u,variant:w,size:d,ref:r,htmlFor:u==="label"?p:void 0,mod:[{required:h},k],onMouseDown:$=>{g?.($),!$.defaultPrevented&&$.detail>1&&$.preventDefault()},..._,children:[y,h&&b.jsx("span",{...N("required"),"aria-hidden":!0,children:" *"})]})});$3.classes=ii,$3.displayName="@mantine/core/InputLabel";const JC=st((e,r)=>{const n=ze("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,__staticSelector:u,variant:d,error:h,mod:p,attributes:g,...y}=n,x=bt({name:["InputPlaceholder",u],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,rootSelector:"placeholder"});return b.jsx(Se,{...x("placeholder"),mod:[{error:!!h},p],component:"span",variant:d,ref:r,...y})});JC.classes=ii,JC.displayName="@mantine/core/InputPlaceholder";function _Le(e,{hasDescription:r,hasError:n}){const o=e.findIndex(l=>l==="input"),a=e.slice(0,o),i=e.slice(o+1),s=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:s}}const ELe={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},SLe=(e,{size:r})=>({label:{"--input-label-size":Ro(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`}}),eT=st((e,r)=>{const n=ze("InputWrapper",ELe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,variant:d,__staticSelector:h,inputContainer:p,inputWrapperOrder:g,label:y,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:A,withAsterisk:N,id:$,required:R,__stylesApiProps:M,mod:O,attributes:B,...I}=n,Y=bt({name:["InputWrapper",h],props:M||n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:B,vars:c,varsResolver:SLe}),D={size:u,variant:d,__staticSelector:h},V=Ta($),L=typeof N=="boolean"?N:R,U=_?.id||`${V}-error`,q=C?.id||`${V}-description`,X=V,F=!!x&&typeof x!="boolean",J=!!w,Q=`${F?U:""} ${J?q:""}`,z=Q.trim().length>0?Q.trim():void 0,W=k?.id||`${V}-label`,G=y&&b.jsx($3,{labelElement:T,id:W,htmlFor:X,required:L,...D,...k,children:y},"label"),Z=J&&b.jsx(N3,{...C,...D,size:C?.size||D.size,id:C?.id||q,children:w},"description"),oe=b.jsx(E.Fragment,{children:p(A)},"input"),ee=F&&E.createElement(R3,{..._,...D,size:_?.size||D.size,key:"error",id:_?.id||U},x),re=g.map(he=>{switch(he){case"label":return G;case"input":return oe;case"description":return Z;case"error":return ee;default:return null}});return b.jsx(vLe,{value:{getStyles:Y,describedBy:z,inputId:X,labelId:W,..._Le(g,{hasDescription:J,hasError:F})},children:b.jsx(Se,{ref:r,variant:d,size:u,mod:[{error:!!x},O],...Y("root"),...I,children:re})})});eT.classes=ii,eT.displayName="@mantine/core/InputWrapper";const CLe={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},TLe=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":lr(r.size,"input-height"),"--input-fz":Ro(r.size),"--input-radius":r.radius===void 0?void 0:bn(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?Ne(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?Ne(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?lr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),Ra=Gn((e,r)=>{const n=ze("Input",CLe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,required:c,__staticSelector:u,__stylesApiProps:d,size:h,wrapperProps:p,error:g,disabled:y,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:A,leftSectionPointerEvents:N,variant:$,vars:R,pointer:M,multiline:O,radius:B,id:I,withAria:Y,withErrorStyles:D,mod:V,inputSize:L,attributes:U,__clearSection:q,__clearable:X,__defaultRightSection:F,...J}=n,{styleProps:Q,rest:z}=iq(J),W=A3(),G={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},Z=bt({name:["Input",u],props:d||n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:U,stylesCtx:G,rootSelector:"wrapper",vars:R,varsResolver:TLe}),oe=Y?{required:c,disabled:y,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||I}:{},ee=bLe({__clearable:X,__clearSection:q,rightSection:C,__defaultRightSection:F,size:h});return b.jsx(mLe,{value:{size:h||"sm"},children:b.jsxs(Se,{...Z("wrapper"),...Q,...p,mod:[{error:!!g&&D,pointer:M,disabled:y,multiline:O,"data-with-right-section":!!ee,"data-with-left-section":!!x},V],variant:$,size:h,children:[x&&b.jsx("div",{...w,"data-position":"left",...Z("section",{className:w?.className,style:w?.style}),children:x}),b.jsx(Se,{component:"input",...z,...oe,ref:r,required:c,mod:{disabled:y,error:!!g&&D},variant:$,__size:L,...Z("input")}),ee&&b.jsx("div",{..._,"data-position":"right",...Z("section",{className:_?.className,style:_?.style}),children:ee})]})})});Ra.classes=ii,Ra.Wrapper=eT,Ra.Label=$3,Ra.Error=R3,Ra.Description=N3,Ra.Placeholder=JC,Ra.ClearButton=UY,Ra.displayName="@mantine/core/Input";const ALe={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var qY={root:"m_8bffd616"};const Op=Gn((e,r)=>{const n=ze("Flex",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,gap:u,rowGap:d,columnGap:h,align:p,justify:g,wrap:y,direction:x,attributes:w,...k}=n,C=bt({name:"Flex",classes:qY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c}),_=ho(),T=r3(),A=cq({styleProps:{gap:u,rowGap:d,columnGap:h,align:p,justify:g,wrap:y,direction:x},theme:_,data:ALe});return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(t3,{selector:`.${T}`,styles:A.styles,media:A.media}),b.jsx(Se,{ref:r,...C("root",{className:T,style:yp(A.inlineStyles)}),...k})]})});Op.classes=qY,Op.displayName="@mantine/core/Flex";function NLe(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function RLe({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,s]=E.useState(!1),[l,c]=E.useState(typeof o=="boolean"?o:!1),u=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),y=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=hu(x.borderTopWidth)+hu(w.borderTopWidth),C=hu(x.borderLeftWidth)+hu(w.borderLeftWidth),_={top:g.top-y.top-k,left:g.left-y.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),u(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},h=E.useRef(null),p=E.useRef(null);return E.useEffect(()=>{if(u(),e)return h.current=new ResizeObserver(d),h.current.observe(e),r&&(p.current=new ResizeObserver(d),p.current.observe(r)),()=>{h.current?.disconnect(),p.current?.disconnect()}},[r,e]),E.useEffect(()=>{if(r){const g=y=>{NLe(y.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),VV(()=>{DPe()!=="test"&&s(!0)},20,{autoInvoke:!0}),qV(g=>{g.forEach(y=>{y.type==="attributes"&&y.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:l}}var YY={root:"m_96b553a6"};const $Le=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),P3=st((e,r)=>{const n=ze("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,target:u,parent:d,transitionDuration:h,mod:p,displayAfterTransitionEnd:g,attributes:y,...x}=n,w=bt({name:"FloatingIndicator",classes:YY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:$Le}),k=E.useRef(null),{initialized:C,hidden:_}=RLe({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=Rr(r,k);return!u||!d?null:b.jsx(Se,{ref:T,mod:[{initialized:C,hidden:_},p],...w("root"),...x})});P3.displayName="@mantine/core/FloatingIndicator",P3.classes=YY;function WY({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.useRef(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},l=()=>{s(),n===0||n===void 0?e():a.current=window.setTimeout(e,n)},c=()=>{s(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return E.useEffect(()=>s,[]),{openDropdown:l,closeDropdown:c}}function tT({style:e,size:r=16,...n}){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:Ne(r),height:Ne(r),display:"block"},...n,children:b.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}tT.displayName="@mantine/core/AccordionChevron";var XY={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const PLe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:bn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},M3=st((e,r)=>{const n=ze("Alert",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:u,color:d,title:h,children:p,id:g,icon:y,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...A}=n,N=bt({name:"Alert",classes:XY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:PLe}),$=Ta(g),R=h&&`${$}-title`||void 0,M=`${$}-body`;return b.jsx(Se,{id:$,...N("root",{variant:C}),variant:C,ref:r,...A,role:"alert","aria-describedby":M,"aria-labelledby":R,children:b.jsxs("div",{...N("wrapper"),children:[y&&b.jsx("div",{...N("icon"),children:y}),b.jsxs("div",{...N("body"),children:[h&&b.jsx("div",{...N("title"),"data-with-close-button":x||void 0,children:b.jsx("span",{id:R,...N("label"),children:h})}),p&&b.jsx("div",{id:M,...N("message"),"data-variant":C,children:p})]}),x&&b.jsx(Kd,{...N("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:l})]})})});M3.classes=XY,M3.displayName="@mantine/core/Alert";var GY={root:"m_b6d8b162"};function MLe(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const OLe={inherit:!1},DLe=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Ro(a),"--text-lh":Z$e(a),"--text-gradient":r==="gradient"?lC(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Jo(i,e):void 0}}),wt=Gn((e,r)=>{const n=ze("Text",OLe,e),{lineClamp:o,truncate:a,inline:i,inherit:s,gradient:l,span:c,__staticSelector:u,vars:d,className:h,style:p,classNames:g,styles:y,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,A=bt({name:["Text",u],props:n,classes:GY,className:h,style:p,classNames:g,styles:y,unstyled:x,attributes:_,vars:d,varsResolver:DLe});return b.jsx(Se,{...A("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":MLe(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":s},k],size:C,...T})});wt.classes=GY,wt.displayName="@mantine/core/Text";var KY={root:"m_849cf0da"};const LLe={underline:"hover"},rT=Gn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...s}=ze("Anchor",LLe,e);return b.jsx(wt,{component:"a",ref:r,className:Ji({[KY.root]:!a},o),...s,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});rT.classes=KY,rT.displayName="@mantine/core/Anchor";var si={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const ILe={error:null},zLe=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":lr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Jo(n,e):void 0}}),nT=st((e,r)=>{const n=ze("ComboboxChevron",ILe,e),{size:o,error:a,style:i,className:s,classNames:l,styles:c,unstyled:u,vars:d,mod:h,...p}=n,g=bt({name:"ComboboxChevron",classes:si,props:n,style:i,className:s,classNames:l,styles:c,unstyled:u,vars:d,varsResolver:zLe,rootSelector:"chevron"});return b.jsx(Se,{component:"svg",...p,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},h],ref:r,children:b.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});nT.classes=si,nT.displayName="@mantine/core/ComboboxChevron";const[jLe,li]=ri("Combobox component was not found in tree"),ZY=E.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>b.jsx(Ra.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:s=>{s.preventDefault(),r?.(s)},onClick:s=>{o(),n?.(s)}}));ZY.displayName="@mantine/core/ComboboxClearButton";const O3=st((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:s,...l}=ze("ComboboxDropdown",null,e),c=li();return b.jsx(mr.Dropdown,{...l,ref:r,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});O3.classes=si,O3.displayName="@mantine/core/ComboboxDropdown";const BLe={refProp:"ref"},QY=st((e,r)=>{const{children:n,refProp:o}=ze("ComboboxDropdownTarget",BLe,e);if(li(),!Qi(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return b.jsx(mr.Target,{ref:r,refProp:o,children:n})});QY.displayName="@mantine/core/ComboboxDropdownTarget";const I1=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxEmpty",null,e),c=li();return b.jsx(Se,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...l})});I1.classes=si,I1.displayName="@mantine/core/ComboboxEmpty";function oT({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const s=li(),[l,c]=E.useState(null),u=d=>{if(e?.(d),!s.readOnly&&r){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const h=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&h!==-1?(d.preventDefault(),s.store.clickSelectedOption()):a==="button"&&(d.preventDefault(),s.store.openDropdown("keyboard"))}d.key==="Escape"&&s.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&a==="button"&&(d.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:u}}const FLe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},JY=st((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=ze("ComboboxEventsTarget",FLe,e);if(!Qi(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=li(),h=oT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...h,...u,[o]:Rr(r,d.store.targetRef,Xw(n))})});JY.displayName="@mantine/core/ComboboxEventsTarget";const aT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxFooter",null,e),c=li();return b.jsx(Se,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:u=>{u.preventDefault()}})});aT.classes=si,aT.displayName="@mantine/core/ComboboxFooter";const iT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,children:l,label:c,id:u,...d}=ze("ComboboxGroup",null,e),h=li(),p=Ta(u);return b.jsxs(Se,{ref:r,role:"group","aria-labelledby":c?p:void 0,...h.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...d,children:[c&&b.jsx("div",{id:p,...h.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),l]})});iT.classes=si,iT.displayName="@mantine/core/ComboboxGroup";const sT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxHeader",null,e),c=li();return b.jsx(Se,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:u=>{u.preventDefault()}})});sT.classes=si,sT.displayName="@mantine/core/ComboboxHeader";function eW({value:e,valuesDivider:r=",",...n}){return b.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}eW.displayName="@mantine/core/ComboboxHiddenInput";const z1=st((e,r)=>{const n=ze("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,onClick:c,id:u,active:d,onMouseDown:h,onMouseOver:p,disabled:g,selected:y,mod:x,...w}=n,k=li(),C=E.useId(),_=u||C;return b.jsx(Se,{...k.getStyles("option",{className:a,classNames:o,styles:s,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":g,"combobox-selected":y},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),h?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),p?.(T)}})});z1.classes=si,z1.displayName="@mantine/core/ComboboxOption";const D3=st((e,r)=>{const n=ze("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:s,id:l,onMouseDown:c,labelledBy:u,...d}=n,h=li(),p=Ta(l);return E.useEffect(()=>{h.store.setListId(p)},[p]),b.jsx(Se,{ref:r,...h.getStyles("options",{className:a,style:i,classNames:o,styles:s}),...d,id:p,role:"listbox","aria-labelledby":u,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});D3.classes=si,D3.displayName="@mantine/core/ComboboxOptions";const HLe={withAriaAttributes:!0,withKeyboardNavigation:!0},lT=st((e,r)=>{const n=ze("ComboboxSearch",HLe,e),{classNames:o,styles:a,unstyled:i,vars:s,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:u,size:d,...h}=n,p=li(),g=p.getStyles("search"),y=oT({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return b.jsx(Ra,{ref:Rr(r,p.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||p.size,...y,...h,__staticSelector:"Combobox"})});lT.classes=si,lT.displayName="@mantine/core/ComboboxSearch";const ULe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},cT=st((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=ze("ComboboxTarget",ULe,e);if(!Qi(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=li(),h=oT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),p=E.cloneElement(n,{...h,...u});return b.jsx(mr.Target,{ref:Rr(r,d.store.targetRef),children:p})});cT.displayName="@mantine/core/ComboboxTarget";function VLe(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function qLe(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function YLe(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function tW({defaultOpened:e,opened:r,onOpenedChange:n,onDropdownClose:o,onDropdownOpen:a,loop:i=!0,scrollBehavior:s="instant"}={}){const[l,c]=Vl({value:r,defaultValue:e,finalValue:!1,onChange:n}),u=E.useRef(null),d=E.useRef(-1),h=E.useRef(null),p=E.useRef(null),g=E.useRef(-1),y=E.useRef(-1),x=E.useRef(-1),w=E.useCallback((L="unknown")=>{l||(c(!0),a?.(L))},[c,a,l]),k=E.useCallback((L="unknown")=>{l&&(c(!1),o?.(L))},[c,o,l]),C=E.useCallback((L="unknown")=>{l?k(L):w(L)},[k,w,l]),_=E.useCallback(()=>{const L=document.querySelector(`#${u.current} [data-combobox-selected]`);L?.removeAttribute("data-combobox-selected"),L?.removeAttribute("aria-selected")},[]),T=E.useCallback(L=>{const U=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!U)return null;const q=L>=U.length?0:L<0?U.length-1:L;return d.current=q,U?.[q]&&!U[q].hasAttribute("data-combobox-disabled")?(_(),U[q].setAttribute("data-combobox-selected","true"),U[q].setAttribute("aria-selected","true"),U[q].scrollIntoView({block:"nearest",behavior:s}),U[q].id):null},[s,_]),A=E.useCallback(()=>{const L=document.querySelector(`#${u.current} [data-combobox-active]`);if(L){const U=document.querySelectorAll(`#${u.current} [data-combobox-option]`),q=Array.from(U).findIndex(X=>X===L);return T(q)}return T(0)},[T]),N=E.useCallback(()=>T(qLe(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),$=E.useCallback(()=>T(VLe(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),R=E.useCallback(()=>T(YLe(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),M=E.useCallback((L="selected",U)=>{x.current=window.setTimeout(()=>{const q=document.querySelectorAll(`#${u.current} [data-combobox-option]`),X=Array.from(q).findIndex(F=>F.hasAttribute(`data-combobox-${L}`));d.current=X,U?.scrollIntoView&&q[X]?.scrollIntoView({block:"nearest",behavior:s})},0)},[]),O=E.useCallback(()=>{d.current=-1,_()},[_]),B=E.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),I=E.useCallback(L=>{u.current=L},[]),Y=E.useCallback(()=>{g.current=window.setTimeout(()=>h.current?.focus(),0)},[]),D=E.useCallback(()=>{y.current=window.setTimeout(()=>p.current?.focus(),0)},[]),V=E.useCallback(()=>d.current,[]);return E.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout(x.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:d.current,getSelectedOptionIndex:V,selectOption:T,selectFirstOption:R,selectActiveOption:A,selectNextOption:N,selectPreviousOption:$,resetSelectedOption:O,updateSelectedOptionIndex:M,listId:u.current,setListId:I,clickSelectedOption:B,searchRef:h,focusSearchInput:Y,targetRef:p,focusTarget:D}}const WLe={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},XLe=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Ro(r),"--combobox-option-padding":lr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Ne(n),"--combobox-option-fz":Ro(r),"--combobox-option-padding":lr(r,"combobox-option-padding")}});function Kn(e){const r=ze("Combobox",WLe,e),{classNames:n,styles:o,unstyled:a,children:i,store:s,vars:l,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:h,resetSelectionOnOptionHover:p,__staticSelector:g,readOnly:y,attributes:x,...w}=r,k=tW(),C=s||k,_=bt({name:g||"Combobox",classes:si,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:l,varsResolver:XLe}),T=()=>{u?.(),C.closeDropdown()};return b.jsx(jLe,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:p,readOnly:y},children:b.jsx(mr,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:A=>!A&&T(),withRoles:!1,unstyled:a,children:i})})}const GLe=e=>e;Kn.extend=GLe,Kn.classes=si,Kn.displayName="@mantine/core/Combobox",Kn.Target=cT,Kn.Dropdown=O3,Kn.Options=D3,Kn.Option=z1,Kn.Search=lT,Kn.Empty=I1,Kn.Chevron=nT,Kn.Footer=aT,Kn.Header=sT,Kn.EventsTarget=JY,Kn.DropdownTarget=QY,Kn.Group=iT,Kn.ClearButton=ZY,Kn.HiddenInput=eW;function rW({size:e,style:r,...n}){const o=e!==void 0?{width:Ne(e),height:Ne(e),...r}:r;return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var nW={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const KLe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--badge-height":lr(i,"badge-height"),"--badge-padding-x":lr(i,"badge-padding-x"),"--badge-fz":lr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:bn(r),"--badge-bg":n||a?l.background:void 0,"--badge-color":n||a?l.color:void 0,"--badge-bd":n||a?l.border:void 0,"--badge-dot-color":a==="dot"?Jo(n,e):void 0}}},Gl=Gn((e,r)=>{const n=ze("Badge",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:u,color:d,gradient:h,leftSection:p,rightSection:g,children:y,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...A}=n,N=bt({name:"Badge",props:n,classes:nW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:KLe});return b.jsxs(Se,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!p},_],...N("root",{variant:x}),ref:r,...A,children:[p&&b.jsx("span",{...N("section"),"data-position":"left",children:p}),b.jsx("span",{...N("label"),children:y}),g&&b.jsx("span",{...N("section"),"data-position":"right",children:g})]})});Gl.classes=nW,Gl.displayName="@mantine/core/Badge";var oW={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const ZLe={separator:"/"},QLe=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":Ul(r)}}),L3=st((e,r)=>{const n=ze("Breadcrumbs",ZLe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:u,separator:d,separatorMargin:h,attributes:p,...g}=n,y=bt({name:"Breadcrumbs",classes:oW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:p,vars:c,varsResolver:QLe}),x=E.Children.toArray(u).reduce((w,k,C,_)=>{const T=Qi(k)?E.cloneElement(k,{...y("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...y("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Se,{...y("separator"),key:`separator-${C}`},d)),w},[]);return b.jsx(Se,{ref:r,...y("root"),...g,children:x})});L3.classes=oW,L3.displayName="@mantine/core/Breadcrumbs";var Dp={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const aW={orientation:"horizontal"},JLe=(e,{borderWidth:r})=>({group:{"--button-border-width":Ne(r)}}),uT=st((e,r)=>{const n=ze("ButtonGroup",aW,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:u,borderWidth:d,variant:h,mod:p,attributes:g,...y}=ze("ButtonGroup",aW,e),x=bt({name:"ButtonGroup",props:n,classes:Dp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:u,varsResolver:JLe,rootSelector:"group"});return b.jsx(Se,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},p],role:"group",...y})});uT.classes=Dp,uT.displayName="@mantine/core/ButtonGroup";const eIe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":lr(s,"section-height"),"--section-padding-x":lr(s,"section-padding-x"),"--section-fz":s?.includes("compact")?Ro(s.replace("compact-","")):Ro(s),"--section-radius":r===void 0?void 0:bn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},dT=st((e,r)=>{const n=ze("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:u,gradient:d,radius:h,autoContrast:p,attributes:g,...y}=n,x=bt({name:"ButtonGroupSection",props:n,classes:Dp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:eIe,rootSelector:"groupSection"});return b.jsx(Se,{...x("groupSection"),ref:r,variant:u,...y})});dT.classes=Dp,dT.displayName="@mantine/core/ButtonGroupSection";const tIe={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Ne(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},rIe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:s,autoContrast:l})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--button-justify":s,"--button-height":lr(i,"button-height"),"--button-padding-x":lr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Ro(i.replace("compact-","")):Ro(i),"--button-radius":r===void 0?void 0:bn(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},Zn=Gn((e,r)=>{const n=ze("Button",null,e),{style:o,vars:a,className:i,color:s,disabled:l,children:c,leftSection:u,rightSection:d,fullWidth:h,variant:p,radius:g,loading:y,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:A,mod:N,attributes:$,...R}=n,M=bt({name:"Button",props:n,classes:Dp,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:$,vars:a,varsResolver:rIe}),O=!!u,B=!!d;return b.jsxs(Pr,{ref:r,...M("root",{active:!l&&!y&&!T}),unstyled:_,variant:p,disabled:l||y,mod:[{disabled:l||T,loading:y,block:h,"with-left-section":O,"with-right-section":B},N],...R,children:[typeof y=="boolean"&&b.jsx(fu,{mounted:y,transition:tIe,duration:150,children:I=>b.jsx(Se,{component:"span",...M("loader",{style:I}),"aria-hidden":!0,children:b.jsx(Pp,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),b.jsxs("span",{...M("inner"),children:[u&&b.jsx(Se,{component:"span",...M("section"),mod:{position:"left"},children:u}),b.jsx(Se,{component:"span",mod:{loading:y},...M("label"),children:c}),d&&b.jsx(Se,{component:"span",...M("section"),mod:{position:"right"},children:d})]})]})});Zn.classes=Dp,Zn.displayName="@mantine/core/Button",Zn.Group=uT,Zn.GroupSection=dT;const[nIe,oIe]=ri("Card component was not found in tree");var hT={root:"m_e615b15f",section:"m_599a2148"};const I3=Gn((e,r)=>{const n=ze("CardSection",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,withBorder:c,inheritPadding:u,mod:d,...h}=n,p=oIe();return b.jsx(Se,{ref:r,mod:[{"with-border":c,"inherit-padding":u},d],...p.getStyles("section",{className:a,style:i,styles:s,classNames:o}),...h})});I3.classes=hT,I3.displayName="@mantine/core/CardSection";const aIe=(e,{padding:r})=>({root:{"--card-padding":Ul(r)}}),z3=Gn((e,r)=>{const n=ze("Card",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:u,padding:d,attributes:h,...p}=n,g=bt({name:"Card",props:n,classes:hT,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:aIe}),y=E.Children.toArray(u),x=y.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===I3?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===y.length-1||void 0}):w);return b.jsx(nIe,{value:{getStyles:g},children:b.jsx(Rp,{ref:r,unstyled:l,...g("root"),...p,children:x})})});z3.classes=hT,z3.displayName="@mantine/core/Card",z3.Section=I3;var iW={root:"m_b183c0a2"};const iIe=(e,{color:r})=>({root:{"--code-bg":r?Jo(r,e):void 0}}),j3=st((e,r)=>{const n=ze("Code",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,block:d,variant:h,mod:p,attributes:g,...y}=n,x=bt({name:"Code",props:n,classes:iW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:iIe});return b.jsx(Se,{component:d?"pre":"code",variant:h,ref:r,mod:[{block:d},p],...x("root"),...y,dir:"ltr"})});j3.classes=iW,j3.displayName="@mantine/core/Code";var sW={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const lW={withShadow:!0},sIe=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:bn(r),"--cs-size":Ne(n)}}),j1=Gn((e,r)=>{const n=ze("ColorSwatch",lW,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,size:d,radius:h,withShadow:p,children:g,variant:y,attributes:x,...w}=ze("ColorSwatch",lW,n),k=bt({name:"ColorSwatch",props:n,classes:sW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:c,varsResolver:sIe});return b.jsxs(Se,{ref:r,variant:y,size:d,...k("root",{focusable:!0}),...w,children:[b.jsx("span",{...k("alphaOverlay")}),p&&b.jsx("span",{...k("shadowOverlay")}),b.jsx("span",{...k("colorOverlay",{style:{backgroundColor:u}})}),b.jsx("span",{...k("childrenOverlay"),children:g})]})});j1.classes=sW,j1.displayName="@mantine/core/ColorSwatch";const lIe={timeout:1e3};function cW(e){const{children:r,timeout:n,value:o,...a}=ze("CopyButton",lIe,e),i=rPe({timeout:n});return b.jsx(b.Fragment,{children:r({copy:()=>i.copy(o),copied:i.copied,...a})})}cW.displayName="@mantine/core/CopyButton";var uW={root:"m_3eebeb36",label:"m_9e365f20"};const cIe={orientation:"horizontal"},uIe=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Jo(r,e):void 0,"--divider-border-style":n,"--divider-size":lr(o,"divider-size")}}),Lp=st((e,r)=>{const n=ze("Divider",cIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,orientation:d,label:h,labelPosition:p,mod:g,attributes:y,...x}=n,w=bt({name:"Divider",classes:uW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:uIe});return b.jsx(Se,{ref:r,mod:[{orientation:d,"with-label":!!h},g],...w("root"),...x,role:"separator",children:h&&b.jsx(Se,{component:"span",mod:{position:p},...w("label"),children:h})})});Lp.classes=uW,Lp.displayName="@mantine/core/Divider";const[dW,hW]=ri("Grid component was not found in tree"),fT=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,fW=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":fT(e,r),pW=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},mW=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function dIe({span:e,order:r,offset:n,selector:o}){const a=ho(),i=hW(),s=i.breakpoints||a.breakpoints,l=A1(e)===void 0?12:A1(e),c=yp({"--col-order":A1(r)?.toString(),"--col-flex-grow":pW(l,i.grow),"--col-flex-basis":fT(l,i.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":fW(l,i.columns,i.grow),"--col-offset":mW(A1(n),i.columns)}),u=No(s).reduce((h,p)=>(h[p]||(h[p]={}),typeof r=="object"&&r[p]!==void 0&&(h[p]["--col-order"]=r[p]?.toString()),typeof e=="object"&&e[p]!==void 0&&(h[p]["--col-flex-grow"]=pW(e[p],i.grow),h[p]["--col-flex-basis"]=fT(e[p],i.columns),h[p]["--col-width"]=e[p]==="content"?"auto":void 0,h[p]["--col-max-width"]=fW(e[p],i.columns,i.grow)),typeof n=="object"&&n[p]!==void 0&&(h[p]["--col-offset"]=mW(n[p],i.columns)),h),{}),d=RV(No(u),s).filter(h=>No(u[h.value]).length>0).map(h=>({query:i.type==="container"?`mantine-grid (min-width: ${s[h.value]})`:`(min-width: ${s[h.value]})`,styles:u[h.value]}));return b.jsx(t3,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var pT={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const hIe={span:12},Zd=st((e,r)=>{const n=ze("GridCol",hIe,e),{classNames:o,className:a,style:i,styles:s,vars:l,span:c,order:u,offset:d,...h}=n,p=hW(),g=r3();return b.jsxs(b.Fragment,{children:[b.jsx(dIe,{selector:`.${g}`,span:c,order:u,offset:d}),b.jsx(Se,{ref:r,...p.getStyles("col",{className:Ji(a,g),style:i,classNames:o,styles:s}),...h})]})});Zd.classes=pT,Zd.displayName="@mantine/core/GridCol";function gW({gutter:e,selector:r,breakpoints:n,type:o}){const a=ho(),i=n||a.breakpoints,s=yp({"--grid-gutter":Ul(A1(e))}),l=No(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=Ul(e[d])),u),{}),c=RV(No(l),i).filter(u=>No(l[u.value]).length>0).map(u=>({query:o==="container"?`mantine-grid (min-width: ${i[u.value]})`:`(min-width: ${i[u.value]})`,styles:l[u.value]}));return b.jsx(t3,{styles:s,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const fIe={gutter:"md",grow:!1,columns:12},pIe=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),B1=st((e,r)=>{const n=ze("Grid",fIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,grow:u,gutter:d,columns:h,align:p,justify:g,children:y,breakpoints:x,type:w,attributes:k,...C}=n,_=bt({name:"Grid",classes:pT,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:k,vars:c,varsResolver:pIe}),T=r3();return w==="container"&&x?b.jsxs(dW,{value:{getStyles:_,grow:u,columns:h,breakpoints:x,type:w},children:[b.jsx(gW,{selector:`.${T}`,...n}),b.jsx("div",{..._("container"),children:b.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:b.jsx("div",{..._("inner"),children:y})})})]}):b.jsxs(dW,{value:{getStyles:_,grow:u,columns:h,breakpoints:x,type:w},children:[b.jsx(gW,{selector:`.${T}`,...n}),b.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:b.jsx("div",{..._("inner"),children:y})})]})});B1.classes=pT,B1.displayName="@mantine/core/Grid",B1.Col=Zd;function yW({color:e,theme:r,defaultShade:n}){const o=uu({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var bW={root:"m_bcb3f3c2"};const mIe={color:"yellow"},gIe=(e,{color:r})=>({root:{"--mark-bg-dark":yW({color:r,theme:e,defaultShade:5}),"--mark-bg-light":yW({color:r,theme:e,defaultShade:2})}}),mT=st((e,r)=>{const n=ze("Mark",mIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,variant:d,attributes:h,...p}=n,g=bt({name:"Mark",props:n,className:a,style:i,classes:bW,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:gIe});return b.jsx(Se,{component:"mark",ref:r,variant:d,...g("root"),...p})});mT.classes=bW,mT.displayName="@mantine/core/Mark";function vW(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function yIe(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(vW):vW(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,s)=>s.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const Kl=Gn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:s,...l}=ze("Highlight",null,e),c=yIe(o,a);return b.jsx(wt,{unstyled:n,ref:r,...l,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},h)=>d?b.jsx(mT,{unstyled:n,color:s,style:i,"data-highlight":u,children:u},h):b.jsx("span",{children:u},h))})});Kl.classes=wt.classes,Kl.displayName="@mantine/core/Highlight";const[bIe,xW]=ri("HoverCard component was not found in the tree"),wW=E.createContext(!1),vIe=wW.Provider,gT=()=>E.useContext(wW);function yT(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=ze("HoverCardDropdown",null,e),i=xW();if(gT()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return b.jsx(mr.Dropdown,{ref:i.floating,...c,onMouseEnter:vn(n,c.onMouseEnter),onMouseLeave:vn(o,c.onMouseLeave),...a,children:r})}const s=vn(n,i.openDropdown),l=vn(o,i.closeDropdown);return b.jsx(mr.Dropdown,{onMouseEnter:s,onMouseLeave:l,...a,children:r})}yT.displayName="@mantine/core/HoverCardDropdown";const xIe={openDelay:0,closeDelay:0};function bT(e){const{openDelay:r,closeDelay:n,children:o}=ze("HoverCardGroup",xIe,e);return b.jsx(vIe,{value:!0,children:b.jsx(aY,{delay:{open:r,close:n},children:o})})}bT.displayName="@mantine/core/HoverCardGroup",bT.extend=e=>e;const wIe={refProp:"ref"},vT=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=ze("HoverCardTarget",wIe,e);if(!Qi(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=xW();if(gT()&&s.getReferenceProps&&s.reference){const d=s.getReferenceProps();return b.jsx(mr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:{...d,ref:s.reference}}:{...d,ref:s.reference})})}const l=vn(n.props.onMouseEnter,s.openDropdown),c=vn(n.props.onMouseLeave,s.closeDropdown),u={onMouseEnter:l,onMouseLeave:c};return b.jsx(mr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:u}:u)})});vT.displayName="@mantine/core/HoverCardTarget";function kIe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=gT(),i=Ta(),s=E.useRef(-1),l=E.useRef(-1),c=E.useCallback(()=>{window.clearTimeout(s.current),window.clearTimeout(l.current)},[]),u=E.useCallback(C=>{n(C),C?(g(i),e.onOpen?.()):e.onClose?.()},[i,e.onOpen,e.onClose]),{context:d,refs:h}=x3({open:o,onOpenChange:u}),{delay:p,setCurrentId:g}=iY(d,{id:i}),{getReferenceProps:y,getFloatingProps:x}=cY([nY(d,{enabled:!0,delay:a?p:{open:e.openDelay,close:e.closeDelay}}),uY(d,{role:"dialog"}),lY(d,{enabled:a})]),w=E.useCallback(()=>{a||(c(),e.openDelay===0||e.openDelay===void 0?u(!0):s.current=window.setTimeout(()=>u(!0),e.openDelay))},[a,c,e.openDelay,u]),k=E.useCallback(()=>{a||(c(),e.closeDelay===0||e.closeDelay===void 0?u(!1):l.current=window.setTimeout(()=>u(!1),e.closeDelay))},[a,c,e.closeDelay,u]);return E.useEffect(()=>()=>c(),[c]),{opened:o,reference:h.setReference,floating:h.setFloating,getReferenceProps:y,getFloatingProps:x,openDropdown:w,closeDropdown:k}}const _Ie={openDelay:0,closeDelay:150,initiallyOpened:!1};function Ip(e){const{children:r,onOpen:n,onClose:o,openDelay:a,closeDelay:i,initiallyOpened:s,...l}=ze("HoverCard",_Ie,e),c=kIe({openDelay:a,closeDelay:i,defaultOpened:s,onOpen:n,onClose:o});return b.jsx(bIe,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:b.jsx(mr,{...l,opened:c.opened,__staticSelector:"HoverCard",children:r})})}Ip.displayName="@mantine/core/HoverCard",Ip.Target=vT,Ip.Dropdown=yT,Ip.Group=bT,Ip.extend=e=>e;var EIe=E.useLayoutEffect;const[SIe,mu]=ri("Menu component was not found in the tree");var gu={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const xT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("MenuDivider",null,e),c=mu();return b.jsx(Se,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...l})});xT.classes=gu,xT.displayName="@mantine/core/MenuDivider";const F1=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:u,children:d,...h}=ze("MenuDropdown",null,e),p=E.useRef(null),g=mu(),y=vn(u,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),p.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=vn(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=vn(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return b.jsxs(mr.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Rr(r,p),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:[g.withInitialFocusPlaceholder&&b.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),d]})});F1.classes=gu,F1.displayName="@mantine/core/MenuDropdown";const[CIe,B3]=C1(),H1=Gn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,closeMenuOnClick:c,leftSection:u,rightSection:d,children:h,disabled:p,"data-disabled":g,...y}=ze("MenuItem",null,e),x=mu(),w=B3(),k=ho(),{dir:C}=du(),_=E.useRef(null),T=y,A=vn(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),N=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,$=l?uu({color:l,theme:k}):null,R=vn(T.onKeyDown,M=>{M.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return b.jsxs(Pr,{onMouseDown:M=>M.preventDefault(),...y,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Rr(_,r),role:"menuitem",disabled:p,"data-menu-item":!0,"data-disabled":p||g||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:T1({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":$?.isThemeColor&&$?.shade===void 0?`var(--mantine-color-${$.color}-6)`:N?.color,"--menu-item-hover":N?.hover},children:[u&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:u}),h&&b.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:h}),d&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d})]})});H1.classes=gu,H1.displayName="@mantine/core/MenuItem";const wT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("MenuLabel",null,e),c=mu();return b.jsx(Se,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...l})});wT.classes=gu,wT.displayName="@mantine/core/MenuLabel";const kT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:u,children:d,...h}=ze("MenuSubDropdown",null,e),p=E.useRef(null),g=mu(),y=B3(),x=vn(l,y?.open),w=vn(c,y?.close);return b.jsx(mr.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Rr(r,p),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});kT.classes=gu,kT.displayName="@mantine/core/MenuSubDropdown";const _T=Gn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,leftSection:c,rightSection:u,children:d,disabled:h,"data-disabled":p,closeMenuOnClick:g,...y}=ze("MenuSubItem",null,e),x=mu(),w=B3(),k=ho(),{dir:C}=du(),_=E.useRef(null),T=y,A=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,N=l?uu({color:l,theme:k}):null,$=vn(T.onKeyDown,B=>{B.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),B.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),R=vn(T.onClick,()=>{!p&&g&&x.closeDropdownImmediately()}),M=vn(T.onMouseEnter,w?.open),O=vn(T.onMouseLeave,w?.close);return b.jsxs(Pr,{onMouseDown:B=>B.preventDefault(),...y,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Rr(_,r),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||p||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:M,onMouseLeave:O,onClick:R,onKeyDown:T1({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:$}),__vars:{"--menu-item-color":N?.isThemeColor&&N?.shade===void 0?`var(--mantine-color-${N.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[c&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),d&&b.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:d}),b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u||b.jsx(tT,{...x.getStyles("chevron"),size:14})})]})});_T.classes=gu,_T.displayName="@mantine/core/MenuSubItem";function kW({children:e,refProp:r}){if(!Qi(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return mu(),b.jsx(mr.Target,{refProp:r,popupType:"menu",children:e})}kW.displayName="@mantine/core/MenuSubTarget";const TIe={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function zp(e){const{children:r,closeDelay:n,...o}=ze("MenuSub",TIe,e),a=Ta(),[i,{open:s,close:l}]=NPe(!1),c=B3(),{openDropdown:u,closeDropdown:d}=WY({open:s,close:l,closeDelay:n,openDelay:0});return b.jsx(CIe,{value:{opened:i,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:b.jsx(mr,{opened:i,...o,withinPortal:!1,withArrow:!1,id:a,children:r})})}zp.extend=e=>e,zp.displayName="@mantine/core/MenuSub",zp.Target=kW,zp.Dropdown=kT,zp.Item=_T;const AIe={refProp:"ref"},F3=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=ze("MenuTarget",AIe,e);if(!Qi(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=mu(),s=n.props,l=vn(s.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=vn(s.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=vn(s.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return b.jsx(mr.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:l,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});F3.displayName="@mantine/core/MenuTarget";const NIe={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function fo(e){const r=ze("Menu",NIe,e),{children:n,onOpen:o,onClose:a,opened:i,defaultOpened:s,trapFocus:l,onChange:c,closeOnItemClick:u,loop:d,closeOnEscape:h,trigger:p,openDelay:g,closeDelay:y,classNames:x,styles:w,unstyled:k,variant:C,vars:_,menuItemTabIndex:T,keepMounted:A,withInitialFocusPlaceholder:N,attributes:$,...R}=r,M=bt({name:"Menu",classes:gu,props:r,classNames:x,styles:w,unstyled:k,attributes:$}),[O,B]=Vl({value:i,defaultValue:s,finalValue:!1,onChange:c}),[I,Y]=E.useState(!1),D=()=>{B(!1),Y(!1),O&&a?.()},V=()=>{B(!0),!O&&o?.()},L=()=>{O?D():V()},{openDropdown:U,closeDropdown:q}=WY({open:V,close:D,closeDelay:y,openDelay:g}),X=Q=>J$e("[data-menu-item]","[data-menu-dropdown]",Q),{resolvedClassNames:F,resolvedStyles:J}=yC({classNames:x,styles:w,props:r});return b.jsx(SIe,{value:{getStyles:M,opened:O,toggleDropdown:L,getItemIndex:X,openedViaClick:I,setOpenedViaClick:Y,closeOnItemClick:u,closeDropdown:p==="click"?D:q,openDropdown:p==="click"?V:U,closeDropdownImmediately:D,loop:d,trigger:p,unstyled:k,menuItemTabIndex:T,withInitialFocusPlaceholder:N},children:b.jsx(mr,{...R,opened:O,onChange:L,defaultOpened:s,trapFocus:A?!1:l,closeOnEscape:h,__staticSelector:"Menu",classNames:F,styles:J,unstyled:k,variant:C,keepMounted:A,children:n})})}fo.extend=e=>e,fo.withProps=YMe(fo),fo.classes=gu,fo.displayName="@mantine/core/Menu",fo.Item=H1,fo.Label=wT,fo.Dropdown=F1,fo.Target=F3,fo.Divider=xT,fo.Sub=zp;const[y2t,_W]=C1(),[RIe,$Ie]=C1();var H3={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const PIe=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?lr(r):lr(n,"pg-gap")}}),ET=st((e,r)=>{const n=ze("PillGroup",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,disabled:d,attributes:h,...p}=n,g=_W()?.size||u||void 0,y=bt({name:"PillGroup",classes:H3,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:PIe,stylesCtx:{size:g},rootSelector:"group"});return b.jsx(RIe,{value:{size:g,disabled:d},children:b.jsx(Se,{ref:r,size:g,...y("group"),...p})})});ET.classes=H3,ET.displayName="@mantine/core/PillGroup";const MIe={variant:"default"},OIe=(e,{radius:r},{size:n})=>({root:{"--pill-fz":lr(n,"pill-fz"),"--pill-height":lr(n,"pill-height"),"--pill-radius":r===void 0?void 0:bn(r)}}),U3=st((e,r)=>{const n=ze("Pill",MIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,variant:u,children:d,withRemoveButton:h,onRemove:p,removeButtonProps:g,radius:y,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=$Ie(),A=_W(),N=x||T?.size||void 0,$=A?.variant==="filled"?"contrast":u||"default",R=bt({name:"Pill",classes:H3,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,vars:c,varsResolver:OIe,stylesCtx:{size:N}});return b.jsxs(Se,{component:"span",ref:r,variant:$,size:N,...R("root",{variant:$}),mod:[{"with-remove":h&&!w,disabled:w||T?.disabled},k],..._,children:[b.jsx("span",{...R("label"),children:d}),h&&b.jsx(Kd,{variant:"transparent",radius:y,tabIndex:-1,"aria-hidden":!0,unstyled:l,...g,...R("remove",{className:g?.className,style:g?.style}),onMouseDown:M=>{M.preventDefault(),M.stopPropagation(),g?.onMouseDown?.(M)},onClick:M=>{M.stopPropagation(),p?.(),g?.onClick?.(M)}})]})});U3.classes=H3,U3.displayName="@mantine/core/Pill",U3.Group=ET;var EW={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const DIe=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":Ul(o)}}},ST=Gn((e,r)=>{const n=ze("NavLink",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:u,defaultOpened:d,onChange:h,children:p,active:g,disabled:y,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:A,autoContrast:N,mod:$,attributes:R,...M}=n,O=bt({name:"NavLink",props:n,classes:EW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:R,vars:c,varsResolver:DIe}),[B,I]=Vl({value:u,defaultValue:d,finalValue:!1,onChange:h}),Y=!!p,D=V=>{M.onClick?.(V),Y&&(V.preventDefault(),I(!B))};return b.jsxs(b.Fragment,{children:[b.jsxs(Pr,{...O("root"),component:"a",ref:r,onClick:D,onKeyDown:V=>{M.onKeyDown?.(V),V.nativeEvent.code==="Space"&&Y&&(V.preventDefault(),I(!B))},unstyled:l,mod:[{disabled:y,active:g,expanded:B},$],...M,children:[x&&b.jsx(Se,{component:"span",...O("section"),mod:{position:"left"},children:x}),b.jsxs(Se,{...O("body"),mod:{"no-wrap":T},children:[b.jsx(Se,{component:"span",...O("label"),children:k}),b.jsx(Se,{component:"span",mod:{active:g},...O("description"),children:C})]}),(Y||w!==void 0)&&b.jsx(Se,{...O("section"),component:"span",mod:{rotate:B&&!_,position:"right"},children:Y?w!==void 0?w:b.jsx(tT,{...O("chevron")}):w})]}),Y&&b.jsx(mq,{in:B,...O("collapse"),children:b.jsx("div",{...O("children"),children:p})})]})});ST.classes=EW,ST.displayName="@mantine/core/NavLink";var SW={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const LIe={withCloseButton:!0},IIe=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:bn(r),"--notification-color":n?Jo(n,e):void 0}}),V3=st((e,r)=>{const n=ze("Notification",LIe,e),{className:o,color:a,radius:i,loading:s,withCloseButton:l,withBorder:c,title:u,icon:d,children:h,onClose:p,closeButtonProps:g,classNames:y,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:A,role:N,attributes:$,...R}=n,M=bt({name:"Notification",classes:SW,props:n,className:o,style:x,classNames:y,styles:w,unstyled:k,attributes:$,vars:_,varsResolver:IIe});return b.jsxs(Se,{...M("root"),mod:[{"data-with-icon":!!d||s,"data-with-border":c},T],ref:r,variant:C,role:N||"alert",...R,children:[d&&!s&&b.jsx("div",{...M("icon"),children:d}),s&&b.jsx(Pp,{size:28,color:a,...A,...M("loader")}),b.jsxs("div",{...M("body"),children:[u&&b.jsx("div",{...M("title"),children:u}),b.jsx(Se,{...M("description"),mod:{"data-with-title":!!u},children:h})]}),l&&b.jsx(Kd,{iconSize:16,color:"gray",...g,unstyled:k,onClick:p,...M("closeButton")})]})});V3.classes=SW,V3.displayName="@mantine/core/Notification";const zIe={duration:100,transition:"fade"};function CW(e,r){return{...zIe,...r,...e}}function jIe({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:s,y:l,elements:c,refs:u,update:d,placement:h}=x3({placement:r,middleware:[zC({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=h.includes("right")?e:r.includes("left")?e*-1:0,g=h.includes("bottom")?e:r.includes("top")?e*-1:0,y=E.useCallback(({clientX:x,clientY:w})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+p,top:w+g,right:x,bottom:w}}})},[c.reference]);return E.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",y);const w=Wl(u.floating.current);return w.forEach(k=>{k.addEventListener("scroll",d)}),()=>{x.removeEventListener("mousemove",y),w.forEach(k=>{k.removeEventListener("scroll",d)})}}},[c.reference,u.floating.current,d,y,o]),{handleMouseMove:y,x:s,y:l,opened:o,setOpened:a,boundaryRef:i,floating:u.setFloating}}var q3={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const BIe={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Yw("popover")},FIe=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:bn(r),"--tooltip-bg":n?Jo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),CT=st((e,r)=>{const n=ze("TooltipFloating",BIe,e),{children:o,refProp:a,withinPortal:i,style:s,className:l,classNames:c,styles:u,unstyled:d,radius:h,color:p,label:g,offset:y,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:A,portalProps:N,attributes:$,...R}=n,M=ho(),O=bt({name:"TooltipFloating",props:n,classes:q3,className:l,style:s,classNames:c,styles:u,unstyled:d,attributes:$,rootSelector:"tooltip",vars:A,varsResolver:FIe}),{handleMouseMove:B,x:I,y:Y,opened:D,boundaryRef:V,floating:L,setOpened:U}=jIe({offset:y,position:x,defaultOpened:_});if(!Qi(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=Rr(V,Xw(o),r),X=o.props,F=Q=>{X.onMouseEnter?.(Q),B(Q),U(!0)},J=Q=>{X.onMouseLeave?.(Q),U(!1)};return b.jsxs(b.Fragment,{children:[b.jsx($p,{...N,withinPortal:i,children:b.jsx(Se,{...R,...O("tooltip",{style:{...kC(s,M),zIndex:k,display:!C&&D?"block":"none",top:(Y&&Math.round(Y))??"",left:(I&&Math.round(I))??""}}),variant:T,ref:L,mod:{multiline:w},children:g})}),E.cloneElement(o,{...X,[a]:q,onMouseEnter:F,onMouseLeave:J})]})});CT.classes=q3,CT.displayName="@mantine/core/TooltipFloating";const TW=E.createContext(!1),HIe=TW.Provider,UIe=()=>E.useContext(TW),VIe={openDelay:0,closeDelay:0};function Qd(e){const{openDelay:r,closeDelay:n,children:o}=ze("TooltipGroup",VIe,e);return b.jsx(HIe,{value:!0,children:b.jsx(aY,{delay:{open:r,close:n},children:o})})}Qd.displayName="@mantine/core/TooltipGroup",Qd.extend=e=>e;function qIe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function YIe(e){const r=qIe(e.middlewares),n=[Wq(e.offset)];return r.shift&&n.push(zC(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?b3():b3(r.flip)),n.push(Gq({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?O1():O1(r.inline)):e.inline&&n.push(O1()),n}function WIe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=UIe(),i=Ta(),s=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:l,y:c,context:u,refs:d,placement:h,middlewareData:{arrow:{x:p,y:g}={}}}=x3({strategy:e.strategy,placement:e.position,open:o,onOpenChange:s,middleware:YIe(e),whileElementsMounted:m3}),{delay:y,currentId:x,setCurrentId:w}=iY(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=cY([nY(u,{enabled:e.events?.hover,delay:a?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),RDe(u,{enabled:e.events?.focus,visibleOnly:!0}),uY(u,{role:"tooltip"}),lY(u,{enabled:typeof e.opened>"u"})]);qd(()=>{e.onPositionChange?.(h)},[h]);const _=o&&x&&x!==i;return{x:l,y:c,arrowX:p,arrowY:g,reference:d.setReference,floating:d.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:h}}const AW={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Yw("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},XIe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:bn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},po=st((e,r)=>{const n=ze("Tooltip",AW,e),{children:o,position:a,refProp:i,label:s,openDelay:l,closeDelay:c,onPositionChange:u,opened:d,defaultOpened:h,withinPortal:p,radius:g,color:y,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,offset:M,transitionProps:O,multiline:B,events:I,zIndex:Y,disabled:D,positionDependencies:V,onClick:L,onMouseEnter:U,onMouseLeave:q,inline:X,variant:F,keepMounted:J,vars:Q,portalProps:z,mod:W,floatingStrategy:G,middlewares:Z,autoContrast:oe,attributes:ee,target:re,...he}=ze("Tooltip",AW,n),{dir:Ce}=du(),ce=E.useRef(null),de=WIe({position:NY(Ce,a),closeDelay:c,openDelay:l,onPositionChange:u,opened:d,defaultOpened:h,events:I,arrowRef:ce,arrowOffset:N,offset:typeof M=="number"?M+(T?A/2:0):M,positionDependencies:[...V,re??o],inline:X,strategy:G,middlewares:Z});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&de.reference(Qe)},[re,de]);const be=bt({name:"Tooltip",props:n,classes:q3,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ee,rootSelector:"tooltip",vars:Q,varsResolver:XIe});if(!re&&!Qi(o))return null;if(re){const Qe=CW(O,{duration:100,transition:"fade"});return b.jsx(b.Fragment,{children:b.jsx($p,{...z,withinPortal:p,children:b.jsx(fu,{...Qe,keepMounted:J,mounted:!D&&!!de.opened,duration:de.isGroupPhase?10:Qe.duration,children:St=>b.jsxs(Se,{...he,"data-fixed":G==="fixed"||void 0,variant:F,mod:[{multiline:B},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...St,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[s,b.jsx(E3,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,...be("arrow")})]})})})})}const De=o,Ge=De.props,Xe=Rr(de.reference,Xw(De),r),_t=CW(O,{duration:100,transition:"fade"});return b.jsxs(b.Fragment,{children:[b.jsx($p,{...z,withinPortal:p,children:b.jsx(fu,{..._t,keepMounted:J,mounted:!D&&!!de.opened,duration:de.isGroupPhase?10:_t.duration,children:Qe=>b.jsxs(Se,{...he,"data-fixed":G==="fixed"||void 0,variant:F,mod:[{multiline:B},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...Qe,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[s,b.jsx(E3,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,...be("arrow")})]})})}),E.cloneElement(De,de.getReferenceProps({onClick:L,onMouseEnter:U,onMouseLeave:q,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Ji(_,Ge.className),...Ge,[i]:Xe}))]})});po.classes=q3,po.displayName="@mantine/core/Tooltip",po.Floating=CT,po.Group=Qd;var NW={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const GIe={withItemsBorders:!0},KIe=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:bn(r),"--sc-color":n?Jo(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":lr(a,"sc-padding"),"--sc-font-size":Ro(a)}}),U1=st((e,r)=>{const n=ze("SegmentedControl",GIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:u,value:d,defaultValue:h,onChange:p,size:g,name:y,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:A,transitionTimingFunction:N,variant:$,autoContrast:R,withItemsBorders:M,mod:O,attributes:B,...I}=n,Y=bt({name:"SegmentedControl",props:n,classes:NW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:B,vars:c,varsResolver:KIe}),D=ho(),V=u.map(re=>typeof re=="string"?{label:re,value:re}:re),L=PPe(),[U,q]=E.useState(eC()),[X,F]=E.useState(null),[J,Q]=E.useState({}),z=(re,he)=>{J[he]=re,Q(J)},[W,G]=Vl({value:d,defaultValue:h,finalValue:Array.isArray(u)?V.find(re=>!re.disabled)?.value??u[0]?.value??null:null,onChange:p}),Z=Ta(y),oe=V.map(re=>E.createElement(Se,{...Y("control"),mod:{active:W===re.value,orientation:C},key:re.value},E.createElement("input",{...Y("input"),disabled:x||re.disabled,type:"radio",name:Z,value:re.value,id:`${Z}-${re.value}`,checked:W===re.value,onChange:()=>!w&&G(re.value),"data-focus-ring":D.focusRing,key:`${re.value}-input`}),E.createElement(Se,{component:"label",...Y("label"),mod:{active:W===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${Z}-${re.value}`,ref:he=>z(he,re.value),__vars:{"--sc-label-color":T!==void 0?pC({color:T,theme:D,autoContrast:R}):void 0},key:`${re.value}-label`},b.jsx("span",{...Y("innerLabel"),children:re.label})))),ee=Rr(r,re=>F(re));return kPe(()=>{q(eC())},[u.length]),u.length===0?null:b.jsxs(Se,{...Y("root"),variant:$,size:g,ref:ee,mod:[{"full-width":k,orientation:C,initialized:L,"with-items-borders":M},O],...I,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&b.jsx(P3,{target:J[W],parent:X,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},U),oe]})});U1.classes=NW,U1.displayName="@mantine/core/SegmentedControl";const[ZIe,Y3]=ri("SliderProvider was not found in tree"),RW=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...s},l)=>{const{getStyles:c}=Y3();return b.jsx(Se,{tabIndex:-1,variant:n,size:e,ref:l,...c("root"),...s})});RW.displayName="@mantine/core/SliderRoot";const $W=E.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:s,onKeyDownCapture:l,labelTransitionProps:c,labelAlwaysOn:u,thumbLabel:d,onFocus:h,onBlur:p,showLabelOnHover:g,isHovered:y,children:x=null,disabled:w},k)=>{const{getStyles:C}=Y3(),[_,T]=E.useState(!1),A=u||i||_||g&&y;return b.jsxs(Se,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:N=>{T(!0),typeof h=="function"&&h(N)},onBlur:N=>{T(!1),typeof p=="function"&&p(N)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:l,onClick:N=>N.stopPropagation(),children:[x,b.jsx(fu,{mounted:a!=null&&!!A,transition:"fade",duration:0,...c,children:N=>b.jsx("div",{...C("label",{style:N}),children:a})})]})});$W.displayName="@mantine/core/SliderThumb";function PW({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function QIe({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function MW({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:s}){const{getStyles:l}=Y3();if(!e)return null;const c=e.map((u,d)=>E.createElement(Se,{...l("markWrapper"),__vars:{"--mark-offset":`${PW({value:u.value,min:r,max:n})}%`},key:d},b.jsx(Se,{...l("mark"),mod:{filled:QIe({mark:u,value:a,offset:i,inverted:s}),disabled:o}}),u.label&&b.jsx("div",{...l("markLabel"),children:u.label})));return b.jsx("div",{children:c})}MW.displayName="@mantine/core/SliderMarks";function OW({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:s,...l}){const{getStyles:c}=Y3();return b.jsx(Se,{...c("trackContainer"),mod:{disabled:o},...s,children:b.jsxs(Se,{...c("track"),mod:{inverted:i,disabled:o},children:[b.jsx(Se,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,b.jsx(MW,{...l,offset:a,disabled:o,inverted:i})]})})}OW.displayName="@mantine/core/SliderTrack";function JIe({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const s=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),l=(s!==0?Math.round(s/a)*a:0)+n,c=Math.max(l,n);return i!==void 0?Number(c.toFixed(i)):c}function W3(e,r){return parseFloat(e.toFixed(r))}function eze(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function TT(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function AT(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.value<e);return n?n.value:e}function DW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[0].value:0}function LW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var IW={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const tze={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},rze=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":lr(r,"slider-size"),"--slider-color":n?Jo(n,e):void 0,"--slider-radius":a===void 0?void 0:bn(a),"--slider-thumb-size":o!==void 0?Ne(o):"calc(var(--slider-size) * 2)"}}),NT=st((e,r)=>{const n=ze("Slider",tze,e),{classNames:o,styles:a,value:i,onChange:s,onChangeEnd:l,size:c,min:u,max:d,domain:h,step:p,precision:g,defaultValue:y,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,thumbChildren:N,disabled:$,unstyled:R,scale:M,inverted:O,className:B,style:I,vars:Y,hiddenInputProps:D,restrictToMarks:V,thumbProps:L,attributes:U,...q}=n,X=bt({name:"Slider",props:n,classes:IW,classNames:o,className:B,styles:a,style:I,attributes:U,vars:Y,varsResolver:rze,unstyled:R}),{dir:F}=du(),[J,Q]=E.useState(!1),[z,W]=Vl({value:typeof i=="number"?lu(i,u,d):i,defaultValue:typeof y=="number"?lu(y,u,d):y,finalValue:lu(0,u,d),onChange:s}),G=E.useRef(z),Z=E.useRef(l);E.useEffect(()=>{Z.current=l},[l]);const oe=E.useRef(null),ee=E.useRef(null),[re,he]=h||[u,d],Ce=PW({value:z,min:re,max:he}),ce=M(z),de=typeof k=="function"?k(ce):k,be=g??eze(p),De=E.useCallback(({x:Ke})=>{if(!$){const We=JIe({value:Ke,min:re,max:he,step:p,precision:be}),lt=lu(We,u,d);W(V&&w?.length?XV(lt,w.map(Et=>Et.value)):lt),G.current=lt}},[$,u,d,re,he,p,be,W,w,V]),Ge=E.useCallback(()=>{if(!$&&Z.current){const Ke=V&&w?.length?XV(G.current,w.map(We=>We.value)):G.current;Z.current(Ke)}},[$,w,V]),{ref:Xe,active:_t}=BV(De,{onScrubEnd:Ge},F),Qe=E.useCallback(Ke=>{!$&&Z.current&&Z.current(Ke)},[$]),St=Ke=>{if(!$)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=TT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(z+p,u),d),be);W(We),Qe(We);break}case"ArrowRight":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=F==="rtl"?AT(z,w):TT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(F==="rtl"?z-p:z+p,u),d),be);W(We),Qe(We);break}case"ArrowDown":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=AT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(z-p,u),d),be);W(We),Qe(We);break}case"ArrowLeft":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=F==="rtl"?TT(z,w):AT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(F==="rtl"?z+p:z-p,u),d),be);W(We),Qe(We);break}case"Home":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){W(DW(w)),Qe(DW(w));break}W(u),Qe(u);break}case"End":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){W(LW(w)),Qe(LW(w));break}W(d),Qe(d);break}}};return b.jsx(ZIe,{value:{getStyles:X},children:b.jsxs(RW,{...q,ref:Rr(r,oe),onKeyDownCapture:St,onMouseDownCapture:()=>oe.current?.focus(),size:c,disabled:$,children:[b.jsx(OW,{inverted:O,offset:0,filled:Ce,marks:w,min:re,max:he,value:ce,disabled:$,containerProps:{ref:Xe,onMouseEnter:A?()=>Q(!0):void 0,onMouseLeave:A?()=>Q(!1):void 0},children:b.jsx($W,{max:he,min:re,value:ce,position:Ce,dragging:_t,label:de,ref:ee,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,isHovered:J,disabled:$,...L,children:N})}),b.jsx("input",{type:"hidden",name:x,value:ce,...D})]})})});NT.classes=IW,NT.displayName="@mantine/core/Slider";const RT=st((e,r)=>{const{w:n,h:o,miw:a,mih:i,...s}=ze("Space",null,e);return b.jsx(Se,{ref:r,...s,w:n,miw:a??n,h:o,mih:i??o})});RT.displayName="@mantine/core/Space";var zW={root:"m_6d731127"};const nze={gap:"md",align:"stretch",justify:"flex-start"},oze=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":Ul(r),"--stack-align":n,"--stack-justify":o}}),ra=st((e,r)=>{const n=ze("Stack",nze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,align:u,justify:d,gap:h,variant:p,attributes:g,...y}=n,x=bt({name:"Stack",props:n,classes:zW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:oze});return b.jsx(Se,{ref:r,...x("root"),variant:p,...y})});ra.classes=zW,ra.displayName="@mantine/core/Stack";const[aze,$T]=ri("Tabs component was not found in the tree");var V1={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const q1=st((e,r)=>{const n=ze("TabsList",null,e),{children:o,className:a,grow:i,justify:s,classNames:l,styles:c,style:u,mod:d,...h}=n,p=$T();return b.jsx(Se,{...h,...p.getStyles("list",{className:a,style:u,classNames:l,styles:c,props:n,variant:p.variant}),ref:r,role:"tablist",variant:p.variant,mod:[{grow:i,orientation:p.orientation,placement:p.orientation==="vertical"&&p.placement,inverted:p.inverted},d],"aria-orientation":p.orientation,__vars:{"--tabs-justify":s},children:o})});q1.classes=V1,q1.displayName="@mantine/core/TabsList";const Zl=st((e,r)=>{const n=ze("TabsPanel",null,e),{children:o,className:a,value:i,classNames:s,styles:l,style:c,mod:u,keepMounted:d,...h}=n,p=$T(),g=p.value===i,y=p.keepMounted||d||g?o:null;return b.jsx(Se,{...p.getStyles("panel",{className:a,classNames:s,styles:l,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:p.orientation},u],role:"tabpanel",id:p.getPanelId(i),"aria-labelledby":p.getTabId(i),...h,children:y})});Zl.classes=V1,Zl.displayName="@mantine/core/TabsPanel";const jp=st((e,r)=>{const n=ze("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:s,value:l,onClick:c,onKeyDown:u,disabled:d,color:h,style:p,classNames:g,styles:y,vars:x,mod:w,tabIndex:k,...C}=n,_=ho(),{dir:T}=du(),A=$T(),N=l===A.value,$=M=>{A.onChange(A.allowTabDeactivation&&l===A.value?null:l),c?.(M)},R={classNames:g,styles:y,props:n};return b.jsxs(Pr,{...C,...A.getStyles("tab",{className:o,style:p,variant:A.variant,...R}),disabled:d,unstyled:A.unstyled,variant:A.variant,mod:[{active:N,disabled:d,orientation:A.orientation,inverted:A.inverted,placement:A.orientation==="vertical"&&A.placement},w],ref:r,role:"tab",id:A.getTabId(l),"aria-selected":N,tabIndex:k!==void 0?k:N||A.value===null?0:-1,"aria-controls":A.getPanelId(l),onClick:$,__vars:{"--tabs-color":h?Jo(h,_):void 0},onKeyDown:T1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:A.activateTabWithKeyboard,loop:A.loop,orientation:A.orientation||"horizontal",dir:T,onKeyDown:u}),children:[s&&b.jsx("span",{...A.getStyles("tabSection",R),"data-position":"left",children:s}),a&&b.jsx("span",{...A.getStyles("tabLabel",R),children:a}),i&&b.jsx("span",{...A.getStyles("tabSection",R),"data-position":"right",children:i})]})});jp.classes=V1,jp.displayName="@mantine/core/TabsTab";const jW="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",ize={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},sze=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":bn(r),"--tabs-color":Jo(n,e),"--tabs-text-color":EMe(o,e)?pC({color:n,theme:e,autoContrast:o}):void 0}}),Jd=st((e,r)=>{const n=ze("Tabs",ize,e),{defaultValue:o,value:a,onChange:i,orientation:s,children:l,loop:c,id:u,activateTabWithKeyboard:d,allowTabDeactivation:h,variant:p,color:g,radius:y,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:A,style:N,vars:$,autoContrast:R,mod:M,attributes:O,...B}=n,I=Ta(u),[Y,D]=Vl({value:a,defaultValue:o,finalValue:null,onChange:i}),V=bt({name:"Tabs",props:n,classes:V1,className:A,style:N,classNames:C,styles:_,unstyled:T,attributes:O,vars:$,varsResolver:sze});return b.jsx(aze,{value:{placement:w,value:Y,orientation:s,id:I,loop:c,activateTabWithKeyboard:d,getTabId:TV(`${I}-tab`,jW),getPanelId:TV(`${I}-panel`,jW),onChange:D,allowTabDeactivation:h,variant:p,color:g,radius:y,inverted:x,keepMounted:k,unstyled:T,getStyles:V},children:b.jsx(Se,{ref:r,id:I,variant:p,mod:[{orientation:s,inverted:s==="horizontal"&&x,placement:s==="vertical"&&w},M],...V("root"),...B,children:l})})});Jd.classes=V1,Jd.displayName="@mantine/core/Tabs",Jd.Tab=jp,Jd.Panel=Zl,Jd.List=q1;var BW={root:"m_7341320d"};const lze=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ti-size":lr(r,"ti-size"),"--ti-radius":n===void 0?void 0:bn(n),"--ti-bg":i||o?l.background:void 0,"--ti-color":i||o?l.color:void 0,"--ti-bd":i||o?l.border:void 0}}},ci=st((e,r)=>{const n=ze("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,autoContrast:u,attributes:d,...h}=n,p=bt({name:"ThemeIcon",classes:BW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d,vars:c,varsResolver:lze});return b.jsx(Se,{ref:r,...p("root"),...h})});ci.classes=BW,ci.displayName="@mantine/core/ThemeIcon";const cze=["h1","h2","h3","h4","h5","h6"],uze=["xs","sm","md","lg","xl"];function dze(e,r){const n=r!==void 0?r:`h${e}`;return cze.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:uze.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:Ne(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var FW={root:"m_8a5d1357"};const hze={order:1},fze=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=dze(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},eh=st((e,r)=>{const n=ze("Title",hze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,order:c,vars:u,size:d,variant:h,lineClamp:p,textWrap:g,mod:y,attributes:x,...w}=n,k=bt({name:"Title",props:n,classes:FW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:u,varsResolver:fze});return[1,2,3,4,5,6].includes(c)?b.jsx(Se,{...k("root"),component:`h${c}`,variant:h,ref:r,mod:[{order:c,"data-line-clamp":typeof p=="number"},y],size:d,...w}):null});eh.classes=FW,eh.displayName="@mantine/core/Title";function HW(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),s=Math.max(o,a);return n.slice(i,s+1)}function PT({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:s,level:l=1,renderNode:c,flatValues:u,allowRangeSelection:d,expandOnSpace:h,checkOnSpace:p}){const g=E.useRef(null),y=(e.children||[]).map(_=>b.jsx(PT,{node:_,flatValues:u,getStyles:r,rootIndex:void 0,level:l+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:d,expandOnSpace:h,checkOnSpace:p},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):s&&bp(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=bp(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const A=Array.from(T.querySelectorAll("[role=treeitem]")),N=A.indexOf(_.currentTarget);if(N===-1)return;const $=_.nativeEvent.code==="ArrowDown"?N+1:N-1;if(A[$]?.focus(),_.shiftKey){const R=A[$];R&&o.setSelectedState(HW(o.anchorNode,R.dataset.value,u))}}_.nativeEvent.code==="Space"&&(h&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),p&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),d&&_.shiftKey&&o.anchorNode?(o.setSelectedState(HW(o.anchorNode,e.value,u)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return b.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${l-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":l,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:l,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):b.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&y.length>0&&b.jsx(Se,{component:"ul",role:"group",...r("subtree"),"data-level":l,children:y})]})}PT.displayName="@mantine/core/TreeNode";function X3(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=X3(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const s=i.currentTreeChecked.every(c=>c.checked),l={checked:s,indeterminate:!s,value:a.value,hasChildren:!0};o.push(l),n.push(l)}else if(i.currentTreeChecked.length>0){const s={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(s),n.push(s)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function UW(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=UW(e,n.children);if(o)return o}}return null}function G3(e,r,n=[]){const o=UW(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?G3(a.value,r,n):n.push(a.value)}),n):n}function VW(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...VW(n.children)):r.push(n.value),r),[])}function pze(e,r,n){return n.length===0?!1:n.includes(e)?!0:X3(r,n).result.some(o=>o.value===e&&o.checked)}const mze=WV(pze);function gze(e,r,n){return n.length===0?!1:X3(r,n).result.some(o=>o.value===e&&o.indeterminate)}const yze=WV(gze);function qW(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&qW(e,a.children,n,o)}),o}function bze(e,r){const n=[];return e.forEach(o=>n.push(...G3(o,r))),Array.from(new Set(n))}function Y1({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[s,l]=E.useState([]),[c,u]=E.useState(n),[d,h]=E.useState(e),[p,g]=E.useState(r),[y,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(L=>{u(U=>qW(U,L,d)),g(U=>bze(U,L)),l(L)},[d,p]),_=E.useCallback(L=>{u(U=>{const q={...U,[L]:!U[L]};return q[L]?i?.(L):a?.(L),q})},[a,i]),T=E.useCallback(L=>{u(U=>(U[L]!==!1&&a?.(L),{...U,[L]:!1}))},[a]),A=E.useCallback(L=>{u(U=>(U[L]!==!0&&i?.(L),{...U,[L]:!0}))},[i]),N=E.useCallback(()=>{u(L=>{const U={...L};return Object.keys(U).forEach(q=>{U[q]=!0}),U})},[]),$=E.useCallback(()=>{u(L=>{const U={...L};return Object.keys(U).forEach(q=>{U[q]=!1}),U})},[]),R=E.useCallback(L=>h(U=>o?U.includes(L)?(x(null),U.filter(q=>q!==L)):(x(L),[...U,L]):U.includes(L)?(x(null),[]):(x(L),[L])),[]),M=E.useCallback(L=>{x(L),h(U=>o?U.includes(L)?U:[...U,L]:[L])},[]),O=E.useCallback(L=>{y===L&&x(null),h(U=>U.filter(q=>q!==L))},[]),B=E.useCallback(()=>{h([]),x(null)},[]),I=E.useCallback(L=>{const U=G3(L,s);g(q=>Array.from(new Set([...q,...U])))},[s]),Y=E.useCallback(L=>{const U=G3(L,s);g(q=>q.filter(X=>!U.includes(X)))},[s]),D=E.useCallback(()=>{g(()=>VW(s))},[s]),V=E.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:d,checkedState:p,anchorNode:y,initialize:C,toggleExpanded:_,collapse:T,expand:A,expandAllNodes:N,collapseAllNodes:$,setExpandedState:u,checkNode:I,uncheckNode:Y,checkAllNodes:D,uncheckAllNodes:V,setCheckedState:g,toggleSelected:R,select:M,deselect:O,clearSelected:B,setSelectedState:h,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>X3(s,p).result,isNodeChecked:L=>mze(L,s,p),isNodeIndeterminate:L=>yze(L,s,p)}}var YW={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function WW(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...WW(n.children)),r),[])}const vze={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},xze=(e,{levelOffset:r})=>({root:{"--level-offset":Ul(r)}}),Bp=st((e,r)=>{const n=ze("Tree",vze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:u,expandOnClick:d,tree:h,renderNode:p,selectOnClick:g,clearSelectionOnOutsideClick:y,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,A=Y1(),N=h||A,$=bt({name:"Tree",classes:YW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:xze}),R=$V(()=>y&&N.clearSelected()),M=Rr(r,R),O=E.useMemo(()=>WW(u),[u]);E.useEffect(()=>{N.initialize(u)},[u]);const B=u.map((I,Y)=>b.jsx(PT,{node:I,getStyles:$,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:N,renderNode:p,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},I.value));return b.jsx(Se,{component:"ul",ref:M,...$("root"),...T,role:"tree","aria-multiselectable":N.multiple,"data-tree-root":!0,children:B})});Bp.displayName="@mantine/core/Tree",Bp.classes=YW;const MT=E.createContext(null);function XW(){const e=E.useContext(MT);if(!e)throw new Error("useRootContainer must be used within a RootContainer");return e}function wze(){return XW().ref}function kze(){return XW().ref.current}const GW=E.createContext(null);function _ze(){const e=E.useContext(GW);return e===null&&console.warn("ReduceGraphicsMode is not provided"),e??!1}const[Eze,Sze]=ri("PanningAtomSafeCtx is not provided");function Cze({id:e,className:r,reduceGraphics:n=!1,children:o}){const[a,i]=E.useState(!1),s=E.useRef(null),l=E.useRef(null);l.current||(l.current=s$e(!1)),QS(()=>{i(!0)},[]),E.useEffect(()=>l.current?.subscribe(u=>{s.current?.setAttribute("data-likec4-diagram-panning",u?"true":"false")}),[]);const c=E.useMemo(()=>({id:e,ref:s}),[e,s]);return b.jsx(Eze,{value:l.current,children:b.jsx(GW.Provider,{value:n,children:b.jsx("div",{id:e,className:Je("likec4-root",r),ref:s,...n&&{"data-likec4-reduced-graphics":!0},children:a&&!!c.ref.current&&b.jsx(MT.Provider,{value:c,children:o})})})})}const W1=E.createContext(null),OT=E.createContext(null);function Tze({children:e}){return E.useContext(OT)?b.jsx(b.Fragment,{children:e}):null}function Aze(){return E.useContext(W1)}function Ho(){const e=E.useContext(W1);if(!e)throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");return e}function Nze(){const e=Ho(),[r,n]=E.useState(e.$data.specification);return E.useEffect(()=>{n(o=>ut(o,e.$data.specification)?o:e.$data.specification)},[e]),r}const KW=E.createContext({}),Rze=["yellow","orange","amber","tomato","red","ruby","crimson","pink","pink","purple","violet","indigo","blue","teal","grass","lime"],$ze=e=>{const r=e.color;if(nB(e))return`
      --colors-likec4-tag-bg: ${r};
      --colors-likec4-tag-bg-hover: color-mix(in srgb, ${r}, var(--colors-likec4-mix-color) 20%);
    `;if(!Rze.includes(r))return"";let n="12";return["mint","grass","lime","yellow","amber"].includes(r)&&(n="dark-2"),`
  --colors-likec4-tag-border: var(--colors-${r}-8);
  --colors-likec4-tag-bg: var(--colors-${r}-9);
  --colors-likec4-tag-bg-hover: var(--colors-${r}-10);
  --colors-likec4-tag-text: var(--colors-${r}-${n});
  `};function Pze(e,r){return!e||iu(e)?"":yn(B6(e),ERe(([n,o])=>[`:is(${r} [data-likec4-tag="${n}"]) {`,$ze(o),"}"]),oV(`
`))}function Mze({children:e,rootSelector:r}){const n=Nze().tags,o=Pze(n,r);return b.jsxs(KW.Provider,{value:n,children:[o!==""&&b.jsx(Oze,{stylesheet:o}),e]})}const Oze=E.memo(({stylesheet:e})=>{const r=Yd()?.();return b.jsx("style",{"data-likec4-tags":!0,type:"text/css",dangerouslySetInnerHTML:{__html:e},nonce:r})});function Dze(e){return E.useContext(KW)[e]??{color:"tomato"}}function ZW(){return Ta().replace("mantine-","likec4-")}var Lze="css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle",Ize=Lze.split(","),zze="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",jze=zze.split(",").concat(Ize),Bze=new Map(jze.map(e=>[e,!0])),Fze=/&|@/,QW=co(e=>Bze.has(e)||e.startsWith("--")||Fze.test(e));const Hze=(e,r)=>!r.includes(e)&&!QW(e),Uze=(e,r)=>e.__shouldForwardProps__&&r?n=>e.__shouldForwardProps__(n)&&r(n):r,Vze=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;if(e.__cva__&&r.__cva__||e.__recipe__&&r.__recipe__)return e.merge(r);const n=new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");throw TypeError.captureStackTrace?.(n),n},qze=e=>typeof e=="string"?e:e?.displayName||e?.name||"Component";function DT(e,r={},n={}){const o=r.__cva__||r.__recipe__?r:J0(r),a=n.shouldForwardProp||Hze,i=p=>n.forwardProps?.includes(p)?!0:a(p,o.variantKeys),s=Object.assign(n.dataAttr&&r.__name__?{"data-recipe":r.__name__}:{},n.defaultProps),l=Vze(e.__cva__,o),c=Uze(e,i),u=e.__base__||e,d=E.forwardRef(function(p,g){const{as:y=u,unstyled:x,children:w,...k}=p,C=E.useMemo(()=>Object.assign({},s,k),[k]),[_,T,A,N,$]=E.useMemo(()=>Yn(C,GS.keys,c,l.variantKeys,QW),[C]);function R(){const{css:B,...I}=N,Y=l.__getCompoundVariantCss__?.(A);return Je(l(A,!1),ye(Y,I,B),C.className)}function M(){const{css:B,...I}=N,Y=l.raw(A);return Je(ye(Y,I,B),C.className)}const O=()=>{if(x){const{css:B,...I}=N;return Je(ye(I,B),C.className)}return r.__recipe__?R():M()};return E.createElement(y,{ref:g,...T,...$,...GS(_),className:O()},w??C.children)}),h=qze(u);return d.displayName=`styled.${h}`,d.__cva__=l,d.__base__=u,d.__shouldForwardProps__=i,d}function Yze(){const e=new Map;return new Proxy(DT,{apply(r,n,o){return DT(...o)},get(r,n){return e.has(n)||e.set(n,DT(n)),e.get(n)}})}const Ql=Yze(),JW={transform(e){return e}},Wze=(e={})=>{const r=Q0(JW,e);return JW.transform(r,Z0)},Vr=E.forwardRef(function(e,r){const[n,o]=Yn(e,[]),a=Wze(n),i={ref:r,...a,...o};return E.createElement(Ql.div,i)}),eX={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"column",...o}},defaultValues:{alignItems:"stretch",gap:"sm"}},LT=(e={})=>{const r=Q0(eX,e);return eX.transform(r,Z0)},X1=e=>ye(LT(e));X1.raw=LT;const Fp=E.forwardRef(function(e,r){const[n,o]=Yn(e,["justify","gap"]),a=LT(n),i={ref:r,...a,...o};return E.createElement(Ql.div,i)}),tX={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"row",...o}},defaultValues:{gap:"sm"}},IT=(e={})=>{const r=Q0(tX,e);return tX.transform(r,Z0)},Uo=e=>ye(IT(e));Uo.raw=IT;const xn=E.forwardRef(function(e,r){const[n,o]=Yn(e,["justify","gap"]),a=IT(n),i={ref:r,...a,...o};return E.createElement(Ql.div,i)}),rX={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}}},nX=(e={})=>{const r=Q0(rX,e);return rX.transform(r,Z0)},oX=e=>ye(nX(e));oX.raw=nX;const aX={transform(e,{map:r,isCssUnit:n,isCssVar:o}){const{inline:a,block:i,...s}=e,l=c=>n(c)||o(c)?c:`token(spacing.${c}, ${c})`;return{"--bleed-x":r(a,l),"--bleed-y":r(i,l),marginInline:"calc(var(--bleed-x, 0) * -1)",marginBlock:"calc(var(--bleed-y, 0) * -1)",...s}},defaultValues:{inline:"0",block:"0"}},iX=(e={})=>{const r=Q0(aX,e);return aX.transform(r,Z0)},sX=e=>ye(iX(e));sX.raw=iX;const Xze=E.createContext(null),zT={didCatch:!1,error:null};let jT=class extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zT}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var r,n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(zT)}}componentDidCatch(e,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,e,r)}componentDidUpdate(e,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&Gze(e.resetKeys,o)){var a,i;(a=(i=this.props).onReset)===null||a===void 0||a.call(i,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(zT)}}render(){const{children:e,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:a,error:i}=this.state;let s=e;if(a){const l={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=E.createElement(n,l);else if(o!==void 0)s=o;else throw i}return E.createElement(Xze.Provider,{value:{didCatch:a,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};function Gze(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==r.length||e.some((n,o)=>!Object.is(n,r[o]))}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kze=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],Hp=yt("outline","x","X",Kze);function BT({error:e,resetErrorBoundary:r}){const n=e instanceof Error?e.message:"Unknown error";return b.jsx(Vr,{css:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0",backdropFilter:"blur(5px)",backgroundColor:{_dark:"[rgb(34 34 34 / 10%)]",_light:"[rgb(15 15 15/ 20%)]"},zIndex:1e3},children:b.jsxs(V3,{icon:b.jsx(Hp,{style:{width:16,height:16}}),styles:{icon:{alignSelf:"flex-start"}},color:"red",title:"Oops, something went wrong",p:"xl",withCloseButton:!1,children:[b.jsx(ta,{maw:"100%",mah:400,children:b.jsx(j3,{block:!0,children:n})}),b.jsx(Ur,{gap:"xs",mt:"xl",children:b.jsx(Zn,{color:"gray",size:"xs",variant:"light",onClick:()=>r(),children:"Reset"})})]})})}function lX(e){return b.jsx(jT,{FallbackComponent:BT,onError:(r,n)=>{console.error(r,n)},...e})}function Zze(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Qze(){const e=Zze();if(e.__xstate__)return e.__xstate__}const Jze=e=>{if(typeof window>"u")return;const r=Qze();r&&r.register(e)};class cX{constructor(r){this._process=r,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(r){const n={value:r,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const r=this._current;this._process(r.value),this._current=r.next}this._last=null}}const uX=".",eje="",dX="",tje="#",rje="*",hX="xstate.init",nje="xstate.error",G1="xstate.stop";function oje(e,r){return{type:`xstate.after.${e}.${r}`}}function FT(e,r){return{type:`xstate.done.state.${e}`,output:r}}function aje(e,r){return{type:`xstate.done.actor.${e}`,output:r,actorId:e}}function fX(e,r){return{type:`xstate.error.actor.${e}`,error:r,actorId:e}}function pX(e){return{type:hX,input:e}}function al(e){setTimeout(()=>{throw e})}const ije=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mX(e,r){const n=gX(e),o=gX(r);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(a=>a in o?mX(n[a],o[a]):!1)}function HT(e){if(vX(e))return e;const r=[];let n="";for(let o=0;o<e.length;o++){switch(e.charCodeAt(o)){case 92:n+=e[o+1],o++;continue;case 46:r.push(n),n="";continue}n+=e[o]}return r.push(n),r}function gX(e){if(Bje(e))return e.value;if(typeof e!="string")return e;const r=HT(e);return sje(r)}function sje(e){if(e.length===1)return e[0];const r={};let n=r;for(let o=0;o<e.length-1;o++)if(o===e.length-2)n[e[o]]=e[o+1];else{const a=n;n={},a[e[o]]=n}return r}function yX(e,r){const n={},o=Object.keys(e);for(let a=0;a<o.length;a++){const i=o[a];n[i]=r(e[i],i,e,a)}return n}function bX(e){return vX(e)?e:[e]}function Jl(e){return e===void 0?[]:bX(e)}function UT(e,r,n,o){return typeof e=="function"?e({context:r,event:n,self:o}):e}function vX(e){return Array.isArray(e)}function lje(e){return e.type.startsWith("xstate.error.actor")}function Up(e){return bX(e).map(r=>typeof r>"u"||typeof r=="string"?{target:r}:r)}function xX(e){if(!(e===void 0||e===eje))return Jl(e)}function K3(e,r,n){const o=typeof e=="object",a=o?e:void 0;return{next:(o?e.next:e)?.bind(a),error:(o?e.error:r)?.bind(a),complete:(o?e.complete:n)?.bind(a)}}function wX(e,r){return`${r}.${e}`}function VT(e,r){const n=r.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[r];const[,o,a]=n,i=e.getStateNodeById(a).config.invoke;return(Array.isArray(i)?i[o]:i).src}function kX(e,r){return`${e.sessionId}.${r}`}let cje=0;function uje(e,r){const n=new Map,o=new Map,a=new WeakMap,i=new Set,s={},{clock:l,logger:c}=r,u={schedule:(p,g,y,x,w=Math.random().toString(36).slice(2))=>{const k={source:p,target:g,event:y,delay:x,id:w,startedAt:Date.now()},C=kX(p,w);h._snapshot._scheduledEvents[C]=k;const _=l.setTimeout(()=>{delete s[C],delete h._snapshot._scheduledEvents[C],h._relay(p,g,y)},x);s[C]=_},cancel:(p,g)=>{const y=kX(p,g),x=s[y];delete s[y],delete h._snapshot._scheduledEvents[y],x!==void 0&&l.clearTimeout(x)},cancelAll:p=>{for(const g in h._snapshot._scheduledEvents){const y=h._snapshot._scheduledEvents[g];y.source===p&&u.cancel(p,y.id)}}},d=p=>{if(!i.size)return;const g={...p,rootId:e.sessionId};i.forEach(y=>y.next?.(g))},h={_snapshot:{_scheduledEvents:(r?.snapshot&&r.snapshot.scheduler)??{}},_bookId:()=>`x:${cje++}`,_register:(p,g)=>(n.set(p,g),p),_unregister:p=>{n.delete(p.sessionId);const g=a.get(p);g!==void 0&&(o.delete(g),a.delete(p))},get:p=>o.get(p),_set:(p,g)=>{const y=o.get(p);if(y&&y!==g)throw new Error(`Actor with system ID '${p}' already exists.`);o.set(p,g),a.set(g,p)},inspect:p=>{const g=K3(p);return i.add(g),{unsubscribe(){i.delete(g)}}},_sendInspectionEvent:d,_relay:(p,g,y)=>{h._sendInspectionEvent({type:"@xstate.event",sourceRef:p,actorRef:g,event:y}),g._send(y)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...h._snapshot._scheduledEvents}}),start:()=>{const p=h._snapshot._scheduledEvents;h._snapshot._scheduledEvents={};for(const g in p){const{source:y,target:x,event:w,delay:k,id:C}=p[g];u.schedule(y,x,w,k,C)}},_clock:l,_logger:c};return h}let qT=!1;const YT=1;let na=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const dje={clock:{setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class hje{constructor(r,n){this.logic=r,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new cX(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=na.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...dje,...n},{clock:a,logger:i,parent:s,syncSnapshot:l,id:c,systemId:u,inspect:d}=o;this.system=s?s.system:uje(this,{clock:a,logger:i}),d&&!s&&this.system.inspect(K3(d)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=n?.logger??this.system._logger,this.clock=n?.clock??this.system._clock,this._parent=s,this._syncSnapshot=l,this.options=o,this.src=o.src??r,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:h=>{this._deferred.push(h)},system:this.system,stopChild:h=>{if(h._parent!==this)throw new Error(`Cannot stop child actor ${h.id} of ${this.id} because it is not a child`);h._stop()},emit:h=>{const p=this.eventListeners.get(h.type),g=this.eventListeners.get("*");if(!p&&!g)return;const y=[...p?p.values():[],...g?g.values():[]];for(const x of y)try{x(h)}catch(w){al(w)}},actionExecutor:h=>{const p=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:h.type,params:h.params}}),!h.exec)return;const g=qT;try{qT=!0,h.exec(h.info,h.params)}finally{qT=g}};this._processingStatus===na.Running?p():this._deferred.push(p)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this._systemId=u,this.system._set(u,this)),this._initState(n?.snapshot??n?.state),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(r){try{this._snapshot=r?this.logic.restoreSnapshot?this.logic.restoreSnapshot(r,this._actorScope):r:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(n){this._snapshot={status:"error",output:void 0,error:n}}}update(r,n){this._snapshot=r;let o;for(;o=this._deferred.shift();)try{o()}catch(a){this._deferred.length=0,this._snapshot={...r,status:"error",error:a}}switch(this._snapshot.status){case"active":for(const a of this.observers)try{a.next?.(r)}catch(i){al(i)}break;case"done":for(const a of this.observers)try{a.next?.(r)}catch(i){al(i)}this._stopProcedure(),this._complete(),this._doneEvent=aje(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:r})}subscribe(r,n,o){const a=K3(r,n,o);if(this._processingStatus!==na.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{a.complete?.()}catch(i){al(i)}break;case"error":{const i=this._snapshot.error;if(!a.error)al(i);else try{a.error(i)}catch(s){al(s)}break}}return{unsubscribe:()=>{this.observers.delete(a)}}}on(r,n){let o=this.eventListeners.get(r);o||(o=new Set,this.eventListeners.set(r,o));const a=n.bind(void 0);return o.add(a),{unsubscribe:()=>{o.delete(a)}}}start(){if(this._processingStatus===na.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=na.Running;const r=pX(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:r}),this._snapshot.status){case"done":return this.update(this._snapshot,r),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,r),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(r){let n,o;try{n=this.logic.transition(this._snapshot,r,this._actorScope)}catch(a){o={err:a}}if(o){const{err:a}=o;this._snapshot={...this._snapshot,status:"error",error:a},this._error(a);return}this.update(n,r),r.type===G1&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===na.Stopped?this:(this.mailbox.clear(),this._processingStatus===na.NotStarted?(this._processingStatus=na.Stopped,this):(this.mailbox.enqueue({type:G1}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const r of this.observers)try{r.complete?.()}catch(n){al(n)}this.observers.clear()}_reportError(r){if(!this.observers.size){this._parent||al(r);return}let n=!1;for(const o of this.observers){const a=o.error;n||=!a;try{a?.(r)}catch(i){al(i)}}this.observers.clear(),n&&al(r)}_error(r){this._stopProcedure(),this._reportError(r),this._parent&&this.system._relay(this,this._parent,fX(this.id,r))}_stopProcedure(){return this._processingStatus!==na.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new cX(this._process.bind(this)),this._processingStatus=na.Stopped,this.system._unregister(this),this)}_send(r){this._processingStatus!==na.Stopped&&this.mailbox.enqueue(r)}send(r){this.system._relay(void 0,this,r)}attachDevTools(){const{devTools:r}=this.options;r&&(typeof r=="function"?r:Jze)(this)}toJSON(){return{xstate$$type:YT,id:this.id}}getPersistedSnapshot(r){return this.logic.getPersistedSnapshot(this._snapshot,r)}[ije](){return this}getSnapshot(){return this._snapshot}}function Vp(e,...[r]){return new hje(e,r)}function fje(e,r,n,o,{sendId:a}){const i=typeof a=="function"?a(n,o):a;return[r,{sendId:i},void 0]}function pje(e,r){e.defer(()=>{e.system.scheduler.cancel(e.self,r.sendId)})}function oa(e){function r(n,o){}return r.type="xstate.cancel",r.sendId=e,r.resolve=fje,r.execute=pje,r}function mje(e,r,n,o,{id:a,systemId:i,src:s,input:l,syncSnapshot:c}){const u=typeof s=="string"?VT(r.machine,s):s,d=typeof a=="function"?a(n):a;let h,p;return u&&(p=typeof l=="function"?l({context:r.context,event:n.event,self:e.self}):l,h=Vp(u,{id:d,src:s,parent:e.self,syncSnapshot:c,systemId:i,input:p})),[nh(r,{children:{...r.children,[d]:h}}),{id:a,systemId:i,actorRef:h,src:s,input:p},void 0]}function gje(e,{actorRef:r}){r&&e.defer(()=>{r._processingStatus!==na.Stopped&&r.start()})}function qp(...[e,{id:r,systemId:n,input:o,syncSnapshot:a=!1}={}]){function i(s,l){}return i.type="xstate.spawnChild",i.id=r,i.systemId=n,i.src=e,i.input=o,i.syncSnapshot=a,i.resolve=mje,i.execute=gje,i}function yje(e,r,n,o,{actorRef:a}){const i=typeof a=="function"?a(n,o):a,s=typeof i=="string"?r.children[i]:i;let l=r.children;return s&&(l={...l},delete l[s.id]),[nh(r,{children:l}),s,void 0]}function bje(e,r){if(r){if(e.system._unregister(r),r._processingStatus!==na.Running){e.stopChild(r);return}e.defer(()=>{e.stopChild(r)})}}function yu(e){function r(n,o){}return r.type="xstate.stopChild",r.actorRef=e,r.resolve=yje,r.execute=bje,r}function vje(e,{context:r,event:n},{guards:o}){return o.every(a=>Yp(a,r,n,e))}function Z3(e){function r(n,o){return!1}return r.check=vje,r.guards=e,r}function xje(e,{context:r,event:n},{guards:o}){return o.some(a=>Yp(a,r,n,e))}function _X(e){function r(n,o){return!1}return r.check=xje,r.guards=e,r}function Yp(e,r,n,o){const{machine:a}=o,i=typeof e=="function",s=i?e:a.implementations.guards[typeof e=="string"?e:e.type];if(!i&&!s)throw new Error(`Guard '${typeof e=="string"?e:e.type}' is not implemented.'.`);if(typeof s!="function")return Yp(s,r,n,o);const l={context:r,event:n},c=i||typeof e=="string"?void 0:"params"in e?typeof e.params=="function"?e.params({context:r,event:n}):e.params:void 0;return"check"in s?s.check(o,l,s):s(l,c)}const WT=e=>e.type==="atomic"||e.type==="final";function Wp(e){return Object.values(e.states).filter(r=>r.type!=="history")}function K1(e,r){const n=[];if(r===e)return n;let o=e.parent;for(;o&&o!==r;)n.push(o),o=o.parent;return n}function Q3(e){const r=new Set(e),n=SX(r);for(const o of r)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))AX(o).forEach(a=>r.add(a));else if(o.type==="parallel"){for(const a of Wp(o))if(a.type!=="history"&&!r.has(a)){const i=AX(a);for(const s of i)r.add(s)}}for(const o of r){let a=o.parent;for(;a;)r.add(a),a=a.parent}return r}function EX(e,r){const n=r.get(e);if(!n)return{};if(e.type==="compound"){const a=n[0];if(a){if(WT(a))return a.key}else return{}}const o={};for(const a of n)o[a.key]=EX(a,r);return o}function SX(e){const r=new Map;for(const n of e)r.has(n)||r.set(n,[]),n.parent&&(r.has(n.parent)||r.set(n.parent,[]),r.get(n.parent).push(n));return r}function CX(e,r){const n=Q3(r);return EX(e,SX(n))}function XT(e,r){return r.type==="compound"?Wp(r).some(n=>n.type==="final"&&e.has(n)):r.type==="parallel"?Wp(r).every(n=>XT(e,n)):r.type==="final"}const J3=e=>e[0]===tje;function wje(e,r){return e.transitions.get(r)||[...e.transitions.keys()].filter(n=>{if(n===rje)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),a=r.split(".");for(let i=0;i<o.length;i++){const s=o[i],l=a[i];if(s==="*")return i===o.length-1;if(s!==l)return!1}return!0}).sort((n,o)=>o.length-n.length).flatMap(n=>e.transitions.get(n))}function kje(e){const r=e.config.after;if(!r)return[];const n=o=>{const a=oje(o,e.id),i=a.type;return e.entry.push(sn(a,{id:i,delay:o})),e.exit.push(oa(i)),i};return Object.keys(r).flatMap(o=>{const a=r[o],i=typeof a=="string"?{target:a}:a,s=Number.isNaN(+o)?o:+o,l=n(s);return Jl(i).map(c=>({...c,event:l,delay:s}))}).map(o=>{const{delay:a}=o;return{...th(e,o.event,o),delay:a}})}function th(e,r,n){const o=xX(n.target),a=n.reenter??!1,i=Sje(e,o),s={...n,actions:Jl(n.actions),guard:n.guard,target:i,source:e,reenter:a,eventType:r,toJSON:()=>({...s,source:`#${e.id}`,target:i?i.map(l=>`#${l.id}`):void 0})};return s}function _je(e){const r=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(n===dX)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[n];r.set(n,Up(o).map(a=>th(e,n,a)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;r.set(n,Up(e.config.onDone).map(o=>th(e,n,o)))}for(const n of e.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;r.set(o,Up(n.onDone).map(a=>th(e,o,a)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;r.set(o,Up(n.onError).map(a=>th(e,o,a)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;r.set(o,Up(n.onSnapshot).map(a=>th(e,o,a)))}}for(const n of e.after){let o=r.get(n.eventType);o||(o=[],r.set(n.eventType,o)),o.push(n)}return r}function Eje(e,r){const n=typeof r=="string"?e.states[r]:r?e.states[r.target]:void 0;if(!n&&r)throw new Error(`Initial state node "${r}" not found on parent state node #${e.id}`);const o={source:e,actions:!r||typeof r=="string"?[]:Jl(r.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return o}function Sje(e,r){if(r!==void 0)return r.map(n=>{if(typeof n!="string")return n;if(J3(n))return e.machine.getStateNodeById(n);const o=n[0]===uX;if(o&&!e.parent)return ek(e,n.slice(1));const a=o?e.key+n:n;if(e.parent)try{return ek(e.parent,a)}catch(i){throw new Error(`Invalid transition definition for state node '${e.id}':
${i.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function TX(e){const r=xX(e.config.target);return r?{target:r.map(n=>typeof n=="string"?ek(e.parent,n):n)}:e.parent.initial}function rh(e){return e.type==="history"}function AX(e){const r=NX(e);for(const n of r)for(const o of K1(n,e))r.add(o);return r}function NX(e){const r=new Set;function n(o){if(!r.has(o)){if(r.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const a of Wp(o))n(a)}}return n(e),r}function Xp(e,r){if(J3(r))return e.machine.getStateNodeById(r);if(!e.states)throw new Error(`Unable to retrieve child state '${r}' from '${e.id}'; no child states exist.`);const n=e.states[r];if(!n)throw new Error(`Child state '${r}' does not exist on '${e.id}'`);return n}function ek(e,r){if(typeof r=="string"&&J3(r))try{return e.machine.getStateNodeById(r)}catch{}const n=HT(r).slice();let o=e;for(;n.length;){const a=n.shift();if(!a.length)break;o=Xp(o,a)}return o}function tk(e,r){if(typeof r=="string"){const a=e.states[r];if(!a)throw new Error(`State '${r}' does not exist on '${e.id}'`);return[e,a]}const n=Object.keys(r),o=n.map(a=>Xp(e,a)).filter(Boolean);return[e.machine.root,e].concat(o,n.reduce((a,i)=>{const s=Xp(e,i);if(!s)return a;const l=tk(s,r[i]);return a.concat(l)},[]))}function Cje(e,r,n,o){const a=Xp(e,r).next(n,o);return!a||!a.length?e.next(n,o):a}function Tje(e,r,n,o){const a=Object.keys(r),i=Xp(e,a[0]),s=GT(i,r[a[0]],n,o);return!s||!s.length?e.next(n,o):s}function Aje(e,r,n,o){const a=[];for(const i of Object.keys(r)){const s=r[i];if(!s)continue;const l=Xp(e,i),c=GT(l,s,n,o);c&&a.push(...c)}return a.length?a:e.next(n,o)}function GT(e,r,n,o){return typeof r=="string"?Cje(e,r,n,o):Object.keys(r).length===1?Tje(e,r,n,o):Aje(e,r,n,o)}function Nje(e){return Object.keys(e.states).map(r=>e.states[r]).filter(r=>r.type==="history")}function bu(e,r){let n=e;for(;n.parent&&n.parent!==r;)n=n.parent;return n.parent===r}function Rje(e,r){const n=new Set(e),o=new Set(r);for(const a of n)if(o.has(a))return!0;for(const a of o)if(n.has(a))return!0;return!1}function RX(e,r,n){const o=new Set;for(const a of e){let i=!1;const s=new Set;for(const l of o)if(Rje(ZT([a],r,n),ZT([l],r,n)))if(bu(a.source,l.source))s.add(l);else{i=!0;break}if(!i){for(const l of s)o.delete(l);o.add(a)}}return Array.from(o)}function $je(e){const[r,...n]=e;for(const o of K1(r,void 0))if(n.every(a=>bu(a,o)))return o}function KT(e,r){if(!e.target)return[];const n=new Set;for(const o of e.target)if(rh(o))if(r[o.id])for(const a of r[o.id])n.add(a);else for(const a of KT(TX(o),r))n.add(a);else n.add(o);return[...n]}function $X(e,r){const n=KT(e,r);if(!n)return;if(!e.reenter&&n.every(a=>a===e.source||bu(a,e.source)))return e.source;const o=$je(n.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function ZT(e,r,n){const o=new Set;for(const a of e)if(a.target?.length){const i=$X(a,n);a.reenter&&a.source===i&&o.add(i);for(const s of r)bu(s,i)&&o.add(s)}return[...o]}function Pje(e,r){if(e.length!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function QT(e,r,n,o,a,i){if(!e.length)return r;const s=new Set(r._nodes);let l=r.historyValue;const c=RX(e,s,l);let u=r;a||([u,l]=Lje(u,o,n,c,s,l,i,n.actionExecutor)),u=Kp(u,o,n,c.flatMap(h=>h.actions),i,void 0),u=Oje(u,o,n,c,s,i,l,a);const d=[...s];u.status==="done"&&(u=Kp(u,o,n,d.sort((h,p)=>p.order-h.order).flatMap(h=>h.exit),i,void 0));try{return l===r.historyValue&&Pje(r._nodes,s)?u:nh(u,{_nodes:d,historyValue:l})}catch(h){throw h}}function Mje(e,r,n,o,a){if(o.output===void 0)return;const i=FT(a.id,a.output!==void 0&&a.parent?UT(a.output,e.context,r,n.self):void 0);return UT(o.output,e.context,i,n.self)}function Oje(e,r,n,o,a,i,s,l){let c=e;const u=new Set,d=new Set;Dje(o,s,d,u),l&&d.add(e.machine.root);const h=new Set;for(const p of[...u].sort((g,y)=>g.order-y.order)){a.add(p);const g=[];g.push(...p.entry);for(const y of p.invoke)g.push(qp(y.src,{...y,syncSnapshot:!!y.onSnapshot}));if(d.has(p)){const y=p.initial.actions;g.push(...y)}if(c=Kp(c,r,n,g,i,p.invoke.map(y=>y.id)),p.type==="final"){const y=p.parent;let x=y?.type==="parallel"?y:y?.parent,w=x||p;for(y?.type==="compound"&&i.push(FT(y.id,p.output!==void 0?UT(p.output,c.context,r,n.self):void 0));x?.type==="parallel"&&!h.has(x)&&XT(a,x);)h.add(x),i.push(FT(x.id)),w=x,x=x.parent;if(x)continue;c=nh(c,{status:"done",output:Mje(c,r,n,c.machine.root,w)})}}return c}function Dje(e,r,n,o){for(const a of e){const i=$X(a,r);for(const l of a.target||[])!rh(l)&&(a.source!==l||a.source!==i||a.reenter)&&(o.add(l),n.add(l)),Gp(l,r,n,o);const s=KT(a,r);for(const l of s){const c=K1(l,i);i?.type==="parallel"&&c.push(i),PX(o,r,n,c,!a.source.parent&&a.reenter?void 0:i)}}}function Gp(e,r,n,o){if(rh(e))if(r[e.id]){const a=r[e.id];for(const i of a)o.add(i),Gp(i,r,n,o);for(const i of a)JT(i,e.parent,o,r,n)}else{const a=TX(e);for(const i of a.target)o.add(i),a===e.parent?.initial&&n.add(e.parent),Gp(i,r,n,o);for(const i of a.target)JT(i,e.parent,o,r,n)}else if(e.type==="compound"){const[a]=e.initial.target;rh(a)||(o.add(a),n.add(a)),Gp(a,r,n,o),JT(a,e,o,r,n)}else if(e.type==="parallel")for(const a of Wp(e).filter(i=>!rh(i)))[...o].some(i=>bu(i,a))||(rh(a)||(o.add(a),n.add(a)),Gp(a,r,n,o))}function PX(e,r,n,o,a){for(const i of o)if((!a||bu(i,a))&&e.add(i),i.type==="parallel")for(const s of Wp(i).filter(l=>!rh(l)))[...e].some(l=>bu(l,s))||(e.add(s),Gp(s,r,n,e))}function JT(e,r,n,o,a){PX(n,o,a,K1(e,r))}function Lje(e,r,n,o,a,i,s,l){let c=e;const u=ZT(o,a,i);u.sort((h,p)=>p.order-h.order);let d;for(const h of u)for(const p of Nje(h)){let g;p.history==="deep"?g=y=>WT(y)&&bu(y,h):g=y=>y.parent===h,d??={...i},d[p.id]=Array.from(a).filter(g)}for(const h of u)c=Kp(c,r,n,[...h.exit,...h.invoke.map(p=>yu(p.id))],s,void 0),a.delete(h);return[c,d||i]}function Ije(e,r){return e.implementations.actions[r]}function MX(e,r,n,o,a,i){const{machine:s}=e;let l=e;for(const c of o){const u=typeof c=="function",d=u?c:Ije(s,typeof c=="string"?c:c.type),h={context:l.context,event:r,self:n.self,system:n.system},p=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:l.context,event:r}):c.params:void 0;if(!d||!("resolve"in d)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:h,params:p,exec:d});continue}const g=d,[y,x,w]=g.resolve(n,l,h,p,d,a);l=y,"retryResolve"in g&&i?.push([g,x]),"execute"in g&&n.actionExecutor({type:g.type,info:h,params:x,exec:g.execute.bind(null,n,x)}),w&&(l=MX(l,r,n,w,a,i))}return l}function Kp(e,r,n,o,a,i){const s=i?[]:void 0,l=MX(e,r,n,o,{internalQueue:a,deferredActorIds:i},s);return s?.forEach(([c,u])=>{c.retryResolve(n,l,u)}),l}function e8(e,r,n,o){let a=e;const i=[];function s(u,d,h){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:d,snapshot:u,_transitions:h}),i.push(u)}if(r.type===G1)return a=nh(OX(a,r,n),{status:"stopped"}),s(a,r,[]),{snapshot:a,microstates:i};let l=r;if(l.type!==hX){const u=l,d=lje(u),h=DX(u,a);if(d&&!h.length)return a=nh(e,{status:"error",error:u.error}),s(a,u,[]),{snapshot:a,microstates:i};a=QT(h,e,n,l,!1,o),s(a,u,h)}let c=!0;for(;a.status==="active";){let u=c?zje(a,l):[];const d=u.length?a:void 0;if(!u.length){if(!o.length)break;l=o.shift(),u=DX(l,a)}a=QT(u,a,n,l,!1,o),c=a!==d,s(a,l,u)}return a.status!=="active"&&OX(a,l,n),{snapshot:a,microstates:i}}function OX(e,r,n){return Kp(e,r,n,Object.values(e.children).map(o=>yu(o)),[],void 0)}function DX(e,r){return r.machine.getTransitionData(r,e)}function zje(e,r){const n=new Set,o=e._nodes.filter(WT);for(const a of o)e:for(const i of[a].concat(K1(a,void 0)))if(i.always){for(const s of i.always)if(s.guard===void 0||Yp(s.guard,e.context,r,e)){n.add(s);break e}}return RX(Array.from(n),new Set(e._nodes),e.historyValue)}function jje(e,r){const n=Q3(tk(e,r));return CX(e,[...n])}function Bje(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const Fje=function(e){return mX(e,this.value)},Hje=function(e){return this.tags.has(e)},Uje=function(e){const r=this.machine.getTransitionData(this,e);return!!r?.length&&r.some(n=>n.target!==void 0||n.actions.length)},Vje=function(){const{_nodes:e,tags:r,machine:n,getMeta:o,toJSON:a,can:i,hasTag:s,matches:l,...c}=this;return{...c,tags:Array.from(r)}},qje=function(){return this._nodes.reduce((e,r)=>(r.meta!==void 0&&(e[r.id]=r.meta),e),{})};function rk(e,r){return{status:e.status,output:e.output,error:e.error,machine:r,context:e.context,_nodes:e._nodes,value:CX(r.root,e._nodes),tags:new Set(e._nodes.flatMap(n=>n.tags)),children:e.children,historyValue:e.historyValue||{},matches:Fje,hasTag:Hje,can:Uje,getMeta:qje,toJSON:Vje}}function nh(e,r={}){return rk({...e,...r},e.machine)}function Yje(e){if(typeof e!="object"||e===null)return{};const r={};for(const n in e){const o=e[n];Array.isArray(o)&&(r[n]=o.map(a=>({id:a.id})))}return r}function Wje(e,r){const{_nodes:n,tags:o,machine:a,children:i,context:s,can:l,hasTag:c,matches:u,getMeta:d,toJSON:h,...p}=e,g={};for(const y in i){const x=i[y];g[y]={snapshot:x.getPersistedSnapshot(r),src:x.src,systemId:x._systemId,syncSnapshot:x._syncSnapshot}}return{...p,context:LX(s),children:g,historyValue:Yje(p.historyValue)}}function LX(e){let r;for(const n in e){const o=e[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)r??=Array.isArray(e)?e.slice():{...e},r[n]={xstate$$type:YT,id:o.id};else{const a=LX(o);a!==o&&(r??=Array.isArray(e)?e.slice():{...e},r[n]=a)}}return r??e}function Xje(e,r,n,o,{event:a,id:i,delay:s},{internalQueue:l}){const c=r.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${a}" }) instead`);const u=typeof a=="function"?a(n,o):a;let d;if(typeof s=="string"){const h=c&&c[s];d=typeof h=="function"?h(n,o):h}else d=typeof s=="function"?s(n,o):s;return typeof d!="number"&&l.push(u),[r,{event:u,id:i,delay:d},void 0]}function Gje(e,r){const{event:n,delay:o,id:a}=r;if(typeof o=="number"){e.defer(()=>{const i=e.self;e.system.scheduler.schedule(i,i,n,o,a)});return}}function sn(e,r){function n(o,a){}return n.type="xstate.raise",n.event=e,n.id=r?.id,n.delay=r?.delay,n.resolve=Xje,n.execute=Gje,n}const IX=new WeakMap;function zX(e){return{config:e,start:(r,n)=>{const{self:o,system:a,emit:i}=n,s={receivers:void 0,dispose:void 0};IX.set(o,s),s.dispose=e({input:r.input,system:a,self:o,sendBack:l=>{o.getSnapshot().status!=="stopped"&&o._parent&&a._relay(o,o._parent,l)},receive:l=>{s.receivers??=new Set,s.receivers.add(l)},emit:i})},transition:(r,n,o)=>{const a=IX.get(o.self);return n.type===G1?(r={...r,status:"stopped",error:void 0},a.dispose?.(),r):(a.receivers?.forEach(i=>i(n)),r)},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}const jX="xstate.promise.resolve",BX="xstate.promise.reject",nk=new WeakMap;function Kje(e){return{config:e,transition:(r,n,o)=>{if(r.status!=="active")return r;switch(n.type){case jX:{const a=n.data;return{...r,status:"done",output:a,input:void 0}}case BX:return{...r,status:"error",error:n.data,input:void 0};case G1:return nk.get(o.self)?.abort(),{...r,status:"stopped",input:void 0};default:return r}},start:(r,{self:n,system:o,emit:a})=>{if(r.status!=="active")return;const i=new AbortController;nk.set(n,i),Promise.resolve(e({input:r.input,system:o,self:n,signal:i.signal,emit:a})).then(s=>{n.getSnapshot().status==="active"&&(nk.delete(n),o._relay(n,n,{type:jX,data:s}))},s=>{n.getSnapshot().status==="active"&&(nk.delete(n),o._relay(n,n,{type:BX,data:s}))})},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function Zje(e,{machine:r,context:n},o,a){const i=(s,l)=>{if(typeof s=="string"){const c=VT(r,s);if(!c)throw new Error(`Actor logic '${s}' not implemented in machine '${r.id}'`);const u=Vp(c,{id:l?.id,parent:e.self,syncSnapshot:l?.syncSnapshot,input:typeof l?.input=="function"?l.input({context:n,event:o,self:e.self}):l?.input,src:s,systemId:l?.systemId});return a[u.id]=u,u}else return Vp(s,{id:l?.id,parent:e.self,syncSnapshot:l?.syncSnapshot,input:l?.input,src:s,systemId:l?.systemId})};return(s,l)=>{const c=i(s,l);return a[c.id]=c,e.defer(()=>{c._processingStatus!==na.Stopped&&c.start()}),c}}function Qje(e,r,n,o,{assignment:a}){if(!r.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const i={},s={context:r.context,event:n.event,spawn:Zje(e,r,n.event,i),self:e.self,system:e.system};let l={};if(typeof a=="function")l=a(s,o);else for(const u of Object.keys(a)){const d=a[u];l[u]=typeof d=="function"?d(s,o):d}const c=Object.assign({},r.context,l);return[nh(r,{context:c,children:Object.keys(i).length?{...r.children,...i}:r.children}),void 0,void 0]}function et(e){function r(n,o){}return r.type="xstate.assign",r.assignment=e,r.resolve=Qje,r}const FX=new WeakMap;function Zp(e,r,n){let o=FX.get(e);return o?r in o||(o[r]=n()):(o={[r]:n()},FX.set(e,o)),o[r]}const Jje={},Z1=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class ok{constructor(r,n){if(this.config=r,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(uX),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?yX(this.config.states,(o,a)=>new ok(o,{_parent:this,_key:a,_machine:this.machine})):Jje,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=Jl(this.config.entry).slice(),this.exit=Jl(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=Jl(r.tags).slice()}_initialize(){this.transitions=_je(this),this.config.always&&(this.always=Up(this.config.always).map(r=>th(this,dX,r))),Object.keys(this.states).forEach(r=>{this.states[r]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(Z1),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(r=>`#${r.id}`),source:`#${this.id}`,actions:this.initial.actions.map(Z1),eventType:null})}:void 0,history:this.history,states:yX(this.states,r=>r.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(r=>({...r,actions:r.actions.map(Z1)})),entry:this.entry.map(Z1),exit:this.exit.map(Z1),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return Zp(this,"invoke",()=>Jl(this.config.invoke).map((r,n)=>{const{src:o,systemId:a}=r,i=r.id??wX(this.id,n),s=typeof o=="string"?o:`xstate.invoke.${wX(this.id,n)}`;return{...r,src:s,id:i,systemId:a,toJSON(){const{onDone:l,onError:c,...u}=r;return{...u,type:"xstate.invoke",src:s,id:i}}}}))}get on(){return Zp(this,"on",()=>[...this.transitions].flatMap(([r,n])=>n.map(o=>[r,o])).reduce((r,[n,o])=>(r[n]=r[n]||[],r[n].push(o),r),{}))}get after(){return Zp(this,"delayedTransitions",()=>kje(this))}get initial(){return Zp(this,"initial",()=>Eje(this,this.config.initial))}next(r,n){const o=n.type,a=[];let i;const s=Zp(this,`candidates-${o}`,()=>wje(this,o));for(const l of s){const{guard:c}=l,u=r.context;let d=!1;try{d=!c||Yp(c,u,n,r)}catch(h){const p=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${p?`'${p}' `:""}in transition for event '${o}' in state node '${this.id}':
${h.message}`)}if(d){a.push(...l.actions),i=l;break}}return i?[i]:void 0}get events(){return Zp(this,"events",()=>{const{states:r}=this,n=new Set(this.ownEvents);if(r)for(const o of Object.keys(r)){const a=r[o];if(a.states)for(const i of a.events)n.add(`${i}`)}return Array.from(n)})}get ownEvents(){const r=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(r)}}const eBe="#";class t8{constructor(r,n){this.config=r,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=r.id||"(machine)",this.implementations={actors:n?.actors??{},actions:n?.actions??{},delays:n?.delays??{},guards:n?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new ok(r,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(r){const{actions:n,guards:o,actors:a,delays:i}=this.implementations;return new t8(this.config,{actions:{...n,...r.actions},guards:{...o,...r.guards},actors:{...a,...r.actors},delays:{...i,...r.delays}})}resolveState(r){const n=jje(this.root,r.value),o=Q3(tk(this.root,n));return rk({_nodes:[...o],context:r.context||{},children:{},status:XT(o,this.root)?"done":r.status||"active",output:r.output,error:r.error,historyValue:r.historyValue},this)}transition(r,n,o){return e8(r,n,o,[]).snapshot}microstep(r,n,o){return e8(r,n,o,[]).microstates}getTransitionData(r,n){return GT(this.root,r.value,r,n)||[]}getPreInitialState(r,n,o){const{context:a}=this.config,i=rk({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?Kp(i,n,r,[et(({spawn:s,event:l,self:c})=>a({spawn:s,input:l.input,self:c}))],o,void 0):i}getInitialSnapshot(r,n){const o=pX(n),a=[],i=this.getPreInitialState(r,o,a),s=QT([{target:[...NX(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],i,r,o,!0,a),{snapshot:l}=e8(s,o,r,a);return l}start(r){Object.values(r.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(r){const n=HT(r),o=n.slice(1),a=J3(n[0])?n[0].slice(eBe.length):n[0],i=this.idMap.get(a);if(!i)throw new Error(`Child state node '#${a}' does not exist on machine '${this.id}'`);return ek(i,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(r,n){return Wje(r,n)}restoreSnapshot(r,n){const o={},a=r.children;Object.keys(a).forEach(h=>{const p=a[h],g=p.snapshot,y=p.src,x=typeof y=="string"?VT(this,y):y;if(!x)return;const w=Vp(x,{id:h,parent:n.self,syncSnapshot:p.syncSnapshot,snapshot:g,src:y,systemId:p.systemId});o[h]=w});function i(h,p){if(p instanceof ok)return p;try{return h.machine.getStateNodeById(p.id)}catch{}}function s(h,p){if(!p||typeof p!="object")return{};const g={};for(const y in p){const x=p[y];for(const w of x){const k=i(h,w);k&&(g[y]??=[],g[y].push(k))}}return g}const l=s(this.root,r.historyValue),c=rk({...r,children:o,_nodes:Array.from(Q3(tk(this.root,r.value))),historyValue:l},this),u=new Set;function d(h,p){if(!u.has(h)){u.add(h);for(const g in h){const y=h[g];if(y&&typeof y=="object"){if("xstate$$type"in y&&y.xstate$$type===YT){h[g]=p[y.id];continue}d(y,p)}}}}return d(c.context,o),c}}function tBe(e,r,n,o,{event:a}){const i=typeof a=="function"?a(n,o):a;return[r,{event:i},void 0]}function rBe(e,{event:r}){e.defer(()=>e.emit(r))}function ui(e){function r(n,o){}return r.type="xstate.emit",r.event=e,r.resolve=tBe,r.execute=rBe,r}let r8=(function(e){return e.Parent="#_parent",e.Internal="#_internal",e})({});function nBe(e,r,n,o,{to:a,event:i,id:s,delay:l},c){const u=r.machine.implementations.delays;if(typeof i=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);const d=typeof i=="function"?i(n,o):i;let h;if(typeof l=="string"){const y=u&&u[l];h=typeof y=="function"?y(n,o):y}else h=typeof l=="function"?l(n,o):l;const p=typeof a=="function"?a(n,o):a;let g;if(typeof p=="string"){if(p===r8.Parent?g=e.self._parent:p===r8.Internal?g=e.self:p.startsWith("#_")?g=r.children[p.slice(2)]:g=c.deferredActorIds?.includes(p)?p:r.children[p],!g)throw new Error(`Unable to send event to actor '${p}' from machine '${r.machine.id}'.`)}else g=p||e.self;return[r,{to:g,targetId:typeof p=="string"?p:void 0,event:d,id:s,delay:h},void 0]}function oBe(e,r,n){typeof n.to=="string"&&(n.to=r.children[n.to])}function aBe(e,r){e.defer(()=>{const{to:n,event:o,delay:a,id:i}=r;if(typeof a=="number"){e.system.scheduler.schedule(e.self,n,o,a,i);return}e.system._relay(e.self,n,o.type===nje?fX(e.self.id,o.data):o)})}function il(e,r,n){function o(a,i){}return o.type="xstate.sendTo",o.to=e,o.event=r,o.id=n?.id,o.delay=n?.delay,o.resolve=nBe,o.retryResolve=oBe,o.execute=aBe,o}function iBe(e,r){return il(r8.Parent,e,r)}function sBe(e,r,n,o,{collect:a}){const i=[],s=function(l){i.push(l)};return s.assign=(...l)=>{i.push(et(...l))},s.cancel=(...l)=>{i.push(oa(...l))},s.raise=(...l)=>{i.push(sn(...l))},s.sendTo=(...l)=>{i.push(il(...l))},s.sendParent=(...l)=>{i.push(iBe(...l))},s.spawnChild=(...l)=>{i.push(qp(...l))},s.stopChild=(...l)=>{i.push(yu(...l))},s.emit=(...l)=>{i.push(ui(...l))},a({context:n.context,event:n.event,enqueue:s,check:l=>Yp(l,r.context,n.event,r),self:e.self,system:e.system},o),[r,void 0,i]}function ln(e){function r(n,o){}return r.type="xstate.enqueueActions",r.collect=e,r.resolve=sBe,r}function Ut(e,r){const n=Jl(r);if(!n.includes(e.type)){const o=n.length===1?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw new Error(`Expected event ${JSON.stringify(e)} to have ${o}`)}}function lBe(e,r){return new t8(e,r)}function ec({schemas:e,actors:r,actions:n,guards:o,delays:a}){return{createMachine:i=>lBe({...i,schemas:e},{actors:r,actions:n,guards:o,delays:a})}}$H();const HX=(e,r)=>{r(e);const n=e.getSnapshot().children;n&&Object.values(n).forEach(o=>{HX(o,r)})};function cBe(e){const r=[];HX(e,o=>{r.push([o,o.getSnapshot()]),o.observers=new Set});const n=e.system.getSnapshot?.();e.stop(),e.system._snapshot=n,r.forEach(([o,a])=>{o._processingStatus=0,o._snapshot=a})}function uBe(e,...[r]){let[[n,o],a]=E.useState(()=>{const i=Vp(e,r);return[e.config,i]});if(e.config!==n){const i=Vp(e,{...r,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([e.config,i]),o=i}return EIe(()=>{o.logic.implementations=e.implementations}),o}function n8(e,...[r,n]){const o=uBe(e,r);return E.useEffect(()=>{if(!n)return;const a=o.subscribe(K3(n));return()=>{a.unsubscribe()}},[n]),E.useEffect(()=>(o.start(),()=>{cBe(o)}),[o]),o}function dBe(e,r){return e===r}function wn(e,r,n=dBe){const o=E.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:s}=e.subscribe(i);return s},[e]),a=E.useCallback(()=>e?.getSnapshot(),[e]);return OH.useSyncExternalStoreWithSelector(o,a,a,r,n)}function tc(e){return{get overlaysActorRef(){return e.get("overlays")??null},get diagramActorRef(){return e.get("diagram")??null},get searchActorRef(){return e.get("search")??null}}}function Qp(e,r){return e.view.nodes.find(n=>n.id===r)??null}function o8(e,r){return e.view.edges.find(n=>n.id===r)??null}function hBe(e){const r=new Map,n=e.context.xynodes.reduce((o,a)=>{let i=a.position;if(a.parentId){const c=r.get(a.parentId)??{x:0,y:0};i={x:i.x+c.x,y:i.y+c.y}}if(r.set(a.id,i),a.hidden||a.data.dimmed)return o;const s=a.measured?.width??a.width??a.initialWidth,l=a.measured?.height??a.height??a.initialHeight;return o.minX=Math.min(o.minX,i.x),o.minY=Math.min(o.minY,i.y),o.maxX=Math.max(o.maxX,i.x+s),o.maxY=Math.max(o.maxY,i.y+l),o},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return n.minX===1/0?{bounds:e.context.view.bounds}:{duration:350,bounds:{x:n.minX-10,y:n.minY-10,width:n.maxX-n.minX+20,height:n.maxY-n.minY+20}}}const fBe=32;function pBe(e){const r=mt(e.context.activeWalkthrough),n=mt(e.context.xyedges.find(c=>c.id===r.stepId)),o=e.context.xystore.getState(),a=mt(o.nodeLookup.get(n.source)),i=mt(o.nodeLookup.get(n.target)),s=qF([a,i],o);let l;if(r.parallelPrefix){const c=e.context.xynodes.find(u=>u.type==="seq-parallel"&&u.data.parallelPrefix===r.parallelPrefix);c&&(l={x:c.position.x,y:c.position.y,...Wn(c)})}return l??=mBe(n,o),l?l=Qc.merge(l,s):l=s,{duration:350,bounds:Qc.expand(l,fBe)}}function mBe(e,r){const n=r.nodeLookup.get(e.source),o=r.nodeLookup.get(e.target);if(!n||!o)return null;const a=dH({id:e.id,sourceNode:n,targetNode:o,sourceHandle:e.sourceHandle||null,targetHandle:e.targetHandle||null,connectionMode:r.connectionMode});return a?Qc.fromPoints([[a.sourceX,a.sourceY],[a.targetX,a.targetY]]):null}const a8=E.createContext(null);a8.displayName="DiagramActorSafeContext";const gBe=a8.Provider,Jp=()=>{const e=E.useContext(a8);if(e===null)throw new Error("DiagramActorRef is not provided");return e};function Wt(){const e=Jp();return E.useMemo(()=>({actor:e,send:r=>e.send(r),navigateTo:(r,n)=>{e.send({type:"navigate.to",viewId:r,...n&&{fromNode:n}})},navigate:r=>{e.send({type:`navigate.${r}`})},fitDiagram:(r=350)=>{e.send({type:"fitDiagram",duration:r})},openRelationshipsBrowser:r=>{e.send({type:"open.relationshipsBrowser",fqn:r})},openSource:r=>{e.send({type:"open.source",...r})},openElementDetails:(r,n)=>{e.send({type:"open.elementDetails",fqn:r,fromNode:n})},openRelationshipDetails:(...r)=>{r.length===1?e.send({type:"open.relationshipDetails",params:{edgeId:r[0]}}):e.send({type:"open.relationshipDetails",params:{source:r[0],target:r[1]}})},updateNodeData:(r,n)=>{e.send({type:"update.nodeData",nodeId:r,data:n})},updateEdgeData:(r,n)=>{e.send({type:"update.edgeData",edgeId:r,data:n})},scheduleSaveManualLayout:()=>{e.send({type:"saveManualLayout.schedule"})},cancelSaveManualLayout:()=>{const r=e.getSnapshot().children.syncLayout?.getSnapshot().value;return e.send({type:"saveManualLayout.cancel"}),r==="pending"||r==="paused"},align:r=>{e.send({type:"layout.align",mode:r})},resetEdgeControlPoints:()=>{e.send({type:"layout.resetEdgeControlPoints"})},focusNode:r=>{e.send({type:"focus.node",nodeId:r})},get currentView(){return e.getSnapshot().context.view},getSnapshot:()=>e.getSnapshot(),getContext:()=>e.getSnapshot().context,findDiagramNode:r=>Qp(e.getSnapshot().context,r),findEdge:r=>e.getSnapshot().context.xyedges.find(n=>n.data.id===r)??null,findDiagramEdge:r=>o8(e.getSnapshot().context,r),startWalkthrough:()=>{e.send({type:"walkthrough.start"})},walkthroughStep:(r="next")=>{e.send({type:"walkthrough.step",direction:r})},stopWalkthrough:()=>{e.send({type:"walkthrough.end"})},toggleFeature:(r,n)=>{e.send({type:"toggle.feature",feature:r,...n!==void 0&&{forceValue:n}})},highlightNotation:(r,n)=>{e.send({type:"notations.highlight",notation:r,...n&&{kind:n}})},unhighlightNotation:()=>{e.send({type:"notations.unhighlight"})},openSearch:r=>{e.send({type:"open.search",...r&&{search:r}})},switchDynamicViewVariant:r=>{e.send({type:"switch.dynamicViewVariant",variant:r})}}),[e])}function UX(e,r=Xn){const n=Jp();return wn(n,it(e),r)}function $a(e,r=Xn,n){const o=Jp(),a=E.useCallback(i=>e(i.context),n??[]);return wn(o,a,r)}function is(e,r){const n=Jp(),o=E.useRef(r);o.current=r,E.useEffect(()=>{const a=n.on(e,i=>{o.current(i)});return()=>{a.unsubscribe()}},[n])}const yBe=e=>e.children.overlays;function VX(){return UX(yBe,Object.is)}const bBe=e=>e.children.search??null;function vBe(){return UX(bBe,Object.is)}function i8(e,r){e.indexOf(r)===-1&&e.push(r)}function ak(e,r){const n=e.indexOf(r);n>-1&&e.splice(n,1)}const rc=(e,r,n)=>n>r?r:n<e?e:n;let s8=()=>{};const nc={},qX=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function YX(e){return typeof e=="object"&&e!==null}const WX=e=>/^0[^.\s]+$/u.test(e);function l8(e){let r;return()=>(r===void 0&&(r=e()),r)}const di=e=>e,xBe=(e,r)=>n=>r(e(n)),Q1=(...e)=>e.reduce(xBe),em=(e,r,n)=>{const o=r-e;return o===0?1:(n-e)/o};class c8{constructor(){this.subscriptions=[]}add(r){return i8(this.subscriptions,r),()=>ak(this.subscriptions,r)}notify(r,n,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,n,o);else for(let i=0;i<a;i++){const s=this.subscriptions[i];s&&s(r,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ss=e=>e*1e3,hi=e=>e/1e3;function XX(e,r){return r?e*(1e3/r):0}const wBe=(e,r,n)=>{const o=r-e;return((n-e)%o+o)%o+e},GX=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e,kBe=1e-7,_Be=12;function EBe(e,r,n,o,a){let i,s,l=0;do s=r+(n-r)/2,i=GX(s,o,a)-e,i>0?n=s:r=s;while(Math.abs(i)>kBe&&++l<_Be);return s}function J1(e,r,n,o){if(e===r&&n===o)return di;const a=i=>EBe(i,0,1,e,n);return i=>i===0||i===1?i:GX(a(i),r,o)}const KX=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,ZX=e=>r=>1-e(1-r),QX=J1(.33,1.53,.69,.99),u8=ZX(QX),JX=KX(u8),eG=e=>(e*=2)<1?.5*u8(e):.5*(2-Math.pow(2,-10*(e-1))),d8=e=>1-Math.sin(Math.acos(e)),tG=ZX(d8),rG=KX(d8),SBe=J1(.42,0,1,1),CBe=J1(0,0,.58,1),nG=J1(.42,0,.58,1),oG=e=>Array.isArray(e)&&typeof e[0]!="number";function aG(e,r){return oG(e)?e[wBe(0,e.length,r)]:e}const iG=e=>Array.isArray(e)&&typeof e[0]=="number",TBe={linear:di,easeIn:SBe,easeInOut:nG,easeOut:CBe,circIn:d8,circInOut:rG,circOut:tG,backIn:u8,backInOut:JX,backOut:QX,anticipate:eG},ABe=e=>typeof e=="string",sG=e=>{if(iG(e)){s8(e.length===4);const[r,n,o,a]=e;return J1(r,n,o,a)}else if(ABe(e))return TBe[e];return e},ik=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function NBe(e,r){let n=new Set,o=new Set,a=!1,i=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,h=!1,p=!1)=>{const g=p&&a?n:o;return h&&s.add(d),g.has(d)||g.add(d),d},cancel:d=>{o.delete(d),s.delete(d)},process:d=>{if(l=d,a){i=!0;return}a=!0,[n,o]=[o,n],n.forEach(c),n.clear(),a=!1,i&&(i=!1,u.process(d))}};return u}const RBe=40;function lG(e,r){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ik.reduce((k,C)=>(k[C]=NBe(i),k),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:p,render:g,postRender:y}=s,x=()=>{const k=nc.useManualTiming?a.timestamp:performance.now();n=!1,nc.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(k-a.timestamp,RBe),1)),a.timestamp=k,a.isProcessing=!0,l.process(a),c.process(a),u.process(a),d.process(a),h.process(a),p.process(a),g.process(a),y.process(a),a.isProcessing=!1,n&&r&&(o=!1,e(x))},w=()=>{n=!0,o=!0,a.isProcessing||e(x)};return{schedule:ik.reduce((k,C)=>{const _=s[C];return k[C]=(T,A=!1,N=!1)=>(n||w(),_.schedule(T,A,N)),k},{}),cancel:k=>{for(let C=0;C<ik.length;C++)s[ik[C]].cancel(k)},state:a,steps:s}}const{schedule:Mr,cancel:vu,state:mo,steps:h8}=lG(typeof requestAnimationFrame<"u"?requestAnimationFrame:di,!0);let sk;function $Be(){sk=void 0}const aa={now:()=>(sk===void 0&&aa.set(mo.isProcessing||nc.useManualTiming?mo.timestamp:performance.now()),sk),set:e=>{sk=e,queueMicrotask($Be)}},cG=e=>r=>typeof r=="string"&&r.startsWith(e),f8=cG("--"),PBe=cG("var(--"),p8=e=>PBe(e)?MBe.test(e.split("/*")[0].trim()):!1,MBe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ey={...tm,transform:e=>rc(0,1,e)},lk={...tm,default:1},ty=e=>Math.round(e*1e5)/1e5,m8=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OBe(e){return e==null}const DBe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g8=(e,r)=>n=>!!(typeof n=="string"&&DBe.test(n)&&n.startsWith(e)||r&&!OBe(n)&&Object.prototype.hasOwnProperty.call(n,r)),uG=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,s,l]=o.match(m8);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},LBe=e=>rc(0,255,e),y8={...tm,transform:e=>Math.round(LBe(e))},oh={test:g8("rgb","red"),parse:uG("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+y8.transform(e)+", "+y8.transform(r)+", "+y8.transform(n)+", "+ty(ey.transform(o))+")"};function IBe(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const b8={test:g8("#"),parse:IBe,transform:oh.transform},ry=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),xu=ry("deg"),sl=ry("%"),vt=ry("px"),zBe=ry("vh"),jBe=ry("vw"),dG={...sl,parse:e=>sl.parse(e)/100,transform:e=>sl.transform(e*100)},rm={test:g8("hsl","hue"),parse:uG("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+sl.transform(ty(r))+", "+sl.transform(ty(n))+", "+ty(ey.transform(o))+")"},kn={test:e=>oh.test(e)||b8.test(e)||rm.test(e),parse:e=>oh.test(e)?oh.parse(e):rm.test(e)?rm.parse(e):b8.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oh.transform(e):rm.transform(e),getAnimatableNone:e=>{const r=kn.parse(e);return r.alpha=0,kn.transform(r)}},BBe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FBe(e){return isNaN(e)&&typeof e=="string"&&(e.match(m8)?.length||0)+(e.match(BBe)?.length||0)>0}const hG="number",fG="color",HBe="var",UBe="var(",pG="${}",VBe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ny(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const s=r.replace(VBe,l=>(kn.test(l)?(o.color.push(i),a.push(fG),n.push(kn.parse(l))):l.startsWith(UBe)?(o.var.push(i),a.push(HBe),n.push(l)):(o.number.push(i),a.push(hG),n.push(parseFloat(l))),++i,pG)).split(pG);return{values:n,split:s,indexes:o,types:a}}function mG(e){return ny(e).values}function gG(e){const{split:r,types:n}=ny(e),o=r.length;return a=>{let i="";for(let s=0;s<o;s++)if(i+=r[s],a[s]!==void 0){const l=n[s];l===hG?i+=ty(a[s]):l===fG?i+=kn.transform(a[s]):i+=a[s]}return i}}const qBe=e=>typeof e=="number"?0:kn.test(e)?kn.getAnimatableNone(e):e;function YBe(e){const r=mG(e);return gG(e)(r.map(qBe))}const wu={test:FBe,parse:mG,createTransformer:gG,getAnimatableNone:YBe};function v8(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(r-e)*6*n:n<.5?r:n<.6666666666666666?e+(r-e)*(.6666666666666666-n)*6:e}function WBe({hue:e,saturation:r,lightness:n,alpha:o}){e/=360,r/=100,n/=100;let a=0,i=0,s=0;if(!r)a=i=s=n;else{const l=n<.5?n*(1+r):n+r-n*r,c=2*n-l;a=v8(c,l,e+.3333333333333333),i=v8(c,l,e),s=v8(c,l,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function ck(e,r){return n=>n>0?r:e}const Lr=(e,r,n)=>e+(r-e)*n,x8=(e,r,n)=>{const o=e*e,a=n*(r*r-o)+o;return a<0?0:Math.sqrt(a)},XBe=[b8,oh,rm],GBe=e=>XBe.find(r=>r.test(e));function yG(e){const r=GBe(e);if(!r)return!1;let n=r.parse(e);return r===rm&&(n=WBe(n)),n}const bG=(e,r)=>{const n=yG(e),o=yG(r);if(!n||!o)return ck(e,r);const a={...n};return i=>(a.red=x8(n.red,o.red,i),a.green=x8(n.green,o.green,i),a.blue=x8(n.blue,o.blue,i),a.alpha=Lr(n.alpha,o.alpha,i),oh.transform(a))},w8=new Set(["none","hidden"]);function KBe(e,r){return w8.has(e)?n=>n<=0?e:r:n=>n>=1?r:e}function ZBe(e,r){return n=>Lr(e,r,n)}function k8(e){return typeof e=="number"?ZBe:typeof e=="string"?p8(e)?ck:kn.test(e)?bG:eFe:Array.isArray(e)?vG:typeof e=="object"?kn.test(e)?bG:QBe:ck}function vG(e,r){const n=[...e],o=n.length,a=e.map((i,s)=>k8(i)(i,r[s]));return i=>{for(let s=0;s<o;s++)n[s]=a[s](i);return n}}function QBe(e,r){const n={...e,...r},o={};for(const a in n)e[a]!==void 0&&r[a]!==void 0&&(o[a]=k8(e[a])(e[a],r[a]));return a=>{for(const i in o)n[i]=o[i](a);return n}}function JBe(e,r){const n=[],o={color:0,var:0,number:0};for(let a=0;a<r.values.length;a++){const i=r.types[a],s=e.indexes[i][o[i]],l=e.values[s]??0;n[a]=l,o[i]++}return n}const eFe=(e,r)=>{const n=wu.createTransformer(r),o=ny(e),a=ny(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?w8.has(e)&&!a.values.length||w8.has(r)&&!o.values.length?KBe(e,r):Q1(vG(JBe(o,a),a.values),n):ck(e,r)};function xG(e,r,n){return typeof e=="number"&&typeof r=="number"&&typeof n=="number"?Lr(e,r,n):k8(e)(e,r)}const tFe=e=>{const r=({timestamp:n})=>e(n);return{start:(n=!0)=>Mr.update(r,n),stop:()=>vu(r),now:()=>mo.isProcessing?mo.timestamp:aa.now()}},wG=(e,r,n=10)=>{let o="";const a=Math.max(Math.round(r/n),2);for(let i=0;i<a;i++)o+=Math.round(e(i/(a-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},uk=2e4;function _8(e){let r=0;const n=50;let o=e.next(r);for(;!o.done&&r<uk;)r+=n,o=e.next(r);return r>=uk?1/0:r}function kG(e,r=100,n){const o=n({...e,keyframes:[0,r]}),a=Math.min(_8(o),uk);return{type:"keyframes",ease:i=>o.next(a*i).value/r,duration:hi(a)}}const rFe=5;function _G(e,r,n){const o=Math.max(r-rFe,0);return XX(n-e(o),r-o)}const Kr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},E8=.001;function nFe({duration:e=Kr.duration,bounce:r=Kr.bounce,velocity:n=Kr.velocity,mass:o=Kr.mass}){let a,i,s=1-r;s=rc(Kr.minDamping,Kr.maxDamping,s),e=rc(Kr.minDuration,Kr.maxDuration,hi(e)),s<1?(a=u=>{const d=u*s,h=d*e,p=d-n,g=S8(u,s),y=Math.exp(-h);return E8-p/g*y},i=u=>{const d=u*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=S8(Math.pow(u,2),s);return(-a(u)+E8>0?-1:1)*((h-p)*g)/y}):(a=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-E8+d*h},i=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=aFe(a,i,l);if(e=ss(e),isNaN(c))return{stiffness:Kr.stiffness,damping:Kr.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:s*2*Math.sqrt(o*u),duration:e}}}const oFe=12;function aFe(e,r,n){let o=n;for(let a=1;a<oFe;a++)o=o-e(o)/r(o);return o}function S8(e,r){return e*Math.sqrt(1-r*r)}const iFe=["duration","bounce"],sFe=["stiffness","damping","mass"];function EG(e,r){return r.some(n=>e[n]!==void 0)}function lFe(e){let r={velocity:Kr.velocity,stiffness:Kr.stiffness,damping:Kr.damping,mass:Kr.mass,isResolvedFromDuration:!1,...e};if(!EG(e,sFe)&&EG(e,iFe))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),a=o*o,i=2*rc(.05,1,1-(e.bounce||0))*Math.sqrt(a);r={...r,mass:Kr.mass,stiffness:a,damping:i}}else{const n=nFe(e);r={...r,...n,mass:Kr.mass},r.isResolvedFromDuration=!0}return r}function oy(e=Kr.visualDuration,r=Kr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:o,restDelta:a}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=lFe({...n,velocity:-hi(n.velocity||0)}),y=p||0,x=u/(2*Math.sqrt(c*d)),w=s-i,k=hi(Math.sqrt(c/d)),C=Math.abs(w)<5;o||(o=C?Kr.restSpeed.granular:Kr.restSpeed.default),a||(a=C?Kr.restDelta.granular:Kr.restDelta.default);let _;if(x<1){const A=S8(k,x);_=N=>{const $=Math.exp(-x*k*N);return s-$*((y+x*k*w)/A*Math.sin(A*N)+w*Math.cos(A*N))}}else if(x===1)_=A=>s-Math.exp(-k*A)*(w+(y+k*w)*A);else{const A=k*Math.sqrt(x*x-1);_=N=>{const $=Math.exp(-x*k*N),R=Math.min(A*N,300);return s-$*((y+x*k*w)*Math.sinh(R)+A*w*Math.cosh(R))/A}}const T={calculatedDuration:g&&h||null,next:A=>{const N=_(A);if(g)l.done=A>=h;else{let $=A===0?y:0;x<1&&($=A===0?ss(y):_G(_,A,N));const R=Math.abs($)<=o,M=Math.abs(s-N)<=a;l.done=R&&M}return l.value=l.done?s:N,l},toString:()=>{const A=Math.min(_8(T),uk),N=wG($=>T.next(A*$).value,A,30);return A+"ms "+N},toTransition:()=>{}};return T}oy.applyToOptions=e=>{const r=kG(e,100,oy);return e.ease=r.ease,e.duration=ss(r.duration),e.type="keyframes",e};function C8({keyframes:e,velocity:r=0,power:n=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=R=>l!==void 0&&R<l||c!==void 0&&R>c,y=R=>l===void 0?c:c===void 0||Math.abs(l-R)<Math.abs(c-R)?l:c;let x=n*r;const w=h+x,k=s===void 0?w:s(w);k!==w&&(x=k-h);const C=R=>-x*Math.exp(-R/o),_=R=>k+C(R),T=R=>{const M=C(R),O=_(R);p.done=Math.abs(M)<=u,p.value=p.done?k:O};let A,N;const $=R=>{g(p.value)&&(A=R,N=oy({keyframes:[p.value,y(p.value)],velocity:_G(_,R,p.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return $(0),{calculatedDuration:null,next:R=>{let M=!1;return!N&&A===void 0&&(M=!0,T(R),$(R)),A!==void 0&&R>=A?N.next(R-A):(!M&&T(R),p)}}}function cFe(e,r,n){const o=[],a=n||nc.mix||xG,i=e.length-1;for(let s=0;s<i;s++){let l=a(e[s],e[s+1]);if(r){const c=Array.isArray(r)?r[s]||di:r;l=Q1(c,l)}o.push(l)}return o}function uFe(e,r,{clamp:n=!0,ease:o,mixer:a}={}){const i=e.length;if(s8(i===r.length),i===1)return()=>r[0];if(i===2&&r[0]===r[1])return()=>r[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),r=[...r].reverse());const l=cFe(r,o,a),c=l.length,u=d=>{if(s&&d<e[0])return r[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=em(e[h],e[h+1],d);return l[h](p)};return n?d=>u(rc(e[0],e[i-1],d)):u}function SG(e,r){const n=e[e.length-1];for(let o=1;o<=r;o++){const a=em(0,r,o);e.push(Lr(n,1,a))}}function CG(e){const r=[0];return SG(r,e.length-1),r}function dFe(e,r){return e.map(n=>n*r)}function hFe(e,r){return e.map(()=>r||nG).splice(0,e.length-1)}function ay({duration:e=300,keyframes:r,times:n,ease:o="easeInOut"}){const a=oG(o)?o.map(sG):sG(o),i={done:!1,value:r[0]},s=dFe(n&&n.length===r.length?n:CG(r),e),l=uFe(s,r,{ease:Array.isArray(a)?a:hFe(r,a)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const fFe=e=>e!==null;function T8(e,{repeat:r,repeatType:n="loop"},o,a=1){const i=e.filter(fFe),s=a<0||r&&n!=="loop"&&r%2===1?0:i.length-1;return!s||o===void 0?i[s]:o}const pFe={decay:C8,inertia:C8,tween:ay,keyframes:ay,spring:oy};function TG(e){typeof e.type=="string"&&(e.type=pFe[e.type])}class A8{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,n){return this.finished.then(r,n)}}const mFe=e=>e/100;class N8 extends A8{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==aa.now()&&this.tick(aa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;TG(r);const{type:n=ay,repeat:o=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=r;let{keyframes:l}=r;const c=n||ay;c!==ay&&typeof l[0]!="number"&&(this.mixKeyframes=Q1(mFe,xG(l[0],l[1])),l=[0,100]);const u=c({...r,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...r,keyframes:[...l].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=_8(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(o+1)-a,this.generator=u}updateTime(r){const n=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(r,n=!1){const{generator:o,totalDuration:a,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:p,repeatDelay:g,type:y,onUpdate:x,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-a/this.speed,this.startTime)),n?this.currentTime=r:this.updateTime(r);const k=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,T=o;if(h){const R=Math.min(this.currentTime,a)/l;let M=Math.floor(R),O=R%1;!O&&R>=1&&(O=1),O===1&&M--,M=Math.min(M,h+1),M%2&&(p==="reverse"?(O=1-O,g&&(O-=g/l)):p==="mirror"&&(T=s)),_=rc(0,1,O)*l}const A=C?{done:!1,value:d[0]}:T.next(_);i&&(A.value=i(A.value));let{done:N}=A;!C&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return $&&y!==C8&&(A.value=T8(d,this.options,w,this.speed)),x&&x(A.value),$&&this.finish(),A}then(r,n){return this.finished.then(r,n)}get duration(){return hi(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+hi(r)}get time(){return hi(this.currentTime)}set time(r){r=ss(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(aa.now());const n=this.playbackSpeed!==r;this.playbackSpeed=r,n&&(this.time=hi(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=tFe,startTime:n}=this.options;this.driver||(this.driver=r(a=>this.tick(a))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(aa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function gFe(e){for(let r=1;r<e.length;r++)e[r]??(e[r]=e[r-1])}const ah=e=>e*180/Math.PI,R8=e=>{const r=ah(Math.atan2(e[1],e[0]));return $8(r)},yFe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:R8,rotateZ:R8,skewX:e=>ah(Math.atan(e[1])),skewY:e=>ah(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$8=e=>(e=e%360,e<0&&(e+=360),e),AG=R8,NG=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),RG=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bFe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:NG,scaleY:RG,scale:e=>(NG(e)+RG(e))/2,rotateX:e=>$8(ah(Math.atan2(e[6],e[5]))),rotateY:e=>$8(ah(Math.atan2(-e[2],e[0]))),rotateZ:AG,rotate:AG,skewX:e=>ah(Math.atan(e[4])),skewY:e=>ah(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function P8(e){return e.includes("scale")?1:0}function M8(e,r){if(!e||e==="none")return P8(r);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(n)o=bFe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=yFe,a=l}if(!a)return P8(r);const i=o[r],s=a[1].split(",").map(xFe);return typeof i=="function"?i(s):s[i]}const vFe=(e,r)=>{const{transform:n="none"}=getComputedStyle(e);return M8(n,r)};function xFe(e){return parseFloat(e.trim())}const nm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],om=new Set(nm),$G=e=>e===tm||e===vt,wFe=new Set(["x","y","z"]),kFe=nm.filter(e=>!wFe.has(e));function _Fe(e){const r=[];return kFe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(r.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),r}const ih={width:({x:e},{paddingLeft:r="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),height:({y:e},{paddingTop:r="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=>M8(r,"x"),y:(e,{transform:r})=>M8(r,"y")};ih.translateX=ih.x,ih.translateY=ih.y;const sh=new Set;let O8=!1,D8=!1,L8=!1;function PG(){if(D8){const e=Array.from(sh).filter(o=>o.needsMeasurement),r=new Set(e.map(o=>o.element)),n=new Map;r.forEach(o=>{const a=_Fe(o);a.length&&(n.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=n.get(o);a&&a.forEach(([i,s])=>{o.getValue(i)?.set(s)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}D8=!1,O8=!1,sh.forEach(e=>e.complete(L8)),sh.clear()}function MG(){sh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(D8=!0)})}function EFe(){L8=!0,MG(),PG(),L8=!1}class I8{constructor(r,n,o,a,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=n,this.name=o,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(sh.add(this),O8||(O8=!0,Mr.read(MG),Mr.resolveKeyframes(PG))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:n,element:o,motionValue:a}=this;if(r[0]===null){const i=a?.get(),s=r[r.length-1];if(i!==void 0)r[0]=i;else if(o&&n){const l=o.readValue(n,s);l!=null&&(r[0]=l)}r[0]===void 0&&(r[0]=s),a&&i===void 0&&a.set(r[0])}gFe(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),sh.delete(this)}cancel(){this.state==="scheduled"&&(sh.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const SFe=e=>e.startsWith("--");function CFe(e,r,n){SFe(r)?e.style.setProperty(r,n):e.style[r]=n}const TFe=l8(()=>window.ScrollTimeline!==void 0),AFe={};function NFe(e,r){const n=l8(e);return()=>AFe[r]??n()}const OG=NFe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iy=([e,r,n,o])=>`cubic-bezier(${e}, ${r}, ${n}, ${o})`,DG={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iy([0,.65,.55,1]),circOut:iy([.55,0,1,.45]),backIn:iy([.31,.01,.66,-.59]),backOut:iy([.33,1.53,.69,.99])};function LG(e,r){if(e)return typeof e=="function"?OG()?wG(e,r):"ease-out":iG(e)?iy(e):Array.isArray(e)?e.map(n=>LG(n,r)||DG.easeOut):DG[e]}function RFe(e,r,n,{delay:o=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[r]:n};c&&(d.offset=c);const h=LG(l,a);Array.isArray(h)&&(d.easing=h);const p={delay:o,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function z8(e){return typeof e=="function"&&"applyToOptions"in e}function $Fe({type:e,...r}){return z8(e)&&OG()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class PFe extends A8{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:n,name:o,keyframes:a,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:l,onComplete:c}=r;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=r,s8(typeof r.type!="string");const u=$Fe(r);this.animation=RFe(n,o,a,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=T8(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):CFe(n,o,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return hi(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+hi(r)}get time(){return hi(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=ss(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&TFe()?(this.animation.timeline=r,di):n(this)}}const IG={anticipate:eG,backInOut:JX,circInOut:rG};function MFe(e){return e in IG}function OFe(e){typeof e.ease=="string"&&MFe(e.ease)&&(e.ease=IG[e.ease])}const zG=10;class DFe extends PFe{constructor(r){OFe(r),TG(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:n,onUpdate:o,onComplete:a,element:i,...s}=this.options;if(!n)return;if(r!==void 0){n.set(r);return}const l=new N8({...s,autoplay:!1}),c=ss(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-zG).value,l.sample(c).value,zG),l.stop()}}const jG=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wu.test(e)||e==="0")&&!e.startsWith("url("));function LFe(e){const r=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==r)return!0}function IFe(e,r,n,o){const a=e[0];if(a===null)return!1;if(r==="display"||r==="visibility")return!0;const i=e[e.length-1],s=jG(a,r),l=jG(i,r);return!s||!l?!1:LFe(e)||(n==="spring"||z8(n))&&o}function j8(e){e.duration=0,e.type="keyframes"}const zFe=new Set(["opacity","clipPath","filter","transform"]),jFe=l8(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function BFe(e){const{motionValue:r,name:n,repeatDelay:o,repeatType:a,damping:i,type:s}=e;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=r.owner.getProps();return jFe()&&n&&zFe.has(n)&&(n!=="transform"||!c)&&!l&&!o&&a!=="mirror"&&i!==0&&s!=="inertia"}const FFe=40;class HFe extends A8{constructor({autoplay:r=!0,delay:n=0,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=aa.now();const p={autoplay:r,delay:n,type:o,repeat:a,repeatDelay:i,repeatType:s,name:c,motionValue:u,element:d,...h},g=d?.KeyframeResolver||I8;this.keyframeResolver=new g(l,(y,x,w)=>this.onKeyframesResolved(y,x,p,!w),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,n,o,a){this.keyframeResolver=void 0;const{name:i,type:s,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=aa.now(),IFe(r,i,s,l)||((nc.instantAnimations||!c)&&d?.(T8(r,o,n)),r[0]=r[r.length-1],j8(o),o.repeat=0);const h={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>FFe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:r},p=!u&&BFe(h)?new DFe({...h,element:h.motionValue.owner.current}):new N8(h);p.finished.then(()=>this.notifyFinished()).catch(di),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(r,n){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),EFe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class UFe{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>r.finished))}getAll(r){return this.animations[0][r]}setAll(r,n){for(let o=0;o<this.animations.length;o++)this.animations[o][r]=n}attachTimeline(r){const n=this.animations.map(o=>o.attachTimeline(r));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return BG(this.animations,"duration")}get iterationDuration(){return BG(this.animations,"iterationDuration")}runAll(r){this.animations.forEach(n=>n[r]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function BG(e,r){let n=0;for(let o=0;o<e.length;o++){const a=e[o][r];a!==null&&a>n&&(n=a)}return n}class VFe extends UFe{then(r,n){return this.finished.finally(r).then(()=>{})}}const qFe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YFe(e){const r=qFe.exec(e);if(!r)return[,];const[,n,o,a]=r;return[`--${n??o}`,a]}function FG(e,r,n=1){const[o,a]=YFe(e);if(!o)return;const i=window.getComputedStyle(r).getPropertyValue(o);if(i){const s=i.trim();return qX(s)?parseFloat(s):s}return p8(a)?FG(a,r,n+1):a}function B8(e,r){return e?.[r]??e?.default??e}const HG=new Set(["width","height","top","left","right","bottom",...nm]),WFe={test:e=>e==="auto",parse:e=>e},UG=e=>r=>r.test(e),VG=[tm,vt,sl,xu,jBe,zBe,WFe],qG=e=>VG.find(UG(e));function XFe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WX(e):!0}const GFe=new Set(["brightness","contrast","saturate","opacity"]);function KFe(e){const[r,n]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[o]=n.match(m8)||[];if(!o)return e;const a=n.replace(o,"");let i=GFe.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}const ZFe=/\b([a-z-]*)\(.*?\)/gu,F8={...wu,getAnimatableNone:e=>{const r=e.match(ZFe);return r?r.map(KFe).join(" "):e}},YG={...tm,transform:Math.round},QFe={rotate:xu,rotateX:xu,rotateY:xu,rotateZ:xu,scale:lk,scaleX:lk,scaleY:lk,scaleZ:lk,skew:xu,skewX:xu,skewY:xu,distance:vt,translateX:vt,translateY:vt,translateZ:vt,x:vt,y:vt,z:vt,perspective:vt,transformPerspective:vt,opacity:ey,originX:dG,originY:dG,originZ:vt},H8={borderWidth:vt,borderTopWidth:vt,borderRightWidth:vt,borderBottomWidth:vt,borderLeftWidth:vt,borderRadius:vt,radius:vt,borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomRightRadius:vt,borderBottomLeftRadius:vt,width:vt,maxWidth:vt,height:vt,maxHeight:vt,top:vt,right:vt,bottom:vt,left:vt,padding:vt,paddingTop:vt,paddingRight:vt,paddingBottom:vt,paddingLeft:vt,margin:vt,marginTop:vt,marginRight:vt,marginBottom:vt,marginLeft:vt,backgroundPositionX:vt,backgroundPositionY:vt,...QFe,zIndex:YG,fillOpacity:ey,strokeOpacity:ey,numOctaves:YG},JFe={...H8,color:kn,backgroundColor:kn,outlineColor:kn,fill:kn,stroke:kn,borderColor:kn,borderTopColor:kn,borderRightColor:kn,borderBottomColor:kn,borderLeftColor:kn,filter:F8,WebkitFilter:F8},WG=e=>JFe[e];function XG(e,r){let n=WG(e);return n!==F8&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(r):void 0}const eHe=new Set(["auto","none","0"]);function tHe(e,r,n){let o=0,a;for(;o<e.length&&!a;){const i=e[o];typeof i=="string"&&!eHe.has(i)&&ny(i).values.length&&(a=e[o]),o++}if(a&&n)for(const i of r)e[i]=XG(n,a)}class rHe extends I8{constructor(r,n,o,a,i){super(r,n,o,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<r.length;c++){let u=r[c];if(typeof u=="string"&&(u=u.trim(),p8(u))){const d=FG(u,n.current);d!==void 0&&(r[c]=d),c===r.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!HG.has(o)||r.length!==2)return;const[a,i]=r,s=qG(a),l=qG(i);if(s!==l)if($G(s)&&$G(l))for(let c=0;c<r.length;c++){const u=r[c];typeof u=="string"&&(r[c]=parseFloat(u))}else ih[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:n}=this,o=[];for(let a=0;a<r.length;a++)(r[a]===null||XFe(r[a]))&&o.push(a);o.length&&tHe(r,o,n)}measureInitialState(){const{element:r,unresolvedKeyframes:n,name:o}=this;if(!r||!r.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ih[o](r.measureViewportBox(),window.getComputedStyle(r.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&r.getValue(o,a).jump(a,!1)}measureEndState(){const{element:r,name:n,unresolvedKeyframes:o}=this;if(!r||!r.current)return;const a=r.getValue(n);a&&a.jump(this.measuredOrigin,!1);const i=o.length-1,s=o[i];o[i]=ih[n](r.measureViewportBox(),window.getComputedStyle(r.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function GG(e,r,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const a=n?.[e]??o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const KG=(e,r)=>r&&typeof e=="number"?r.transform(e):e;function ZG(e){return YX(e)&&"offsetHeight"in e}const QG=30,nHe=e=>!isNaN(parseFloat(e));class oHe{constructor(r,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const a=aa.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=n.owner}setCurrent(r){this.current=r,this.updatedAt=aa.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=nHe(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,n){this.events[r]||(this.events[r]=new c8);const o=this.events[r].add(n);return r==="change"?()=>{o(),Mr.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,n){this.passiveEffect=r,this.stopPassiveEffect=n}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,n=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=aa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>QG)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,QG);return XX(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(r){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=r(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function lh(e,r){return new oHe(e,r)}const{schedule:U8}=lG(queueMicrotask,!1),ls={x:!1,y:!1};function JG(){return ls.x||ls.y}function aHe(e){return e==="x"||e==="y"?ls[e]?null:(ls[e]=!0,()=>{ls[e]=!1}):ls.x||ls.y?null:(ls.x=ls.y=!0,()=>{ls.x=ls.y=!1})}function eK(e,r){const n=GG(e),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[n,a,()=>o.abort()]}function tK(e){return!(e.pointerType==="touch"||JG())}function iHe(e,r,n={}){const[o,a,i]=eK(e,n),s=l=>{if(!tK(l))return;const{target:c}=l,u=r(c,l);if(typeof u!="function"||!c)return;const d=h=>{tK(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,a)};return o.forEach(l=>{l.addEventListener("pointerenter",s,a)}),i}const rK=(e,r)=>r?e===r?!0:rK(e,r.parentElement):!1,V8=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sHe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lHe(e){return sHe.has(e.tagName)||e.tabIndex!==-1}const dk=new WeakSet;function nK(e){return r=>{r.key==="Enter"&&e(r)}}function q8(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const cHe=(e,r)=>{const n=e.currentTarget;if(!n)return;const o=nK(()=>{if(dk.has(n))return;q8(n,"down");const a=nK(()=>{q8(n,"up")}),i=()=>q8(n,"cancel");n.addEventListener("keyup",a,r),n.addEventListener("blur",i,r)});n.addEventListener("keydown",o,r),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),r)};function oK(e){return V8(e)&&!JG()}function uHe(e,r,n={}){const[o,a,i]=eK(e,n),s=l=>{const c=l.currentTarget;if(!oK(l))return;dk.add(c);const u=r(c,l),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),dk.has(c)&&dk.delete(c),oK(g)&&typeof u=="function"&&u(g,{success:y})},h=g=>{d(g,c===window||c===document||n.useGlobalTarget||rK(c,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",p,a)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,a),ZG(l)&&(l.addEventListener("focus",c=>cHe(c,a)),!lHe(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Y8(e){return YX(e)&&"ownerSVGElement"in e}function aK(e){return Y8(e)&&e.tagName==="svg"}const Qn=e=>!!(e&&e.getVelocity),dHe=[...VG,kn,wu],hHe=e=>dHe.find(UG(e));function W8(e){return typeof e=="object"&&!Array.isArray(e)}function iK(e,r,n,o){return typeof e=="string"&&W8(r)?GG(e,n,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function fHe(e,r,n){return e*(r+1)}function sK(e,r,n,o){return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,e+parseFloat(r)):r==="<"?n:r.startsWith("<")?Math.max(0,n+parseFloat(r.slice(1))):o.get(r)??e}function pHe(e,r,n){for(let o=0;o<e.length;o++){const a=e[o];a.at>r&&a.at<n&&(ak(e,a),o--)}}function mHe(e,r,n,o,a,i){pHe(e,a,i);for(let s=0;s<r.length;s++)e.push({value:r[s],at:Lr(a,i,o[s]),easing:aG(n,s)})}function gHe(e,r){for(let n=0;n<e.length;n++)e[n]=e[n]/(r+1)}function yHe(e,r){return e.at===r.at?e.value===null?1:r.value===null?-1:0:e.at-r.at}const bHe="easeInOut";function vHe(e,{defaultTransition:r={},...n}={},o,a){const i=r.duration||.3,s=new Map,l=new Map,c={},u=new Map;let d=0,h=0,p=0;for(let g=0;g<e.length;g++){const y=e[g];if(typeof y=="string"){u.set(y,h);continue}else if(!Array.isArray(y)){u.set(y.name,sK(h,y.at,d,u));continue}let[x,w,k={}]=y;k.at!==void 0&&(h=sK(h,k.at,d,u));let C=0;const _=(T,A,N,$=0,R=0)=>{const M=xHe(T),{delay:O=0,times:B=CG(M),type:I="keyframes",repeat:Y,repeatType:D,repeatDelay:V=0,...L}=A;let{ease:U=r.ease||"easeOut",duration:q}=A;const X=typeof O=="function"?O($,R):O,F=M.length,J=z8(I)?I:a?.[I||"keyframes"];if(F<=2&&J){let G=100;if(F===2&&_He(M)){const ee=M[1]-M[0];G=Math.abs(ee)}const Z={...L};q!==void 0&&(Z.duration=ss(q));const oe=kG(Z,G,J);U=oe.ease,q=oe.duration}q??(q=i);const Q=h+X;B.length===1&&B[0]===0&&(B[1]=1);const z=B.length-M.length;if(z>0&&SG(B,z),M.length===1&&M.unshift(null),Y){q=fHe(q,Y);const G=[...M],Z=[...B];U=Array.isArray(U)?[...U]:[U];const oe=[...U];for(let ee=0;ee<Y;ee++){M.push(...G);for(let re=0;re<G.length;re++)B.push(Z[re]+(ee+1)),U.push(re===0?"linear":aG(oe,re-1))}gHe(B,Y)}const W=Q+q;mHe(N,M,U,B,Q,W),C=Math.max(X+q,C),p=Math.max(W,p)};if(Qn(x)){const T=lK(x,l);_(w,k,cK("default",T))}else{const T=iK(x,w,o,c),A=T.length;for(let N=0;N<A;N++){w=w,k=k;const $=T[N],R=lK($,l);for(const M in w)_(w[M],wHe(k,M),cK(M,R),N,A)}}d=h,h+=C}return l.forEach((g,y)=>{for(const x in g){const w=g[x];w.sort(yHe);const k=[],C=[],_=[];for(let A=0;A<w.length;A++){const{at:N,value:$,easing:R}=w[A];k.push($),C.push(em(0,p,N)),_.push(R||"easeOut")}C[0]!==0&&(C.unshift(0),k.unshift(k[0]),_.unshift(bHe)),C[C.length-1]!==1&&(C.push(1),k.push(null)),s.has(y)||s.set(y,{keyframes:{},transition:{}});const T=s.get(y);T.keyframes[x]=k,T.transition[x]={...r,duration:p,ease:_,times:C,...n}}}),s}function lK(e,r){return!r.has(e)&&r.set(e,{}),r.get(e)}function cK(e,r){return r[e]||(r[e]=[]),r[e]}function xHe(e){return Array.isArray(e)?e:[e]}function wHe(e,r){return e&&e[r]?{...e,...e[r]}:{...e}}const kHe=e=>typeof e=="number",_He=e=>e.every(kHe),sy=new WeakMap,X8=e=>Array.isArray(e);function uK(e){const r=[{},{}];return e?.values.forEach((n,o)=>{r[0][o]=n.get(),r[1][o]=n.getVelocity()}),r}function G8(e,r,n,o){if(typeof r=="function"){const[a,i]=uK(o);r=r(n!==void 0?n:e.custom,a,i)}if(typeof r=="string"&&(r=e.variants&&e.variants[r]),typeof r=="function"){const[a,i]=uK(o);r=r(n!==void 0?n:e.custom,a,i)}return r}function am(e,r,n){const o=e.getProps();return G8(o,r,n!==void 0?n:o.custom,e)}function EHe(e,r,n){e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,lh(n))}function SHe(e){return X8(e)?e[e.length-1]||0:e}function CHe(e,r){const n=am(e,r);let{transitionEnd:o={},transition:a={},...i}=n||{};i={...i,...o};for(const s in i){const l=SHe(i[s]);EHe(e,s,l)}}function THe(e){return!!(Qn(e)&&e.add)}function K8(e,r){const n=e.getValue("willChange");if(THe(n))return n.add(r);if(!n&&nc.WillChange){const o=new nc.WillChange("auto");e.addValue("willChange",o),o.add(r)}}const Z8=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AHe="framerAppearId",dK="data-"+Z8(AHe);function hK(e){return e.props[dK]}const NHe=e=>e!==null;function RHe(e,{repeat:r,repeatType:n="loop"},o){const a=e.filter(NHe),i=r&&n!=="loop"&&r%2===1?0:a.length-1;return a[i]}const $He={type:"spring",stiffness:500,damping:25,restSpeed:10},PHe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MHe={type:"keyframes",duration:.8},OHe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},DHe=(e,{keyframes:r})=>r.length>2?MHe:om.has(e)?e.startsWith("scale")?PHe(r[1]):$He:OHe;function LHe({when:e,delay:r,delayChildren:n,staggerChildren:o,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Q8=(e,r,n,o={},a,i)=>s=>{const l=B8(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-ss(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:r.getVelocity(),...l,delay:-u,onUpdate:p=>{r.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:r,element:i?void 0:a};LHe(l)||Object.assign(d,DHe(e,d)),d.duration&&(d.duration=ss(d.duration)),d.repeatDelay&&(d.repeatDelay=ss(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(j8(d),d.delay===0&&(h=!0)),(nc.instantAnimations||nc.skipAnimations)&&(h=!0,j8(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!i&&r.get()!==void 0){const p=RHe(d.keyframes,l);if(p!==void 0){Mr.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new N8(d):new HFe(d)};function IHe({protectedKeys:e,needsAnimating:r},n){const o=e.hasOwnProperty(n)&&r[n]!==!0;return r[n]=!1,o}function J8(e,r,{delay:n=0,transitionOverride:o,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=r;o&&(i=o);const c=[],u=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const h=e.getValue(d,e.latestValues[d]??null),p=l[d];if(p===void 0||u&&IHe(u,d))continue;const g={delay:n,...B8(i||{},d)},y=h.get();if(y!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===y&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const k=hK(e);if(k){const C=window.MotionHandoffAnimation(k,d,Mr);C!==null&&(g.startTime=C,x=!0)}}K8(e,d),h.start(Q8(d,h,p,e.shouldReduceMotion&&HG.has(d)?{type:!1}:g,e,x));const w=h.animation;w&&c.push(w)}return s&&Promise.all(c).then(()=>{Mr.update(()=>{s&&CHe(e,s)})}),c}function fK({top:e,left:r,right:n,bottom:o}){return{x:{min:r,max:n},y:{min:e,max:o}}}function zHe({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function jHe(e,r){if(!r)return e;const n=r({x:e.left,y:e.top}),o=r({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function e9(e){return e===void 0||e===1}function t9({scale:e,scaleX:r,scaleY:n}){return!e9(e)||!e9(r)||!e9(n)}function ch(e){return t9(e)||pK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pK(e){return mK(e.x)||mK(e.y)}function mK(e){return e&&e!=="0%"}function hk(e,r,n){const o=e-n,a=r*o;return n+a}function gK(e,r,n,o,a){return a!==void 0&&(e=hk(e,a,o)),hk(e,n,o)+r}function r9(e,r=0,n=1,o,a){e.min=gK(e.min,r,n,o,a),e.max=gK(e.max,r,n,o,a)}function yK(e,{x:r,y:n}){r9(e.x,r.translate,r.scale,r.originPoint),r9(e.y,n.translate,n.scale,n.originPoint)}const bK=.999999999999,vK=1.0000000000001;function BHe(e,r,n,o=!1){const a=n.length;if(!a)return;r.x=r.y=1;let i,s;for(let l=0;l<a;l++){i=n[l],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&sm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(r.x*=s.x.scale,r.y*=s.y.scale,yK(e,s)),o&&ch(i.latestValues)&&sm(e,i.latestValues))}r.x<vK&&r.x>bK&&(r.x=1),r.y<vK&&r.y>bK&&(r.y=1)}function im(e,r){e.min=e.min+r,e.max=e.max+r}function xK(e,r,n,o,a=.5){const i=Lr(e.min,e.max,a);r9(e,r,n,i,o)}function sm(e,r){xK(e.x,r.x,r.scaleX,r.scale,r.originX),xK(e.y,r.y,r.scaleY,r.scale,r.originY)}function wK(e,r){return fK(jHe(e.getBoundingClientRect(),r))}function FHe(e,r,n){const o=wK(e,n),{scroll:a}=r;return a&&(im(o.x,a.offset.x),im(o.y,a.offset.y)),o}const kK={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lm={};for(const e in kK)lm[e]={isEnabled:r=>kK[e].some(n=>!!r[n])};const _K=()=>({translate:0,scale:1,origin:0,originPoint:0}),cm=()=>({x:_K(),y:_K()}),EK=()=>({min:0,max:0}),Zr=()=>({x:EK(),y:EK()}),n9=typeof window<"u",fk={current:null},o9={current:!1};function SK(){if(o9.current=!0,!!n9)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>fk.current=e.matches;e.addEventListener("change",r),r()}else fk.current=!1}function pk(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ly(e){return typeof e=="string"||Array.isArray(e)}const a9=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i9=["initial",...a9];function mk(e){return pk(e.animate)||i9.some(r=>ly(e[r]))}function CK(e){return!!(mk(e)||e.variants)}function HHe(e,r,n){for(const o in r){const a=r[o],i=n[o];if(Qn(a))e.addValue(o,a);else if(Qn(i))e.addValue(o,lh(a,{owner:e}));else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(o);e.addValue(o,lh(s!==void 0?s:a,{owner:e}))}}for(const o in n)r[o]===void 0&&e.removeValue(o);return r}const TK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class AK{scrapeMotionValuesFromProps(r,n,o){return{}}constructor({parent:r,props:n,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=I8,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=aa.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Mr.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=r,this.props=n,this.presenceContext=o,this.depth=r?r.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=mk(n),this.isVariantNode=CK(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const g=h[p];c[p]!==void 0&&Qn(g)&&g.set(c[p])}}mount(r){this.current=r,sy.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),o9.current||SK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fk.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vu(this.notifyUpdate),vu(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,n){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=om.has(r);o&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",s=>{this.latestValues[r]=s,this.props.onUpdate&&Mr.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,r,n)),this.valueSubscriptions.set(r,()=>{a(),i&&i(),n.owner&&n.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in lm){const n=lm[r];if(!n)continue;const{isEnabled:o,Feature:a}=n;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const i=this.features[r];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Zr()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,n){this.latestValues[r]=n}update(r,n){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<TK.length;o++){const a=TK[o];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,s=r[i];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=HHe(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(r),()=>n.variantChildren.delete(r)}addValue(r,n){const o=this.values.get(r);n!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,n),this.values.set(r,n),this.latestValues[r]=n.get())}removeValue(r){this.values.delete(r);const n=this.valueSubscriptions.get(r);n&&(n(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,n){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&n!==void 0&&(o=lh(n===null?void 0:n,{owner:this}),this.addValue(r,o)),o}readValue(r,n){let o=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return o!=null&&(typeof o=="string"&&(qX(o)||WX(o))?o=parseFloat(o):!hHe(o)&&wu.test(n)&&(o=XG(r,n)),this.setBaseTarget(r,Qn(o)?o.get():o)),Qn(o)?o.get():o}setBaseTarget(r,n){this.baseTarget[r]=n}getBaseTarget(r){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=G8(this.props,n,this.presenceContext?.custom);i&&(o=i[r])}if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,r);return a!==void 0&&!Qn(a)?a:this.initialValues[r]!==void 0&&o===void 0?void 0:this.baseTarget[r]}on(r,n){return this.events[r]||(this.events[r]=new c8),this.events[r].add(n)}notify(r,...n){this.events[r]&&this.events[r].notify(...n)}scheduleRenderMicrotask(){U8.render(this.render)}}class NK extends AK{constructor(){super(...arguments),this.KeyframeResolver=rHe}sortInstanceNodePosition(r,n){return r.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(r,n){return r.style?r.style[n]:void 0}removeValueFromRenderState(r,{vars:n,style:o}){delete n[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Qn(r)&&(this.childSubscription=r.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const UHe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VHe=nm.length;function qHe(e,r,n){let o="",a=!0;for(let i=0;i<VHe;i++){const s=nm[i],l=e[s];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(s.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=KG(l,H8[s]);if(!c){a=!1;const d=UHe[s]||s;o+=`${d}(${u}) `}n&&(r[s]=u)}}return o=o.trim(),n?o=n(r,a?"":o):a&&(o="none"),o}function s9(e,r,n){const{style:o,vars:a,transformOrigin:i}=e;let s=!1,l=!1;for(const c in r){const u=r[c];if(om.has(c)){s=!0;continue}else if(f8(c)){a[c]=u;continue}else{const d=KG(u,H8[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(r.transform||(s||n?o.transform=qHe(r,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${u} ${d}`}}function RK(e,{style:r,vars:n},o,a){const i=e.style;let s;for(s in r)i[s]=r[s];a?.applyProjectionStyles(i,o);for(s in n)i.setProperty(s,n[s])}const cy={};function YHe(e){for(const r in e)cy[r]=e[r],f8(r)&&(cy[r].isCSSVariable=!0)}function $K(e,{layout:r,layoutId:n}){return om.has(e)||e.startsWith("origin")||(r||n!==void 0)&&(!!cy[e]||e==="opacity")}function l9(e,r,n){const{style:o}=e,a={};for(const i in o)(Qn(o[i])||r.style&&Qn(r.style[i])||$K(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(a[i]=o[i]);return a}function WHe(e){return window.getComputedStyle(e)}class PK extends NK{constructor(){super(...arguments),this.type="html",this.renderInstance=RK}readValueFromInstance(r,n){if(om.has(n))return this.projection?.isProjecting?P8(n):vFe(r,n);{const o=WHe(r),a=(f8(n)?o.getPropertyValue(n):o[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(r,{transformPagePoint:n}){return wK(r,n)}build(r,n,o){s9(r,n,o.transformTemplate)}scrapeMotionValuesFromProps(r,n,o){return l9(r,n,o)}}function XHe(e,r){return e in r}class GHe extends AK{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,n){if(XHe(n,r)){const o=r[n];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(r,n){delete n.output[r]}measureInstanceViewportBox(){return Zr()}build(r,n){Object.assign(r.output,n)}renderInstance(r,{output:n}){Object.assign(r,n)}sortInstanceNodePosition(){return 0}}const KHe={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZHe={offset:"strokeDashoffset",array:"strokeDasharray"};function QHe(e,r,n=1,o=0,a=!0){e.pathLength=1;const i=a?KHe:ZHe;e[i.offset]=vt.transform(-o);const s=vt.transform(r),l=vt.transform(n);e[i.array]=`${s} ${l}`}function MK(e,{attrX:r,attrY:n,attrScale:o,pathLength:a,pathSpacing:i=1,pathOffset:s=0,...l},c,u,d){if(s9(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p}=e;h.transform&&(p.transform=h.transform,delete h.transform),(p.transform||h.transformOrigin)&&(p.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),p.transform&&(p.transformBox=d?.transformBox??"fill-box",delete h.transformBox),r!==void 0&&(h.x=r),n!==void 0&&(h.y=n),o!==void 0&&(h.scale=o),a!==void 0&&QHe(h,a,i,s,!1)}const OK=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),DK=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JHe(e,r,n,o){RK(e,r,void 0,o);for(const a in r.attrs)e.setAttribute(OK.has(a)?a:Z8(a),r.attrs[a])}function LK(e,r,n){const o=l9(e,r,n);for(const a in e)if(Qn(e[a])||Qn(r[a])){const i=nm.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[i]=e[a]}return o}class IK extends NK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Zr}getBaseTargetFromProps(r,n){return r[n]}readValueFromInstance(r,n){if(om.has(n)){const o=WG(n);return o&&o.default||0}return n=OK.has(n)?n:Z8(n),r.getAttribute(n)}scrapeMotionValuesFromProps(r,n,o){return LK(r,n,o)}build(r,n,o){MK(r,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(r,n,o,a){JHe(r,n,o,a)}mount(r){this.isSVGTag=DK(r.tagName),super.mount(r)}}function eUe(e){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Y8(e)&&!aK(e)?new IK(r):new PK(r);n.mount(e),sy.set(e,n)}function tUe(e){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new GHe(r);n.mount(e),sy.set(e,n)}function zK(e,r,n){const o=Qn(e)?e:lh(e);return o.start(Q8("",o,r,n)),o.animation}function rUe(e,r){return Qn(e)||typeof e=="number"||typeof e=="string"&&!W8(r)}function jK(e,r,n,o){const a=[];if(rUe(e,r))a.push(zK(e,W8(r)&&r.default||r,n&&(n.default||n)));else{const i=iK(e,r,o),s=i.length;for(let l=0;l<s;l++){const c=i[l],u=c instanceof Element?eUe:tUe;sy.has(c)||u(c);const d=sy.get(c),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(l,s)),a.push(...J8(d,{...r,transition:h},{}))}}return a}function nUe(e,r,n){const o=[];return vHe(e,r,n,{spring:oy}).forEach(({keyframes:a,transition:i},s)=>{o.push(...jK(s,a,i))}),o}function oUe(e){return Array.isArray(e)&&e.some(Array.isArray)}function aUe(e){function r(n,o,a){let i=[],s;if(oUe(n))i=nUe(n,o,e);else{const{onComplete:c,...u}=a||{};typeof c=="function"&&(s=c),i=jK(n,o,u,e)}const l=new VFe(i);return s&&l.finished.then(s),l}return r}const iUe=aUe();function sUe(e,r){const n=aa.now(),o=({timestamp:a})=>{const i=a-n;i>=r&&(vu(o),e(i-r))};return Mr.setup(o,!0),()=>vu(o)}const BK=(e,r)=>Math.abs(e-r);function lUe(e,r){const n=BK(e.x,r.x),o=BK(e.y,r.y);return Math.sqrt(n**2+o**2)}const uy=E.createContext({});function um(e){const r=E.useRef(null);return r.current===null&&(r.current=e()),r.current}const c9=n9?E.useLayoutEffect:E.useEffect,gk=E.createContext(null),uh=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function FK(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function cUe(...e){return r=>{let n=!1;const o=e.map(a=>{const i=FK(a,r);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<o.length;a++){const i=o[a];typeof i=="function"?i():FK(e[a],null)}}}}function uUe(...e){return E.useCallback(cUe(...e),e)}class dUe extends E.Component{getSnapshotBeforeUpdate(r){const n=this.props.childRef.current;if(n&&r.isPresent&&!this.props.isPresent){const o=n.offsetParent,a=ZG(o)&&o.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function hUe({children:e,isPresent:r,anchorX:n,root:o}){const a=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=E.useContext(uh),c=uUe(i,e?.ref);return E.useInsertionEffect(()=>{const{width:u,height:d,top:h,left:p,right:g}=s.current;if(r||!i.current||!u||!d)return;const y=n==="left"?`left: ${p}`:`right: ${g}`;i.current.dataset.motionPopId=a;const x=document.createElement("style");l&&(x.nonce=l);const w=o??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(`
          [data-motion-pop-id="${a}"] {
            position: absolute !important;
            width: ${u}px !important;
            height: ${d}px !important;
            ${y}px !important;
            top: ${h}px !important;
          }
        `),()=>{w.contains(x)&&w.removeChild(x)}},[r]),b.jsx(dUe,{isPresent:r,childRef:i,sizeRef:s,children:E.cloneElement(e,{ref:c})})}const fUe=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:i,mode:s,anchorX:l,root:c})=>{const u=um(pUe),d=E.useId();let h=!0,p=E.useMemo(()=>(h=!1,{id:d,initial:r,isPresent:n,custom:a,onExitComplete:g=>{u.set(g,!0);for(const y of u.values())if(!y)return;o&&o()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,o]);return i&&h&&(p={...p}),E.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),E.useEffect(()=>{!n&&!u.size&&o&&o()},[n]),s==="popLayout"&&(e=b.jsx(hUe,{isPresent:n,anchorX:l,root:c,children:e})),b.jsx(gk.Provider,{value:p,children:e})};function pUe(){return new Map}function HK(e=!0){const r=E.useContext(gk);if(r===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:a}=r,i=E.useId();E.useEffect(()=>{if(e)return a(i)},[e]);const s=E.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,s]:[!0]}const yk=e=>e.key||"";function UK(e){const r=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&r.push(n)}),r}const Pa=({children:e,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1,anchorX:l="left",root:c})=>{const[u,d]=HK(s),h=E.useMemo(()=>UK(e),[e]),p=s&&!u?[]:h.map(yk),g=E.useRef(!0),y=E.useRef(h),x=um(()=>new Map),[w,k]=E.useState(h),[C,_]=E.useState(h);c9(()=>{g.current=!1,y.current=h;for(let N=0;N<C.length;N++){const $=yk(C[N]);p.includes($)?x.delete($):x.get($)!==!0&&x.set($,!1)}},[C,p.length,p.join("-")]);const T=[];if(h!==w){let N=[...h];for(let $=0;$<C.length;$++){const R=C[$],M=yk(R);p.includes(M)||(N.splice($,0,R),T.push(R))}return i==="wait"&&T.length&&(N=T),_(UK(N)),k(h),null}const{forceRender:A}=E.useContext(uy);return b.jsx(b.Fragment,{children:C.map(N=>{const $=yk(N),R=s&&!u?!1:h===C||p.includes($),M=()=>{if(x.has($))x.set($,!0);else return;let O=!0;x.forEach(B=>{B||(O=!1)}),O&&(A?.(),_(y.current),s&&d?.(),o&&o())};return b.jsx(fUe,{isPresent:R,initial:!g.current||n?void 0:!1,custom:r,presenceAffectsLayout:a,mode:i,root:c,onExitComplete:R?void 0:M,anchorX:l,children:N},$)})})},mUe=E.createContext(null);function gUe(){const e=E.useRef(!1);return c9(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function yUe(){const e=gUe(),[r,n]=E.useState(0),o=E.useCallback(()=>{e.current&&n(r+1)},[r]);return[E.useCallback(()=>Mr.postRender(o),[o]),r]}const bUe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function vUe(){const e=new Set,r=new WeakMap,n=()=>e.forEach(bUe);return{add:o=>{e.add(o),r.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const a=r.get(o);a&&(a(),r.delete(o)),n()},dirty:n}}const VK=e=>e===!0,xUe=e=>VK(e===!0)||e==="id",dm=({children:e,id:r,inherit:n=!0})=>{const o=E.useContext(uy),a=E.useContext(mUe),[i,s]=yUe(),l=E.useRef(null),c=o.id||a;l.current===null&&(xUe(n)&&c&&(r=r?c+"-"+r:c),l.current={id:r,group:VK(n)&&o.group||vUe()});const u=E.useMemo(()=>({...l.current,forceRender:i}),[s]);return b.jsx(uy.Provider,{value:u,children:e})},u9=E.createContext({strict:!1});function d9(e){for(const r in e)lm[r]={...lm[r],...e[r]}}function wUe({children:e,features:r,strict:n=!1}){const[,o]=E.useState(!h9(r)),a=E.useRef(void 0);if(!h9(r)){const{renderer:i,...s}=r;a.current=i,d9(s)}return E.useEffect(()=>{h9(r)&&r().then(({renderer:i,...s})=>{d9(s),a.current=i,o(!0)})},[]),b.jsx(u9.Provider,{value:{renderer:a.current,strict:n},children:e})}function h9(e){return typeof e=="function"}const kUe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bk(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kUe.has(e)}let qK=e=>!bk(e);function YK(e){typeof e=="function"&&(qK=r=>r.startsWith("on")?!bk(r):e(r))}try{YK(require("@emotion/is-prop-valid").default)}catch{}function _Ue(e,r,n){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(qK(a)||n===!0&&bk(a)||!r&&!bk(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function EUe({children:e,isValidProp:r,...n}){r&&YK(r),n={...E.useContext(uh),...n},n.isStatic=um(()=>n.isStatic);const o=E.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return b.jsx(uh.Provider,{value:o,children:e})}const vk=E.createContext({});function SUe(e,r){if(mk(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ly(n)?n:void 0,animate:ly(o)?o:void 0}}return e.inherit!==!1?r:{}}function CUe(e){const{initial:r,animate:n}=SUe(e,E.useContext(vk));return E.useMemo(()=>({initial:r,animate:n}),[WK(r),WK(n)])}function WK(e){return Array.isArray(e)?e.join(" "):e}const f9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function XK(e,r,n){for(const o in r)!Qn(r[o])&&!$K(o,n)&&(e[o]=r[o])}function TUe({transformTemplate:e},r){return E.useMemo(()=>{const n=f9();return s9(n,r,e),Object.assign({},n.vars,n.style)},[r])}function AUe(e,r){const n=e.style||{},o={};return XK(o,n,e),Object.assign(o,TUe(e,r)),o}function NUe(e,r){const n={},o=AUe(e,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const GK=()=>({...f9(),attrs:{}});function RUe(e,r,n,o){const a=E.useMemo(()=>{const i=GK();return MK(i,r,DK(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[r]);if(e.style){const i={};XK(i,e.style,e),a.style={...i,...a.style}}return a}const $Ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function p9(e){return typeof e!="string"||e.includes("-")?!1:!!($Ue.indexOf(e)>-1||/[A-Z]/u.test(e))}function PUe(e,r,n,{latestValues:o},a,i=!1){const s=(p9(e)?RUe:NUe)(r,o,a,e),l=_Ue(r,typeof e=="string",i),c=e!==E.Fragment?{...l,...s,ref:n}:{},{children:u}=r,d=E.useMemo(()=>Qn(u)?u.get():u,[u]);return E.createElement(e,{...c,children:d})}function xk(e){return Qn(e)?e.get():e}function MUe({scrapeMotionValuesFromProps:e,createRenderState:r},n,o,a){return{latestValues:OUe(n,o,a,e),renderState:r()}}function OUe(e,r,n,o){const a={},i=o(e,{});for(const p in i)a[p]=xk(i[p]);let{initial:s,animate:l}=e;const c=mk(e),u=CK(e);r&&u&&!c&&e.inherit!==!1&&(s===void 0&&(s=r.initial),l===void 0&&(l=r.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const h=d?l:s;if(h&&typeof h!="boolean"&&!pk(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=G8(e,p[g]);if(y){const{transitionEnd:x,transition:w,...k}=y;for(const C in k){let _=k[C];if(Array.isArray(_)){const T=d?_.length-1:0;_=_[T]}_!==null&&(a[C]=_)}for(const C in x)a[C]=x[C]}}}return a}const KK=e=>(r,n)=>{const o=E.useContext(vk),a=E.useContext(gk),i=()=>MUe(e,r,o,a);return n?i():um(i)},DUe=KK({scrapeMotionValuesFromProps:l9,createRenderState:f9}),LUe=KK({scrapeMotionValuesFromProps:LK,createRenderState:GK}),IUe=Symbol.for("motionComponentSymbol");function hm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zUe(e,r,n){return E.useCallback(o=>{o&&e.onMount&&e.onMount(o),r&&(o?r.mount(o):r.unmount()),n&&(typeof n=="function"?n(o):hm(n)&&(n.current=o))},[r])}const ZK=E.createContext({});function jUe(e,r,n,o,a){const{visualElement:i}=E.useContext(vk),s=E.useContext(u9),l=E.useContext(gk),c=E.useContext(uh).reducedMotion,u=E.useRef(null);o=o||s.renderer,!u.current&&o&&(u.current=o(e,{visualState:r,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,h=E.useContext(ZK);d&&!d.projection&&a&&(d.type==="html"||d.type==="svg")&&BUe(u.current,n,a,h);const p=E.useRef(!1);E.useInsertionEffect(()=>{d&&p.current&&d.update(n,l)});const g=n[dK],y=E.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return c9(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),y.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),d.enteringChildren=void 0)}),d}function BUe(e,r,n,o){const{layoutId:a,layout:i,drag:s,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=r;e.projection=new n(e.latestValues,r["data-framer-portal-id"]?void 0:QK(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||l&&hm(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function QK(e){if(e)return e.options.allowProjection!==!1?e.projection:QK(e.parent)}function wk(e,{forwardMotionProps:r=!1}={},n,o){n&&d9(n);const a=p9(e)?LUe:DUe;function i(l,c){let u;const d={...E.useContext(uh),...l,layoutId:FUe(l)},{isStatic:h}=d,p=CUe(l),g=a(l,h);if(!h&&n9){HUe();const y=UUe(d);u=y.MeasureLayout,p.visualElement=jUe(e,g,d,o,y.ProjectionNode)}return b.jsxs(vk.Provider,{value:p,children:[u&&p.visualElement?b.jsx(u,{visualElement:p.visualElement,...d}):null,PUe(e,l,zUe(g,p.visualElement,c),g,h,r)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[IUe]=e,s}function FUe({layoutId:e}){const r=E.useContext(uy).id;return r&&e!==void 0?r+"-"+e:e}function HUe(e,r){E.useContext(u9).strict}function UUe(e){const{drag:r,layout:n}=lm;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function VUe(e,r){if(typeof Proxy>"u")return wk;const n=new Map,o=(i,s)=>wk(i,s,e,r),a=(i,s)=>o(i,s);return new Proxy(a,{get:(i,s)=>s==="create"?o:(n.has(s)||n.set(s,wk(s,void 0,e,r)),n.get(s))})}const cs=VUe(),qUe=(e,r)=>p9(e)?new IK(r):new PK(r,{allowProjection:e!==E.Fragment});function JK(e,r,n,o=0,a=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(r),s=e.size,l=(s-1)*o;return typeof n=="function"?n(i,s):a===1?i*o:l-i*o}function m9(e,r,n={}){const o=am(e,r,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(J8(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=a;return YUe(e,r,c,u,d,h,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[c,u]=l==="beforeChildren"?[i,s]:[s,i];return c().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function YUe(e,r,n=0,o=0,a=0,i=1,s){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",r),l.push(m9(c,r,{...s,delay:n+(typeof o=="function"?0:o)+JK(e.variantChildren,c,o,a,i)}).then(()=>c.notify("AnimationComplete",r)));return Promise.all(l)}function WUe(e,r,n={}){e.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(i=>m9(e,i,n));o=Promise.all(a)}else if(typeof r=="string")o=m9(e,r,n);else{const a=typeof r=="function"?am(e,r,n.custom):r;o=Promise.all(J8(e,a,n))}return o.then(()=>{e.notify("AnimationComplete",r)})}function eZ(e,r){if(!Array.isArray(r))return!1;const n=r.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(r[o]!==e[o])return!1;return!0}const XUe=i9.length;function tZ(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?tZ(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const r={};for(let n=0;n<XUe;n++){const o=i9[n],a=e.props[o];(ly(a)||a===!1)&&(r[o]=a)}return r}const GUe=[...a9].reverse(),KUe=a9.length;function ZUe(e){return r=>Promise.all(r.map(({animation:n,options:o})=>WUe(e,n,o)))}function QUe(e){let r=ZUe(e),n=rZ(),o=!0;const a=c=>(u,d)=>{const h=am(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:g,...y}=h;u={...u,...y,...g}}return u};function i(c){r=c(e)}function s(c){const{props:u}=e,d=tZ(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let w=0;w<KUe;w++){const k=GUe[w],C=n[k],_=u[k]!==void 0?u[k]:d[k],T=ly(_),A=k===c?C.isActive:null;A===!1&&(y=w);let N=_===d[k]&&_!==u[k]&&T;if(N&&o&&e.manuallyAnimateOnMount&&(N=!1),C.protectedKeys={...g},!C.isActive&&A===null||!_&&!C.prevProp||pk(_)||typeof _=="boolean")continue;const $=JUe(C.prevProp,_);let R=$||k===c&&C.isActive&&!N&&T||w>y&&T,M=!1;const O=Array.isArray(_)?_:[_];let B=O.reduce(a(k),{});A===!1&&(B={});const{prevResolvedValues:I={}}=C,Y={...I,...B},D=L=>{R=!0,p.has(L)&&(M=!0,p.delete(L)),C.needsAnimating[L]=!0;const U=e.getValue(L);U&&(U.liveStyle=!1)};for(const L in Y){const U=B[L],q=I[L];if(g.hasOwnProperty(L))continue;let X=!1;X8(U)&&X8(q)?X=!eZ(U,q):X=U!==q,X?U!=null?D(L):p.add(L):U!==void 0&&p.has(L)?D(L):C.protectedKeys[L]=!0}C.prevProp=_,C.prevResolvedValues=B,C.isActive&&(g={...g,...B}),o&&e.blockInitialAnimation&&(R=!1);const V=N&&$;R&&(!V||M)&&h.push(...O.map(L=>{const U={type:k};if(typeof L=="string"&&o&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,X=am(q,L);if(q.enteringChildren&&X){const{delayChildren:F}=X.transition||{};U.delay=JK(q.enteringChildren,e,F)}}return{animation:L,options:U}}))}if(p.size){const w={};if(typeof u.initial!="boolean"){const k=am(e,Array.isArray(u.initial)?u.initial[0]:u.initial);k&&k.transition&&(w.transition=k.transition)}p.forEach(k=>{const C=e.getBaseTarget(k),_=e.getValue(k);_&&(_.liveStyle=!0),w[k]=C??null}),h.push({animation:w})}let x=!!h.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,x?r(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const d=s(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=rZ(),o=!0}}}function JUe(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!eZ(r,e):!1}function dh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rZ(){return{animate:dh(!0),whileInView:dh(),whileHover:dh(),whileTap:dh(),whileDrag:dh(),whileFocus:dh(),exit:dh()}}class ku{constructor(r){this.isMounted=!1,this.node=r}update(){}}class eVe extends ku{constructor(r){super(r),r.animationState||(r.animationState=QUe(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();pk(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:n}=this.node.prevProps||{};r!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tVe=0;class rVe extends ku{constructor(){super(...arguments),this.id=tVe++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);n&&!r&&a.then(()=>{n(this.id)})}mount(){const{register:r,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const nVe={animation:{Feature:eVe},exit:{Feature:rVe}};function dy(e,r,n,o={passive:!0}){return e.addEventListener(r,n,o),()=>e.removeEventListener(r,n)}function hy(e){return{point:{x:e.pageX,y:e.pageY}}}const oVe=e=>r=>V8(r)&&e(r,hy(r));function fy(e,r,n,o){return dy(e,r,oVe(n),o)}const nZ=1e-4,aVe=1-nZ,iVe=1+nZ,oZ=.01,sVe=0-oZ,lVe=0+oZ;function Vo(e){return e.max-e.min}function cVe(e,r,n){return Math.abs(e-r)<=n}function aZ(e,r,n,o=.5){e.origin=o,e.originPoint=Lr(r.min,r.max,e.origin),e.scale=Vo(n)/Vo(r),e.translate=Lr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aVe&&e.scale<=iVe||isNaN(e.scale))&&(e.scale=1),(e.translate>=sVe&&e.translate<=lVe||isNaN(e.translate))&&(e.translate=0)}function py(e,r,n,o){aZ(e.x,r.x,n.x,o?o.originX:void 0),aZ(e.y,r.y,n.y,o?o.originY:void 0)}function iZ(e,r,n){e.min=n.min+r.min,e.max=e.min+Vo(r)}function uVe(e,r,n){iZ(e.x,r.x,n.x),iZ(e.y,r.y,n.y)}function sZ(e,r,n){e.min=r.min-n.min,e.max=e.min+Vo(r)}function my(e,r,n){sZ(e.x,r.x,n.x),sZ(e.y,r.y,n.y)}function fi(e){return[e("x"),e("y")]}const lZ=({current:e})=>e?e.ownerDocument.defaultView:null;class cZ{constructor(r,n,{transformPagePoint:o,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=y9(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=lUe(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=p,{timestamp:w}=mo;this.history.push({...x,timestamp:w});const{onStart:k,onMove:C}=this.handlers;g||(k&&k(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=g9(g,this.transformPagePoint),Mr.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=y9(p.type==="pointercancel"?this.lastMoveEventInfo:g9(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,k),x&&x(p,k)},!V8(r))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=a||window;const l=hy(r),c=g9(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=mo;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(r,y9(c,this.history)),this.removeListeners=Q1(fy(this.contextWindow,"pointermove",this.handlePointerMove),fy(this.contextWindow,"pointerup",this.handlePointerUp),fy(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),vu(this.updatePoint)}}function g9(e,r){return r?{point:r(e.point)}:e}function uZ(e,r){return{x:e.x-r.x,y:e.y-r.y}}function y9({point:e},r){return{point:e,delta:uZ(e,dZ(r)),offset:uZ(e,dVe(r)),velocity:hVe(r,.1)}}function dVe(e){return e[0]}function dZ(e){return e[e.length-1]}function hVe(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const a=dZ(e);for(;n>=0&&(o=e[n],!(a.timestamp-o.timestamp>ss(r)));)n--;if(!o)return{x:0,y:0};const i=hi(a.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-o.x)/i,y:(a.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fVe(e,{min:r,max:n},o){return r!==void 0&&e<r?e=o?Lr(r,e,o.min):Math.max(e,r):n!==void 0&&e>n&&(e=o?Lr(n,e,o.max):Math.min(e,n)),e}function hZ(e,r,n){return{min:r!==void 0?e.min+r:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pVe(e,{top:r,left:n,bottom:o,right:a}){return{x:hZ(e.x,n,a),y:hZ(e.y,r,o)}}function fZ(e,r){let n=r.min-e.min,o=r.max-e.max;return r.max-r.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function mVe(e,r){return{x:fZ(e.x,r.x),y:fZ(e.y,r.y)}}function gVe(e,r){let n=.5;const o=Vo(e),a=Vo(r);return a>o?n=em(r.min,r.max-o,e.min):o>a&&(n=em(e.min,e.max-a,r.min)),rc(0,1,n)}function yVe(e,r){const n={};return r.min!==void 0&&(n.min=r.min-e.min),r.max!==void 0&&(n.max=r.max-e.min),n}const b9=.35;function bVe(e=b9){return e===!1?e=0:e===!0&&(e=b9),{x:pZ(e,"left","right"),y:pZ(e,"top","bottom")}}function pZ(e,r,n){return{min:mZ(e,r),max:mZ(e,n)}}function mZ(e,r){return typeof e=="number"?e:e[r]||0}const vVe=new WeakMap;class xVe{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Zr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(hy(h).point)},s=(h,p)=>{const{drag:g,dragPropagation:y,onDragStart:x}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aHe(g),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fi(k=>{let C=this.getAxisMotionValue(k).get()||0;if(sl.test(C)){const{projection:_}=this.visualElement;if(_&&_.layout){const T=_.layout.layoutBox[k];T&&(C=Vo(T)*(parseFloat(C)/100))}}this.originPoint[k]=C}),x&&Mr.postRender(()=>x(h,p)),K8(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p;const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:x,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:k}=p;if(y&&this.currentDirection===null){this.currentDirection=wVe(k),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",p.point,k),this.updateAxis("y",p.point,k),this.visualElement.render(),w&&w(h,p)},c=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p,this.stop(h,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>fi(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new cZ(r,{onSessionStart:i,onStart:s,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:lZ(this.visualElement)})}stop(r,n){const o=r||this.latestPointerEvent,a=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!o)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&Mr.postRender(()=>l(o,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:n}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(r,n,o){const{drag:a}=this.getProps();if(!o||!kk(r,a,this.currentDirection))return;const i=this.getAxisMotionValue(r);let s=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(s=fVe(s,this.constraints[r],this.elastic[r])),i.set(s)}resolveConstraints(){const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;r&&hm(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=pVe(o.layoutBox,r):this.constraints=!1,this.elastic=bVe(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&fi(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=yVe(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!hm(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=FHe(o,a.root,this.visualElement.getTransformPagePoint());let s=mVe(a.layout.layoutBox,i);if(n){const l=n(zHe(s));this.hasMutatedConstraints=!!l,l&&(s=fK(l))}return s}startAnimation(r){const{drag:n,dragMomentum:o,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=fi(d=>{if(!kk(d,n,this.currentDirection))return;let h=c&&c[d]||{};s&&(h={min:0,max:0});const p=a?200:1e6,g=a?40:1e7,y={type:"inertia",velocity:o?r[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(r,n){const o=this.getAxisMotionValue(r);return K8(this.visualElement,r),o.start(Q8(r,o,0,n,this.visualElement,!1))}stopAnimation(){fi(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){fi(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const n=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[n]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){fi(n=>{const{drag:o}=this.getProps();if(!kk(n,o,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[n];i.set(r[n]-Lr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!hm(n)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};fi(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const c=l.get();a[s]=gVe({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),fi(s=>{if(!kk(s,r,null))return;const l=this.getAxisMotionValue(s),{min:c,max:u}=this.constraints[s];l.set(Lr(c,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;vVe.set(this.visualElement,this);const r=this.visualElement.current,n=fy(r,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();hm(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Mr.read(o);const s=dy(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(fi(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),l&&l()}}getProps(){const r=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=b9,dragMomentum:l=!0}=r;return{...r,drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function kk(e,r,n){return(r===!0||r===e)&&(n===null||n===e)}function wVe(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}class kVe extends ku{constructor(r){super(r),this.removeGroupControls=di,this.removeListeners=di,this.controls=new xVe(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||di}unmount(){this.removeGroupControls(),this.removeListeners()}}const gZ=e=>(r,n)=>{e&&Mr.postRender(()=>e(r,n))};class _Ve extends ku{constructor(){super(...arguments),this.removePointerDownListener=di}onPointerDown(r){this.session=new cZ(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lZ(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:n,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:gZ(r),onStart:gZ(n),onMove:o,onEnd:(i,s)=>{delete this.session,a&&Mr.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=fy(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const _k={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yZ(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const gy={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if(vt.test(e))e=parseFloat(e);else return e;const n=yZ(e,r.target.x),o=yZ(e,r.target.y);return`${n}% ${o}%`}},EVe={correct:(e,{treeScale:r,projectionDelta:n})=>{const o=e,a=wu.parse(e);if(a.length>5)return o;const i=wu.createTransformer(e),s=typeof a[0]!="number"?1:0,l=n.x.scale*r.x,c=n.y.scale*r.y;a[0+s]/=l,a[1+s]/=c;const u=Lr(l,c,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),i(a)}};let v9=!1;class SVe extends E.Component{componentDidMount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o,layoutId:a}=this.props,{projection:i}=r;YHe(CVe),i&&(n.group&&n.group.add(i),o&&o.register&&a&&o.register(i),v9&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),_k.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:n,visualElement:o,drag:a,isPresent:i}=this.props,{projection:s}=o;return s&&(s.isPresent=i,v9=!0,a||r.layoutDependency!==n||n===void 0||r.isPresent!==i?s.willUpdate():this.safeToRemove(),r.isPresent!==i&&(i?s.promote():s.relegate()||Mr.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),U8.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:a}=r;v9=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function bZ(e){const[r,n]=HK(),o=E.useContext(uy);return b.jsx(SVe,{...e,layoutGroup:o,switchLayoutGroup:E.useContext(ZK),isPresent:r,safeToRemove:n})}const CVe={borderRadius:{...gy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gy,borderTopRightRadius:gy,borderBottomLeftRadius:gy,borderBottomRightRadius:gy,boxShadow:EVe},TVe=(e,r)=>e.depth-r.depth;class AVe{constructor(){this.children=[],this.isDirty=!1}add(r){i8(this.children,r),this.isDirty=!0}remove(r){ak(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(TVe),this.isDirty=!1,this.children.forEach(r)}}const vZ=["TopLeft","TopRight","BottomLeft","BottomRight"],NVe=vZ.length,xZ=e=>typeof e=="string"?parseFloat(e):e,wZ=e=>typeof e=="number"||vt.test(e);function RVe(e,r,n,o,a,i){a?(e.opacity=Lr(0,n.opacity??1,$Ve(o)),e.opacityExit=Lr(r.opacity??1,0,PVe(o))):i&&(e.opacity=Lr(r.opacity??1,n.opacity??1,o));for(let s=0;s<NVe;s++){const l=`border${vZ[s]}Radius`;let c=kZ(r,l),u=kZ(n,l);c===void 0&&u===void 0||(c||(c=0),u||(u=0),c===0||u===0||wZ(c)===wZ(u)?(e[l]=Math.max(Lr(xZ(c),xZ(u),o),0),(sl.test(u)||sl.test(c))&&(e[l]+="%")):e[l]=u)}(r.rotate||n.rotate)&&(e.rotate=Lr(r.rotate||0,n.rotate||0,o))}function kZ(e,r){return e[r]!==void 0?e[r]:e.borderRadius}const $Ve=_Z(0,.5,tG),PVe=_Z(.5,.95,di);function _Z(e,r,n){return o=>o<e?0:o>r?1:n(em(e,r,o))}function EZ(e,r){e.min=r.min,e.max=r.max}function pi(e,r){EZ(e.x,r.x),EZ(e.y,r.y)}function SZ(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function CZ(e,r,n,o,a){return e-=r,e=hk(e,1/n,o),a!==void 0&&(e=hk(e,1/a,o)),e}function MVe(e,r=0,n=1,o=.5,a,i=e,s=e){if(sl.test(r)&&(r=parseFloat(r),r=Lr(s.min,s.max,r/100)-s.min),typeof r!="number")return;let l=Lr(i.min,i.max,o);e===i&&(l-=r),e.min=CZ(e.min,r,n,l,a),e.max=CZ(e.max,r,n,l,a)}function TZ(e,r,[n,o,a],i,s){MVe(e,r[n],r[o],r[a],r.scale,i,s)}const OVe=["x","scaleX","originX"],DVe=["y","scaleY","originY"];function AZ(e,r,n,o){TZ(e.x,r,OVe,n?n.x:void 0,o?o.x:void 0),TZ(e.y,r,DVe,n?n.y:void 0,o?o.y:void 0)}function NZ(e){return e.translate===0&&e.scale===1}function RZ(e){return NZ(e.x)&&NZ(e.y)}function $Z(e,r){return e.min===r.min&&e.max===r.max}function LVe(e,r){return $Z(e.x,r.x)&&$Z(e.y,r.y)}function PZ(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function MZ(e,r){return PZ(e.x,r.x)&&PZ(e.y,r.y)}function OZ(e){return Vo(e.x)/Vo(e.y)}function DZ(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class IVe{constructor(){this.members=[]}add(r){i8(this.members,r),r.scheduleRender()}remove(r){if(ak(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(r){const n=this.members.findIndex(a=>r===a);if(n===0)return!1;let o;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(r,n){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,n&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:n,resumingFrom:o}=r;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zVe(e,r,n){let o="";const a=e.x.translate/r.x,i=e.y.translate/r.y,s=n?.z||0;if((a||i||s)&&(o=`translate3d(${a}px, ${i}px, ${s}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:p,skewX:g,skewY:y}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),h&&(o+=`rotateX(${h}deg) `),p&&(o+=`rotateY(${p}deg) `),g&&(o+=`skewX(${g}deg) `),y&&(o+=`skewY(${y}deg) `)}const l=e.x.scale*r.x,c=e.y.scale*r.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const x9=["","X","Y","Z"],jVe=1e3;let BVe=0;function w9(e,r,n,o){const{latestValues:a}=r;a[e]&&(n[e]=a[e],r.setStaticValue(e,0),o&&(o[e]=0))}function LZ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const n=hK(r);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Mr,!(a||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&LZ(o)}function IZ({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},s=r?.()){this.id=BVe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(UVe),this.nodes.forEach(WVe),this.nodes.forEach(XVe),this.nodes.forEach(VVe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new AVe)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new c8),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){const l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Y8(i)&&!aK(i),this.instance=i;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;Mr.read(()=>{d=window.innerWidth}),e(i,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=sUe(h,250),_k.hasAnimatedSinceResize&&(_k.hasAnimatedSinceResize=!1,this.nodes.forEach(BZ)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||JVe,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),w=!this.targetLayout||!MZ(this.targetLayout,p),k=!d&&h;if(this.options.layoutRoot||this.resumeFrom||k||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...B8(g,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(u,k)}else d||BZ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(GVe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LZ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zZ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jZ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(YVe),this.nodes.forEach(FVe),this.nodes.forEach(HVe)):this.nodes.forEach(jZ),this.clearAllSnapshots();const i=aa.now();mo.delta=rc(0,16.666666666666668,i-mo.timestamp),mo.timestamp=i,mo.isProcessing=!0,h8.update.process(mo),h8.preRender.process(mo),h8.render.process(mo),mo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,U8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qVe),this.sharedNodes.forEach(KVe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vo(this.snapshot.measuredBox.x)&&!Vo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Zr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&this.instance){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!RZ(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;i&&this.instance&&(s||ch(this.latestValues)||u)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),eqe(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return Zr();const s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tqe))){const{scroll:l}=this.root;l&&(im(s.x,l.offset.x),im(s.y,l.offset.y))}return s}removeElementScroll(i){const s=Zr();if(pi(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&pi(s,i),im(s.x,u.offset.x),im(s.y,u.offset.y))}return s}applyTransform(i,s=!1){const l=Zr();pi(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&sm(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ch(u.latestValues)&&sm(l,u.latestValues)}return ch(this.latestValues)&&sm(l,this.latestValues),l}removeTransform(i){const s=Zr();pi(s,i);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ch(c.latestValues))continue;t9(c.latestValues)&&c.updateSnapshot();const u=Zr(),d=c.measurePageBox();pi(u,d),AZ(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ch(this.latestValues)&&AZ(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==mo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:u}=this.options;if(!(!this.layout||!(c||u))){if(this.resolvedRelativeTargetAt=mo.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zr(),this.relativeTargetOrigin=Zr(),my(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),pi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Zr(),this.targetWithTransforms=Zr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uVe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pi(this.target,this.layout.layoutBox),yK(this.target,this.targetDelta)):pi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zr(),this.relativeTargetOrigin=Zr(),my(this.relativeTargetOrigin,this.target,d.target),pi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||t9(this.parent.latestValues)||pK(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),s=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===mo.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;pi(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;BHe(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Zr());const{target:p}=i;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(SZ(this.prevProjectionDelta.x,this.projectionDelta.x),SZ(this.prevProjectionDelta.y,this.projectionDelta.y)),py(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!DZ(this.projectionDelta.x,this.prevProjectionDelta.x)||!DZ(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cm(),this.projectionDelta=cm(),this.projectionDeltaWithTransform=cm()}setAnimationOrigin(i,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=cm();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=Zr(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=p!==g,x=this.getStack(),w=!x||x.members.length<=1,k=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(QVe));this.animationProgress=0;let C;this.mixTargetDelta=_=>{const T=_/1e3;FZ(d.x,i.x,T),FZ(d.y,i.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(my(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZVe(this.relativeTarget,this.relativeTargetOrigin,h,T),C&&LVe(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Zr()),pi(C,this.relativeTarget)),y&&(this.animationValues=u,RVe(u,c,this.latestValues,T,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mr.update(()=>{_k.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=lh(0)),this.currentAnimation=zK(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jVe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=i;if(!(!s||!l||!c)){if(this!==i&&this.layout&&c&&YZ(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Zr();const d=Vo(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;const h=Vo(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}pi(s,l),sm(s,u),py(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new IVe),this.sharedNodes.get(i).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let s=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&w9("z",i,c,this.animationValues);for(let u=0;u<x9.length;u++)w9(`rotate${x9[u]}`,i,c,this.animationValues),w9(`skew${x9[u]}`,i,c,this.animationValues);i.render();for(const u in c)i.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=xk(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=xk(s?.pointerEvents)||""),this.hasProjected&&!ch(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=zVe(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),i.transform=d;const{x:h,y:p}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?i.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in cy){if(u[g]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:w}=cy[g],k=d==="none"?u[g]:y(u[g],c);if(x){const C=x.length;for(let _=0;_<C;_++)i[x[_]]=k}else w?this.options.visualElement.renderState.vars[g]=k:i[g]=k}this.options.layoutId&&(i.pointerEvents=c===this?xk(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(zZ),this.root.sharedNodes.clear()}}}function FVe(e){e.updateLayout()}function HVe(e){const r=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;a==="size"?fi(d=>{const h=i?r.measuredBox[d]:r.layoutBox[d],p=Vo(h);h.min=n[d].min,h.max=h.min+p}):YZ(a,r.layoutBox,n)&&fi(d=>{const h=i?r.measuredBox[d]:r.layoutBox[d],p=Vo(n[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=cm();py(s,n,r.layoutBox);const l=cm();i?py(l,e.applyTransform(o,!0),r.measuredBox):py(l,n,r.layoutBox);const c=!RZ(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const g=Zr();my(g,r.layoutBox,h.layoutBox);const y=Zr();my(y,n,p.layoutBox),MZ(g,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function UVe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function VVe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qVe(e){e.clearSnapshot()}function zZ(e){e.clearMeasurements()}function jZ(e){e.isLayoutDirty=!1}function YVe(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function BZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WVe(e){e.resolveTargetDelta()}function XVe(e){e.calcProjection()}function GVe(e){e.resetSkewAndRotation()}function KVe(e){e.removeLeadSnapshot()}function FZ(e,r,n){e.translate=Lr(r.translate,0,n),e.scale=Lr(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function HZ(e,r,n,o){e.min=Lr(r.min,n.min,o),e.max=Lr(r.max,n.max,o)}function ZVe(e,r,n,o){HZ(e.x,r.x,n.x,o),HZ(e.y,r.y,n.y,o)}function QVe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JVe={duration:.45,ease:[.4,0,.1,1]},UZ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),VZ=UZ("applewebkit/")&&!UZ("chrome/")?Math.round:di;function qZ(e){e.min=VZ(e.min),e.max=VZ(e.max)}function eqe(e){qZ(e.x),qZ(e.y)}function YZ(e,r,n){return e==="position"||e==="preserve-aspect"&&!cVe(OZ(r),OZ(n),.2)}function tqe(e){return e!==e.root&&e.scroll?.wasRoot}const rqe=IZ({attachResizeListener:(e,r)=>dy(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),k9={current:void 0},WZ=IZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!k9.current){const e=new rqe({});e.mount(window),e.setOptions({layoutScroll:!0}),k9.current=e}return k9.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nqe={pan:{Feature:_Ve},drag:{Feature:kVe,ProjectionNode:WZ,MeasureLayout:bZ}};function XZ(e,r,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=o[a];i&&Mr.postRender(()=>i(r,hy(r)))}class oqe extends ku{mount(){const{current:r}=this.node;r&&(this.unmount=iHe(r,(n,o)=>(XZ(this.node,o,"Start"),a=>XZ(this.node,a,"End"))))}unmount(){}}class aqe extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Q1(dy(this.node.current,"focus",()=>this.onFocus()),dy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function GZ(e,r,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=o[a];i&&Mr.postRender(()=>i(r,hy(r)))}class iqe extends ku{mount(){const{current:r}=this.node;r&&(this.unmount=uHe(r,(n,o)=>(GZ(this.node,o,"Start"),(a,{success:i})=>GZ(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _9=new WeakMap,E9=new WeakMap,sqe=e=>{const r=_9.get(e.target);r&&r(e)},lqe=e=>{e.forEach(sqe)};function cqe({root:e,...r}){const n=e||document;E9.has(n)||E9.set(n,{});const o=E9.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(lqe,{root:e,...r})),o[a]}function uqe(e,r,n){const o=cqe(r);return _9.set(e,n),o.observe(e),()=>{_9.delete(e),o.unobserve(e)}}const dqe={some:0,all:1};class hqe extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:n,margin:o,amount:a="some",once:i}=r,s={root:n?n.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:dqe[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=u?d:h;p&&p(c)};return uqe(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:n}=this.node;["amount","margin","root"].some(fqe(r,n))&&this.startObserver()}unmount(){}}function fqe({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}const pqe={inView:{Feature:hqe},tap:{Feature:iqe},focus:{Feature:aqe},hover:{Feature:oqe}},mqe={layout:{ProjectionNode:WZ,MeasureLayout:bZ}},gqe={renderer:qUe,...nVe,...pqe},yqe={...gqe,...nqe,...mqe};function KZ(e){const r=um(()=>lh(e)),{isStatic:n}=E.useContext(uh);if(n){const[,o]=E.useState(e);E.useEffect(()=>r.on("change",o),[])}return r}function bqe(){!o9.current&&SK();const[e]=E.useState(fk.current);return e}function ZZ(){const e=bqe(),{reducedMotion:r}=E.useContext(uh);return r==="never"?!1:r==="always"?!0:e}class vqe{constructor(){this.componentControls=new Set}subscribe(r){return this.componentControls.add(r),()=>this.componentControls.delete(r)}start(r,n){this.componentControls.forEach(o=>{o.start(r.nativeEvent||r,n)})}cancel(){this.componentControls.forEach(r=>{r.cancel()})}stop(){this.componentControls.forEach(r=>{r.stop()})}}const xqe=()=>new vqe;function wqe(){return um(xqe)}const S9=E.createContext(null);S9.displayName="ElementDetailsActorContext";const kqe=()=>{const e=E.useContext(S9);if(e===null)throw new Error("ElementDetailsActorRef is not provided");return e},us=(e,r,n)=>{const o=a=>({[e]:"__ignore__",...r,...Pd(a)});return{recipeFn:(a,i=!0)=>{const s=TB({conditions:{shift:PB,finalize:$B,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{toHash:(c,u)=>u(c.join(":")),transform:(c,u)=>(KSe(e,n,a,c),u==="__ignore__"?{className:e}:(u=VS(u),{className:`${e}--${c}_${u}`}))}}),l=o(a);if(i){const c=KS(n,l);return Je(s(l),ye(c))}return s(l)},getVariantProps:o,__getCompoundVariantCss__:a=>KS(n,o(a))}},oc=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;const n=(...i)=>Je(e(...i),r(...i)),o=XS(e.variantKeys,r.variantKeys),a=o.reduce((i,s)=>(i[s]=XS(e.variantMap[s],r.variantMap[s]),i),{});return Object.assign(n,{__recipe__:!0,__name__:`${e.__name__} ${r.__name__}`,raw:i=>i,variantKeys:o,variantMap:a,splitVariantProps(i){return Yn(i,o)}})},C9=us("action-btn",{size:"md",radius:"md",variant:"filled"},[]),QZ={variant:["transparent","filled"],size:["sm","md"],radius:["sm","md"]},JZ=Object.keys(QZ),Ek=Object.assign(co(C9.recipeFn),{__recipe__:!0,__name__:"actionBtn",__getCompoundVariantCss__:C9.__getCompoundVariantCss__,raw:e=>e,variantKeys:JZ,variantMap:QZ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,JZ)},getVariantProps:C9.getVariantProps}),T9=us("likec4-compound-node",{},[]),eQ={isTransparent:["false","true"],inverseColor:["true","false"],borderStyle:["solid","dashed","dotted","none"]},tQ=Object.keys(eQ),_qe=Object.assign(co(T9.recipeFn),{__recipe__:!0,__name__:"compoundNode",__getCompoundVariantCss__:T9.__getCompoundVariantCss__,raw:e=>e,variantKeys:tQ,variantMap:eQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,tQ)},getVariantProps:T9.getVariantProps}),A9=us("likec4-edge-action-btn",{},[]),rQ={},nQ=Object.keys(rQ),Eqe=Object.assign(co(A9.recipeFn),{__recipe__:!0,__name__:"edgeActionBtn",__getCompoundVariantCss__:A9.__getCompoundVariantCss__,raw:e=>e,variantKeys:nQ,variantMap:rQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,nQ)},getVariantProps:A9.getVariantProps}),N9=us("likec4-element-node-data",{},[]),oQ={},aQ=Object.keys(oQ),Sqe=Object.assign(co(N9.recipeFn),{__recipe__:!0,__name__:"elementNodeData",__getCompoundVariantCss__:N9.__getCompoundVariantCss__,raw:e=>e,variantKeys:aQ,variantMap:oQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,aQ)},getVariantProps:N9.getVariantProps}),R9=us("likec4-element-shape",{},[]),iQ={shapetype:["html","svg"]},sQ=Object.keys(iQ),lQ=Object.assign(co(R9.recipeFn),{__recipe__:!0,__name__:"elementShapeRecipe",__getCompoundVariantCss__:R9.__getCompoundVariantCss__,raw:e=>e,variantKeys:sQ,variantMap:iQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,sQ)},getVariantProps:R9.getVariantProps}),$9=us("likec4-tag",{autoTextColor:!1},[]),cQ={autoTextColor:["false","true"]},uQ=Object.keys(cQ),Cqe=Object.assign(co($9.recipeFn),{__recipe__:!0,__name__:"likec4tag",__getCompoundVariantCss__:$9.__getCompoundVariantCss__,raw:e=>e,variantKeys:uQ,variantMap:cQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,uQ)},getVariantProps:$9.getVariantProps}),P9=us("likec4-markdown-block",{uselikec4palette:!1,value:"markdown"},[]),dQ={uselikec4palette:["true","false"],value:["markdown","plaintext"]},hQ=Object.keys(dQ),Tqe=Object.assign(co(P9.recipeFn),{__recipe__:!0,__name__:"markdownBlock",__getCompoundVariantCss__:P9.__getCompoundVariantCss__,raw:e=>e,variantKeys:hQ,variantMap:dQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,hQ)},getVariantProps:P9.getVariantProps}),M9=us("likec4-navigation-panel-icon",{variant:"default"},[]),fQ={variant:["default","filled"]},pQ=Object.keys(fQ),Aqe=Object.assign(co(M9.recipeFn),{__recipe__:!0,__name__:"navigationPanelActionIcon",__getCompoundVariantCss__:M9.__getCompoundVariantCss__,raw:e=>e,variantKeys:pQ,variantMap:fQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,pQ)},getVariantProps:M9.getVariantProps}),O9=us("likec4-overlay",{fullscreen:!1,withBackdrop:!0},[]),mQ={fullscreen:["false","true"],withBackdrop:["false","true"]},gQ=Object.keys(mQ),Nqe=Object.assign(co(O9.recipeFn),{__recipe__:!0,__name__:"overlay",__getCompoundVariantCss__:O9.__getCompoundVariantCss__,raw:e=>e,variantKeys:gQ,variantMap:mQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,gQ)},getVariantProps:O9.getVariantProps}),yQ={isStepEdge:!1,cursor:"default"},Rqe=[],$qe=[["root","likec4-edge-label__root"],["stepNumber","likec4-edge-label__stepNumber"],["labelContents","likec4-edge-label__labelContents"],["labelText","likec4-edge-label__labelText"],["labelTechnology","likec4-edge-label__labelTechnology"]],Pqe=$qe.map(([e,r])=>[e,us(r,yQ,WS(Rqe,e))]),Mqe=co((e={})=>Object.fromEntries(Pqe.map(([r,n])=>[r,n.recipeFn(e)]))),bQ=["cursor","isStepEdge"],Oqe=e=>({...yQ,...Pd(e)}),Dqe=Object.assign(Mqe,{__recipe__:!1,__name__:"edgeLabel",raw:e=>e,classNameMap:{},variantKeys:bQ,variantMap:{cursor:["pointer","default"],isStepEdge:["false","true"]},splitVariantProps(e){return Yn(e,bQ)},getVariantProps:Oqe}),vQ={truncateLabel:!1},Lqe=[],Iqe=[["root","likec4-navlink__root"],["body","likec4-navlink__body"],["section","likec4-navlink__section"],["label","likec4-navlink__label"],["description","likec4-navlink__description"]],zqe=Iqe.map(([e,r])=>[e,us(r,vQ,WS(Lqe,e))]),jqe=co((e={})=>Object.fromEntries(zqe.map(([r,n])=>[r,n.recipeFn(e)]))),xQ=["truncateLabel"],Bqe=e=>({...vQ,...Pd(e)}),Fqe=Object.assign(jqe,{__recipe__:!1,__name__:"navigationLink",raw:e=>e,classNameMap:{},variantKeys:xQ,variantMap:{truncateLabel:["true","false"]},splitVariantProps(e){return Yn(e,xQ)},getVariantProps:Bqe});function Hqe(){return up()}function D9(e,r){return At(it(e),Xn)}function L9(){return pr()}function wQ(e){return X7e(e)}const Uqe=e=>Math.round(e.transform[2]*100)/100;function Vqe(){return At(Uqe)}const qqe=e=>e.transform[2]<.2;function Yqe(){return At(qqe)}const{abs:yy,cos:ac,sin:fm,acos:Wqe,atan2:by,sqrt:_u,pow:mi}=Math;function vy(e){return e<0?-mi(-e,.3333333333333333):mi(e,.3333333333333333)}const kQ=Math.PI,Sk=2*kQ,Eu=kQ/2,Xqe=1e-6,I9=Number.MAX_SAFE_INTEGER||9007199254740991,z9=Number.MIN_SAFE_INTEGER||-9007199254740991,Gqe={x:0,y:0,z:0},Ye={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,r){const n=r(e);let o=n.x*n.x+n.y*n.y;return typeof n.z<"u"&&(o+=n.z*n.z),_u(o)},compute:function(e,r,n){if(e===0)return r[0].t=0,r[0];const o=r.length-1;if(e===1)return r[o].t=1,r[o];const a=1-e;let i=r;if(o===0)return r[0].t=e,r[0];if(o===1){const l={x:a*i[0].x+e*i[1].x,y:a*i[0].y+e*i[1].y,t:e};return n&&(l.z=a*i[0].z+e*i[1].z),l}if(o<4){let l=a*a,c=e*e,u,d,h,p=0;o===2?(i=[i[0],i[1],i[2],Gqe],u=l,d=a*e*2,h=c):o===3&&(u=l*a,d=l*e*3,h=a*c*3,p=e*c);const g={x:u*i[0].x+d*i[1].x+h*i[2].x+p*i[3].x,y:u*i[0].y+d*i[1].y+h*i[2].y+p*i[3].y,t:e};return n&&(g.z=u*i[0].z+d*i[1].z+h*i[2].z+p*i[3].z),g}const s=JSON.parse(JSON.stringify(r));for(;s.length>1;){for(let l=0;l<s.length-1;l++)s[l]={x:s[l].x+(s[l+1].x-s[l].x)*e,y:s[l].y+(s[l+1].y-s[l].y)*e},typeof s[l].z<"u"&&(s[l].z=s[l].z+(s[l+1].z-s[l].z)*e);s.splice(s.length-1,1)}return s[0].t=e,s[0]},computeWithRatios:function(e,r,n,o){const a=1-e,i=n,s=r;let l=i[0],c=i[1],u=i[2],d=i[3],h;if(l*=a,c*=e,s.length===2)return h=l+c,{x:(l*s[0].x+c*s[1].x)/h,y:(l*s[0].y+c*s[1].y)/h,z:o?(l*s[0].z+c*s[1].z)/h:!1,t:e};if(l*=a,c*=2*a,u*=e*e,s.length===3)return h=l+c+u,{x:(l*s[0].x+c*s[1].x+u*s[2].x)/h,y:(l*s[0].y+c*s[1].y+u*s[2].y)/h,z:o?(l*s[0].z+c*s[1].z+u*s[2].z)/h:!1,t:e};if(l*=a,c*=1.5*a,u*=3*a,d*=e*e*e,s.length===4)return h=l+c+u+d,{x:(l*s[0].x+c*s[1].x+u*s[2].x+d*s[3].x)/h,y:(l*s[0].y+c*s[1].y+u*s[2].y+d*s[3].y)/h,z:o?(l*s[0].z+c*s[1].z+u*s[2].z+d*s[3].z)/h:!1,t:e}},derive:function(e,r){const n=[];for(let o=e,a=o.length,i=a-1;a>1;a--,i--){const s=[];for(let l=0,c;l<i;l++)c={x:i*(o[l+1].x-o[l].x),y:i*(o[l+1].y-o[l].y)},r&&(c.z=i*(o[l+1].z-o[l].z)),s.push(c);n.push(s),o=s}return n},between:function(e,r,n){return r<=e&&e<=n||Ye.approximately(e,r)||Ye.approximately(e,n)},approximately:function(e,r,n){return yy(e-r)<=(n||Xqe)},length:function(e){const r=Ye.Tvalues.length;let n=0;for(let o=0,a;o<r;o++)a=.5*Ye.Tvalues[o]+.5,n+=Ye.Cvalues[o]*Ye.arcfn(a,e);return .5*n},map:function(e,r,n,o,a){const i=n-r,s=a-o,l=e-r,c=l/i;return o+s*c},lerp:function(e,r,n){const o={x:r.x+e*(n.x-r.x),y:r.y+e*(n.y-r.y)};return r.z!==void 0&&n.z!==void 0&&(o.z=r.z+e*(n.z-r.z)),o},pointToString:function(e){let r=e.x+"/"+e.y;return typeof e.z<"u"&&(r+="/"+e.z),r},pointsToString:function(e){return"["+e.map(Ye.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,r,n){const o=r.x-e.x,a=r.y-e.y,i=n.x-e.x,s=n.y-e.y,l=o*s-a*i,c=o*i+a*s;return by(l,c)},round:function(e,r){const n=""+e,o=n.indexOf(".");return parseFloat(n.substring(0,o+1+r))},dist:function(e,r){const n=e.x-r.x,o=e.y-r.y;return _u(n*n+o*o)},closest:function(e,r){let n=mi(2,63),o,a;return e.forEach(function(i,s){a=Ye.dist(r,i),a<n&&(n=a,o=s)}),{mdist:n,mpos:o}},abcratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=mi(e,r)+mi(1-e,r),o=n-1;return yy(o/n)},projectionratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=mi(1-e,r),o=mi(e,r)+n;return n/o},lli8:function(e,r,n,o,a,i,s,l){const c=(e*o-r*n)*(a-s)-(e-n)*(a*l-i*s),u=(e*o-r*n)*(i-l)-(r-o)*(a*l-i*s),d=(e-n)*(i-l)-(r-o)*(a-s);return d==0?!1:{x:c/d,y:u/d}},lli4:function(e,r,n,o){const a=e.x,i=e.y,s=r.x,l=r.y,c=n.x,u=n.y,d=o.x,h=o.y;return Ye.lli8(a,i,s,l,c,u,d,h)},lli:function(e,r){return Ye.lli4(e,e.c,r,r.c)},makeline:function(e,r){return new Ir(e.x,e.y,(e.x+r.x)/2,(e.y+r.y)/2,r.x,r.y)},findbbox:function(e){let r=I9,n=I9,o=z9,a=z9;return e.forEach(function(i){const s=i.bbox();r>s.x.min&&(r=s.x.min),n>s.y.min&&(n=s.y.min),o<s.x.max&&(o=s.x.max),a<s.y.max&&(a=s.y.max)}),{x:{min:r,mid:(r+o)/2,max:o,size:o-r},y:{min:n,mid:(n+a)/2,max:a,size:a-n}}},shapeintersections:function(e,r,n,o,a){if(!Ye.bboxoverlap(r,o))return[];const i=[],s=[e.startcap,e.forward,e.back,e.endcap],l=[n.startcap,n.forward,n.back,n.endcap];return s.forEach(function(c){c.virtual||l.forEach(function(u){if(u.virtual)return;const d=c.intersects(u,a);d.length>0&&(d.c1=c,d.c2=u,d.s1=e,d.s2=n,i.push(d))})}),i},makeshape:function(e,r,n){const o=r.points.length,a=e.points.length,i=Ye.makeline(r.points[o-1],e.points[0]),s=Ye.makeline(e.points[a-1],r.points[0]),l={startcap:i,forward:e,back:r,endcap:s,bbox:Ye.findbbox([i,e,r,s])};return l.intersections=function(c){return Ye.shapeintersections(l,l.bbox,c,c.bbox,n)},l},getminmax:function(e,r,n){if(!n)return{min:0,max:0};let o=I9,a=z9,i,s;n.indexOf(0)===-1&&(n=[0].concat(n)),n.indexOf(1)===-1&&n.push(1);for(let l=0,c=n.length;l<c;l++)i=n[l],s=e.get(i),s[r]<o&&(o=s[r]),s[r]>a&&(a=s[r]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,r){const n=r.p1.x,o=r.p1.y,a=-by(r.p2.y-o,r.p2.x-n),i=function(s){return{x:(s.x-n)*ac(a)-(s.y-o)*fm(a),y:(s.x-n)*fm(a)+(s.y-o)*ac(a)}};return e.map(i)},roots:function(e,r){r=r||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,o=Ye.align(e,r),a=function($){return 0<=$&&$<=1};if(n===2){const $=o[0].y,R=o[1].y,M=o[2].y,O=$-2*R+M;if(O!==0){const B=-_u(R*R-$*M),I=-$+R,Y=-(B+I)/O,D=-(-B+I)/O;return[Y,D].filter(a)}else if(R!==M&&O===0)return[(2*R-M)/(2*R-2*M)].filter(a);return[]}const i=o[0].y,s=o[1].y,l=o[2].y,c=o[3].y;let u=-i+3*s-3*l+c,d=3*i-6*s+3*l,h=-3*i+3*s,p=i;if(Ye.approximately(u,0)){if(Ye.approximately(d,0))return Ye.approximately(h,0)?[]:[-p/h].filter(a);const $=_u(h*h-4*d*p),R=2*d;return[($-h)/R,(-h-$)/R].filter(a)}d/=u,h/=u,p/=u;const g=(3*h-d*d)/3,y=g/3,x=(2*d*d*d-9*d*h+27*p)/27,w=x/2,k=w*w+y*y*y;let C,_,T,A,N;if(k<0){const $=-g/3,R=$*$*$,M=_u(R),O=-x/(2*M),B=O<-1?-1:O>1?1:O,I=Wqe(B),Y=vy(M),D=2*Y;return T=D*ac(I/3)-d/3,A=D*ac((I+Sk)/3)-d/3,N=D*ac((I+2*Sk)/3)-d/3,[T,A,N].filter(a)}else{if(k===0)return C=w<0?vy(-w):-vy(w),T=2*C-d/3,A=-C-d/3,[T,A].filter(a);{const $=_u(k);return C=vy(-w+$),_=vy(w+$),[C-_-d/3].filter(a)}}},droots:function(e){if(e.length===3){const r=e[0],n=e[1],o=e[2],a=r-2*n+o;if(a!==0){const i=-_u(n*n-r*o),s=-r+n,l=-(i+s)/a,c=-(-i+s)/a;return[l,c]}else if(n!==o&&a===0)return[(2*n-o)/(2*(n-o))];return[]}if(e.length===2){const r=e[0],n=e[1];return r!==n?[r/(r-n)]:[]}return[]},curvature:function(e,r,n,o,a){let i,s,l,c,u=0,d=0;const h=Ye.compute(e,r),p=Ye.compute(e,n),g=h.x*h.x+h.y*h.y;if(o?(i=_u(mi(h.y*p.z-p.y*h.z,2)+mi(h.z*p.x-p.z*h.x,2)+mi(h.x*p.y-p.x*h.y,2)),s=mi(g+h.z*h.z,3/2)):(i=h.x*p.y-h.y*p.x,s=mi(g,3/2)),i===0||s===0)return{k:0,r:0};if(u=i/s,d=s/i,!a){const y=Ye.curvature(e-.001,r,n,o,!0).k,x=Ye.curvature(e+.001,r,n,o,!0).k;c=(x-u+(u-y))/2,l=(yy(x-u)+yy(u-y))/2}return{k:u,r:d,dk:c,adk:l}},inflections:function(e){if(e.length<4)return[];const r=Ye.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=r[2].x*r[1].y,o=r[3].x*r[1].y,a=r[1].x*r[2].y,i=r[3].x*r[2].y,s=18*(-3*n+2*o+3*a-i),l=18*(3*n-o-3*a),c=18*(a-n);if(Ye.approximately(s,0)){if(!Ye.approximately(l,0)){let p=-c/l;if(0<=p&&p<=1)return[p]}return[]}const u=2*s;if(Ye.approximately(u,0))return[];const d=l*l-4*s*c;if(d<0)return[];const h=Math.sqrt(d);return[(h-l)/u,-(l+h)/u].filter(function(p){return 0<=p&&p<=1})},bboxoverlap:function(e,r){const n=["x","y"],o=n.length;for(let a=0,i,s,l,c;a<o;a++)if(i=n[a],s=e[i].mid,l=r[i].mid,c=(e[i].size+r[i].size)/2,yy(s-l)>=c)return!1;return!0},expandbox:function(e,r){r.x.min<e.x.min&&(e.x.min=r.x.min),r.y.min<e.y.min&&(e.y.min=r.y.min),r.z&&r.z.min<e.z.min&&(e.z.min=r.z.min),r.x.max>e.x.max&&(e.x.max=r.x.max),r.y.max>e.y.max&&(e.y.max=r.y.max),r.z&&r.z.max>e.z.max&&(e.z.max=r.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,r,n){const o=e.bbox(),a=r.bbox(),i=1e5,s=n||.5;if(o.x.size+o.y.size<s&&a.x.size+a.y.size<s)return[(i*(e._t1+e._t2)/2|0)/i+"/"+(i*(r._t1+r._t2)/2|0)/i];let l=e.split(.5),c=r.split(.5),u=[{left:l.left,right:c.left},{left:l.left,right:c.right},{left:l.right,right:c.right},{left:l.right,right:c.left}];u=u.filter(function(h){return Ye.bboxoverlap(h.left.bbox(),h.right.bbox())});let d=[];return u.length===0||(u.forEach(function(h){d=d.concat(Ye.pairiteration(h.left,h.right,s))}),d=d.filter(function(h,p){return d.indexOf(h)===p})),d},getccenter:function(e,r,n){const o=r.x-e.x,a=r.y-e.y,i=n.x-r.x,s=n.y-r.y,l=o*ac(Eu)-a*fm(Eu),c=o*fm(Eu)+a*ac(Eu),u=i*ac(Eu)-s*fm(Eu),d=i*fm(Eu)+s*ac(Eu),h=(e.x+r.x)/2,p=(e.y+r.y)/2,g=(r.x+n.x)/2,y=(r.y+n.y)/2,x=h+l,w=p+c,k=g+u,C=y+d,_=Ye.lli8(h,p,x,w,g,y,k,C),T=Ye.dist(_,e);let A=by(e.y-_.y,e.x-_.x),N=by(r.y-_.y,r.x-_.x),$=by(n.y-_.y,n.x-_.x),R;return A<$?((A>N||N>$)&&(A+=Sk),A>$&&(R=$,$=A,A=R)):$<N&&N<A?(R=$,$=A,A=R):$+=Sk,_.s=A,_.e=$,_.r=T,_},numberSort:function(e,r){return e-r}};class xy{constructor(r){this.curves=[],this._3d=!1,r&&(this.curves=r,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(r){return Ye.pointsToString(r.points)}).join(", ")+"]"}addCurve(r){this.curves.push(r),this._3d=this._3d||r._3d}length(){return this.curves.map(function(r){return r.length()}).reduce(function(r,n){return r+n})}curve(r){return this.curves[r]}bbox(){const r=this.curves;for(var n=r[0].bbox(),o=1;o<r.length;o++)Ye.expandbox(n,r[o].bbox());return n}offset(r){const n=[];return this.curves.forEach(function(o){n.push(...o.offset(r))}),new xy(n)}}const{abs:wy,min:_Q,max:EQ,cos:Kqe,sin:Zqe,acos:Qqe,sqrt:ky}=Math,Jqe=Math.PI;class Ir{constructor(r){let n=r&&r.forEach?r:Array.from(arguments).slice(),o=!1;if(typeof n[0]=="object"){o=n.length;const g=[];n.forEach(function(y){["x","y","z"].forEach(function(x){typeof y[x]<"u"&&g.push(y[x])})}),n=g}let a=!1;const i=n.length;if(o){if(o>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(i!==6&&i!==8&&i!==9&&i!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!a&&(i===9||i===12)||r&&r[0]&&typeof r[0].z<"u",l=this.points=[];for(let g=0,y=s?3:2;g<i;g+=y){var c={x:n[g],y:n[g+1]};s&&(c.z=n[g+2]),l.push(c)}const u=this.order=l.length-1,d=this.dims=["x","y"];s&&d.push("z"),this.dimlen=d.length;const h=Ye.align(l,{p1:l[0],p2:l[u]}),p=Ye.dist(l[0],l[u]);this._linear=h.reduce((g,y)=>g+wy(y.y),0)<p/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(r,n,o,a){if(typeof a>"u"&&(a=.5),a===0)return new Ir(n,n,o);if(a===1)return new Ir(r,n,n);const i=Ir.getABC(2,r,n,o,a);return new Ir(r,i.A,o)}static cubicFromPoints(r,n,o,a,i){typeof a>"u"&&(a=.5);const s=Ir.getABC(3,r,n,o,a);typeof i>"u"&&(i=Ye.dist(n,s.C));const l=i*(1-a)/a,c=Ye.dist(r,o),u=(o.x-r.x)/c,d=(o.y-r.y)/c,h=i*u,p=i*d,g=l*u,y=l*d,x={x:n.x-h,y:n.y-p},w={x:n.x+g,y:n.y+y},k=s.A,C={x:k.x+(x.x-k.x)/(1-a),y:k.y+(x.y-k.y)/(1-a)},_={x:k.x+(w.x-k.x)/a,y:k.y+(w.y-k.y)/a},T={x:r.x+(C.x-r.x)/a,y:r.y+(C.y-r.y)/a},A={x:o.x+(_.x-o.x)/(1-a),y:o.y+(_.y-o.y)/(1-a)};return new Ir(r,T,A,o)}static getUtils(){return Ye}getUtils(){return Ir.getUtils()}static get PolyBezier(){return xy}valueOf(){return this.toString()}toString(){return Ye.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const r=this.points,n=r[0].x,o=r[0].y,a=["M",n,o,this.order===2?"Q":"C"];for(let i=1,s=r.length;i<s;i++)a.push(r[i].x),a.push(r[i].y);return a.join(" ")}setRatios(r){if(r.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=r,this._lut=[]}verify(){const r=this.coordDigest();r!==this._print&&(this._print=r,this.update())}coordDigest(){return this.points.map(function(r,n){return""+n+r.x+r.y+(r.z?r.z:0)}).join("")}update(){this._lut=[],this.dpoints=Ye.derive(this.points,this._3d),this.computedirection()}computedirection(){const r=this.points,n=Ye.angle(r[0],r[this.order],r[1]);this.clockwise=n>0}length(){return Ye.length(this.derivative.bind(this))}static getABC(r=2,n,o,a,i=.5){const s=Ye.projectionratio(i,r),l=1-s,c={x:s*n.x+l*a.x,y:s*n.y+l*a.y},u=Ye.abcratio(i,r);return{A:{x:o.x+(o.x-c.x)/u,y:o.y+(o.y-c.y)/u},B:o,C:c,S:n,E:a}}getABC(r,n){n=n||this.get(r);let o=this.points[0],a=this.points[this.order];return Ir.getABC(this.order,o,n,a,r)}getLUT(r){if(this.verify(),r=r||100,this._lut.length===r+1)return this._lut;this._lut=[],r++,this._lut=[];for(let n=0,o,a;n<r;n++)a=n/(r-1),o=this.compute(a),o.t=a,this._lut.push(o);return this._lut}on(r,n){n=n||5;const o=this.getLUT(),a=[];for(let i=0,s,l=0;i<o.length;i++)s=o[i],Ye.dist(s,r)<n&&(a.push(s),l+=i/o.length);return a.length?t/=a.length:!1}project(r){const n=this.getLUT(),o=n.length-1,a=Ye.closest(n,r),i=a.mpos,s=(i-1)/o,l=(i+1)/o,c=.1/o;let u=a.mdist,d=s,h=d,p;u+=1;for(let g;d<l+c;d+=c)p=this.compute(d),g=Ye.dist(r,p),g<u&&(u=g,h=d);return h=h<0?0:h>1?1:h,p=this.compute(h),p.t=h,p.d=u,p}get(r){return this.compute(r)}point(r){return this.points[r]}compute(r){return this.ratios?Ye.computeWithRatios(r,this.points,this.ratios,this._3d):Ye.compute(r,this.points,this._3d,this.ratios)}raise(){const r=this.points,n=[r[0]],o=r.length;for(let a=1,i,s;a<o;a++)i=r[a],s=r[a-1],n[a]={x:(o-a)/o*i.x+a/o*s.x,y:(o-a)/o*i.y+a/o*s.y};return n[o]=r[o-1],new Ir(n)}derivative(r){return Ye.compute(r,this.dpoints[0],this._3d)}dderivative(r){return Ye.compute(r,this.dpoints[1],this._3d)}align(){let r=this.points;return new Ir(Ye.align(r,{p1:r[0],p2:r[r.length-1]}))}curvature(r){return Ye.curvature(r,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return Ye.inflections(this.points)}normal(r){return this._3d?this.__normal3(r):this.__normal2(r)}__normal2(r){const n=this.derivative(r),o=ky(n.x*n.x+n.y*n.y);return{t:r,x:-n.y/o,y:n.x/o}}__normal3(r){const n=this.derivative(r),o=this.derivative(r+.01),a=ky(n.x*n.x+n.y*n.y+n.z*n.z),i=ky(o.x*o.x+o.y*o.y+o.z*o.z);n.x/=a,n.y/=a,n.z/=a,o.x/=i,o.y/=i,o.z/=i;const s={x:o.y*n.z-o.z*n.y,y:o.z*n.x-o.x*n.z,z:o.x*n.y-o.y*n.x},l=ky(s.x*s.x+s.y*s.y+s.z*s.z);s.x/=l,s.y/=l,s.z/=l;const c=[s.x*s.x,s.x*s.y-s.z,s.x*s.z+s.y,s.x*s.y+s.z,s.y*s.y,s.y*s.z-s.x,s.x*s.z-s.y,s.y*s.z+s.x,s.z*s.z];return{t:r,x:c[0]*n.x+c[1]*n.y+c[2]*n.z,y:c[3]*n.x+c[4]*n.y+c[5]*n.z,z:c[6]*n.x+c[7]*n.y+c[8]*n.z}}hull(r){let n=this.points,o=[],a=[],i=0;for(a[i++]=n[0],a[i++]=n[1],a[i++]=n[2],this.order===3&&(a[i++]=n[3]);n.length>1;){o=[];for(let s=0,l,c=n.length-1;s<c;s++)l=Ye.lerp(r,n[s],n[s+1]),a[i++]=l,o.push(l);n=o}return a}split(r,n){if(r===0&&n)return this.split(n).left;if(n===1)return this.split(r).right;const o=this.hull(r),a={left:this.order===2?new Ir([o[0],o[3],o[5]]):new Ir([o[0],o[4],o[7],o[9]]),right:this.order===2?new Ir([o[5],o[4],o[2]]):new Ir([o[9],o[8],o[6],o[3]]),span:o};return a.left._t1=Ye.map(0,0,1,this._t1,this._t2),a.left._t2=Ye.map(r,0,1,this._t1,this._t2),a.right._t1=Ye.map(r,0,1,this._t1,this._t2),a.right._t2=Ye.map(1,0,1,this._t1,this._t2),n?(n=Ye.map(n,r,1,0,1),a.right.split(n).left):a}extrema(){const r={};let n=[];return this.dims.forEach((function(o){let a=function(s){return s[o]},i=this.dpoints[0].map(a);r[o]=Ye.droots(i),this.order===3&&(i=this.dpoints[1].map(a),r[o]=r[o].concat(Ye.droots(i))),r[o]=r[o].filter(function(s){return s>=0&&s<=1}),n=n.concat(r[o].sort(Ye.numberSort))}).bind(this)),r.values=n.sort(Ye.numberSort).filter(function(o,a){return n.indexOf(o)===a}),r}bbox(){const r=this.extrema(),n={};return this.dims.forEach((function(o){n[o]=Ye.getminmax(this,o,r[o])}).bind(this)),n}overlaps(r){const n=this.bbox(),o=r.bbox();return Ye.bboxoverlap(n,o)}offset(r,n){if(typeof n<"u"){const o=this.get(r),a=this.normal(r),i={c:o,n:a,x:o.x+a.x*n,y:o.y+a.y*n};return this._3d&&(i.z=o.z+a.z*n),i}if(this._linear){const o=this.normal(0),a=this.points.map(function(i){const s={x:i.x+r*o.x,y:i.y+r*o.y};return i.z&&o.z&&(s.z=i.z+r*o.z),s});return[new Ir(a)]}return this.reduce().map(function(o){return o._linear?o.offset(r)[0]:o.scale(r)})}simple(){if(this.order===3){const a=Ye.angle(this.points[0],this.points[3],this.points[1]),i=Ye.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&i<0||a<0&&i>0)return!1}const r=this.normal(0),n=this.normal(1);let o=r.x*n.x+r.y*n.y;return this._3d&&(o+=r.z*n.z),wy(Qqe(o))<Jqe/3}reduce(){let r,n=0,o=0,a=.01,i,s=[],l=[],c=this.extrema().values;for(c.indexOf(0)===-1&&(c=[0].concat(c)),c.indexOf(1)===-1&&c.push(1),n=c[0],r=1;r<c.length;r++)o=c[r],i=this.split(n,o),i._t1=n,i._t2=o,s.push(i),n=o;return s.forEach(function(u){for(n=0,o=0;o<=1;)for(o=n+a;o<=1+a;o+=a)if(i=u.split(n,o),!i.simple()){if(o-=a,wy(n-o)<a)return[];i=u.split(n,o),i._t1=Ye.map(n,0,1,u._t1,u._t2),i._t2=Ye.map(o,0,1,u._t1,u._t2),l.push(i),n=o;break}n<1&&(i=u.split(n,1),i._t1=Ye.map(n,0,1,u._t1,u._t2),i._t2=u._t2,l.push(i))}),l}translate(r,n,o){o=typeof o=="number"?o:n;const a=this.order;let i=this.points.map((s,l)=>(1-l/a)*n+l/a*o);return new Ir(this.points.map((s,l)=>({x:s.x+r.x*i[l],y:s.y+r.y*i[l]})))}scale(r){const n=this.order;let o=!1;if(typeof r=="function"&&(o=r),o&&n===2)return this.raise().scale(o);const a=this.clockwise,i=this.points;if(this._linear)return this.translate(this.normal(0),o?o(0):r,o?o(1):r);const s=o?o(0):r,l=o?o(1):r,c=[this.offset(0,10),this.offset(1,10)],u=[],d=Ye.lli4(c[0],c[0].c,c[1],c[1].c);if(!d)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(h){const p=u[h*n]=Ye.copy(i[h*n]);p.x+=(h?l:s)*c[h].n.x,p.y+=(h?l:s)*c[h].n.y}),o?([0,1].forEach(function(h){if(!(n===2&&h)){var p=i[h+1],g={x:p.x-d.x,y:p.y-d.y},y=o?o((h+1)/n):r;o&&!a&&(y=-y);var x=ky(g.x*g.x+g.y*g.y);g.x/=x,g.y/=x,u[h+1]={x:p.x+y*g.x,y:p.y+y*g.y}}}),new Ir(u)):([0,1].forEach(h=>{if(n===2&&h)return;const p=u[h*n],g=this.derivative(h),y={x:p.x+g.x,y:p.y+g.y};u[h+1]=Ye.lli4(p,y,d,i[h+1])}),new Ir(u))}outline(r,n,o,a){if(n=n===void 0?r:n,this._linear){const A=this.normal(0),N=this.points[0],$=this.points[this.points.length-1];let R,M,O;o===void 0&&(o=r,a=n),R={x:N.x+A.x*r,y:N.y+A.y*r},O={x:$.x+A.x*o,y:$.y+A.y*o},M={x:(R.x+O.x)/2,y:(R.y+O.y)/2};const B=[R,M,O];R={x:N.x-A.x*n,y:N.y-A.y*n},O={x:$.x-A.x*a,y:$.y-A.y*a},M={x:(R.x+O.x)/2,y:(R.y+O.y)/2};const I=[O,M,R],Y=Ye.makeline(I[2],B[0]),D=Ye.makeline(B[2],I[0]),V=[Y,new Ir(B),D,new Ir(I)];return new xy(V)}const i=this.reduce(),s=i.length,l=[];let c=[],u,d=0,h=this.length();const p=typeof o<"u"&&typeof a<"u";function g(A,N,$,R,M){return function(O){const B=R/$,I=(R+M)/$,Y=N-A;return Ye.map(O,0,1,A+B*Y,A+I*Y)}}i.forEach(function(A){const N=A.length();p?(l.push(A.scale(g(r,o,h,d,N))),c.push(A.scale(g(-n,-a,h,d,N)))):(l.push(A.scale(r)),c.push(A.scale(-n))),d+=N}),c=c.map(function(A){return u=A.points,u[3]?A.points=[u[3],u[2],u[1],u[0]]:A.points=[u[2],u[1],u[0]],A}).reverse();const y=l[0].points[0],x=l[s-1].points[l[s-1].points.length-1],w=c[s-1].points[c[s-1].points.length-1],k=c[0].points[0],C=Ye.makeline(w,y),_=Ye.makeline(x,k),T=[C].concat(l).concat([_]).concat(c);return new xy(T)}outlineshapes(r,n,o){n=n||r;const a=this.outline(r,n).curves,i=[];for(let s=1,l=a.length;s<l/2;s++){const c=Ye.makeshape(a[s],a[l-s],o);c.startcap.virtual=s>1,c.endcap.virtual=s<l/2-1,i.push(c)}return i}intersects(r,n){return r?r.p1&&r.p2?this.lineIntersects(r):(r instanceof Ir&&(r=r.reduce()),this.curveintersects(this.reduce(),r,n)):this.selfintersects(n)}lineIntersects(r){const n=_Q(r.p1.x,r.p2.x),o=_Q(r.p1.y,r.p2.y),a=EQ(r.p1.x,r.p2.x),i=EQ(r.p1.y,r.p2.y);return Ye.roots(this.points,r).filter(s=>{var l=this.get(s);return Ye.between(l.x,n,a)&&Ye.between(l.y,o,i)})}selfintersects(r){const n=this.reduce(),o=n.length-2,a=[];for(let i=0,s,l,c;i<o;i++)l=n.slice(i,i+1),c=n.slice(i+2),s=this.curveintersects(l,c,r),a.push(...s);return a}curveintersects(r,n,o){const a=[];r.forEach(function(s){n.forEach(function(l){s.overlaps(l)&&a.push({left:s,right:l})})});let i=[];return a.forEach(function(s){const l=Ye.pairiteration(s.left,s.right,o);l.length>0&&(i=i.concat(l))}),i}arcs(r){return r=r||.5,this._iterate(r,[])}_error(r,n,o,a){const i=(a-o)/4,s=this.get(o+i),l=this.get(a-i),c=Ye.dist(r,n),u=Ye.dist(r,s),d=Ye.dist(r,l);return wy(u-c)+wy(d-c)}_iterate(r,n){let o=0,a=1,i;do{i=0,a=1;let s=this.get(o),l,c,u,d,h=!1,p=!1,g,y=a,x=1;do if(p=h,d=u,y=(o+a)/2,l=this.get(y),c=this.get(a),u=Ye.getccenter(s,l,c),u.interval={start:o,end:a},h=this._error(u,s,o,a)<=r,g=p&&!h,g||(x=a),h){if(a>=1){if(u.interval.end=x=1,d=u,a>1){let w={x:u.x+u.r*Kqe(u.e),y:u.y+u.r*Zqe(u.e)};u.e+=Ye.angle({x:u.x,y:u.y},w,this.get(1))}break}a=a+(a-o)/2}else a=y;while(!g&&i++<100);if(i>=100)break;d=d||u,n.push(d),o=x}while(a<1);return n}}function SQ(e){let[r,...n]=e.points;nt(r,"start should be defined");const o=[];for(;To(n,3);){const[a,i,s,...l]=n,c=new Ir(r[0],r[1],a[0],a[1],i[0],i[1],s[0],s[1]),u=c.inflections();u.length===0&&u.push(.5),u.forEach(d=>{const{x:h,y:p}=c.get(d);o.push({x:Math.round(h),y:Math.round(p)})}),n=l,r=s}return nt(n.length===0,"all points should be consumed"),o}const CQ=(e,r)=>Math.abs(e-r)<3.1;function _y(e,r){const[n,o]=F6(e)?e:[e.x,e.y],[a,i]=F6(r)?r:[r.x,r.y];return CQ(n,a)&&CQ(o,i)}function cn(e){return e.stopPropagation()}function eYe(e){const{width:r,height:n}=Wn(e);return{x:e.internals.positionAbsolute.x+r/2,y:e.internals.positionAbsolute.y+n/2}}function tYe(e){let[r,...n]=e;nt(r,"start should be defined");let o=`M ${r[0]},${r[1]}`;for(;To(n,3);){const[a,i,s,...l]=n;o=o+` C ${a[0]},${a[1]} ${i[0]},${i[1]} ${s[0]},${s[1]}`,n=l}return nt(n.length===0,"all points should be consumed"),o}const Ck=E.forwardRef(({tag:e,cursor:r,className:n,style:o,...a},i)=>{const s=Dze(e);return b.jsxs(Vr,{ref:i,"data-likec4-tag":e,className:Je(Cqe({autoTextColor:nB(s)}),n),...a,style:{cursor:r,...o},children:[b.jsx("span",{children:"#"}),b.jsx("span",{children:e})]})}),rYe=(e,r)=>e.data.width===r.data.width&&ut(e.data.tags,r.data.tags)&&(e.data.hovered??!1)===(r.data.hovered??!1),Ey=E.memo(({id:e,data:{tags:r,width:n,hovered:o=!1}})=>{const{hovered:a,ref:i}=aC(),{hovered:s,ref:l}=aC(),[c,u]=aPe(!1,o?120:300);E.useEffect(()=>{u(w=>w?o||a||s:o&&(a||s))},[a,s,o]);const d=Vqe(),h=d>1.2,p=Wt(),g=w=>{p.send({type:"tag.highlight",tag:w})},y=E.useCallback(()=>{p.send({type:"tag.unhighlight"})},[]);if(!r||r.length===0)return null;const x=Math.max(Math.round(n*d)-10,200);return b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:i,className:Je("likec4-element-tags",Uo({pointerEvents:"all",gap:"1",alignItems:"flex-end",justifyItems:"stretch",position:"absolute",width:"100%",bottom:"0",left:"0",padding:"1",_shapeCylinder:{bottom:"[5px]"},_shapeStorage:{bottom:"[5px]"},_shapeQueue:{bottom:"0",paddingLeft:"[14px]"}})),onClick:cn,children:r.map(w=>b.jsx(Vr,{"data-likec4-tag":w,className:ye({layerStyle:"likec4.tag",flex:"1",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:50,height:5,_whenHovered:{height:12,borderRadius:4,transitionDelay:".08s"},transition:"fast"})},e+"#"+w))}),b.jsx(jU,{isVisible:c,align:"start",position:tt.Bottom,children:b.jsx(xn,{ref:l,css:{gap:"0.5",alignItems:"baseline",flexWrap:"wrap",pb:"sm",translate:"auto",x:"[-8px]",maxWidth:x},children:r.map(w=>b.jsx(Ck,{tag:w,cursor:"pointer",className:ye({userSelect:"none",...h&&{fontSize:"lg",borderRadius:"[4px]",px:"1.5"}}),onClick:k=>{k.stopPropagation(),p.openSearch(`#${w}`)},onMouseEnter:()=>g(w),onMouseLeave:y},w))})})]})},rYe);Ey.displayName="ElementTags";const nYe=E.forwardRef((e,r)=>b.jsx("svg",{height:"24",width:"24",fill:"currentColor",...e,viewBox:"0 0 24 24",ref:r,children:b.jsx("path",{d:"M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z"})}));/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const oYe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],TQ=yt("outline","check","Check",oYe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const aYe=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],iYe=yt("outline","copy","Copy",aYe),AQ="https://github.com/",j9=E.forwardRef(({value:e,className:r,...n},o)=>{const a=e.url.includes("://")?e.url:new window.URL(e.url,window.location.href).toString();let i=a.startsWith(AQ);return b.jsx(Gl,{ref:o,variant:"default",radius:"sm",size:"sm",tt:"none",leftSection:e.title?b.jsx(b.Fragment,{children:e.title}):null,rightSection:b.jsx(cW,{value:a,timeout:1500,children:({copy:s,copied:l})=>b.jsx(or,{className:ye({opacity:l?1:.45,transition:"fast",_hover:{opacity:1}}),tabIndex:-1,size:"20",variant:l?"light":"transparent",color:l?"teal":"gray","data-active":l,onClick:c=>{c.stopPropagation(),c.preventDefault(),s()},children:l?b.jsx(TQ,{}):b.jsx(iYe,{stroke:2.5})})}),...n,className:Je(r,"group"),classNames:{root:ye({flexWrap:"nowrap",minHeight:24,maxWidth:500,userSelect:"all",pr:"0",backgroundColor:{base:"transparent",_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}}}),section:ye({'&:is([data-position="left"])':{color:"mantine.colors.dimmed",userSelect:"none",pointerEvents:"none",_groupHover:{color:"[var(--badge-color)]",opacity:.7}}})},children:b.jsxs(Ql.a,{href:a,target:"_blank",style:{color:"var(--badge-color)",cursor:"pointer"},css:{transition:"fast",opacity:{base:.7,_hover:1},textDecoration:{base:"none",_hover:"underline"}},children:[i&&b.jsx(nYe,{height:"12",width:"12",style:{verticalAlign:"middle",marginRight:"4px"}}),i?a.replace(AQ,""):a]})})});function NQ(){const e=E.useContext(OT);if(!e)throw new Error("No LikeC4ViewModel in context found");return e}const Tk="--_blur",Ak="--_opacity",sYe=ye({boxSizing:"border-box",margin:"0",padding:"0",position:"fixed",inset:"0",width:"100vw",height:"100vh",maxWidth:"100vw",maxHeight:"100vh",background:"transparent",border:"transparent",_backdrop:{backdropFilter:"auto",backdropBlur:`var(${Tk})`,backgroundColor:`[rgb(36 36 36 / var(${Ak}, 5%))]`}}),lYe=ye({position:"absolute",pointerEvents:"all",display:"flex",flexDirection:"column",padding:"4",gap:"lg",justifyContent:"stretch",color:"mantine.colors.text",backgroundColor:{base:"mantine.colors.body",_dark:"mantine.colors.dark[6]"},boxShadow:"md",overflow:"hidden",border:"none",backgroundImage:`
    linear-gradient(180deg,
      color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent),
      color-mix(in srgb, var(--likec4-palette-fill) 20%, transparent) 8px,
      color-mix(in srgb, var(--likec4-palette-fill) 14%, transparent) 20px,
      transparent 80px
    ),
    linear-gradient(180deg, var(--likec4-palette-fill), var(--likec4-palette-fill) 4px, transparent 4px)
  `,"& .react-flow__attribution":{display:"none"}}),cYe=ye({flex:0,cursor:"move"}),uYe=ye({display:"block",fontFamily:"likec4.element",fontOpticalSizing:"auto",fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"xs"}),B9="40px",dYe=ye({flex:`0 0 ${B9}`,height:B9,width:B9,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",cursor:"move",_dark:{mixBlendMode:"hard-light"},"& :where(svg, img)":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none",filter:`
    drop-shadow(0 0 3px rgb(0 0 0 / 10%))
    drop-shadow(0 1px 8px rgb(0 0 0 / 5%))
    drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))
  `},"& img":{objectFit:"contain"}}),Nk="--view-title-color",Rk="--icon-color",hYe=ye({width:"100%",background:"mantine.colors.body",borderRadius:"sm",padding:"[10px 8px]",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",[Nk]:"{colors.mantine.colors.dark[1]}",_hover:{background:"mantine.colors.defaultHover",[Rk]:"{colors.mantine.colors.dark[1]}",[Nk]:"{colors.mantine.colors.defaultColor}"},_dark:{background:"mantine.colors.dark[6]"},_light:{[Rk]:"{colors.mantine.colors.gray[6]}",[Nk]:"{colors.mantine.colors.gray[7]}",_hover:{[Rk]:"{colors.mantine.colors.gray[7]}"}},"& .mantine-ThemeIcon-root":{transition:"fast",color:`[var(${Rk}, {colors.mantine.colors.dark[2]})]`,"--ti-size":"22px",_hover:{color:"mantine.colors.defaultColor"}},"& > *":{transition:"all 130ms {easings.inOut}"},"&:hover > *":{transitionTimingFunction:"out",transform:"translateX(1.6px)"}}),fYe=ye({transition:"fast",color:`[var(${Nk}, {colors.mantine.colors.gray[7]})]`,fontSize:"15px",fontWeight:500,lineHeight:"1.4"}),pYe=ye({flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch",overflow:"hidden",gap:"sm"}),mYe=ye({background:"mantine.colors.gray[1]",borderRadius:"sm",flexWrap:"nowrap",gap:"1.5",padding:"1",_dark:{background:"mantine.colors.dark[7]"}}),gYe=ye({fontSize:"xs",fontWeight:500,flexGrow:1,padding:"[6px 8px]",transition:"fast",borderRadius:"sm",color:"mantine.colors.gray[7]",_hover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.gray[3]"},"&[data-active]":{transition:"none",background:"mantine.colors.white",shadow:"xs",color:"mantine.colors.defaultColor"},_dark:{color:"mantine.colors.dark[1]",_hover:{color:"mantine.colors.white",background:"mantine.colors.dark[6]"},"&:is([data-active])":{color:"mantine.colors.white",background:"mantine.colors.dark[5]"}}}),yYe=ye({flex:1,overflow:"hidden",position:"relative","&:not(:has(.mantine-ScrollArea-root))":{paddingLeft:"1",paddingRight:"1"},"& .mantine-ScrollArea-root":{width:"100%",height:"100%","& > div":{paddingLeft:"1",paddingRight:"1"}}}),bYe=ye({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[24px 20px]",alignItems:"baseline",justifyItems:"stretch"}),vYe=ye({justifySelf:"end",textAlign:"right",userSelect:"none"}),xYe=ye({position:"absolute",width:"14px",height:"14px",border:"3.5px solid",borderColor:"mantine.colors.dark[3]",borderTop:"none",borderLeft:"none",borderRadius:"2px",bottom:"0.5",right:"0.5",transition:"fast",cursor:"se-resize",_hover:{borderWidth:"4px",borderColor:"mantine.colors.dark[1]"}}),wYe=ye({"&[data-level='1']":{marginBottom:"sm"}}),kYe=ye({cursor:"default",marginTop:"0",marginBottom:"0"}),RQ=ye({transition:"fast",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out","& > :not([data-no-transform])":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),_Ye=Je(RQ),EYe=Je(RQ,ye({cursor:"pointer",width:"100%",justifyContent:"stretch",flexWrap:"nowrap",height:"36px",paddingInlineStart:"[16px]",paddingInlineEnd:"2.5",borderRadius:"sm",alignItems:"center",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.gray.lightColor"},_hover:{background:"mantine.colors.gray.lightHover"},"& .tabler-icon":{transition:"fast",width:"90%",opacity:.65}}));/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const SYe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],F9=yt("outline","info-circle","InfoCircle",SYe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const CYe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],TYe=yt("outline","target","Target",CYe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const AYe=[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}],["path",{d:"M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-4"}],["path",{d:"M16 16l-2.5 -2.5",key:"svg-5"}]],gi=yt("outline","zoom-scan","ZoomScan",AYe),NYe=({node:e})=>b.jsxs(Ur,{className:_Ye,gap:6,align:"baseline",wrap:"nowrap",children:[b.jsxs(wt,{component:"div",fz:11,c:"dimmed",children:[e.kind,":"]}),b.jsx(wt,{component:"div",fz:"sm",fw:"500",children:e.title})]}),RYe=({instance:e})=>{const r=Wt(),n=r.currentView.id,o=[...e.views()];return b.jsxs(Ur,{className:EYe,gap:4,children:[b.jsx(ci,{color:"gray",variant:"transparent",size:"xs",flex:0,children:b.jsx(TYe,{stroke:1.2})}),b.jsx(wt,{component:"div",fz:"sm",fw:"500",flex:"1 1 100%",children:e.title}),b.jsxs(Se,{onClick:cn,pos:"relative","data-no-transform":!0,flex:0,children:[o.length===0&&b.jsx(Zn,{size:"compact-xs",variant:"transparent",color:"gray",disabled:!0,children:"no views"}),o.length>0&&b.jsxs(fo,{shadow:"md",withinPortal:!1,position:"bottom-start",offset:0,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,trapFocus:!0,children:[b.jsx(fo.Target,{children:b.jsxs(Zn,{size:"compact-xs",variant:"subtle",color:"gray",children:[o.length," view",o.length>1?"s":""]})}),b.jsx(fo.Dropdown,{children:o.map(a=>b.jsx(fo.Item,{px:"xs",py:4,disabled:a.id===n,leftSection:b.jsx(ci,{size:"sm",variant:"transparent",color:"gray",children:b.jsx(gi,{stroke:1.8,opacity:.65})}),styles:{itemSection:{marginInlineEnd:Ne(8)}},onClick:i=>{i.stopPropagation(),r.navigateTo(a.id)},children:a.title},a.id))})]})]})]})},$Ye=()=>{},PYe=E.memo(({elementFqn:e})=>{const r=Ho().element(e),n=[...r.deployments()],o=Y1({multiple:!1});o.setHoveredNode=$Ye;const a=E.useMemo(()=>{let i=[],s=new Map;for(const l of r.deployments()){let c={label:b.jsx(RYe,{instance:l}),value:l.id,type:"instance",children:[]};s.set(l.id,c);let u=l.parent;for(;u;){let d=s.get(u.id);if(d){d.children.push(c);break}d={label:b.jsx(NYe,{node:u}),value:u.id,type:"node",children:[c]},s.set(u.id,d),c=d,u=u.parent}!u&&!i.includes(c)&&i.push(c)}return i},[r]);return E.useEffect(()=>{o.expandAllNodes()},[a]),n.length===0?b.jsx(M3,{variant:"light",color:"gray",icon:b.jsx(F9,{}),children:"This element does not have any deployments"}):b.jsx(Bp,{levelOffset:"sm",allowRangeSelection:!1,classNames:{node:wYe,label:kYe},styles:{root:{position:"relative",width:"min-content",minWidth:300}},data:a,tree:o,renderNode:({node:i,selected:s,elementProps:l,hasChildren:c})=>b.jsx(Se,{...l,style:{...!c&&{marginBottom:Ne(4)}},children:c?b.jsx(Zn,{fullWidth:!0,color:"gray",variant:s?"transparent":"subtle",size:"xs",justify:"flex-start",styles:{root:{position:"unset",paddingInlineStart:Ne(16)}},children:i.label}):i.label})})}),MYe=()=>{},$Q=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n]&&!Xn(o,r[n]))return!1;return!0};function $k(e,r,n,o){const a=FB();BB(a?MYe:e,r,$Q,o)}function OYe(){const e=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return Ki(Math.floor(e),{min:1,max:4})}let Pk;function yi(e){return Pk??=OYe(),Pk<2?Math.round(e):Math.round(e*Pk)/Pk}function DYe(e){switch(e){case"dots":return Gi.Dots;case"lines":return Gi.Lines;case"cross":return Gi.Cross;default:Ga(e)}}function LYe({background:e}){return typeof e=="string"?b.jsx(LU,{variant:DYe(e),size:2,gap:20}):b.jsx(LU,{...e})}const ds={Compound:1,Edge:20,Element:20,Max:30},hs=.05,H9=3,Mk={default:"16px",withControls:{top:"50px",left:"16px",right:"16px",bottom:"16px"}},PQ=(e,r)=>(e.data.dimmed??!1)===r?e:{...e,data:{...e.data,dimmed:r}};function IYe(e,r){return r!==void 0?PQ(e,r):n=>PQ(n,e)}const MQ=(e,r)=>(e.data.hovered??!1)===r?e:{...e,data:{...e.data,hovered:r}};function zYe(e,r){return r!==void 0?MQ(e,r):n=>MQ(n,e)}function OQ(e,r){return DRe(e.data,r)?e:{...e,data:{...e.data,...r}}}function jYe(e,r){return r!==void 0?OQ(e,r):n=>OQ(n,e)}const Jt={setDimmed:IYe,setHovered:zYe,setData:jYe};function U9({nodes:e,edges:r,onEdgesChange:n,onNodesChange:o,className:a,pannable:i=!0,zoomable:s=!0,nodesSelectable:l=!0,nodesDraggable:c=!1,background:u="dots",children:d,colorMode:h,fitViewPadding:p=0,fitView:g=!0,zoomOnDoubleClick:y=!1,onViewportResize:x,onMoveEnd:w,onNodeMouseEnter:k,onNodeMouseLeave:C,onEdgeMouseEnter:_,onEdgeMouseLeave:T,...A}){const N=u!=="transparent"&&u!=="solid",$=Yqe(),R=L9(),{colorScheme:M}=SMe();return h||(h=M==="auto"?"system":M),b.jsxs(Y7e,{colorMode:h,nodes:e,edges:r,className:Je(u==="transparent"&&"bg-transparent",a),...$&&{"data-likec4-zoom-small":!0},zoomOnPinch:s,zoomOnScroll:!i&&s,...!s&&{zoomActivationKeyCode:null},zoomOnDoubleClick:y,maxZoom:s?H9:1,minZoom:s?hs:1,fitView:g,fitViewOptions:{minZoom:hs,maxZoom:1,padding:p,includeHiddenNodes:!1},preventScrolling:s||i,defaultMarkerColor:"var(--xy-edge-stroke)",noDragClassName:"nodrag",noPanClassName:"nopan",noWheelClassName:"nowheel",panOnScroll:i,panOnDrag:i,...!i&&{panActivationKeyCode:null,selectionKeyCode:null},elementsSelectable:l,nodesFocusable:c||l,edgesFocusable:!1,nodesDraggable:c,nodeDragThreshold:4,nodeClickDistance:3,paneClickDistance:3,elevateNodesOnSelect:!1,selectNodesOnDrag:!1,onNodesChange:o,onEdgesChange:n,onMoveEnd:it((O,{x:B,y:I,zoom:Y})=>{const D=yi(B),V=yi(I);(B!==D||I!==V)&&R.setState({transform:[D,V,Y]}),w?.(O,{x:D,y:V,zoom:Y})}),onNodeMouseEnter:it((O,B)=>{if(k){k(O,B);return}B.data.hovered||o([{id:B.id,type:"replace",item:Jt.setHovered(B,!0)}])}),onNodeMouseLeave:it((O,B)=>{if(C){C(O,B);return}B.data.hovered&&o([{id:B.id,type:"replace",item:Jt.setHovered(B,!1)}])}),onEdgeMouseEnter:it((O,B)=>{if(_){_(O,B);return}B.data.hovered||n([{id:B.id,type:"replace",item:Jt.setHovered(B,!0)}])}),onEdgeMouseLeave:it((O,B)=>{if(T){T(O,B);return}B.data.hovered&&n([{id:B.id,type:"replace",item:Jt.setHovered(B,!1)}])}),onNodeDoubleClick:cn,onEdgeDoubleClick:cn,...A,children:[N&&b.jsx(LYe,{background:u}),x&&b.jsx(FYe,{onViewportResize:x}),d]})}const BYe=({width:e,height:r})=>(e||1)*(r||1),FYe=({onViewportResize:e})=>{const r=At(BYe);return $k(e,[r]),null},DQ=E.createContext(null);function LQ(){return mt(E.useContext(DQ),"No RelationshipsBrowserActorContext")}function Ok(e,r=Xn){const n=LQ();return wn(n,it(e),r)}function Sy(){const e=LQ();return E.useMemo(()=>({actor:e,get rootElementId(){return`relationships-browser-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,updateView:r=>{e.send({type:"update.view",layouted:r})},changeScope:r=>{e.send({type:"change.scope",scope:r})},navigateTo:(r,n)=>{e.send({type:"navigate.to",subject:r,fromNode:n})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}var V9,IQ;function q9(){if(IQ)return V9;IQ=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(d){d&&(this._isDirected=Object.hasOwn(d,"directed")?d.directed:!0,this._isMultigraph=Object.hasOwn(d,"multigraph")?d.multigraph:!1,this._isCompound=Object.hasOwn(d,"compound")?d.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(d){return this._label=d,this}graph(){return this._label}setDefaultNodeLabel(d){return this._defaultNodeLabelFn=d,typeof d!="function"&&(this._defaultNodeLabelFn=()=>d),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var d=this;return this.nodes().filter(h=>Object.keys(d._in[h]).length===0)}sinks(){var d=this;return this.nodes().filter(h=>Object.keys(d._out[h]).length===0)}setNodes(d,h){var p=arguments,g=this;return d.forEach(function(y){p.length>1?g.setNode(y,h):g.setNode(y)}),this}setNode(d,h){return Object.hasOwn(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=h),this):(this._nodes[d]=arguments.length>1?h:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]=r,this._children[d]={},this._children[r][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)}node(d){return this._nodes[d]}hasNode(d){return Object.hasOwn(this._nodes,d)}removeNode(d){var h=this;if(Object.hasOwn(this._nodes,d)){var p=g=>h.removeEdge(h._edgeObjs[g]);delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],this.children(d).forEach(function(g){h.setParent(g)}),delete this._children[d]),Object.keys(this._in[d]).forEach(p),delete this._in[d],delete this._preds[d],Object.keys(this._out[d]).forEach(p),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this}setParent(d,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h===void 0)h=r;else{h+="";for(var p=h;p!==void 0;p=this.parent(p))if(p===d)throw new Error("Setting "+h+" as parent of "+d+" would create a cycle");this.setNode(h)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=h,this._children[h][d]=!0,this}_removeFromParentsChildList(d){delete this._children[this._parent[d]][d]}parent(d){if(this._isCompound){var h=this._parent[d];if(h!==r)return h}}children(d=r){if(this._isCompound){var h=this._children[d];if(h)return Object.keys(h)}else{if(d===r)return this.nodes();if(this.hasNode(d))return[]}}predecessors(d){var h=this._preds[d];if(h)return Object.keys(h)}successors(d){var h=this._sucs[d];if(h)return Object.keys(h)}neighbors(d){var h=this.predecessors(d);if(h){const g=new Set(h);for(var p of this.successors(d))g.add(p);return Array.from(g.values())}}isLeaf(d){var h;return this.isDirected()?h=this.successors(d):h=this.neighbors(d),h.length===0}filterNodes(d){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var p=this;Object.entries(this._nodes).forEach(function([x,w]){d(x)&&h.setNode(x,w)}),Object.values(this._edgeObjs).forEach(function(x){h.hasNode(x.v)&&h.hasNode(x.w)&&h.setEdge(x,p.edge(x))});var g={};function y(x){var w=p.parent(x);return w===void 0||h.hasNode(w)?(g[x]=w,w):w in g?g[w]:y(w)}return this._isCompound&&h.nodes().forEach(x=>h.setParent(x,y(x))),h}setDefaultEdgeLabel(d){return this._defaultEdgeLabelFn=d,typeof d!="function"&&(this._defaultEdgeLabelFn=()=>d),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(d,h){var p=this,g=arguments;return d.reduce(function(y,x){return g.length>1?p.setEdge(y,x,h):p.setEdge(y,x),x}),this}setEdge(){var d,h,p,g,y=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(d=x.v,h=x.w,p=x.name,arguments.length===2&&(g=arguments[1],y=!0)):(d=x,h=arguments[1],p=arguments[3],arguments.length>2&&(g=arguments[2],y=!0)),d=""+d,h=""+h,p!==void 0&&(p=""+p);var w=s(this._isDirected,d,h,p);if(Object.hasOwn(this._edgeLabels,w))return y&&(this._edgeLabels[w]=g),this;if(p!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(h),this._edgeLabels[w]=y?g:this._defaultEdgeLabelFn(d,h,p);var k=l(this._isDirected,d,h,p);return d=k.v,h=k.w,Object.freeze(k),this._edgeObjs[w]=k,a(this._preds[h],d),a(this._sucs[d],h),this._in[h][w]=k,this._out[d][w]=k,this._edgeCount++,this}edge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p);return this._edgeLabels[g]}edgeAsObj(){const d=this.edge(...arguments);return typeof d!="object"?{label:d}:d}hasEdge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p);return Object.hasOwn(this._edgeLabels,g)}removeEdge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p),y=this._edgeObjs[g];return y&&(d=y.v,h=y.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[h],d),i(this._sucs[d],h),delete this._in[h][g],delete this._out[d][g],this._edgeCount--),this}inEdges(d,h){var p=this._in[d];if(p){var g=Object.values(p);return h?g.filter(y=>y.v===h):g}}outEdges(d,h){var p=this._out[d];if(p){var g=Object.values(p);return h?g.filter(y=>y.w===h):g}}nodeEdges(d,h){var p=this.inEdges(d,h);if(p)return p.concat(this.outEdges(d,h))}}function a(u,d){u[d]?u[d]++:u[d]=1}function i(u,d){--u[d]||delete u[d]}function s(u,d,h,p){var g=""+d,y=""+h;if(!u&&g>y){var x=g;g=y,y=x}return g+n+y+n+(p===void 0?e:p)}function l(u,d,h,p){var g=""+d,y=""+h;if(!u&&g>y){var x=g;g=y,y=x}var w={v:g,w:y};return p&&(w.name=p),w}function c(u,d){return s(u,d.v,d.w,d.name)}return V9=o,V9}var zQ,jQ;function HYe(){return jQ||(jQ=1,zQ="2.2.4"),zQ}var BQ,FQ;function UYe(){return FQ||(FQ=1,BQ={Graph:q9(),version:HYe()}),BQ}var Y9,HQ;function VYe(){if(HQ)return Y9;HQ=1;var e=q9();Y9={write:r,read:a};function r(i){var s={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(s.value=structuredClone(i.graph())),s}function n(i){return i.nodes().map(function(s){var l=i.node(s),c=i.parent(s),u={v:s};return l!==void 0&&(u.value=l),c!==void 0&&(u.parent=c),u})}function o(i){return i.edges().map(function(s){var l=i.edge(s),c={v:s.v,w:s.w};return s.name!==void 0&&(c.name=s.name),l!==void 0&&(c.value=l),c})}function a(i){var s=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(l){s.setNode(l.v,l.value),l.parent&&s.setParent(l.v,l.parent)}),i.edges.forEach(function(l){s.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),s}return Y9}var W9,UQ;function qYe(){if(UQ)return W9;UQ=1,W9=e;function e(r){var n={},o=[],a;function i(s){Object.hasOwn(n,s)||(n[s]=!0,a.push(s),r.successors(s).forEach(i),r.predecessors(s).forEach(i))}return r.nodes().forEach(function(s){a=[],i(s),a.length&&o.push(a)}),o}return W9}var X9,VQ;function qQ(){if(VQ)return X9;VQ=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,s=i.length;return a[n]=s,i.push({key:n,priority:o}),this._decrease(s),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,s=n;a<o.length&&(s=o[a].priority<o[s].priority?a:s,i<o.length&&(s=o[i].priority<o[s].priority?i:s),s!==n&&(this._swap(n,s),this._heapify(s)))}_decrease(n){for(var o=this._arr,a=o[n].priority,i;n!==0&&(i=n>>1,!(o[i].priority<a));)this._swap(n,i),n=i}_swap(n,o){var a=this._arr,i=this._keyIndices,s=a[n],l=a[o];a[n]=l,a[o]=s,i[l.key]=n,i[s.key]=o}}return X9=e,X9}var G9,YQ;function WQ(){if(YQ)return G9;YQ=1;var e=qQ();G9=n;var r=()=>1;function n(a,i,s,l){return o(a,String(i),s||r,l||function(c){return a.outEdges(c)})}function o(a,i,s,l){var c={},u=new e,d,h,p=function(g){var y=g.v!==d?g.v:g.w,x=c[y],w=s(g),k=h.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+w);k<x.distance&&(x.distance=k,x.predecessor=d,u.decrease(y,k))};for(a.nodes().forEach(function(g){var y=g===i?0:Number.POSITIVE_INFINITY;c[g]={distance:y},u.add(g,y)});u.size()>0&&(d=u.removeMin(),h=c[d],h.distance!==Number.POSITIVE_INFINITY);)l(d).forEach(p);return c}return G9}var K9,XQ;function YYe(){if(XQ)return K9;XQ=1;var e=WQ();K9=r;function r(n,o,a){return n.nodes().reduce(function(i,s){return i[s]=e(n,s,o,a),i},{})}return K9}var Z9,GQ;function KQ(){if(GQ)return Z9;GQ=1,Z9=e;function e(r){var n=0,o=[],a={},i=[];function s(l){var c=a[l]={onStack:!0,lowlink:n,index:n++};if(o.push(l),r.successors(l).forEach(function(h){Object.hasOwn(a,h)?a[h].onStack&&(c.lowlink=Math.min(c.lowlink,a[h].index)):(s(h),c.lowlink=Math.min(c.lowlink,a[h].lowlink))}),c.lowlink===c.index){var u=[],d;do d=o.pop(),a[d].onStack=!1,u.push(d);while(l!==d);i.push(u)}}return r.nodes().forEach(function(l){Object.hasOwn(a,l)||s(l)}),i}return Z9}var Q9,ZQ;function WYe(){if(ZQ)return Q9;ZQ=1;var e=KQ();Q9=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return Q9}var J9,QQ;function XYe(){if(QQ)return J9;QQ=1,J9=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(s){return o.outEdges(s)})}function n(o,a,i){var s={},l=o.nodes();return l.forEach(function(c){s[c]={},s[c][c]={distance:0},l.forEach(function(u){c!==u&&(s[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var d=u.v===c?u.w:u.v,h=a(u);s[c][d]={distance:h,predecessor:c}})}),l.forEach(function(c){var u=s[c];l.forEach(function(d){var h=s[d];l.forEach(function(p){var g=h[c],y=u[p],x=h[p],w=g.distance+y.distance;w<x.distance&&(x.distance=w,x.predecessor=y.predecessor)})})}),s}return J9}var eA,JQ;function eJ(){if(JQ)return eA;JQ=1;function e(n){var o={},a={},i=[];function s(l){if(Object.hasOwn(a,l))throw new r;Object.hasOwn(o,l)||(a[l]=!0,o[l]=!0,n.predecessors(l).forEach(s),delete a[l],i.push(l))}if(n.sinks().forEach(s),Object.keys(o).length!==n.nodeCount())throw new r;return i}class r extends Error{constructor(){super(...arguments)}}return eA=e,e.CycleException=r,eA}var tA,tJ;function GYe(){if(tJ)return tA;tJ=1;var e=eJ();tA=r;function r(n){try{e(n)}catch(o){if(o instanceof e.CycleException)return!1;throw o}return!0}return tA}var rA,rJ;function nJ(){if(rJ)return rA;rJ=1,rA=e;function e(a,i,s){Array.isArray(i)||(i=[i]);var l=a.isDirected()?h=>a.successors(h):h=>a.neighbors(h),c=s==="post"?r:n,u=[],d={};return i.forEach(h=>{if(!a.hasNode(h))throw new Error("Graph does not have node: "+h);c(h,l,d,u)}),u}function r(a,i,s,l){for(var c=[[a,!1]];c.length>0;){var u=c.pop();u[1]?l.push(u[0]):Object.hasOwn(s,u[0])||(s[u[0]]=!0,c.push([u[0],!0]),o(i(u[0]),d=>c.push([d,!1])))}}function n(a,i,s,l){for(var c=[a];c.length>0;){var u=c.pop();Object.hasOwn(s,u)||(s[u]=!0,l.push(u),o(i(u),d=>c.push(d)))}}function o(a,i){for(var s=a.length;s--;)i(a[s],s,a);return a}return rA}var nA,oJ;function KYe(){if(oJ)return nA;oJ=1;var e=nJ();nA=r;function r(n,o){return e(n,o,"post")}return nA}var oA,aJ;function ZYe(){if(aJ)return oA;aJ=1;var e=nJ();oA=r;function r(n,o){return e(n,o,"pre")}return oA}var aA,iJ;function QYe(){if(iJ)return aA;iJ=1;var e=q9(),r=qQ();aA=n;function n(o,a){var i=new e,s={},l=new r,c;function u(h){var p=h.v===c?h.w:h.v,g=l.priority(p);if(g!==void 0){var y=a(h);y<g&&(s[p]=c,l.decrease(p,y))}}if(o.nodeCount()===0)return i;o.nodes().forEach(function(h){l.add(h,Number.POSITIVE_INFINITY),i.setNode(h)}),l.decrease(o.nodes()[0],0);for(var d=!1;l.size()>0;){if(c=l.removeMin(),Object.hasOwn(s,c))i.setEdge(c,s[c]);else{if(d)throw new Error("Input graph is not connected: "+o);d=!0}o.nodeEdges(c).forEach(u)}return i}return aA}var sJ,lJ;function JYe(){return lJ||(lJ=1,sJ={components:qYe(),dijkstra:WQ(),dijkstraAll:YYe(),findCycles:WYe(),floydWarshall:XYe(),isAcyclic:GYe(),postorder:KYe(),preorder:ZYe(),prim:QYe(),tarjan:KQ(),topsort:eJ()}),sJ}var iA,cJ;function fs(){if(cJ)return iA;cJ=1;var e=UYe();return iA={Graph:e.Graph,json:VYe(),alg:JYe(),version:e.version},iA}var sA,uJ;function eWe(){if(uJ)return sA;uJ=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,s=i._prev;for(;s!==i;)a.push(JSON.stringify(s,n)),s=s._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return sA=e,sA}var lA,dJ;function tWe(){if(dJ)return lA;dJ=1;let e=fs().Graph,r=eWe();lA=o;let n=()=>1;function o(u,d){if(u.nodeCount()<=1)return[];let h=s(u,d||n);return a(h.graph,h.buckets,h.zeroIdx).flatMap(p=>u.outEdges(p.v,p.w))}function a(u,d,h){let p=[],g=d[d.length-1],y=d[0],x;for(;u.nodeCount();){for(;x=y.dequeue();)i(u,d,h,x);for(;x=g.dequeue();)i(u,d,h,x);if(u.nodeCount()){for(let w=d.length-2;w>0;--w)if(x=d[w].dequeue(),x){p=p.concat(i(u,d,h,x,!0));break}}}return p}function i(u,d,h,p,g){let y=g?[]:void 0;return u.inEdges(p.v).forEach(x=>{let w=u.edge(x),k=u.node(x.v);g&&y.push({v:x.v,w:x.w}),k.out-=w,l(d,h,k)}),u.outEdges(p.v).forEach(x=>{let w=u.edge(x),k=x.w,C=u.node(k);C.in-=w,l(d,h,C)}),u.removeNode(p.v),y}function s(u,d){let h=new e,p=0,g=0;u.nodes().forEach(w=>{h.setNode(w,{v:w,in:0,out:0})}),u.edges().forEach(w=>{let k=h.edge(w.v,w.w)||0,C=d(w),_=k+C;h.setEdge(w.v,w.w,_),g=Math.max(g,h.node(w.v).out+=C),p=Math.max(p,h.node(w.w).in+=C)});let y=c(g+p+3).map(()=>new r),x=p+1;return h.nodes().forEach(w=>{l(y,x,h.node(w))}),{graph:h,buckets:y,zeroIdx:x}}function l(u,d,h){h.out?h.in?u[h.out-h.in+d].enqueue(h):u[u.length-1].enqueue(h):u[0].enqueue(h)}function c(u){const d=[];for(let h=0;h<u;h++)d.push(h);return d}return lA}var cA,hJ;function _n(){if(hJ)return cA;hJ=1;let e=fs().Graph;cA={addBorderNode:d,addDummyNode:r,applyWithChunking:g,asNonCompoundGraph:o,buildLayerMatrix:l,intersectRect:s,mapValues:N,maxRank:y,normalizeRanks:c,notime:k,partition:x,pick:A,predecessorWeights:i,range:T,removeEmptyRanks:u,simplify:n,successorWeights:a,time:w,uniqueId:_,zipObject:$};function r(R,M,O,B){for(var I=B;R.hasNode(I);)I=_(B);return O.dummy=M,R.setNode(I,O),I}function n(R){let M=new e().setGraph(R.graph());return R.nodes().forEach(O=>M.setNode(O,R.node(O))),R.edges().forEach(O=>{let B=M.edge(O.v,O.w)||{weight:0,minlen:1},I=R.edge(O);M.setEdge(O.v,O.w,{weight:B.weight+I.weight,minlen:Math.max(B.minlen,I.minlen)})}),M}function o(R){let M=new e({multigraph:R.isMultigraph()}).setGraph(R.graph());return R.nodes().forEach(O=>{R.children(O).length||M.setNode(O,R.node(O))}),R.edges().forEach(O=>{M.setEdge(O,R.edge(O))}),M}function a(R){let M=R.nodes().map(O=>{let B={};return R.outEdges(O).forEach(I=>{B[I.w]=(B[I.w]||0)+R.edge(I).weight}),B});return $(R.nodes(),M)}function i(R){let M=R.nodes().map(O=>{let B={};return R.inEdges(O).forEach(I=>{B[I.v]=(B[I.v]||0)+R.edge(I).weight}),B});return $(R.nodes(),M)}function s(R,M){let O=R.x,B=R.y,I=M.x-O,Y=M.y-B,D=R.width/2,V=R.height/2;if(!I&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let L,U;return Math.abs(Y)*D>Math.abs(I)*V?(Y<0&&(V=-V),L=V*I/Y,U=V):(I<0&&(D=-D),L=D,U=D*Y/I),{x:O+L,y:B+U}}function l(R){let M=T(y(R)+1).map(()=>[]);return R.nodes().forEach(O=>{let B=R.node(O),I=B.rank;I!==void 0&&(M[I][B.order]=O)}),M}function c(R){let M=R.nodes().map(B=>{let I=R.node(B).rank;return I===void 0?Number.MAX_VALUE:I}),O=g(Math.min,M);R.nodes().forEach(B=>{let I=R.node(B);Object.hasOwn(I,"rank")&&(I.rank-=O)})}function u(R){let M=R.nodes().map(D=>R.node(D).rank),O=g(Math.min,M),B=[];R.nodes().forEach(D=>{let V=R.node(D).rank-O;B[V]||(B[V]=[]),B[V].push(D)});let I=0,Y=R.graph().nodeRankFactor;Array.from(B).forEach((D,V)=>{D===void 0&&V%Y!==0?--I:D!==void 0&&I&&D.forEach(L=>R.node(L).rank+=I)})}function d(R,M,O,B){let I={width:0,height:0};return arguments.length>=4&&(I.rank=O,I.order=B),r(R,"border",I,M)}function h(R,M=p){const O=[];for(let B=0;B<R.length;B+=M){const I=R.slice(B,B+M);O.push(I)}return O}const p=65535;function g(R,M){if(M.length>p){const O=h(M);return R.apply(null,O.map(B=>R.apply(null,B)))}else return R.apply(null,M)}function y(R){const M=R.nodes().map(O=>{let B=R.node(O).rank;return B===void 0?Number.MIN_VALUE:B});return g(Math.max,M)}function x(R,M){let O={lhs:[],rhs:[]};return R.forEach(B=>{M(B)?O.lhs.push(B):O.rhs.push(B)}),O}function w(R,M){let O=Date.now();try{return M()}finally{console.log(R+" time: "+(Date.now()-O)+"ms")}}function k(R,M){return M()}let C=0;function _(R){var M=++C;return R+(""+M)}function T(R,M,O=1){M==null&&(M=R,R=0);let B=Y=>Y<M;O<0&&(B=Y=>M<Y);const I=[];for(let Y=R;B(Y);Y+=O)I.push(Y);return I}function A(R,M){const O={};for(const B of M)R[B]!==void 0&&(O[B]=R[B]);return O}function N(R,M){let O=M;return typeof M=="string"&&(O=B=>B[M]),Object.entries(R).reduce((B,[I,Y])=>(B[I]=O(Y,I),B),{})}function $(R,M){return R.reduce((O,B,I)=>(O[B]=M[I],O),{})}return cA}var uA,fJ;function rWe(){if(fJ)return uA;fJ=1;let e=tWe(),r=_n().uniqueId;uA={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,s(i)):o(i)).forEach(l=>{let c=i.edge(l);i.removeEdge(l),c.forwardName=l.name,c.reversed=!0,i.setEdge(l.w,l.v,c,r("rev"))});function s(l){return c=>l.edge(c).weight}}function o(i){let s=[],l={},c={};function u(d){Object.hasOwn(c,d)||(c[d]=!0,l[d]=!0,i.outEdges(d).forEach(h=>{Object.hasOwn(l,h.w)?s.push(h):u(h.w)}),delete l[d])}return i.nodes().forEach(u),s}function a(i){i.edges().forEach(s=>{let l=i.edge(s);if(l.reversed){i.removeEdge(s);let c=l.forwardName;delete l.reversed,delete l.forwardName,i.setEdge(s.w,s.v,l,c)}})}return uA}var dA,pJ;function nWe(){if(pJ)return dA;pJ=1;let e=_n();dA={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let s=i.v,l=a.node(s).rank,c=i.w,u=a.node(c).rank,d=i.name,h=a.edge(i),p=h.labelRank;if(u===l+1)return;a.removeEdge(i);let g,y,x;for(x=0,++l;l<u;++x,++l)h.points=[],y={width:0,height:0,edgeLabel:h,edgeObj:i,rank:l},g=e.addDummyNode(a,"edge",y,"_d"),l===p&&(y.width=h.width,y.height=h.height,y.dummy="edge-label",y.labelpos=h.labelpos),a.setEdge(s,g,{weight:h.weight},d),x===0&&a.graph().dummyChains.push(g),s=g;a.setEdge(s,c,{weight:h.weight},d)}function o(a){a.graph().dummyChains.forEach(i=>{let s=a.node(i),l=s.edgeLabel,c;for(a.setEdge(s.edgeObj,l);s.dummy;)c=a.successors(i)[0],a.removeNode(i),l.points.push({x:s.x,y:s.y}),s.dummy==="edge-label"&&(l.x=s.x,l.y=s.y,l.width=s.width,l.height=s.height),i=c,s=a.node(i)})}return dA}var hA,mJ;function Dk(){if(mJ)return hA;mJ=1;const{applyWithChunking:e}=_n();hA={longestPath:r,slack:n};function r(o){var a={};function i(s){var l=o.node(s);if(Object.hasOwn(a,s))return l.rank;a[s]=!0;let c=o.outEdges(s).map(d=>d==null?Number.POSITIVE_INFINITY:i(d.w)-o.edge(d).minlen);var u=e(Math.min,c);return u===Number.POSITIVE_INFINITY&&(u=0),l.rank=u}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return hA}var fA,gJ;function yJ(){if(gJ)return fA;gJ=1;var e=fs().Graph,r=Dk().slack;fA=n;function n(s){var l=new e({directed:!1}),c=s.nodes()[0],u=s.nodeCount();l.setNode(c,{});for(var d,h;o(l,s)<u;)d=a(l,s),h=l.hasNode(d.v)?r(s,d):-r(s,d),i(l,s,h);return l}function o(s,l){function c(u){l.nodeEdges(u).forEach(d=>{var h=d.v,p=u===h?d.w:h;!s.hasNode(p)&&!r(l,d)&&(s.setNode(p,{}),s.setEdge(u,p,{}),c(p))})}return s.nodes().forEach(c),s.nodeCount()}function a(s,l){return l.edges().reduce((c,u)=>{let d=Number.POSITIVE_INFINITY;return s.hasNode(u.v)!==s.hasNode(u.w)&&(d=r(l,u)),d<c[0]?[d,u]:c},[Number.POSITIVE_INFINITY,null])[1]}function i(s,l,c){s.nodes().forEach(u=>l.node(u).rank+=c)}return fA}var pA,bJ;function oWe(){if(bJ)return pA;bJ=1;var e=yJ(),r=Dk().slack,n=Dk().longestPath,o=fs().alg.preorder,a=fs().alg.postorder,i=_n().simplify;pA=s,s.initLowLimValues=d,s.initCutValues=l,s.calcCutValue=u,s.leaveEdge=p,s.enterEdge=g,s.exchangeEdges=y;function s(C){C=i(C),n(C);var _=e(C);d(_),l(_,C);for(var T,A;T=p(_);)A=g(_,C,T),y(_,C,T,A)}function l(C,_){var T=a(C,C.nodes());T=T.slice(0,T.length-1),T.forEach(A=>c(C,_,A))}function c(C,_,T){var A=C.node(T),N=A.parent;C.edge(T,N).cutvalue=u(C,_,T)}function u(C,_,T){var A=C.node(T),N=A.parent,$=!0,R=_.edge(T,N),M=0;return R||($=!1,R=_.edge(N,T)),M=R.weight,_.nodeEdges(T).forEach(O=>{var B=O.v===T,I=B?O.w:O.v;if(I!==N){var Y=B===$,D=_.edge(O).weight;if(M+=Y?D:-D,w(C,T,I)){var V=C.edge(T,I).cutvalue;M+=Y?-V:V}}}),M}function d(C,_){arguments.length<2&&(_=C.nodes()[0]),h(C,{},1,_)}function h(C,_,T,A,N){var $=T,R=C.node(A);return _[A]=!0,C.neighbors(A).forEach(M=>{Object.hasOwn(_,M)||(T=h(C,_,T,M,A))}),R.low=$,R.lim=T++,N?R.parent=N:delete R.parent,T}function p(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,T){var A=T.v,N=T.w;_.hasEdge(A,N)||(A=T.w,N=T.v);var $=C.node(A),R=C.node(N),M=$,O=!1;$.lim>R.lim&&(M=R,O=!0);var B=_.edges().filter(I=>O===k(C,C.node(I.v),M)&&O!==k(C,C.node(I.w),M));return B.reduce((I,Y)=>r(_,Y)<r(_,I)?Y:I)}function y(C,_,T,A){var N=T.v,$=T.w;C.removeEdge(N,$),C.setEdge(A.v,A.w,{}),d(C),l(C,_),x(C,_)}function x(C,_){var T=C.nodes().find(N=>!_.node(N).parent),A=o(C,T);A=A.slice(1),A.forEach(N=>{var $=C.node(N).parent,R=_.edge(N,$),M=!1;R||(R=_.edge($,N),M=!0),_.node(N).rank=_.node($).rank+(M?R.minlen:-R.minlen)})}function w(C,_,T){return C.hasEdge(_,T)}function k(C,_,T){return T.low<=_.lim&&_.lim<=T.lim}return pA}var mA,vJ;function aWe(){if(vJ)return mA;vJ=1;var e=Dk(),r=e.longestPath,n=yJ(),o=oWe();mA=a;function a(c){var u=c.graph().ranker;if(u instanceof Function)return u(c);switch(c.graph().ranker){case"network-simplex":l(c);break;case"tight-tree":s(c);break;case"longest-path":i(c);break;case"none":break;default:l(c)}}var i=r;function s(c){r(c),n(c)}function l(c){o(c)}return mA}var gA,xJ;function iWe(){if(xJ)return gA;xJ=1,gA=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let s=o.node(i),l=s.edgeObj,c=r(o,a,l.v,l.w),u=c.path,d=c.lca,h=0,p=u[h],g=!0;for(;i!==l.w;){if(s=o.node(i),g){for(;(p=u[h])!==d&&o.node(p).maxRank<s.rank;)h++;p===d&&(g=!1)}if(!g){for(;h<u.length-1&&o.node(p=u[h+1]).minRank<=s.rank;)h++;p=u[h]}o.setParent(i,p),i=o.successors(i)[0]}})}function r(o,a,i,s){let l=[],c=[],u=Math.min(a[i].low,a[s].low),d=Math.max(a[i].lim,a[s].lim),h,p;h=i;do h=o.parent(h),l.push(h);while(h&&(a[h].low>u||d>a[h].lim));for(p=h,h=s;(h=o.parent(h))!==p;)c.push(h);return{path:l.concat(c.reverse()),lca:p}}function n(o){let a={},i=0;function s(l){let c=i;o.children(l).forEach(s),a[l]={low:c,lim:i++}}return o.children().forEach(s),a}return gA}var yA,wJ;function sWe(){if(wJ)return yA;wJ=1;let e=_n();yA={run:r,cleanup:i};function r(s){let l=e.addDummyNode(s,"root",{},"_root"),c=o(s),u=Object.values(c),d=e.applyWithChunking(Math.max,u)-1,h=2*d+1;s.graph().nestingRoot=l,s.edges().forEach(g=>s.edge(g).minlen*=h);let p=a(s)+1;s.children().forEach(g=>n(s,l,h,p,d,c,g)),s.graph().nodeRankFactor=h}function n(s,l,c,u,d,h,p){let g=s.children(p);if(!g.length){p!==l&&s.setEdge(l,p,{weight:0,minlen:c});return}let y=e.addBorderNode(s,"_bt"),x=e.addBorderNode(s,"_bb"),w=s.node(p);s.setParent(y,p),w.borderTop=y,s.setParent(x,p),w.borderBottom=x,g.forEach(k=>{n(s,l,c,u,d,h,k);let C=s.node(k),_=C.borderTop?C.borderTop:k,T=C.borderBottom?C.borderBottom:k,A=C.borderTop?u:2*u,N=_!==T?1:d-h[p]+1;s.setEdge(y,_,{weight:A,minlen:N,nestingEdge:!0}),s.setEdge(T,x,{weight:A,minlen:N,nestingEdge:!0})}),s.parent(p)||s.setEdge(l,y,{weight:0,minlen:d+h[p]})}function o(s){var l={};function c(u,d){var h=s.children(u);h&&h.length&&h.forEach(p=>c(p,d+1)),l[u]=d}return s.children().forEach(u=>c(u,1)),l}function a(s){return s.edges().reduce((l,c)=>l+s.edge(c).weight,0)}function i(s){var l=s.graph();s.removeNode(l.nestingRoot),delete l.nestingRoot,s.edges().forEach(c=>{var u=s.edge(c);u.nestingEdge&&s.removeEdge(c)})}return yA}var bA,kJ;function lWe(){if(kJ)return bA;kJ=1;let e=_n();bA=r;function r(o){function a(i){let s=o.children(i),l=o.node(i);if(s.length&&s.forEach(a),Object.hasOwn(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(let c=l.minRank,u=l.maxRank+1;c<u;++c)n(o,"borderLeft","_bl",i,l,c),n(o,"borderRight","_br",i,l,c)}}o.children().forEach(a)}function n(o,a,i,s,l,c){let u={width:0,height:0,rank:c,borderType:a},d=l[a][c-1],h=e.addDummyNode(o,"border",u,i);l[a][c]=h,o.setParent(h,s),d&&o.setEdge(d,h,{weight:1})}return bA}var vA,_J;function cWe(){if(_J)return vA;_J=1,vA={adjust:e,undo:r};function e(c){let u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&n(c)}function r(c){let u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&a(c),(u==="lr"||u==="rl")&&(s(c),n(c))}function n(c){c.nodes().forEach(u=>o(c.node(u))),c.edges().forEach(u=>o(c.edge(u)))}function o(c){let u=c.width;c.width=c.height,c.height=u}function a(c){c.nodes().forEach(u=>i(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(i),Object.hasOwn(d,"y")&&i(d)})}function i(c){c.y=-c.y}function s(c){c.nodes().forEach(u=>l(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(l),Object.hasOwn(d,"x")&&l(d)})}function l(c){let u=c.x;c.x=c.y,c.y=u}return vA}var xA,EJ;function uWe(){if(EJ)return xA;EJ=1;let e=_n();xA=r;function r(n){let o={},a=n.nodes().filter(u=>!n.children(u).length),i=a.map(u=>n.node(u).rank),s=e.applyWithChunking(Math.max,i),l=e.range(s+1).map(()=>[]);function c(u){if(o[u])return;o[u]=!0;let d=n.node(u);l[d.rank].push(u),n.successors(u).forEach(c)}return a.sort((u,d)=>n.node(u).rank-n.node(d).rank).forEach(c),l}return xA}var wA,SJ;function dWe(){if(SJ)return wA;SJ=1;let e=_n().zipObject;wA=r;function r(o,a){let i=0;for(let s=1;s<a.length;++s)i+=n(o,a[s-1],a[s]);return i}function n(o,a,i){let s=e(i,i.map((p,g)=>g)),l=a.flatMap(p=>o.outEdges(p).map(g=>({pos:s[g.w],weight:o.edge(g).weight})).sort((g,y)=>g.pos-y.pos)),c=1;for(;c<i.length;)c<<=1;let u=2*c-1;c-=1;let d=new Array(u).fill(0),h=0;return l.forEach(p=>{let g=p.pos+c;d[g]+=p.weight;let y=0;for(;g>0;)g%2&&(y+=d[g+1]),g=g-1>>1,d[g]+=p.weight;h+=p.weight*y}),h}return wA}var kA,CJ;function hWe(){if(CJ)return kA;CJ=1,kA=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((s,l)=>{let c=r.edge(l),u=r.node(l.v);return{sum:s.sum+c.weight*u.order,weight:s.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return kA}var _A,TJ;function fWe(){if(TJ)return _A;TJ=1;let e=_n();_A=r;function r(a,i){let s={};a.forEach((c,u)=>{let d=s[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:u};c.barycenter!==void 0&&(d.barycenter=c.barycenter,d.weight=c.weight)}),i.edges().forEach(c=>{let u=s[c.v],d=s[c.w];u!==void 0&&d!==void 0&&(d.indegree++,u.out.push(s[c.w]))});let l=Object.values(s).filter(c=>!c.indegree);return n(l)}function n(a){let i=[];function s(c){return u=>{u.merged||(u.barycenter===void 0||c.barycenter===void 0||u.barycenter>=c.barycenter)&&o(c,u)}}function l(c){return u=>{u.in.push(c),--u.indegree===0&&a.push(u)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(s(c)),c.out.forEach(l(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let s=0,l=0;a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),i.weight&&(s+=i.barycenter*i.weight,l+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=s/l,a.weight=l,a.i=Math.min(i.i,a.i),i.merged=!0}return _A}var EA,AJ;function pWe(){if(AJ)return EA;AJ=1;let e=_n();EA=r;function r(a,i){let s=e.partition(a,y=>Object.hasOwn(y,"barycenter")),l=s.lhs,c=s.rhs.sort((y,x)=>x.i-y.i),u=[],d=0,h=0,p=0;l.sort(o(!!i)),p=n(u,c,p),l.forEach(y=>{p+=y.vs.length,u.push(y.vs),d+=y.barycenter*y.weight,h+=y.weight,p=n(u,c,p)});let g={vs:u.flat(!0)};return h&&(g.barycenter=d/h,g.weight=h),g}function n(a,i,s){let l;for(;i.length&&(l=i[i.length-1]).i<=s;)i.pop(),a.push(l.vs),s++;return s}function o(a){return(i,s)=>i.barycenter<s.barycenter?-1:i.barycenter>s.barycenter?1:a?s.i-i.i:i.i-s.i}return EA}var SA,NJ;function mWe(){if(NJ)return SA;NJ=1;let e=hWe(),r=fWe(),n=pWe();SA=o;function o(s,l,c,u){let d=s.children(l),h=s.node(l),p=h?h.borderLeft:void 0,g=h?h.borderRight:void 0,y={};p&&(d=d.filter(C=>C!==p&&C!==g));let x=e(s,d);x.forEach(C=>{if(s.children(C.v).length){let _=o(s,C.v,c,u);y[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let w=r(x,c);a(w,y);let k=n(w,u);if(p&&(k.vs=[p,k.vs,g].flat(!0),s.predecessors(p).length)){let C=s.node(s.predecessors(p)[0]),_=s.node(s.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(s,l){s.forEach(c=>{c.vs=c.vs.flatMap(u=>l[u]?l[u].vs:u)})}function i(s,l){s.barycenter!==void 0?(s.barycenter=(s.barycenter*s.weight+l.barycenter*l.weight)/(s.weight+l.weight),s.weight+=l.weight):(s.barycenter=l.barycenter,s.weight=l.weight)}return SA}var CA,RJ;function gWe(){if(RJ)return CA;RJ=1;let e=fs().Graph,r=_n();CA=n;function n(a,i,s){let l=o(a),c=new e({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(u=>a.node(u));return a.nodes().forEach(u=>{let d=a.node(u),h=a.parent(u);(d.rank===i||d.minRank<=i&&i<=d.maxRank)&&(c.setNode(u),c.setParent(u,h||l),a[s](u).forEach(p=>{let g=p.v===u?p.w:p.v,y=c.edge(g,u),x=y!==void 0?y.weight:0;c.setEdge(g,u,{weight:a.edge(p).weight+x})}),Object.hasOwn(d,"minRank")&&c.setNode(u,{borderLeft:d.borderLeft[i],borderRight:d.borderRight[i]}))}),c}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return CA}var TA,$J;function yWe(){if($J)return TA;$J=1,TA=e;function e(r,n,o){let a={},i;o.forEach(s=>{let l=r.parent(s),c,u;for(;l;){if(c=r.parent(l),c?(u=a[c],a[c]=l):(u=i,i=l),u&&u!==l){n.setEdge(u,l);return}l=c}})}return TA}var AA,PJ;function bWe(){if(PJ)return AA;PJ=1;let e=uWe(),r=dWe(),n=mWe(),o=gWe(),a=yWe(),i=fs().Graph,s=_n();AA=l;function l(h,p){if(p&&typeof p.customOrder=="function"){p.customOrder(h,l);return}let g=s.maxRank(h),y=c(h,s.range(1,g+1),"inEdges"),x=c(h,s.range(g-1,-1,-1),"outEdges"),w=e(h);if(d(h,w),p&&p.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,T=0;T<4;++_,++T){u(_%2?y:x,_%4>=2),w=s.buildLayerMatrix(h);let A=r(h,w);A<k&&(T=0,C=Object.assign({},w),k=A)}d(h,C)}function c(h,p,g){return p.map(function(y){return o(h,y,g)})}function u(h,p){let g=new i;h.forEach(function(y){let x=y.graph().root,w=n(y,x,g,p);w.vs.forEach((k,C)=>y.node(k).order=C),a(y,g,w.vs)})}function d(h,p){Object.values(p).forEach(g=>g.forEach((y,x)=>h.node(y).order=x))}return AA}var NA,MJ;function vWe(){if(MJ)return NA;MJ=1;let e=fs().Graph,r=_n();NA={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:s,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:d,balance:p};function n(w,k){let C={};function _(T,A){let N=0,$=0,R=T.length,M=A[A.length-1];return A.forEach((O,B)=>{let I=a(w,O),Y=I?w.node(I).order:R;(I||O===M)&&(A.slice($,B+1).forEach(D=>{w.predecessors(D).forEach(V=>{let L=w.node(V),U=L.order;(U<N||Y<U)&&!(L.dummy&&w.node(D).dummy)&&i(C,V,D)})}),$=B+1,N=Y)}),A}return k.length&&k.reduce(_),C}function o(w,k){let C={};function _(A,N,$,R,M){let O;r.range(N,$).forEach(B=>{O=A[B],w.node(O).dummy&&w.predecessors(O).forEach(I=>{let Y=w.node(I);Y.dummy&&(Y.order<R||Y.order>M)&&i(C,I,O)})})}function T(A,N){let $=-1,R,M=0;return N.forEach((O,B)=>{if(w.node(O).dummy==="border"){let I=w.predecessors(O);I.length&&(R=w.node(I[0]).order,_(N,M,B,$,R),M=B,$=R)}_(N,M,N.length,R,A.length)}),N}return k.length&&k.reduce(T),C}function a(w,k){if(w.node(k).dummy)return w.predecessors(k).find(C=>w.node(C).dummy)}function i(w,k,C){if(k>C){let T=k;k=C,C=T}let _=w[k];_||(w[k]=_={}),_[C]=!0}function s(w,k,C){if(k>C){let _=k;k=C,C=_}return!!w[k]&&Object.hasOwn(w[k],C)}function l(w,k,C,_){let T={},A={},N={};return k.forEach($=>{$.forEach((R,M)=>{T[R]=R,A[R]=R,N[R]=M})}),k.forEach($=>{let R=-1;$.forEach(M=>{let O=_(M);if(O.length){O=O.sort((I,Y)=>N[I]-N[Y]);let B=(O.length-1)/2;for(let I=Math.floor(B),Y=Math.ceil(B);I<=Y;++I){let D=O[I];A[M]===M&&R<N[D]&&!s(C,M,D)&&(A[D]=M,A[M]=T[M]=T[D],R=N[D])}}})}),{root:T,align:A}}function c(w,k,C,_,T){let A={},N=u(w,k,C,T),$=T?"borderLeft":"borderRight";function R(B,I){let Y=N.nodes(),D=Y.pop(),V={};for(;D;)V[D]?B(D):(V[D]=!0,Y.push(D),Y=Y.concat(I(D))),D=Y.pop()}function M(B){A[B]=N.inEdges(B).reduce((I,Y)=>Math.max(I,A[Y.v]+N.edge(Y)),0)}function O(B){let I=N.outEdges(B).reduce((D,V)=>Math.min(D,A[V.w]-N.edge(V)),Number.POSITIVE_INFINITY),Y=w.node(B);I!==Number.POSITIVE_INFINITY&&Y.borderType!==$&&(A[B]=Math.max(A[B],I))}return R(M,N.predecessors.bind(N)),R(O,N.successors.bind(N)),Object.keys(_).forEach(B=>A[B]=A[C[B]]),A}function u(w,k,C,_){let T=new e,A=w.graph(),N=y(A.nodesep,A.edgesep,_);return k.forEach($=>{let R;$.forEach(M=>{let O=C[M];if(T.setNode(O),R){var B=C[R],I=T.edge(B,O);T.setEdge(B,O,Math.max(N(w,M,R),I||0))}R=M})}),T}function d(w,k){return Object.values(k).reduce((C,_)=>{let T=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([$,R])=>{let M=x(w,$)/2;T=Math.max(R+M,T),A=Math.min(R-M,A)});const N=T-A;return N<C[0]&&(C=[N,_]),C},[Number.POSITIVE_INFINITY,null])[1]}function h(w,k){let C=Object.values(k),_=r.applyWithChunking(Math.min,C),T=r.applyWithChunking(Math.max,C);["u","d"].forEach(A=>{["l","r"].forEach(N=>{let $=A+N,R=w[$];if(R===k)return;let M=Object.values(R),O=_-r.applyWithChunking(Math.min,M);N!=="l"&&(O=T-r.applyWithChunking(Math.max,M)),O&&(w[$]=r.mapValues(R,B=>B+O))})})}function p(w,k){return r.mapValues(w.ul,(C,_)=>{if(k)return w[k.toLowerCase()][_];{let T=Object.values(w).map(A=>A[_]).sort((A,N)=>A-N);return(T[1]+T[2])/2}})}function g(w){let k=r.buildLayerMatrix(w),C=Object.assign(n(w,k),o(w,k)),_={},T;["u","d"].forEach(N=>{T=N==="u"?k:Object.values(k).reverse(),["l","r"].forEach($=>{$==="r"&&(T=T.map(B=>Object.values(B).reverse()));let R=(N==="u"?w.predecessors:w.successors).bind(w),M=l(w,T,C,R),O=c(w,T,M.root,M.align,$==="r");$==="r"&&(O=r.mapValues(O,B=>-B)),_[N+$]=O})});let A=d(w,_);return h(_,A),p(_,w.graph().align)}function y(w,k,C){return(_,T,A)=>{let N=_.node(T),$=_.node(A),R=0,M;if(R+=N.width/2,Object.hasOwn(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":M=-N.width/2;break;case"r":M=N.width/2;break}if(M&&(R+=C?M:-M),M=0,R+=(N.dummy?k:w)/2,R+=($.dummy?k:w)/2,R+=$.width/2,Object.hasOwn($,"labelpos"))switch($.labelpos.toLowerCase()){case"l":M=$.width/2;break;case"r":M=-$.width/2;break}return M&&(R+=C?M:-M),M=0,R}}function x(w,k){return w.node(k).width}return NA}var RA,OJ;function xWe(){if(OJ)return RA;OJ=1;let e=_n(),r=vWe().positionX;RA=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,s])=>a.node(i).x=s)}function o(a){let i=e.buildLayerMatrix(a),s=a.graph().ranksep,l=0;i.forEach(c=>{const u=c.reduce((d,h)=>{const p=a.node(h).height;return d>p?d:p},0);c.forEach(d=>a.node(d).y=l+u/2),l+=u+s})}return RA}var $A,DJ;function wWe(){if(DJ)return $A;DJ=1;let e=rWe(),r=nWe(),n=aWe(),o=_n().normalizeRanks,a=iWe(),i=_n().removeEmptyRanks,s=sWe(),l=lWe(),c=cWe(),u=bWe(),d=xWe(),h=_n(),p=fs().Graph;$A=g;function g(z,W){let G=W&&W.debugTiming?h.time:h.notime;G("layout",()=>{let Z=G("  buildLayoutGraph",()=>R(z));G("  runLayout",()=>y(Z,G,W)),G("  updateInputGraph",()=>x(z,Z))})}function y(z,W,G){W("    makeSpaceForEdgeLabels",()=>M(z)),W("    removeSelfEdges",()=>q(z)),W("    acyclic",()=>e.run(z)),W("    nestingGraph.run",()=>s.run(z)),W("    rank",()=>n(h.asNonCompoundGraph(z))),W("    injectEdgeLabelProxies",()=>O(z)),W("    removeEmptyRanks",()=>i(z)),W("    nestingGraph.cleanup",()=>s.cleanup(z)),W("    normalizeRanks",()=>o(z)),W("    assignRankMinMax",()=>B(z)),W("    removeEdgeLabelProxies",()=>I(z)),W("    normalize.run",()=>r.run(z)),W("    parentDummyChains",()=>a(z)),W("    addBorderSegments",()=>l(z)),W("    order",()=>u(z,G)),W("    insertSelfEdges",()=>X(z)),W("    adjustCoordinateSystem",()=>c.adjust(z)),W("    position",()=>d(z)),W("    positionSelfEdges",()=>F(z)),W("    removeBorderNodes",()=>U(z)),W("    normalize.undo",()=>r.undo(z)),W("    fixupEdgeLabelCoords",()=>V(z)),W("    undoCoordinateSystem",()=>c.undo(z)),W("    translateGraph",()=>Y(z)),W("    assignNodeIntersects",()=>D(z)),W("    reversePoints",()=>L(z)),W("    acyclic.undo",()=>e.undo(z))}function x(z,W){z.nodes().forEach(G=>{let Z=z.node(G),oe=W.node(G);Z&&(Z.x=oe.x,Z.y=oe.y,Z.rank=oe.rank,W.children(G).length&&(Z.width=oe.width,Z.height=oe.height))}),z.edges().forEach(G=>{let Z=z.edge(G),oe=W.edge(G);Z.points=oe.points,Object.hasOwn(oe,"x")&&(Z.x=oe.x,Z.y=oe.y)}),z.graph().width=W.graph().width,z.graph().height=W.graph().height}let w=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],T={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],N={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},$=["labelpos"];function R(z){let W=new p({multigraph:!0,compound:!0}),G=Q(z.graph());return W.setGraph(Object.assign({},k,J(G,w),h.pick(G,C))),z.nodes().forEach(Z=>{let oe=Q(z.node(Z));const ee=J(oe,_);Object.keys(T).forEach(re=>{ee[re]===void 0&&(ee[re]=T[re])}),W.setNode(Z,ee),W.setParent(Z,z.parent(Z))}),z.edges().forEach(Z=>{let oe=Q(z.edge(Z));W.setEdge(Z,Object.assign({},N,J(oe,A),h.pick(oe,$)))}),W}function M(z){let W=z.graph();W.ranksep/=2,z.edges().forEach(G=>{let Z=z.edge(G);Z.minlen*=2,Z.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Z.width+=Z.labeloffset:Z.height+=Z.labeloffset)})}function O(z){z.edges().forEach(W=>{let G=z.edge(W);if(G.width&&G.height){let Z=z.node(W.v),oe={rank:(z.node(W.w).rank-Z.rank)/2+Z.rank,e:W};h.addDummyNode(z,"edge-proxy",oe,"_ep")}})}function B(z){let W=0;z.nodes().forEach(G=>{let Z=z.node(G);Z.borderTop&&(Z.minRank=z.node(Z.borderTop).rank,Z.maxRank=z.node(Z.borderBottom).rank,W=Math.max(W,Z.maxRank))}),z.graph().maxRank=W}function I(z){z.nodes().forEach(W=>{let G=z.node(W);G.dummy==="edge-proxy"&&(z.edge(G.e).labelRank=G.rank,z.removeNode(W))})}function Y(z){let W=Number.POSITIVE_INFINITY,G=0,Z=Number.POSITIVE_INFINITY,oe=0,ee=z.graph(),re=ee.marginx||0,he=ee.marginy||0;function Ce(ce){let de=ce.x,be=ce.y,De=ce.width,Ge=ce.height;W=Math.min(W,de-De/2),G=Math.max(G,de+De/2),Z=Math.min(Z,be-Ge/2),oe=Math.max(oe,be+Ge/2)}z.nodes().forEach(ce=>Ce(z.node(ce))),z.edges().forEach(ce=>{let de=z.edge(ce);Object.hasOwn(de,"x")&&Ce(de)}),W-=re,Z-=he,z.nodes().forEach(ce=>{let de=z.node(ce);de.x-=W,de.y-=Z}),z.edges().forEach(ce=>{let de=z.edge(ce);de.points.forEach(be=>{be.x-=W,be.y-=Z}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=Z)}),ee.width=G-W+re,ee.height=oe-Z+he}function D(z){z.edges().forEach(W=>{let G=z.edge(W),Z=z.node(W.v),oe=z.node(W.w),ee,re;G.points?(ee=G.points[0],re=G.points[G.points.length-1]):(G.points=[],ee=oe,re=Z),G.points.unshift(h.intersectRect(Z,ee)),G.points.push(h.intersectRect(oe,re))})}function V(z){z.edges().forEach(W=>{let G=z.edge(W);if(Object.hasOwn(G,"x"))switch((G.labelpos==="l"||G.labelpos==="r")&&(G.width-=G.labeloffset),G.labelpos){case"l":G.x-=G.width/2+G.labeloffset;break;case"r":G.x+=G.width/2+G.labeloffset;break}})}function L(z){z.edges().forEach(W=>{let G=z.edge(W);G.reversed&&G.points.reverse()})}function U(z){z.nodes().forEach(W=>{if(z.children(W).length){let G=z.node(W),Z=z.node(G.borderTop),oe=z.node(G.borderBottom),ee=z.node(G.borderLeft[G.borderLeft.length-1]),re=z.node(G.borderRight[G.borderRight.length-1]);G.width=Math.abs(re.x-ee.x),G.height=Math.abs(oe.y-Z.y),G.x=ee.x+G.width/2,G.y=Z.y+G.height/2}}),z.nodes().forEach(W=>{z.node(W).dummy==="border"&&z.removeNode(W)})}function q(z){z.edges().forEach(W=>{if(W.v===W.w){var G=z.node(W.v);G.selfEdges||(G.selfEdges=[]),G.selfEdges.push({e:W,label:z.edge(W)}),z.removeEdge(W)}})}function X(z){var W=h.buildLayerMatrix(z);W.forEach(G=>{var Z=0;G.forEach((oe,ee)=>{var re=z.node(oe);re.order=ee+Z,(re.selfEdges||[]).forEach(he=>{h.addDummyNode(z,"selfedge",{width:he.label.width,height:he.label.height,rank:re.rank,order:ee+ ++Z,e:he.e,label:he.label},"_se")}),delete re.selfEdges})})}function F(z){z.nodes().forEach(W=>{var G=z.node(W);if(G.dummy==="selfedge"){var Z=z.node(G.e.v),oe=Z.x+Z.width/2,ee=Z.y,re=G.x-oe,he=Z.height/2;z.setEdge(G.e,G.label),z.removeNode(W),G.label.points=[{x:oe+2*re/3,y:ee-he},{x:oe+5*re/6,y:ee-he},{x:oe+re,y:ee},{x:oe+5*re/6,y:ee+he},{x:oe+2*re/3,y:ee+he}],G.label.x=G.x,G.label.y=G.y}})}function J(z,W){return h.mapValues(h.pick(z,W),Number)}function Q(z){var W={};return z&&Object.entries(z).forEach(([G,Z])=>{typeof G=="string"&&(G=G.toLowerCase()),W[G]=Z}),W}return $A}var PA,LJ;function kWe(){if(LJ)return PA;LJ=1;let e=_n(),r=fs().Graph;PA={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(s=>{i.setNode(s,{label:s}),i.setParent(s,"layer"+o.node(s).rank)}),o.edges().forEach(s=>i.setEdge(s.v,s.w,{},s.name)),a.forEach((s,l)=>{let c="layer"+l;i.setNode(c,{rank:"same"}),s.reduce((u,d)=>(i.setEdge(u,d,{style:"invis"}),d))}),i}return PA}var IJ,zJ;function _We(){return zJ||(zJ=1,IJ="1.1.5"),IJ}var jJ,BJ;function EWe(){return BJ||(BJ=1,jJ={graphlib:fs(),layout:wWe(),debug:kWe(),util:{time:_n().time,notime:_n().notime},version:_We()}),jJ}var SWe=EWe();const Lk=$6(SWe),go={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:140,height:10,minlen:1,weight:1},emptyNodeOffset:120,nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function CWe(){const e=new Lk.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...go.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...go.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const MA="-port";function OA(e,r,n){const o=new lo(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=zx(r);for(const i of a.sorted){const s=a.children(i).length>0,l=i.id,c=`${e}-${l}`,u=s?`${c}${MA}`:c;o.set(l,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:s,portId:u,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight}),s&&(n.setNode(u,{element:i,portId:u,isCompound:s,inPorts:[],outPorts:[],width:go.nodeWidth-go.dagre.ranksep,height:go.compound.labelHeight}),n.setParent(u,c));const d=a.parent(i);d&&n.setParent(c,`${e}-${d.id}`)}return{...a,byId:i=>{const s=a.byId(i),l=o.get(s.id);return{element:s,graph:l}},graphNodes:o}}function TWe(e){return Lk.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:s}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(s/2)},width:i,height:s}}}var Ik;(e=>{e.Empty="@empty"})(Ik||(Ik={}));function AWe(e,r){const n=CWe(),o=OA("incomers",e.incomers,n),a=OA("subjects",e.subjects,n),i=OA("outgoers",e.outgoers,n),s=[];yn(cRe(yn(K0(e.incoming),Ao(T=>({id:T.source.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:o.byId(T.source.id).graph,target:a.byId(T.target.id).graph,relation:T}))),yn(K0(e.outgoing),Ao(T=>({id:T.target.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:a.byId(T.source.id).graph,target:i.byId(T.target.id).graph,relation:T})))),Ao(T=>({...T,expr:`${T.source.id}->${T.target.id}`})),NRe(Ca("expr")),TRe(T=>{const A=T[0].source,N=T[0].target,$=T[0].expr;n.node(A.id).outPorts.push(N.id),n.node(N.id).inPorts.push(A.id),n.setEdge(A.portId,N.portId,{...go.edgeLabel},$),s.push({name:$,sourceFqn:T[0].sourceFqn,targetFqn:T[0].targetFqn,source:A.id,sourceHandle:A.id+"_out"+(n.node(A.id).outPorts.length-1),target:N.id,targetHandle:N.id+"_in"+(n.node(N.id).inPorts.length-1),relations:Ao(T,Ca("relation"))})}));for(const T of a.graphNodes.values()){const A=T.id,N=n.node(A);if(N.isCompound)continue;const $=Math.max(n.inEdges(A)?.length??0,n.outEdges(A)?.length??0);$>2&&(N.height=N.height+($-3)*14)}const l=[...o.graphNodes.values(),...a.graphNodes.values(),...i.graphNodes.values()];if(o.graphNodes.size==0){const T="incomers-empty";n.setNode(T,{column:"incomers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight});for(const A of a.graphNodes.values())n.setEdge(T,A.portId);l.push({id:T,portId:T})}if(i.graphNodes.size==0){const T="outgoers-empty";n.setNode(T,{column:"outgoers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight});for(const A of a.graphNodes.values())n.setEdge(A.portId,T);l.push({id:T,portId:T})}const c=n.edgeCount();if(c>10)for(const T of n.edges())n.setEdge(T,{...go.edgeLabel,width:c>25?800:400});const u=TWe(n),d=yn(l,dp(T=>T.id===T.portId),E1(T=>[T.id,u(T.id)]));function h(T){return d[T]??=yn(n.children(T)??[],dp(A=>!A.endsWith(MA)),Ao(A=>h(A)),uV(A=>{nt(A.length>0,`Node ${T} has no nested nodes`)}),fp((A,N)=>({minY:Math.min(A.minY,N.position.y),maxY:Math.max(A.maxY,N.position.y+N.height)}),{minY:1/0,maxY:-1/0}),({minY:A,maxY:N})=>{const{position:{x:$},width:R}=u(T);return A=A-go.compound.paddingTop,N=N+go.compound.paddingBottom,{position:{x:$,y:A},width:R,height:N-A}})}function p(T){const A=n.parent(T);return A?p(A)+1:0}function g(T){const A=n.children(T)??[];return A.length===0?0:1+Math.max(...A.map(g))}const y=(T,A,N)=>yn(N,Ao(($,R)=>({port:T+"_"+A+R,topY:h($).position.y})),jw(Ca("topY")),Ao(Ca("port")));let x=0,w=0;const[k]=[...a.root];nt(k,"Subjects should not be empty");let C=h(a.graphNodes.get(k.id).id);const _=l.map(({id:T})=>{const{element:A,inPorts:N,outPorts:$,column:R}=n.node(T);let{position:M,width:O,height:B}=h(T);if(!A){if(B=Math.min(C.height,300),M.y=C.position.y+C.height/2-B/2,R==="incomers")O=C.position.x-go.emptyNodeOffset-M.x;else{const q=M.x+O;M.x=C.position.x+C.width+go.emptyNodeOffset,O=q-M.x}return{id:T,parent:null,x:M.x,y:M.y,title:"empty node",description:Kt.EMPTY,technology:null,tags:[],links:[],color:"muted",shape:"rectangle",style:{border:"dashed",opacity:50},kind:Ik.Empty,level:0,labelBBox:{x:M.x,y:M.y,width:O,height:B},children:[],width:O,height:B,column:R,ports:{in:[],out:[]},existsInCurrentView:!1}}const I=n.parent(T),Y=(n.children(T)??[]).filter(q=>!q.endsWith(MA));x=Math.min(x,M.x),w=Math.min(w,M.y);const D=r?G0(A.scopedViews(),q=>q.id!==r.id)?.id??null:null,V=r?.findNodeWithElement(A.id),L=r&&!V?G0(A.ancestors(),q=>!!r.findNodeWithElement(q.id))?.id:null,U=V??(L&&r?.findNodeWithElement(L));return{id:T,parent:I??null,x:M.x,y:M.y,title:A.title,description:A.summary,technology:A.technology,tags:[...A.tags],links:null,color:U?.color??A.color,shape:V?.shape??A.shape,icon:V?.icon??A.icon??"none",modelRef:A.id,kind:A.kind,level:p(T),labelBBox:{x:M.x,y:M.y,width:O,height:B},style:Vd({...(V??U)?.style,...A.$element.style},["color","shape","icon"]),navigateTo:D,...Y.length>0&&{depth:g(T)},children:Y,width:O,height:B,column:R,ports:{in:y(T,"in",N),out:y(T,"out",$)},existsInCurrentView:!!V}});return{subjectExistsInScope:!r||r.includesElement(k.id),bounds:{x:Math.min(x,0),y:Math.min(w,0),width:n.graph().width??100,height:n.graph().height??100},nodes:_,edges:n.edges().reduce((T,A)=>{const N=n.edge(A),$=A.name;if(!$)return T;const{name:R,source:M,sourceFqn:O,target:B,targetFqn:I,relations:Y,sourceHandle:D,targetHandle:V}=mt(Iw(s,F=>F.name===$)),L=zw(Y),U=L?.title??"untitled",q=Y.length>1,X=zw(Y6(Y.flatMap(F=>F.navigateTo?.id?F.navigateTo.id:[])));return T.push(V0({id:R,sourceFqn:O,source:M,sourceHandle:D,targetFqn:I,target:B,targetHandle:V,label:q?`${Y.length} relationships`:U,navigateTo:X,color:L?.color??"gray",existsInCurrentView:!r||Y.every(F=>r.includesRelation(F.id)),points:N.points.map(F=>[F.x,F.y]),line:L?.line??"dashed",head:L?.head,tail:L?.tail,relations:Y.map(F=>F.id),parent:null})),T},[])}}function NWe(e,r,n){const o=Ho();return E.useMemo(()=>{const a=r?o.findView(r):null,i=AWe(dB(e,o,r,n),n==="view"?a:null);return a&&(n==="global"||!i.subjectExistsInScope)&&(i.edges=i.edges.map(s=>(s.existsInCurrentView=s.relations.every(l=>a.includesRelation(l)),s))),Object.assign(i,{subject:e})},[o,e,r,n,dB])}const Cy=(e,r)=>rx(e.label,r.label);function DA(e){return{label:e.title,value:e.id,children:[...e.children()].map(DA).sort(Cy)}}function RWe(e){const r=Ho();return E.useMemo(()=>e?[...r.view(e).roots()].map(DA).sort(Cy):[...r.roots()].map(DA).sort(Cy),[r,e??null])}const $We=ye({margin:"0"}),PWe=ye({_hover:{backgroundColor:"mantine.colors.gray[0]",_dark:{backgroundColor:"mantine.colors.defaultHover",color:"mantine.colors.white"}}}),FJ=ye({maxHeight:["70vh","calc(100cqh - 70px)"]}),MWe=Object.freeze(Object.defineProperty({__proto__:null,label:PWe,node:$We,scrollArea:FJ},Symbol.toStringTag,{value:"Module"}));/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const OWe=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],LA=yt("outline","selector","Selector",OWe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const DWe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],hh=yt("outline","chevron-right","ChevronRight",DWe),LWe=e=>{const r=e.context.layouted?.subjectExistsInScope??!1;return{subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,subjectExistsInScope:r,enableSelectSubject:e.context.enableSelectSubject,enableChangeScope:e.context.enableChangeScope}},IWe=()=>{},zWe=E.memo(()=>{const e=Sy(),{subjectId:r,viewId:n,scope:o,subjectExistsInScope:a,enableSelectSubject:i,enableChangeScope:s}=Ok(LWe),l=E.useRef(null),c=E.useRef(null),u=Ho().findElement(r),d=RWe(o==="view"&&n?n:void 0),h=Y1({multiple:!1});return h.setHoveredNode=IWe,E.useEffect(()=>{bd(r).reverse().forEach(p=>{h.expand(p)}),h.select(r)},[r]),b.jsxs(Ur,{ref:l,gap:"xs",pos:"relative",children:[i&&b.jsxs(Ur,{gap:4,wrap:"nowrap",children:[b.jsx(Se,{fz:"xs",fw:"500",style:{whiteSpace:"nowrap",userSelect:"none"},children:"Relationships of"}),b.jsx(Se,{pos:"relative",children:b.jsxs(mr,{position:"bottom-start",shadow:"md",keepMounted:!1,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],offset:4,onOpen:()=>{setTimeout(()=>{c.current?.querySelector(`[data-value="${r}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[b.jsx(pu,{children:b.jsx(Zn,{size:"xs",variant:"default",maw:250,rightSection:b.jsx(LA,{size:16}),children:b.jsx(wt,{fz:"xs",fw:"500",truncate:!0,children:u?.title??"???"})})}),b.jsx(Xl,{p:0,miw:250,maw:400,children:b.jsx(ta,{scrollbars:"y",type:"never",viewportRef:c,className:FJ,children:b.jsx(Bp,{allowRangeSelection:!1,selectOnClick:!1,tree:h,data:d,classNames:MWe,levelOffset:8,styles:{root:{maxWidth:400,overflow:"hidden"},label:{paddingTop:5,paddingBottom:6}},renderNode:({node:p,selected:g,expanded:y,elementProps:x,hasChildren:w})=>b.jsxs(Ur,{gap:2,wrap:"nowrap",...x,py:"3",children:[b.jsx(or,{variant:"subtle",size:18,c:"dimmed",style:{visibility:w?"visible":"hidden"},children:b.jsx(hh,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${y?"90deg":"0"})`,width:"80%"}})}),b.jsx(Se,{flex:"1 1 100%",w:"100%",onClick:k=>{k.stopPropagation(),h.select(p.value),h.expand(p.value),e.navigateTo(p.value)},children:b.jsx(wt,{fz:"sm",fw:g?"600":"400",truncate:"end",children:p.label})})]})})})})]})})]}),s&&b.jsxs(Ur,{gap:4,wrap:"nowrap",children:[i&&b.jsx(Se,{fz:"xs",fw:"500",...!a&&{c:"dimmed"},style:{whiteSpace:"nowrap",userSelect:"none"},children:"Scope"}),b.jsx("div",{children:b.jsx(po,{color:"orange",label:b.jsxs(b.Fragment,{children:["This element does not exist in the current view",o==="view"&&b.jsxs(b.Fragment,{children:[b.jsx("br",{}),"Scope is set to global"]})]}),position:"bottom-start",disabled:a,portalProps:{target:l.current},children:b.jsx(U1,{flex:"1 0 auto",size:"xs",withItemsBorders:!1,value:o,styles:{label:{paddingLeft:8,paddingRight:8}},onChange:p=>{e.changeScope(p)},data:[{label:"Global",value:"global"},{label:b.jsx("span",{children:"Current view"}),value:"view",disabled:!a}]})})})]})]})}),zk=(e,r)=>Math.abs(e-r)<2.5,jWe=(e,r)=>e.id===r.id&&ut(e.selected??!1,r.selected??!1)&&ut(e.animated??!1,r.animated??!1)&&ut(e.source,r.source)&&ut(e.sourceHandleId??null,r.sourceHandleId??null)&&ut(e.sourcePosition,r.sourcePosition)&&ut(e.target,r.target)&&ut(e.targetHandleId??null,r.targetHandleId??null)&&ut(e.targetPosition,r.targetPosition)&&zk(e.sourceX,r.sourceX)&&zk(e.sourceY,r.sourceY)&&zk(e.targetX,r.targetX)&&zk(e.targetY,r.targetY)&&ut(e.data,r.data);function IA(e){return E.memo(e,jWe)}const BWe=["Controls","ReadOnly","FocusMode","NavigateTo","ElementDetails","RelationshipDetails","RelationshipBrowser","Search","NavigationButtons","Notations","DynamicViewWalkthrough","EdgeEditing","FitView","Vscode","ElementTags"],HJ=E1(BWe,e=>[`enable${e}`,!1]),zA=E.createContext(HJ),FWe=e=>{let{enableReadOnly:r,enableEdgeEditing:n,...o}=e;return r&&(n=!1),{enableReadOnly:r,enableEdgeEditing:n,...o}};function fh({children:e,features:r,overrides:n}){const o=E.useContext(zA),[a,i]=E.useState(o);return E.useEffect(()=>{i(s=>{const l=FWe({...o,...r,...n});return Xn(s,l)?s:l})},[o,r,n]),b.jsx(zA.Provider,{value:a,children:e})}fh.Overlays=({children:e})=>b.jsx(fh,{overrides:{enableControls:!1,enableReadOnly:!0,enableEdgeEditing:!1},children:e});function wr(){return E.useContext(zA)}function HWe({feature:e,children:r,and:n=!0}){return wr()[`enable${e}`]===!0&&n?b.jsx(b.Fragment,{children:r}):null}function jA(e,r){return wk(e,r)}const ps=jA("button"),Qr=jA("div"),UWe=jA("span"),Ty=E.forwardRef(({edgeProps:{id:e,data:{label:r,technology:n,hovered:o=!1},selected:a=!1,selectable:i=!1},className:s,style:l,children:c,...u},d)=>{const h=v0(e)?BL(e):null,p=Dqe({isStepEdge:h!==null,cursor:i||h!==null?"pointer":"default"}),g=Sa(r)||Sa(n);return b.jsxs(Qr,{ref:d,className:Je(p.root,"likec4-edge-label",s),"data-edge-id":e,animate:{scale:o&&!a?1.06:1},...u,children:[h!==null&&b.jsx(Vr,{className:p.stepNumber,children:h}),g&&b.jsxs(Vr,{className:p.labelContents,children:[Sa(r)&&b.jsx(Vr,{className:Je(p.labelText,ye({lineClamp:5})),children:r}),Sa(n)&&b.jsx(Vr,{className:p.labelTechnology,children:"[ "+n+" ]"}),c]})]})});Ty.displayName="EdgeLabel";function jk({icon:e,onClick:r}){return b.jsx(or,{className:Je("nodrag nopan",Eqe()),onPointerDownCapture:cn,onClick:r,role:"button",onDoubleClick:cn,children:e??b.jsx(gi,{})})}const VWe=".react-flow__edge.selected",qWe=ye({_reduceGraphics:{transition:"none"}}),YWe=ye({pointerEvents:"none",fill:"none",strokeWidth:"calc(var(--xy-edge-stroke-width) + 2)",strokeOpacity:.08,_noReduceGraphics:{transitionProperty:"stroke-width, stroke-opacity",transitionDuration:"fast",transitionTimingFunction:"inOut"},_whenHovered:{transitionTimingFunction:"out",strokeWidth:"calc(var(--xy-edge-stroke-width) + 4)",strokeOpacity:.2},_whenSelected:{strokeWidth:"calc(var(--xy-edge-stroke-width) + 6)",strokeOpacity:.25,_whenHovered:{strokeOpacity:.4}}}),WWe=ye({fill:"[var(--xy-edge-stroke)]",stroke:"[var(--xy-edge-stroke)]"}),XWe=ye({fill:"none",strokeDashoffset:0,_noReduceGraphics:{animationStyle:"xyedgeAnimated",animationPlayState:"paused",transition:"stroke 130ms ease-out,stroke-width 130ms ease-out"},":where([data-edge-dir='back']) &":{animationDirection:"reverse"},_whenHovered:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"450ms"}},[`:where(${VWe}, [data-edge-active='true'], [data-edge-animated='true']) &`]:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"0ms"}},_whenDimmed:{animationPlayState:"paused"},_smallZoom:{animationName:"none"},_whenPanning:{strokeDasharray:"none !important",animationPlayState:"paused"}});function Ay({className:e,component:r="g",data:{color:n="gray",hovered:o=!1,active:a=!1,dimmed:i=!1,...s},children:l,style:c}){const u={className:Je(e,qWe,"likec4-edge-container"),"data-likec4-color":n,"data-edge-dir":s.dir??"forward","data-edge-active":a,"data-edge-animated":a,"data-likec4-hovered":o,...i!==!1&&{"data-likec4-dimmed":i}};return r==="svg"?b.jsx("svg",{style:c,...u,children:l}):(nt(r==="g",'EdgeContainer: component must be "g" or "svg"'),b.jsx("g",{style:c,...u,children:l}))}const GWe=e=>b.jsx("marker",{viewBox:"-4 -4 14 16",refX:5,refY:4,markerWidth:"7",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M0,0 L7,4 L0,8 L4,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeDasharray:0,strokeWidth:1,strokeLinecap:"round"})}),KWe=e=>b.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",fill:"context-stroke",strokeWidth:0})}),ZWe=e=>b.jsx("marker",{viewBox:"-1 -1 12 12",refX:8,refY:4,markerWidth:"8",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",fill:"none",strokeWidth:1})}),QWe=e=>b.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinejoin:"miter",strokeLinecap:"square"})}),JWe=e=>b.jsx("marker",{viewBox:"-4 -4 16 14",refX:5,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",fill:"context-stroke",strokeWidth:0,strokeLinecap:"round"})}),eXe=e=>b.jsx("marker",{viewBox:"-4 -4 16 14",refX:6,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinecap:"round"})}),tXe=e=>b.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:b.jsx("circle",{strokeWidth:0,fill:"context-stroke",cx:4,cy:4,r:3})}),rXe=e=>b.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:b.jsx("circle",{strokeWidth:1.25,stroke:"context-stroke",fill:"context-stroke",cx:4,cy:4,r:3})}),UJ={Arrow:KWe,Crow:ZWe,OArrow:QWe,Open:GWe,Diamond:JWe,ODiamond:eXe,Dot:tXe,ODot:rXe};function VJ(e){if(!(!e||e==="none"))switch(e){case"normal":return"Arrow";case"crow":return"Crow";case"onormal":return"OArrow";case"diamond":return"Diamond";case"odiamond":return"ODiamond";case"open":case"vee":return"Open";case"dot":return"Dot";case"odot":return"ODot";default:Ga(e)}}const Ny=E.forwardRef(({edgeProps:{id:e,data:{line:r,dir:n,tail:o,head:a},selectable:i=!0,style:s,interactionWidth:l},onEdgePointerDown:c,strokeWidth:u,svgPath:d},h)=>{let p=VJ(o),g=VJ(a??"normal");n==="back"&&([p,g]=[g,p]);const y=p?UJ[p]:null,x=g?UJ[g]:null,w=r==="dotted",k=w||r==="dashed";let C;return w?C="1,8":k&&(C="8,10"),b.jsxs(b.Fragment,{children:[i&&b.jsx("path",{className:Je("react-flow__edge-interaction","hide-on-reduced-graphics",ye({fill:"none"})),d,style:{strokeWidth:l??10,stroke:"currentcolor",strokeOpacity:0}}),b.jsxs("g",{className:WWe,onPointerDown:c,children:[b.jsxs("defs",{children:[y&&b.jsx(y,{id:"start"+e}),x&&b.jsx(x,{id:"end"+e})]}),b.jsx("path",{className:Je("react-flow__edge-path","hide-on-reduced-graphics",YWe),d,style:s,strokeLinecap:"round"}),b.jsx("path",{ref:h,className:Je("react-flow__edge-path",i&&"react-flow__edge-interaction",XWe),d,style:s,strokeWidth:u,strokeLinecap:"round",strokeDasharray:C,markerStart:y?`url(#start${e})`:void 0,markerEnd:x?`url(#end${e})`:void 0})]})]})});Ny.displayName="EdgePath";const qJ=e=>{if(e!==void 0)return nV(e)?`${Math.round(e)}px`:e};function Bk({edgeProps:{id:e,data:{hovered:r=!1,active:n=!1,dimmed:o=!1,labelBBox:a,color:i="gray"}},labelPosition:s,className:l,style:c,children:u,...d}){let h=D9(E.useCallback(x=>x.edgeLookup.get(e)?.zIndex??ds.Edge,[e]));(r||n)&&(h+=100);let p=s?.x??a?.x,g=s?.y??a?.y;if(p===void 0||g===void 0)return null;const y=s?.translate;return b.jsx(OU,{children:b.jsx("div",{...d,className:Je("nodrag nopan","likec4-edge-label-container",l),"data-likec4-hovered":r,"data-likec4-color":i,"data-edge-active":n,"data-edge-animated":n,...o!==!1&&{"data-likec4-dimmed":o},style:{...a&&{maxWidth:a.width+18},zIndex:h,...c,transform:`translate(${qJ(p)}, ${qJ(g)}) ${y||""}`},children:u},e)})}const nXe=IA(e=>{const r=Sy(),{enableNavigateTo:n}=wr(),{data:{navigateTo:o,relations:a,existsInCurrentView:i}}=e,[s,l,c]=kw(e),u=Wt(),d=a.length>1||!i,h=d?{...e,data:{...e.data,line:"solid",color:"amber"}}:e;let p=b.jsx(Ty,{edgeProps:h,className:ye({transition:"fast"}),children:n&&o&&b.jsx(jk,{...e,onClick:g=>{g.stopPropagation(),u.navigateTo(o)}})});return i||(p=b.jsx(po,{color:"orange",c:"black",label:"This relationship is not included in the current view",portalProps:{target:`#${r.rootElementId}`},openDelay:800,children:p})),b.jsxs(Ay,{...h,children:[b.jsx(Ny,{edgeProps:h,svgPath:s,...d&&{strokeWidth:5}}),b.jsx(Bk,{edgeProps:h,labelPosition:{x:l,y:c,translate:"translate(-50%, 0)"},style:{maxWidth:Math.min(Math.abs(e.targetX-e.sourceX-70),250)},children:p})]})}),oXe=ye({width:"100%",height:"100%",border:"3px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"md",display:"flex",justifyContent:"center",alignItems:"center"});function aXe({data:{column:e}}){return b.jsx(Se,{className:oXe,children:b.jsxs(wt,{c:"dimmed",fz:"lg",fw:500,children:["No ",e==="incomers"?"incoming":"outgoing"]})})}const iXe=e=>e.context.view.id;function Fk(){const e=Jp();return wn(e,iXe)}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const sXe=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],lXe=yt("outline","bolt","Bolt",sXe),cXe=Uo({position:"absolute",zIndex:1,justifyContent:"center",alignItems:"center",_smallZoom:{display:"none"}}),uXe=Uo({gap:"1.5",justifyContent:"center",alignItems:"center"});function Hk({selected:e=!1,data:{hovered:r=!1},buttons:n}){const o=Ta();return n.length?b.jsx(Vr,{className:cXe,style:{top:"calc(100% - 30px)",transform:"translateX(-50%)",left:"50%",width:"auto",minHeight:30},children:b.jsx(Qr,{layoutRoot:!0,initial:!1,style:{originY:0},animate:{opacity:r||e?1:.75,scale:r?1.1:e?.9:.8,y:r||e?6:0},"data-likec4-hovered":r,className:Je("nodrag nopan",uXe),children:n.map((a,i)=>b.jsx(or,{component:ps,className:Ek({}),initial:!1,whileTap:{scale:1},whileHover:{scale:1.3},onClick:a.onClick,onDoubleClick:cn,children:a.icon||b.jsx(lXe,{})},`${o}-${a.key??i}`))},`${o}-action-buttons`)}):null}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const dXe=[["path",{d:"M3 6a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3",key:"svg-1"}],["path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3",key:"svg-2"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-3"}]],Ry=yt("outline","transform","Transform",dXe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const hXe=[["path",{d:"M4 21v-4a3 3 0 0 1 3 -3h5",key:"svg-0"}],["path",{d:"M9 17l3 -3l-3 -3",key:"svg-1"}],["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-2"}],["path",{d:"M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5",key:"svg-3"}]],pm=yt("outline","file-symlink","FileSymlink",hXe),fXe=e=>{const{enableNavigateTo:r,enableVscode:n}=wr(),o=Wt(),a=Fk(),i=Sy(),s=Ok(d=>d.context.subject),l=[],{navigateTo:c,fqn:u}=e.data;return c&&r&&a!==c&&l.push({key:"navigate",icon:b.jsx(gi,{}),onClick:d=>{d.stopPropagation(),o.navigateTo(c)}}),u!==s&&l.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:d=>{d.stopPropagation(),i.navigateTo(u,e.id)}}),n&&l.push({key:"goToSource",icon:b.jsx(pm,{}),onClick:d=>{d.stopPropagation(),o.openSource({element:u})}}),b.jsx(Hk,{buttons:l,...e})};function $y({nodeProps:{data:{hovered:e=!1,dimmed:r=!1,...n}},className:o,children:a,style:i,...s}){let l=Ki(n.style.opacity??100,{min:0,max:100});const c=l<99,u=65,d=u+Ki((100-u)*(l/100),{min:0,max:100-u}),h=_qe({isTransparent:c,inverseColor:l<60,borderStyle:n.style.border??(c?"dashed":"none")}),p=Ki(n.depth??1,{min:1,max:5});return b.jsx(Qr,{className:Je(h,o),initial:!1,"data-likec4-hovered":e,"data-likec4-color":n.color,"data-compound-depth":p,...r!==!1&&{"data-likec4-dimmed":r},style:{...i,"--_border-transparency":`${d}%`,"--_compound-transparency":`${l}%`},...s,children:a})}function Py({data:e}){const r=Vx({element:e,className:"likec4-compound-icon"});return b.jsxs("div",{className:"likec4-compound-title-container",children:[r,b.jsx(wt,{component:"h3",className:"likec4-compound-title",truncate:"end",children:e.title})]})}const YJ=J0({base:{transitionDuration:"normal"},variants:{delay:{true:{transitionDelay:{base:"0.2s",_hover:"0s"}}}}});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const pXe=[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M9 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 8l2 0",key:"svg-2"}],["path",{d:"M15 12l2 0",key:"svg-3"}],["path",{d:"M7 16l10 0",key:"svg-4"}]],BA=yt("outline","id","Id",pXe);function WJ({data:{hovered:e=!1},icon:r,onClick:n}){const o=tC(e,e?130:0)[0]&&e;return b.jsx(Qr,{initial:!1,animate:{scale:o?1.2:1},whileHover:{scale:1.4},whileTap:{scale:1},className:"likec4-compound-details details-button",children:b.jsx(or,{className:Je("nodrag nopan",YJ({delay:e&&!o}),Ek({variant:"transparent"})),onClick:n,onDoubleClick:cn,children:r??b.jsx(BA,{stroke:1.8,style:{width:"75%"}})})})}const mXe=ye({position:"relative",width:"100%",height:"100%",padding:"0",margin:"0",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",_before:{content:'" "',position:"absolute",top:"[calc(100% - 4px)]",left:"0",width:"100%",height:"24px",background:"[transparent]",pointerEvents:"all"},_focusVisible:{outline:"none"},_reduceGraphicsOnPan:{_before:{display:"none"}},":where(.react-flow__node.selectable:not(.dragging)) &":{cursor:"pointer"}}),mm=E.forwardRef(({nodeProps:{selected:e=!1,selectable:r=!1,data:{hovered:n=!1,dimmed:o=!1,...a}},className:i,style:s,children:l,...c},u)=>{let d=1;switch(!0){case n:d=1.05;break;case e:d=1.02;break}const{size:h,padding:p,textSize:g}=ex(a.style??{});return b.jsx(Qr,{ref:u,className:Je(mXe,"group","likec4-element-node",i),initial:!1,...r&&{animate:{scale:d},whileTap:{scale:.98}},"data-likec4-hovered":n,"data-likec4-color":a.color,"data-likec4-shape":a.shape,"data-likec4-shape-size":h,"data-likec4-spacing":p,"data-likec4-text-size":g,...o!==!1&&{"data-likec4-dimmed":o},style:{...s},...c,children:l})});mm.displayName="ElementNodeContainer";function XJ(e,r,n=.065){const o=Math.round(e/2),a=o,i=yi(n*o),s=r-2*i;return{path:`  M ${e},${i}
        a ${a},${i} 0,0,0 ${-e} 0
        l 0,${s}
        a ${a},${i} 0,0,0 ${e} 0
        l 0,${-s}
        z
        `.replace(/\s+/g," ").trim(),ry:i,rx:a}}function GJ(e,r,n=.185){const o=r,a=Math.round(o/2),i=yi(o/2*n),s=e-2*i;return{path:`
    M ${i},0
    a ${i},${a} 0,0,0 0 ${o}
    l ${s},0
    a ${i},${a} 0,0,0 0 ${-o}
    z`.replace(/\s+/g," ").trim(),ry:a,rx:i}}const ph={width:115,height:120,path:"M57.9197 0C10.9124 0 33.5766 54.75 33.5766 54.75C38.6131 62.25 45.3285 60.75 45.3285 66C45.3285 70.5 39.4526 72 33.5766 72.75C24.3431 72.75 15.9489 71.25 7.55474 84.75C2.51825 93 0 120 0 120H115C115 120 112.482 93 108.285 84.75C99.8905 70.5 91.4963 72.75 82.2628 72C76.3869 71.25 70.5109 69.75 70.5109 65.25C70.5109 60.75 77.2263 62.25 82.2628 54C82.2628 54.75 104.927 0 57.9197 0V0Z"};function KJ({shape:e,w:r,h:n}){switch(e){case"mobile":return b.jsxs(b.Fragment,{children:[b.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),b.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[b.jsx("circle",{cx:17,cy:n/2,r:12}),b.jsx("rect",{x:33,y:12,width:r-44,height:n-24,rx:5})]})]});case"browser":return b.jsxs(b.Fragment,{children:[b.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),b.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[b.jsx("circle",{cx:16,cy:17,r:7}),b.jsx("circle",{cx:36,cy:17,r:7}),b.jsx("circle",{cx:56,cy:17,r:7}),b.jsx("rect",{x:70,y:8,width:r-80,height:17,rx:4}),b.jsx("rect",{x:10,y:32,width:r-20,height:n-42,rx:4})]})]});case"person":return b.jsxs(b.Fragment,{children:[b.jsx("rect",{width:r,height:n,rx:6,strokeWidth:0}),b.jsx("svg",{x:r-ph.width-6,y:n-ph.height,width:ph.width,height:ph.height,viewBox:`0 0 ${ph.width} ${ph.height}`,"data-likec4-fill":"mix-stroke",children:b.jsx("path",{strokeWidth:0,d:ph.path})})]});case"queue":{const{path:o,rx:a,ry:i}=GJ(r,n);return b.jsxs(b.Fragment,{children:[b.jsx("path",{d:o,strokeWidth:2}),b.jsx("ellipse",{cx:a,cy:i,ry:i-.75,rx:a,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}case"storage":case"cylinder":{const{path:o,rx:a,ry:i}=XJ(r,n);return b.jsxs(b.Fragment,{children:[b.jsx("path",{d:o,strokeWidth:2}),b.jsx("ellipse",{cx:a,cy:i,ry:i,rx:a-.75,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}default:return Ga(e)}}function gXe({shape:e,w:r,h:n}){let o;switch(e){case"queue":o=b.jsx("path",{d:GJ(r,n).path});break;case"storage":case"cylinder":{o=b.jsx("path",{d:XJ(r,n).path});break}default:{o=b.jsx("rect",{x:-1,y:-1,width:r+2,height:n+2,rx:6});break}}return b.jsx("g",{className:"likec4-shape-outline",children:o})}function yXe({multiple:e,withOutLine:r}){return b.jsxs("div",{className:lQ({shapetype:"html"}),children:[e&&b.jsx("div",{className:"likec4-shape-multiple"}),r&&b.jsx("div",{className:"likec4-shape-outline"})]})}function gm({data:e,width:r,height:n,showSeletionOutline:o=!0}){let a=r&&r>10?r:e.width,i=n&&n>10?n:e.height;const s=e.style?.multiple??!1;if(e.shape==="rectangle")return b.jsx(yXe,{multiple:s,withOutLine:o});const l=lQ({shapetype:"svg"});return b.jsxs(b.Fragment,{children:[s&&b.jsx("svg",{className:l,"data-likec4-shape-multiple":"true",viewBox:`0 0 ${a} ${i}`,children:b.jsx(KJ,{shape:e.shape,w:a,h:i})}),b.jsxs("svg",{className:l,viewBox:`0 0 ${a} ${i}`,children:[o&&b.jsx(gXe,{shape:e.shape,w:a,h:i}),b.jsx(KJ,{shape:e.shape,w:a,h:i})]})]})}const mh=E.forwardRef(({value:e,textScale:r=1,uselikec4palette:n=!1,hideIfEmpty:o=!1,emptyText:a="no content",className:i,style:s,fontSize:l,...c},u)=>{if(e.isEmpty&&o)return null;const d=e.nonEmpty?e.isMarkdown?{dangerouslySetInnerHTML:{__html:e.html}}:{children:b.jsx("p",{children:e.text})}:{children:b.jsx(wt,{component:"span",fz:"xs",c:"dimmed",style:{userSelect:"none"},children:a})};return b.jsx(Vr,{ref:u,...c,className:Je(Tqe({uselikec4palette:n,value:e.isMarkdown?"markdown":"plaintext"}),i),style:{...s,...l&&{"--text-fz":`var(--font-sizes-${l}, var(--font-sizes-md))`},"--mantine-scale":r},...d})});mh.displayName="Markdown";const ZJ=E.forwardRef(({className:e,...r},n)=>b.jsx("div",{...r,ref:n,className:Je(e,Sqe(),"likec4-element")})),QJ=({data:e,...r})=>b.jsx(Vx,{element:e,...r}),JJ=E.forwardRef(({className:e,...r},n)=>b.jsx("div",{...r,className:Je(e,"likec4-element-node-content"),ref:n})),eee=E.forwardRef(({data:{title:e,style:r},className:n,...o},a)=>{const{size:i}=ex(r),s=i==="sm"||i==="xs";return b.jsx(wt,{component:"div",...o,className:Je(n,"likec4-element-title"),"data-likec4-node-title":"",lineClamp:s?2:3,ref:a,children:e})}),tee=E.forwardRef(({data:e,children:r,className:n,...o},a)=>{const i=e?.technology??r;return Sa(i)?b.jsx(wt,{component:"div",...o,className:Je(n,"likec4-element-technology"),"data-likec4-node-technology":"",ref:a,children:i}):null}),ree=E.forwardRef(({data:{description:e,style:r},className:n,...o},a)=>{if(!e?.nonEmpty)return null;const{size:i}=ex(r),s=i==="sm"||i==="xs";return b.jsx(mh,{...o,className:Je(n,"likec4-element-description"),"data-likec4-node-description":"",value:e,uselikec4palette:!0,hideIfEmpty:!0,maxHeight:e.isMarkdown?"8rem   ":void 0,lineClamp:s?3:5,ref:a})});function ms({iconSize:e,data:r}){return b.jsxs(ZJ,{style:nV(e)?{"--likec4-icon-size":`${e}px`}:void 0,children:[b.jsx(QJ,{data:r}),b.jsxs(JJ,{children:[b.jsx(eee,{data:r}),b.jsx(tee,{data:r}),b.jsx(ree,{data:r})]})]})}ms.Root=ZJ,ms.Icon=QJ,ms.Content=JJ,ms.Title=eee,ms.Technology=tee,ms.Description=ree;const bXe=ye({position:"absolute",top:"0.5",right:"0.5",_shapeBrowser:{right:"[5px]"},_shapeCylinder:{top:"[14px]"},_shapeStorage:{top:"[14px]"},_shapeQueue:{top:"[1px]",right:"3"},_smallZoom:{display:"none"}});function FA({selected:e=!1,data:{hovered:r=!1},icon:n,onClick:o}){const a=Ta();return b.jsx(Vr,{className:Je(bXe,"details-button"),children:b.jsx(or,{className:Je("nodrag nopan",Ek({variant:"transparent"})),component:ps,initial:!1,style:{originX:.45,originY:.55},animate:r||e?{scale:1.2,opacity:.8}:{scale:1,opacity:.5},whileHover:{scale:1.4,opacity:1},whileTap:{scale:1.15},onClick:o,onDoubleClick:cn,children:n??b.jsx(BA,{stroke:1.8,style:{width:"75%"}})},a)})}const vXe=e=>{const r=Wt();return b.jsx(FA,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})};function xXe(e){const{enableElementTags:r}=wr();return b.jsxs(mm,{layoutId:e.id,nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(vXe,{...e}),b.jsx(fXe,{...e}),b.jsx(kXe,{...e})]},e.id)}function wXe(e){const r=Wt();return b.jsxs($y,{layoutId:e.id,nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(WJ,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}}),b.jsx(_Xe,{...e})]},e.id)}const kXe=({data:{ports:e,height:r}})=>b.jsxs(b.Fragment,{children:[e.in.map((n,o)=>b.jsx(uo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>b.jsx(uo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),_Xe=({data:e})=>b.jsxs(b.Fragment,{children:[e.ports.in.map((r,n)=>b.jsx(uo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>b.jsx(uo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const EXe=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],nee=yt("outline","chevron-left","ChevronLeft",EXe),SXe={element:xXe,compound:wXe,empty:aXe},CXe={relationship:nXe};function oee({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={initialNodes:[],initialEdges:[]}),b.jsx(DQ.Provider,{value:e,children:b.jsx(Mw,{...r.current,children:b.jsx(dm,{id:e.sessionId,inherit:!1,children:b.jsx(Pa,{children:b.jsx(NXe,{})})})})})}const TXe=e=>({isActive:e.hasTag("active"),nodes:e.context.xynodes,edges:e.context.xyedges}),AXe=(e,r)=>e.isActive===r.isActive&&Xn(e.nodes,r.nodes)&&Xn(e.edges,r.edges),NXe=E.memo(()=>{const e=Sy(),{isActive:r,nodes:n,edges:o}=Ok(TXe,AXe);return b.jsx(U9,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","relationships-browser"),nodeTypes:SXe,edgeTypes:CXe,fitView:!1,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(a=>{a.stopPropagation(),e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(a=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,pannable:!0,zoomable:!0,children:b.jsx($Xe,{})})}),RXe=e=>({subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,closeable:e.context.closeable}),$Xe=E.memo(()=>{const e=Sy(),{subjectId:r,viewId:n,scope:o,closeable:a}=Ok(RXe),i=pr(),s=up();E.useEffect(()=>{s.viewportInitialized&&e.send({type:"xyflow.init",instance:s,store:i})},[i,s.viewportInitialized,e]);const l=NWe(r,n,o),[c,u,{history:d,current:h}]=YV(r);E.useEffect(()=>{c!==r&&u.set(r)},[r]),E.useEffect(()=>{c!==r&&e.navigateTo(c)},[c,e]),HB(()=>{e.updateView(l)},[l,e]);const p=h>0,g=h+1<d.length;return b.jsxs(b.Fragment,{children:[b.jsx(PXe,{hasStepBack:p,hasStepForward:g,onStepBack:()=>u.back(),onStepForward:()=>u.forward()}),a&&b.jsx(ou,{position:"top-right",children:b.jsx(or,{variant:"default",color:"gray",onClick:y=>{y.stopPropagation(),e.close()},children:b.jsx(Hp,{})})})]})}),PXe=({hasStepBack:e,hasStepForward:r,onStepBack:n,onStepForward:o})=>b.jsx(ou,{position:"top-left",children:b.jsxs(Ur,{gap:4,wrap:"nowrap",children:[b.jsxs(Pa,{mode:"popLayout",children:[e&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),n()},children:b.jsx(nee,{})})},"back"),r&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),o()},children:b.jsx(hh,{})})},"forward")]}),b.jsx(zWe,{})]})}),MXe=ye({display:"inline-block",fontSize:"sm",fontWeight:500,whiteSpace:"nowrap",padding:"[3px 6px]",borderRadius:3,background:"var(--likec4-palette-fill)/75",lineHeight:1.2,color:"var(--likec4-palette-hiContrast)"}),OXe=ye({_light:{background:"mantine.colors.gray[1]","&[data-missing":{}},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/15",borderColor:"mantine.colors.orange[5]/20",_light:{color:"mantine.colors.orange[8]"}}}),DXe=ye({flex:"1 1 100%",position:"relative",width:"100%",height:"100%",background:"mantine.colors.body",border:"1px solid {colors.mantine.colors.defaultBorder}",borderRadius:"sm",_light:{borderColor:"mantine.colors.gray[3]",background:"mantine.colors.gray[1]"}});ye({_before:{content:'"scope:"',position:"absolute",top:"0",left:"2",fontSize:"xxs",fontWeight:500,lineHeight:"1",color:"mantine.colors.dimmed",opacity:.85,transform:"translateY(-100%) translateY(-2px)"},_light:{"& .mantine-SegmentedControl-root":{background:"mantine.colors.gray[3]"}}}),ye({display:"inline-block",fontSize:"xl",fontWeight:600,padding:"[1px 5px]",minWidth:24,textAlign:"center",borderRadius:"sm",background:"mantine.colors.dark[7]",color:"mantine.colors.defaultColor","&[data-zero]":{color:"mantine.colors.dimmed"},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/20"}});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const LXe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],ym=yt("outline","arrow-right","ArrowRight",LXe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const IXe=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],aee=yt("outline","external-link","ExternalLink",IXe),zXe=po.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1});function jXe({node:e,element:r}){const n=VX(),o=kqe(),a=wn(o,d=>d.children[`${o.id}-relationships`]),i=[...r.incoming()].map(d=>d.id),s=[...r.outgoing()].map(d=>d.id),l=e?Y6([...e.incoming()].flatMap(d=>d.$edge.relations)):[],c=e?Y6([...e.outgoing()].flatMap(d=>d.$edge.relations)):[],u=[...i,...s].filter(d=>!l.includes(d)&&!c.includes(d)).length;return b.jsxs(ra,{gap:"xs",pos:"relative",w:"100%",h:"100%",children:[i.length+s.length>0&&b.jsxs(Ur,{gap:"xs",wrap:"nowrap",align:"center",children:[b.jsx(Se,{children:b.jsxs(Ur,{gap:8,mb:4,wrap:"nowrap",children:[b.jsx(iee,{title:"incoming",total:i.length,included:l.length}),b.jsx(ci,{size:"sm",variant:"transparent",c:"dimmed",children:b.jsx(ym,{style:{width:16}})}),b.jsx(wt,{className:MXe,children:g0(r.id)}),b.jsx(ci,{size:"sm",variant:"transparent",c:"dimmed",children:b.jsx(ym,{style:{width:16}})}),b.jsx(iee,{title:"outgoing",total:s.length,included:c.length})]})}),u>0&&b.jsx(zXe,{label:"Current view does not include some relationships",children:b.jsxs(Ur,{mt:"xs",gap:6,c:"orange",style:{cursor:"pointer"},children:[b.jsx(F9,{style:{width:14}}),b.jsxs(wt,{fz:"sm",children:[u," relationship",u>1?"s are":" is"," hidden"]})]})})]}),b.jsx(Se,{className:DXe,children:a&&b.jsxs(b.Fragment,{children:[b.jsx(oee,{actorRef:a}),b.jsx(Se,{pos:"absolute",top:12,right:12,children:b.jsx(or,{size:"md",variant:"default",radius:"sm",onClick:d=>{d.stopPropagation();const{subject:h,scope:p,viewId:g}=a.getSnapshot().context;n.send({type:"open.relationshipsBrowser",subject:h,scope:p,viewId:g})},children:b.jsx(aee,{stroke:1.6,style:{width:"70%"}})})})]})})]})}function iee({title:e,total:r,included:n}){return b.jsx(Rp,{withBorder:!0,shadow:"none",className:OXe,px:"md",py:"xs",radius:"md",mod:{zero:r===0,missing:r!==n},children:b.jsxs(ra,{gap:4,align:"flex-end",children:[b.jsx(wt,{component:"div",c:r!==n?"orange":"dimmed",tt:"uppercase",fw:600,fz:10,lh:1,children:e}),b.jsx(wt,{fw:600,fz:"xl",component:"div",lh:1,children:r!==n?b.jsxs(b.Fragment,{children:[n," / ",r]}):b.jsx(b.Fragment,{children:r})})]})})}const BXe=ye({marginTop:"sm",marginBottom:"sm"}),FXe=ye({display:"inline-flex",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"sm",px:"md",py:"xs",alignItems:"center",cursor:"pointer",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out",borderStyle:"solid",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover","& > *":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),HA=({element:e})=>b.jsx(Se,{className:FXe,children:b.jsx(wt,{component:"div",fz:"sm",fw:"500",children:e.title})}),HXe=()=>{};function UXe({element:e}){const r=Y1({multiple:!1});r.setHoveredNode=HXe;const n=E.useMemo(()=>{let o=1;const a=s=>({label:s,value:`msg${o++}`,type:"message",children:[]}),i={label:b.jsx(HA,{type:"current",element:e}),value:e.id,element:e,type:"current",children:[...e.children()].map(s=>({label:b.jsx(HA,{type:"descedant",element:s}),value:s.id,element:s,type:"descedant",children:[]}))};return i.children.length===0&&i.children.push(a(b.jsx(U3,{radius:"sm",children:"no nested"}))),[[...e.ancestors()].reduce((s,l)=>({label:b.jsx(HA,{type:"ancestor",element:l}),value:l.id,element:l,type:"ancestor",children:[s]}),i)]},[e]);return E.useEffect(()=>{r.expandAllNodes()},[n]),b.jsxs(b.Fragment,{children:[b.jsxs(M3,{variant:"light",color:"orange",title:"In development",icon:b.jsx(F9,{}),children:["We need your feedback. Share your thoughts and ideas -"," ",b.jsx(rT,{fz:"sm",fw:500,underline:"hover",c:"orange",href:"https://github.com/likec4/likec4/discussions/",target:"_blank",children:"GitHub discussions"})]}),b.jsx(Bp,{levelOffset:"xl",allowRangeSelection:!1,expandOnClick:!1,expandOnSpace:!1,classNames:{label:BXe},data:n,tree:r})]})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const VXe=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],UA=yt("outline","stack-2","Stack2",VXe),see=Lp.withProps({mb:8,labelPosition:"left",variant:"dashed"}),lee=po.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4}),cee=wt.withProps({component:"div",fz:11,fw:500,c:"dimmed",lh:1}),My=wt.withProps({component:"div",fz:"xs",c:"dimmed",className:vYe}),bm=24,qXe=["Properties","Relationships","Views","Structure","Deployments"];function YXe({viewId:e,fromNode:r,rectFromNode:n,fqn:o,onClose:a}){const[i,s]=E.useState(!1),l=_Pe(),c=l.width||window.innerWidth||1200,u=l.height||window.innerHeight||800,[d,h]=bPe({key:"likec4:element-details:active-tab",defaultValue:"Properties"}),p=Wt(),g=NQ(),y=r?g.findNode(r):g.findNodeWithElement(o),x=g.$model.element(o),[w,k]=yn([...x.views()],Ao(Q=>Q.$view),sV(Q=>Q._type==="element"&&Q.viewOf===o));let C=y?.navigateTo?.$view??x.defaultView?.$view??null;C?.id===e&&(C=null);const _=zw(x.links),T=wqe(),A=(y?.$node.children?.length??0)>0,N=Math.min(700,c-bm*2),$=Math.min(650,u-bm*2),R=n?{x:n.x+(A?n.width-N/2:n.width/2),y:n.y+(A?0:n.height/2)}:{x:c/2,y:u/2},M=n?Math.min(n.width/N,n.height/$,.9):1,O=Math.round(Ki(R.x-N/2,{min:bm,max:c-N-bm})),B=Math.round(Ki(R.y-(A?0:60),{min:bm,max:u-$-bm})),I=Ki((R.x-O)/N,{min:.1,max:.9}),Y=Ki((R.y-B)/$,{min:.1,max:.9}),D=KZ(N),V=KZ($);$k(()=>{D.set(N),V.set($)},[N,$]);const L=E.useCallback((Q,z)=>{D.set(Math.max(D.get()+z.delta.x,320)),V.set(Math.max(V.get()+z.delta.y,300))},[]),U=E.useRef(null),q=Kf(a),X=qx(()=>{q.current()},[],50),F=y?.$node.notation??null,J=Vx({element:{id:o,title:x.title,icon:y?.icon??x.icon},className:dYe});return Wx(()=>{U.current?.open||U.current?.showModal()},20),Wx(()=>{s(!0)},220),b.jsx(cs.dialog,{ref:U,className:Je(sYe,S1.classNames.fullWidth),layout:!0,initial:{[Tk]:"0px",[Ak]:"5%"},animate:{[Tk]:"3px",[Ak]:"60%"},exit:{[Tk]:"0px",[Ak]:"0%",transition:{duration:.1}},onClick:Q=>{Q.stopPropagation(),Q.target?.nodeName?.toUpperCase()==="DIALOG"&&U.current?.close()},onDoubleClick:cn,onPointerDown:cn,onClose:Q=>{Q.stopPropagation(),X()},children:b.jsx(S1,{forwardProps:!0,removeScrollBar:!1,children:b.jsxs(cs.div,{layout:!0,layoutRoot:!0,drag:!0,dragControls:T,dragElastic:0,dragMomentum:!1,dragListener:!1,"data-likec4-color":y?.color??x.color,className:lYe,initial:{top:B,left:O,width:N,height:$,opacity:0,originX:I,originY:Y,scale:Math.max(M,.65)},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,translateY:-10,transition:{duration:.1}},style:{width:D,height:V},children:[b.jsxs("div",{className:cYe,onPointerDown:Q=>T.start(Q),children:[b.jsxs(xn,{alignItems:"start",justify:"space-between",gap:"sm",mb:"sm",flexWrap:"nowrap",children:[b.jsxs(xn,{alignItems:"start",gap:"sm",style:{cursor:"default"},flexWrap:"nowrap",children:[J,b.jsxs("div",{children:[b.jsx(wt,{component:"div",className:uYe,children:x.title}),F&&b.jsx(wt,{component:"div",c:"dimmed",fz:"sm",fw:500,lh:1.3,lineClamp:1,children:F})]})]}),b.jsx(Kd,{size:"lg",onClick:Q=>{Q.stopPropagation(),X()}})]}),b.jsxs(xn,{alignItems:"baseline",gap:"sm",flexWrap:"nowrap",children:[b.jsxs("div",{children:[b.jsx(cee,{children:"kind"}),b.jsx(Gl,{radius:"sm",size:"sm",fw:600,color:"gray",style:{cursor:"pointer"},onClick:Q=>{Q.stopPropagation(),p.openSearch(`kind:${x.kind}`)},children:x.kind})]}),b.jsxs("div",{style:{flex:1},children:[b.jsx(cee,{children:"tags"}),b.jsxs(Op,{gap:4,flex:1,mt:6,wrap:"wrap",children:[x.tags.map(Q=>b.jsx(Ck,{tag:Q,cursor:"pointer",onClick:z=>{z.stopPropagation(),p.openSearch(`#${Q}`)}},Q)),x.tags.length===0&&b.jsx(Gl,{radius:"sm",size:"sm",fw:600,color:"gray",children:"—"})]})]}),b.jsxs(T3,{style:{alignSelf:"flex-start"},children:[_&&b.jsx(or,{component:"a",href:_.url,target:"_blank",size:"lg",variant:"default",radius:"sm",children:b.jsx(aee,{stroke:1.6,style:{width:"65%"}})}),b.jsx(HWe,{feature:"Vscode",children:b.jsx(lee,{label:"Open source",children:b.jsx(or,{size:"lg",variant:"default",radius:"sm",onClick:Q=>{Q.stopPropagation(),p.openSource({element:x.id})},children:b.jsx(pm,{stroke:1.8,style:{width:"62%"}})})})}),C&&b.jsx(lee,{label:"Open default view",children:b.jsx(or,{size:"lg",variant:"default",radius:"sm",onClick:Q=>{Q.stopPropagation(),p.navigateTo(C.id,r??void 0)},children:b.jsx(gi,{style:{width:"70%"}})})})]})]})]}),b.jsxs(Jd,{value:d,onChange:Q=>h(Q),variant:"none",classNames:{root:pYe,list:mYe,tab:gYe,panel:yYe},children:[b.jsx(q1,{children:qXe.map(Q=>b.jsx(jp,{value:Q,children:Q},Q))}),b.jsx(Zl,{value:"Properties",children:b.jsx(os,{scrollbars:"y",type:"scroll",offsetScrollbars:!0,children:b.jsxs(Se,{className:bYe,pt:"xs",children:[x.hasSummary&&b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"summary"}),b.jsx(mh,{value:x.summary})]}),b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"description"}),b.jsx(mh,{value:x.description,emptyText:"no description"})]}),x.technology&&b.jsx(WXe,{title:"technology",children:x.technology}),x.links.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"links"}),b.jsx(xn,{gap:"xs",flexWrap:"wrap",children:x.links.map((Q,z)=>b.jsx(j9,{value:Q},z))})]}),x.$element.metadata&&b.jsx(XXe,{value:x.$element.metadata})]})})}),b.jsx(Zl,{value:"Relationships",children:b.jsx(fh,{overrides:{enableRelationshipBrowser:!1,enableNavigateTo:!1},children:i&&d==="Relationships"&&b.jsx(jXe,{element:x,node:y??null})})}),b.jsx(Zl,{value:"Views",children:b.jsx(os,{scrollbars:"y",type:"auto",children:b.jsxs(ra,{gap:"lg",children:[w.length>0&&b.jsxs(Se,{children:[b.jsx(see,{label:"views of the element (scoped)"}),b.jsx(ra,{gap:"sm",children:w.map(Q=>b.jsx(uee,{view:Q,onNavigateTo:z=>p.navigateTo(z,r??void 0)},Q.id))})]}),k.length>0&&b.jsxs(Se,{children:[b.jsx(see,{label:"views including this element"}),b.jsx(ra,{gap:"sm",children:k.map(Q=>b.jsx(uee,{view:Q,onNavigateTo:z=>p.navigateTo(z,r??void 0)},Q.id))})]})]})})}),b.jsx(Zl,{value:"Structure",children:b.jsx(os,{scrollbars:"y",type:"auto",children:b.jsx(UXe,{element:x})})}),b.jsx(Zl,{value:"Deployments",children:b.jsx(os,{scrollbars:"y",type:"auto",children:b.jsx(PYe,{elementFqn:x.id})})})]}),b.jsx(cs.div,{className:xYe,drag:!0,dragElastic:0,dragMomentum:!1,onDrag:L,dragConstraints:{top:0,left:0,right:0,bottom:0}})]})})})}const uee=({view:e,onNavigateTo:r})=>b.jsx(Pr,{className:hYe,onClick:n=>r(e.id,n),children:b.jsxs(Ur,{gap:6,align:"start",wrap:"nowrap",children:[b.jsx(ci,{size:"sm",variant:"transparent",children:e._type==="deployment"?b.jsx(UA,{stroke:1.8}):b.jsx(gi,{stroke:1.8})}),b.jsx(Se,{children:b.jsx(wt,{component:"div",className:fYe,lineClamp:1,children:e.title||"untitled"})})]})});function WXe({title:e,emptyValue:r="undefined",children:n,style:o,...a}){return b.jsxs(b.Fragment,{children:[b.jsx(My,{children:e}),b.jsx(wt,{component:"div",...rV(n)&&{c:"dimmed"},fz:"md",style:{whiteSpace:"preserve-breaks",userSelect:"all",...o},...a,children:n||r})]})}function XXe({value:e}){return b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"metadata"}),b.jsx(Se,{className:ye({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[4px 4px]",alignItems:"baseline",justifyItems:"stretch",paddingRight:"xxs"}),children:B6(e).map(([r,n])=>b.jsxs("div",{style:{display:"contents"},className:"group",children:[b.jsxs("div",{className:ye({fontSize:"sm",fontWeight:500,justifySelf:"end",whiteSpace:"nowrap"}),children:[r,":"]}),b.jsx("div",{className:ye({}),children:b.jsx(os.Autosize,{type:"auto",mah:200,classNames:{root:ye({transitionProperty:"all",transitionDuration:"fast",transitionTimingFunction:"inOut",rounded:"sm",color:"mantine.colors.gray[8]",_dark:{color:"mantine.colors.dark[1]"},_groupHover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover"}}),viewport:ye({overscrollBehavior:"none"})},children:b.jsx("div",{className:ye({fontSize:"sm",padding:"xxs",whiteSpace:"pre",fontFamily:"mono",userSelect:"all"}),children:n})})})]},r))})]})}function GXe({actorRef:e,onClose:r}){const n=wn(e,it(o=>({viewId:o.context.currentView.id,fromNode:o.context.initiatedFrom.node,rectFromNode:o.context.initiatedFrom.clientRect,fqn:o.context.subject})),Xn);return b.jsx(S9.Provider,{value:e,children:b.jsx(YXe,{onClose:r,...n})})}const Uk="--_blur",Vk="--_opacity",KXe="--_level",Oy=E.forwardRef(({onClose:e,className:r,classes:n,overlayLevel:o=0,children:a,fullscreen:i=!1,withBackdrop:s=!0,backdrop:l,openDelay:c=130,...u},d)=>{const[h,p]=E.useState(c===0),g=IV(h),y=E.useRef(null),x=E.useRef(!1),w=ZZ()!==!0,k=E.useRef(e);k.current=e;const C=qx(()=>{x.current||(x.current=!0,k.current())},[],50);E.useLayoutEffect(()=>{y.current?.open||y.current?.showModal()},[]),Wx(()=>{p(!0)},c>0?c:void 0);const _=Nqe({fullscreen:i,withBackdrop:s});let T=o>0?"50%":"60%";return l?.opacity!==void 0&&(T=`${l.opacity*100}%`),b.jsx(cs.dialog,{ref:Rr(y,g,d),className:Je(n?.dialog,r,_,i&&S1.classNames.fullWidth),layout:!0,style:{[KXe]:o},...w?{initial:{[Uk]:"0px",[Vk]:"0%",scale:.95,originY:0,translateY:-20,opacity:0},animate:{[Uk]:o>0?"4px":"8px",[Vk]:T,scale:1,opacity:1,translateY:0,transition:{delay:.075}},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1},[Uk]:"0px",[Vk]:"0%"}}:{initial:{[Uk]:"8px",[Vk]:T}},onClick:A=>{if(A.stopPropagation(),A.target?.nodeName?.toUpperCase()==="DIALOG"){y.current?.close();return}},onCancel:A=>{A.preventDefault(),A.stopPropagation(),C()},onDoubleClick:cn,onPointerDown:cn,onClose:A=>{A.stopPropagation(),C()},...u,children:b.jsx(S1,{forwardProps:!0,children:b.jsx("div",{className:Je(n?.body,"likec4-overlay-body"),children:h&&b.jsx(b.Fragment,{children:a})})})})});Oy.displayName="Overlay";const qk=(e,r)=>e.size>2&&r.size!==e.size?new Set(qc([...zx(e).flatten(),...r])):e.size>1?new Set(qc([...e])):e;function ZXe(e,r){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},s=(l,c)=>{c==="source"?(n.add(l),i.sources.add(l)):(a.add(l),i.targets.add(l))};for(const l of e){const c=r.findEdge(l),u=c?[...c.relationships("model")]:[];if(!c||!To(u,1)||!c.source.hasElement()||!c.target.hasElement())continue;const d=c.source.element,h=c.target.element;s(d,"source"),s(h,"target");for(const p of u){if(o.add(p),p.source!==d){s(p.source,"source");for(const g of p.source.ancestors()){if(g===d)break;n.add(g)}}if(p.target!==h){s(p.target,"target");for(const g of p.target.ancestors()){if(g===h)break;a.add(g)}}}}return{sources:qk(n,i.sources),targets:qk(a,i.targets),relationships:o}}function QXe({source:e,target:r}){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},s=(c,u)=>{u==="source"?(n.add(c),i.sources.add(c)):(a.add(c),i.targets.add(c))};e&&s(e,"source"),r&&s(r,"target");const[l]=Z4e.findConnection(e,r,"directed");if(!l)return{sources:n,targets:a,relationships:o};for(const c of l.relations){const u=c.source,d=c.target;if(s(u,"source"),s(d,"target"),o.add(c),e!==u){nt(Un(e,u),`${e.id} is not an ancestor of ${u.id}`);for(const h of u.ancestors()){if(h===e)break;n.add(h)}}if(r!==d){nt(Un(r,d),`${r.id} is not an ancestor of ${d.id}`);for(const h of d.ancestors()){if(h===r)break;a.add(h)}}}return{sources:qk(n,i.sources),targets:qk(a,i.targets),relationships:o}}const dee=E.createContext(null);function VA(){return mt(E.useContext(dee),"No RelationshipDetailsActorContext")}function hee(e,r=Xn){const n=it(e),o=VA();return wn(o,n,r)}function qA(){const e=VA();return E.useMemo(()=>({actor:e,get rootElementId(){return`relationship-details-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,navigateTo:(...r)=>{r.length===1?e.send({type:"navigate.to",params:{edgeId:r[0]}}):e.send({type:"navigate.to",params:{source:r[0],target:r[1]}})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}const gs={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:220,height:14},nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function JXe(){const e=new Lk.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...gs.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...gs.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const YA="-port";function fee(e,r,n){const o=new lo(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=zx(r);for(const i of a.sorted){const s=a.children(i).length>0,l=i.id,c=`${e}-${l}`,u=s?`${c}${YA}`:c;o.set(l,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:s,portId:u,inPorts:[],outPorts:[],width:gs.nodeWidth,height:gs.nodeHeight}),s&&(n.setNode(u,{element:i,portId:u,isCompound:s,inPorts:[],outPorts:[],width:gs.nodeWidth-gs.dagre.ranksep,height:gs.compound.labelHeight}),n.setParent(u,c));const d=a.parent(i);d&&n.setParent(c,`${e}-${d.id}`)}return{...a,byId:i=>{const s=a.byId(i),l=o.get(s.id);return{element:s,graph:l}},graphNodes:o}}function eGe(e){return Lk.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:s}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(s/2)},width:i,height:s}}}function tGe(e,r){const n=JXe(),o=fee("sources",e.sources,n),a=fee("targets",e.targets,n),i=Array.from(e.relationships).map(k=>{const C=o.byId(k.source.id).graph,_=a.byId(k.target.id).graph,T=k.id;return n.node(C.id).outPorts.push(_.id),n.node(_.id).inPorts.push(C.id),n.setEdge(C.portId,_.portId,{...gs.edgeLabel},T),{name:T,source:C.id,sourceHandle:C.id+"_out"+(n.node(C.id).outPorts.length-1),target:_.id,targetHandle:_.id+"_in"+(n.node(_.id).inPorts.length-1),relationship:k}}),s=[...o.graphNodes.values(),...a.graphNodes.values()];for(const{id:k}of s){const C=n.node(k);if(C.isCompound)continue;const _=Math.max(n.inEdges(k)?.length??0,n.outEdges(k)?.length??0);_>3&&(C.height=C.height+(_-4)*14)}const l=n.edgeCount();if(l>5)for(const k of n.edges())n.setEdge(k,{...gs.edgeLabel,width:l>10?800:400});const c=eGe(n),u=yn(s,dp(k=>k.id===k.portId),E1(k=>[k.id,c(k.id)]));function d(k){return u[k]??=yn(n.children(k)??[],dp(C=>!C.endsWith(YA)),Ao(C=>d(C)),uV(C=>{nt(C.length>0,`Node ${k} has no nested nodes`)}),fp((C,_)=>({minY:Math.min(C.minY,_.position.y),maxY:Math.max(C.maxY,_.position.y+_.height)}),{minY:1/0,maxY:-1/0}),({minY:C,maxY:_})=>{const{position:{x:T},width:A}=c(k);return C=C-gs.compound.paddingTop,_=_+gs.compound.paddingBottom,{position:{x:T,y:C},width:A,height:_-C}})}function h(k){const C=n.parent(k);return C?h(C)+1:0}function p(k){const C=n.children(k)??[];return C.length===0?0:1+Math.max(...C.map(p))}const g=(k,C,_)=>yn(_,Ao((T,A)=>({port:k+"_"+C+A,topY:d(T).position.y})),jw(Ca("topY")),Ao(Ca("port")));let y=0,x=0;const w=s.map(({id:k})=>{const{element:C,inPorts:_,outPorts:T,column:A}=n.node(k);let{position:N,width:$,height:R}=d(k);const M=n.parent(k),O=(n.children(k)??[]).filter(V=>!V.endsWith(YA));y=Math.min(y,N.x),x=Math.min(x,N.y);const B=r?G0(C.scopedViews(),V=>V.id!==r.id)?.id??null:null,I=r?.findNodeWithElement(C.id),Y=r&&!I?G0(C.ancestors(),V=>!!r.findNodeWithElement(V.id))?.id:null,D=I??(Y&&r?.findNodeWithElement(Y));return V0({id:k,parent:M??null,x:N.x,y:N.y,title:C.title,description:C.summary,technology:C.technology,tags:[...C.tags],links:null,color:D?.color??C.color,shape:I?.shape??C.shape,icon:I?.icon??C.icon??"none",modelRef:C.id,kind:C.kind,level:h(k),labelBBox:{x:N.x,y:N.y,width:$,height:R},style:Vd({...(I??D)?.style,...C.$element.style},["shape","color","icon"]),navigateTo:B,...O.length>0&&{depth:p(k)},children:O,width:$,height:R,column:A,ports:{in:g(k,"in",_),out:g(k,"out",T)}})});return{bounds:{x:Math.min(y,0),y:Math.min(x,0),width:n.graph().width??100,height:n.graph().height??100},nodes:w,edges:n.edges().reduce((k,C)=>{const _=n.edge(C),T=C.name;if(!T)return k;const{name:A,source:N,target:$,relationship:R,sourceHandle:M,targetHandle:O}=Iw(i,V=>V.name===T),B=R.title??"untitled",I=R.navigateTo?.id??null,Y=R.description??null,D=R.technology??null;return k.push({id:A,source:N,sourceHandle:M,target:$,targetHandle:O,label:B,color:R.color,...I&&{navigateTo:I},...Y&&{description:Y},...D&&{technology:D},points:_.points.map(V=>[V.x,V.y]),line:R.line,relationId:R.id,parent:null}),k},[])}}const WA=ye.raw({display:"inline-flex",alignItems:"center",padding:"[6px 2px 0 2px]","& .mantine-Text-root":{color:"mantine.colors.text/90",fontSize:"xs",fontWeight:500,lineHeight:"1.2"}}),pee=ye({paddingLeft:"1",gridColumn:1},WA),rGe=ye({gridColumn:2},WA),mee=ye({gridColumn:3,paddingRight:"1"},WA),gee="likec4-edge-label",nGe=Je(gee,ye({display:"grid",gridColumnStart:1,gridColumnEnd:4,borderBottom:"1px solid",borderBottomColor:"mantine.colors.defaultBorder",marginBottom:"0",padding:"[0 4px 5px 4px]",width:"100%","& .mantine-Text-root":{fontSize:"xxs",fontWeight:400,lineHeight:"xs",color:"mantine.colors.dimmed"}})),oGe=ye({display:"contents",[`&:last-child .${gee}`]:{borderBottom:"none",marginBottom:"0"},"& > *":{transition:"all 0.15s ease-in"},"&:is(:hover, [data-selected=true]) > *":{transition:"all 0.15s ease-out",cursor:"pointer",backgroundColor:"mantine.colors.defaultHover"}}),aGe=ye({display:"grid",gridTemplateColumns:"1fr 30px 1fr",gridAutoRows:"min-content max-content",gap:"0",alignItems:"stretch"});ye({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[10px 12px]",alignItems:"baseline",justifyItems:"start"});const iGe=ye({maxHeight:["70vh","calc(100cqh - 70px)"]}),sGe=({edge:e,view:r})=>{const n=qA(),o=E.useRef(null),a=r.nodes.find(l=>l.id===e.source),i=r.nodes.find(l=>l.id===e.target),s=r.edges.flatMap(l=>{const c=r.nodes.find(d=>d.id===l.source),u=r.nodes.find(d=>d.id===l.target);return c&&u?{id:l.id,source:c,target:u,label:l.label}:[]});return!a||!i||s.length===0?null:b.jsxs(mr,{position:"bottom-start",shadow:"md",keepMounted:!0,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],onOpen:()=>{setTimeout(()=>{o.current?.querySelector(`[data-edge-id="${e.id}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[b.jsx(pu,{children:b.jsxs(Zn,{size:"xs",variant:"default",fw:"500",style:{padding:"0.25rem 0.75rem"},rightSection:b.jsx(LA,{size:16}),children:[b.jsx(Se,{className:pee,maw:160,p:0,mod:{"likec4-color":a.color},children:b.jsx(wt,{component:"span",truncate:!0,children:a.title})}),b.jsx(ci,{color:"dark",variant:"transparent",size:"xs",children:b.jsx(ym,{style:{width:"80%"}})}),b.jsx(Se,{className:mee,maw:160,p:0,mod:{"likec4-color":i.color},children:b.jsx(wt,{component:"span",truncate:!0,children:i.title})})]})}),b.jsx(Xl,{p:0,miw:250,maw:400,children:b.jsx(ta,{className:iGe,scrollbars:"y",type:"never",viewportRef:o,children:b.jsx(Se,{className:aGe,p:"xs",maw:400,children:s.map(l=>b.jsxs("div",{className:oGe,"data-selected":l.id===e.id,onClick:c=>{c.stopPropagation(),n.navigateTo(l.id)},children:[b.jsx(Se,{className:pee,mod:{"edge-id":l.id,"likec4-color":l.source.color},children:b.jsx(wt,{component:"span",truncate:!0,children:l.source.title})}),b.jsx(Se,{className:rGe,children:b.jsx(ci,{color:"dark",variant:"transparent",size:"xs",children:b.jsx(ym,{style:{width:"80%"}})})}),b.jsx(Se,{className:mee,mod:{"likec4-color":l.target.color},children:b.jsx(wt,{component:"span",truncate:!0,children:l.target.title})}),b.jsx(Se,{className:nGe,children:b.jsx(wt,{component:"span",truncate:!0,children:l.label||"untitled"})})]},l.id))})})})]})},lGe=IA(e=>{const{enableNavigateTo:r}=wr(),{data:{navigateTo:n}}=e,[o,a,i]=kw(e),s=Wt();return b.jsxs(Ay,{...e,children:[b.jsx(Ny,{edgeProps:e,svgPath:o}),b.jsx(Bk,{edgeProps:e,labelPosition:{x:a,y:i,translate:"translate(-50%, 0)"},style:{maxWidth:Math.abs(e.targetX-e.sourceX-100)},children:b.jsx(Ty,{edgeProps:e,children:r&&n&&b.jsx(jk,{...e,onClick:l=>{l.stopPropagation(),s.navigateTo(n)}})})})]})}),cGe=e=>{const{enableNavigateTo:r,enableVscode:n}=wr(),o=Wt(),a=Fk(),i=[],{navigateTo:s,fqn:l}=e.data;return s&&r&&a!==s&&i.push({key:"navigate",icon:b.jsx(gi,{}),onClick:c=>{c.stopPropagation(),o.navigateTo(s)}}),l&&i.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:c=>{c.stopPropagation(),o.openRelationshipsBrowser(l)}}),l&&n&&i.push({key:"goToSource",icon:b.jsx(pm,{}),onClick:c=>{c.stopPropagation(),o.openSource({element:l})}}),b.jsx(Hk,{buttons:i,...e})};function uGe(e,r){return e.id===r.id&&ut(e.selected??!1,r.selected??!1)&&ut(e.dragging??!1,r.dragging??!1)&&ut(e.width??0,r.width??0)&&ut(e.height??0,r.height??0)&&ut(e.zIndex??0,r.zIndex??0)&&ut(e.data,r.data)}const yee=Symbol.for("isMemoized");function ic(e){if(e.hasOwnProperty(yee))return e;const r=E.memo(e,uGe);return r.displayName="Node",Object.defineProperty(r,yee,{enumerable:!1,writable:!1,value:!0}),r}const bee=e=>{const r=Wt();return b.jsx(FA,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})},dGe=ic(e=>{const{enableElementTags:r}=wr();return b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(bee,{...e}),b.jsx(cGe,{...e}),b.jsx(fGe,{...e})]})}),hGe=ic(e=>b.jsxs($y,{nodeProps:e,children:[b.jsx(bee,{...e}),b.jsx(Py,{...e}),b.jsx(pGe,{...e})]})),fGe=({data:{ports:e,height:r}})=>b.jsxs(b.Fragment,{children:[e.in.map((n,o)=>b.jsx(uo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>b.jsx(uo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),pGe=({data:e})=>b.jsxs(b.Fragment,{children:[e.ports.in.map((r,n)=>b.jsx(uo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>b.jsx(uo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),mGe={element:dGe,compound:hGe},gGe={relationship:lGe};function yGe({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={defaultNodes:[],defaultEdges:[]}),b.jsx(dee.Provider,{value:e,children:b.jsx(Mw,{...r.current,children:b.jsx(dm,{id:e.sessionId,inherit:!1,children:b.jsxs(Pa,{children:[b.jsx(wGe,{},"xyflow"),b.jsx(vGe,{},"sync")]})})})})}const bGe=e=>({...e.context.subject,viewId:e.context.viewId}),vGe=E.memo(()=>{const e=VA(),r=wn(e,bGe,ut),n=Ho(),o=n.findView(r.viewId)??null,a=E.useMemo(()=>{let l;if("edgeId"in r&&Sa(r.edgeId)){nt(o,`view ${r.viewId} not found`);const c=mt(o.findEdge(r.edgeId),`edge ${r.edgeId} not found in ${r.viewId}`);l=ZXe([c.id],o)}else if(r.source&&r.target)l=QXe({source:n.element(r.source),target:n.element(r.target)});else return null;return tGe(l,o)},[r,o,n]),i=pr(),s=up();return E.useEffect(()=>{s.viewportInitialized&&e.send({type:"xyflow.init",instance:s,store:i})},[i,s.viewportInitialized,e]),E.useEffect(()=>{a!==null&&e.send({type:"update.layoutData",data:a})},[a,e]),null}),xGe=({context:e})=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges}),wGe=E.memo(()=>{const e=qA(),{initialized:r,nodes:n,edges:o}=hee(xGe,ut);return b.jsxs(U9,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","likec4-relationship-details"),nodeTypes:mGe,edgeTypes:gGe,onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),fitViewPadding:.05,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(()=>{e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(()=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,fitView:!1,pannable:!0,zoomable:!0,children:[b.jsx(_Ge,{}),b.jsx(ou,{position:"top-right",children:b.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),e.close()},children:b.jsx(Hp,{})})})]})}),kGe=({context:e})=>({subject:e.subject,viewId:e.viewId}),_Ge=E.memo(()=>{const{subject:e,viewId:r}=hee(kGe,ut),n=Ho().findView(r);if(!n||!n.isDiagram())return null;const o=[...n.edges()];let a="edgeId"in e&&Sa(e.edgeId)?o.find(i=>i.id===e.edgeId):Iw(o,i=>i.source.element?.id===e.source&&i.target.element?.id===e.target)||Iw(o,i=>(i.source.element?.id===e.source||Un(i.source.element?.id??"__",e.source??"__"))&&(i.target.element?.id===e.target||Un(i.target.element?.id??"__",e.target??"__")));return a?b.jsx(EGe,{edge:a.$edge,view:n.$view}):null}),EGe=({edge:e,view:r})=>{const n=qA(),o=e.id,[a,i,{history:s,current:l}]=YV(e.id);E.useEffect(()=>{a!==o&&i.set(o)},[o]),E.useEffect(()=>{a!==o&&n.navigateTo(a)},[a]);const c=l>0,u=l+1<s.length;return b.jsx(ou,{position:"top-left",children:b.jsx(Ur,{gap:4,wrap:"nowrap",children:b.jsxs(Pa,{mode:"popLayout",children:[c&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.back()},children:b.jsx(nee,{})})},"back"),u&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.forward()},children:b.jsx(hh,{})})},"forward"),b.jsx(Ur,{gap:"xs",wrap:"nowrap",ml:"sm",children:b.jsx(sGe,{edge:e,view:r})})]})})})},SGe=e=>e.context.overlays.map(r=>{switch(r.type){case"relationshipsBrowser":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"relationshipDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"elementDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;default:Ga(r)}}).filter(tV),CGe=(e,r)=>e.length===r.length&&e.every((n,o)=>n.actorRef===r[o].actorRef);function TGe({overlaysActorRef:e}){const r=D9(c=>c.domNode),n=E.useMemo(()=>r?.querySelector(".react-flow__renderer")??null,[r]),o=wn(e,SGe,CGe),a=ZZ()??!1,i=o.some(c=>c.type==="elementDetails");E.useEffect(()=>{!n||a||iUe(n,{opacity:i?.7:1,filter:i?"grayscale(1)":"grayscale(0)",transform:i?"perspective(400px) translateZ(-12px) translateY(3px)":"translateY(0)"},{duration:i?.35:.17})},[i,n]);const s=c=>{e.send({type:"close",actorId:c.id})},l=o.map((c,u)=>{switch(c.type){case"relationshipsBrowser":return b.jsx(Oy,{overlayLevel:u,onClose:()=>s(c.actorRef),children:b.jsx(oee,{actorRef:c.actorRef})},c.actorRef.sessionId);case"relationshipDetails":return b.jsx(Oy,{overlayLevel:u,onClose:()=>s(c.actorRef),children:b.jsx(yGe,{actorRef:c.actorRef})},c.actorRef.sessionId);case"elementDetails":return b.jsx(GXe,{actorRef:c.actorRef,onClose:()=>s(c.actorRef)},c.actorRef.sessionId);default:Ga(c)}});return b.jsx(fh.Overlays,{children:b.jsx(jT,{FallbackComponent:BT,onReset:()=>e.send({type:"close.all"}),children:b.jsx(dm,{children:b.jsx(Pa,{children:l})})})})}const[AGe,Su]=ri("SearchActorContext"),NGe=e=>e.context.searchValue;function RGe(){const e=Su(),r=wn(e,NGe),n=E.useCallback(o=>{e.send({type:"change.search",search:o})},[e]);return[r,n]}const $Ge=e=>{const r=e.context.searchValue.trim().toLowerCase();return r.length>1?r:""};function XA(){const e=Su();return E.useDeferredValue(wn(e,$Ge))}function PGe(){const e=Su();return E.useCallback(r=>{e.send({type:"change.search",search:r})},[e])}const MGe=e=>e.context.pickViewFor;function OGe(){const e=Su();return wn(e,MGe)}const GA=ye.raw({outline:"none",background:"mantine.colors.primary[8]",borderColor:"mantine.colors.primary[9]"}),Yk=".mantine-Tree-node:focus > .mantine-Tree-label &",DGe=ye.raw({display:"flex",width:"100%",background:"mantine.colors.body",rounded:"sm",padding:"[12px 8px 12px 14px]",minHeight:"60px",gap:"2",border:"1px solid",borderColor:"mantine.colors.defaultBorder",_hover:{...GA,borderColor:"mantine.colors.primary[9]",background:"mantine.colors.primary[8]/60"},_focus:GA,[Yk]:GA,_dark:{borderColor:"transparent",background:"mantine.colors.dark[6]/80"},_light:{background:"mantine.colors.white/80",_hover:{borderColor:"mantine.colors.primary[6]",backgroundColor:"mantine.colors.primary[5]"}}}),Wk="likec4-focusable",Xk={ref:"var(--likec4-icon-size, 24px)"},LGe=ye.raw({color:{base:"mantine.colors.dimmed",_light:"mantine.colors.gray[5]",_groupHover:"mantine.colors.primary[0]",_groupFocus:"mantine.colors.primary[0]"},[Yk]:{color:"mantine.colors.primary[0]"},flex:`0 0 ${Xk.ref}`,height:Xk.ref,width:Xk.ref,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start","--ti-size":Xk.ref,"& svg, & img":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none"},"& img":{objectFit:"contain"},"&.likec4-shape-icon svg":{strokeWidth:1.5}}),IGe=ye.raw({fontSize:"16px",fontWeight:500,lineHeight:"1.1",":where([data-disabled]) &":{opacity:.4},color:{base:"mantine.colors.dark[1]",_light:"mantine.colors.gray[7]",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"},_groupFocus:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}},[Yk]:{color:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}}}),vee=ye.raw({color:{base:"mantine.colors.dimmed",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.primary[0]"},_groupFocus:"mantine.colors.primary[0]"},[Yk]:{color:"mantine.colors.primary[0]"}}),zGe=ye.raw(vee,{marginTop:"1",fontSize:"12px",lineHeight:"1.4",":where([data-disabled]) &":{opacity:.85}}),jGe=ye({width:"100%",height:"100%",border:"2px dashed",borderColor:"mantine.colors.defaultBorder",rounded:"md",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"md",color:"mantine.colors.dimmed",padding:"md",paddingBlock:"xl"}),xee=ZSe({slots:["root","icon","title","description","descriptionColor"],className:"search-button",base:{root:DGe,icon:LGe,title:IGe,description:zGe,descriptionColor:vee}}),KA="@container likec4-tree (max-width: 450px)",BGe=ye({outline:"none",marginBottom:"2"}),FGe=ye(oX.raw({containerName:"likec4-tree"}),{containerType:"inline-size",height:"100%"}),HGe=ye({display:"flex",alignItems:"baseline",outline:"none !important",gap:"1"}),UGe=ye({marginTop:"2"}),VGe=ye({color:"mantine.colors.dimmed"}),qGe=ye({[KA]:{flexDirection:"column-reverse",alignItems:"flex-start",gap:"0.5"}}),YGe=ye({fontSize:"10px",lineHeight:"1.3",display:"block",fontWeight:500,whiteSpace:"nowrap",padding:"[1px 5px]",borderRadius:"4px",background:"mantine.colors.dark[9]/30",_light:{background:"mantine.colors.gray[3]/20"}}),WGe=ye({"--likec4-icon-size":"24px",[KA]:{"--likec4-icon-size":"18px"}}),XGe=ye({flex:0,fontSize:"10px",fontWeight:500,whiteSpace:"nowrap",lineHeight:"1.1",[KA]:{display:"none"}});function bi(e){e.stopPropagation(),e.preventDefault()}function wee(e){const r=e.getBoundingClientRect();return r.y+Math.floor(r.height/2)}function Dy(e){if(!e){console.error("moveFocusToSearchInput: from is null or undefined");return}const r=e.getRootNode();if(!_1(r.querySelector)){console.error("moveFocusToSearchInput: root.querySelector is not a function");return}let n=r.querySelector("[data-likec4-search-input]");if(n){const o=n.value.length;n.focus(),n.setSelectionRange(o,o)}}function Gk(e){if(!e){console.error("focusToFirstFoundElement: from is null or undefined");return}const r=e.getRootNode();if(!_1(r.querySelector)){console.error("focusToFirstFoundElement: root.querySelector is not a function");return}r.querySelector(`[data-likec4-search] .${Wk}`)?.focus()}function kee(e,r,n=`.${Wk}`){if(!e)return console.error("queryAllFocusable: from is null or undefined"),[];const o=e.getRootNode();return _1(o.querySelectorAll)?[...o.querySelectorAll(`[data-likec4-search-${r}] ${n}`)]:(console.error("queryAllFocusable: root.querySelectorAll is not a function"),[])}const GGe="likec4-view-btn",KGe=Je(ye({flexWrap:"nowrap",display:"flex","&[data-disabled] .mantine-ThemeIcon-root":{opacity:.45}}),GGe);ye({marginTop:"1",fontSize:"13px",lineHeight:"1.4",":where(.likec4-view-btn[data-disabled]) &":{opacity:.85}});const _ee=()=>b.jsx(Vr,{className:jGe,children:"Nothing found"}),ZGe=E.memo(()=>{const e=E.useRef(null);let r=[...Ho().views()],n=XA();return n&&(n.startsWith("kind:")?r=[]:r=r.filter(o=>n.startsWith("#")?o.tags.some(a=>a.toLocaleLowerCase().includes(n.slice(1))):`${o.id} ${o.title} ${o.description.text}`.toLocaleLowerCase().includes(n))),b.jsxs(ra,{ref:e,renderRoot:o=>b.jsx(Qr,{layout:!0,...o}),gap:8,"data-likec4-search-views":!0,onKeyDown:o=>{if(o.key==="ArrowLeft"||o.key==="ArrowRight"){const a=o.target.getBoundingClientRect().y,i=kee(e.current,"elements",".likec4-element-button");let s=i.length>1?i.find((l,c,u)=>wee(l)>a||c===u.length-1):null;s??=hp(i),s&&(o.stopPropagation(),s.focus());return}},children:[r.length===0&&b.jsx(_ee,{}),r.length>0&&b.jsx(_3,{children:b.jsx(Pr,{"data-likec4-view":!0,tabIndex:-1,onFocus:o=>{o.stopPropagation(),Dy(e.current)}})}),r.map((o,a)=>b.jsx(Qr,{layoutId:`@view${o.id}`,children:b.jsx(ZA,{view:o,search:n,tabIndex:a===0?0:-1})},o.id))]})}),Kk=xee();function ZA({className:e,view:r,loop:n=!1,search:o,...a}){const i=Su(),s=Wt(),l=Fk(),c=r.id===l,u=()=>{i.send({type:"close"}),setTimeout(()=>{s.navigateTo(r.id)},100)};return b.jsxs(Pr,{...a,className:Je(Kk.root,"group",Wk,KGe,e),"data-likec4-view":r.id,...c&&{"data-disabled":!0},onClick:d=>{d.stopPropagation(),u()},onKeyDown:T1({siblingSelector:"[data-likec4-view]",parentSelector:"[data-likec4-search-views]",activateOnFocus:!1,loop:n,orientation:"vertical",onKeyDown:d=>{d.nativeEvent.code==="Space"&&(d.stopPropagation(),u())}}),children:[b.jsx(ci,{variant:"transparent",className:Kk.icon,children:r.isDeploymentView()?b.jsx(UA,{stroke:1.8}):b.jsx(gi,{stroke:1.8})}),b.jsxs(Vr,{style:{flexGrow:1},children:[b.jsxs(Ur,{gap:"xs",wrap:"nowrap",align:"center",children:[b.jsx(Kl,{component:"div",highlight:o,className:Kk.title,children:r.title||"untitled"}),c&&b.jsx(Gl,{size:"xs",fz:9,radius:"sm",children:"current"})]}),b.jsx(Kl,{highlight:r.description.nonEmpty?o:"",component:"div",className:Kk.description,lineClamp:1,children:r.description.text||"No description"})]})]})}const vm=xee(),QGe=E.memo(()=>{const e=Ho(),r=XA(),n=E.useMemo(()=>{const a=r.split(".");let i;iu(a)||a[0]==="kind:"?i=e.elements():i=Rd(e.elements(),u=>r.startsWith("kind:")?u.kind.toLocaleLowerCase().startsWith(r.slice(5)):r.startsWith("#")?u.tags.some(d=>d.toLocaleLowerCase().includes(r.slice(1))):(u.title+" "+u.id+" "+u.summary.text).toLocaleLowerCase().includes(r));const s={},{all:l,roots:c}=yn([...i],qc,fp((u,d)=>{const h={label:d.title,value:d.id,element:d,searchTerms:a,children:[]};s[h.value]=h;const p=u.all.findLast(g=>Un(g.value,h.value));return p?(p.children.push(h),p.children.length>1&&p.children.sort(Cy)):u.roots.push(h),u.all.push(h),u},{all:[],roots:[]}));return{all:l,byid:s,roots:c.sort(Cy)}},[e,r]),o=Eee();return n.all.length===0?b.jsx(_ee,{}):b.jsx(eKe,{data:n,handleClick:o})}),JGe=()=>{};function eKe({data:{all:e,byid:r,roots:n},handleClick:o}){const a=Y1({multiple:!1});a.setHoveredNode=JGe,E.useEffect(()=>{a.collapseAllNodes();for(const s of e)s.children.length>0&&a.expand(s.value)},[e]);const i=it(s=>{const l=s.target,c=l.getAttribute("data-value"),u=!!c&&r[c];if(u){if(s.key==="ArrowUp"){c===n[0]?.value&&(bi(s),Dy(l));return}if(s.key==="ArrowRight"){if(u.children.length>0&&a.expandedState[c]===!1)return;const d=(s.target.querySelector(".mantine-Tree-label")??l).getBoundingClientRect().y,h=kee(l,"views");let p=h.length>1?h.find((g,y,x)=>wee(g)>d||y===x.length-1):null;p??=hp(h),p&&(bi(s),p.focus());return}if(s.key===" "||s.key==="Enter"){bi(s),o(u.element);return}}});return b.jsx(Bp,{"data-likec4-search-elements":!0,allowRangeSelection:!1,clearSelectionOnOutsideClick:!0,selectOnClick:!1,tree:a,data:n,levelOffset:"lg",classNames:{root:FGe,node:Je(Wk,BGe),label:HGe,subtree:UGe},onKeyDownCapture:i,renderNode:tKe})}function tKe({node:e,elementProps:r,hasChildren:n,expanded:o}){const{element:a,searchTerms:i}=e,s=h6e({element:{id:a.id,title:a.title,shape:a.shape,icon:a.icon},className:Je(vm.icon,WGe)}),l=[...a.views()],c=Eee(),u=`@tree.${e.value}`;return b.jsxs(Qr,{layoutId:u,...r,children:[b.jsx(or,{variant:"transparent",size:16,tabIndex:-1,className:Je(VGe),style:{visibility:n?"visible":"hidden"},children:b.jsx(hh,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${o?"90deg":"0"})`,width:"100%"}})}),b.jsxs(Pr,{component:ps,layout:!0,tabIndex:-1,"data-value":a.id,className:Je(vm.root,"group","likec4-element-button"),...l.length>0&&{onClick:d=>{(!n||o)&&(d.stopPropagation(),c(a))}},children:[s,b.jsxs(Se,{style:{flexGrow:1},children:[b.jsxs(Ur,{gap:"xs",wrap:"nowrap",align:"center",className:qGe,children:[b.jsx(Kl,{component:"div",highlight:i,className:vm.title,children:e.label}),b.jsx(po,{label:a.id,withinPortal:!1,fz:"xs",disabled:!a.id.includes("."),children:b.jsx(Kl,{component:"div",highlight:i,className:Je(YGe,vm.descriptionColor),children:g0(a.id)})})]}),b.jsx(Kl,{component:"div",highlight:i,className:vm.description,lineClamp:1,children:a.summary.text||"No description"})]}),b.jsx(wt,{component:"div",className:Je(XGe,vm.descriptionColor),fz:"xs",children:l.length===0?"No views":b.jsxs(b.Fragment,{children:[l.length," view",l.length>1?"s":""]})})]})]})}function Eee(){const e=Wt(),r=Su();return it(n=>{const o=[...n.views()];if(o.length===0)return;const a=zw(o);if(a){r.send({type:"close"}),a.id!==e.currentView.id&&setTimeout(()=>{e.navigateTo(a.id)},100);return}r.send({type:"pickview.open",elementFqn:n.id})})}const rKe=ye({border:"transparent",background:{base:"transparent",_focusWithin:{base:"mantine.colors.gray[4]/55 !important",_dark:"mantine.colors.dark[5]/55 !important"},_groupHover:{base:"mantine.colors.gray[3]/35",_dark:"mantine.colors.dark[5]/35"}}}),nKe=ye({position:"absolute",inset:"0",width:"100%",height:"100%",backgroundColor:"[rgb(34 34 34 / 0.7)]",zIndex:902,backdropFilter:"auto",backdropBlur:"10px",_light:{backgroundColor:"[rgb(255 255 255 / 0.6)]"}}),oKe=ye({position:"absolute",top:"[2rem]",left:"[50%]",width:"100%",maxWidth:"600px",minWidth:"200px",transform:"translateX(-50%)",zIndex:903}),See=ye({marginTop:"2","& + &":{marginTop:"[32px]"}});ye({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}});function aKe({elementFqn:e}){const r=Su(),n=Ho().element(e),o=[],a=[];for(const s of n.views())s.viewOf===n?o.push(s):a.push(s);const i=()=>{r.send({type:"pickview.close"})};return xp("keydown",s=>{try{s.key==="Escape"&&(s.stopPropagation(),s.preventDefault(),i())}catch(l){console.warn(l)}},{capture:!0}),b.jsxs(b.Fragment,{children:[b.jsx(Qr,{className:nKe,onClick:s=>{s.stopPropagation(),i()}},"pickview-backdrop"),b.jsx(C3,{children:b.jsxs(Qr,{initial:{opacity:0,scale:.95,originY:0,translateX:"-50%",translateY:-20},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1}},className:oKe,"data-likec4-search-views":!0,children:[b.jsxs(Ur,{px:"sm",py:"md",justify:"space-between",children:[b.jsx(eh,{order:2,lh:1,children:"Select view"}),b.jsx(or,{size:"md",variant:"default",onClick:s=>{s.stopPropagation(),i()},children:b.jsx(Hp,{})})]}),b.jsxs(ta,{mah:"calc(100vh - 110px)",type:"never",children:[o.length>0&&b.jsxs(ra,{gap:"sm",px:"sm",className:See,children:[b.jsx(eh,{order:6,c:"dimmed",children:"scoped views of the element"}),o.map((s,l)=>b.jsx(ZA,{view:s,search:"",loop:!0,mod:{autofocus:l===0}},s.id))]}),a.length>0&&b.jsxs(ra,{gap:"sm",px:"sm",className:See,children:[b.jsx(eh,{order:6,c:"dimmed",children:"views including this element"}),a.map((s,l)=>b.jsx(ZA,{view:s,search:"",loop:!0,mod:{autofocus:l===0&&o.length===0}},s.id))]})]})]},"pickview")})]})}function iKe(){const e=E.useRef(null);let r=Ho().tagsSortedByUsage,n=PGe(),o=XA(),a=r.length;if(o.startsWith("#")){const s=o.slice(1);r=r.filter(({tag:l})=>l.toLocaleLowerCase().includes(s))}if(r.length===0)return null;const i=r.length!==a;return b.jsxs(xn,{ref:e,css:{gap:"md",paddingLeft:"[48px]",flexWrap:"nowrap"},children:[b.jsx(xn,{css:{gap:"1.5",flexWrap:"wrap",opacity:i?1:.3,grayscale:i?0:.9,filter:"auto",transition:"fast",_groupHover:{opacity:1,grayscale:0},_groupFocusWithin:{opacity:1,grayscale:0}},children:r.map(({tag:s})=>b.jsx(Ck,{tag:s,className:ye({userSelect:"none",cursor:"pointer"}),onClick:l=>{l.stopPropagation(),n(`#${s}`),setTimeout(()=>{Gk(e.current)},350)}},s))}),i&&b.jsx(Zn,{size:"compact-xs",variant:"light",onClick:s=>{s.stopPropagation(),n(""),Dy(e.current)},rightSection:b.jsx(Hp,{size:14}),children:"Clear"})]})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const sKe=[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],QA=yt("outline","search","Search",sKe);function Cee(e){return e.match(/^(k|ki|kin|kind|kind:)$/)!=null}const lKe=["#","kind:"],cKe=E.memo(()=>{const e=Su(),r=Ho(),n=E.useRef(null),{ref:o,focused:a}=$Pe(),[i,s]=RGe(),l=tW({scrollBehavior:"smooth",loop:!1});xp("keydown",d=>{try{!a&&(d.key==="Backspace"||d.key.startsWith("Arrow")||d.key.match(new RegExp("^\\p{L}$","u")))&&Dy(n.current)}catch(h){console.warn(h)}});let c=[],u=!1;switch(!0){case i.startsWith("#"):{const d=i.toLocaleLowerCase().slice(1),h=r.tags.filter(p=>p.toLocaleLowerCase().includes(d));h.length===0?(u=!1,c=[b.jsx(I1,{children:"No tags found"},"empty-tags")]):(u=r.tags.some(p=>p.toLocaleLowerCase()===d),c=h.map(p=>b.jsxs(z1,{value:`#${p}`,children:[b.jsx(wt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"#"}),p]},p)));break}case i.startsWith("kind:"):case Cee(i):{const d=i.length>5?i.slice(5).toLocaleLowerCase():"";let h=q6(r.specification.elements);d&&(h=h.filter(p=>p.toLocaleLowerCase().includes(d))),h.length===0?(u=!1,c=[b.jsx(I1,{children:"No kinds found"},"empty-kinds")]):(u=h.some(p=>p.toLocaleLowerCase()===d),c=h.map(p=>b.jsxs(z1,{value:`kind:${p}`,children:[b.jsx(wt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"kind:"}),p]},p)));break}}return b.jsxs(Kn,{onOptionSubmit:d=>{s(d),l.resetSelectedOption(),lKe.includes(d)||(l.closeDropdown(),setTimeout(()=>{Gk(n.current)},350))},width:"max-content",position:"bottom-start",shadow:"md",offset:{mainAxis:4,crossAxis:50},store:l,withinPortal:!1,children:[b.jsx(cT,{children:b.jsx(Ra,{ref:Rr(n,o),placeholder:"Search by title, description or start with # or kind:",autoFocus:!0,"data-autofocus":!0,"data-likec4-search-input":!0,tabIndex:0,classNames:{input:rKe},size:"lg",value:i,leftSection:b.jsx(QA,{style:{width:Ne(20)},stroke:2}),rightSection:b.jsx(Ra.ClearButton,{onClick:d=>{d.stopPropagation();const h=e.getSnapshot().context.openedWithSearch;i===""||i===h?e.send({type:"close"}):s("")}}),rightSectionPointerEvents:"auto",onChange:d=>{s(d.currentTarget.value),l.openDropdown(),l.updateSelectedOptionIndex()},onClick:()=>l.openDropdown(),onFocus:()=>l.openDropdown(),onBlur:()=>l.closeDropdown(),onKeyDownCapture:d=>{if(d.key==="Tab"){switch(!0){case l.getSelectedOptionIndex()>=0:return l.clickSelectedOption(),bi(d);case c.length===1:return l.selectFirstOption()&&l.clickSelectedOption(),bi(d);case Cee(i):return s("kind:"),bi(d)}return}if(d.key==="Backspace"&&l.dropdownOpened){if(i==="kind:")return s(""),l.resetSelectedOption(),bi(d);if(i.startsWith("kind:")&&u)return s("kind:"),l.resetSelectedOption(),bi(d);if(i.startsWith("#")&&u)return s("#"),l.resetSelectedOption(),bi(d)}if(d.key==="Escape"&&l.dropdownOpened&&c.length>0){bi(d),l.closeDropdown();return}if(d.key==="ArrowUp"&&l.dropdownOpened&&i===""&&l.getSelectedOptionIndex()===0){l.closeDropdown(),bi(d);return}if(d.key==="ArrowDown"&&(!l.dropdownOpened||c.length===0||u||i===""&&l.getSelectedOptionIndex()===c.length-1)){l.closeDropdown(),bi(d),Gk(n.current);return}}})}),b.jsx(O3,{hidden:c.length===0,style:{minWidth:300},children:b.jsx(D3,{children:b.jsx(ta,{mah:"min(322px, calc(100cqh - 50px))",type:"scroll",children:c})})})]})}),uKe=ye({backgroundColor:"[rgb(34 34 34 / var(--_opacity, 95%))]",_light:{backgroundColor:"[rgb(250 250 250 / var(--_opacity, 95%))]"},backdropFilter:"auto",backdropBlur:"var(--_blur, 10px)"}),dKe=ye({width:"100%",height:"100%",maxHeight:"100vh",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"stretch",gap:"sm",paddingTop:"[20px]",paddingLeft:"md",paddingRight:"md",paddingBottom:"sm",background:"[transparent]"}),hKe=e=>!e.matches("inactive");function fKe({searchActorRef:e}){const r=wn(e,hKe),n=()=>{e.send({type:"open"})},o=it(()=>{e.send({type:"close"})});return APe([["mod+k",n,{preventDefault:!0}],["mod+f",n,{preventDefault:!0}]]),b.jsx(AGe,{value:e,children:b.jsx(fh.Overlays,{children:b.jsx(jT,{FallbackComponent:BT,onReset:o,children:b.jsx(Pa,{children:r&&b.jsx(Oy,{fullscreen:!0,withBackdrop:!1,backdrop:{opacity:.9},classes:{dialog:uKe,body:dKe},openDelay:0,onClose:o,"data-likec4-search":"true",children:b.jsx(pKe,{searchActorRef:e})})})})})})}const Tee=ye({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}}),pKe=({searchActorRef:e})=>{const r=E.useRef(null),n=OGe();return Wx(()=>{Sa(e.getSnapshot().context.openedWithSearch)&&Gk(r.current)},150),b.jsxs(Vr,{ref:r,display:"contents",children:[b.jsx(Ur,{className:"group",wrap:"nowrap",onClick:o=>{o.stopPropagation(),Dy(r.current)},children:b.jsxs(Fp,{flex:1,px:"sm",children:[b.jsx(cKe,{}),b.jsx(iKe,{})]})}),b.jsxs(B1,{children:[b.jsx(Zd,{span:6,children:b.jsx(eh,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Elements"})}),b.jsx(Zd,{span:6,children:b.jsx(eh,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Views"})})]}),b.jsxs(B1,{className:ye({containerName:"likec4-search-elements",containerType:"size",overflow:"hidden",flexGrow:1}),children:[b.jsx(Zd,{span:6,children:b.jsx(os,{type:"scroll",className:Tee,pr:"xs",scrollbars:"y",children:b.jsx(Pa,{children:b.jsx(dm,{id:"likec4-search-elements",children:b.jsx(QGe,{})})})})}),b.jsx(Zd,{span:6,children:b.jsx(os,{type:"scroll",className:Tee,pr:"xs",scrollbars:"y",children:b.jsx(Pa,{children:b.jsx(dm,{id:"likec4-search-views",children:b.jsx(ZGe,{})})})})})]}),n&&b.jsx(aKe,{elementFqn:n})]})};function mKe({children:e}){const r=E.useContext(MT);if(!r)throw new Error("PortalToContainer must be used within RootContainer");return b.jsx(D1,{target:r.ref.current??`#${r.id}`,children:e})}const Aee={onChange:null,onNavigateTo:null,onNodeClick:null,onNodeContextMenu:null,onCanvasContextMenu:null,onEdgeClick:null,onEdgeContextMenu:null,onCanvasClick:null,onCanvasDblClick:null,onBurgerMenuClick:null,onOpenSource:null,onInitialized:null},JA=q6(Aee),Nee=E.createContext({...E1(JA,e=>[e,null]),handlersRef:{current:Aee}});function gKe({handlers:e,children:r}){const n=Kf(e),o=JA.map(i=>_1(e[i])),a=E.useMemo(()=>({...E1(JA,i=>n.current[i]?[i,(...s)=>n.current[i]?.(...s)]:[i,null]),handlersRef:n}),[n,...o]);return b.jsx(Nee.Provider,{value:a,children:r})}function sc(){return E.useContext(Nee)}const yKe=ec({delays:{"open timeout":({context:e})=>e.openTimeout,"close timeout":600,"long idle":1500},actions:{"update edgeId":et(({context:e,event:r})=>(Ut(r,["xyedge.select","xyedge.mouseEnter"]),{edgeId:r.edgeId,edgeSelected:e.edgeSelected||r.type==="xyedge.select"})),"increase open timeout":et(()=>({openTimeout:800})),"decrease open timeout":et(()=>({openTimeout:300})),"reset edgeId":et({edgeId:null,edgeSelected:!1})},guards:{"edge was selected":({context:e})=>e.edgeSelected,"edge was hovered":({context:e})=>!e.edgeSelected}}).createMachine({id:"breadcrumbs",context:()=>({edgeId:null,edgeSelected:!1,openTimeout:800}),initial:"idle",on:{close:{target:"#idle",actions:["reset edgeId","increase open timeout"]}},states:{idle:{id:"idle",on:{"xyedge.mouseEnter":{target:"opening",actions:"update edgeId"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"long idle":{actions:"increase open timeout"}}},opening:{on:{"xyedge.mouseLeave":{target:"idle"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"open timeout":{actions:"decrease open timeout",target:"active"}}},active:{tags:["opened"],initial:"opened",exit:"reset edgeId",on:{"xyedge.unselect":{target:"idle",actions:"increase open timeout"},"xyedge.select":{actions:"update edgeId"}},states:{opened:{on:{"dropdown.mouseEnter":{target:"hovered"},"xyedge.mouseLeave":{guard:"edge was hovered",target:"closing"}}},hovered:{on:{"dropdown.mouseLeave":[{guard:"edge was selected",target:"opened"},{target:"closing"}]}},closing:{on:{"xyedge.mouseEnter":{guard:"edge was hovered",target:"opened",actions:"update edgeId"},"xyedge.select":{target:"opened",actions:"update edgeId"},"dropdown.mouseEnter":{target:"hovered"}},after:{"close timeout":{target:"#idle"}}}}}}}),bKe=yKe,Ree=ye({display:"block",fontSize:"xxs",fontWeight:500,whiteSpace:"nowrap",paddingX:"1",paddingY:"0.5",borderRadius:"[2px]",background:{_light:"var(--likec4-palette-fill)/90",_dark:"var(--likec4-palette-fill)/60"},lineHeight:"1",color:{_light:"var(--likec4-palette-hiContrast)",_dark:"var(--likec4-palette-loContrast)"}}),vKe=ye({whiteSpaceCollapse:"preserve-breaks",fontSize:"sm",lineHeight:"sm",userSelect:"all"});function xKe(e){let r=null;for(const n of e.xyedges)if(n.selected){if(r){r=null;break}r=n.data.id}return{viewId:e.view.id,selected:r}}const wKe=E.memo(()=>{const e=Ho(),r=n8(bKe),n=Wt(),{viewId:o,selected:a}=$a(xKe),i=wn(r,g=>g.hasTag("opened")?g.context.edgeId:null);is("navigateTo",()=>{r.send({type:"close"})}),is("edgeMouseEnter",({edge:g})=>{r.send({type:"xyedge.mouseEnter",edgeId:g.data.id})}),is("edgeMouseLeave",()=>{r.send({type:"xyedge.mouseLeave"})}),is("edgeEditingStarted",()=>{r.send({type:"close"})}),is("walkthroughStarted",()=>{r.send({type:"close"})}),E.useEffect(()=>{a?r.send({type:"xyedge.select",edgeId:a}):r.send({type:"xyedge.unselect"})},[a]);const s=E.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseEnter"});const y=n.findEdge(i);y&&!y.data.hovered&&n.send({type:"xyflow.edgeMouseEnter",edge:y,event:g})},[r,n,i]),l=E.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseLeave"});const y=n.findEdge(i);y?.data.hovered&&n.send({type:"xyflow.edgeMouseLeave",edge:y,event:g})},[r,n,i]),{diagramEdge:c,sourceNode:u,targetNode:d}=$a(g=>{const y=i?o8(g,i):null,x=y?Qp(g,y.source):null,w=y?Qp(g,y.target):null;return{diagramEdge:y,sourceNode:x,targetNode:w}},Xn,[i]);if(!c||!u||!d||iu(c.relations))return null;const[h,p]=yn(c.relations,Ao(g=>{try{return e.relationship(g)}catch(y){return console.error(`View is cached and likec4model missing relationship ${g} from ${u.id} -> ${d.id}`,y),null}}),dp(Sa),sV(g=>g.source.id===u.id&&g.target.id===d.id));return h.length===0&&p.length===0?(console.warn("No relationships found  diagram edge",{diagramEdge:c,sourceNode:u,targetNode:d}),null):b.jsx(mKe,{children:b.jsx(_Ke,{viewId:o,direct:h,nested:p,diagramEdge:c,sourceNode:u,targetNode:d,onMouseEnter:s,onMouseLeave:l})})}),kKe=(e,r)=>r?.querySelector(`.likec4-edge-label[data-edge-id="${e}"]`)??null,e7=8,_Ke=({viewId:e,diagramEdge:r,direct:n,nested:o,sourceNode:a,targetNode:i,onMouseEnter:s,onMouseLeave:l})=>{const c=E.useRef(null),{enableNavigateTo:u,enableVscode:d}=wr(),{onOpenSource:h}=sc(),p=wze(),[g,y]=E.useState(null);E.useLayoutEffect(()=>{y(kKe(r.id,p.current))},[r]),E.useEffect(()=>{const k=g,C=c.current;if(!k||!C)return;let _=!1;const T=m3(k,C,()=>{Vq(k,C,{placement:"bottom-start",middleware:[Bq(4),sDe({crossAxis:!0,padding:e7,allowedPlacements:["bottom-start","top-start","right-start","right-end","left-end"]}),Fq({padding:e7,apply({availableHeight:A,availableWidth:N,elements:$}){_||Object.assign($.floating.style,{maxWidth:`${Ki(yi(N),{min:200,max:400})}px`,maxHeight:`${Ki(yi(A),{min:0,max:500})}px`})}}),Hq({padding:e7*2})]}).then(({x:A,y:N,middlewareData:$})=>{_||(C.style.transform=`translate(${yi(A)}px, ${yi(N)}px)`,C.style.visibility=$.hide?.referenceHidden?"hidden":"visible")})},{ancestorResize:!1,animationFrame:!0});return()=>{_=!0,T()}},[g]);const x=Wt(),w=E.useCallback((k,C)=>b.jsxs(E.Fragment,{children:[C>0&&b.jsx(Lp,{}),b.jsx(EKe,{viewId:e,relationship:k,sourceNode:a,targetNode:i,onNavigateTo:u?_=>{x.navigateTo(_)}:void 0,...h&&d&&{onOpenSource:()=>h({relation:k.id})}})]},k.id),[e,a,i,x,u,h,d]);return b.jsx(ta,{ref:c,onMouseEnter:s,onMouseLeave:l,type:"auto",scrollbars:"y",scrollbarSize:6,styles:{viewport:{overscrollBehavior:"contain",minWidth:180}},className:Je(ye({layerStyle:"likec4.dropdown",p:"0",pointerEvents:{base:"all",_whenPanning:"none"},position:"absolute",top:"0",left:"0",width:"max-content",cursor:"default"})),children:b.jsxs(Fp,{css:{gap:"3",padding:"4",paddingTop:"2"},children:[b.jsx(Zn,{variant:"default",color:"gray",size:"compact-xs",style:{alignSelf:"flex-start",fontWeight:500,"--button-fz":"var(--font-sizes-xxs)"},onClick:k=>{k.stopPropagation(),x.openRelationshipDetails(r.id)},children:"browse relationships"}),n.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{children:"DIRECT RELATIONSHIPS"}),n.map(w)]}),o.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{css:{mt:n.length>0?"2":"0"},children:"RESOLVED FROM NESTED"}),o.map(w)]})]})})},EKe=E.forwardRef(({viewId:e,relationship:r,sourceNode:n,targetNode:o,onNavigateTo:a,onOpenSource:i},s)=>{const l=$ee(r,"source",n),c=$ee(r,"target",o),u=a&&r.navigateTo?.id!==e?r.navigateTo?.id:void 0,d=r.links;return b.jsxs(Fp,{ref:s,className:sX({block:"2",inline:"2",paddingY:"2.5",paddingX:"2",gap:"1",rounded:"sm",backgroundColor:{_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/70"}}}),children:[b.jsx(xn,{gap:"0.5",children:b.jsxs(Qd,{openDelay:200,children:[b.jsx(Zk,{label:l.full,offset:2,position:"top-start",children:b.jsx(wt,{component:"div","data-likec4-color":n.color,className:Ree,children:l.short})}),b.jsx(ym,{stroke:2.5,size:"11px",opacity:.65}),b.jsx(Zk,{label:c.full,offset:2,position:"top-start",children:b.jsx(wt,{component:"div","data-likec4-color":o.color,className:Ree,children:c.short})}),u&&b.jsx(Zk,{label:"Open dynamic view",children:b.jsx(or,{size:"sm",radius:"sm",variant:"default",onClick:h=>{h.stopPropagation(),a?.(u)},style:{alignSelf:"flex-end"},role:"button",children:b.jsx(gi,{size:"80%",stroke:2})})}),i&&b.jsx(Zk,{label:"Open source",children:b.jsx(or,{size:"sm",radius:"sm",variant:"default",onClick:h=>{h.stopPropagation(),i()},role:"button",children:b.jsx(pm,{size:"80%",stroke:2})})})]})}),b.jsx(Vr,{className:vKe,children:r.title||"untitled"}),r.kind&&b.jsxs(xn,{gap:"2",children:[b.jsx(xm,{children:"kind"}),b.jsx(wt,{size:"xs",className:ye({userSelect:"all"}),children:r.kind})]}),r.technology&&b.jsxs(xn,{gap:"2",children:[b.jsx(xm,{children:"technology"}),b.jsx(wt,{size:"xs",className:ye({userSelect:"all"}),children:r.technology})]}),r.description.nonEmpty&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{children:"description"}),b.jsx(Vr,{css:{paddingLeft:"2.5",py:"1.5",borderLeft:"2px dotted",borderLeftColor:{base:"mantine.colors.gray[3]",_dark:"mantine.colors.dark[4]"}},children:b.jsx(mh,{value:r.description,fontSize:"sm"})})]}),d.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{children:"links"}),b.jsx(xn,{gap:"1",flexWrap:"wrap",children:d.map(h=>b.jsx(j9,{size:"sm",value:h},h.url))})]})]})}),xm=Ql("div",{base:{display:"block",fontSize:"xxs",fontWeight:500,userSelect:"none",lineHeight:"sm",color:"mantine.colors.dimmed"}}),Zk=po.withProps({color:"dark",fz:"xs",label:"",children:null,offset:8,withinPortal:!1});function $ee(e,r,n){const o=e.isDeploymentRelation()?n.id:n.modelRef||"",a=e[r].id,i=g0(o)+a.slice(o.length);return{full:a,short:i}}function wm(){const e=kze();return E.useMemo(()=>e?{portalProps:{target:e},withinPortal:!0}:{withinPortal:!1},[e])}const SKe=ec({delays:{"open timeout":500,"close timeout":350},actions:{"update activatedBy":et({activatedBy:({context:e,event:r})=>{switch(!0){case r.type.includes("click"):return"click";case r.type.includes("mouseEnter"):return"hover";default:return e.activatedBy}}}),"keep dropdown open":et({activatedBy:"click"}),"update selected folder":et(({event:e})=>e.type==="breadcrumbs.click.root"?{selectedFolder:""}:(Ut(e,["breadcrumbs.click.folder","select.folder"]),{selectedFolder:e.folderPath})),"reset selected folder":et({selectedFolder:({context:e})=>e.viewModel.folder.path}),"update inputs":et(({context:e,event:r})=>{Ut(r,"update.inputs");const n=r.inputs.viewModel.id!==e.viewModel.id;let o=e.selectedFolder;return r.inputs.viewModel.folder.path.startsWith(o)||(o=r.inputs.viewModel.folder.path),{viewModel:r.inputs.viewModel,selectedFolder:o,activatedBy:n?"hover":e.activatedBy}}),"reset search query":et({searchQuery:""}),"update search query":et(({event:e})=>(Ut(e,"searchQuery.change"),{searchQuery:e.value??""})),"emit navigateTo":ui(({event:e})=>(Ut(e,"select.view"),{type:"navigateTo",viewId:e.viewId}))},guards:{"was opened on hover":({context:e})=>e.activatedBy==="hover","has search query":({context:e})=>!iu(e.searchQuery),"search query is empty":({context:e})=>iu(e.searchQuery)}}).createMachine({id:"breadcrumbs",context:({input:e})=>({...e,breadcrumbs:[],activatedBy:"hover",selectedFolder:"",searchQuery:"",folderColumns:[]}),initial:"idle",entry:["update activatedBy","reset selected folder"],on:{"update.inputs":{actions:"update inputs"},"searchQuery.change":{actions:["update search query",sn({type:"searchQuery.changed"})]}},states:{idle:{id:"idle",on:{"breadcrumbs.mouseEnter.*":{target:"pending",actions:"update activatedBy"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}}},pending:{on:{"breadcrumbs.mouseEnter.*":{actions:"update activatedBy"},"breadcrumbs.mouseLeave.*":{target:"idle"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}},after:{"open timeout":{target:"active"}}},active:{tags:["active"],initial:"decide",on:{"dropdown.dismiss":{target:"#idle"},"breadcrumbs.mouseLeave":{guard:"was opened on hover",target:".closing"},"dropdown.mouseLeave":{guard:"was opened on hover",target:".closing"},"searchQuery.changed":{target:".decide"}},states:{decide:{always:[{guard:"has search query",target:"search"},{target:"opened"}]},opened:{on:{"searchQuery.changed":{guard:"has search query",actions:"keep dropdown open",target:"search"},"breadcrumbs.click.viewtitle":{actions:"reset selected folder"},"breadcrumbs.click.*":{actions:"update selected folder"},"select.folder":{actions:["keep dropdown open","update selected folder"]},"select.view":{actions:["emit navigateTo"]}}},search:{on:{"breadcrumbs.click.viewtitle":{actions:["reset search query","reset selected folder"],target:"opened"},"breadcrumbs.click.*":{actions:["reset search query","update selected folder"],target:"opened"},"select.view":{actions:["emit navigateTo"]}}},closing:{on:{"breadcrumbs.mouseEnter.*":{target:"decide"},"dropdown.mouseEnter":{target:"decide"}},after:{"close timeout":{target:"#idle"}}}}}}}),CKe=SKe,t7=E.createContext(null);t7.displayName="NavigationPanelActorSafeContext";const TKe=t7.Provider,r7=()=>{const e=E.useContext(t7);if(e===null)throw new Error("NavigationPanelActorRef is not found in the context");return e};function Pee(e,r=Xn){const n=r7();return wn(n,e,r)}function AKe(e,r=Xn){return Pee(n=>e(n.context),r)}function Ly(){const e=r7();return E.useMemo(()=>({actorRef:e,send:r=>e.send(r),selectFolder:r=>e.send({type:"select.folder",folderPath:r}),selectView:r=>e.send({type:"select.view",viewId:r}),isOpened:()=>e.getSnapshot().hasTag("active"),clearSearch:()=>e.send({type:"searchQuery.change",value:""}),closeDropdown:()=>e.send({type:"dropdown.dismiss"})}),[e])}const Mee=po.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1}),Oee=()=>b.jsx(ci,{variant:"transparent",size:16,className:ye({display:{base:"none","@/md":"flex"},color:{base:"mantine.colors.gray[5]",_dark:"mantine.colors.dark[3]"}}),children:b.jsx(hh,{})});L3.withProps({separator:b.jsx(Oee,{}),separatorMargin:4});const gh=E.forwardRef(({variant:e="default",className:r,disabled:n=!1,...o},a)=>b.jsx(or,{size:"md",variant:"transparent",radius:"sm",component:ps,...!n&&{whileHover:{scale:1.085},whileTap:{scale:1,translateY:1}},disabled:n,...o,className:Je(r,Aqe({variant:e})),ref:a})),Qk=J0({base:{fontSize:"sm",fontWeight:"500",transition:"fast",color:{base:"mantine.colors.text/90",_hover:"[var(--mantine-color-bright)]"}},variants:{truncate:{true:{truncate:!0}},dimmed:{true:{color:{base:"mantine.colors.dimmed",_hover:"mantine.colors.text"}}}}}),NKe=E.forwardRef((e,r)=>b.jsxs("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 222 56",...e,children:[b.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"}),b.jsx("path",{className:ye({fill:"[#FCFBF7]",_light:{fill:"[#222221]"}}),d:"M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"})]})),RKe=E.forwardRef((e,r)=>b.jsx("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 56",...e,children:b.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"})})),$Ke=()=>{const e=Ly(),{onBurgerMenuClick:r}=sc();return b.jsx(Qr,{layout:"position",children:b.jsxs(Pr,{onMouseEnter:()=>{e.send({type:"breadcrumbs.mouseEnter.root"})},onMouseLeave:()=>{e.send({type:"breadcrumbs.mouseLeave.root"})},onClick:n=>{n.stopPropagation(),r&&e.isOpened()&&setTimeout(()=>{r()},100),e.send({type:"breadcrumbs.click.root"})},className:Je("mantine-active",Uo({padding:"0.5",width:{base:"[20px]","@/md":"[64px]"}})),children:[b.jsx(NKe,{className:ye({display:{base:"none","@/md":"block"}})}),b.jsx(RKe,{className:ye({display:{base:"block","@/md":"none"}})})]})})};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const PKe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],MKe=yt("outline","arrow-left","ArrowLeft",PKe),OKe=()=>{const e=Wt(),{hasStepBack:r,hasStepForward:n}=$a(o=>({hasStepBack:o.navigationHistory.currentIndex>0,hasStepForward:o.navigationHistory.currentIndex<o.navigationHistory.history.length-1}));return b.jsxs(Qr,{layout:"position",className:Uo({gap:"0.5"}),children:[b.jsx(gh,{disabled:!r,onClick:o=>{o.stopPropagation(),e.navigate("back")},children:b.jsx(MKe,{size:14})}),b.jsx(gh,{disabled:!n,onClick:o=>{o.stopPropagation(),e.navigate("forward")},children:b.jsx(ym,{size:14})})]})};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const DKe=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],LKe=yt("outline","link","Link",DKe),IKe=({context:e})=>{const r=e.viewModel;return{id:r.id,title:r.titleOrUntitled,description:r.description,tags:r.tags,links:r.links}},zKe=e=>{const[r,n]=E.useState(!1),o=Pee(IKe),a=wm();return b.jsxs(mr,{position:"bottom-end",shadow:"xl",clickOutsideEvents:["pointerdown","mousedown","click"],offset:{mainAxis:4},opened:r,onChange:n,...a,...e,children:[b.jsx(jKe,{linksCount:o.links.length,onOpen:()=>n(!0)}),r&&b.jsx(BKe,{data:o,onClose:()=>n(!1)})]})},jKe=({linksCount:e,onOpen:r})=>b.jsx(mr.Target,{children:b.jsxs(Pr,{component:ps,layout:"position",whileTap:{scale:.95,translateY:1},onClick:n=>{n.stopPropagation(),r()},className:Je("group",Uo({gap:"2",paddingInline:"2",paddingBlock:"1",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{_hover:"likec4.panel.action-icon.bg.hover"},display:{base:"none","@/xs":"flex"}}),""),children:[b.jsx(BA,{size:16,stroke:1.8}),e>0&&b.jsxs(xn,{gap:"[1px]",children:[b.jsx(LKe,{size:14,stroke:2}),b.jsx(Vr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8},children:e})]})]})}),Dee=Ql("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}}),BKe=({data:{id:e,title:r,description:n,tags:o,links:a},onClose:i})=>{const s=Wt();return is("paneClick",i),is("nodeClick",i),b.jsxs(mr.Dropdown,{className:Je("nowheel nopan nodrag",X1({margin:"xs",layerStyle:"likec4.dropdown",gap:"md",padding:"md",paddingBottom:"lg",pointerEvents:"all",maxWidth:"calc(100cqw - 52px)",minWidth:"200px",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),children:[b.jsxs("section",{children:[b.jsx(wt,{component:"div",fw:500,size:"xl",lh:"sm",children:r}),b.jsxs(xn,{alignItems:"flex-start",mt:"1",children:[b.jsx(FKe,{label:"id",value:e}),b.jsx(xn,{gap:"xs",flexWrap:"wrap",children:o.map(l=>b.jsx(Ck,{tag:l,cursor:"pointer",onClick:c=>{c.stopPropagation(),s.openSearch(`#${l}`)}},l))})]})]}),a.length>0&&b.jsxs("section",{className:Uo({alignItems:"baseline"}),children:[b.jsx(Dee,{children:"Links"}),b.jsx(xn,{gap:"xs",flexWrap:"wrap",children:a.map((l,c)=>b.jsx(j9,{value:l},`${c}-${l.url}`))})]}),n.isEmpty&&b.jsx(wt,{component:"div",fw:500,size:"xs",c:"dimmed",style:{userSelect:"none"},children:"No description"}),n.nonEmpty&&b.jsxs("section",{children:[b.jsx(Dee,{children:"Description"}),b.jsx(mh,{value:n,fontSize:"sm",emptyText:"No description",className:ye({userSelect:"all"})})]})]})},FKe=({label:e,value:r})=>b.jsxs(xn,{gap:"0.5",children:[b.jsx(HKe,{children:e}),b.jsx(Gl,{size:"sm",radius:"sm",variant:"light",color:"gray",tt:"none",fw:500,classNames:{root:ye({width:"max-content",overflow:"visible",px:"1",color:{_dark:"mantine.colors.gray[4]",_light:"mantine.colors.gray[8]"}}),label:ye({overflow:"visible"}),section:ye({opacity:.5,userSelect:"none",marginInlineEnd:"0.5"})},children:r})]}),HKe=Ql("div",{base:{color:"mantine.colors.dimmed",fontWeight:500,fontSize:"xxs",userSelect:"none"}}),UKe=()=>{const e=Fk(),{enableVscode:r}=wr(),{onOpenSource:n}=sc();return r?b.jsx(Mee,{label:"Open View Source",children:b.jsx(gh,{onClick:o=>{o.stopPropagation(),n?.({view:e})},children:b.jsx(pm,{style:{width:"60%",height:"60%"}})})}):null};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const VKe=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],qKe=yt("outline","lock","Lock",VKe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const YKe=[["path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M13 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],WKe=yt("outline","lock-open-2","LockOpen2",YKe),XKe=e=>({visible:e.features.enableReadOnly!==!0,isReadOnly:e.toggledFeatures.enableReadOnly??e.features.enableReadOnly}),GKe=()=>{const{visible:e,isReadOnly:r}=$a(XKe),n=Wt();return e?b.jsxs(Pr,{component:ps,layout:"position",onClick:o=>{o.stopPropagation(),n.toggleFeature("ReadOnly")},whileTap:{translateY:1},className:Je("group",Uo({gap:"0.5",paddingInline:"xxs",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{_hover:"likec4.panel.action-icon.bg.hover"}})),children:[r?b.jsx(qKe,{size:14,stroke:2}):b.jsx(WKe,{size:14,stroke:2}),r&&b.jsx(Qr,{className:ye({fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8}),children:"Unlock"})]}):null};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const KKe=[["path",{d:"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z",key:"svg-0"}]],ZKe=yt("filled","player-play-filled","PlayerPlayFilled",KKe),Lee=E.forwardRef((e,r)=>b.jsx(Zn,{variant:"filled",size:"xs",fw:"500",...e,ref:r,component:ps,layoutId:"trigger-dynamic-walkthrough",className:ye({flexShrink:0})}));function QKe(){const e=Wt(),r=Ly();return b.jsx(Mee,{label:"Start Dynamic View Walkthrough",children:b.jsx(Lee,{onClick:n=>{n.stopPropagation(),r.closeDropdown(),e.startWalkthrough()},size:"compact-xs",h:26,classNames:{label:ye({display:{base:"none","@/md":"[inherit]"}}),section:ye({marginInlineStart:{base:"0","@/md":"2"}})},rightSection:b.jsx(ZKe,{size:10}),children:"Start"})})}function JKe({value:e,onChange:r}){return b.jsx(Qr,{layout:"position",children:b.jsx(U1,{size:"xs",value:e,component:Qr,onChange:n=>{nt(n==="diagram"||n==="sequence","Invalid dynamic view variant"),r(n)},classNames:{label:ye({fontSize:"xxs"})},data:[{value:"diagram",label:"Diagram"},{value:"sequence",label:"Sequence"}]})})}function eZe(){const e=$a(n=>n.dynamicViewVariant),r=Wt();return b.jsxs(b.Fragment,{children:[b.jsx(JKe,{value:e,onChange:n=>{r.switchDynamicViewVariant(n)}},"dynamic-view-mode-switcher"),b.jsx(QKe,{},"trigger-dynamic-walkthrough")]})}function tZe(){const e=Wt(),r=ap();return b.jsxs(Pr,{component:ps,layout:"position",onClick:n=>{n.stopPropagation(),e.openSearch()},whileTap:{scale:.95,translateY:1},className:Je("group",Uo({gap:"xxs",paddingInline:"sm",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{base:"likec4.panel.action-icon.bg",_hover:"likec4.panel.action-icon.bg.hover"},display:{base:"none","@/md":"flex"}})),children:[b.jsx(QA,{size:14,stroke:2.5}),b.jsx(Vr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8,whiteSpace:"nowrap"},children:r?"⌘ + K":"Ctrl + K"})]})}const rZe=({context:e})=>{const r=e.viewModel.folder;return{folders:r.isRoot?[]:r.breadcrumbs.map(n=>({folderPath:n.path,title:n.title})),viewId:e.viewModel.id,viewTitle:e.viewModel.titleOrUntitled,isDynamicView:e.viewModel.isDynamicView()}},nZe=()=>{const e=Ly(),{enableSearch:r,enableNavigationButtons:n,enableDynamicViewWalkthrough:o}=wr(),{folders:a,viewTitle:i,isDynamicView:s}=wn(e.actorRef,rZe,ut),l=a.flatMap(({folderPath:u,title:d},h)=>[b.jsx(Pr,{component:ps,className:Je(Qk({dimmed:!0,truncate:!0}),"mantine-active",ye({userSelect:"none",maxWidth:"200px",display:{base:"none","@/md":"block"}})),title:d,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.folder",folderPath:u}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.folder",folderPath:u}),onClick:p=>{p.stopPropagation(),e.send({type:"breadcrumbs.click.folder",folderPath:u})},children:d},u),b.jsx(Oee,{},`separator-${h}`)]),c=b.jsx(Pr,{component:ps,className:Je("mantine-active",Qk({truncate:!0}),ye({userSelect:"none"})),title:i,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.viewtitle"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.viewtitle"}),onClick:u=>{u.stopPropagation(),e.send({type:"breadcrumbs.click.viewtitle"})},children:i},"view-title");return b.jsxs(Pa,{propagate:!0,children:[b.jsx($Ke,{},"burger-button"),n&&b.jsx(OKe,{},"nav-buttons"),b.jsxs(Qr,{layout:"position",className:Uo({gap:"1",flexShrink:1,flexGrow:1,overflow:"hidden"}),children:[l,c]},"breadcrumbs"),b.jsxs(Qr,{layout:"position",className:Uo({gap:"0.5",flexGrow:0,_empty:{display:"none"}}),children:[b.jsx(zKe,{onOpen:()=>e.closeDropdown()}),b.jsx(UKe,{}),b.jsx(GKe,{})]},"actions"),o&&s&&b.jsx(eZe,{},"dynamic-view-controls"),r&&b.jsx(tZe,{},"search-control")]})},n7=E.forwardRef(({className:e,truncateLabel:r=!0,...n},o)=>b.jsx(ST,{...n,component:"button",classNames:Fqe({truncateLabel:r}),className:Je("group","mantine-active",e),ref:o}));n7.displayName="NavigationLink";const oZe=E.createContext(null),aZe=[],iZe=()=>{},sZe={projects:aZe,onProjectChange:iZe};function lZe(){return E.useContext(oZe)??sZe}function cZe(){const e=E.useContext(W1);if(!e)throw new Error("No LikeC4ModelContext found");return e.projectId}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const uZe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],dZe=yt("outline","chevron-down","ChevronDown",uZe);function hZe(e){const{projects:r,onProjectChange:n}=lZe(),o=cZe();return r.length<=1?null:b.jsxs(xn,{gap:"0.5",alignItems:"baseline",children:[b.jsx(Vr,{css:{fontWeight:"400",fontSize:"xxs",color:"mantine.colors.dimmed",userSelect:"none"},children:"Project"}),b.jsxs(fo,{withinPortal:!1,shadow:"md",position:"bottom-start",offset:{mainAxis:2},children:[b.jsx(F3,{children:b.jsx(Zn,{tabIndex:-1,autoFocus:!1,variant:"subtle",size:"compact-xs",color:"gray",classNames:{root:ye({fontWeight:"400",fontSize:"xxs",height:"auto",lineHeight:1.1,color:{_light:"mantine.colors.gray[9]"}}),section:ye({'&:is([data-position="right"])':{marginInlineStart:"1"}})},rightSection:b.jsx(dZe,{opacity:.5,size:12,stroke:1.5}),...e,children:o})}),b.jsx(F1,{children:r.map(({id:a,title:i})=>b.jsx(H1,{onClick:s=>{if(o===a){s.stopPropagation();return}n(a)},children:i??a},a))})]})]})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const fZe=[["path",{d:"M10.52 2.614a2.095 2.095 0 0 1 2.835 -.117l.126 .117l7.905 7.905c.777 .777 .816 2.013 .117 2.836l-.117 .126l-7.905 7.905a2.094 2.094 0 0 1 -2.836 .117l-.126 -.117l-7.907 -7.906a2.096 2.096 0 0 1 -.115 -2.835l.117 -.126l7.905 -7.905zm5.969 9.535l.01 -.116l-.003 -.12l-.016 -.114l-.03 -.11l-.044 -.112l-.052 -.098l-.076 -.105l-.07 -.081l-3.5 -3.5l-.095 -.083a1 1 0 0 0 -1.226 0l-.094 .083l-.083 .094a1 1 0 0 0 0 1.226l.083 .094l1.792 1.793h-5.085l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h5.085l-1.792 1.793l-.083 .094a1 1 0 0 0 1.403 1.403l.094 -.083l3.5 -3.5l.097 -.112l.05 -.074l.037 -.067l.05 -.112l.023 -.076l.025 -.117z",key:"svg-0"}]],pZe=yt("filled","direction-sign-filled","DirectionSignFilled",fZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const mZe=[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]],gZe=yt("filled","star-filled","StarFilled",mZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const yZe=[["path",{d:"M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z",key:"svg-0"}]],bZe=yt("filled","folder-filled","FolderFilled",yZe),Iee=T1({siblingSelector:"[data-likec4-focusable]",parentSelector:"[data-likec4-breadcrumbs-dropdown]",activateOnFocus:!1,loop:!0,orientation:"vertical"});function vZe(){const e=Ly(),r=wn(e.actorRef,a=>a.context.searchQuery);is("paneClick",()=>{e.closeDropdown()}),is("nodeClick",()=>{e.closeDropdown()});const n=OPe(a=>{e.send({type:"searchQuery.change",value:a})},250),o=r.trim().length>=2;return b.jsxs(Xl,{className:Je("nowheel",X1({layerStyle:"likec4.dropdown",gap:"xs",pointerEvents:"all"})),"data-likec4-breadcrumbs-dropdown":!0,onMouseLeave:()=>e.send({type:"dropdown.mouseLeave"}),onMouseEnter:()=>e.send({type:"dropdown.mouseEnter"}),children:[b.jsx(hZe,{}),b.jsx(xn,{gap:"xs",children:b.jsx(RZe,{value:r,onChange:n,"data-likec4-focusable":!0,onKeyDown:Iee})}),b.jsx(ta,{scrollbars:"x",type:"auto",offsetScrollbars:"present",classNames:{root:ye({maxWidth:["calc(100vw - 50px)","calc(100cqw - 50px)"]})},styles:{viewport:{overscrollBehavior:"none"}},children:o?b.jsx(wZe,{searchQuery:Fx(r).toLowerCase()}):b.jsx(TZe,{})})]})}const xZe=RL(ka);function wZe({searchQuery:e}){const r=Ho(),n=Ly(),o=e.includes(ka),a=yn(r.views(),Rd(s=>o&&s.$view.title?Fx(s.$view.title).toLowerCase().includes(e):s.id.toLowerCase().includes(e)||!!s.title?.toLowerCase().includes(e)),z4e(20),K0(),r$e((s,l)=>xZe(s.folder.path,l.folder.path)));if(a.length===0)return b.jsx("div",{children:"no results"});const i=o?e.split(ka):e;return b.jsx(ta,{scrollbars:"xy",offsetScrollbars:!1,className:ye({width:"100%",maxWidth:["calc(100vw - 250px)","calc(100cqw - 250px)"],maxHeight:["calc(100vh - 200px)","calc(100cqh - 200px)"]}),children:b.jsx(Fp,{gap:"0.5",children:a.map(s=>b.jsx(_Ze,{view:s,highlight:i,onClick:l=>{l.stopPropagation(),n.selectView(s.id)},"data-likec4-focusable":!0,onKeyDown:Iee},s.id))})})}const kZe=Uo({gap:"xxs",rounded:"sm",px:"xs",py:"xxs",_hover:{backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}},_focus:{outline:"none",color:"mantine.colors.primary.lightColor!",backgroundColor:"mantine.colors.primary.lightHover!"}}),zee=ye({_groupFocus:{color:"[inherit!]",transition:"none"}});function _Ze({view:e,highlight:r,...n}){const o=e.folder,a=Bee[e.id==="index"?"index":e._type],i=b.jsx(Kl,{component:"div",className:Je(zee,Qk({truncate:!0}),ye({"& > mark":{backgroundColor:{base:"mantine.colors.yellow[2]/90",_dark:"mantine.colors.yellow[5]/80",_groupFocus:"[transparent]"},color:{_groupFocus:"[inherit!]"}}})),maw:350,highlight:r,children:e.title??e.id},e.id),s=Je(n.className,"group",kZe);if(o.isRoot)return b.jsxs(Pr,{...n,className:s,children:[a,i]});const l=o.breadcrumbs.map(c=>b.jsx(Kl,{component:"div",className:Je(ye({_groupHover:{color:"mantine.colors.dimmed"}}),zee,Qk({dimmed:!0,truncate:!0})),maw:170,highlight:F6(r)?r:[],children:c.title},c.path));return l.push(b.jsxs(xn,{gap:"[4px]",children:[a,i]})),b.jsxs(Pr,{...n,className:s,children:[jee,b.jsx(L3,{separator:b.jsx(hh,{size:12,stroke:1.5}),separatorMargin:3,children:l})]})}const EZe=b.jsx(hh,{size:12,stroke:1.5,className:"mantine-rotate-rtl"}),jee=b.jsx(bZe,{size:16,className:ye({opacity:{base:.3,_groupHover:.5,_groupActive:.5,_groupFocus:.5}})}),Jk=ye({opacity:{base:.3,_dark:.5,_groupHover:.8,_groupActive:.8,_groupFocus:.8}}),Bee={index:b.jsx(gZe,{size:16,className:Jk}),element:b.jsx(gi,{size:18,stroke:2,className:Jk}),deployment:b.jsx(UA,{size:16,stroke:1.5,className:Jk}),dynamic:b.jsx(pZe,{size:18,className:Jk})},SZe=ta.withProps({scrollbars:"y",className:ye({maxHeight:["calc(100vh - 160px)","calc(100cqh - 160px)"]})});function Fee(e,r){return{folderPath:e.path,items:[...e.folders.map(n=>({type:"folder",folderPath:n.path,title:n.title,selected:r.selectedFolder.startsWith(n.path)})),...e.views.map(n=>({type:"view",viewType:n.id==="index"?"index":n._type,viewId:n.id,title:n.title??n.id,description:n.description.nonEmpty&&n.description.text||null,selected:n.id===r.viewModel.id}))]}}const CZe=e=>{const r=e.viewModel.$model,n=[Fee(r.rootViewFolder,e)],o=r.viewFolder(e.selectedFolder);if(!o.isRoot)for(const a of o.breadcrumbs)n.push(Fee(a,e));return n};function TZe(){const e=AKe(CZe,ut);return b.jsx(xn,{gap:"xs",alignItems:"stretch",children:e.flatMap((r,n)=>[n>0&&b.jsx(Lp,{orientation:"vertical"},"divider"+n),b.jsx(AZe,{data:r,isLast:n==e.length-1},r.folderPath)])})}function AZe({data:e,isLast:r}){const n=E.useRef(null),o=r7(),a=i=>s=>{s.stopPropagation(),i.type==="folder"?o.send({type:"select.folder",folderPath:i.folderPath}):o.send({type:"select.view",viewId:i.viewId})};return y6e(()=>{r&&n.current&&n.current.scrollIntoView({inline:"nearest",behavior:"smooth"})}),b.jsx(Vr,{mb:"1",ref:n,children:b.jsx(SZe,{children:b.jsx(Fp,{gap:"0.5",children:e.items.map((i,s)=>b.jsx(NZe,{columnItem:i,onClick:a(i)},`${e.folderPath}/${i.type}/${s}`))})})})}function NZe({columnItem:e,...r}){switch(e.type){case"folder":return b.jsx(n7,{variant:"light",active:e.selected,label:e.title,leftSection:jee,rightSection:EZe,maw:"300px",miw:"200px",...r},e.folderPath);case"view":return b.jsx(n7,{variant:"filled",active:e.selected,label:e.title,description:e.description,leftSection:Bee[e.viewType],maw:"300px",miw:"200px",...r},e.viewId);default:Ga(e)}}function RZe({onKeyDown:e,...r}){const[n,o]=Vl({...r,finalValue:""});return b.jsx(Ra,{size:"xs",placeholder:"Search by title or id",variant:"unstyled",height:Ne(26),value:n,onKeyDown:e,onChange:a=>o(a.currentTarget.value),classNames:{wrapper:ye({flexGrow:1,backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/80",_hover:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"},_focus:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"}},rounded:"sm"}),input:ye({_placeholder:{color:"mantine.colors.dimmed"},_focus:{outline:"none"}})},style:{"--input-fz":"var(--mantine-font-size-sm)"},leftSection:b.jsx(QA,{size:14}),rightSectionPointerEvents:"all",rightSectionWidth:"min-content",rightSection:!r.value||iu(r.value)?null:b.jsx(Zn,{variant:"subtle",h:"100%",size:"compact-xs",color:"gray",onClick:a=>{a.stopPropagation(),o("")},children:"clear"})})}const $Ze=Ql("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}});function PZe(e){const r=IRe(e.activeWalkthrough),n=r?e.xyedges.findIndex(o=>o.id===e.activeWalkthrough?.stepId):-1;return{isActive:r,isParallel:r&&Sa(e.activeWalkthrough?.parallelPrefix),hasNext:r&&n<e.xyedges.length-1,hasPrevious:r&&n>0,notes:r?e.xyedges[n]?.data?.notes??Kt.EMPTY:null}}const MZe=()=>{const{notes:e}=$a(PZe);return!e||e.isEmpty?null:b.jsx(Ql.div,{position:"relative",children:b.jsxs(ta,{className:Je("nowheel nopan nodrag",X1({position:"absolute",layerStyle:"likec4.dropdown",gap:"sm",padding:"md",paddingTop:"xxs",pointerEvents:"all",maxWidth:"calc(100cqw - 32px)",minWidth:"calc(100cqw - 50px)",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),type:"scroll",children:[b.jsx($Ze,{children:"Notes"}),b.jsx(mh,{value:e,fontSize:"sm",emptyText:"No description",className:ye({userSelect:"all"})})]})})},e_=po.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,position:"right"});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const OZe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-1"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-3"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-4"}]],DZe=yt("outline","focus-centered","FocusCentered",OZe),LZe=()=>{const e=Wt();return b.jsx(e_,{label:"Center camera",children:b.jsx(gh,{onClick:()=>e.fitDiagram(),children:b.jsx(DZe,{})})})};ye({gap:"xxs",_empty:{display:"none"}}),ye({top:"md",left:"md",margin:"0",pointerEvents:"none","& :where(button, .action-icon, [role='dialog'])":{pointerEvents:"all"},"& .action-icon":{"--ai-size":"2rem"},"& .tabler-icon":{width:"65%",height:"65%"},_reduceGraphics:{"& .action-icon":{"--ai-radius":"0px"}}}),ye({shadow:{base:"md",_whenPanning:"none"}}),ye({"& .tabler-icon":{width:"65%",height:"65%"}});const t_=ye({flex:"1 1 40%",textAlign:"center",fontWeight:500,padding:"[4px 6px]",fontSize:"11px",zIndex:1}),IZe=ye({background:"mantine.colors.gray[2]",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[4]",_dark:{background:"mantine.colors.dark[5]",borderColor:"mantine.colors.dark[4]"}}),zZe=ye({position:"relative",borderRadius:"sm",background:"mantine.colors.gray[3]",boxShadow:"inset 1px 1px 3px 0px #00000024",_dark:{background:"mantine.colors.dark[7]"}}),jZe=ye({position:"absolute",width:8,height:8,border:"2px solid",borderColor:"mantine.colors.gray[5]",borderRadius:3,transform:"translate(-50%, -50%)"});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const BZe=[["path",{d:"M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-0"}],["path",{d:"M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-1"}],["path",{d:"M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-2"}],["path",{d:"M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-3"}]],FZe=yt("outline","layout-dashboard","LayoutDashboard",BZe),HZe=e=>({viewId:e.view.id,autoLayout:e.view.autoLayout}),UZe=()=>{const{onChange:e}=sc(),r=Wt(),[n,o]=E.useState(null),[a,i]=E.useState({}),{autoLayout:s,viewId:l}=$a(HZe),{ref:c,hovered:u}=aC(),d=g=>y=>{a[g]=y,i(a)},h=g=>y=>{y.stopPropagation(),e?.({change:{op:"change-autolayout",layout:{...s,direction:g}}})},p=(g,y)=>{r.fitDiagram(),e?.({change:{op:"change-autolayout",layout:{...s,nodeSep:g,rankSep:y}}})};return b.jsxs(mr,{position:"right-start",clickOutsideEvents:["pointerdown"],radius:"xs",shadow:"lg",offset:{mainAxis:10},children:[b.jsx(pu,{children:b.jsx(e_,{label:"Change Auto Layout",children:b.jsx(gh,{children:b.jsx(FZe,{})})})}),b.jsx(Xl,{className:"likec4-top-left-panel",p:8,pt:6,opacity:u?.6:1,children:b.jsxs(Se,{pos:"relative",ref:o,children:[b.jsx(P3,{target:a[s.direction],parent:n,className:IZe}),b.jsx(Se,{mb:10,children:b.jsx(wt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Auto layout:"})}),b.jsxs(Op,{gap:2,wrap:"wrap",justify:"stretch",maw:160,children:[b.jsx(Pr,{className:t_,ref:d("TB"),onClick:h("TB"),children:"Top-Bottom"}),b.jsx(Pr,{className:t_,ref:d("BT"),onClick:h("BT"),children:"Bottom-Top"}),b.jsx(Pr,{className:t_,ref:d("LR"),onClick:h("LR"),children:"Left-Right"}),b.jsx(Pr,{className:t_,ref:d("RL"),onClick:h("RL"),children:"Right-Left"})]}),b.jsx(Se,{my:10,children:b.jsx(wt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Spacing:"})}),b.jsx(VZe,{ref:c,isVertical:s.direction==="TB"||s.direction==="BT",nodeSep:s.nodeSep,rankSep:s.rankSep,onChange:p},l)]})})]})},km=400,VZe=E.forwardRef(({isVertical:e,nodeSep:r,rankSep:n,onChange:o},a)=>{e||([r,n]=[n,r]);const i=qx(({x:p,y:g})=>{e||([p,g]=[g,p]),o(Math.round(p*km),Math.round(g*km))},[o,e],250,2e3),[s,l]=Vl({defaultValue:vPe({x:(r??100)/km,y:(n??120)/km}),onChange:i}),{ref:c}=BV(l);let u=Math.round(s.x*km),d=Math.round(s.y*km);e||([u,d]=[d,u]);const h=Rr(c,a);return b.jsxs(Se,{ref:h,className:zZe,pt:"100%",children:[b.jsx(Se,{className:jZe,style:{left:`${s.x*100}%`,top:`${s.y*100}%`}}),b.jsx(Se,{pos:"absolute",left:2,bottom:2,children:b.jsxs(wt,{component:"div",fz:8,c:"dimmed",fw:500,children:[d,", ",u]})})]})});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const qZe=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Hee=yt("outline","alert-triangle","AlertTriangle",qZe),YZe=()=>{const e=wm();return $a(r=>r.view.hasLayoutDrift??!1)?b.jsxs(Ip,{position:"right-start",openDelay:200,closeDelay:100,...e,children:[b.jsx(vT,{children:b.jsx(or,{color:"orange",c:"orange",className:ye({bg:"mantine.colors.orange.light"}),children:b.jsx(Hee,{})})}),b.jsx(yT,{p:"0",children:b.jsxs(V3,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Manual layout issues",children:[b.jsxs(wt,{mt:2,size:"sm",lh:"xs",children:["View contains new elements or their sizes have changed,",b.jsx("br",{}),"last manual layout can not be applied."]}),b.jsxs(wt,{mt:"xs",size:"sm",lh:"xs",children:["Update view predicates or remove ",b.jsx(j3,{children:"@likec4-generated"})]})]})})]}):null};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const WZe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M10 4l4 16",key:"svg-1"}],["path",{d:"M12 12l-8 2",key:"svg-2"}]],XZe=yt("outline","layout-collage","LayoutCollage",WZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const GZe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 12h8",key:"svg-1"}],["path",{d:"M12 15h8",key:"svg-2"}],["path",{d:"M12 9h8",key:"svg-3"}],["path",{d:"M12 4v16",key:"svg-4"}]],Uee=yt("outline","layout-board-split","LayoutBoardSplit",GZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const KZe=[["path",{d:"M4 4l0 16",key:"svg-0"}],["path",{d:"M8 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],ZZe=yt("outline","layout-align-left","LayoutAlignLeft",KZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const QZe=[["path",{d:"M12 4l0 5",key:"svg-0"}],["path",{d:"M12 15l0 5",key:"svg-1"}],["path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-2"}]],JZe=yt("outline","layout-align-center","LayoutAlignCenter",QZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const eQe=[["path",{d:"M20 4l0 16",key:"svg-0"}],["path",{d:"M4 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],tQe=yt("outline","layout-align-right","LayoutAlignRight",eQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const rQe=[["path",{d:"M4 4l16 0",key:"svg-0"}],["path",{d:"M9 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],nQe=yt("outline","layout-align-top","LayoutAlignTop",rQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const oQe=[["path",{d:"M4 12l5 0",key:"svg-0"}],["path",{d:"M15 12l5 0",key:"svg-1"}],["path",{d:"M9 6m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]],aQe=yt("outline","layout-align-middle","LayoutAlignMiddle",oQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const iQe=[["path",{d:"M4 20l16 0",key:"svg-0"}],["path",{d:"M9 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],sQe=yt("outline","layout-align-bottom","LayoutAlignBottom",iQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const lQe=[["path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M18 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M12 19h4.5c.71 0 1.372 -.212 1.924 -.576m1.545 -2.459a3.5 3.5 0 0 0 -3.469 -3.965h-.499m-4 0h-3.501a3.5 3.5 0 0 1 -2.477 -5.972m2.477 -1.028h3.5",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],cQe=yt("outline","route-off","RouteOff",lQe),lc=({label:e,icon:r,onClick:n})=>b.jsx(e_,{label:e,withinPortal:!1,position:"top",children:b.jsx(gh,{classNames:{root:"action-icon",icon:ye({"& > svg":{width:"70%",height:"70%"}})},onClick:n,children:r})}),uQe=e=>{const r=Wt(),n=wm();return b.jsxs(mr,{position:"right",offset:{mainAxis:12},clickOutsideEvents:["pointerdown"],...n,...e,children:[b.jsx(pu,{children:b.jsx(e_,{label:"Manual layouting tools",children:b.jsx(gh,{children:b.jsx(XZe,{})})})}),b.jsx(Xl,{className:Uo({gap:"0.5",layerStyle:"likec4.panel",padding:"1",pointerEvents:"all"}),children:b.jsxs(Qd,{children:[b.jsx(lc,{label:"Align in columns",icon:b.jsx(Uee,{}),onClick:o=>{o.stopPropagation(),r.align("Column")}}),b.jsx(lc,{label:"Align left",icon:b.jsx(ZZe,{}),onClick:o=>{o.stopPropagation(),r.align("Left")}}),b.jsx(lc,{label:"Align center",icon:b.jsx(JZe,{}),onClick:o=>{o.stopPropagation(),r.align("Center")}}),b.jsx(lc,{label:"Align right",icon:b.jsx(tQe,{}),onClick:o=>{o.stopPropagation(),r.align("Right")}}),b.jsx(lc,{label:"Align in rows",icon:b.jsx(Uee,{style:{transform:"rotate(90deg)"}}),onClick:o=>{o.stopPropagation(),r.align("Row")}}),b.jsx(lc,{label:"Align top",icon:b.jsx(nQe,{}),onClick:o=>{o.stopPropagation(),r.align("Top")}}),b.jsx(lc,{label:"Align middle",icon:b.jsx(aQe,{}),onClick:o=>{o.stopPropagation(),r.align("Middle")}}),b.jsx(lc,{label:"Align bottom",icon:b.jsx(sQe,{}),onClick:o=>{o.stopPropagation(),r.align("Bottom")}}),b.jsx(lc,{label:"Reset all control points",icon:b.jsx(cQe,{}),onClick:o=>{o.stopPropagation(),r.resetEdgeControlPoints()}})]})})]})};function dQe(){const{enableReadOnly:e}=wr();return b.jsx(Pa,{children:!e&&b.jsx(Qr,{layout:"position",className:X1({gap:"xs",layerStyle:"likec4.panel",position:"relative",cursor:"pointer",padding:"xxs",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:b.jsxs(Qd,{openDelay:600,closeDelay:120,children:[b.jsx(UZe,{}),b.jsx(uQe,{}),b.jsx(YZe,{}),b.jsx(LZe,{})]})})})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const hQe=[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]],fQe=yt("filled","player-stop-filled","PlayerStopFilled",hQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const pQe=[["path",{d:"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z",key:"svg-0"}],["path",{d:"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],mQe=yt("filled","player-skip-back-filled","PlayerSkipBackFilled",pQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const gQe=[["path",{d:"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z",key:"svg-0"}],["path",{d:"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],yQe=yt("filled","player-skip-forward-filled","PlayerSkipForwardFilled",gQe),Vee=Zn.withProps({component:ps,variant:"light",size:"xs",fw:"500"}),bQe=()=>{const{portalProps:e}=wm();return b.jsx(D1,{...e,children:b.jsx(Vr,{css:{position:"absolute",margin:"0",padding:"0",top:"0",left:"0",width:"100%",height:"100%",border:"2px solid",borderColor:"mantine.colors.orange[6]",pointerEvents:"none",md:{borderWidth:4}}})})};function vQe(){const e=Wt(),{isParallel:r,hasNext:n,hasPrevious:o,currentStep:a,totalSteps:i}=$a(s=>{const l=s.xyedges.findIndex(c=>c.id===s.activeWalkthrough?.stepId);return{isParallel:Sa(s.activeWalkthrough?.parallelPrefix),hasNext:l<s.xyedges.length-1,hasPrevious:l>0,currentStep:l+1,totalSteps:s.xyedges.length}});return b.jsxs(Pa,{propagate:!0,children:[b.jsx(Lee,{variant:"light",size:"xs",color:"orange",mr:"sm",onClick:s=>{s.stopPropagation(),e.stopWalkthrough()},rightSection:b.jsx(fQe,{size:10}),children:"Stop"},"stop-walkthrough"),b.jsx(Vee,{disabled:!o,onClick:()=>e.walkthroughStep("previous"),leftSection:b.jsx(mQe,{size:10}),children:"Previous"},"prev"),b.jsx(Gl,{component:Qr,size:"md",radius:"sm",variant:r?"gradient":"transparent",gradient:{from:"red",to:"orange",deg:90},rightSection:b.jsx(Qr,{className:ye({fontSize:"xxs",display:r?"block":"none"}),children:"parallel"}),className:ye({alignItems:"baseline"}),children:b.jsxs(UWe,{children:[a," / ",i]})},"step-badge"),b.jsx(Vee,{disabled:!n,onClick:()=>e.walkthroughStep("next"),rightSection:b.jsx(yQe,{size:10}),children:"Next"},"next"),r&&b.jsx(bQe,{},"parallel-frame")]})}const qee=E.memo(()=>{const e=Jp(),r=NQ(),n=n8(CKe,{input:{viewModel:r}});return E.useEffect(()=>{const o=n.on("navigateTo",a=>{e.getSnapshot().context.view.id!==a.viewId&&e.send({type:"navigate.to",viewId:a.viewId})});return()=>o.unsubscribe()},[n,e]),UB(()=>{n.send({type:"update.inputs",inputs:{viewModel:r}})},[r]),b.jsx(Fp,{css:{alignItems:"flex-start",pointerEvents:"none",position:"absolute",top:"0",left:"0",margin:"0",width:"100%",gap:"xxs",maxWidth:["calc(100vw)","calc(100cqw)"],"@/sm":{margin:"xs",gap:"xs",width:"max-content",maxWidth:["calc(100vw - 2 * {spacing.md})","calc(100cqw - 2 * {spacing.md})"]}},children:b.jsxs(TKe,{value:n,children:[b.jsx(xQe,{actor:n}),b.jsx(dQe,{}),b.jsx(MZe,{})]})})});qee.displayName="NavigationPanel";const xQe=({actor:e})=>{const r=wn(e,o=>o.hasTag("active")),n=wm();return b.jsxs(mr,{offset:{mainAxis:4},opened:r,position:"bottom-start",trapFocus:!0,...n,clickOutsideEvents:["pointerdown","mousedown","click"],onDismiss:()=>e.send({type:"dropdown.dismiss"}),children:[b.jsx(wQe,{actor:e}),r&&b.jsx(vZe,{})]})},wQe=({actor:e})=>{const r=$a(n=>n.activeWalkthrough!==null);return b.jsx(dm,{children:b.jsx(pu,{children:b.jsx(Qr,{layout:!0,className:Uo({layerStyle:"likec4.panel",position:"relative",gap:"xs",cursor:"pointer",paddingRight:"md",pointerEvents:"all",width:"100%"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave"}),children:b.jsx(Pa,{mode:"popLayout",children:r?b.jsx(vQe,{}):b.jsx(nZe,{})})})})})},o7=ye({position:"absolute",bottom:"0",right:"0",padding:"2",margin:"0",width:"min-content",height:"min-content"}),kQe=ye({"--ai-radius":"0px",_noReduceGraphics:{"--ai-radius":"{radii.md}"}}),_Qe=ye({cursor:"default",userSelect:"none",minWidth:200,maxWidth:"calc(100vw - 20px)",backgroundColor:"mantine.colors.body/80",sm:{minWidth:300,maxWidth:"65vw"},md:{maxWidth:"40vw"},_dark:{backgroundColor:"mantine.colors.dark[6]/80"}}),EQe=ye({padding:"xxs"}),SQe=ye({backgroundColor:"transparent",transition:"all 100ms ease-in",_hover:{transition:"all 120ms ease-out",backgroundColor:"mantine.colors.primary[2]/50"},_dark:{_hover:{backgroundColor:"mantine.colors.dark[3]/40"}}});ye({fill:"var(--likec4-palette-fill)",stroke:"var(--likec4-palette-stroke)",strokeWidth:1,overflow:"visible",width:"100%",height:"auto",filter:`
    drop-shadow(0 2px 3px rgb(0 0 0 / 22%))
    drop-shadow(0 1px 8px rgb(0 0 0 / 10%))
  `});const CQe=ye({fontWeight:500,letterSpacing:"0.2px",paddingTop:"0",paddingBottom:"0",textTransform:"lowercase",transition:"all 150ms ease-in-out",cursor:"pointer","--badge-radius":"2px","--badge-fz":"9.5px","--badge-padding-x":"3px","--badge-height":"13.5px","--badge-lh":"1","--badge-bg":"var(--likec4-palette-fill)","--badge-color":"var(--likec4-palette-hiContrast)"});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const TQe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]],AQe=yt("outline","help-circle","HelpCircle",TQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const NQe=[["path",{d:"M7 7l10 10",key:"svg-0"}],["path",{d:"M17 8l0 9l-9 0",key:"svg-1"}]],RQe=yt("outline","arrow-down-right","ArrowDownRight",NQe),$Qe=({value:e})=>{const{title:r,color:n="primary",shape:o="rectangle"}=e,[a,i]=E.useState(null),s=Wt(),l=300,c=200;return b.jsx(z3,{shadow:"none",px:"xs",py:"sm",className:Je(SQe),"data-likec4-color":n,onMouseEnter:()=>{i(null),s.highlightNotation(e)},onMouseLeave:()=>{i(null),s.unhighlightNotation()},children:b.jsxs(Ur,{gap:"sm",align:"stretch",wrap:"nowrap",children:[b.jsx(Se,{flex:"0 0 70px",style:{position:"relative",width:70,height:sRe(70*(c/l),0)},children:b.jsx(gm,{data:{shape:o,width:l,height:c}})}),b.jsxs(ra,{gap:4,flex:1,children:[b.jsx(Ur,{gap:4,flex:"0 0 auto",children:e.kinds.map(u=>b.jsx(Gl,{className:Je(CQe),onMouseEnter:()=>{i(u),s.highlightNotation(e,u)},onMouseLeave:()=>{i(null),s.highlightNotation(e)},opacity:tV(a)&&a!==u?.25:1,children:u},u))}),b.jsx(wt,{component:"div",fz:"sm",fw:500,lh:"1.25",style:{textWrap:"pretty"},children:r})]})]})})},PQe=e=>({id:e.view.id,notations:e.view.notation?.nodes??[],isVisible:!0}),MQe=E.memo(()=>{const e=D9(c=>c.height),{id:r,notations:n,isVisible:o}=$a(PQe),[a,i]=yPe({key:"notation-webview-collapsed",defaultValue:!0}),s=n.length>0,l=wm();return b.jsxs(Pa,{children:[!s&&o&&b.jsx(cs.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:o7,children:b.jsx(po,{label:"View has no notations",color:"orange",...l,children:b.jsx(ci,{size:"lg",variant:"light",color:"orange",radius:"md",children:b.jsx(Hee,{})})})},"empty"),s&&o&&a&&b.jsx(cs.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:o7,children:b.jsx(po,{label:"Show notation",color:"dark",fz:"xs",...l,children:b.jsx(or,{size:"lg",variant:"default",color:"gray",className:kQe,onClick:()=>i(!1),children:b.jsx(AQe,{stroke:1.5})})})},"collapsed"),s&&o&&!a&&b.jsx(cs.div,{initial:{opacity:.75,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.25},className:Je("react-flow__panel",o7),style:{transformOrigin:"bottom right"},children:b.jsx(Rp,{radius:"sm",withBorder:!0,shadow:"lg",className:_Qe,children:b.jsxs(Jd,{defaultValue:"first",radius:"xs",children:[b.jsxs(q1,{children:[b.jsx(or,{size:"md",variant:"subtle",color:"gray",ml:2,style:{alignSelf:"center"},onClick:()=>i(!0),children:b.jsx(RQe,{stroke:2})}),b.jsx(jp,{value:"first",fz:"xs",children:"Elements"}),b.jsx(jp,{value:"second",fz:"xs",disabled:!0,children:"Relationships"})]}),b.jsx(Zl,{value:"first",className:EQe,hidden:a,children:b.jsx(ta,{viewportProps:{style:{maxHeight:`min(40vh, ${Math.max(e-60,50)}px)`}},children:b.jsx(ra,{gap:0,children:n.map((c,u)=>b.jsx($Qe,{value:c},u))})})})]})})},r)]})}),Yee=E.memo(()=>{const{enableControls:e,enableNotations:r,enableSearch:n,enableRelationshipDetails:o}=wr(),a=v6e(),i=VX(),s=vBe();return b.jsxs(lX,{onReset:a,children:[e&&b.jsx(Tze,{children:b.jsx(qee,{})}),i&&b.jsx(TGe,{overlaysActorRef:i}),r&&b.jsx(MQe,{}),n&&s&&b.jsx(fKe,{searchActorRef:s}),o&&b.jsx(wKe,{})]})});Yee.displayName="DiagramUI";function _m(e){return function(){return e}}const Wee=1e-12,a7=Math.PI,i7=2*a7,yh=1e-6,OQe=i7-yh;function Xee(e){this._+=e[0];for(let r=1,n=e.length;r<n;++r)this._+=arguments[r]+e[r]}function DQe(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return Xee;const n=10**r;return function(o){this._+=o[0];for(let a=1,i=o.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+o[a]}}class LQe{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?Xee:DQe(r)}moveTo(r,n){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,n){this._append`L${this._x1=+r},${this._y1=+n}`}quadraticCurveTo(r,n,o,a){this._append`Q${+r},${+n},${this._x1=+o},${this._y1=+a}`}bezierCurveTo(r,n,o,a,i,s){this._append`C${+r},${+n},${+o},${+a},${this._x1=+i},${this._y1=+s}`}arcTo(r,n,o,a,i){if(r=+r,n=+n,o=+o,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,l=this._y1,c=o-r,u=a-n,d=s-r,h=l-n,p=d*d+h*h;if(this._x1===null)this._append`M${this._x1=r},${this._y1=n}`;else if(p>yh)if(!(Math.abs(h*c-u*d)>yh)||!i)this._append`L${this._x1=r},${this._y1=n}`;else{let g=o-s,y=a-l,x=c*c+u*u,w=g*g+y*y,k=Math.sqrt(x),C=Math.sqrt(p),_=i*Math.tan((a7-Math.acos((x+p-w)/(2*k*C)))/2),T=_/C,A=_/k;Math.abs(T-1)>yh&&this._append`L${r+T*d},${n+T*h}`,this._append`A${i},${i},0,0,${+(h*g>d*y)},${this._x1=r+A*c},${this._y1=n+A*u}`}}arc(r,n,o,a,i,s){if(r=+r,n=+n,o=+o,s=!!s,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(a),c=o*Math.sin(a),u=r+l,d=n+c,h=1^s,p=s?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>yh||Math.abs(this._y1-d)>yh)&&this._append`L${u},${d}`,o&&(p<0&&(p=p%i7+i7),p>OQe?this._append`A${o},${o},0,1,${h},${r-l},${n-c}A${o},${o},0,1,${h},${this._x1=u},${this._y1=d}`:p>yh&&this._append`A${o},${o},0,${+(p>=a7)},${h},${this._x1=r+o*Math.cos(i)},${this._y1=n+o*Math.sin(i)}`)}rect(r,n,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function IQe(e){let r=3;return e.digits=function(n){if(!arguments.length)return r;if(n==null)r=null;else{const o=Math.floor(n);if(!(o>=0))throw new RangeError(`invalid digits: ${n}`);r=o}return e},()=>new LQe(r)}function zQe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Gee(e){this._context=e}Gee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function jQe(e){return new Gee(e)}function BQe(e){return e[0]}function FQe(e){return e[1]}function HQe(e,r){var n=_m(!0),o=null,a=jQe,i=null,s=IQe(l);e=typeof e=="function"?e:e===void 0?BQe:_m(e),r=typeof r=="function"?r:r===void 0?FQe:_m(r);function l(c){var u,d=(c=zQe(c)).length,h,p=!1,g;for(o==null&&(i=a(g=s())),u=0;u<=d;++u)!(u<d&&n(h=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(h,u,c),+r(h,u,c));if(g)return i=null,g+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:_m(+c),l):e},l.y=function(c){return arguments.length?(r=typeof c=="function"?c:_m(+c),l):r},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:_m(!!c),l):n},l.curve=function(c){return arguments.length?(a=c,o!=null&&(i=a(o)),l):a},l.context=function(c){return arguments.length?(c==null?o=i=null:i=a(o=c),l):o},l}function s7(e,r,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-r),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function l7(e,r){this._context=e,this._k=(1-r)/6}l7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:s7(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2,this._x1=e,this._y1=r;break;case 2:this._point=3;default:s7(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new l7(o,r)}return n.tension=function(o){return e(+o)},n})(0);function c7(e,r){this._context=e,this._k=(1-r)/6}c7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:s7(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new c7(o,r)}return n.tension=function(o){return e(+o)},n})(0);function Kee(e,r,n){var o=e._x1,a=e._y1,i=e._x2,s=e._y2;if(e._l01_a>Wee){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Wee){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-r*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(o,a,i,s,e._x2,e._y2)}function Zee(e,r){this._context=e,this._alpha=r}Zee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:Kee(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new Zee(o,r):new l7(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function Qee(e,r){this._context=e,this._alpha=r}Qee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kee(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};const UQe=(function e(r){function n(o){return r?new Qee(o,r):new c7(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);class ia{constructor(r,n){this.x=r,this.y=n}static create(r){return new ia(r.x,r.y)}static add(r,n){return{x:r.x+n.x,y:r.y+n.y}}static sub(r,n){return{x:r.x-n.x,y:r.y-n.y}}static mul(r,n){return{x:r.x*n,y:r.y*n}}static dot(r,n){return r.x*n.x+r.y*n.y}static cross(r,n){return new ia(r.y*n.x-r.x*n.y,r.x*n.y-r.y*n.x)}static setLength(r,n){return bh(r).setLength(n)}add(r){return new ia(this.x+r.x,this.y+r.y)}sub(r){return new ia(this.x-r.x,this.y-r.y)}mul(r){return new ia(this.x*r,this.y*r)}dot(r){return this.x*r.x+this.y*r.y}cross(r){return new ia(this.y*r.x-this.x*r.y,this.x*r.y-this.y*r.x)}abs(){return Math.sqrt(this.x*this.x+this.y*this.y)}setLength(r){return this.mul(r/this.abs())}}function bh(e){return ia.create(e)}const VQe=".react-flow__edge.selected",qQe=ye({overflow:"visible",position:"absolute",pointerEvents:"none",top:"0",left:"0",mixBlendMode:"normal"}),YQe=ye({fill:"var(--likec4-palette-relation-stroke)",stroke:"var(--likec4-palette-relation-stroke)",fillOpacity:.75,strokeWidth:1,cursor:"grab",pointerEvents:"auto",visibility:"hidden",_hover:{fillOpacity:1,stroke:"mantine.colors.primary.filledHover",strokeWidth:10,transition:"stroke 100ms ease-out, stroke-width 100ms ease-out"},[`:where(${VQe}, [data-likec4-hovered='true']) &`]:{visibility:"visible",transition:"fill-opacity 150ms ease-out, stroke 150ms ease-out, stroke-width 150ms ease-out",transitionDelay:"50ms",fillOpacity:1,strokeWidth:5}}),WQe=ye({cursor:"grabbing","& *":{cursor:"grabbing !important"},"& .react-flow__edge-interaction":{cursor:"grabbing !important"}});function XQe(e){const{width:r,height:n}=Wn(e),{x:o,y:a}=e.internals.positionAbsolute;return{x:o+r/2,y:a+n/2}}function r_(e,r,n=0){const o=XQe(e),{width:a,height:i}=Wn(e),s=new ia(r.x,r.y).sub(o),l=(n+(a||0)/2)/s.x,c=(n+(i||0)/2)/s.y,u=Math.min(Math.abs(l),Math.abs(c));return bh(s).mul(u).add(o)}const GQe=HQe().curve(UQe).x(e=>e.x).y(e=>e.y),KQe=IA(e=>{const[r,n]=E.useState(!1),o=L9(),a=Hqe(),i=Wt(),{enableNavigateTo:s,enableEdgeEditing:l}=wr(),{id:c,source:u,sourceX:d,sourceY:h,target:p,targetX:g,targetY:y,selected:x=!1,data:{id:w,points:k,hovered:C=!1,active:_=!1,labelBBox:T,labelXY:A,...N},style:$={}}=e,R=s?N.navigateTo:void 0,M=mt(wQ(u),`source node ${u} not found`),O=mt(wQ(p),`target node ${p} not found`),B=Sa(N.controlPoints)||!_y(M.internals.positionAbsolute,M.data)||!_y(O.internals.positionAbsolute,O.data);let I=N.controlPoints??SQ(e.data),Y;if(B){const W={x:d,y:h},G={x:g,y},Z=6,oe=N.dir==="back"?[G,r_(O,hp(I)??W,Z),...I,r_(M,Ud(I)??G,Z),W]:[W,r_(M,hp(I)??G,Z),...I,r_(O,Ud(I)??W,Z),G];Y=mt(GQe(oe))}else Y=tYe(k);let D=T?.x??0,V=T?.y??0;const[L,U]=E.useState({x:A?.x??D,y:A?.y??V}),q=E.useRef(null);E.useEffect(()=>{const W=q.current;if(!W)return;const G=W.getPointAtLength(W.getTotalLength()*.5),Z={x:yi(G.x),y:yi(G.y)};U(oe=>_y(oe,Z)?oe:Z)},[Y]),g6e(()=>{!T||T.x===L.x&&T.y===L.y||i.updateEdgeData(c,{labelXY:{x:L.x,y:L.y}})},[L],50,300),(B||r)&&(D=L.x,V=L.y);const X=(W,G,Z)=>{const{addSelectedEdges:oe}=o.getState();oe([c]);const ee=i.cancelSaveManualLayout();G.stopPropagation();let re=!1,he={x:G.clientX,y:G.clientY};const Ce=be=>{const De={x:be.clientX,y:be.clientY};if(!_y(he,De)){n(!0),re||(i.send({type:"xyflow.edgeEditingStarted",edge:e.data}),re=!0),he=De;const{x:Ge,y:Xe}=a.screenToFlowPosition(he,{snapToGrid:!1}),_t=I.slice();_t[W]={x:yi(Ge),y:yi(Xe)},i.updateEdgeData(c,{controlPoints:_t})}be.stopPropagation()},ce=be=>{Z.removeEventListener("pointermove",Ce,{capture:!0}),re&&be.stopPropagation(),(re||ee)&&i.scheduleSaveManualLayout(),n(!1)},de=be=>{be.stopPropagation(),be.preventDefault()};Z.addEventListener("pointermove",Ce,{capture:!0}),Z.addEventListener("pointerup",ce,{once:!0,capture:!0}),Z.addEventListener("click",de,{capture:!0,once:!0})},F=(W,G,Z)=>{if(I.length<=1)return;const oe=ee=>{const re=I.slice();re.splice(W,1),ee.stopPropagation(),setTimeout(()=>{i.updateEdgeData(c,{controlPoints:re}),i.scheduleSaveManualLayout()},10)};Z.addEventListener("pointerup",oe,{once:!0,capture:!0}),G.stopPropagation()},J=(W,G)=>{const{domNode:Z}=o.getState();if(!(!Z||G.pointerType!=="mouse"))switch(G.button){case 0:X(W,G,Z);break;case 2:F(W,G,Z);break}},Q=W=>{const{domNode:G}=o.getState();if(!G||W.pointerType!=="mouse"||W.button!==2)return;const Z=[new ia(d,h),...I.map(bh)||[],new ia(g,y)];let oe={x:W.clientX,y:W.clientY};const ee=bh(a.screenToFlowPosition(oe,{snapToGrid:!1}));let re=0,he=1/0;for(let ce=0;ce<Z.length-1;ce++){const de=Z[ce],be=Z[ce+1],De=be.sub(de),Ge=ee.sub(de),Xe=ee.sub(be);if(De.dot(Ge)*De.dot(Xe)<0){const _t=Math.abs(De.cross(Ge).abs()/De.abs());_t<he&&(he=_t,re=ce)}}const Ce=I.slice()||[];Ce.splice(re,0,ee),i.updateEdgeData(c,{controlPoints:Ce}),i.scheduleSaveManualLayout(),W.stopPropagation()};let z=ds.Edge;return(C||_)&&(z=ds.Element+1),b.jsxs(b.Fragment,{children:[b.jsxs(Ay,{...e,className:Je(r&&WQe),children:[b.jsx(Ny,{edgeProps:e,svgPath:Y,ref:q,...l&&{onEdgePointerDown:Q}}),b.jsx(Bk,{edgeProps:e,labelPosition:{x:D,y:V,translate:B?"translate(-50%, 0)":void 0},children:b.jsx(Ty,{edgeProps:e,children:R&&b.jsx(jk,{onClick:W=>{W.stopPropagation(),i.navigateTo(R)}})})})]}),l&&I.length>0&&(x||C||r)&&b.jsx(OU,{children:b.jsx(Ay,{component:"svg",className:qQe,...e,style:{...$,zIndex:z},children:b.jsx("g",{onContextMenu:W=>{W.preventDefault(),W.stopPropagation()},children:I.map((W,G)=>b.jsx("circle",{onPointerDown:Z=>J(G,Z),className:Je("nodrag nopan",YQe),cx:Math.round(W.x),cy:Math.round(W.y),r:3},"controlPoints"+w+"#"+G))})})})]})}),n_=16;function ZQe(e){const r=Wt(),{navigateTo:n}=e.data,o=e.source===e.target,a=e.sourceX>e.targetX,[i]=_w({sourceX:e.sourceX,sourceY:e.sourceY,sourcePosition:e.sourcePosition,targetX:e.targetX,targetY:e.targetY,targetPosition:e.targetPosition,...o&&{offset:30,borderRadius:16}});let s=e.sourceX;switch(!0){case o:s=e.sourceX+24+n_;break;case a:s=e.sourceX-n_;break;default:s=e.sourceX+n_;break}return b.jsxs(Ay,{...e,children:[b.jsx(Ny,{edgeProps:e,svgPath:i}),b.jsx(Bk,{edgeProps:e,labelPosition:{x:s,y:e.sourceY+(o?0:n_),translate:a?"translate(-100%, 0)":void 0},children:b.jsx(Ty,{edgeProps:e,children:n&&b.jsx(jk,{onClick:l=>{l.stopPropagation(),r.navigateTo(n)}})})})]})}const Jee=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=wr(),a=Wt(),{navigateTo:i,modelFqn:s}=r.data;let l=E.useMemo(()=>{const c=[];return i&&n&&c.push({key:"navigate",icon:b.jsx(gi,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(i,r.data.id)}}),o&&c.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(s)}}),c},[n,o,a,s,i,r.data.id]);return e&&To(e,1)&&(l=[...l,...e]),b.jsx(Hk,{...r,buttons:l})},QQe=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=wr(),a=Wt(),{id:i,navigateTo:s,modelFqn:l}=r.data;let c=E.useMemo(()=>{const u=[];return s&&n&&u.push({key:"navigate",icon:b.jsx(gi,{}),onClick:d=>{d.stopPropagation(),a.navigateTo(s,i)}}),o&&l&&u.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:d=>{d.stopPropagation(),a.openRelationshipsBrowser(l)}}),u},[n,o,a,l,s,i]);return e&&To(e,1)&&(c=[...c,...e]),b.jsx(Hk,{...r,buttons:c})};function JQe({data:{hovered:e=!1},icon:r,onClick:n}){const o=tC(e,e?130:0)[0]&&e;return b.jsx(Qr,{initial:!1,animate:{scale:o?1.2:1,x:o?-1:0,y:o?-1:0},whileHover:{scale:1.4,x:-3,y:-1},className:"likec4-compound-navigation compound-action",whileTap:{scale:1},onClick:cn,children:b.jsx(or,{className:Je("nodrag nopan",YJ({delay:e&&!o}),Ek({variant:"transparent"})),onClick:n,onDoubleClick:cn,children:r??b.jsx(gi,{stroke:2})})})}const ete=e=>{const{enableNavigateTo:r}=wr(),n=Wt(),{navigateTo:o}=e.data;return o&&r?b.jsx(JQe,{onClick:a=>{a.stopPropagation(),n.navigateTo(o,e.id)},...e}):null},tte=["primary","secondary","muted"],rte=po.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4,withinPortal:!1});function o_(e,r){const{onChange:n}=sc(),o=Wt(),[a,i]=E.useState(null),s=it(c=>{if(c===null){nt(a,"originalColor is null"),i(null),o.updateNodeData(r.data.id,{color:a});return}i(u=>u??r.data.color),o.updateNodeData(r.data.id,{color:c})}),l=it(c=>{n?.({change:{op:"change-element-style",style:c,targets:[e]}});const{shape:u,color:d,...h}=c;o.updateNodeData(r.data.id,{...u&&{shape:u},...d&&{color:d},style:h})});return{elementColor:a??r.data.color,onColorPreview:s,onChange:l}}function a_({fqn:e}){const r=Wt();return b.jsx(rte,{label:"Browse relationships",children:b.jsx(or,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),r.openRelationshipsBrowser(e)},children:b.jsx(Ry,{stroke:2,style:{width:"72%",height:"72%"}})})})}function i_(e){const{onOpenSource:r}=sc();return r?b.jsx(rte,{label:"Open source",children:b.jsx(or,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),e.elementId?r?.({element:e.elementId}):e.deploymentId&&r?.({deployment:e.deploymentId})},children:b.jsx(pm,{stroke:1.8,style:{width:"70%"}})})}):null}function nte(){const e=E.useContext(W1);e||console.error("No LikeC4ModelContext found");const r=e?.$styles??TL.DEFAULT,[n,o]=E.useState(r);return E.useEffect(()=>{o(a=>a.equals(r)?a:r)},[r]),n}function s_({elementColor:e,elementOpacity:r,onColorPreview:n,isOpacityEditable:o=!1,onChange:a,...i}){const{theme:s}=nte();return b.jsxs(mr,{clickOutsideEvents:["pointerdown","mousedown","click"],position:"right-end",offset:2,withinPortal:!1,...i,children:[b.jsx(pu,{children:b.jsx(Zn,{variant:"subtle",color:"gray",size:"compact-xs",px:3,children:b.jsx(j1,{color:s.colors[e].elements.fill,size:14,withShadow:!0,style:{color:"#fff",cursor:"pointer"}})})}),b.jsxs(Xl,{p:"xs",children:[b.jsx(eJe,{theme:s,elementColor:e,onColorPreview:n,onChange:l=>a({color:l})}),o&&b.jsxs(b.Fragment,{children:[b.jsx(RT,{h:"xs"}),b.jsx(Lp,{label:"opacity",labelPosition:"left"}),b.jsx(RT,{h:"xs"}),b.jsx(tJe,{elementOpacity:r,onOpacityChange:l=>{a({opacity:l})}})]})]})]})}function eJe({theme:e,elementColor:r,onColorPreview:n,onChange:o}){const a=s=>l=>{l.stopPropagation(),n(null),r!==s&&o(s)},i=q6(e.colors).filter(s=>!tte.includes(s));return b.jsx(ra,{gap:2,onMouseLeave:()=>n(null),children:b.jsxs(Qd,{openDelay:1e3,closeDelay:300,children:[b.jsx(Op,{maw:120,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:tte.map(s=>b.jsx(po,{label:s,fz:"xs",color:"dark",offset:2,withinPortal:!1,transitionProps:{duration:140,transition:"slide-up"},children:b.jsx(j1,{color:e.colors[s].elements.fill,size:18,withShadow:!0,onMouseEnter:()=>n(s),onClick:a(s),style:{color:"#fff",cursor:"pointer"},children:r===s&&b.jsx(rW,{style:{width:Ne(10),height:Ne(10)}})})},s))}),b.jsx(Op,{mt:"sm",maw:110,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:i.map(s=>b.jsx(po,{label:s,fz:"xs",color:"dark",offset:2,transitionProps:{duration:140,transition:"slide-up"},children:b.jsx(j1,{color:e.colors[s].elements.fill,size:18,onMouseEnter:()=>n(s),onClick:a(s),style:{color:"#fff",cursor:"pointer"},children:r===s&&b.jsx(rW,{style:{width:Ne(10),height:Ne(10)}})})},s))})]})})}function tJe({elementOpacity:e=100,onOpacityChange:r}){const[n,o]=E.useState(e);return UB(()=>{o(e)},[e]),b.jsx(NT,{size:"sm",color:"dark",value:n,onChange:o,onChangeEnd:r})}const rJe=ye({color:"mantine.colors.dimmed",fontSize:"10px",fontWeight:600,maxWidth:"220px",cursor:"default",userSelect:"all",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),nJe=()=>$a(e=>e.xynodes.filter(r=>r.selected).length);function l_({title:e,children:r,nodeProps:n,...o}){const a=nJe(),{selected:i=!1,dragging:s=!1,data:{hovered:l=!1}}=n,c=l&&a===0||i&&a===1;let u=150;c?i?u=100:u=1e3:a>0&&(u=50);const[d]=tC(c,u);return d?b.jsx(jU,{isVisible:!s,offset:4,...o,children:b.jsx(Rp,{className:Je("nodrag","nopan"),px:5,pb:8,pt:4,radius:"sm",shadow:"xl",onDoubleClickCapture:cn,onPointerDown:cn,onClick:cn,onDoubleClick:cn,withBorder:!0,children:b.jsxs(ra,{gap:"6px",children:[b.jsx(Se,{px:"4px",children:b.jsx(wt,{className:rJe,children:e})}),b.jsx(Ur,{gap:4,children:r})]})})}):null}function oJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{style:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:s,onChange:l}=o_(a,e),c=o?.opacity??100;return b.jsxs(l_,{nodeProps:e,title:a,align:"start",children:[b.jsx(s_,{elementColor:i,onColorPreview:s,isOpacityEditable:!0,elementOpacity:c,onChange:l,position:"left-start"}),b.jsx(ote,{elementBorderStyle:o?.border??(c<99?"dashed":"none"),onChange:l}),r&&b.jsx(i_,{elementId:a}),n&&b.jsx(a_,{fqn:a})]})}function aJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{deploymentFqn:o,style:a,modelFqn:i}}=e,{elementColor:s,onColorPreview:l,onChange:c}=o_(o,e);return b.jsxs(l_,{nodeProps:e,title:o,align:"start",children:[b.jsx(s_,{elementColor:s,onColorPreview:l,isOpacityEditable:!0,elementOpacity:a?.opacity,onChange:c,position:"left-start"}),b.jsx(ote,{elementBorderStyle:a?.border,onChange:c}),r&&b.jsx(i_,{deploymentId:o}),n&&i&&b.jsx(a_,{fqn:i})]})}function ote({elementBorderStyle:e="dashed",onChange:r}){const[n,o]=E.useState(e);return E.useEffect(()=>{o(e)},[e]),b.jsx(Se,{children:b.jsx(U1,{size:"xs",fullWidth:!0,withItemsBorders:!1,value:n,onChange:a=>{const i=a;o(i),r({border:i})},styles:{label:{paddingTop:"0.5",paddingBottom:"0.5"}},data:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"None",value:"none"}]})})}function iJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{shape:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:s,onChange:l}=o_(a,e);return b.jsxs(l_,{nodeProps:e,title:a,align:"start",children:[b.jsx(ate,{elementShape:o,onChange:l}),b.jsx(s_,{elementColor:i,onColorPreview:s,onChange:l,position:"right-end"}),r&&b.jsx(i_,{elementId:a}),n&&b.jsx(a_,{fqn:a})]})}function sJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{shape:o,deploymentFqn:a,modelFqn:i}}=e,{elementColor:s,onColorPreview:l,onChange:c}=o_(a,e);return b.jsxs(l_,{nodeProps:e,title:a,align:"start",children:[b.jsx(ate,{elementShape:o,onChange:c}),b.jsx(s_,{elementColor:s,onColorPreview:l,onChange:c,position:"right-end"}),r&&b.jsx(i_,{deploymentId:a}),n&&i&&b.jsx(a_,{fqn:i})]})}function ate({elementShape:e,onChange:r}){return b.jsxs(fo,{openDelay:300,closeDelay:450,floatingStrategy:"fixed",closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,closeOnItemClick:!1,position:"top-start",offset:2,styles:{item:{padding:"calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-xs)"}},withinPortal:!1,children:[b.jsx(F3,{children:b.jsx(Zn,{variant:"light",color:"gray",size:"compact-xs",rightSection:b.jsx(LA,{size:12}),children:e})}),b.jsx(F1,{onDoubleClick:cn,onClick:cn,children:Lye.map(n=>b.jsx(H1,{fz:12,fw:500,value:n,rightSection:e===n?b.jsx(TQ,{size:12}):void 0,onClick:o=>{o.stopPropagation(),r({shape:n})},children:n},n))})]})}const c_={top:"50%",left:"50%",right:"unset",bottom:"unset",visibility:"hidden",width:5,height:5,transform:"translate(-50%, -50%)"},Iy=()=>b.jsxs(b.Fragment,{children:[b.jsx(uo,{type:"target",position:tt.Top,style:c_}),b.jsx(uo,{type:"target",position:tt.Left,style:c_}),b.jsx(uo,{type:"source",position:tt.Right,style:c_}),b.jsx(uo,{type:"source",position:tt.Bottom,style:c_})]});function u7(e){const{enableElementDetails:r}=wr(),n=Wt(),o=e.data.modelFqn;return!r||!o?null:b.jsx(FA,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function ite(e){const{enableElementDetails:r}=wr(),n=Wt(),o=e.data.modelFqn;return!r||!o?null:b.jsx(WJ,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function lJe(e){const{enableElementTags:r,enableReadOnly:n}=wr();return b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(Jee,{...e}),b.jsx(u7,{...e}),!n&&b.jsx(iJe,{...e}),b.jsx(Iy,{})]})}function cJe(e){const{enableElementTags:r,enableReadOnly:n}=wr();return b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(QQe,{...e}),b.jsx(u7,{...e}),!n&&b.jsx(sJe,{...e}),b.jsx(Iy,{})]})}function uJe(e){const{enableElementDetails:r,enableReadOnly:n}=wr();return b.jsxs($y,{nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(ete,{...e}),r&&b.jsx(ite,{...e}),!n&&b.jsx(oJe,{...e}),b.jsx(Iy,{})]})}function dJe(e){const{enableElementDetails:r,enableReadOnly:n}=wr();return b.jsxs($y,{nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(ete,{...e}),r&&b.jsx(ite,{...e}),!n&&b.jsx(aJe,{...e}),b.jsx(Iy,{})]})}function hJe(e){return b.jsxs($y,{nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(Iy,{})]})}const fJe={left:tt.Left,right:tt.Right,top:tt.Top,bottom:tt.Bottom},pJe=({data:e,port:r})=>b.jsxs(b.Fragment,{children:[b.jsx(Vr,{"data-likec4-color":e.color,className:ye({position:"absolute",backgroundColor:"var(--likec4-palette-fill)",rounded:"xs",width:{base:"5px",_whenHovered:"7px",_whenSelected:"7px"},transition:"fast",translateX:"-1/2",translateY:"-1/2",translate:"auto"}),style:{top:r.cy,left:r.cx,height:r.height}}),b.jsx(uo,{id:r.id,type:r.type,position:fJe[r.position],style:{top:r.cy-3,left:r.cx-3,width:6,height:6,right:"unset",bottom:"unset",visibility:"hidden",transform:r.position==="left"?"translate(-150%, 0)":"translate(100%, 0)"}})]}),mJe=e=>Sa(e.modelFqn);function gJe(e){const r=e.data,{positionAbsoluteY:n,data:{viewHeight:o,hovered:a=!1,ports:i}}=e;return b.jsxs(b.Fragment,{children:[b.jsx(Vr,{"data-likec4-color":"gray",className:ye({position:"absolute",rounded:"xs",top:"1",pointerEvents:"none",transition:"fast",translateX:"-1/2",translate:"auto"}),style:{backgroundColor:"var(--likec4-palette-stroke)",opacity:a?.6:.4,left:"50%",width:a?3:2,height:o-n,zIndex:-1,pointerEvents:"none"}}),b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),mJe(r)&&b.jsxs(b.Fragment,{children:[b.jsx(Jee,{...e,data:r}),b.jsx(u7,{...e,data:r})]})]}),i.map(s=>b.jsx(pJe,{port:s,data:e.data},s.id))]})}function yJe(e){return b.jsx(Vr,{"data-likec4-color":e.data.color,css:{width:"100%",height:"100%",border:"default",rounded:"sm",borderWidth:1,"--_color":{base:"var(--likec4-palette-stroke)",_dark:"[color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))]"},borderColor:"[var(--_color)/30]",backgroundColor:"var(--likec4-palette-fill)/15",pointerEvents:"none",paddingLeft:"2",paddingTop:"0.5",fontSize:"xs",fontWeight:"bold",letterSpacing:".75px",color:"[var(--_color)/75]"},children:"PARALLEL"})}const vh={ElementNode:lJe,DeploymentNode:cJe,CompoundElementNode:uJe,CompoundDeploymentNode:dJe,ViewGroupNode:hJe,SequenceActorNode:gJe,SequenceParallelArea:yJe},ste={RelationshipEdge:KQe,SequenceStepEdge:ZQe};class Em{static LeftPadding=40;static RightPadding=40;static TopPadding=55;static BottomPadding=40;id;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;get positionAbsolute(){return{x:this.minX,y:this.minY}}set positionAbsolute(r){const n=Math.round(r.x),o=Math.round(r.y);this.maxX+=n-this.minX,this.maxY+=o-this.minY,this.minX=n,this.minY=o}get dimensions(){return{width:this.maxX-this.minX,height:this.maxY-this.minY}}get position(){const r=this.positionAbsolute;if(!this.parent)return r;const n=this.parent.positionAbsolute;return{x:r.x-n.x,y:r.y-n.y}}constructor(r,n=null){this.id=r.id,this.positionAbsolute=n?{x:r.position.x+n.minX,y:r.position.y+n.minY}:r.position;const{width:o,height:a}=Wn(r);this.maxX=this.minX+Math.ceil(o),this.maxY=this.minY+Math.ceil(a),n&&n.children.push(this)}}class d7 extends Em{constructor(r,n=null){super(r,n),this.parent=n}children=[]}class bJe extends Em{constructor(r,n=null){super(r,n),this.parent=n}}function lte(e,r){const{parentLookup:n,nodeLookup:o}=e.getState(),a=new Map,i=g=>{const y=[];let x=o.get(g)?.parentId,w;for(;x&&(w=o.get(x));)y.push(w.id),x=w.parentId;return y},s=new Set(r.flatMap(i)),l=[...o.values()].flatMap(g=>g.parentId?[]:{xynode:g,parent:null});for(;l.length>0;){const{xynode:g,parent:y}=l.shift();if(!r.includes(g.id)&&g.type!=="element"&&g.type!=="deployment"&&s.has(g.id)){const x=new d7(g,y);a.set(g.id,x),n.get(g.id)?.forEach(w=>{l.push({xynode:w,parent:x})})}else a.set(g.id,new bJe(g,y))}const c=[...a.values()];u(c);function u(g){for(const y of g){if(!(y instanceof d7))continue;u(y.children);const x={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const w of y.children)x.minX=Math.min(x.minX,w.minX),x.minY=Math.min(x.minY,w.minY),x.maxX=Math.max(x.maxX,w.maxX),x.maxY=Math.max(x.maxY,w.maxY);y.minX=x.minX-Em.LeftPadding,y.minY=x.minY-Em.TopPadding,y.maxX=x.maxX+Em.RightPadding,y.maxY=x.maxY+Em.BottomPadding}}function d(){u(c),e.getState().triggerNodeChanges(c.reduce((g,y)=>(g.push({id:y.id,type:"position",dragging:!1,position:y.position,positionAbsolute:y.positionAbsolute}),y instanceof d7&&g.push({id:y.id,type:"dimensions",setAttributes:!0,dimensions:y.dimensions}),g),[]))}let h=null;function p(){c.length!==0&&(h??=requestAnimationFrame(()=>{h=null;const{nodeLookup:g}=e.getState();for(const y of r){const x=mt(a.get(y)),w=mt(g.get(y));x.positionAbsolute=w.internals.positionAbsolute}d()}))}return{rects:a,updateXYFlowNodes:d,onMove:p}}function vJe(){const e=L9(),r=Wt(),n=E.useRef(void 0);return E.useMemo(()=>{let o=!1;const a={x:0,y:0};let i=!1;return{onNodeDragStart:(s,l)=>{o=r.cancelSaveManualLayout();const{nodeLookup:c}=e.getState(),u=yn(Array.from(c.values()),dp(d=>d.draggable!==!1&&(d.dragging===!0||d.id===l.id||d.selected===!0)));To(u,1)&&(n.current=lte(e,Ao(u,d=>d.id))),a.x=s.clientX,a.y=s.clientY,i=!1},onNodeDrag:s=>{i=Math.abs(s.clientX-a.x)>4||Math.abs(s.clientY-a.y)>4,n.current?.onMove()},onNodeDragStop:s=>{i=Math.abs(s.clientX-a.x)>4||Math.abs(s.clientY-a.y)>4,(o||i)&&r.scheduleSaveManualLayout(),n.current=void 0}}},[e,r])}const xJe={relationship:ste.RelationshipEdge,"seq-step":ste.SequenceStepEdge},Cu={element:ic(vh.ElementNode),deployment:ic(vh.DeploymentNode),"compound-element":ic(vh.CompoundElementNode),"compound-deployment":ic(vh.CompoundDeploymentNode),"view-group":ic(vh.ViewGroupNode),"seq-actor":ic(vh.SequenceActorNode),"seq-parallel":ic(vh.SequenceParallelArea)};function wJe(e){return!e||iu(e)?Cu:{element:e.element??Cu.element,deployment:e.deployment??Cu.deployment,"compound-element":e.compoundElement??Cu["compound-element"],"compound-deployment":e.compoundDeployment??Cu["compound-deployment"],"view-group":e.viewGroup??Cu["view-group"],"seq-actor":e.seqActor??Cu["seq-actor"],"seq-parallel":e.seqParallel??Cu["seq-parallel"]}}const kJe=e=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges,pannable:e.pannable,zoomable:e.zoomable,fitViewPadding:e.fitViewPadding,enableFitView:e.features.enableFitView,enableReadOnly:e.features.enableReadOnly||e.toggledFeatures.enableReadOnly||e.dynamicViewVariant==="sequence"&&e.view._type==="dynamic",...!e.features.enableFitView&&{viewport:{x:-Math.min(e.view.bounds.x,0),y:-Math.min(e.view.bounds.y,0),zoom:1}}}),_Je=(e,r)=>e.initialized===r.initialized&&e.pannable===r.pannable&&e.zoomable===r.zoomable&&e.enableFitView===r.enableFitView&&e.enableReadOnly===r.enableReadOnly&&ut(e.fitViewPadding,r.fitViewPadding)&&Xn(e.nodes,r.nodes)&&Xn(e.edges,r.edges)&&Xn(e.viewport??null,r.viewport??null);function EJe({background:e="dots",nodesDraggable:r=!1,nodesSelectable:n=!1,reactFlowProps:o={},children:a,renderNodes:i}){const s=Wt(),{initialized:l,nodes:c,edges:u,enableReadOnly:d,enableFitView:h,...p}=$a(kJe,_Je),{onNodeContextMenu:g,onCanvasContextMenu:y,onEdgeContextMenu:x,onNodeClick:w,onEdgeClick:k,onCanvasClick:C,onCanvasDblClick:_}=sc(),T=!d,A=_ze(),N=vJe(),$=Sze(),R=VV(()=>{$.set(!0)},A?120:400),M=vp(()=>{R.clear(),$.get()&&$.set(!1)},A?350:200),O=it(D=>{D&&($.get()||R.start(),M())}),B=it((D,V)=>{R.clear(),s.send({type:"xyflow.viewportMoved",viewport:V,manually:!!D})}),I=it(()=>{s.send({type:"xyflow.resized"})}),Y=VB(()=>wJe(i),[i],$Q);return $k(()=>{console.warn("renderNodes changed - this might degrade performance")},[Y]),b.jsx(U9,{nodes:c,edges:u,className:Je(l?"initialized":"not-initialized"),nodeTypes:Y,edgeTypes:xJe,onNodesChange:it(D=>{s.send({type:"xyflow.applyNodeChanges",changes:D})}),onEdgesChange:it(D=>{s.send({type:"xyflow.applyEdgeChanges",changes:D})}),background:l?e:"transparent",fitView:!1,onNodeClick:it((D,V)=>{D.stopPropagation(),s.send({type:"xyflow.nodeClick",node:V}),w?.(s.findDiagramNode(V.id),D)}),onEdgeClick:it((D,V)=>{D.stopPropagation(),s.send({type:"xyflow.edgeClick",edge:V}),k?.(s.findDiagramEdge(V.id),D)}),onPaneClick:it(D=>{D.stopPropagation(),s.send({type:"xyflow.paneClick"}),C?.(D)}),onDoubleClick:it(D=>{D.stopPropagation(),D.preventDefault(),s.send({type:"xyflow.paneDblClick"}),_?.(D)}),onNodeMouseEnter:it((D,V)=>{D.stopPropagation(),V.data.hovered||s.send({type:"xyflow.nodeMouseEnter",node:V})}),onNodeMouseLeave:it((D,V)=>{D.stopPropagation(),V.data.hovered&&s.send({type:"xyflow.nodeMouseLeave",node:V})}),onEdgeMouseEnter:it((D,V)=>{D.stopPropagation(),V.data.hovered||s.send({type:"xyflow.edgeMouseEnter",edge:V,event:D})}),onEdgeMouseLeave:it((D,V)=>{D.stopPropagation(),V.data.hovered&&s.send({type:"xyflow.edgeMouseLeave",edge:V,event:D})}),onMove:O,onMoveEnd:B,onInit:it(D=>{s.send({type:"xyflow.init",instance:D})}),onNodeContextMenu:it((D,V)=>{const L=mt(s.findDiagramNode(V.id),`diagramNode ${V.id} not found`);g?.(L,D)}),onEdgeContextMenu:it((D,V)=>{const L=mt(s.findDiagramEdge(V.id),`diagramEdge ${V.id} not found`);x?.(L,D)}),onPaneContextMenu:it(D=>{y?.(D)}),...h&&{onViewportResize:I},nodesDraggable:T&&r,nodesSelectable:n,edgesFocusable:!1,...T&&r&&N,...p,...o,children:a})}function SJe(e){const{view:r,nodesSelectable:n}=e,o=[],a=[],i=new Map,s=E4.from(r.nodes.reduce((h,p)=>(i.set(p.id,p),p.parent||h.push({node:p,parent:null}),h),[]));let l=h=>!0;if(e.where)try{const h=Nd(e.where);l=p=>h({...lV(p,["tags","kind"]),..."source"in p?{source:u(p.source)}:p,..."target"in p?{target:u(p.target)}:p})}catch(h){console.error("Error in where filter:",h)}const c="",u=h=>mt(i.get(h),`Node not found: ${h}`);let d;for(;d=s.dequeue();){const{node:h,parent:p}=d,g=To(h.children,1)||h.kind==vd;if(g)for(const A of h.children)s.enqueue({node:u(A),parent:h});const y={x:h.x,y:h.y};p&&(y.x-=p.x,y.y-=p.y);const x={id:c+h.id,selectable:n&&h.kind!==vd,focusable:n&&h.kind!==vd,deletable:!1,position:y,zIndex:g?ds.Compound:ds.Element,style:{width:h.width,height:h.height},initialWidth:h.width,initialHeight:h.height,hidden:h.kind!==vd&&!l(h),...p&&{parentId:c+p.id}},w={viewId:r.id,id:h.id,title:h.title,color:h.color,shape:h.shape,style:h.style,depth:h.depth??0,icon:h.icon??"none",tags:h.tags??null,x:h.x,y:h.y},k={viewId:r.id,id:h.id,title:h.title,technology:h.technology??null,description:Kt.from(h.description),height:h.height,width:h.width,level:h.level,color:h.color,shape:h.shape,style:h.style,icon:h.icon??null,tags:h.tags,x:h.x,y:h.y,isMultiple:h.style?.multiple??!1};if(h.kind===vd){o.push({...x,type:"view-group",data:{isViewGroup:!0,...w},dragHandle:".likec4-compound-title"});continue}const C=h.modelRef??null,_=h.deploymentRef??null;if(!C&&!_)throw console.error("Invalid node",h),new Error("Element should have either modelRef or deploymentRef");const T={navigateTo:h.navigateTo??null};switch(!0){case(g&&!!_):{o.push({...x,type:"compound-deployment",data:{...w,...T,deploymentFqn:_,modelFqn:C},dragHandle:".likec4-compound-title"});break}case g:{nt(!!C,"ModelRef expected"),o.push({...x,type:"compound-element",data:{...w,...T,modelFqn:C},dragHandle:".likec4-compound-title"});break}case!!_:{o.push({...x,type:"deployment",data:{...k,...T,deploymentFqn:_,modelFqn:C}});break}default:nt(!!C,"ModelRef expected"),o.push({...x,type:"element",data:{...k,...T,modelFqn:C}})}}for(const h of r.edges){const p=h.source,g=h.target,y=c+h.id;if(!To(h.points,2)){console.error("edge should have at least 2 points",h);continue}a.push({id:y,type:"relationship",source:c+p,target:c+g,zIndex:ds.Edge,selectable:n,hidden:!l(h),deletable:!1,data:{id:h.id,label:h.label,technology:h.technology,notes:Kt.from(h.notes),navigateTo:h.navigateTo,controlPoints:h.controlPoints??null,labelBBox:h.labelBBox??null,labelXY:h.labelBBox?{x:h.labelBBox.x,y:h.labelBBox.y}:null,points:h.points,color:h.color??"gray",line:h.line??"dashed",dir:h.dir??"forward",head:h.head??"normal",tail:h.tail??"none",astPath:h.astPath},interactionWidth:20})}return{bounds:r.bounds,xynodes:o,xyedges:a}}const cte={parallel:1,actor:10},u_={default:"gray",active:"amber"};function CJe(e){const{actors:r,steps:n,compounds:o,parallelAreas:a,bounds:i}=e.sequenceLayout,s=[],l=[],c=u=>mt(e.nodes.find(d=>d.id===u));for(const u of o)s.push(TJe(u,c(u.origin),e));for(const u of a)s.push(AJe(u,e));for(const u of r)s.push(NJe(u,c(u.id),i,e));for(const u of n){const d=e.edges.find(h=>h.id===u.id);if(!d)throw new Error(`Edge ${u.id} not found`);l.push(RJe(u,d))}return{bounds:i,xynodes:s,xyedges:l}}function TJe({id:e,x:r,y:n,width:o,height:a,depth:i},s,l){return{id:e,type:"view-group",data:{id:s.id,title:s.title,color:s.color??"gray",shape:s.shape,style:s.style,tags:s.tags,x:r,y:n,viewId:l.id,depth:i,isViewGroup:!0},position:{x:r,y:n},draggable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function AJe({parallelPrefix:e,x:r,y:n,width:o,height:a},i){return{id:`seq-parallel-${e}`,type:"seq-parallel",data:{id:`seq-parallel-${e}`,title:"PARALLEL",technology:null,color:u_.default,shape:"rectangle",style:{},tags:[],x:r,y:n,level:0,icon:null,width:o,height:a,description:Kt.EMPTY,viewId:i.id,parallelPrefix:e},zIndex:cte.parallel,position:{x:r,y:n},draggable:!1,deletable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function NJe({id:e,x:r,y:n,width:o,height:a,ports:i},s,l,c){return{id:e,type:"seq-actor",data:{id:s.id,x:r,y:n,level:0,icon:s.icon??null,isMultiple:s.style.multiple??!1,title:s.title,width:o,height:a,color:s.color,navigateTo:s.navigateTo??null,shape:s.shape,style:s.style,tags:s.tags,modelFqn:s.modelRef??null,technology:s.technology??null,description:Kt.from(s.description),viewHeight:l.height,viewId:c.id,ports:i},deletable:!1,selectable:!0,zIndex:cte.actor,position:{x:r,y:n},width:o,initialWidth:o,height:a,initialHeight:a}}function RJe({id:e,labelBBox:r,sourceHandle:n,targetHandle:o},a){return{id:e,type:"seq-step",data:{id:e,label:a.label,technology:a.technology,notes:Kt.from(a.notes),navigateTo:a.navigateTo,controlPoints:null,labelBBox:{x:0,y:0,width:r?.width??a.labelBBox?.width??32,height:r?.height??a.labelBBox?.height??32},labelXY:null,points:a.points,color:a.color,line:a.line,dir:"forward",head:a.head??"normal",tail:a.tail??"none",astPath:a.astPath},selectable:!0,focusable:!1,zIndex:20,interactionWidth:40,source:a.source,sourceHandle:n,target:a.target,targetHandle:o}}function $Je({dynamicViewVariant:e,...r}){const n=r.view,o=n._type==="dynamic",{bounds:a,xynodes:i,xyedges:s}=o&&e==="sequence"?CJe(n):SJe(r);return o&&n.variant!==e?{view:{...n,bounds:a,variant:e},xynodes:i,xyedges:s}:{view:a===n.bounds?n:{...n,bounds:a},xynodes:i,xyedges:s}}function ute(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);return o&&ut(o.type,n.type)?ut(o.hidden??!1,n.hidden??!1)&&ut(o.source,n.source)&&ut(o.sourceHandle??null,n.sourceHandle??null)&&ut(o.target,n.target)&&ut(o.targetHandle??null,n.targetHandle??null)&&ut(o.zIndex??0,n.zIndex??0)&&ut(o.data,n.data)?o:{...Vd(o,["hidden","zIndex"]),...n,data:n.data}:n})}function dte(e,r){return H6(r)?ute(e,r):(r=e,n=>ute(n,r))}function hte(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);if(o&&ut(o.type,n.type)){const{width:a,height:i}=Wn(o);return ut(a,n.initialWidth)&&ut(i,n.initialHeight)&&ut(o.parentId??null,n.parentId??null)&&ut(o.hidden??!1,n.hidden??!1)&&ut(o.zIndex??0,n.zIndex??0)&&ut(o.position,n.position)&&ut(o.data,n.data)?o:{...Vd(o,["measured","parentId","hidden","zIndex"]),...n,width:n.initialWidth,height:n.initialHeight,data:n.data}}return n})}function h7(e,r){return H6(r)?hte(e,r):(r=e,n=>hte(n,r))}const f7={top:"40px",bottom:"16px",left:"16px",right:"16px"};function fte(e){const r=[],n=[],o=new Map,a=E4.from(e.nodes.reduce((l,c)=>(o.set(c.id,c),c.parent||l.push({node:c,parent:null}),l),[])),i=l=>mt(o.get(l),`Node not found: ${l}`);let s;for(;s=a.dequeue();){const{node:l,parent:c}=s,u=To(l.children,1)||l.kind==vd;if(u)for(const x of l.children)a.enqueue({node:i(x),parent:l});const d={x:l.x,y:l.y};c&&(d.x-=c.x,d.y-=c.y);const h=l.id,p={id:h,draggable:!1,selectable:!0,focusable:!0,position:d,zIndex:u?ds.Compound:ds.Element,style:{width:l.width,height:l.height},initialWidth:l.width,initialHeight:l.height,...c&&{parentId:c.id}},g=l.modelRef??null,y={navigateTo:l.navigateTo??null};switch(!0){case l.kind===Ik.Empty:{r.push({...p,type:"empty",data:{column:l.column}});break}case(u&&!!g):{r.push({...p,type:"compound",data:{id:h,column:l.column,title:l.title,color:l.color,shape:l.shape,style:l.style,depth:l.depth??0,icon:l.icon??"none",ports:l.ports,existsInCurrentView:l.existsInCurrentView,fqn:g,...y}});break}default:nt(g,"Element should have either modelRef or deploymentRef"),r.push({...p,type:"element",data:{id:h,column:l.column,fqn:g,title:l.title,technology:l.technology,description:l.description,height:l.height,width:l.width,color:l.color,shape:l.shape,icon:l.icon??"none",ports:l.ports,style:l.style,existsInCurrentView:l.existsInCurrentView,tags:l.tags,...y}})}}for(const l of e.edges){const c=l.source,u=l.target,d=l.id;if(!To(l.points,2)){console.error("edge should have at least 2 points",l);continue}if(!To(l.relations,1)){console.error("edge should have at least 1 relation",l);continue}n.push({id:d,type:"relationship",source:c,target:u,sourceHandle:l.sourceHandle,targetHandle:l.targetHandle,data:{sourceFqn:l.sourceFqn,targetFqn:l.targetFqn,relations:l.relations,color:l.color??"gray",label:l.label,navigateTo:l.navigateTo??null,line:l.line??"dashed",existsInCurrentView:l.existsInCurrentView},interactionWidth:20})}return{xynodes:r,xyedges:n}}const pte=e=>e.find(r=>r.data.column==="subjects"&&rV(r.parentId)),PJe=Kje(async({input:e,self:r,signal:n})=>{const{subjectId:o,navigateFromNode:a,xyflow:i,xystore:s,update:l}=e;let{nodes:c,width:u,height:d}=s.getState();const h=fte(l),p=()=>{const{nodes:R,edges:M}=s.getState();return{xynodes:h7(R,h.xynodes),xyedges:dte(M,h.xyedges)}},g=mt(r._parent);let y=i.getZoom();const x=Math.max(y,1),w=tu(l.bounds,u,d,hs,x,f7),k=h.xynodes.find(R=>R.type!=="empty"&&R.data.column==="subjects"&&R.data.fqn===o)??pte(h.xynodes),C=pte(c),_=a?c.find(R=>R.id===a):c.find(R=>R.type!=="empty"&&R.data.column!=="subjects"&&R.data.fqn===o);if(!k||!_||k.type==="empty"||!C||k.data.fqn===C.data.fqn)return await i.setViewport(w),p();const T={x:k.position.x+(k.initialWidth??0)/2,y:k.position.y+(k.initialHeight??0)/2},A=i.getInternalNode(C.id),N=eYe(A),$=new Set;return c.forEach(R=>{if(R.id!==_.id){if(R.data.column==="subjects"){$.add(R.id);return}R.parentId&&(R.parentId===_.id||$.has(R.parentId))&&$.add(R.id)}}),c=h7(c,c.flatMap(R=>$.has(R.id)?[]:R.id!==_.id?{...R,data:{...R.data,dimmed:R.data.column==="subjects"?"immediate":!0}}:{...Vd(R,["parentId"]),position:{x:N.x-R.initialWidth/2,y:N.y-R.initialHeight/2},zIndex:ds.Max,hidden:!1,data:{...R.data,dimmed:!1}})),g.send({type:"update.xydata",xynodes:c,xyedges:[]}),await F4e(120),h.xynodes=h.xynodes.map(Jt.setDimmed(!1)),n.aborted||(await i.setCenter(N.x,N.y,{zoom:y,duration:300}),await i.setCenter(T.x,T.y,{zoom:y})),p()}),MJe=ec({actors:{layouter:PJe},guards:{hasViewId:({context:e})=>e.viewId!==null,isReady:({context:e})=>e.xyflow!==null&&e.xystore!==null&&e.layouted!==null,anotherSubject:({context:e,event:r})=>r.type==="update.view"?e.layouted?.subject!==r.layouted.subject:!1},actions:{"xyflow.init":et(({event:e})=>(Ut(e,"xyflow.init"),{xyflow:e.instance,xystore:e.store})),"update.view":et(({event:e})=>(Ut(e,"update.view"),{layouted:e.layouted,...fte(e.layouted)})),"xyflow:updateNodeInternals":({context:e})=>{nt(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const s=r.querySelector(`.react-flow__node[data-id="${i}"]`);s&&a.set(i,{id:i,nodeElement:s,force:!0})}n(a,{triggerFitView:!1})},"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;nt(a,"xyflow is not initialized"),nt(i,"xystore is not initialized"),o??=e.layouted?.bounds;const s=Math.max(a.getZoom(),1);if(o){const{width:l,height:c}=i.getState(),u=tu(o,l,c,hs,s,f7);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:hs,maxZoom:s,padding:f7,...n>0&&{duration:n}}).catch(console.error)},"xyflow.applyNodeChanges":et(({context:e,event:r})=>(Ut(r,"xyflow.applyNodeChanges"),{xynodes:Aw(r.changes,e.xynodes)})),"xyflow.applyEdgeChanges":et(({context:e,event:r})=>(Ut(r,"xyflow.applyEdgeChanges"),{xyedges:Nw(r.changes,e.xyedges)}))}}).createMachine({id:"relationships-browser",context:({input:e})=>({subject:e.subject,viewId:e.viewId,scope:e.viewId?e.scope:"global",closeable:e.closeable??!0,enableSelectSubject:e.enableSelectSubject??!0,enableChangeScope:e.enableChangeScope??!0,xyflow:null,xystore:null,layouted:null,navigateFromNode:null,xynodes:[],xyedges:[]}),initial:"initializing",on:{"xyflow.applyNodeChanges":{actions:"xyflow.applyNodeChanges"},"xyflow.applyEdgeChanges":{actions:"xyflow.applyEdgeChanges"}},states:{initializing:{on:{"xyflow.init":{actions:"xyflow.init",target:"isReady"},"update.view":{actions:"update.view",target:"isReady"},stop:"closed",close:"closed"}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},sn({type:"xyflow.updateNodeInternals"},{delay:150})],target:"active"},{target:"initializing"}]},active:{initial:"idle",tags:["active"],on:{"xyflow.nodeClick":{actions:ln(({event:e,enqueue:r})=>{if("fqn"in e.node.data){const n=e.node.data.fqn;r.raise({type:"navigate.to",subject:n,fromNode:e.node.id})}})},"xyflow.edgeClick":{guard:"hasViewId",actions:ln(({event:e,context:r,system:n,enqueue:o})=>{(e.edge.selected||e.edge.data.relations.length>1)&&o.sendTo(tc(n).overlaysActorRef,{type:"open.relationshipDetails",viewId:r.viewId,source:e.edge.data.sourceFqn,target:e.edge.data.targetFqn})})},"navigate.to":{actions:[et({subject:({event:e})=>e.subject,viewId:({event:e,context:r})=>e.viewId??r.viewId??null,navigateFromNode:({event:e})=>e.fromNode??null})]},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"update.view":{actions:"update.view",target:".layouting"},"change.scope":{actions:et({scope:({event:e})=>e.scope})},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"},fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"xyflow.resized":{actions:[oa("fitDiagram"),sn({type:"fitDiagram"},{id:"fitDiagram",delay:300})]},"xyflow.init":{actions:"xyflow.init"},"xyflow.unmount":{target:"initializing"},close:"closed"},states:{idle:{on:{"xyflow.edgeMouseEnter":{actions:[et({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed!==!1||o.selected);return e.xyedges.map(o=>o.id===r.edge.id?Jt.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?Jt.setDimmed(o,"immediate"):o)}}),oa("undim.edges"),oa("dim.nonhovered.edges"),sn({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:200})]},"xyflow.edgeMouseLeave":{actions:[et({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?Jt.setHovered(n,!1):n)}),oa("dim.nonhovered.edges"),sn({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(r=>r.data.hovered?r:Jt.setDimmed(r,r.data.dimmed==="immediate"?"immediate":!0))})},"undim.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(Jt.setDimmed(!1))})},"xyflow.selectionChange":{actions:ln(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})}}},layouting:{invoke:{id:"layouter",src:"layouter",input:({context:e})=>({subjectId:e.subject,navigateFromNode:e.navigateFromNode,xyflow:mt(e.xyflow),xystore:mt(e.xystore),update:mt(e.layouted)}),onDone:{target:"idle",actions:ln(({enqueue:e,event:r})=>{e.assign({xynodes:r.output.xynodes,xyedges:r.output.xyedges,navigateFromNode:null}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:50});for(let n=0;n<6;n++)e.raise({type:"xyflow.updateNodeInternals"},{delay:100+n*100})})}},on:{"update.xydata":{actions:et({xynodes:({event:e})=>e.xynodes,xyedges:({event:e})=>e.xyedges})},"xyflow.applyEdgeChanges":{},"xyflow.applyNodeChanges":{}}}}},closed:{id:"closed",type:"final"}},exit:et({xyflow:null,layouted:null,xystore:null,xyedges:[],xynodes:[]})}),mte=MJe,OJe=ec({actors:{relationshipsBrowserLogic:mte}}).createMachine({id:"element-details",context:({input:e})=>({...e,initiatedFrom:{node:e.initiatedFrom?.node??null,clientRect:e.initiatedFrom?.clientRect??null}}),initial:"active",states:{active:{entry:qp("relationshipsBrowserLogic",{id:({self:e})=>`${e.id}-relationships`,input:({context:e})=>({subject:e.subject,viewId:e.currentView.id,scope:"view",enableSelectSubject:!1,enableChangeScope:!0,closeable:!1})}),exit:[il(({self:e})=>`${e.id}-relationships`,{type:"close"}),yu(({self:e})=>`${e.id}-relationships`)],on:{"change.subject":{actions:et({subject:({event:e})=>e.subject})},close:"closed"}},closed:{id:"closed",type:"final"}}}),DJe=OJe;function LJe(e){const r=[],n=[],o=new Map,a=E4.from(e.nodes.reduce((l,c)=>(o.set(c.id,c),c.parent||l.push({node:c,parent:null}),l),[])),i=l=>mt(o.get(l),`Node not found: ${l}`);let s;for(;s=a.dequeue();){const{node:l,parent:c}=s,u=To(l.children,1);if(u)for(const x of l.children)a.enqueue({node:i(x),parent:l});const d={x:l.x,y:l.y};c&&(d.x-=c.x,d.y-=c.y);const h=l.id,p={id:h,draggable:!1,selectable:!0,focusable:!0,deletable:!1,position:d,zIndex:u?ds.Compound:ds.Element,style:{width:l.width,height:l.height},initialWidth:l.width,initialHeight:l.height,...c&&{parentId:c.id}},g=l.modelRef,y={navigateTo:l.navigateTo??null};switch(!0){case u:{r.push({...p,type:"compound",data:{id:h,column:l.column,title:l.title,color:l.color,style:l.style,depth:l.depth??0,icon:l.icon??"none",ports:l.ports,fqn:g,...y}});break}default:r.push({...p,type:"element",data:{id:h,column:l.column,fqn:g,title:l.title,technology:l.technology,description:Kt.from(l.description),height:l.height,width:l.width,color:l.color,shape:l.shape,icon:l.icon??"none",ports:l.ports,style:l.style,tags:l.tags,...y}})}}for(const{source:l,target:c,relationId:u,label:d,technology:h,description:p,navigateTo:g=null,color:y="gray",line:x="dashed",...w}of e.edges){const k=w.id;n.push({id:k,type:"relationship",source:l,target:c,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,deletable:!1,data:{relationId:u,label:d,color:y,navigateTo:g,line:x,description:Kt.from(p),...h&&{technology:h}}})}return{xynodes:r,xyedges:n,bounds:e.bounds}}function gte(e){return"edgeId"in e?(nt(V6(e.edgeId),"edgeId is required"),{edgeId:e.edgeId}):{source:e.source,target:e.target}}const IJe=ec({actions:{"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;nt(a,"xyflow is not initialized"),nt(i,"xystore is not initialized"),o??=e.bounds;const s=Math.max(a.getZoom(),1);if(o){const{width:l,height:c}=i.getState(),u=tu(o,l,c,hs,s,.1);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:hs,maxZoom:s,padding:.1,...n>0&&{duration:n}}).catch(console.error)},"xyflow:updateNodeInternals":({context:e})=>{nt(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const s=r.querySelector(`.react-flow__node[data-id="${i}"]`);s&&a.set(i,{id:i,nodeElement:s,force:!0})}n(a,{triggerFitView:!1})},updateXYFlow:et(({context:e,event:r})=>{Ut(r,"xyflow.init");let n=e.initialized;return n.xyflow||(n={...n,xyflow:!0}),{initialized:n,xyflow:r.instance,xystore:r.store}}),updateLayoutData:et(({context:e,event:r})=>{Ut(r,"update.layoutData");const{xynodes:n,xyedges:o,bounds:a}=LJe(r.data);let i=e.initialized;return i.xydata||(i={...i,xydata:!0}),{initialized:i,xynodes:h7(e.xynodes,n),xyedges:dte(e.xyedges,o),bounds:Xn(e.bounds,a)?e.bounds:a}})},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enable: navigate.to":()=>!0}}).createMachine({initial:"initializing",context:({input:e})=>({subject:gte(e),viewId:e.viewId,bounds:{x:0,y:0,width:200,height:200},initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null,xynodes:[],xyedges:[]}),states:{initializing:{on:{"xyflow.init":{actions:"updateXYFlow",target:"isReady"},"update.layoutData":{actions:"updateLayoutData",target:"isReady"},close:{target:"closed"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},sn({type:"xyflow.updateNodeInternals"},{delay:50})],target:"ready"},{target:"initializing"}]},ready:{on:{"xyflow.edgeMouseEnter":{actions:[et({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed===!0||o.data.dimmed==="immediate");return e.xyedges.map(o=>o.id===r.edge.id?Jt.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?Jt.setDimmed(o,"immediate"):o)}}),oa("undim.edges"),oa("dim.nonhovered.edges"),sn({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:100})]},"xyflow.edgeMouseLeave":{actions:[et({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?Jt.setHovered(n,!1):n)}),oa("dim.nonhovered.edges"),sn({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(r=>Jt.setDimmed(r,r.data.hovered!==!0))})},"undim.edges":{actions:et({xyedges:({context:e})=>e.xyedges.some(r=>r.selected===!0)?e.xyedges.map(r=>Jt.setDimmed(r,r.selected!==!0?r.data.dimmed||"immediate":!1)):e.xyedges.map(Jt.setDimmed(!1))})},"xyflow.selectionChange":{actions:ln(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})},"update.layoutData":{actions:["updateLayoutData",oa("fitDiagram"),sn({type:"fitDiagram",duration:0},{id:"fitDiagram",delay:50}),sn({type:"xyflow.updateNodeInternals"},{delay:75})]},"xyflow.init":{actions:"updateXYFlow"},"xyflow.applyNodeChanges":{actions:et({xynodes:({context:e,event:r})=>Aw(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:et({xyedges:({context:e,event:r})=>Nw(r.changes,e.xyedges)})},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"navigate.to":{actions:et({subject:({event:e})=>gte(e.params),viewId:({context:e,event:r})=>r.params.viewId??e.viewId})},close:{target:"closed"}},exit:et({xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null})},closed:{type:"final"}},on:{fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"xyflow.resized":{actions:[oa("fitDiagram"),sn({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"}}}),zJe=IJe,jJe=zX(({sendBack:e})=>{const r=oC([["Escape",n=>{n.stopPropagation(),e({type:"close"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),BJe=ec({actors:{relationshipDetails:zJe,elementDetails:DJe,relationshipsBrowser:mte,hotkey:jJe},actions:{closeLastOverlay:ln(({context:e,enqueue:r})=>{if(e.overlays.length===0)return;const n=Ud(e.overlays)?.id;n&&(r.sendTo(n,{type:"close"}),r.stopChild(n),r.assign({overlays:e.overlays.filter(o=>o.id!==n)}))}),closeSpecificOverlay:ln(({context:e,enqueue:r},n)=>{const o=e.overlays.find(a=>a.id===n.actorId)?.id;o&&(r.sendTo(o,{type:"close"}),r.stopChild(o),r.assign({overlays:e.overlays.filter(a=>a.id!==o)}))}),closeAllOverlays:ln(({context:e,enqueue:r})=>{for(const{id:n}of e$e(e.overlays))r.sendTo(n,{type:"close"}),r.stopChild(n);r.assign({overlays:[]})}),openElementDetails:ln(({context:e,enqueue:r,event:n})=>{if(Ut(n,"open.elementDetails"),e.overlays.some(a=>a.type==="elementDetails"&&a.subject===n.subject))return;const o=`elementDetails-${e.seq}`;r.spawnChild("elementDetails",{id:o,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"elementDetails",id:o,subject:n.subject}]})}),openRelationshipDetails:ln(({context:e,enqueue:r,event:n})=>{Ut(n,"open.relationshipDetails");const o=Ud(e.overlays);if(o?.type==="relationshipDetails"){r.sendTo(o.id,{...n,type:"navigate.to"});return}const a=`relationshipDetails-${e.seq}`;r.spawnChild("relationshipDetails",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipDetails",id:a}]})}),openRelationshipsBrowser:ln(({context:e,enqueue:r,event:n})=>{Ut(n,"open.relationshipsBrowser");const o=Ud(e.overlays);if(o?.type==="relationshipsBrowser"){r.sendTo(o.id,{type:"navigate.to",subject:n.subject,viewId:n.viewId});return}const a=`relationshipsBrowser-${e.seq}`;r.spawnChild("relationshipsBrowser",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipsBrowser",id:a,subject:n.subject}]})}),listenToEsc:qp("hotkey",{id:"hotkey"}),stopListeningToEsc:yu("hotkey")},guards:{"has overlays?":({context:e})=>e.overlays.length>0,"close specific overlay?":({context:e,event:r})=>(Ut(r,"close"),V6(r.actorId)&&e.overlays.some(n=>n.id===r.actorId)),"last: is relationshipDetails?":({context:e})=>Ud(e.overlays)?.type==="relationshipDetails","last: is relationshipsBrowser?":({context:e})=>Ud(e.overlays)?.type==="relationshipsBrowser"}}).createMachine({id:"overlays",context:()=>({seq:1,overlays:[]}),initial:"idle",on:{"open.elementDetails":{actions:"openElementDetails",target:".active",reenter:!1},"open.relationshipDetails":{actions:"openRelationshipDetails",target:".active",reenter:!1},"open.relationshipsBrowser":{actions:"openRelationshipsBrowser",target:".active",reenter:!1}},states:{idle:{},active:{entry:"listenToEsc",exit:"stopListeningToEsc",on:{close:[{guard:"close specific overlay?",actions:{type:"closeSpecificOverlay",params:({event:e})=>({actorId:e.actorId})},target:"closing"},{actions:"closeLastOverlay",target:"closing"}],"close.all":{actions:["closeAllOverlays","stopListeningToEsc"],target:"idle"}}},closing:{always:[{guard:"has overlays?",target:"active"},{actions:"stopListeningToEsc",target:"idle"}]}},exit:["stopListeningToEsc","closeAllOverlays"]}),FJe=BJe,HJe=ec({actions:{"change searchValue":et({searchValue:({event:e,context:r})=>(Ut(e,["change.search","open"]),e.search??r.searchValue)}),"reset pickViewFor":et({pickViewFor:()=>null})}}).createMachine({id:"search",context:{openedWithSearch:null,searchValue:"",pickViewFor:null},initial:"inactive",on:{close:{target:".inactive",actions:"reset pickViewFor"}},states:{inactive:{on:{open:{target:"opened",actions:[et({openedWithSearch:({event:e})=>e.search??null,searchValue:({event:e,context:r})=>e.search??r.searchValue})]}}},opened:{on:{open:{actions:"change searchValue"},"change.search":{actions:"change searchValue"},"pickview.open":{target:"pickView",actions:et({pickViewFor:({event:e})=>e.elementFqn})}}},pickView:{on:{"pickview.close":{target:"opened",actions:"reset pickViewFor"}}}}}),UJe=HJe;class yte{}class Sm extends yte{constructor(r,n,o){super(),this.getEdgePosition=r,this.computePosition=n,this.propertyToEdit=o}alignTo;computeLayout(r){this.alignTo=this.getEdgePosition(r)}applyPosition(r){return{[this.propertyToEdit]:this.computePosition(this.alignTo,r)}}}class VJe extends yte{layout=new Map;axisPreset;get primaryAxisCoord(){return this.axisPreset.primaryAxisCoord}get secondaryAxisCoord(){return this.axisPreset.secondaryAxisCoord}get primaryAxisDimension(){return this.axisPreset.primaryAxisDimension}get secondaryAxisDimension(){return this.axisPreset.secondaryAxisDimension}constructor(r){super(),this.axisPreset=r==="Column"?{primaryAxisDimension:"width",secondaryAxisDimension:"height",primaryAxisCoord:"x",secondaryAxisCoord:"y"}:{primaryAxisDimension:"height",secondaryAxisDimension:"width",primaryAxisCoord:"y",secondaryAxisCoord:"x"}}applyPosition(r){return this.layout?.get(r.id)??{}}computeLayout(r){const n=yn(r,jw(i=>i[this.primaryAxisCoord])),o=this.getLayoutRect(n),a=this.getLayers(n);this.layout=this.buildLayout(a,o,n)}getLayoutRect(r){const n=Math.min(...r.map(s=>s.x)),o=Math.min(...r.map(s=>s.y)),a=Math.max(...r.map(s=>s.x+s.width)),i=Math.max(...r.map(s=>s.y+s.height));return{x:n,y:o,width:a-n,height:i-o}}getLayers(r){const n=[];let o=0,a=null;for(let i of r)if(a&&i[this.primaryAxisCoord]<o)a.nodes.push(i),a.primaryAxisSize=Math.max(a.primaryAxisSize,i[this.primaryAxisDimension]),a.occupiedSpace+=i[this.secondaryAxisDimension],o=Math.max(i[this.primaryAxisCoord]+i[this.primaryAxisDimension],o);else{a={primaryAxisSize:i[this.primaryAxisDimension],nodes:[i],occupiedSpace:i[this.secondaryAxisDimension],layout:null},n.push(a),o=i[this.primaryAxisCoord]+i[this.primaryAxisDimension];continue}return n.forEach(i=>i.nodes.sort((s,l)=>s[this.secondaryAxisCoord]-l[this.secondaryAxisCoord])),n}buildLayout(r,n,o){const a=new Map(o.map(y=>[y.id,y])),i=[],s=r.reduce((y,x)=>y+x.primaryAxisSize,0),l=r.length>1?(n[this.primaryAxisDimension]-s)/(r.length-1):0,c=r.reduce((y,x,w)=>r[y].occupiedSpace<x.occupiedSpace?w:y,0),u=r[c],d=r.slice(0,c).reduce((y,x)=>y+x.primaryAxisSize+l,n[this.primaryAxisCoord]),h=this.buildLayerLayout(u,n,d,a,null);u.layout=h,i.push(...h.nodePositions);let p=d+u.primaryAxisSize+l,g=u;for(let y=c+1;y<r.length;y++){const x=r[y];x.layout=this.buildLayerLayout(x,n,p,a,g),i.push(...x.layout.nodePositions),g=x.layout.refLayer??x,p+=x.primaryAxisSize+l}p=d,g=u;for(let y=c-1;y>=0;y--){const x=r[y];p-=x.primaryAxisSize+l,x.layout=this.buildLayerLayout(x,n,p,a,g),i.push(...x.layout.nodePositions),g=x.layout.refLayer??x}return new Map(i)}buildLayerLayout(r,n,o,a,i){let s=this.scoreLayout(this.spaceAround(r,n,o),a);if(r.nodes.length!=1){const l=this.scoreLayout(this.spaceBetween(r,n,o),a);s=l[0]<s[0]?l:s}if(i&&i.nodes.length-1>=r.nodes.length){const l=this.scoreLayout(this.placeInGaps(r,o,i),a);s=l[0]<s[0]?l:s}if(i&&i.nodes.length>=r.nodes.length){const l=this.scoreLayout(this.placeInCells(r,o,i),a);s=l[0]<s[0]?l:s}return s[1]}spaceBetween(r,n,o){const a=(n[this.secondaryAxisDimension]-r.occupiedSpace)/(r.nodes.length-1);let i=n[this.secondaryAxisCoord];const s=new Map;for(let l of r.nodes)s.set(l.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=l[this.secondaryAxisDimension]+a;return{nodePositions:s,refLayer:null}}spaceAround(r,n,o){const a=(n[this.secondaryAxisDimension]-r.occupiedSpace)/(r.nodes.length+1);let i=n[this.secondaryAxisCoord]+a;const s=new Map;for(let l of jw(r.nodes,c=>c[this.secondaryAxisCoord]))s.set(l.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=l[this.secondaryAxisDimension]+a;return{nodePositions:s,refLayer:null}}placeInGaps(r,n,o){const a=new Map,i=r.nodes,s=this.getGapsPositions(o);let l=0;for(let c=0,u=i[c];c<i.length;c++,u=i[c]){const d=u[this.secondaryAxisCoord]+u[this.secondaryAxisDimension]/2;let h=1/0;for(;l-c<=s.length-i.length;){const p=s[l]-d;if(Math.abs(p)<Math.abs(h))h=p,l++;else break}a.set(u.id,{[this.secondaryAxisCoord]:u[this.secondaryAxisCoord]+h,[this.primaryAxisCoord]:n})}return{nodePositions:a,refLayer:o}}placeInCells(r,n,o){const a=new Map,i=r.nodes,s=this.getNodePositions(o);let l=0;for(let c=0,u=i[c];c<i.length;c++,u=i[c]){const d=u[this.secondaryAxisCoord]+u[this.secondaryAxisDimension]/2;let h=1/0;for(;l-c<=s.length-i.length;){const p=s[l]-d;if(Math.abs(p)<Math.abs(h))h=p,l++;else break}a.set(u.id,{[this.secondaryAxisCoord]:u[this.secondaryAxisCoord]+h,[this.primaryAxisCoord]:n})}return{nodePositions:a,refLayer:o}}scoreLayout(r,n){return[yn(Array.from(r.nodePositions),Ao(([o,a])=>{const i=n.get(o);return nt(i,`Could not find original rect for node ${o}`),[lV(i,["x","y"]),a]}),Ao(([o,a])=>Math.abs(o[this.secondaryAxisCoord]-a[this.secondaryAxisCoord])),fp((o,a)=>o+a,0)),r]}getGapsPositions(r){const n=[],{layout:o,nodes:a}=r;nt(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=1;i<a.length;i++){const s=a[i-1],l=a[i],c=o.nodePositions.get(s.id),u=o.nodePositions.get(l.id);n.push((u[this.secondaryAxisCoord]+c[this.secondaryAxisCoord]+s[this.secondaryAxisDimension])/2)}return n}getNodePositions(r){const n=[],{layout:o,nodes:a}=r;nt(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=0;i<a.length;i++){const s=a[i],l=o.nodePositions.get(s.id);n.push(l[this.secondaryAxisCoord]+s[this.secondaryAxisDimension]/2)}return n}}function qJe(e){switch(e){case"Left":return new Sm(r=>Math.min(...r.map(n=>n.x)),(r,n)=>Math.floor(r),"x");case"Top":return new Sm(r=>Math.min(...r.map(n=>n.y)),(r,n)=>Math.floor(r),"y");case"Right":return new Sm(r=>Math.max(...r.map(n=>n.x+n.width)),(r,n)=>Math.floor(r-n.width),"x");case"Bottom":return new Sm(r=>Math.max(...r.map(n=>n.y+n.height)),(r,n)=>Math.floor(r-n.height),"y");case"Center":return new Sm(r=>Math.min(...r.map(n=>n.x+n.width/2)),(r,n)=>Math.floor(r-n.width/2),"x");case"Middle":return new Sm(r=>Math.min(...r.map(n=>n.y+n.height/2)),(r,n)=>Math.floor(r-n.height/2),"y")}}function bte(e){const{width:r,height:n}=Wn(e);return{...e.internals.positionAbsolute,id:e.id,width:r,height:n}}function YJe(e){switch(e){case"Left":case"Right":case"Top":case"Bottom":case"Center":case"Middle":return qJe(e);case"Column":case"Row":return new VJe(e);default:Ga(e)}}function WJe(e){const{lastClickedNode:r}=e.context;return!r||r.id!==e.event.node.id?{id:e.event.node.id,clicks:1,timestamp:Date.now()}:{id:r.id,clicks:r.clicks+1,timestamp:Date.now()}}function vte({context:e,event:r}){Ut(r,"update.view");const n=r.view,o=e.view.id===n.id,a=e.xynodes,i=r.xynodes.map(l=>{const c=a.find(u=>u.id===l.id);if(c){const{width:u,height:d}=Wn(c);return ut(c.type,l.type)&&ut(u,l.initialWidth)&&ut(d,l.initialHeight)&&ut(c.hidden??!1,l.hidden??!1)&&ut(c.position,l.position)&&ut(c.data,l.data)&&ut(c.parentId??null,l.parentId??null)?c:{...Vd(c,["measured","parentId"]),...l,width:l.initialWidth,height:l.initialHeight,data:{...c.data,...l.data}}}return l});let s=r.xyedges;if(o&&!n.hasLayoutDrift){const l=e.xyedges;s=r.xyedges.map(c=>{const u=l.find(d=>d.id===c.id);return u&&u.type===c.type?ut(u.hidden??!1,c.hidden??!1)&&ut(u.data,c.data)&&ut(u.source,c.source)&&ut(u.target,c.target)&&ut(u.sourceHandle,c.sourceHandle)&&ut(u.targetHandle,c.targetHandle)?u:{...Vd(u,["sourceHandle","targetHandle"]),...c,data:{...u.data,...c.data}}:c})}if(!o){for(const l of i)l.data={...l.data,dimmed:!1,hovered:!1};for(const l of s)l.data={...l.data,dimmed:!1,hovered:!1,active:!1}}return{xynodes:i,xyedges:s,view:n}}function XJe(e){const{xynodes:r,xyedges:n,focusedNode:o}=e.context;if(!o)return{};const a=new Set([o]),i=n.map(s=>s.source===o||s.target===o?(a.add(s.source),a.add(s.target),Jt.setData(s,{dimmed:!1,active:!0})):Jt.setData(s,{dimmed:!0,active:!1}));return{xynodes:r.map(s=>Jt.setDimmed(s,!a.has(s.id))),xyedges:i}}function xte({context:e,event:r}){Ut(r,"update.view");let{navigationHistory:{currentIndex:n,history:o},lastOnNavigate:a,viewport:i}=e;const s=o[n];if(!s)return{navigationHistory:{currentIndex:0,history:[{viewId:r.view.id,fromNode:null,viewport:{...i}}]}};if(s.viewId!==r.view.id){if(!a){const l=n>0?mt(o[n-1]):null;if(l&&l.viewId===r.view.id)return{navigationHistory:{currentIndex:n-1,history:o},lastOnNavigate:{fromView:s.viewId,toView:l.viewId,fromNode:s.fromNode}};const c=n<o.length-1?mt(o[n+1]):null;if(c&&c.viewId===r.view.id)return{navigationHistory:{currentIndex:n+1,history:o},lastOnNavigate:{fromView:s.viewId,toView:c.viewId,fromNode:c.fromNode}}}return o=[...o.slice(0,n+1),{viewId:r.view.id,fromNode:a?.fromNode??null,viewport:{...i}}],n=o.length-1,{navigationHistory:{currentIndex:n,history:o}}}return{}}function GJe({context:e}){const{navigationHistory:{currentIndex:r,history:n}}=e;nt(r>0,"Cannot navigate back");const o=n[r],a=n[r-1];return{navigationHistory:{currentIndex:r-1,history:n},lastOnNavigate:{fromView:o.viewId,toView:a.viewId,fromNode:o.fromNode}}}function KJe({context:e}){const{navigationHistory:{currentIndex:r,history:n}}=e;nt(r<n.length-1,"Cannot navigate forward");const o=n[r],a=n[r+1];return{navigationHistory:{currentIndex:r+1,history:n},lastOnNavigate:{fromView:o.viewId,toView:a.viewId,fromNode:a.fromNode}}}function ZJe({context:e,event:r}){return Ut(r,"update.nodeData"),{xynodes:e.xynodes.map(n=>{if(n.id!==r.nodeId)return n;const o=aV(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function QJe({context:e,event:r}){return Ut(r,"update.edgeData"),{xyedges:e.xyedges.map(n=>{if(n.id!==r.edgeId)return n;const o=aV(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function JJe({context:e}){const{xynodes:r}=e;function n(i,s){const l=bh({x:i.width||0,y:i.height||0});let c=bh(i.position).add(l.mul(.5)),u=i;do{const d=u.parentId&&s.find(h=>h.id==u.parentId);if(!d)break;u=d,c=c.add(d.position)}while(!0);return c}function o(i){const s=r.find(g=>g.id==i.source),l=r.find(g=>g.id==i.target);if(!s||!l)return[];const c=n(s,r),u=n(l,r);if(!c||!u)return[];if(s===l){const g=new ia(0,s.height||0).mul(-.5).add(c);return[g.add(new ia(-32,-80)),g.add(new ia(32,-80))]}const d=u.sub(c),h=a(s,c,d),p=a(l,u,d.mul(-1));return[h.add(p.sub(h).mul(.3))]}function a(i,s,l){const c=(i.width||0)/2/l.x,u=(i.height||0)/2/l.y,d=Math.min(Math.abs(c),Math.abs(u));return bh(l).mul(d).add(s)}return{xyedges:e.xyedges.map(i=>!i.data.controlPoints||iu(i.data.controlPoints)?i:{...i,data:{...i.data,controlPoints:o(i)}})}}function eet({context:e}){const{stepId:r,parallelPrefix:n}=mt(e.activeWalkthrough,"activeWalkthrough is null"),o=mt(e.xyedges.find(a=>a.id===r));return{xyedges:e.xyedges.map(a=>{const i=r===a.id||!!n&&a.id.startsWith(n);return Jt.setData(a,{active:i,dimmed:r!==a.id})}),xynodes:e.xynodes.map(a=>{const i=o.source!==a.id&&o.target!==a.id;return a.type==="seq-parallel"?Jt.setData(a,{color:n===a.data.parallelPrefix?u_.active:u_.default,dimmed:i}):Jt.setDimmed(a,i)})}}const tet=zX(({sendBack:e})=>{const r=oC([["Escape",o=>{o.stopPropagation(),e({type:"key.esc"})},{preventDefault:!0}]]),n=oC([["ArrowLeft",o=>{o.stopPropagation(),e({type:"key.arrow.left"})},{preventDefault:!0}],["ArrowRight",o=>{o.stopPropagation(),e({type:"key.arrow.right"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r),document.body.addEventListener("keydown",n,{capture:!0}),()=>{document.body.removeEventListener("keydown",r),document.body.removeEventListener("keydown",n,{capture:!0})}}),p7="likec4:diagram:toggledFeatures",wte={read(){try{let e=sessionStorage.getItem(p7);return e?JSON.parse(e):null}catch(e){return console.error(`Error reading fromStorage ${p7}:`,e),null}},write(e){return sessionStorage.setItem(p7,JSON.stringify(GRe(e,eV))),e}},ret=ec({delays:{timeout:2e3},actions:{"trigger:OnChange":(e,r)=>{}},guards:{"same view":({context:e})=>e.parent.getSnapshot().context.view.id===e.viewId}}).createMachine({initial:"idle",context:({input:e})=>({...e}),states:{idle:{tags:"ready",on:{sync:{target:"pending"}}},paused:{tags:"pending",on:{sync:{target:"pending"}}},pending:{tags:"pending",on:{sync:{target:"pending",reenter:!0},cancel:{target:"paused"}},after:{timeout:[{guard:"same view",actions:{type:"trigger:OnChange",params:({context:e})=>({change:net(e.parent.getSnapshot().context)})},target:"synced"},{target:"stopped"}]}},synced:{tags:"ready",on:{sync:{target:"pending"}}},stopped:{entry:et({parent:null}),type:"final"}},on:{synced:{target:".synced"},stop:{target:".stopped"}}}),kte=ret;function net(e){const{view:r,xystore:n,xyflow:o}=e,{nodeLookup:a}=n.getState(),i=new Set;let s;const l=fp([...a.values()],(u,d)=>{const h=Wn(d);(!_y(d.internals.positionAbsolute,d.data)||d.initialWidth!==h.width||d.initialHeight!==h.height)&&i.add(d.id);const p=u[d.id]={isCompound:d.type!=="element"&&d.type!=="deployment",x:Math.floor(d.internals.positionAbsolute.x),y:Math.floor(d.internals.positionAbsolute.y),width:Math.ceil(h.width),height:Math.ceil(h.height)};return s=s?vw(s,p):p,u},{}),c=fp(o?.getEdges()??[],(u,{source:d,target:h,data:p})=>{let g=p.controlPoints??[];const y=i.has(d)||i.has(h);if(g.length===0&&y&&(g=SQ(p)),p.points.length===0&&g.length===0)return u;const x=u[p.id]={points:p.points};p.labelXY&&p.labelBBox&&(x.labelBBox={...p.labelBBox,...p.labelXY}),p.labelBBox&&(x.labelBBox??=p.labelBBox),To(g,1)&&(x.controlPoints=g);const w=[...p.points.map(_=>_[0]),...g.map(_=>_.x),...x.labelBBox?[x.labelBBox.x,x.labelBBox.x+x.labelBBox.width]:[]],k=[...p.points.map(_=>_[1]),...g.map(_=>_.y),...x.labelBBox?[x.labelBBox.y,x.labelBBox.y+x.labelBBox.height]:[]],C=p1({x:Math.floor(Math.min(...w)),y:Math.floor(Math.min(...k)),x2:Math.ceil(Math.max(...w)),y2:Math.ceil(Math.max(...k))});return s=s?vw(s,C):C,u},{});return s??=r.bounds,{op:"save-manual-layout",layout:{hash:r.hash,autoLayout:r.autoLayout,nodes:l,edges:c,...s}}}const oet=ec({actors:{syncManualLayoutActorLogic:kte,hotkeyActorLogic:tet,overlaysActorLogic:FJe,searchActorLogic:UJe},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enabled: FitView":({context:e})=>e.features.enableFitView,"enabled: FocusMode":({context:e})=>e.features.enableFocusMode&&(e.view._type!=="dynamic"||e.dynamicViewVariant!=="sequence"),"enabled: Readonly":({context:e})=>e.features.enableReadOnly,"enabled: RelationshipDetails":({context:e})=>e.features.enableRelationshipDetails,"enabled: Search":({context:e})=>e.features.enableSearch,"enabled: ElementDetails":({context:e})=>e.features.enableElementDetails,"enabled: DynamicViewWalkthrough":({context:e})=>e.features.enableDynamicViewWalkthrough,"not readonly":({context:e})=>!e.features.enableReadOnly,"is dynamic view":({context:e})=>e.view._type==="dynamic","is another view":({context:e,event:r})=>{if(Ut(r,["update.view","navigate.to"]),r.type==="update.view")return e.view.id!==r.view.id;if(r.type==="navigate.to")return e.view.id!==r.viewId;Ga(r.type)},"click: node has modelFqn":({event:e})=>(Ut(e,"xyflow.nodeClick"),"modelFqn"in e.node.data),"click: selected node":({event:e})=>(Ut(e,"xyflow.nodeClick"),e.node.selected===!0),"click: same node":({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),e.lastClickedNode?.id===r.node.id),"click: focused node":({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),e.focusedNode===r.node.id),"click: node has connections":({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),e.xyedges.some(n=>n.source===r.node.id||n.target===r.node.id)),"click: selected edge":({event:e})=>(Ut(e,"xyflow.edgeClick"),e.edge.selected===!0||e.edge.data.active===!0)},actions:{"trigger:NavigateTo":ui(({context:e})=>({type:"navigateTo",viewId:mt(e.lastOnNavigate,"Invalid state, lastOnNavigate is null").toView})),"assign lastClickedNode":et(({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),{lastClickedNode:WJe({context:e,event:r})})),"assign: focusedNode":et(({event:e})=>{let r;switch(e.type){case"xyflow.nodeClick":r=e.node.data.id;break;case"focus.node":r=e.nodeId;break;default:throw new Error(`Unexpected event type: ${e.type} in action 'assign: focusedNode'`)}return{focusedNode:r}}),"reset lastClickedNode":et(()=>({lastClickedNode:null})),"open source of focused or last clicked node":ln(({context:e,enqueue:r})=>{const n=e.focusedNode??e.lastClickedNode?.id;if(!n||!e.features.enableVscode)return;const o=Qp(e,n);o&&(o.deploymentRef?r.raise({type:"open.source",deployment:o.deploymentRef}):o.modelRef&&r.raise({type:"open.source",element:o.modelRef}))}),"xyflow:fitDiagram":({context:e},r)=>{const{bounds:n=e.view.bounds,duration:o=450}=r??{},{width:a,height:i,panZoom:s,transform:l}=mt(e.xystore).getState(),c=Math.max(1,l[2]),u=tu(n,a,i,hs,c,e.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),s?.setViewport(u,o>0?{duration:o}:void 0).catch(console.error)},"xyflow:fitFocusedBounds":({context:e})=>{const r=!!e.activeWalkthrough&&e.dynamicViewVariant==="sequence",{bounds:n,duration:o=450}=r?pBe({context:e}):hBe({context:e}),{width:a,height:i,panZoom:s,transform:l}=mt(e.xystore).getState(),c=Math.max(1,l[2]),u=tu(n,a,i,hs,c,e.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),s?.setViewport(u,o>0?{duration:o}:void 0)},"xyflow:setViewportCenter":({context:e},r)=>{const{x:n,y:o}=r;nt(e.xyflow,"xyflow is not initialized");const a=e.xyflow.getZoom();e.xyflow.setCenter(Math.round(n),Math.round(o),{zoom:a})},"xyflow:setViewport":({context:e},r)=>{const{viewport:n,duration:o=350}=r;e.xystore?.getState().panZoom?.setViewport(n,o>0?{duration:o}:void 0)},"xyflow:alignNodeFromToAfterNavigate":({context:e},r)=>{const n=mt(e.xyflow,"xyflow is not initialized"),o=n.getInternalNode(r.fromNode);if(!o)return;const a=n.flowToScreenPosition({x:o.internals.positionAbsolute.x,y:o.internals.positionAbsolute.y}),i=n.flowToScreenPosition(r.toPosition),s={x:Math.round(a.x-i.x),y:Math.round(a.y-i.y)};e.xystore.getState().panBy(s)},"layout.align":({context:e},r)=>{const{mode:n}=r,o=mt(e.xystore,"xystore is not initialized"),{nodeLookup:a,parentLookup:i}=o.getState(),s=[...new Set(a.values().filter(d=>d.selected).map(d=>d.id)).difference(new Set(i.keys()))];if(!To(s,2)){console.warn("At least 2 nodes must be selected to align");return}const l=lte(o,s),c=YJe(n),u=s.map(d=>({node:mt(a.get(d)),rect:mt(l.rects.get(d))}));c.computeLayout(u.map(({node:d})=>bte(d)));for(const{rect:d,node:h}of u)d.positionAbsolute={...d.positionAbsolute,...c.applyPosition(bte(h))};l.updateXYFlowNodes()},"ensure overlays actor state":ln(({enqueue:e,context:{features:r},system:n})=>{const o=r.enableElementDetails||r.enableRelationshipDetails||r.enableRelationshipBrowser,a=tc(n).overlaysActorRef;if(o&&!a){e.spawnChild("overlaysActorLogic",{id:"overlays",systemId:"overlays"});return}!o&&a&&(e.sendTo(a,{type:"close.all"}),e.stopChild("overlays"))}),"ensure search actor state":ln(({enqueue:e,context:{features:{enableSearch:r}},system:n})=>{const o=tc(n).searchActorRef;if(r&&!o){e.spawnChild("searchActorLogic",{id:"search",systemId:"search"});return}!r&&o&&(e.sendTo(o,{type:"close"}),e.stopChild("search"))}),updateFeatures:et(({event:e})=>(Ut(e,"update.features"),{features:{...e.features}})),updateInputs:et(({event:e})=>(Ut(e,"update.inputs"),{...e.inputs})),closeSearch:il(({system:e})=>tc(e).searchActorRef,{type:"close"}),closeAllOverlays:il(({system:e})=>tc(e).overlaysActorRef,{type:"close.all"}),startSyncLayout:et(({context:e,spawn:r,self:n})=>({syncLayoutActorRef:r("syncManualLayoutActorLogic",{id:"syncLayout",input:{parent:n,viewId:e.view.id}})})),stopSyncLayout:ln(({context:e,enqueue:r})=>{r.sendTo(e.syncLayoutActorRef,{type:"stop"}),r.stopChild(e.syncLayoutActorRef),r.assign({syncLayoutActorRef:null})}),onNodeMouseEnter:et(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?Jt.setHovered(n,!0):n)})),onNodeMouseLeave:et(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?Jt.setHovered(n,!1):n)})),onEdgeMouseEnter:ln(({enqueue:e,context:r,event:n})=>{Ut(n,"xyflow.edgeMouseEnter");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=Jt.setHovered(a,!0),o):a)}),e.emit({type:"edgeMouseEnter",edge:o,event:n.event})}),onEdgeMouseLeave:ln(({enqueue:e,context:r,event:n})=>{Ut(n,"xyflow.edgeMouseLeave");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=Jt.setHovered(a,!1),o):a)}),e.emit({type:"edgeMouseLeave",edge:o,event:n.event})}),"focus on nodes and edges":et(XJe),"notations.highlight":et(({context:e},r)=>{const n=r.kind?[r.kind]:r.notation.kinds;return{xynodes:e.xynodes.map(o=>{const a=Qp(e,o.id);return a&&a.notation===r.notation.title&&a.shape===r.notation.shape&&a.color===r.notation.color&&n.includes(a.kind)?Jt.setDimmed(o,!1):Jt.setDimmed(o,"immediate")}),xyedges:e.xyedges.map(Jt.setDimmed("immediate"))}}),"tag.highlight":et(({context:e,event:r})=>(Ut(r,"tag.highlight"),{xynodes:e.xynodes.map(n=>n.data.tags?.includes(r.tag)?Jt.setDimmed(n,!1):Jt.setDimmed(n,!0))})),"undim everything":et(({context:e})=>({xynodes:e.xynodes.map(Jt.setDimmed(!1)),xyedges:e.xyedges.map(Jt.setData({dimmed:!1,active:!1}))})),"update active walkthrough":et(eet),"open element details":il(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r},n)=>{let o=null,a,i;if(n)i=n.fqn,a=n.fromNode??e.view.nodes.find(l=>l.modelRef===n.fqn)?.id;else if(r.type==="xyflow.nodeClick")nt("modelFqn"in r.node.data&&!!r.node.data.modelFqn,"No modelFqn in event node data"),i=r.node.data.modelFqn,a=r.node.data.id;else if(r.type==="open.elementDetails")i=r.fqn,a=r.fromNode;else{nt(e.lastClickedNode,"No last clicked node"),a=mt(e.lastClickedNode).id;const l=mt(e.xynodes.find(c=>c.id===a));nt("modelFqn"in l.data&&!!l.data.modelFqn,"No modelFqn in last clicked node"),i=l.data.modelFqn}const s=a?e.xystore.getState().nodeLookup.get(a):null;if(a&&s){const l=Bd(s),c=e.xyflow.getZoom(),u={...e.xyflow.flowToScreenPosition(l),width:l.width*c,height:l.height*c};o={node:a,clientRect:u}}return{type:"open.elementDetails",subject:i,currentView:e.view,...o&&{initiatedFrom:o}}}),"emit: walkthroughStarted":ui(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return nt(r,"Invalid walkthrough state"),{type:"walkthroughStarted",edge:r}}),"emit: walkthroughStep":ui(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return nt(r,"Invalid walkthrough state"),{type:"walkthroughStep",edge:r}}),"emit: walkthroughStopped":ui(()=>({type:"walkthroughStopped"})),"emit: edgeEditingStarted":ui(({context:e,event:r})=>(Ut(r,"xyflow.edgeEditingStarted"),{type:"edgeEditingStarted",edge:mt(e.xyedges.find(n=>n.id===r.edge.id),`Edge ${r.edge.id} not found`)})),"emit: paneClick":ui(()=>({type:"paneClick"})),"emit: nodeClick":ui(({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),{type:"nodeClick",node:mt(Qp(e,r.node.id),`Node ${r.node.id} not found in diagram`),xynode:r.node})),"emit: edgeClick":ui(({context:e,event:r})=>(Ut(r,"xyflow.edgeClick"),{type:"edgeClick",edge:mt(o8(e,r.edge.id),`Edge ${r.edge.id} not found in diagram`),xyedge:r.edge})),"emit: initialized":ui(({context:e})=>(nt(e.xyflow,"XYFlow instance not found"),{type:"initialized",instance:e.xyflow})),"emit: openSource":ui((e,r)=>({type:"openSource",params:r})),"assign: dynamicViewVariant":et(({event:e})=>(Ut(e,"switch.dynamicViewVariant"),{dynamicViewVariant:e.variant}))}}).createMachine({initial:"initializing",context:({input:e})=>({...e,xyedges:[],xynodes:[],features:{...HJ},toggledFeatures:wte.read()??{enableReadOnly:!0},initialized:{xydata:!1,xyflow:!1},viewportChangedManually:!1,lastOnNavigate:null,lastClickedNode:null,focusedNode:null,activeElementDetails:null,viewportBeforeFocus:null,navigationHistory:{currentIndex:0,history:[]},viewport:{x:0,y:0,zoom:1},xyflow:null,syncLayoutActorRef:null,dynamicViewVariant:e.dynamicViewVariant??(e.view._type==="dynamic"?e.view.variant:"diagram")??"diagram",activeWalkthrough:null}),states:{initializing:{on:{"xyflow.init":{actions:et(({context:e,event:r})=>({initialized:{...e.initialized,xyflow:!0},xyflow:r.instance})),target:"isReady"},"update.view":{actions:et(({context:e,event:r})=>({initialized:{...e.initialized,xydata:!0},view:r.view,xynodes:r.xynodes,xyedges:r.xyedges})),target:"isReady"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},et(({context:e})=>({navigationHistory:{currentIndex:0,history:[{viewId:e.view.id,fromNode:null,viewport:{...e.xyflow.getViewport()}}]}})),"startSyncLayout","emit: initialized"],target:"ready"},{target:"initializing"}]},ready:{initial:"idle",on:{"navigate.to":{guard:"is another view",actions:et({lastOnNavigate:({context:e,event:r})=>({fromView:e.view.id,toView:r.viewId,fromNode:r.fromNode??null})}),target:"#navigating"},"navigate.back":{guard:({context:e})=>e.navigationHistory.currentIndex>0,actions:et(GJe),target:"#navigating"},"navigate.forward":{guard:({context:e})=>e.navigationHistory.currentIndex<e.navigationHistory.history.length-1,actions:et(KJe),target:"#navigating"},"layout.align":{guard:"not readonly",actions:[{type:"layout.align",params:({event:e})=>({mode:e.mode})},sn({type:"saveManualLayout.schedule"})]},"layout.resetEdgeControlPoints":{guard:"not readonly",actions:[et(JJe),sn({type:"saveManualLayout.schedule"})]},"xyflow.resized":{guard:({context:e})=>e.features.enableFitView&&!e.viewportChangedManually,actions:[oa("fitDiagram"),sn({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"open.elementDetails":{guard:"enabled: ElementDetails",actions:"open element details"},"open.relationshipsBrowser":{actions:il(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipsBrowser",subject:r.fqn,viewId:e.view.id,scope:"view",closeable:!0,enableChangeScope:!0,enableSelectSubject:!0}))},"open.relationshipDetails":{actions:il(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipDetails",viewId:e.view.id,...r.params}))},"open.source":{actions:{type:"emit: openSource",params:Ca("event")}},"walkthrough.start":{guard:"is dynamic view",target:".walkthrough"},"toggle.feature":{actions:et({toggledFeatures:({context:e,event:r})=>wte.write({...e.toggledFeatures,[`enable${r.feature}`]:r.forceValue??!(e.toggledFeatures[`enable${r.feature}`]??e.features[`enable${r.feature}`])})})},"xyflow.nodeMouseEnter":{actions:{type:"onNodeMouseEnter",params:Ca("event")}},"xyflow.nodeMouseLeave":{actions:{type:"onNodeMouseLeave",params:Ca("event")}},"xyflow.edgeMouseEnter":{actions:"onEdgeMouseEnter"},"xyflow.edgeMouseLeave":{actions:"onEdgeMouseLeave"},"notations.highlight":{actions:{type:"notations.highlight",params:Ca("event")}},"notations.unhighlight":{actions:"undim everything"},"tag.highlight":{actions:"tag.highlight"},"tag.unhighlight":{actions:"undim everything"},"saveManualLayout.*":{guard:"not readonly",actions:il(e=>e.context.syncLayoutActorRef,({event:e})=>{if(e.type==="saveManualLayout.schedule")return{type:"sync"};if(e.type==="saveManualLayout.cancel")return{type:"cancel"};Ga(e)})},"open.search":{guard:"enabled: Search",actions:il(({system:e})=>tc(e).searchActorRef,({event:e})=>({type:"open",search:e.search}))}},exit:[oa("fitDiagram")],states:{idle:{id:"idle",on:{"xyflow.nodeClick":[{guard:Z3(["enabled: FocusMode","click: node has connections",_X(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","assign: focusedNode","emit: nodeClick"],target:"focused"},{guard:Z3(["enabled: ElementDetails","click: node has modelFqn",_X(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","open source of focused or last clicked node","open element details","emit: nodeClick"]},{actions:["assign lastClickedNode","open source of focused or last clicked node","emit: nodeClick"]}],"xyflow.paneClick":{actions:["reset lastClickedNode","emit: paneClick"]},"xyflow.paneDblClick":{actions:["reset lastClickedNode","xyflow:fitDiagram",{type:"emit: openSource",params:({context:e})=>({view:e.view.id})}]},"focus.node":{guard:"enabled: FocusMode",actions:"assign: focusedNode",target:"focused"},"xyflow.edgeClick":{guard:Z3(["is dynamic view","enabled: DynamicViewWalkthrough","click: selected edge"]),actions:[sn(({event:e})=>({type:"walkthrough.start",stepId:e.edge.id})),"emit: edgeClick"]}}},focused:{entry:["focus on nodes and edges",et(e=>({viewportBeforeFocus:{...e.context.viewport}})),"open source of focused or last clicked node",qp("hotkeyActorLogic",{id:"hotkey"}),"xyflow:fitFocusedBounds"],exit:ln(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e({type:"xyflow:setViewport",params:{viewport:r.viewportBeforeFocus}}):e("xyflow:fitDiagram"),e("undim everything"),e.assign({viewportBeforeFocus:null,focusedNode:null})}),on:{"xyflow.nodeClick":[{guard:Z3(["click: focused node","click: node has modelFqn"]),actions:["open element details","emit: nodeClick"]},{guard:"click: focused node",actions:"emit: nodeClick",target:"#idle"},{actions:["assign lastClickedNode",sn(({event:e})=>({type:"focus.node",nodeId:e.node.id})),"emit: nodeClick"]}],"focus.node":{actions:["assign: focusedNode","focus on nodes and edges","open source of focused or last clicked node","xyflow:fitFocusedBounds"]},"key.esc":{target:"idle"},"xyflow.paneClick":{actions:["reset lastClickedNode","emit: paneClick"],target:"idle"},"notations.unhighlight":{actions:"focus on nodes and edges"},"tag.unhighlight":{actions:"focus on nodes and edges"}}},walkthrough:{entry:[qp("hotkeyActorLogic",{id:"hotkey"}),et({viewportBeforeFocus:({context:e})=>e.viewport,activeWalkthrough:({context:e,event:r})=>{Ut(r,"walkthrough.start");const n=r.stepId??hp(e.xyedges).id;return{stepId:n,parallelPrefix:PS(n)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStarted"],exit:ln(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e({type:"xyflow:setViewport",params:{viewport:r.viewportBeforeFocus}}):e("xyflow:fitDiagram"),r.dynamicViewVariant==="sequence"&&r.activeWalkthrough?.parallelPrefix&&e.assign({xynodes:r.xynodes.map(n=>n.type==="seq-parallel"?Jt.setData(n,{color:u_.default}):n)}),e("undim everything"),e.assign({activeWalkthrough:null,viewportBeforeFocus:null}),e("emit: walkthroughStopped")}),on:{"key.esc":{target:"idle"},"key.arrow.left":{actions:sn({type:"walkthrough.step",direction:"previous"})},"key.arrow.right":{actions:sn({type:"walkthrough.step",direction:"next"})},"walkthrough.step":{actions:[et(({context:e,event:r})=>{const{stepId:n}=e.activeWalkthrough,o=e.xyedges.findIndex(s=>s.id===n),a=Ki(r.direction==="next"?o+1:o-1,{min:0,max:e.xyedges.length-1});if(a===o)return{};const i=e.xyedges[a].id;return{activeWalkthrough:{stepId:i,parallelPrefix:PS(i)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStep"]},"xyflow.edgeClick":{actions:[et(({event:e,context:r})=>!v0(e.edge.id)||e.edge.id===r.activeWalkthrough?.stepId?{}:{activeWalkthrough:{stepId:e.edge.id,parallelPrefix:PS(e.edge.id)}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: edgeClick","emit: walkthroughStep"]},"notations.unhighlight":{actions:"update active walkthrough"},"tag.unhighlight":{actions:"update active walkthrough"},"walkthrough.end":{target:"idle"},"xyflow.paneDblClick":{target:"idle"},"update.view":{guard:"is another view",actions:sn(({event:e})=>e,{delay:50}),target:"idle"}}}}},navigating:{id:"navigating",entry:["closeAllOverlays","closeSearch","stopSyncLayout","trigger:NavigateTo"],on:{"update.view":{actions:ln(({enqueue:e,context:r,event:n})=>{const{fromNode:o,toNode:a}=Ete(r,n);e(o&&a?{type:"xyflow:alignNodeFromToAfterNavigate",params:{fromNode:o.id,toPosition:{x:a.data.x,y:a.data.y}}}:{type:"xyflow:setViewportCenter",params:Qc.center(n.view.bounds)}),e.assign(xte),e.assign({...vte({context:r,event:n}),lastOnNavigate:null}),e("startSyncLayout"),e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:25})}),target:"#idle"}}}},on:{"xyflow.paneClick":{actions:"emit: paneClick"},"xyflow.nodeClick":{actions:"emit: nodeClick"},"xyflow.edgeClick":{actions:"emit: edgeClick"},"xyflow.applyNodeChanges":{actions:et({xynodes:({context:e,event:r})=>Aw(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:et({xyedges:({context:e,event:r})=>Nw(r.changes,e.xyedges)})},"xyflow.viewportMoved":{actions:et({viewportChangedManually:(({event:e})=>e.manually),viewport:(({event:e})=>e.viewport)})},"xyflow.edgeEditingStarted":{actions:"emit: edgeEditingStarted"},fitDiagram:{guard:"enabled: FitView",actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"update.nodeData":{actions:et(ZJe)},"update.edgeData":{actions:et(QJe)},"update.view":{actions:[et(xte),ln(({enqueue:e,event:r,check:n,context:o})=>{const a=n("is another view");if(a){e("closeAllOverlays"),e("closeSearch"),e("stopSyncLayout"),e.assign({focusedNode:null});const{fromNode:i,toNode:s}=Ete(o,r);i&&s?(e({type:"xyflow:alignNodeFromToAfterNavigate",params:{fromNode:i.id,toPosition:{x:s.data.x,y:s.data.y}}}),e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:80})):(e({type:"xyflow:setViewportCenter",params:Qc.center(r.view.bounds)}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:25}))}else{const i=r.view;i._type==="dynamic"&&o.view._type==="dynamic"&&i.variant!==o.view.variant&&e({type:"xyflow:setViewportCenter",params:Qc.center(i.bounds)})}e.assign({...vte({context:o,event:r}),lastOnNavigate:null}),a?e("startSyncLayout"):(e.sendTo(i=>i.context.syncLayoutActorRef,{type:"synced"}),o.viewportChangedManually||e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:50}))})]},"update.inputs":{actions:"updateInputs"},"update.features":{actions:["updateFeatures","ensure overlays actor state","ensure search actor state"]},"switch.dynamicViewVariant":{actions:"assign: dynamicViewVariant"}},exit:["stopSyncLayout",oa("fitDiagram"),yu("hotkey"),yu("overlays"),yu("search"),et({xyflow:null,xystore:null,xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},syncLayoutActorRef:null})]});function _te(e){switch(e.type){case"element":case"compound-element":case"seq-actor":return e.data.modelFqn;case"deployment":case"compound-deployment":return e.data.modelFqn??e.data.deploymentFqn;case"seq-parallel":case"view-group":return null;default:Ga(e)}}function Ete(e,r){const n=e.lastOnNavigate?.fromNode,o=n&&e.xynodes.find(s=>s.id===n),a=o&&_te(o),i=a&&r.xynodes.find(s=>_te(s)===a);return{fromNode:o,toNode:i}}const aet=oet,iet=e=>e.context.dynamicViewVariant;function set({view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,where:i,children:s,dynamicViewVariant:l}){const{handlersRef:c}=sc(),u=pr(),d=E.useRef(null);d.current||(d.current=aet.provide({actors:{syncManualLayoutActorLogic:kte.provide({actions:{"trigger:OnChange":((x,w)=>{c.current.onChange?.(w)})}})}}));const h=n8(d.current,{id:"diagram",systemId:"diagram",input:{xystore:u,view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,dynamicViewVariant:l}}),p=wr();BB(()=>{h.send({type:"update.features",features:p})},[p],Xn),E.useEffect(()=>{h.send({type:"update.inputs",inputs:{zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a}})},[r,n,o,a]);const g=wn(h,iet),y=E.useMemo(()=>$Je({view:e,where:i,nodesSelectable:a,dynamicViewVariant:g}),[e,i,a,g]);return HB(()=>{h.send({type:"update.view",...y})},[h,y]),$k(()=>{l&&h.send({type:"switch.dynamicViewVariant",variant:l})},[l]),b.jsxs(gBe,{value:h,children:[b.jsx(lX,{children:b.jsx(uet,{actorRef:h,children:s})}),b.jsx(det,{actorRef:h})]})}const cet=e=>e.context.features.enableReadOnly||e.context.activeWalkthrough?{viewId:e.context.view.id,toggledFeatures:{...e.context.toggledFeatures,enableReadOnly:!0}}:{viewId:e.context.view.id,toggledFeatures:e.context.toggledFeatures};function uet({children:e,actorRef:r}){const{viewId:n,toggledFeatures:o}=wn(r,cet,ut),a=Ho().findView(n);return b.jsx(OT.Provider,{value:a,children:b.jsx(fh,{overrides:o,children:e})})}function det({actorRef:e}){const r=Wt(),{onNavigateTo:n,onOpenSource:o,handlersRef:a}=sc();is("openSource",({params:s})=>o?.(s)),is("navigateTo",({viewId:s})=>n?.(s));const i=E.useRef(!1);return E.useEffect(()=>{if(i.current)return;let s=e.on("initialized",({instance:l})=>{try{a.current.onInitialized?.({diagram:r,xyflow:l})}catch(c){console.error(c)}i.current=!0,s?.unsubscribe(),s=null});return()=>{s?.unsubscribe()}},[e,r]),null}const d_={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const r=e/255;return e>.03928?Math.pow((r+.055)/1.055,2.4):r/12.92},hue2rgb:(e,r,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:r,l:n},o)=>{if(!r)return n*2.55;e/=360,r/=100,n/=100;const a=n<.5?n*(1+r):n+r-n*r,i=2*n-a;switch(o){case"r":return d_.hue2rgb(i,a,e+1/3)*255;case"g":return d_.hue2rgb(i,a,e)*255;case"b":return d_.hue2rgb(i,a,e-1/3)*255}},rgb2hsl:({r:e,g:r,b:n},o)=>{e/=255,r/=255,n/=255;const a=Math.max(e,r,n),i=Math.min(e,r,n),s=(a+i)/2;if(o==="l")return s*100;if(a===i)return 0;const l=a-i,c=s>.5?l/(2-a-i):l/(a+i);if(o==="s")return c*100;switch(a){case e:return((r-n)/l+(r<n?6:0))*60;case r:return((n-e)/l+2)*60;case n:return((e-r)/l+4)*60;default:return-1}}},het={clamp:(e,r,n)=>r>n?Math.min(r,Math.max(n,e)):Math.min(n,Math.max(r,e)),round:e=>Math.round(e*1e10)/1e10},fet={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},Nt={channel:d_,lang:het,unit:fet},Tu={};for(let e=0;e<=255;e++)Tu[e]=Nt.unit.dec2hex(e);const Po={ALL:0,RGB:1,HSL:2};class pet{constructor(){this.type=Po.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Po.ALL}is(r){return this.type===r}}class met{constructor(r,n){this.color=n,this.changed=!1,this.data=r,this.type=new pet}set(r,n){return this.color=n,this.changed=!1,this.data=r,this.type.type=Po.ALL,this}_ensureHSL(){const r=this.data,{h:n,s:o,l:a}=r;n===void 0&&(r.h=Nt.channel.rgb2hsl(r,"h")),o===void 0&&(r.s=Nt.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=Nt.channel.rgb2hsl(r,"l"))}_ensureRGB(){const r=this.data,{r:n,g:o,b:a}=r;n===void 0&&(r.r=Nt.channel.hsl2rgb(r,"r")),o===void 0&&(r.g=Nt.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=Nt.channel.hsl2rgb(r,"b"))}get r(){const r=this.data,n=r.r;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"r"))}get g(){const r=this.data,n=r.g;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"g"))}get b(){const r=this.data,n=r.b;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"b"))}get h(){const r=this.data,n=r.h;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"h"))}get s(){const r=this.data,n=r.s;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"s"))}get l(){const r=this.data,n=r.l;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set(Po.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Po.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Po.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Po.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Po.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Po.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}const h_=new met({r:0,g:0,b:0,a:0},"transparent"),Cm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const r=e.match(Cm.re);if(!r)return;const n=r[1],o=parseInt(n,16),a=n.length,i=a%4===0,s=a>4,l=s?1:17,c=s?8:4,u=i?0:-1,d=s?255:15;return h_.set({r:(o>>c*(u+3)&d)*l,g:(o>>c*(u+2)&d)*l,b:(o>>c*(u+1)&d)*l,a:i?(o&d)*l/255:1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`#${Tu[Math.round(r)]}${Tu[Math.round(n)]}${Tu[Math.round(o)]}${Tu[Math.round(a*255)]}`:`#${Tu[Math.round(r)]}${Tu[Math.round(n)]}${Tu[Math.round(o)]}`}},xh={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const r=e.match(xh.hueRe);if(r){const[,n,o]=r;switch(o){case"grad":return Nt.channel.clamp.h(parseFloat(n)*.9);case"rad":return Nt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Nt.channel.clamp.h(parseFloat(n)*360)}}return Nt.channel.clamp.h(parseFloat(e))},parse:e=>{const r=e.charCodeAt(0);if(r!==104&&r!==72)return;const n=e.match(xh.re);if(!n)return;const[,o,a,i,s,l]=n;return h_.set({h:xh._hue2deg(o),s:Nt.channel.clamp.s(parseFloat(a)),l:Nt.channel.clamp.l(parseFloat(i)),a:s?Nt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:r,s:n,l:o,a}=e;return a<1?`hsla(${Nt.lang.round(r)}, ${Nt.lang.round(n)}%, ${Nt.lang.round(o)}%, ${a})`:`hsl(${Nt.lang.round(r)}, ${Nt.lang.round(n)}%, ${Nt.lang.round(o)}%)`}},zy={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const r=zy.colors[e];if(r)return Cm.parse(r)},stringify:e=>{const r=Cm.stringify(e);for(const n in zy.colors)if(zy.colors[n]===r)return n}},jy={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const r=e.charCodeAt(0);if(r!==114&&r!==82)return;const n=e.match(jy.re);if(!n)return;const[,o,a,i,s,l,c,u,d]=n;return h_.set({r:Nt.channel.clamp.r(a?parseFloat(o)*2.55:parseFloat(o)),g:Nt.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:Nt.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:u?Nt.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`rgba(${Nt.lang.round(r)}, ${Nt.lang.round(n)}, ${Nt.lang.round(o)}, ${Nt.lang.round(a)})`:`rgb(${Nt.lang.round(r)}, ${Nt.lang.round(n)}, ${Nt.lang.round(o)})`}},ys={format:{keyword:zy,hex:Cm,rgb:jy,rgba:jy,hsl:xh,hsla:xh},parse:e=>{if(typeof e!="string")return e;const r=Cm.parse(e)||jy.parse(e)||xh.parse(e)||zy.parse(e);if(r)return r;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Po.HSL)||e.data.r===void 0?xh.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?jy.stringify(e):Cm.stringify(e)},Ste=(e,r)=>{const n=ys.parse(e);for(const o in r)n[o]=Nt.channel.clamp[o](r[o]);return ys.stringify(n)},get=(e,r,n=0,o=1)=>{if(typeof e!="number")return Ste(e,{a:r});const a=h_.set({r:Nt.channel.clamp.r(e),g:Nt.channel.clamp.g(r),b:Nt.channel.clamp.b(n),a:Nt.channel.clamp.a(o)});return ys.stringify(a)},Cte=e=>ys.format.hex.stringify(ys.parse(e)),Tte=e=>ys.format.rgba.stringify(ys.parse(e)),yet=(e,r)=>{const n=ys.parse(e),o={};for(const a in r)r[a]&&(o[a]=n[a]+r[a]);return Ste(e,o)},Ate=(e,r,n=50)=>{const{r:o,g:a,b:i,a:s}=ys.parse(e),{r:l,g:c,b:u,a:d}=ys.parse(r),h=n/100,p=h*2-1,g=s-d,y=((p*g===-1?p:(p+g)/(1+p*g))+1)/2,x=1-y,w=o*y+l*x,k=a*y+c*x,C=i*y+u*x,_=s*h+d*(1-h);return get(w,k,C,_)},Nte=(e,r)=>{const n=ys.parse(e),o={},a=(i,s,l)=>s>0?(l-i)*s/100:i*s/100;for(const i in r)o[i]=a(n[i],r[i],Nt.channel.max[i]);return yet(e,o)},Rte=e=>`[data-mantine-color-scheme="${e}"]`,$te=Rte("dark"),bet=Rte("light"),vet=5,xet=(e,r,n,o)=>{const a=l=>Cte(Nte(l,{l:-22-5*o,s:-10-6*o})),i=l=>Cte(Nte(l,{l:-20-3*o,s:-3-6*o})),s=`:where(${e} [data-likec4-color="${r}"][data-compound-depth="${o}"])`;return`
${s} {
  --likec4-palette-fill: ${i(n.elements.fill)};
  --likec4-palette-stroke: ${i(n.elements.stroke)};
}
${$te} ${s} {
  --likec4-palette-fill: ${a(n.elements.fill)};
  --likec4-palette-stroke: ${a(n.elements.stroke)};
}
  `.trim()};function wet(e,r,n){const{elements:o,relationships:a}=n,i=`:where(${e} [data-likec4-color=${r}])`;return[`
${i} {
  --likec4-palette-fill: ${o.fill};
  --likec4-palette-stroke: ${o.stroke};
  --likec4-palette-hiContrast: ${o.hiContrast};
  --likec4-palette-loContrast: ${o.loContrast};
  --likec4-palette-relation-stroke: ${a.line};
  --likec4-palette-relation-label: ${a.label};
  --likec4-palette-relation-label-bg: ${a.labelBg};
}
${bet} ${i} {
  --likec4-palette-relation-stroke-selected: ${Tte(Ate(a.line,"black",85))};
}
${$te} ${i} {
  --likec4-palette-relation-stroke-selected: ${Tte(Ate(a.line,"white",70))};
}

  `.trim(),...ZRe(1,vet+1).map(s=>xet(e,r,n,s))].join(`
`)}function ket(e,r){return yn(r.colors,B6(),Ao(([n,o])=>wet(e,n,o)),oV(`
`))}const _et=E.memo(({id:e})=>{const r=`#${e}`,n=Yd()?.(),{theme:o}=nte(),a=ket(r,o);return b.jsx("style",{type:"text/css","data-likec4-colors":e,dangerouslySetInnerHTML:{__html:a},nonce:n})});function Pte(e,r){if(e._type==="dynamic")try{if(r??=e.variant,r==="sequence")return e.sequenceLayout.bounds}catch{}return e.bounds}function Mte({children:e}){const r=E.useContext(Zw);return E.useEffect(()=>{r||console.warn("LikeC4Diagram must be a child of MantineProvider")},[]),r?b.jsx(b.Fragment,{children:e}):b.jsx(gC,{defaultColorScheme:"auto",children:e})}Mte.displayName="EnsureMantine";const m7=({reducedMotion:e="user",children:r})=>{const n=Yd()?.();return b.jsx(wUe,{features:yqe,strict:!0,children:b.jsx(EUe,{reducedMotion:e,...n&&{nonce:n},children:r})})};function Ote({onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:s,onNodeClick:l,onNodeContextMenu:c,onOpenSource:u,onBurgerMenuClick:d,onInitialized:h,view:p,className:g,readonly:y=!0,controls:x=!y,fitView:w=!0,fitViewPadding:k=x?Mk.withControls:Mk.default,pannable:C=!0,zoomable:_=!0,background:T="dots",enableElementTags:A=!1,enableFocusMode:N=!1,enableElementDetails:$=!1,enableRelationshipDetails:R=!1,enableRelationshipBrowser:M=!1,nodesDraggable:O=!y,nodesSelectable:B=!y||N||!!s||!!l,showNotations:I=!0,showNavigationButtons:Y=!!s,enableDynamicViewWalkthrough:D=!1,dynamicViewVariant:V,enableSearch:L=!1,initialWidth:U,initialHeight:q,experimentalEdgeEditing:X=!y,reduceGraphics:F="auto",renderIcon:J,where:Q,reactFlowProps:z,renderNodes:W,children:G}){const Z=ZW(),oe=E.useRef(null),ee=Pte(p,V),re=Eet(k);oe.current==null&&(oe.current={defaultEdges:[],defaultNodes:[],initialWidth:U??ee.width,initialHeight:q??ee.height,initialFitViewOptions:{maxZoom:H9,minZoom:hs,padding:re},initialMaxZoom:H9,initialMinZoom:hs});const he=F==="auto"?C&&(ee.width??1)*(ee.height??1)>6e6&&p.nodes.some(Ce=>Ce.children?.length>0):F;return b.jsx(Mte,{children:b.jsx(m7,{...he&&{reducedMotion:"always"},children:b.jsx(u6e,{value:J??null,children:b.jsx(fh,{features:{enableFitView:w,enableReadOnly:y,enableFocusMode:N,enableNavigateTo:!!s,enableElementDetails:$,enableRelationshipDetails:R,enableRelationshipBrowser:M,enableSearch:L,enableNavigationButtons:Y&&!!s,enableDynamicViewWalkthrough:p._type==="dynamic"&&D,enableEdgeEditing:X,enableNotations:I,enableVscode:!!u,enableControls:x,enableElementTags:A},children:b.jsxs(gKe,{handlers:{onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:s,onNodeClick:l,onNodeContextMenu:c,onOpenSource:u,onBurgerMenuClick:d,onInitialized:h},children:[b.jsx(_et,{id:Z}),b.jsx(Mze,{rootSelector:`#${Z}`,children:b.jsx(Cze,{id:Z,className:g,reduceGraphics:he,children:b.jsx(Mw,{fitView:w,...oe.current,children:b.jsxs(set,{view:p,zoomable:_,pannable:C,fitViewPadding:re,nodesSelectable:B,where:Q??null,dynamicViewVariant:V,children:[b.jsx(EJe,{nodesDraggable:O,nodesSelectable:B,background:T,reactFlowProps:z,renderNodes:W,children:G}),b.jsx(Yee,{})]})})})})]})})})})})}const Dte=e=>typeof e=="number"?`${e}px`:e;function Eet(e){return VB(()=>U6(e)?URe(e,Dte):Dte(e),[e],ut)}function Cet({children:e,likec4model:r}){return b.jsx(W1.Provider,{value:r,children:e})}const g7=({children:e})=>b.jsx("div",{style:{margin:"1rem 0"},children:b.jsx("div",{style:{margin:"0 auto",display:"inline-block",padding:"2rem",background:"rgba(250,82,82,.15)",color:"#ffa8a8"},children:e})}),Tet=({viewId:e})=>b.jsxs(g7,{children:["View ",b.jsx("code",{children:e})," not found"]}),Aet=e=>{throw new Error("LikeC4View is not available SSR")};var Lte={exports:{}},y7,Ite;function Net(){if(Ite)return y7;Ite=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return y7=e,y7}var b7,zte;function Ret(){if(zte)return b7;zte=1;var e=Net();function r(){}function n(){}return n.resetWarningCache=r,b7=function(){function o(s,l,c,u,d,h){if(h!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}o.isRequired=o;function a(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return i.PropTypes=i,i},b7}var jte;function $et(){return jte||(jte=1,Lte.exports=Ret()()),Lte.exports}var Pet=$et();const bs=$6(Pet);var Met=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bte(e,r){return e(r={exports:{}},r.exports),r.exports}var Oet=Bte((function(e){(function(r){var n=function(w,k,C){if(!c(k)||d(k)||h(k)||p(k)||l(k))return k;var _,T=0,A=0;if(u(k))for(_=[],A=k.length;T<A;T++)_.push(n(w,k[T],C));else for(var N in _={},k)Object.prototype.hasOwnProperty.call(k,N)&&(_[w(N,C)]=n(w,k[N],C));return _},o=function(w){return g(w)?w:(w=w.replace(/[\-_\s]+(.)?/g,(function(k,C){return C?C.toUpperCase():""}))).substr(0,1).toLowerCase()+w.substr(1)},a=function(w){var k=o(w);return k.substr(0,1).toUpperCase()+k.substr(1)},i=function(w,k){return(function(C,_){var T=(_=_||{}).separator||"_",A=_.split||/(?=[A-Z])/;return C.split(A).join(T)})(w,k).toLowerCase()},s=Object.prototype.toString,l=function(w){return typeof w=="function"},c=function(w){return w===Object(w)},u=function(w){return s.call(w)=="[object Array]"},d=function(w){return s.call(w)=="[object Date]"},h=function(w){return s.call(w)=="[object RegExp]"},p=function(w){return s.call(w)=="[object Boolean]"},g=function(w){return(w-=0)==w},y=function(w,k){var C=k&&"process"in k?k.process:k;return typeof C!="function"?w:function(_,T){return C(_,w,T)}},x={camelize:o,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(w,k){return n(y(o,k),w)},decamelizeKeys:function(w,k){return n(y(i,k),w,k)},pascalizeKeys:function(w,k){return n(y(a,k),w)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=x:r.humps=x})(Met)})).decamelize,Det=function(e){if(Array.isArray(e))return e},Let=function(e,r){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done)&&(n.push(s.value),!r||n.length!==r);o=!0);}catch(c){a=!0,i=c}finally{try{o||l.return==null||l.return()}finally{if(a)throw i}}return n}},Fte=function(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=e[n];return o},Iet=function(e,r){if(e){if(typeof e=="string")return Fte(e,r);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)?Fte(e,r):void 0}},zet=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},jet=function(e,r){return Det(e)||Let(e,r)||Iet(e,r)||zet()},Hte=Bte((function(e){function r(){return e.exports=r=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])}return n},r.apply(this,arguments)}e.exports=r})),Bet=function(e,r){if(e==null)return{};var n,o,a={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],r.indexOf(n)>=0||(a[n]=e[n]);return a},Ute=function(e,r){if(e==null)return{};var n,o,a=Bet(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},Fet=E.createContext(null);function Vte(e){var r=e.children,n=r===void 0?"":r,o=Ute(e,["children"]);return typeof n!="string"&&(n=Aet()),Gr.createElement("template",Hte({},o,{dangerouslySetInnerHTML:{__html:n}}))}function qte(e){var r=e.root,n=e.children;return ji.createPortal(n===void 0?null:n,r)}function Het(e){var r=E.forwardRef((function(n,o){var a,i,s=n.mode,l=s===void 0?"open":s,c=n.delegatesFocus,u=c!==void 0&&c,d=n.styleSheets,h=d===void 0?[]:d,p=n.ssr,g=p!==void 0&&p,y=n.children,x=Ute(n,["mode","delegatesFocus","styleSheets","ssr","children"]),w=(i=E.useRef((a=o)&&a.current),E.useEffect((function(){a&&(a.current=i.current)}),[a]),i),k=E.useState(null),C=jet(k,2),_=C[0],T=C[1],A="node_".concat(l).concat(u);return E.useLayoutEffect((function(){if(w.current)try{if(typeof o=="function"&&o(w.current),g){var N=w.current.shadowRoot;return void T(N)}var $=w.current.attachShadow({mode:l,delegatesFocus:u});h.length>0&&($.adoptedStyleSheets=h),T($)}catch(R){(function(M){var O=M.error,B=M.styleSheets,I=M.root;switch(O.name){case"NotSupportedError":B.length>0&&(I.adoptedStyleSheets=B);break;default:throw O}})({error:R,styleSheets:h,root:_})}}),[o,w,h]),Gr.createElement(Gr.Fragment,null,Gr.createElement(e.tag,Hte({key:A,ref:w},x),(_||g)&&Gr.createElement(Fet.Provider,{value:_},g?Gr.createElement(Vte,{shadowroot:l,shadowrootmode:l},e.render({root:_,ssr:g,children:y})):Gr.createElement(qte,{root:_},e.render({root:_,ssr:g,children:y})))))}));return r.propTypes={mode:bs.oneOf(["open","closed"]),delegatesFocus:bs.bool,styleSheets:bs.arrayOf(bs.instanceOf(globalThis.CSSStyleSheet)),ssr:bs.bool,children:bs.node},r}Vte.propTypes={children:bs.oneOfType([bs.string,bs.node])},qte.propTypes={root:bs.object.isRequired,children:bs.node};var v7=new Map;function Uet(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(o){return o.children};return new Proxy(e,{get:function(o,a){var i=Oet(a,{separator:"-"}),s="".concat(r,"-").concat(i);return v7.has(s)||v7.set(s,Het({tag:i,render:n})),v7.get(s)}})}var Vet=Uet();const qet='@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}',Yte=`@layer reset,base,mantine,xyflow,tokens,recipes,utilities;@layer mantine{:root{color-scheme:var(--mantine-color-scheme)}*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width: 31.25em){body{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion: reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-heading-text-wrap: wrap;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-disabled: var(--mantine-color-dark-6);--mantine-color-disabled-color: var(--mantine-color-dark-3);--mantine-color-disabled-border: var(--mantine-color-dark-4);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-9);--mantine-color-dark-light: rgba(46, 46, 46, .15);--mantine-color-dark-light-hover: rgba(46, 46, 46, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(66, 66, 66, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: #000;--mantine-color-body: #fff;--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-color-blue-6);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-black);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-disabled: var(--mantine-color-gray-2);--mantine-color-disabled-color: var(--mantine-color-gray-5);--mantine-color-disabled-border: var(--mantine-color-gray-3);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(46, 46, 46, .1);--mantine-color-dark-light-hover: rgba(46, 46, 46, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(46, 46, 46, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline-end:0;padding-inline-start:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden;opacity:var(--thumb-opacity)}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color: var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{inset:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media (hover: hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media (hover: none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background-color:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_437b6484{--section-height-xs: calc(1.125rem * var(--mantine-scale));--section-height-sm: calc(1.375rem * var(--mantine-scale));--section-height-md: calc(1.75rem * var(--mantine-scale));--section-height-lg: calc(2.125rem * var(--mantine-scale));--section-height-xl: calc(2.75rem * var(--mantine-scale));--section-height-input-xs: calc(1.875rem * var(--mantine-scale));--section-height-input-sm: calc(2.25rem * var(--mantine-scale));--section-height-input-md: calc(2.625rem * var(--mantine-scale));--section-height-input-lg: calc(3.125rem * var(--mantine-scale));--section-height-input-xl: calc(3.75rem * var(--mantine-scale));--section-padding-x-xs: calc(.375rem * var(--mantine-scale));--section-padding-x-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-md: calc(.625rem * var(--mantine-scale));--section-padding-x-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-xl: calc(1rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-disabled-bg: var(--mantine-color-disabled);--input-disabled-color: var(--mantine-color-disabled-color);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}.m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(var(--input-right-section-size) * 1.55)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz, var(--input-fz, var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--_input-fz: calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:transparent}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(var(--input-right-section-size) * 1.55)}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent;color:var(--mantine-color-bright)}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media (hover: hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover: none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media (hover: hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media (hover: none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;inset-block:0;inset-inline-start:calc(50% - 1.5px);inset-inline-end:0;height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important;--app-shell-aside-offset: 0rem !important;--app-shell-footer-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;overflow-wrap:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color, var(--mantine-color-error))}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-color);opacity:1;transform:none}.m_bf295423{position:absolute;inset:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: calc(1.875rem * var(--mantine-scale));--section-height-sm: calc(2.25rem * var(--mantine-scale));--section-height-md: calc(2.625rem * var(--mantine-scale));--section-height-lg: calc(3.125rem * var(--mantine-scale));--section-height-xl: calc(3.75rem * var(--mantine-scale));--section-height-compact-xs: calc(1.375rem * var(--mantine-scale));--section-height-compact-sm: calc(1.625rem * var(--mantine-scale));--section-height-compact-md: calc(1.875rem * var(--mantine-scale));--section-height-compact-lg: calc(2.125rem * var(--mantine-scale));--section-height-compact-xl: calc(2.5rem * var(--mantine-scale));--section-padding-x-xs: calc(.875rem * var(--mantine-scale));--section-padding-x-sm: calc(1.125rem * var(--mantine-scale));--section-padding-x-md: calc(1.375rem * var(--mantine-scale));--section-padding-x-lg: calc(1.625rem * var(--mantine-scale));--section-padding-x-xl: calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media (hover: hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover: hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;inset:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;inset:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){display:grid;grid-template-columns:1fr min(100%,var(--container-size)) 1fr;margin-inline:auto}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1 / -1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;inset:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed;text-align:center;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);list-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);user-select:none}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover: hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media (hover: none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover: hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media (hover: hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover: none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;inset:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration, .1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:m_e0fb7a86 1s linear infinite}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-start-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration: 0ms}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease,stroke-dasharray var(--rp-transition-duration) ease,stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";inset:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover: hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media (hover: none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";inset:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";inset:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);--slider-track-disabled-bg: var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md);--stepper-outline-thickness: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-dark-5)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{transition:background-color .15s ease;flex:1;height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color)}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.21875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);--switch-disabled-color: var(--mantine-color-disabled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-5);--switch-text-color: var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";width:40%;height:40%;background-color:var(--switch-bg);position:absolute;border-radius:var(--switch-radius);top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;border-spacing:0;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:500}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media (hover: hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover: none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){position:sticky;top:var(--table-sticky-header-offset, 0);background-color:var(--mantine-color-body)}:where([data-with-table-border]) .m_b242d975[data-sticky]{position:sticky;top:var(--table-sticky-header-offset, 0);z-index:4;border-top:none}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";display:block;position:absolute;left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{display:flex;flex-direction:column;--toc-depth-offset: .8em}.m_375a65ef{display:block;padding:.3em .8em;font-size:var(--toc-size, var(--mantine-font-size-md));border-radius:var(--toc-radius, var(--mantine-radius-default));padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)),.8em)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap)}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;user-select:none}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{flex:1;text-align:center}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover: hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:transparent}}@media (hover: none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media (hover: hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media (hover: none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media (hover: hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media (hover: none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover: hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media (hover: none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d08caa0 :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}}@layer xyflow{.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}}@layer base{:root{--made-with-panda: "🐼"}*,:before,:after,::backdrop{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--gradient-from-position: ;--gradient-to-position: ;--gradient-via-position: ;--scroll-snap-strictness: proximity;--border-spacing-x: 0;--border-spacing-y: 0;--translate-x: 0;--translate-y: 0;--rotate: 0;--rotate-x: 0;--rotate-y: 0;--skew-x: 0;--skew-y: 0;--scale-x: 1;--scale-y: 1}:where(:root,:host){--likec4-app-font-default: "IBM Plex Sans",'ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'}:where([data-likec4-text-size=xs]){--likec4-text-size: var(--font-sizes-likec4-xs)}:where([data-likec4-text-size=sm]){--likec4-text-size: var(--font-sizes-likec4-sm)}:where([data-likec4-text-size=md]){--likec4-text-size: var(--font-sizes-likec4-md)}:where([data-likec4-text-size=lg]){--likec4-text-size: var(--font-sizes-likec4-lg)}:where([data-likec4-text-size=xl]){--likec4-text-size: var(--font-sizes-likec4-xl)}:where([data-likec4-spacing=xs]){--likec4-spacing: var(--spacing-likec4-xs)}:where([data-likec4-spacing=sm]){--likec4-spacing: var(--spacing-likec4-sm)}:where([data-likec4-spacing=md]){--likec4-spacing: var(--spacing-likec4-md)}:where([data-likec4-spacing=lg]){--likec4-spacing: var(--spacing-likec4-lg)}:where([data-likec4-spacing=xl]){--likec4-spacing: var(--spacing-likec4-xl)}.likec4-shadow-root{--mantine-font-family: var(--likec4-app-font, var(--likec4-app-font-default));--mantine-font-family-headings: var(--likec4-app-font, var(--likec4-app-font-default));display:contents}.likec4-shadow-root dialog{color:var(--mantine-color-text)}.likec4-edge-label-container{position:absolute;top:var(--spacing-0);left:var(--spacing-0);width:auto;height:auto}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-edge-label-container{display:none}:where([data-likec4-zoom-small=true]) .likec4-edge-label-container{display:none}.likec4-root{padding:var(--spacing-0);margin:var(--spacing-0);border:0px solid transparent;overflow:hidden;position:relative;container-name:likec4-root;container-type:size;width:100%;height:100%}.likec4-root .react-flow{--xy-background-color: var(--colors-likec4-background);--xy-background-pattern-color: var(--colors-likec4-background-pattern, var(--colors-likec4-background));contain:paint}.likec4-root .react-flow:is(.bg-transparent){--xy-background-color: transparent !important;background:var(--colors-transparent)!important}.likec4-root .react-flow:is(.not-initialized){opacity:0}.likec4-root .react-flow .react-flow__pane{-webkit-user-select:none;user-select:none}.likec4-root .react-flow :where(.react-flow__nodes,.react-flow__edges,.react-flow__edgelabel-renderer){display:contents}.likec4-root .react-flow .react-flow__node.draggable:has(.likec4-compound-node){cursor:default}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-stroke-width: 3;--xy-edge-stroke: var(--likec4-palette-relation-stroke);--xy-edge-stroke-selected: var(--likec4-palette-relation-stroke-selected);--xy-edge-label-color: var(--likec4-palette-relation-label);--xy-edge-label-background-color: var(--likec4-palette-relation-label-bg)}[data-mantine-color-scheme=dark] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 50%, transparent)}[data-mantine-color-scheme=light] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-color: color-mix(in srgb, var(--likec4-palette-relation-label), rgba(255 255 255 / .85) 40%);--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 60%, transparent)}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container):is([data-likec4-hovered=true],[data-edge-active=true]){--xy-edge-stroke-width: 4;--xy-edge-stroke: var(--likec4-palette-relation-stroke-selected)}.likec4-root :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){opacity:.25}.likec4-root .likec4-edge-label-container:is([data-likec4-dimmed]){opacity:.25}.likec4-root:is([data-likec4-reduced-graphics]) .hide-on-reduced-graphics{display:none}.likec4-root :where(.relationships-browser,.likec4-relationship-details) .react-flow__attribution{display:none}.likec4-root .mantine-ActionIcon-icon .tabler-icon{width:75%;height:75%}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:plus-lighter}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:screen}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]):has(.react-flow__node-seq-parallel) :where(.react-flow__edges>svg){mix-blend-mode:color-burn}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:luminosity}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:color-burn}.likec4-static-view .react-flow .react-flow__attribution{display:none}:where(:root,:host){--likec4-text-size: 1.2rem;--likec4-palette-fill: #3b82f6;--likec4-palette-stroke: #2563eb;--likec4-palette-hiContrast: #eff6ff;--likec4-palette-loContrast: #bfdbfe;--likec4-palette-relation-stroke: #6E6E6E;--likec4-palette-relation-label: #C6C6C6;--likec4-palette-relation-label-bg: #18191b;--mantine-scale: 1;--likec4-palette-outline: var(--likec4-palette-loContrast);--likec4-spacing: ;--text-fz: ;--likec4-icon-size: }}@layer tokens{:where(:root,:host){--spacing-0: 0px;--spacing-1: 4px;--spacing-2: 8px;--spacing-3: 12px;--spacing-4: 16px;--spacing-5: 20px;--spacing-6: 24px;--spacing-7: 28px;--spacing-8: 32px;--spacing-9: 36px;--spacing-10: 40px;--spacing-likec4-xs: 8px;--spacing-likec4-sm: 10px;--spacing-likec4-md: 16px;--spacing-likec4-lg: 24px;--spacing-likec4-xl: 32px;--spacing-0\\.5: 2px;--spacing-1\\.5: 6px;--spacing-2\\.5: 10px;--spacing-3\\.5: 14px;--spacing-4\\.5: 18px;--spacing-xxs: calc(.5rem * var(--mantine-scale));--spacing-xs: calc(.625rem * var(--mantine-scale));--spacing-sm: calc(.75rem * var(--mantine-scale));--spacing-md: calc(1rem * var(--mantine-scale));--spacing-lg: calc(1.25rem * var(--mantine-scale));--spacing-xl: calc(2rem * var(--mantine-scale));--font-sizes-xxs: .625rem;--font-sizes-xs: calc(.75rem * var(--mantine-scale));--font-sizes-sm: calc(.875rem * var(--mantine-scale));--font-sizes-md: calc(1rem * var(--mantine-scale));--font-sizes-lg: calc(1.125rem * var(--mantine-scale));--font-sizes-xl: calc(1.25rem * var(--mantine-scale));--font-sizes-likec4-xs: .833rem;--font-sizes-likec4-sm: 1rem;--font-sizes-likec4-md: 1.2rem;--font-sizes-likec4-lg: 1.44rem;--font-sizes-likec4-xl: 1.73rem;--line-heights-1: 1;--line-heights-xs: 1.4;--line-heights-sm: 1.45;--line-heights-md: 1.55;--line-heights-lg: 1.6;--line-heights-xl: 1.65;--colors-mantine-colors-primary: var(--mantine-primary-color-6);--colors-mantine-colors-primary-filled: var(--mantine-primary-color-filled);--colors-mantine-colors-primary-filled-hover: var(--mantine-primary-color-filled-hover);--colors-mantine-colors-primary-light: var(--mantine-primary-color-light);--colors-mantine-colors-primary-light-hover: var(--mantine-primary-color-light-hover);--colors-mantine-colors-primary-light-color: var(--mantine-primary-color-light-color);--colors-mantine-colors-primary-outline: var(--mantine-primary-color-outline);--colors-mantine-colors-primary-outline-hover: var(--mantine-primary-color-outline-hover);--colors-mantine-colors-primary\\[0\\]: var(--mantine-primary-color-0);--colors-mantine-colors-primary\\[1\\]: var(--mantine-primary-color-1);--colors-mantine-colors-primary\\[2\\]: var(--mantine-primary-color-2);--colors-mantine-colors-primary\\[3\\]: var(--mantine-primary-color-3);--colors-mantine-colors-primary\\[4\\]: var(--mantine-primary-color-4);--colors-mantine-colors-primary\\[5\\]: var(--mantine-primary-color-5);--colors-mantine-colors-primary\\[6\\]: var(--mantine-primary-color-6);--colors-mantine-colors-primary\\[7\\]: var(--mantine-primary-color-7);--colors-mantine-colors-primary\\[8\\]: var(--mantine-primary-color-8);--colors-mantine-colors-primary\\[9\\]: var(--mantine-primary-color-9);--colors-mantine-colors-white: var(--mantine-color-white);--colors-mantine-colors-text: var(--mantine-color-text);--colors-mantine-colors-body: var(--mantine-color-body);--colors-mantine-colors-dimmed: var(--mantine-color-dimmed);--colors-mantine-colors-default-border: var(--mantine-color-default-border);--colors-mantine-colors-default-color: var(--mantine-color-default-color);--colors-mantine-colors-default-hover: var(--mantine-color-default-hover);--colors-mantine-colors-default: var(--mantine-color-default);--colors-mantine-colors-error: var(--mantine-color-error);--colors-mantine-colors-placeholder: var(--mantine-color-placeholder);--colors-mantine-colors-gray: var(--mantine-color-gray-6);--colors-mantine-colors-gray-filled: var(--mantine-color-gray-filled);--colors-mantine-colors-gray-filled-hover: var(--mantine-color-gray-filled-hover);--colors-mantine-colors-gray-light: var(--mantine-color-gray-light);--colors-mantine-colors-gray-light-hover: var(--mantine-color-gray-light-hover);--colors-mantine-colors-gray-light-color: var(--mantine-color-gray-light-color);--colors-mantine-colors-gray-outline: var(--mantine-color-gray-outline);--colors-mantine-colors-gray-outline-hover: var(--mantine-color-gray-outline-hover);--colors-mantine-colors-gray\\[0\\]: var(--mantine-color-gray-0);--colors-mantine-colors-gray\\[1\\]: var(--mantine-color-gray-1);--colors-mantine-colors-gray\\[2\\]: var(--mantine-color-gray-2);--colors-mantine-colors-gray\\[3\\]: var(--mantine-color-gray-3);--colors-mantine-colors-gray\\[4\\]: var(--mantine-color-gray-4);--colors-mantine-colors-gray\\[5\\]: var(--mantine-color-gray-5);--colors-mantine-colors-gray\\[6\\]: var(--mantine-color-gray-6);--colors-mantine-colors-gray\\[7\\]: var(--mantine-color-gray-7);--colors-mantine-colors-gray\\[8\\]: var(--mantine-color-gray-8);--colors-mantine-colors-gray\\[9\\]: var(--mantine-color-gray-9);--colors-mantine-colors-dark: var(--mantine-color-dark-6);--colors-mantine-colors-dark-filled: var(--mantine-color-dark-filled);--colors-mantine-colors-dark-filled-hover: var(--mantine-color-dark-filled-hover);--colors-mantine-colors-dark-light: var(--mantine-color-dark-light);--colors-mantine-colors-dark-light-hover: var(--mantine-color-dark-light-hover);--colors-mantine-colors-dark-light-color: var(--mantine-color-dark-light-color);--colors-mantine-colors-dark-outline: var(--mantine-color-dark-outline);--colors-mantine-colors-dark-outline-hover: var(--mantine-color-dark-outline-hover);--colors-mantine-colors-dark\\[0\\]: var(--mantine-color-dark-0);--colors-mantine-colors-dark\\[1\\]: var(--mantine-color-dark-1);--colors-mantine-colors-dark\\[2\\]: var(--mantine-color-dark-2);--colors-mantine-colors-dark\\[3\\]: var(--mantine-color-dark-3);--colors-mantine-colors-dark\\[4\\]: var(--mantine-color-dark-4);--colors-mantine-colors-dark\\[5\\]: var(--mantine-color-dark-5);--colors-mantine-colors-dark\\[6\\]: var(--mantine-color-dark-6);--colors-mantine-colors-dark\\[7\\]: var(--mantine-color-dark-7);--colors-mantine-colors-dark\\[8\\]: var(--mantine-color-dark-8);--colors-mantine-colors-dark\\[9\\]: var(--mantine-color-dark-9);--colors-mantine-colors-orange: var(--mantine-color-orange-6);--colors-mantine-colors-orange-filled: var(--mantine-color-orange-filled);--colors-mantine-colors-orange-filled-hover: var(--mantine-color-orange-filled-hover);--colors-mantine-colors-orange-light: var(--mantine-color-orange-light);--colors-mantine-colors-orange-light-hover: var(--mantine-color-orange-light-hover);--colors-mantine-colors-orange-light-color: var(--mantine-color-orange-light-color);--colors-mantine-colors-orange-outline: var(--mantine-color-orange-outline);--colors-mantine-colors-orange-outline-hover: var(--mantine-color-orange-outline-hover);--colors-mantine-colors-orange\\[0\\]: var(--mantine-color-orange-0);--colors-mantine-colors-orange\\[1\\]: var(--mantine-color-orange-1);--colors-mantine-colors-orange\\[2\\]: var(--mantine-color-orange-2);--colors-mantine-colors-orange\\[3\\]: var(--mantine-color-orange-3);--colors-mantine-colors-orange\\[4\\]: var(--mantine-color-orange-4);--colors-mantine-colors-orange\\[5\\]: var(--mantine-color-orange-5);--colors-mantine-colors-orange\\[6\\]: var(--mantine-color-orange-6);--colors-mantine-colors-orange\\[7\\]: var(--mantine-color-orange-7);--colors-mantine-colors-orange\\[8\\]: var(--mantine-color-orange-8);--colors-mantine-colors-orange\\[9\\]: var(--mantine-color-orange-9);--colors-mantine-colors-teal: var(--mantine-color-teal-6);--colors-mantine-colors-teal-filled: var(--mantine-color-teal-filled);--colors-mantine-colors-teal-filled-hover: var(--mantine-color-teal-filled-hover);--colors-mantine-colors-teal-light: var(--mantine-color-teal-light);--colors-mantine-colors-teal-light-hover: var(--mantine-color-teal-light-hover);--colors-mantine-colors-teal-light-color: var(--mantine-color-teal-light-color);--colors-mantine-colors-teal-outline: var(--mantine-color-teal-outline);--colors-mantine-colors-teal-outline-hover: var(--mantine-color-teal-outline-hover);--colors-mantine-colors-teal\\[0\\]: var(--mantine-color-teal-0);--colors-mantine-colors-teal\\[1\\]: var(--mantine-color-teal-1);--colors-mantine-colors-teal\\[2\\]: var(--mantine-color-teal-2);--colors-mantine-colors-teal\\[3\\]: var(--mantine-color-teal-3);--colors-mantine-colors-teal\\[4\\]: var(--mantine-color-teal-4);--colors-mantine-colors-teal\\[5\\]: var(--mantine-color-teal-5);--colors-mantine-colors-teal\\[6\\]: var(--mantine-color-teal-6);--colors-mantine-colors-teal\\[7\\]: var(--mantine-color-teal-7);--colors-mantine-colors-teal\\[8\\]: var(--mantine-color-teal-8);--colors-mantine-colors-teal\\[9\\]: var(--mantine-color-teal-9);--colors-mantine-colors-red: var(--mantine-color-red-6);--colors-mantine-colors-red-filled: var(--mantine-color-red-filled);--colors-mantine-colors-red-filled-hover: var(--mantine-color-red-filled-hover);--colors-mantine-colors-red-light: var(--mantine-color-red-light);--colors-mantine-colors-red-light-hover: var(--mantine-color-red-light-hover);--colors-mantine-colors-red-light-color: var(--mantine-color-red-light-color);--colors-mantine-colors-red-outline: var(--mantine-color-red-outline);--colors-mantine-colors-red-outline-hover: var(--mantine-color-red-outline-hover);--colors-mantine-colors-red\\[0\\]: var(--mantine-color-red-0);--colors-mantine-colors-red\\[1\\]: var(--mantine-color-red-1);--colors-mantine-colors-red\\[2\\]: var(--mantine-color-red-2);--colors-mantine-colors-red\\[3\\]: var(--mantine-color-red-3);--colors-mantine-colors-red\\[4\\]: var(--mantine-color-red-4);--colors-mantine-colors-red\\[5\\]: var(--mantine-color-red-5);--colors-mantine-colors-red\\[6\\]: var(--mantine-color-red-6);--colors-mantine-colors-red\\[7\\]: var(--mantine-color-red-7);--colors-mantine-colors-red\\[8\\]: var(--mantine-color-red-8);--colors-mantine-colors-red\\[9\\]: var(--mantine-color-red-9);--colors-mantine-colors-green: var(--mantine-color-green-6);--colors-mantine-colors-green-filled: var(--mantine-color-green-filled);--colors-mantine-colors-green-filled-hover: var(--mantine-color-green-filled-hover);--colors-mantine-colors-green-light: var(--mantine-color-green-light);--colors-mantine-colors-green-light-hover: var(--mantine-color-green-light-hover);--colors-mantine-colors-green-light-color: var(--mantine-color-green-light-color);--colors-mantine-colors-green-outline: var(--mantine-color-green-outline);--colors-mantine-colors-green-outline-hover: var(--mantine-color-green-outline-hover);--colors-mantine-colors-green\\[0\\]: var(--mantine-color-green-0);--colors-mantine-colors-green\\[1\\]: var(--mantine-color-green-1);--colors-mantine-colors-green\\[2\\]: var(--mantine-color-green-2);--colors-mantine-colors-green\\[3\\]: var(--mantine-color-green-3);--colors-mantine-colors-green\\[4\\]: var(--mantine-color-green-4);--colors-mantine-colors-green\\[5\\]: var(--mantine-color-green-5);--colors-mantine-colors-green\\[6\\]: var(--mantine-color-green-6);--colors-mantine-colors-green\\[7\\]: var(--mantine-color-green-7);--colors-mantine-colors-green\\[8\\]: var(--mantine-color-green-8);--colors-mantine-colors-green\\[9\\]: var(--mantine-color-green-9);--colors-mantine-colors-yellow: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow-filled: var(--mantine-color-yellow-filled);--colors-mantine-colors-yellow-filled-hover: var(--mantine-color-yellow-filled-hover);--colors-mantine-colors-yellow-light: var(--mantine-color-yellow-light);--colors-mantine-colors-yellow-light-hover: var(--mantine-color-yellow-light-hover);--colors-mantine-colors-yellow-light-color: var(--mantine-color-yellow-light-color);--colors-mantine-colors-yellow-outline: var(--mantine-color-yellow-outline);--colors-mantine-colors-yellow-outline-hover: var(--mantine-color-yellow-outline-hover);--colors-mantine-colors-yellow\\[0\\]: var(--mantine-color-yellow-0);--colors-mantine-colors-yellow\\[1\\]: var(--mantine-color-yellow-1);--colors-mantine-colors-yellow\\[2\\]: var(--mantine-color-yellow-2);--colors-mantine-colors-yellow\\[3\\]: var(--mantine-color-yellow-3);--colors-mantine-colors-yellow\\[4\\]: var(--mantine-color-yellow-4);--colors-mantine-colors-yellow\\[5\\]: var(--mantine-color-yellow-5);--colors-mantine-colors-yellow\\[6\\]: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow\\[7\\]: var(--mantine-color-yellow-7);--colors-mantine-colors-yellow\\[8\\]: var(--mantine-color-yellow-8);--colors-mantine-colors-yellow\\[9\\]: var(--mantine-color-yellow-9);--colors-transparent: transparent;--colors-none: none;--borders-none: none;--borders-transparent: 0px solid transparent;--borders-default: 1px solid var(--colors-mantine-colors-default-border);--radii-0: 0px;--radii-xs: .125rem;--radii-sm: .25rem;--radii-md: .5rem;--radii-lg: 1rem;--radii-xl: 2rem;--fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--fonts-body: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4-element: var(--likec4-element-font, var(--fonts-likec4));--fonts-likec4-compound: var(--likec4-compound-font, var(--fonts-likec4));--fonts-likec4-relation: var(--likec4-relation-font, var(--fonts-likec4));--easings-default: cubic-bezier(.4, 0, .2, 1);--easings-in: cubic-bezier(.4, 0, 1, 1);--easings-out: cubic-bezier(0, 0, .4, 1);--easings-in-out: cubic-bezier(.5, 0, .2, 1);--durations-fastest: 50ms;--durations-faster: .1s;--durations-fast: .13s;--durations-normal: .17s;--durations-slow: .3s;--durations-slower: .4s;--durations-slowest: .5s;--shadows-none: none;--shadows-xs: 0 1px 3px rgb(0 0 0/5%), 0 1px 2px rgb(0 0 0/10%);--shadows-sm: 0 1px 3px rgb(0 0 0/5%), 0 10px 15px -5px rgb(0 0 0/5%), 0 7px 7px -5px rgb(0 0 0/4%);--shadows-md: 0 1px 3px rgb(0 0 0/5%), 0 20px 25px -5px rgb(0 0 0/5%), 0 10px 10px -5px rgb(0 0 0/4%);--shadows-lg: 0 1px 3px rgb(0 0 0/5%), 0 28px 23px -7px rgb(0 0 0/5%), 0 12px 12px -7px rgb(0 0 0/4%);--shadows-xl: 0 1px 3px rgb(0 0 0/5%), 0 36px 28px -7px rgb(0 0 0/5%), 0 17px 17px -7px rgb(0 0 0/4%);--breakpoints-xs: 36em;--breakpoints-sm: 48em;--breakpoints-md: 62em;--breakpoints-lg: 75em;--breakpoints-xl: 88em;--sizes-breakpoint-xs: 36em;--sizes-breakpoint-sm: 48em;--sizes-breakpoint-md: 62em;--sizes-breakpoint-lg: 75em;--sizes-breakpoint-xl: 88em;--colors-amber-1: var(--colors-amber-light-1);--colors-amber-2: var(--colors-amber-light-2);--colors-amber-3: var(--colors-amber-light-3);--colors-amber-4: var(--colors-amber-light-4);--colors-amber-5: var(--colors-amber-light-5);--colors-amber-6: var(--colors-amber-light-6);--colors-amber-7: var(--colors-amber-light-7);--colors-amber-8: var(--colors-amber-light-8);--colors-amber-9: var(--colors-amber-light-9);--colors-amber-10: var(--colors-amber-light-10);--colors-amber-11: var(--colors-amber-light-11);--colors-amber-12: var(--colors-amber-light-12);--colors-amber-light-1: #fefdfb;--colors-amber-light-2: #fefbe9;--colors-amber-light-3: #fff7c2;--colors-amber-light-4: #ffee9c;--colors-amber-light-5: #fbe577;--colors-amber-light-6: #f3d673;--colors-amber-light-7: #e9c162;--colors-amber-light-8: #e2a336;--colors-amber-light-9: #ffc53d;--colors-amber-light-10: #ffba18;--colors-amber-light-11: #ab6400;--colors-amber-light-12: #4f3422;--colors-amber-light-a-1: #c0800004;--colors-amber-light-a-2: #f4d10016;--colors-amber-light-a-3: #ffde003d;--colors-amber-light-a-4: #ffd40063;--colors-amber-light-a-5: #f8cf0088;--colors-amber-light-a-6: #eab5008c;--colors-amber-light-a-7: #dc9b009d;--colors-amber-light-a-8: #da8a00c9;--colors-amber-light-a-9: #ffb300c2;--colors-amber-light-a-10: #ffb300e7;--colors-amber-light-a-11: #ab6400;--colors-amber-light-a-12: #341500dd;--colors-amber-light-p3-1: color(display-p3 .995 .992 .985);--colors-amber-light-p3-2: color(display-p3 .994 .986 .921);--colors-amber-light-p3-3: color(display-p3 .994 .969 .782);--colors-amber-light-p3-4: color(display-p3 .989 .937 .65);--colors-amber-light-p3-5: color(display-p3 .97 .902 .527);--colors-amber-light-p3-6: color(display-p3 .936 .844 .506);--colors-amber-light-p3-7: color(display-p3 .89 .762 .443);--colors-amber-light-p3-8: color(display-p3 .85 .65 .3);--colors-amber-light-p3-9: color(display-p3 1 .77 .26);--colors-amber-light-p3-10: color(display-p3 .959 .741 .274);--colors-amber-light-p3-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-12: color(display-p3 .294 .208 .145);--colors-amber-light-p3-a-1: color(display-p3 .757 .514 .024 / .016);--colors-amber-light-p3-a-2: color(display-p3 .902 .804 .008 / .079);--colors-amber-light-p3-a-3: color(display-p3 .965 .859 .004 / .22);--colors-amber-light-p3-a-4: color(display-p3 .969 .82 .004 / .35);--colors-amber-light-p3-a-5: color(display-p3 .933 .796 .004 / .475);--colors-amber-light-p3-a-6: color(display-p3 .875 .682 .004 / .495);--colors-amber-light-p3-a-7: color(display-p3 .804 .573 0 / .557);--colors-amber-light-p3-a-8: color(display-p3 .788 .502 0 / .699);--colors-amber-light-p3-a-9: color(display-p3 1 .686 0 / .742);--colors-amber-light-p3-a-10: color(display-p3 .945 .643 0 / .726);--colors-amber-light-p3-a-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-a-12: color(display-p3 .294 .208 .145);--colors-amber-dark-1: #16120c;--colors-amber-dark-2: #1d180f;--colors-amber-dark-3: #302008;--colors-amber-dark-4: #3f2700;--colors-amber-dark-5: #4d3000;--colors-amber-dark-6: #5c3d05;--colors-amber-dark-7: #714f19;--colors-amber-dark-8: #8f6424;--colors-amber-dark-9: #ffc53d;--colors-amber-dark-10: #ffd60a;--colors-amber-dark-11: #ffca16;--colors-amber-dark-12: #ffe7b3;--colors-amber-dark-a-1: #e63c0006;--colors-amber-dark-a-2: #fd9b000d;--colors-amber-dark-a-3: #fa820022;--colors-amber-dark-a-4: #fc820032;--colors-amber-dark-a-5: #fd8b0041;--colors-amber-dark-a-6: #fd9b0051;--colors-amber-dark-a-7: #ffab2567;--colors-amber-dark-a-8: #ffae3587;--colors-amber-dark-a-9: #ffc53d;--colors-amber-dark-a-10: #ffd60a;--colors-amber-dark-a-11: #ffca16;--colors-amber-dark-a-12: #ffe7b3;--colors-amber-dark-p3-1: color(display-p3 .082 .07 .05);--colors-amber-dark-p3-2: color(display-p3 .111 .094 .064);--colors-amber-dark-p3-3: color(display-p3 .178 .128 .049);--colors-amber-dark-p3-4: color(display-p3 .239 .156 0);--colors-amber-dark-p3-5: color(display-p3 .29 .193 0);--colors-amber-dark-p3-6: color(display-p3 .344 .245 .076);--colors-amber-dark-p3-7: color(display-p3 .422 .314 .141);--colors-amber-dark-p3-8: color(display-p3 .535 .399 .189);--colors-amber-dark-p3-9: color(display-p3 1 .77 .26);--colors-amber-dark-p3-10: color(display-p3 1 .87 .15);--colors-amber-dark-p3-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-12: color(display-p3 .984 .909 .726);--colors-amber-dark-p3-a-1: color(display-p3 .992 .298 0 / .017);--colors-amber-dark-p3-a-2: color(display-p3 .988 .651 0 / .047);--colors-amber-dark-p3-a-3: color(display-p3 1 .6 0 / .118);--colors-amber-dark-p3-a-4: color(display-p3 1 .557 0 / .185);--colors-amber-dark-p3-a-5: color(display-p3 1 .592 0 / .24);--colors-amber-dark-p3-a-6: color(display-p3 1 .659 .094 / .299);--colors-amber-dark-p3-a-7: color(display-p3 1 .714 .263 / .383);--colors-amber-dark-p3-a-8: color(display-p3 .996 .729 .306 / .5);--colors-amber-dark-p3-a-9: color(display-p3 1 .769 .259);--colors-amber-dark-p3-a-10: color(display-p3 1 .871 .149);--colors-amber-dark-p3-a-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-a-12: color(display-p3 .984 .909 .726);--colors-amber-a-1: var(--colors-amber-light-a-1);--colors-amber-a-2: var(--colors-amber-light-a-2);--colors-amber-a-3: var(--colors-amber-light-a-3);--colors-amber-a-4: var(--colors-amber-light-a-4);--colors-amber-a-5: var(--colors-amber-light-a-5);--colors-amber-a-6: var(--colors-amber-light-a-6);--colors-amber-a-7: var(--colors-amber-light-a-7);--colors-amber-a-8: var(--colors-amber-light-a-8);--colors-amber-a-9: var(--colors-amber-light-a-9);--colors-amber-a-10: var(--colors-amber-light-a-10);--colors-amber-a-11: var(--colors-amber-light-a-11);--colors-amber-a-12: var(--colors-amber-light-a-12);--colors-amber-p3-1: var(--colors-amber-light-p3-1);--colors-amber-p3-2: var(--colors-amber-light-p3-2);--colors-amber-p3-3: var(--colors-amber-light-p3-3);--colors-amber-p3-4: var(--colors-amber-light-p3-4);--colors-amber-p3-5: var(--colors-amber-light-p3-5);--colors-amber-p3-6: var(--colors-amber-light-p3-6);--colors-amber-p3-7: var(--colors-amber-light-p3-7);--colors-amber-p3-8: var(--colors-amber-light-p3-8);--colors-amber-p3-9: var(--colors-amber-light-p3-9);--colors-amber-p3-10: var(--colors-amber-light-p3-10);--colors-amber-p3-11: var(--colors-amber-light-p3-11);--colors-amber-p3-12: var(--colors-amber-light-p3-12);--colors-amber-p3-a-1: var(--colors-amber-light-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-light-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-light-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-light-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-light-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-light-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-light-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-light-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-light-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-light-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-light-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-light-p3-a-12);--colors-blue-1: var(--colors-blue-light-1);--colors-blue-2: var(--colors-blue-light-2);--colors-blue-3: var(--colors-blue-light-3);--colors-blue-4: var(--colors-blue-light-4);--colors-blue-5: var(--colors-blue-light-5);--colors-blue-6: var(--colors-blue-light-6);--colors-blue-7: var(--colors-blue-light-7);--colors-blue-8: var(--colors-blue-light-8);--colors-blue-9: var(--colors-blue-light-9);--colors-blue-10: var(--colors-blue-light-10);--colors-blue-11: var(--colors-blue-light-11);--colors-blue-12: var(--colors-blue-light-12);--colors-blue-light-1: #fbfdff;--colors-blue-light-2: #f4faff;--colors-blue-light-3: #e6f4fe;--colors-blue-light-4: #d5efff;--colors-blue-light-5: #c2e5ff;--colors-blue-light-6: #acd8fc;--colors-blue-light-7: #8ec8f6;--colors-blue-light-8: #5eb1ef;--colors-blue-light-9: #0090ff;--colors-blue-light-10: #0588f0;--colors-blue-light-11: #0d74ce;--colors-blue-light-12: #113264;--colors-blue-light-a-1: #0080ff04;--colors-blue-light-a-2: #008cff0b;--colors-blue-light-a-3: #008ff519;--colors-blue-light-a-4: #009eff2a;--colors-blue-light-a-5: #0093ff3d;--colors-blue-light-a-6: #0088f653;--colors-blue-light-a-7: #0083eb71;--colors-blue-light-a-8: #0084e6a1;--colors-blue-light-a-9: #0090ff;--colors-blue-light-a-10: #0086f0fa;--colors-blue-light-a-11: #006dcbf2;--colors-blue-light-a-12: #002359ee;--colors-blue-light-p3-1: color(display-p3 .986 .992 .999);--colors-blue-light-p3-2: color(display-p3 .96 .979 .998);--colors-blue-light-p3-3: color(display-p3 .912 .956 .991);--colors-blue-light-p3-4: color(display-p3 .853 .932 1);--colors-blue-light-p3-5: color(display-p3 .788 .894 .998);--colors-blue-light-p3-6: color(display-p3 .709 .843 .976);--colors-blue-light-p3-7: color(display-p3 .606 .777 .947);--colors-blue-light-p3-8: color(display-p3 .451 .688 .917);--colors-blue-light-p3-9: color(display-p3 .247 .556 .969);--colors-blue-light-p3-10: color(display-p3 .234 .523 .912);--colors-blue-light-p3-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-12: color(display-p3 .102 .193 .379);--colors-blue-light-p3-a-1: color(display-p3 .024 .514 1 / .016);--colors-blue-light-p3-a-2: color(display-p3 .024 .514 .906 / .04);--colors-blue-light-p3-a-3: color(display-p3 .012 .506 .914 / .087);--colors-blue-light-p3-a-4: color(display-p3 .008 .545 1 / .146);--colors-blue-light-p3-a-5: color(display-p3 .004 .502 .984 / .212);--colors-blue-light-p3-a-6: color(display-p3 .004 .463 .922 / .291);--colors-blue-light-p3-a-7: color(display-p3 .004 .431 .863 / .393);--colors-blue-light-p3-a-8: color(display-p3 0 .427 .851 / .55);--colors-blue-light-p3-a-9: color(display-p3 0 .412 .961 / .753);--colors-blue-light-p3-a-10: color(display-p3 0 .376 .886 / .765);--colors-blue-light-p3-a-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-a-12: color(display-p3 .102 .193 .379);--colors-blue-dark-1: #0d1520;--colors-blue-dark-2: #111927;--colors-blue-dark-3: #0d2847;--colors-blue-dark-4: #003362;--colors-blue-dark-5: #004074;--colors-blue-dark-6: #104d87;--colors-blue-dark-7: #205d9e;--colors-blue-dark-8: #2870bd;--colors-blue-dark-9: #0090ff;--colors-blue-dark-10: #3b9eff;--colors-blue-dark-11: #70b8ff;--colors-blue-dark-12: #c2e6ff;--colors-blue-dark-a-1: #004df211;--colors-blue-dark-a-2: #1166fb18;--colors-blue-dark-a-3: #0077ff3a;--colors-blue-dark-a-4: #0075ff57;--colors-blue-dark-a-5: #0081fd6b;--colors-blue-dark-a-6: #0f89fd7f;--colors-blue-dark-a-7: #2a91fe98;--colors-blue-dark-a-8: #3094feb9;--colors-blue-dark-a-9: #0090ff;--colors-blue-dark-a-10: #3b9eff;--colors-blue-dark-a-11: #70b8ff;--colors-blue-dark-a-12: #c2e6ff;--colors-blue-dark-p3-1: color(display-p3 .057 .081 .122);--colors-blue-dark-p3-2: color(display-p3 .072 .098 .147);--colors-blue-dark-p3-3: color(display-p3 .078 .154 .27);--colors-blue-dark-p3-4: color(display-p3 .033 .197 .37);--colors-blue-dark-p3-5: color(display-p3 .08 .245 .441);--colors-blue-dark-p3-6: color(display-p3 .14 .298 .511);--colors-blue-dark-p3-7: color(display-p3 .195 .361 .6);--colors-blue-dark-p3-8: color(display-p3 .239 .434 .72);--colors-blue-dark-p3-9: color(display-p3 .247 .556 .969);--colors-blue-dark-p3-10: color(display-p3 .344 .612 .973);--colors-blue-dark-p3-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-12: color(display-p3 .788 .898 .99);--colors-blue-dark-p3-a-1: color(display-p3 0 .333 1 / .059);--colors-blue-dark-p3-a-2: color(display-p3 .114 .435 .988 / .085);--colors-blue-dark-p3-a-3: color(display-p3 .122 .463 1 / .219);--colors-blue-dark-p3-a-4: color(display-p3 0 .467 1 / .324);--colors-blue-dark-p3-a-5: color(display-p3 .098 .51 1 / .4);--colors-blue-dark-p3-a-6: color(display-p3 .224 .557 1 / .475);--colors-blue-dark-p3-a-7: color(display-p3 .294 .584 1 / .572);--colors-blue-dark-p3-a-8: color(display-p3 .314 .592 1 / .702);--colors-blue-dark-p3-a-9: color(display-p3 .251 .573 .996 / .967);--colors-blue-dark-p3-a-10: color(display-p3 .357 .631 1 / .971);--colors-blue-dark-p3-a-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-a-12: color(display-p3 .788 .898 .99);--colors-blue-a-1: var(--colors-blue-light-a-1);--colors-blue-a-2: var(--colors-blue-light-a-2);--colors-blue-a-3: var(--colors-blue-light-a-3);--colors-blue-a-4: var(--colors-blue-light-a-4);--colors-blue-a-5: var(--colors-blue-light-a-5);--colors-blue-a-6: var(--colors-blue-light-a-6);--colors-blue-a-7: var(--colors-blue-light-a-7);--colors-blue-a-8: var(--colors-blue-light-a-8);--colors-blue-a-9: var(--colors-blue-light-a-9);--colors-blue-a-10: var(--colors-blue-light-a-10);--colors-blue-a-11: var(--colors-blue-light-a-11);--colors-blue-a-12: var(--colors-blue-light-a-12);--colors-blue-p3-1: var(--colors-blue-light-p3-1);--colors-blue-p3-2: var(--colors-blue-light-p3-2);--colors-blue-p3-3: var(--colors-blue-light-p3-3);--colors-blue-p3-4: var(--colors-blue-light-p3-4);--colors-blue-p3-5: var(--colors-blue-light-p3-5);--colors-blue-p3-6: var(--colors-blue-light-p3-6);--colors-blue-p3-7: var(--colors-blue-light-p3-7);--colors-blue-p3-8: var(--colors-blue-light-p3-8);--colors-blue-p3-9: var(--colors-blue-light-p3-9);--colors-blue-p3-10: var(--colors-blue-light-p3-10);--colors-blue-p3-11: var(--colors-blue-light-p3-11);--colors-blue-p3-12: var(--colors-blue-light-p3-12);--colors-blue-p3-a-1: var(--colors-blue-light-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-light-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-light-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-light-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-light-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-light-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-light-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-light-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-light-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-light-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-light-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-light-p3-a-12);--colors-crimson-1: var(--colors-crimson-light-1);--colors-crimson-2: var(--colors-crimson-light-2);--colors-crimson-3: var(--colors-crimson-light-3);--colors-crimson-4: var(--colors-crimson-light-4);--colors-crimson-5: var(--colors-crimson-light-5);--colors-crimson-6: var(--colors-crimson-light-6);--colors-crimson-7: var(--colors-crimson-light-7);--colors-crimson-8: var(--colors-crimson-light-8);--colors-crimson-9: var(--colors-crimson-light-9);--colors-crimson-10: var(--colors-crimson-light-10);--colors-crimson-11: var(--colors-crimson-light-11);--colors-crimson-12: var(--colors-crimson-light-12);--colors-crimson-light-1: #fffcfd;--colors-crimson-light-2: #fef7f9;--colors-crimson-light-3: #ffe9f0;--colors-crimson-light-4: #fedce7;--colors-crimson-light-5: #facedd;--colors-crimson-light-6: #f3bed1;--colors-crimson-light-7: #eaacc3;--colors-crimson-light-8: #e093b2;--colors-crimson-light-9: #e93d82;--colors-crimson-light-10: #df3478;--colors-crimson-light-11: #cb1d63;--colors-crimson-light-12: #621639;--colors-crimson-light-a-1: #ff005503;--colors-crimson-light-a-2: #e0004008;--colors-crimson-light-a-3: #ff005216;--colors-crimson-light-a-4: #f8005123;--colors-crimson-light-a-5: #e5004f31;--colors-crimson-light-a-6: #d0004b41;--colors-crimson-light-a-7: #bf004753;--colors-crimson-light-a-8: #b6004a6c;--colors-crimson-light-a-9: #e2005bc2;--colors-crimson-light-a-10: #d70056cb;--colors-crimson-light-a-11: #c4004fe2;--colors-crimson-light-a-12: #530026e9;--colors-crimson-light-p3-1: color(display-p3 .998 .989 .992);--colors-crimson-light-p3-2: color(display-p3 .991 .969 .976);--colors-crimson-light-p3-3: color(display-p3 .987 .917 .941);--colors-crimson-light-p3-4: color(display-p3 .975 .866 .904);--colors-crimson-light-p3-5: color(display-p3 .953 .813 .864);--colors-crimson-light-p3-6: color(display-p3 .921 .755 .817);--colors-crimson-light-p3-7: color(display-p3 .88 .683 .761);--colors-crimson-light-p3-8: color(display-p3 .834 .592 .694);--colors-crimson-light-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-light-p3-10: color(display-p3 .807 .266 .468);--colors-crimson-light-p3-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-12: color(display-p3 .352 .111 .221);--colors-crimson-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-crimson-light-p3-a-2: color(display-p3 .757 .02 .267 / .032);--colors-crimson-light-p3-a-3: color(display-p3 .859 .008 .294 / .083);--colors-crimson-light-p3-a-4: color(display-p3 .827 .008 .298 / .134);--colors-crimson-light-p3-a-5: color(display-p3 .753 .008 .275 / .189);--colors-crimson-light-p3-a-6: color(display-p3 .682 .004 .247 / .244);--colors-crimson-light-p3-a-7: color(display-p3 .62 .004 .251 / .318);--colors-crimson-light-p3-a-8: color(display-p3 .6 .004 .251 / .408);--colors-crimson-light-p3-a-9: color(display-p3 .776 0 .298 / .702);--colors-crimson-light-p3-a-10: color(display-p3 .737 0 .275 / .734);--colors-crimson-light-p3-a-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-a-12: color(display-p3 .352 .111 .221);--colors-crimson-dark-1: #191114;--colors-crimson-dark-2: #201318;--colors-crimson-dark-3: #381525;--colors-crimson-dark-4: #4d122f;--colors-crimson-dark-5: #5c1839;--colors-crimson-dark-6: #6d2545;--colors-crimson-dark-7: #873356;--colors-crimson-dark-8: #b0436e;--colors-crimson-dark-9: #e93d82;--colors-crimson-dark-10: #ee518a;--colors-crimson-dark-11: #ff92ad;--colors-crimson-dark-12: #fdd3e8;--colors-crimson-dark-a-1: #f4126709;--colors-crimson-dark-a-2: #f22f7a11;--colors-crimson-dark-a-3: #fe2a8b2a;--colors-crimson-dark-a-4: #fd158741;--colors-crimson-dark-a-5: #fd278f51;--colors-crimson-dark-a-6: #fe459763;--colors-crimson-dark-a-7: #fd559b7f;--colors-crimson-dark-a-8: #fe5b9bab;--colors-crimson-dark-a-9: #fe418de8;--colors-crimson-dark-a-10: #ff5693ed;--colors-crimson-dark-a-11: #ff92ad;--colors-crimson-dark-a-12: #ffd5eafd;--colors-crimson-dark-p3-1: color(display-p3 .093 .068 .078);--colors-crimson-dark-p3-2: color(display-p3 .117 .078 .095);--colors-crimson-dark-p3-3: color(display-p3 .203 .091 .143);--colors-crimson-dark-p3-4: color(display-p3 .277 .087 .182);--colors-crimson-dark-p3-5: color(display-p3 .332 .115 .22);--colors-crimson-dark-p3-6: color(display-p3 .394 .162 .268);--colors-crimson-dark-p3-7: color(display-p3 .489 .222 .336);--colors-crimson-dark-p3-8: color(display-p3 .638 .289 .429);--colors-crimson-dark-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-dark-p3-10: color(display-p3 .864 .364 .539);--colors-crimson-dark-p3-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-12: color(display-p3 .966 .834 .906);--colors-crimson-dark-p3-a-1: color(display-p3 .984 .071 .463 / .03);--colors-crimson-dark-p3-a-2: color(display-p3 .996 .282 .569 / .055);--colors-crimson-dark-p3-a-3: color(display-p3 .996 .227 .573 / .148);--colors-crimson-dark-p3-a-4: color(display-p3 1 .157 .569 / .227);--colors-crimson-dark-p3-a-5: color(display-p3 1 .231 .604 / .286);--colors-crimson-dark-p3-a-6: color(display-p3 1 .337 .643 / .349);--colors-crimson-dark-p3-a-7: color(display-p3 1 .416 .663 / .454);--colors-crimson-dark-p3-a-8: color(display-p3 .996 .427 .651 / .614);--colors-crimson-dark-p3-a-9: color(display-p3 1 .345 .596 / .832);--colors-crimson-dark-p3-a-10: color(display-p3 1 .42 .62 / .853);--colors-crimson-dark-p3-a-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-a-12: color(display-p3 .966 .834 .906);--colors-crimson-a-1: var(--colors-crimson-light-a-1);--colors-crimson-a-2: var(--colors-crimson-light-a-2);--colors-crimson-a-3: var(--colors-crimson-light-a-3);--colors-crimson-a-4: var(--colors-crimson-light-a-4);--colors-crimson-a-5: var(--colors-crimson-light-a-5);--colors-crimson-a-6: var(--colors-crimson-light-a-6);--colors-crimson-a-7: var(--colors-crimson-light-a-7);--colors-crimson-a-8: var(--colors-crimson-light-a-8);--colors-crimson-a-9: var(--colors-crimson-light-a-9);--colors-crimson-a-10: var(--colors-crimson-light-a-10);--colors-crimson-a-11: var(--colors-crimson-light-a-11);--colors-crimson-a-12: var(--colors-crimson-light-a-12);--colors-crimson-p3-1: var(--colors-crimson-light-p3-1);--colors-crimson-p3-2: var(--colors-crimson-light-p3-2);--colors-crimson-p3-3: var(--colors-crimson-light-p3-3);--colors-crimson-p3-4: var(--colors-crimson-light-p3-4);--colors-crimson-p3-5: var(--colors-crimson-light-p3-5);--colors-crimson-p3-6: var(--colors-crimson-light-p3-6);--colors-crimson-p3-7: var(--colors-crimson-light-p3-7);--colors-crimson-p3-8: var(--colors-crimson-light-p3-8);--colors-crimson-p3-9: var(--colors-crimson-light-p3-9);--colors-crimson-p3-10: var(--colors-crimson-light-p3-10);--colors-crimson-p3-11: var(--colors-crimson-light-p3-11);--colors-crimson-p3-12: var(--colors-crimson-light-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-light-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-light-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-light-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-light-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-light-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-light-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-light-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-light-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-light-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-light-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-light-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-light-p3-a-12);--colors-grass-1: var(--colors-grass-light-1);--colors-grass-2: var(--colors-grass-light-2);--colors-grass-3: var(--colors-grass-light-3);--colors-grass-4: var(--colors-grass-light-4);--colors-grass-5: var(--colors-grass-light-5);--colors-grass-6: var(--colors-grass-light-6);--colors-grass-7: var(--colors-grass-light-7);--colors-grass-8: var(--colors-grass-light-8);--colors-grass-9: var(--colors-grass-light-9);--colors-grass-10: var(--colors-grass-light-10);--colors-grass-11: var(--colors-grass-light-11);--colors-grass-12: var(--colors-grass-light-12);--colors-grass-light-1: #fbfefb;--colors-grass-light-2: #f5fbf5;--colors-grass-light-3: #e9f6e9;--colors-grass-light-4: #daf1db;--colors-grass-light-5: #c9e8ca;--colors-grass-light-6: #b2ddb5;--colors-grass-light-7: #94ce9a;--colors-grass-light-8: #65ba74;--colors-grass-light-9: #46a758;--colors-grass-light-10: #3e9b4f;--colors-grass-light-11: #2a7e3b;--colors-grass-light-12: #203c25;--colors-grass-light-a-1: #00c00004;--colors-grass-light-a-2: #0099000a;--colors-grass-light-a-3: #00970016;--colors-grass-light-a-4: #009f0725;--colors-grass-light-a-5: #00930536;--colors-grass-light-a-6: #008f0a4d;--colors-grass-light-a-7: #018b0f6b;--colors-grass-light-a-8: #008d199a;--colors-grass-light-a-9: #008619b9;--colors-grass-light-a-10: #007b17c1;--colors-grass-light-a-11: #006514d5;--colors-grass-light-a-12: #002006df;--colors-grass-light-p3-1: color(display-p3 .986 .996 .985);--colors-grass-light-p3-2: color(display-p3 .966 .983 .964);--colors-grass-light-p3-3: color(display-p3 .923 .965 .917);--colors-grass-light-p3-4: color(display-p3 .872 .94 .865);--colors-grass-light-p3-5: color(display-p3 .811 .908 .802);--colors-grass-light-p3-6: color(display-p3 .733 .864 .724);--colors-grass-light-p3-7: color(display-p3 .628 .803 .622);--colors-grass-light-p3-8: color(display-p3 .477 .72 .482);--colors-grass-light-p3-9: color(display-p3 .38 .647 .378);--colors-grass-light-p3-10: color(display-p3 .344 .598 .342);--colors-grass-light-p3-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-12: color(display-p3 .151 .233 .153);--colors-grass-light-p3-a-1: color(display-p3 .024 .757 .024 / .016);--colors-grass-light-p3-a-2: color(display-p3 .024 .565 .024 / .036);--colors-grass-light-p3-a-3: color(display-p3 .059 .576 .008 / .083);--colors-grass-light-p3-a-4: color(display-p3 .035 .565 .008 / .134);--colors-grass-light-p3-a-5: color(display-p3 .047 .545 .008 / .197);--colors-grass-light-p3-a-6: color(display-p3 .031 .502 .004 / .275);--colors-grass-light-p3-a-7: color(display-p3 .012 .482 .004 / .377);--colors-grass-light-p3-a-8: color(display-p3 0 .467 .008 / .522);--colors-grass-light-p3-a-9: color(display-p3 .008 .435 0 / .624);--colors-grass-light-p3-a-10: color(display-p3 .008 .388 0 / .659);--colors-grass-light-p3-a-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-a-12: color(display-p3 .151 .233 .153);--colors-grass-dark-1: #0e1511;--colors-grass-dark-2: #141a15;--colors-grass-dark-3: #1b2a1e;--colors-grass-dark-4: #1d3a24;--colors-grass-dark-5: #25482d;--colors-grass-dark-6: #2d5736;--colors-grass-dark-7: #366740;--colors-grass-dark-8: #3e7949;--colors-grass-dark-9: #46a758;--colors-grass-dark-10: #53b365;--colors-grass-dark-11: #71d083;--colors-grass-dark-12: #c2f0c2;--colors-grass-dark-a-1: #00de1205;--colors-grass-dark-a-2: #5ef7780a;--colors-grass-dark-a-3: #70fe8c1b;--colors-grass-dark-a-4: #57ff802c;--colors-grass-dark-a-5: #68ff8b3b;--colors-grass-dark-a-6: #71ff8f4b;--colors-grass-dark-a-7: #77fd925d;--colors-grass-dark-a-8: #77fd9070;--colors-grass-dark-a-9: #65ff82a1;--colors-grass-dark-a-10: #72ff8dae;--colors-grass-dark-a-11: #89ff9fcd;--colors-grass-dark-a-12: #ceffceef;--colors-grass-dark-p3-1: color(display-p3 .062 .083 .067);--colors-grass-dark-p3-2: color(display-p3 .083 .103 .085);--colors-grass-dark-p3-3: color(display-p3 .118 .163 .122);--colors-grass-dark-p3-4: color(display-p3 .142 .225 .15);--colors-grass-dark-p3-5: color(display-p3 .178 .279 .186);--colors-grass-dark-p3-6: color(display-p3 .217 .337 .224);--colors-grass-dark-p3-7: color(display-p3 .258 .4 .264);--colors-grass-dark-p3-8: color(display-p3 .302 .47 .305);--colors-grass-dark-p3-9: color(display-p3 .38 .647 .378);--colors-grass-dark-p3-10: color(display-p3 .426 .694 .426);--colors-grass-dark-p3-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-12: color(display-p3 .797 .936 .776);--colors-grass-dark-p3-a-1: color(display-p3 0 .992 .071 / .017);--colors-grass-dark-p3-a-2: color(display-p3 .482 .996 .584 / .038);--colors-grass-dark-p3-a-3: color(display-p3 .549 .992 .588 / .106);--colors-grass-dark-p3-a-4: color(display-p3 .51 .996 .557 / .169);--colors-grass-dark-p3-a-5: color(display-p3 .553 1 .588 / .227);--colors-grass-dark-p3-a-6: color(display-p3 .584 1 .608 / .29);--colors-grass-dark-p3-a-7: color(display-p3 .604 1 .616 / .358);--colors-grass-dark-p3-a-8: color(display-p3 .608 1 .62 / .433);--colors-grass-dark-p3-a-9: color(display-p3 .573 1 .569 / .622);--colors-grass-dark-p3-a-10: color(display-p3 .6 .996 .6 / .673);--colors-grass-dark-p3-a-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-a-12: color(display-p3 .797 .936 .776);--colors-grass-a-1: var(--colors-grass-light-a-1);--colors-grass-a-2: var(--colors-grass-light-a-2);--colors-grass-a-3: var(--colors-grass-light-a-3);--colors-grass-a-4: var(--colors-grass-light-a-4);--colors-grass-a-5: var(--colors-grass-light-a-5);--colors-grass-a-6: var(--colors-grass-light-a-6);--colors-grass-a-7: var(--colors-grass-light-a-7);--colors-grass-a-8: var(--colors-grass-light-a-8);--colors-grass-a-9: var(--colors-grass-light-a-9);--colors-grass-a-10: var(--colors-grass-light-a-10);--colors-grass-a-11: var(--colors-grass-light-a-11);--colors-grass-a-12: var(--colors-grass-light-a-12);--colors-grass-p3-1: var(--colors-grass-light-p3-1);--colors-grass-p3-2: var(--colors-grass-light-p3-2);--colors-grass-p3-3: var(--colors-grass-light-p3-3);--colors-grass-p3-4: var(--colors-grass-light-p3-4);--colors-grass-p3-5: var(--colors-grass-light-p3-5);--colors-grass-p3-6: var(--colors-grass-light-p3-6);--colors-grass-p3-7: var(--colors-grass-light-p3-7);--colors-grass-p3-8: var(--colors-grass-light-p3-8);--colors-grass-p3-9: var(--colors-grass-light-p3-9);--colors-grass-p3-10: var(--colors-grass-light-p3-10);--colors-grass-p3-11: var(--colors-grass-light-p3-11);--colors-grass-p3-12: var(--colors-grass-light-p3-12);--colors-grass-p3-a-1: var(--colors-grass-light-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-light-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-light-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-light-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-light-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-light-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-light-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-light-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-light-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-light-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-light-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-light-p3-a-12);--colors-indigo-1: var(--colors-indigo-light-1);--colors-indigo-2: var(--colors-indigo-light-2);--colors-indigo-3: var(--colors-indigo-light-3);--colors-indigo-4: var(--colors-indigo-light-4);--colors-indigo-5: var(--colors-indigo-light-5);--colors-indigo-6: var(--colors-indigo-light-6);--colors-indigo-7: var(--colors-indigo-light-7);--colors-indigo-8: var(--colors-indigo-light-8);--colors-indigo-9: var(--colors-indigo-light-9);--colors-indigo-10: var(--colors-indigo-light-10);--colors-indigo-11: var(--colors-indigo-light-11);--colors-indigo-12: var(--colors-indigo-light-12);--colors-indigo-light-1: #fdfdfe;--colors-indigo-light-2: #f7f9ff;--colors-indigo-light-3: #edf2fe;--colors-indigo-light-4: #e1e9ff;--colors-indigo-light-5: #d2deff;--colors-indigo-light-6: #c1d0ff;--colors-indigo-light-7: #abbdf9;--colors-indigo-light-8: #8da4ef;--colors-indigo-light-9: #3e63dd;--colors-indigo-light-10: #3358d4;--colors-indigo-light-11: #3a5bc7;--colors-indigo-light-12: #1f2d5c;--colors-indigo-light-a-1: #00008002;--colors-indigo-light-a-2: #0040ff08;--colors-indigo-light-a-3: #0047f112;--colors-indigo-light-a-4: #0044ff1e;--colors-indigo-light-a-5: #0044ff2d;--colors-indigo-light-a-6: #003eff3e;--colors-indigo-light-a-7: #0037ed54;--colors-indigo-light-a-8: #0034dc72;--colors-indigo-light-a-9: #0031d2c1;--colors-indigo-light-a-10: #002ec9cc;--colors-indigo-light-a-11: #002bb7c5;--colors-indigo-light-a-12: #001046e0;--colors-indigo-light-p3-1: color(display-p3 .992 .992 .996);--colors-indigo-light-p3-2: color(display-p3 .971 .977 .998);--colors-indigo-light-p3-3: color(display-p3 .933 .948 .992);--colors-indigo-light-p3-4: color(display-p3 .885 .914 1);--colors-indigo-light-p3-5: color(display-p3 .831 .87 1);--colors-indigo-light-p3-6: color(display-p3 .767 .814 .995);--colors-indigo-light-p3-7: color(display-p3 .685 .74 .957);--colors-indigo-light-p3-8: color(display-p3 .569 .639 .916);--colors-indigo-light-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-light-p3-10: color(display-p3 .234 .343 .801);--colors-indigo-light-p3-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-12: color(display-p3 .133 .175 .348);--colors-indigo-light-p3-a-1: color(display-p3 .02 .02 .51 / .008);--colors-indigo-light-p3-a-2: color(display-p3 .024 .161 .863 / .028);--colors-indigo-light-p3-a-3: color(display-p3 .008 .239 .886 / .067);--colors-indigo-light-p3-a-4: color(display-p3 .004 .247 1 / .114);--colors-indigo-light-p3-a-5: color(display-p3 .004 .235 1 / .169);--colors-indigo-light-p3-a-6: color(display-p3 .004 .208 .984 / .232);--colors-indigo-light-p3-a-7: color(display-p3 .004 .176 .863 / .314);--colors-indigo-light-p3-a-8: color(display-p3 .004 .165 .812 / .432);--colors-indigo-light-p3-a-9: color(display-p3 0 .153 .773 / .726);--colors-indigo-light-p3-a-10: color(display-p3 0 .137 .737 / .765);--colors-indigo-light-p3-a-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-a-12: color(display-p3 .133 .175 .348);--colors-indigo-dark-1: #11131f;--colors-indigo-dark-2: #141726;--colors-indigo-dark-3: #182449;--colors-indigo-dark-4: #1d2e62;--colors-indigo-dark-5: #253974;--colors-indigo-dark-6: #304384;--colors-indigo-dark-7: #3a4f97;--colors-indigo-dark-8: #435db1;--colors-indigo-dark-9: #3e63dd;--colors-indigo-dark-10: #5472e4;--colors-indigo-dark-11: #9eb1ff;--colors-indigo-dark-12: #d6e1ff;--colors-indigo-dark-a-1: #1133ff0f;--colors-indigo-dark-a-2: #3354fa17;--colors-indigo-dark-a-3: #2f62ff3c;--colors-indigo-dark-a-4: #3566ff57;--colors-indigo-dark-a-5: #4171fd6b;--colors-indigo-dark-a-6: #5178fd7c;--colors-indigo-dark-a-7: #5a7fff90;--colors-indigo-dark-a-8: #5b81feac;--colors-indigo-dark-a-9: #4671ffdb;--colors-indigo-dark-a-10: #5c7efee3;--colors-indigo-dark-a-11: #9eb1ff;--colors-indigo-dark-a-12: #d6e1ff;--colors-indigo-dark-p3-1: color(display-p3 .068 .074 .118);--colors-indigo-dark-p3-2: color(display-p3 .081 .089 .144);--colors-indigo-dark-p3-3: color(display-p3 .105 .141 .275);--colors-indigo-dark-p3-4: color(display-p3 .129 .18 .369);--colors-indigo-dark-p3-5: color(display-p3 .163 .22 .439);--colors-indigo-dark-p3-6: color(display-p3 .203 .262 .5);--colors-indigo-dark-p3-7: color(display-p3 .245 .309 .575);--colors-indigo-dark-p3-8: color(display-p3 .285 .362 .674);--colors-indigo-dark-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-dark-p3-10: color(display-p3 .354 .445 .866);--colors-indigo-dark-p3-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-12: color(display-p3 .848 .881 .99);--colors-indigo-dark-p3-a-1: color(display-p3 .071 .212 .996 / .055);--colors-indigo-dark-p3-a-2: color(display-p3 .251 .345 .988 / .085);--colors-indigo-dark-p3-a-3: color(display-p3 .243 .404 1 / .223);--colors-indigo-dark-p3-a-4: color(display-p3 .263 .42 1 / .324);--colors-indigo-dark-p3-a-5: color(display-p3 .314 .451 1 / .4);--colors-indigo-dark-p3-a-6: color(display-p3 .361 .49 1 / .467);--colors-indigo-dark-p3-a-7: color(display-p3 .388 .51 1 / .547);--colors-indigo-dark-p3-a-8: color(display-p3 .404 .518 1 / .652);--colors-indigo-dark-p3-a-9: color(display-p3 .318 .451 1 / .824);--colors-indigo-dark-p3-a-10: color(display-p3 .404 .506 1 / .858);--colors-indigo-dark-p3-a-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-a-12: color(display-p3 .848 .881 .99);--colors-indigo-a-1: var(--colors-indigo-light-a-1);--colors-indigo-a-2: var(--colors-indigo-light-a-2);--colors-indigo-a-3: var(--colors-indigo-light-a-3);--colors-indigo-a-4: var(--colors-indigo-light-a-4);--colors-indigo-a-5: var(--colors-indigo-light-a-5);--colors-indigo-a-6: var(--colors-indigo-light-a-6);--colors-indigo-a-7: var(--colors-indigo-light-a-7);--colors-indigo-a-8: var(--colors-indigo-light-a-8);--colors-indigo-a-9: var(--colors-indigo-light-a-9);--colors-indigo-a-10: var(--colors-indigo-light-a-10);--colors-indigo-a-11: var(--colors-indigo-light-a-11);--colors-indigo-a-12: var(--colors-indigo-light-a-12);--colors-indigo-p3-1: var(--colors-indigo-light-p3-1);--colors-indigo-p3-2: var(--colors-indigo-light-p3-2);--colors-indigo-p3-3: var(--colors-indigo-light-p3-3);--colors-indigo-p3-4: var(--colors-indigo-light-p3-4);--colors-indigo-p3-5: var(--colors-indigo-light-p3-5);--colors-indigo-p3-6: var(--colors-indigo-light-p3-6);--colors-indigo-p3-7: var(--colors-indigo-light-p3-7);--colors-indigo-p3-8: var(--colors-indigo-light-p3-8);--colors-indigo-p3-9: var(--colors-indigo-light-p3-9);--colors-indigo-p3-10: var(--colors-indigo-light-p3-10);--colors-indigo-p3-11: var(--colors-indigo-light-p3-11);--colors-indigo-p3-12: var(--colors-indigo-light-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-light-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-light-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-light-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-light-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-light-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-light-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-light-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-light-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-light-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-light-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-light-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-light-p3-a-12);--colors-lime-1: var(--colors-lime-light-1);--colors-lime-2: var(--colors-lime-light-2);--colors-lime-3: var(--colors-lime-light-3);--colors-lime-4: var(--colors-lime-light-4);--colors-lime-5: var(--colors-lime-light-5);--colors-lime-6: var(--colors-lime-light-6);--colors-lime-7: var(--colors-lime-light-7);--colors-lime-8: var(--colors-lime-light-8);--colors-lime-9: var(--colors-lime-light-9);--colors-lime-10: var(--colors-lime-light-10);--colors-lime-11: var(--colors-lime-light-11);--colors-lime-12: var(--colors-lime-light-12);--colors-lime-light-1: #fcfdfa;--colors-lime-light-2: #f8faf3;--colors-lime-light-3: #eef6d6;--colors-lime-light-4: #e2f0bd;--colors-lime-light-5: #d3e7a6;--colors-lime-light-6: #c2da91;--colors-lime-light-7: #abc978;--colors-lime-light-8: #8db654;--colors-lime-light-9: #bdee63;--colors-lime-light-10: #b0e64c;--colors-lime-light-11: #5c7c2f;--colors-lime-light-12: #37401c;--colors-lime-light-a-1: #66990005;--colors-lime-light-a-2: #6b95000c;--colors-lime-light-a-3: #96c80029;--colors-lime-light-a-4: #8fc60042;--colors-lime-light-a-5: #81bb0059;--colors-lime-light-a-6: #72aa006e;--colors-lime-light-a-7: #61990087;--colors-lime-light-a-8: #559200ab;--colors-lime-light-a-9: #93e4009c;--colors-lime-light-a-10: #8fdc00b3;--colors-lime-light-a-11: #375f00d0;--colors-lime-light-a-12: #1e2900e3;--colors-lime-light-p3-1: color(display-p3 .989 .992 .981);--colors-lime-light-p3-2: color(display-p3 .975 .98 .954);--colors-lime-light-p3-3: color(display-p3 .939 .965 .851);--colors-lime-light-p3-4: color(display-p3 .896 .94 .76);--colors-lime-light-p3-5: color(display-p3 .843 .903 .678);--colors-lime-light-p3-6: color(display-p3 .778 .852 .599);--colors-lime-light-p3-7: color(display-p3 .694 .784 .508);--colors-lime-light-p3-8: color(display-p3 .585 .707 .378);--colors-lime-light-p3-9: color(display-p3 .78 .928 .466);--colors-lime-light-p3-10: color(display-p3 .734 .896 .397);--colors-lime-light-p3-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-12: color(display-p3 .222 .25 .128);--colors-lime-light-p3-a-1: color(display-p3 .412 .608 .02 / .02);--colors-lime-light-p3-a-2: color(display-p3 .514 .592 .024 / .048);--colors-lime-light-p3-a-3: color(display-p3 .584 .765 .008 / .15);--colors-lime-light-p3-a-4: color(display-p3 .561 .757 .004 / .24);--colors-lime-light-p3-a-5: color(display-p3 .514 .698 .004 / .322);--colors-lime-light-p3-a-6: color(display-p3 .443 .627 0 / .4);--colors-lime-light-p3-a-7: color(display-p3 .376 .561 .004 / .491);--colors-lime-light-p3-a-8: color(display-p3 .333 .529 0 / .624);--colors-lime-light-p3-a-9: color(display-p3 .588 .867 0 / .534);--colors-lime-light-p3-a-10: color(display-p3 .561 .827 0 / .604);--colors-lime-light-p3-a-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-a-12: color(display-p3 .222 .25 .128);--colors-lime-dark-1: #11130c;--colors-lime-dark-2: #151a10;--colors-lime-dark-3: #1f2917;--colors-lime-dark-4: #29371d;--colors-lime-dark-5: #334423;--colors-lime-dark-6: #3d522a;--colors-lime-dark-7: #496231;--colors-lime-dark-8: #577538;--colors-lime-dark-9: #bdee63;--colors-lime-dark-10: #d4ff70;--colors-lime-dark-11: #bde56c;--colors-lime-dark-12: #e3f7ba;--colors-lime-dark-a-1: #11bb0003;--colors-lime-dark-a-2: #78f7000a;--colors-lime-dark-a-3: #9bfd4c1a;--colors-lime-dark-a-4: #a7fe5c29;--colors-lime-dark-a-5: #affe6537;--colors-lime-dark-a-6: #b2fe6d46;--colors-lime-dark-a-7: #b6ff6f57;--colors-lime-dark-a-8: #b6fd6d6c;--colors-lime-dark-a-9: #caff69ed;--colors-lime-dark-a-10: #d4ff70;--colors-lime-dark-a-11: #d1fe77e4;--colors-lime-dark-a-12: #e9febff7;--colors-lime-dark-p3-1: color(display-p3 .067 .073 .048);--colors-lime-dark-p3-2: color(display-p3 .086 .1 .067);--colors-lime-dark-p3-3: color(display-p3 .13 .16 .099);--colors-lime-dark-p3-4: color(display-p3 .172 .214 .126);--colors-lime-dark-p3-5: color(display-p3 .213 .266 .153);--colors-lime-dark-p3-6: color(display-p3 .257 .321 .182);--colors-lime-dark-p3-7: color(display-p3 .307 .383 .215);--colors-lime-dark-p3-8: color(display-p3 .365 .456 .25);--colors-lime-dark-p3-9: color(display-p3 .78 .928 .466);--colors-lime-dark-p3-10: color(display-p3 .865 .995 .519);--colors-lime-dark-p3-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-12: color(display-p3 .905 .966 .753);--colors-lime-dark-p3-a-1: color(display-p3 .067 .941 0 / .009);--colors-lime-dark-p3-a-2: color(display-p3 .584 .996 .071 / .038);--colors-lime-dark-p3-a-3: color(display-p3 .69 1 .38 / .101);--colors-lime-dark-p3-a-4: color(display-p3 .729 1 .435 / .16);--colors-lime-dark-p3-a-5: color(display-p3 .745 1 .471 / .215);--colors-lime-dark-p3-a-6: color(display-p3 .769 1 .482 / .274);--colors-lime-dark-p3-a-7: color(display-p3 .769 1 .506 / .341);--colors-lime-dark-p3-a-8: color(display-p3 .784 1 .51 / .416);--colors-lime-dark-p3-a-9: color(display-p3 .839 1 .502 / .925);--colors-lime-dark-p3-a-10: color(display-p3 .871 1 .522 / .996);--colors-lime-dark-p3-a-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-a-12: color(display-p3 .905 .966 .753);--colors-lime-a-1: var(--colors-lime-light-a-1);--colors-lime-a-2: var(--colors-lime-light-a-2);--colors-lime-a-3: var(--colors-lime-light-a-3);--colors-lime-a-4: var(--colors-lime-light-a-4);--colors-lime-a-5: var(--colors-lime-light-a-5);--colors-lime-a-6: var(--colors-lime-light-a-6);--colors-lime-a-7: var(--colors-lime-light-a-7);--colors-lime-a-8: var(--colors-lime-light-a-8);--colors-lime-a-9: var(--colors-lime-light-a-9);--colors-lime-a-10: var(--colors-lime-light-a-10);--colors-lime-a-11: var(--colors-lime-light-a-11);--colors-lime-a-12: var(--colors-lime-light-a-12);--colors-lime-p3-1: var(--colors-lime-light-p3-1);--colors-lime-p3-2: var(--colors-lime-light-p3-2);--colors-lime-p3-3: var(--colors-lime-light-p3-3);--colors-lime-p3-4: var(--colors-lime-light-p3-4);--colors-lime-p3-5: var(--colors-lime-light-p3-5);--colors-lime-p3-6: var(--colors-lime-light-p3-6);--colors-lime-p3-7: var(--colors-lime-light-p3-7);--colors-lime-p3-8: var(--colors-lime-light-p3-8);--colors-lime-p3-9: var(--colors-lime-light-p3-9);--colors-lime-p3-10: var(--colors-lime-light-p3-10);--colors-lime-p3-11: var(--colors-lime-light-p3-11);--colors-lime-p3-12: var(--colors-lime-light-p3-12);--colors-lime-p3-a-1: var(--colors-lime-light-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-light-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-light-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-light-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-light-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-light-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-light-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-light-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-light-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-light-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-light-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-light-p3-a-12);--colors-orange-1: var(--colors-orange-light-1);--colors-orange-2: var(--colors-orange-light-2);--colors-orange-3: var(--colors-orange-light-3);--colors-orange-4: var(--colors-orange-light-4);--colors-orange-5: var(--colors-orange-light-5);--colors-orange-6: var(--colors-orange-light-6);--colors-orange-7: var(--colors-orange-light-7);--colors-orange-8: var(--colors-orange-light-8);--colors-orange-9: var(--colors-orange-light-9);--colors-orange-10: var(--colors-orange-light-10);--colors-orange-11: var(--colors-orange-light-11);--colors-orange-12: var(--colors-orange-light-12);--colors-orange-light-1: #fefcfb;--colors-orange-light-2: #fff7ed;--colors-orange-light-3: #ffefd6;--colors-orange-light-4: #ffdfb5;--colors-orange-light-5: #ffd19a;--colors-orange-light-6: #ffc182;--colors-orange-light-7: #f5ae73;--colors-orange-light-8: #ec9455;--colors-orange-light-9: #f76b15;--colors-orange-light-10: #ef5f00;--colors-orange-light-11: #cc4e00;--colors-orange-light-12: #582d1d;--colors-orange-light-a-1: #c0400004;--colors-orange-light-a-2: #ff8e0012;--colors-orange-light-a-3: #ff9c0029;--colors-orange-light-a-4: #ff91014a;--colors-orange-light-a-5: #ff8b0065;--colors-orange-light-a-6: #ff81007d;--colors-orange-light-a-7: #ed6c008c;--colors-orange-light-a-8: #e35f00aa;--colors-orange-light-a-9: #f65e00ea;--colors-orange-light-a-10: #ef5f00;--colors-orange-light-a-11: #cc4e00;--colors-orange-light-a-12: #431200e2;--colors-orange-light-p3-1: color(display-p3 .995 .988 .985);--colors-orange-light-p3-2: color(display-p3 .994 .968 .934);--colors-orange-light-p3-3: color(display-p3 .989 .938 .85);--colors-orange-light-p3-4: color(display-p3 1 .874 .687);--colors-orange-light-p3-5: color(display-p3 1 .821 .583);--colors-orange-light-p3-6: color(display-p3 .975 .767 .545);--colors-orange-light-p3-7: color(display-p3 .919 .693 .486);--colors-orange-light-p3-8: color(display-p3 .877 .597 .379);--colors-orange-light-p3-9: color(display-p3 .9 .45 .2);--colors-orange-light-p3-10: color(display-p3 .87 .409 .164);--colors-orange-light-p3-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-12: color(display-p3 .323 .185 .127);--colors-orange-light-p3-a-1: color(display-p3 .757 .267 .024 / .016);--colors-orange-light-p3-a-2: color(display-p3 .886 .533 .008 / .067);--colors-orange-light-p3-a-3: color(display-p3 .922 .584 .008 / .15);--colors-orange-light-p3-a-4: color(display-p3 1 .604 .004 / .314);--colors-orange-light-p3-a-5: color(display-p3 1 .569 .004 / .416);--colors-orange-light-p3-a-6: color(display-p3 .949 .494 .004 / .455);--colors-orange-light-p3-a-7: color(display-p3 .839 .408 0 / .514);--colors-orange-light-p3-a-8: color(display-p3 .804 .349 0 / .62);--colors-orange-light-p3-a-9: color(display-p3 .878 .314 0 / .8);--colors-orange-light-p3-a-10: color(display-p3 .843 .29 0 / .836);--colors-orange-light-p3-a-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-a-12: color(display-p3 .323 .185 .127);--colors-orange-dark-1: #17120e;--colors-orange-dark-2: #1e160f;--colors-orange-dark-3: #331e0b;--colors-orange-dark-4: #462100;--colors-orange-dark-5: #562800;--colors-orange-dark-6: #66350c;--colors-orange-dark-7: #7e451d;--colors-orange-dark-8: #a35829;--colors-orange-dark-9: #f76b15;--colors-orange-dark-10: #ff801f;--colors-orange-dark-11: #ffa057;--colors-orange-dark-12: #ffe0c2;--colors-orange-dark-a-1: #ec360007;--colors-orange-dark-a-2: #fe6d000e;--colors-orange-dark-a-3: #fb6a0025;--colors-orange-dark-a-4: #ff590039;--colors-orange-dark-a-5: #ff61004a;--colors-orange-dark-a-6: #fd75045c;--colors-orange-dark-a-7: #ff832c75;--colors-orange-dark-a-8: #fe84389d;--colors-orange-dark-a-9: #fe6d15f7;--colors-orange-dark-a-10: #ff801f;--colors-orange-dark-a-11: #ffa057;--colors-orange-dark-a-12: #ffe0c2;--colors-orange-dark-p3-1: color(display-p3 .088 .07 .057);--colors-orange-dark-p3-2: color(display-p3 .113 .089 .061);--colors-orange-dark-p3-3: color(display-p3 .189 .12 .056);--colors-orange-dark-p3-4: color(display-p3 .262 .132 0);--colors-orange-dark-p3-5: color(display-p3 .315 .168 .016);--colors-orange-dark-p3-6: color(display-p3 .376 .219 .088);--colors-orange-dark-p3-7: color(display-p3 .465 .283 .147);--colors-orange-dark-p3-8: color(display-p3 .601 .359 .201);--colors-orange-dark-p3-9: color(display-p3 .9 .45 .2);--colors-orange-dark-p3-10: color(display-p3 .98 .51 .23);--colors-orange-dark-p3-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-12: color(display-p3 .98 .883 .775);--colors-orange-dark-p3-a-1: color(display-p3 .961 .247 0 / .022);--colors-orange-dark-p3-a-2: color(display-p3 .992 .529 0 / .051);--colors-orange-dark-p3-a-3: color(display-p3 .996 .486 0 / .131);--colors-orange-dark-p3-a-4: color(display-p3 .996 .384 0 / .211);--colors-orange-dark-p3-a-5: color(display-p3 1 .455 0 / .265);--colors-orange-dark-p3-a-6: color(display-p3 1 .529 .129 / .332);--colors-orange-dark-p3-a-7: color(display-p3 1 .569 .251 / .429);--colors-orange-dark-p3-a-8: color(display-p3 1 .584 .302 / .572);--colors-orange-dark-p3-a-9: color(display-p3 1 .494 .216 / .895);--colors-orange-dark-p3-a-10: color(display-p3 1 .522 .235 / .979);--colors-orange-dark-p3-a-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-a-12: color(display-p3 .98 .883 .775);--colors-orange-a-1: var(--colors-orange-light-a-1);--colors-orange-a-2: var(--colors-orange-light-a-2);--colors-orange-a-3: var(--colors-orange-light-a-3);--colors-orange-a-4: var(--colors-orange-light-a-4);--colors-orange-a-5: var(--colors-orange-light-a-5);--colors-orange-a-6: var(--colors-orange-light-a-6);--colors-orange-a-7: var(--colors-orange-light-a-7);--colors-orange-a-8: var(--colors-orange-light-a-8);--colors-orange-a-9: var(--colors-orange-light-a-9);--colors-orange-a-10: var(--colors-orange-light-a-10);--colors-orange-a-11: var(--colors-orange-light-a-11);--colors-orange-a-12: var(--colors-orange-light-a-12);--colors-orange-p3-1: var(--colors-orange-light-p3-1);--colors-orange-p3-2: var(--colors-orange-light-p3-2);--colors-orange-p3-3: var(--colors-orange-light-p3-3);--colors-orange-p3-4: var(--colors-orange-light-p3-4);--colors-orange-p3-5: var(--colors-orange-light-p3-5);--colors-orange-p3-6: var(--colors-orange-light-p3-6);--colors-orange-p3-7: var(--colors-orange-light-p3-7);--colors-orange-p3-8: var(--colors-orange-light-p3-8);--colors-orange-p3-9: var(--colors-orange-light-p3-9);--colors-orange-p3-10: var(--colors-orange-light-p3-10);--colors-orange-p3-11: var(--colors-orange-light-p3-11);--colors-orange-p3-12: var(--colors-orange-light-p3-12);--colors-orange-p3-a-1: var(--colors-orange-light-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-light-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-light-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-light-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-light-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-light-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-light-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-light-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-light-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-light-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-light-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-light-p3-a-12);--colors-pink-1: var(--colors-pink-light-1);--colors-pink-2: var(--colors-pink-light-2);--colors-pink-3: var(--colors-pink-light-3);--colors-pink-4: var(--colors-pink-light-4);--colors-pink-5: var(--colors-pink-light-5);--colors-pink-6: var(--colors-pink-light-6);--colors-pink-7: var(--colors-pink-light-7);--colors-pink-8: var(--colors-pink-light-8);--colors-pink-9: var(--colors-pink-light-9);--colors-pink-10: var(--colors-pink-light-10);--colors-pink-11: var(--colors-pink-light-11);--colors-pink-12: var(--colors-pink-light-12);--colors-pink-light-1: #fffcfe;--colors-pink-light-2: #fef7fb;--colors-pink-light-3: #fee9f5;--colors-pink-light-4: #fbdcef;--colors-pink-light-5: #f6cee7;--colors-pink-light-6: #efbfdd;--colors-pink-light-7: #e7acd0;--colors-pink-light-8: #dd93c2;--colors-pink-light-9: #d6409f;--colors-pink-light-10: #cf3897;--colors-pink-light-11: #c2298a;--colors-pink-light-12: #651249;--colors-pink-light-a-1: #ff00aa03;--colors-pink-light-a-2: #e0008008;--colors-pink-light-a-3: #f4008c16;--colors-pink-light-a-4: #e2008b23;--colors-pink-light-a-5: #d1008331;--colors-pink-light-a-6: #c0007840;--colors-pink-light-a-7: #b6006f53;--colors-pink-light-a-8: #af006f6c;--colors-pink-light-a-9: #c8007fbf;--colors-pink-light-a-10: #c2007ac7;--colors-pink-light-a-11: #b60074d6;--colors-pink-light-a-12: #59003bed;--colors-pink-light-p3-1: color(display-p3 .998 .989 .996);--colors-pink-light-p3-2: color(display-p3 .992 .97 .985);--colors-pink-light-p3-3: color(display-p3 .981 .917 .96);--colors-pink-light-p3-4: color(display-p3 .963 .867 .932);--colors-pink-light-p3-5: color(display-p3 .939 .815 .899);--colors-pink-light-p3-6: color(display-p3 .907 .756 .859);--colors-pink-light-p3-7: color(display-p3 .869 .683 .81);--colors-pink-light-p3-8: color(display-p3 .825 .59 .751);--colors-pink-light-p3-9: color(display-p3 .775 .297 .61);--colors-pink-light-p3-10: color(display-p3 .748 .27 .581);--colors-pink-light-p3-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-12: color(display-p3 .363 .101 .279);--colors-pink-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-pink-light-p3-a-2: color(display-p3 .757 .02 .51 / .032);--colors-pink-light-p3-a-3: color(display-p3 .765 .008 .529 / .083);--colors-pink-light-p3-a-4: color(display-p3 .737 .008 .506 / .134);--colors-pink-light-p3-a-5: color(display-p3 .663 .004 .451 / .185);--colors-pink-light-p3-a-6: color(display-p3 .616 .004 .424 / .244);--colors-pink-light-p3-a-7: color(display-p3 .596 .004 .412 / .318);--colors-pink-light-p3-a-8: color(display-p3 .573 .004 .404 / .412);--colors-pink-light-p3-a-9: color(display-p3 .682 0 .447 / .702);--colors-pink-light-p3-a-10: color(display-p3 .655 0 .424 / .73);--colors-pink-light-p3-a-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-a-12: color(display-p3 .363 .101 .279);--colors-pink-dark-1: #191117;--colors-pink-dark-2: #21121d;--colors-pink-dark-3: #37172f;--colors-pink-dark-4: #4b143d;--colors-pink-dark-5: #591c47;--colors-pink-dark-6: #692955;--colors-pink-dark-7: #833869;--colors-pink-dark-8: #a84885;--colors-pink-dark-9: #d6409f;--colors-pink-dark-10: #de51a8;--colors-pink-dark-11: #ff8dcc;--colors-pink-dark-12: #fdd1ea;--colors-pink-dark-a-1: #f412bc09;--colors-pink-dark-a-2: #f420bb12;--colors-pink-dark-a-3: #fe37cc29;--colors-pink-dark-a-4: #fc1ec43f;--colors-pink-dark-a-5: #fd35c24e;--colors-pink-dark-a-6: #fd51c75f;--colors-pink-dark-a-7: #fd62c87b;--colors-pink-dark-a-8: #ff68c8a2;--colors-pink-dark-a-9: #fe49bcd4;--colors-pink-dark-a-10: #ff5cc0dc;--colors-pink-dark-a-11: #ff8dcc;--colors-pink-dark-a-12: #ffd3ecfd;--colors-pink-dark-p3-1: color(display-p3 .093 .068 .089);--colors-pink-dark-p3-2: color(display-p3 .121 .073 .11);--colors-pink-dark-p3-3: color(display-p3 .198 .098 .179);--colors-pink-dark-p3-4: color(display-p3 .271 .095 .231);--colors-pink-dark-p3-5: color(display-p3 .32 .127 .273);--colors-pink-dark-p3-6: color(display-p3 .382 .177 .326);--colors-pink-dark-p3-7: color(display-p3 .477 .238 .405);--colors-pink-dark-p3-8: color(display-p3 .612 .304 .51);--colors-pink-dark-p3-9: color(display-p3 .775 .297 .61);--colors-pink-dark-p3-10: color(display-p3 .808 .356 .645);--colors-pink-dark-p3-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-12: color(display-p3 .964 .826 .912);--colors-pink-dark-p3-a-1: color(display-p3 .984 .071 .855 / .03);--colors-pink-dark-p3-a-2: color(display-p3 1 .2 .8 / .059);--colors-pink-dark-p3-a-3: color(display-p3 1 .294 .886 / .139);--colors-pink-dark-p3-a-4: color(display-p3 1 .192 .82 / .219);--colors-pink-dark-p3-a-5: color(display-p3 1 .282 .827 / .274);--colors-pink-dark-p3-a-6: color(display-p3 1 .396 .835 / .337);--colors-pink-dark-p3-a-7: color(display-p3 1 .459 .831 / .442);--colors-pink-dark-p3-a-8: color(display-p3 1 .478 .827 / .585);--colors-pink-dark-p3-a-9: color(display-p3 1 .373 .784 / .761);--colors-pink-dark-p3-a-10: color(display-p3 1 .435 .792 / .795);--colors-pink-dark-p3-a-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-a-12: color(display-p3 .964 .826 .912);--colors-pink-a-1: var(--colors-pink-light-a-1);--colors-pink-a-2: var(--colors-pink-light-a-2);--colors-pink-a-3: var(--colors-pink-light-a-3);--colors-pink-a-4: var(--colors-pink-light-a-4);--colors-pink-a-5: var(--colors-pink-light-a-5);--colors-pink-a-6: var(--colors-pink-light-a-6);--colors-pink-a-7: var(--colors-pink-light-a-7);--colors-pink-a-8: var(--colors-pink-light-a-8);--colors-pink-a-9: var(--colors-pink-light-a-9);--colors-pink-a-10: var(--colors-pink-light-a-10);--colors-pink-a-11: var(--colors-pink-light-a-11);--colors-pink-a-12: var(--colors-pink-light-a-12);--colors-pink-p3-1: var(--colors-pink-light-p3-1);--colors-pink-p3-2: var(--colors-pink-light-p3-2);--colors-pink-p3-3: var(--colors-pink-light-p3-3);--colors-pink-p3-4: var(--colors-pink-light-p3-4);--colors-pink-p3-5: var(--colors-pink-light-p3-5);--colors-pink-p3-6: var(--colors-pink-light-p3-6);--colors-pink-p3-7: var(--colors-pink-light-p3-7);--colors-pink-p3-8: var(--colors-pink-light-p3-8);--colors-pink-p3-9: var(--colors-pink-light-p3-9);--colors-pink-p3-10: var(--colors-pink-light-p3-10);--colors-pink-p3-11: var(--colors-pink-light-p3-11);--colors-pink-p3-12: var(--colors-pink-light-p3-12);--colors-pink-p3-a-1: var(--colors-pink-light-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-light-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-light-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-light-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-light-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-light-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-light-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-light-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-light-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-light-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-light-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-light-p3-a-12);--colors-purple-1: var(--colors-purple-light-1);--colors-purple-2: var(--colors-purple-light-2);--colors-purple-3: var(--colors-purple-light-3);--colors-purple-4: var(--colors-purple-light-4);--colors-purple-5: var(--colors-purple-light-5);--colors-purple-6: var(--colors-purple-light-6);--colors-purple-7: var(--colors-purple-light-7);--colors-purple-8: var(--colors-purple-light-8);--colors-purple-9: var(--colors-purple-light-9);--colors-purple-10: var(--colors-purple-light-10);--colors-purple-11: var(--colors-purple-light-11);--colors-purple-12: var(--colors-purple-light-12);--colors-purple-light-1: #fefcfe;--colors-purple-light-2: #fbf7fe;--colors-purple-light-3: #f7edfe;--colors-purple-light-4: #f2e2fc;--colors-purple-light-5: #ead5f9;--colors-purple-light-6: #e0c4f4;--colors-purple-light-7: #d1afec;--colors-purple-light-8: #be93e4;--colors-purple-light-9: #8e4ec6;--colors-purple-light-10: #8347b9;--colors-purple-light-11: #8145b5;--colors-purple-light-12: #402060;--colors-purple-light-a-1: #aa00aa03;--colors-purple-light-a-2: #8000e008;--colors-purple-light-a-3: #8e00f112;--colors-purple-light-a-4: #8d00e51d;--colors-purple-light-a-5: #8000db2a;--colors-purple-light-a-6: #7a01d03b;--colors-purple-light-a-7: #6d00c350;--colors-purple-light-a-8: #6600c06c;--colors-purple-light-a-9: #5c00adb1;--colors-purple-light-a-10: #53009eb8;--colors-purple-light-a-11: #52009aba;--colors-purple-light-a-12: #250049df;--colors-purple-light-p3-1: color(display-p3 .995 .988 .996);--colors-purple-light-p3-2: color(display-p3 .983 .971 .993);--colors-purple-light-p3-3: color(display-p3 .963 .931 .989);--colors-purple-light-p3-4: color(display-p3 .937 .888 .981);--colors-purple-light-p3-5: color(display-p3 .904 .837 .966);--colors-purple-light-p3-6: color(display-p3 .86 .774 .942);--colors-purple-light-p3-7: color(display-p3 .799 .69 .91);--colors-purple-light-p3-8: color(display-p3 .719 .583 .874);--colors-purple-light-p3-9: color(display-p3 .523 .318 .751);--colors-purple-light-p3-10: color(display-p3 .483 .289 .7);--colors-purple-light-p3-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-12: color(display-p3 .234 .132 .363);--colors-purple-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-purple-light-p3-a-2: color(display-p3 .443 .024 .722 / .028);--colors-purple-light-p3-a-3: color(display-p3 .506 .008 .835 / .071);--colors-purple-light-p3-a-4: color(display-p3 .451 .004 .831 / .114);--colors-purple-light-p3-a-5: color(display-p3 .431 .004 .788 / .165);--colors-purple-light-p3-a-6: color(display-p3 .384 .004 .745 / .228);--colors-purple-light-p3-a-7: color(display-p3 .357 .004 .71 / .31);--colors-purple-light-p3-a-8: color(display-p3 .322 .004 .702 / .416);--colors-purple-light-p3-a-9: color(display-p3 .298 0 .639 / .683);--colors-purple-light-p3-a-10: color(display-p3 .271 0 .58 / .71);--colors-purple-light-p3-a-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-a-12: color(display-p3 .234 .132 .363);--colors-purple-dark-1: #18111b;--colors-purple-dark-2: #1e1523;--colors-purple-dark-3: #301c3b;--colors-purple-dark-4: #3d224e;--colors-purple-dark-5: #48295c;--colors-purple-dark-6: #54346b;--colors-purple-dark-7: #664282;--colors-purple-dark-8: #8457aa;--colors-purple-dark-9: #8e4ec6;--colors-purple-dark-10: #9a5cd0;--colors-purple-dark-11: #d19dff;--colors-purple-dark-12: #ecd9fa;--colors-purple-dark-a-1: #b412f90b;--colors-purple-dark-a-2: #b744f714;--colors-purple-dark-a-3: #c150ff2d;--colors-purple-dark-a-4: #bb53fd42;--colors-purple-dark-a-5: #be5cfd51;--colors-purple-dark-a-6: #c16dfd61;--colors-purple-dark-a-7: #c378fd7a;--colors-purple-dark-a-8: #c47effa4;--colors-purple-dark-a-9: #b661ffc2;--colors-purple-dark-a-10: #bc6fffcd;--colors-purple-dark-a-11: #d19dff;--colors-purple-dark-a-12: #f1ddfffa;--colors-purple-dark-p3-1: color(display-p3 .09 .068 .103);--colors-purple-dark-p3-2: color(display-p3 .113 .082 .134);--colors-purple-dark-p3-3: color(display-p3 .175 .112 .224);--colors-purple-dark-p3-4: color(display-p3 .224 .137 .297);--colors-purple-dark-p3-5: color(display-p3 .264 .167 .349);--colors-purple-dark-p3-6: color(display-p3 .311 .208 .406);--colors-purple-dark-p3-7: color(display-p3 .381 .266 .496);--colors-purple-dark-p3-8: color(display-p3 .49 .349 .649);--colors-purple-dark-p3-9: color(display-p3 .523 .318 .751);--colors-purple-dark-p3-10: color(display-p3 .57 .373 .791);--colors-purple-dark-p3-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-12: color(display-p3 .913 .854 .971);--colors-purple-dark-p3-a-1: color(display-p3 .686 .071 .996 / .038);--colors-purple-dark-p3-a-2: color(display-p3 .722 .286 .996 / .072);--colors-purple-dark-p3-a-3: color(display-p3 .718 .349 .996 / .169);--colors-purple-dark-p3-a-4: color(display-p3 .702 .353 1 / .248);--colors-purple-dark-p3-a-5: color(display-p3 .718 .404 1 / .303);--colors-purple-dark-p3-a-6: color(display-p3 .733 .455 1 / .366);--colors-purple-dark-p3-a-7: color(display-p3 .753 .506 1 / .458);--colors-purple-dark-p3-a-8: color(display-p3 .749 .522 1 / .622);--colors-purple-dark-p3-a-9: color(display-p3 .686 .408 1 / .736);--colors-purple-dark-p3-a-10: color(display-p3 .71 .459 1 / .778);--colors-purple-dark-p3-a-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-a-12: color(display-p3 .913 .854 .971);--colors-purple-a-1: var(--colors-purple-light-a-1);--colors-purple-a-2: var(--colors-purple-light-a-2);--colors-purple-a-3: var(--colors-purple-light-a-3);--colors-purple-a-4: var(--colors-purple-light-a-4);--colors-purple-a-5: var(--colors-purple-light-a-5);--colors-purple-a-6: var(--colors-purple-light-a-6);--colors-purple-a-7: var(--colors-purple-light-a-7);--colors-purple-a-8: var(--colors-purple-light-a-8);--colors-purple-a-9: var(--colors-purple-light-a-9);--colors-purple-a-10: var(--colors-purple-light-a-10);--colors-purple-a-11: var(--colors-purple-light-a-11);--colors-purple-a-12: var(--colors-purple-light-a-12);--colors-purple-p3-1: var(--colors-purple-light-p3-1);--colors-purple-p3-2: var(--colors-purple-light-p3-2);--colors-purple-p3-3: var(--colors-purple-light-p3-3);--colors-purple-p3-4: var(--colors-purple-light-p3-4);--colors-purple-p3-5: var(--colors-purple-light-p3-5);--colors-purple-p3-6: var(--colors-purple-light-p3-6);--colors-purple-p3-7: var(--colors-purple-light-p3-7);--colors-purple-p3-8: var(--colors-purple-light-p3-8);--colors-purple-p3-9: var(--colors-purple-light-p3-9);--colors-purple-p3-10: var(--colors-purple-light-p3-10);--colors-purple-p3-11: var(--colors-purple-light-p3-11);--colors-purple-p3-12: var(--colors-purple-light-p3-12);--colors-purple-p3-a-1: var(--colors-purple-light-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-light-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-light-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-light-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-light-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-light-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-light-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-light-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-light-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-light-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-light-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-light-p3-a-12);--colors-red-1: var(--colors-red-light-1);--colors-red-2: var(--colors-red-light-2);--colors-red-3: var(--colors-red-light-3);--colors-red-4: var(--colors-red-light-4);--colors-red-5: var(--colors-red-light-5);--colors-red-6: var(--colors-red-light-6);--colors-red-7: var(--colors-red-light-7);--colors-red-8: var(--colors-red-light-8);--colors-red-9: var(--colors-red-light-9);--colors-red-10: var(--colors-red-light-10);--colors-red-11: var(--colors-red-light-11);--colors-red-12: var(--colors-red-light-12);--colors-red-light-1: #fffcfc;--colors-red-light-2: #fff7f7;--colors-red-light-3: #feebec;--colors-red-light-4: #ffdbdc;--colors-red-light-5: #ffcdce;--colors-red-light-6: #fdbdbe;--colors-red-light-7: #f4a9aa;--colors-red-light-8: #eb8e90;--colors-red-light-9: #e5484d;--colors-red-light-10: #dc3e42;--colors-red-light-11: #ce2c31;--colors-red-light-12: #641723;--colors-red-light-a-1: #ff000003;--colors-red-light-a-2: #ff000008;--colors-red-light-a-3: #f3000d14;--colors-red-light-a-4: #ff000824;--colors-red-light-a-5: #ff000632;--colors-red-light-a-6: #f8000442;--colors-red-light-a-7: #df000356;--colors-red-light-a-8: #d2000571;--colors-red-light-a-9: #db0007b7;--colors-red-light-a-10: #d10005c1;--colors-red-light-a-11: #c40006d3;--colors-red-light-a-12: #55000de8;--colors-red-light-p3-1: color(display-p3 .998 .989 .988);--colors-red-light-p3-2: color(display-p3 .995 .971 .971);--colors-red-light-p3-3: color(display-p3 .985 .925 .925);--colors-red-light-p3-4: color(display-p3 .999 .866 .866);--colors-red-light-p3-5: color(display-p3 .984 .812 .811);--colors-red-light-p3-6: color(display-p3 .955 .751 .749);--colors-red-light-p3-7: color(display-p3 .915 .675 .672);--colors-red-light-p3-8: color(display-p3 .872 .575 .572);--colors-red-light-p3-9: color(display-p3 .83 .329 .324);--colors-red-light-p3-10: color(display-p3 .798 .294 .285);--colors-red-light-p3-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-12: color(display-p3 .36 .115 .143);--colors-red-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-red-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-red-light-p3-a-3: color(display-p3 .792 .008 .008 / .075);--colors-red-light-p3-a-4: color(display-p3 1 .008 .008 / .134);--colors-red-light-p3-a-5: color(display-p3 .918 .008 .008 / .189);--colors-red-light-p3-a-6: color(display-p3 .831 .02 .004 / .251);--colors-red-light-p3-a-7: color(display-p3 .741 .016 .004 / .33);--colors-red-light-p3-a-8: color(display-p3 .698 .012 .004 / .428);--colors-red-light-p3-a-9: color(display-p3 .749 .008 0 / .675);--colors-red-light-p3-a-10: color(display-p3 .714 .012 0 / .714);--colors-red-light-p3-a-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-a-12: color(display-p3 .36 .115 .143);--colors-red-dark-1: #191111;--colors-red-dark-2: #201314;--colors-red-dark-3: #3b1219;--colors-red-dark-4: #500f1c;--colors-red-dark-5: #611623;--colors-red-dark-6: #72232d;--colors-red-dark-7: #8c333a;--colors-red-dark-8: #b54548;--colors-red-dark-9: #e5484d;--colors-red-dark-10: #ec5d5e;--colors-red-dark-11: #ff9592;--colors-red-dark-12: #ffd1d9;--colors-red-dark-a-1: #f4121209;--colors-red-dark-a-2: #f22f3e11;--colors-red-dark-a-3: #ff173f2d;--colors-red-dark-a-4: #fe0a3b44;--colors-red-dark-a-5: #ff204756;--colors-red-dark-a-6: #ff3e5668;--colors-red-dark-a-7: #ff536184;--colors-red-dark-a-8: #ff5d61b0;--colors-red-dark-a-9: #fe4e54e4;--colors-red-dark-a-10: #ff6465eb;--colors-red-dark-a-11: #ff9592;--colors-red-dark-a-12: #ffd1d9;--colors-red-dark-p3-1: color(display-p3 .093 .068 .067);--colors-red-dark-p3-2: color(display-p3 .118 .077 .079);--colors-red-dark-p3-3: color(display-p3 .211 .081 .099);--colors-red-dark-p3-4: color(display-p3 .287 .079 .113);--colors-red-dark-p3-5: color(display-p3 .348 .11 .142);--colors-red-dark-p3-6: color(display-p3 .414 .16 .183);--colors-red-dark-p3-7: color(display-p3 .508 .224 .236);--colors-red-dark-p3-8: color(display-p3 .659 .298 .297);--colors-red-dark-p3-9: color(display-p3 .83 .329 .324);--colors-red-dark-p3-10: color(display-p3 .861 .403 .387);--colors-red-dark-p3-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-12: color(display-p3 .971 .826 .852);--colors-red-dark-p3-a-1: color(display-p3 .984 .071 .071 / .03);--colors-red-dark-p3-a-2: color(display-p3 .996 .282 .282 / .055);--colors-red-dark-p3-a-3: color(display-p3 1 .169 .271 / .156);--colors-red-dark-p3-a-4: color(display-p3 1 .118 .267 / .236);--colors-red-dark-p3-a-5: color(display-p3 1 .212 .314 / .303);--colors-red-dark-p3-a-6: color(display-p3 1 .318 .38 / .374);--colors-red-dark-p3-a-7: color(display-p3 1 .4 .424 / .475);--colors-red-dark-p3-a-8: color(display-p3 1 .431 .431 / .635);--colors-red-dark-p3-a-9: color(display-p3 1 .388 .384 / .82);--colors-red-dark-p3-a-10: color(display-p3 1 .463 .447 / .853);--colors-red-dark-p3-a-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-a-12: color(display-p3 .971 .826 .852);--colors-red-a-1: var(--colors-red-light-a-1);--colors-red-a-2: var(--colors-red-light-a-2);--colors-red-a-3: var(--colors-red-light-a-3);--colors-red-a-4: var(--colors-red-light-a-4);--colors-red-a-5: var(--colors-red-light-a-5);--colors-red-a-6: var(--colors-red-light-a-6);--colors-red-a-7: var(--colors-red-light-a-7);--colors-red-a-8: var(--colors-red-light-a-8);--colors-red-a-9: var(--colors-red-light-a-9);--colors-red-a-10: var(--colors-red-light-a-10);--colors-red-a-11: var(--colors-red-light-a-11);--colors-red-a-12: var(--colors-red-light-a-12);--colors-red-p3-1: var(--colors-red-light-p3-1);--colors-red-p3-2: var(--colors-red-light-p3-2);--colors-red-p3-3: var(--colors-red-light-p3-3);--colors-red-p3-4: var(--colors-red-light-p3-4);--colors-red-p3-5: var(--colors-red-light-p3-5);--colors-red-p3-6: var(--colors-red-light-p3-6);--colors-red-p3-7: var(--colors-red-light-p3-7);--colors-red-p3-8: var(--colors-red-light-p3-8);--colors-red-p3-9: var(--colors-red-light-p3-9);--colors-red-p3-10: var(--colors-red-light-p3-10);--colors-red-p3-11: var(--colors-red-light-p3-11);--colors-red-p3-12: var(--colors-red-light-p3-12);--colors-red-p3-a-1: var(--colors-red-light-p3-a-1);--colors-red-p3-a-2: var(--colors-red-light-p3-a-2);--colors-red-p3-a-3: var(--colors-red-light-p3-a-3);--colors-red-p3-a-4: var(--colors-red-light-p3-a-4);--colors-red-p3-a-5: var(--colors-red-light-p3-a-5);--colors-red-p3-a-6: var(--colors-red-light-p3-a-6);--colors-red-p3-a-7: var(--colors-red-light-p3-a-7);--colors-red-p3-a-8: var(--colors-red-light-p3-a-8);--colors-red-p3-a-9: var(--colors-red-light-p3-a-9);--colors-red-p3-a-10: var(--colors-red-light-p3-a-10);--colors-red-p3-a-11: var(--colors-red-light-p3-a-11);--colors-red-p3-a-12: var(--colors-red-light-p3-a-12);--colors-ruby-1: var(--colors-ruby-light-1);--colors-ruby-2: var(--colors-ruby-light-2);--colors-ruby-3: var(--colors-ruby-light-3);--colors-ruby-4: var(--colors-ruby-light-4);--colors-ruby-5: var(--colors-ruby-light-5);--colors-ruby-6: var(--colors-ruby-light-6);--colors-ruby-7: var(--colors-ruby-light-7);--colors-ruby-8: var(--colors-ruby-light-8);--colors-ruby-9: var(--colors-ruby-light-9);--colors-ruby-10: var(--colors-ruby-light-10);--colors-ruby-11: var(--colors-ruby-light-11);--colors-ruby-12: var(--colors-ruby-light-12);--colors-ruby-light-1: #fffcfd;--colors-ruby-light-2: #fff7f8;--colors-ruby-light-3: #feeaed;--colors-ruby-light-4: #ffdce1;--colors-ruby-light-5: #ffced6;--colors-ruby-light-6: #f8bfc8;--colors-ruby-light-7: #efacb8;--colors-ruby-light-8: #e592a3;--colors-ruby-light-9: #e54666;--colors-ruby-light-10: #dc3b5d;--colors-ruby-light-11: #ca244d;--colors-ruby-light-12: #64172b;--colors-ruby-light-a-1: #ff005503;--colors-ruby-light-a-2: #ff002008;--colors-ruby-light-a-3: #f3002515;--colors-ruby-light-a-4: #ff002523;--colors-ruby-light-a-5: #ff002a31;--colors-ruby-light-a-6: #e4002440;--colors-ruby-light-a-7: #ce002553;--colors-ruby-light-a-8: #c300286d;--colors-ruby-light-a-9: #db002cb9;--colors-ruby-light-a-10: #d2002cc4;--colors-ruby-light-a-11: #c10030db;--colors-ruby-light-a-12: #550016e8;--colors-ruby-light-p3-1: color(display-p3 .998 .989 .992);--colors-ruby-light-p3-2: color(display-p3 .995 .971 .974);--colors-ruby-light-p3-3: color(display-p3 .983 .92 .928);--colors-ruby-light-p3-4: color(display-p3 .987 .869 .885);--colors-ruby-light-p3-5: color(display-p3 .968 .817 .839);--colors-ruby-light-p3-6: color(display-p3 .937 .758 .786);--colors-ruby-light-p3-7: color(display-p3 .897 .685 .721);--colors-ruby-light-p3-8: color(display-p3 .851 .588 .639);--colors-ruby-light-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-light-p3-10: color(display-p3 .795 .286 .375);--colors-ruby-light-p3-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-12: color(display-p3 .36 .115 .171);--colors-ruby-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-ruby-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-ruby-light-p3-a-3: color(display-p3 .804 .008 .11 / .079);--colors-ruby-light-p3-a-4: color(display-p3 .91 .008 .125 / .13);--colors-ruby-light-p3-a-5: color(display-p3 .831 .004 .133 / .185);--colors-ruby-light-p3-a-6: color(display-p3 .745 .004 .118 / .244);--colors-ruby-light-p3-a-7: color(display-p3 .678 .004 .114 / .314);--colors-ruby-light-p3-a-8: color(display-p3 .639 .004 .125 / .412);--colors-ruby-light-p3-a-9: color(display-p3 .753 0 .129 / .679);--colors-ruby-light-p3-a-10: color(display-p3 .714 0 .125 / .714);--colors-ruby-light-p3-a-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-a-12: color(display-p3 .36 .115 .171);--colors-ruby-dark-1: #191113;--colors-ruby-dark-2: #1e1517;--colors-ruby-dark-3: #3a141e;--colors-ruby-dark-4: #4e1325;--colors-ruby-dark-5: #5e1a2e;--colors-ruby-dark-6: #6f2539;--colors-ruby-dark-7: #883447;--colors-ruby-dark-8: #b3445a;--colors-ruby-dark-9: #e54666;--colors-ruby-dark-10: #ec5a72;--colors-ruby-dark-11: #ff949d;--colors-ruby-dark-12: #fed2e1;--colors-ruby-dark-a-1: #f4124a09;--colors-ruby-dark-a-2: #fe5a7f0e;--colors-ruby-dark-a-3: #ff235d2c;--colors-ruby-dark-a-4: #fd195e42;--colors-ruby-dark-a-5: #fe2d6b53;--colors-ruby-dark-a-6: #ff447665;--colors-ruby-dark-a-7: #ff577d80;--colors-ruby-dark-a-8: #ff5c7cae;--colors-ruby-dark-a-9: #fe4c70e4;--colors-ruby-dark-a-10: #ff617beb;--colors-ruby-dark-a-11: #ff949d;--colors-ruby-dark-a-12: #ffd3e2fe;--colors-ruby-dark-p3-1: color(display-p3 .093 .068 .074);--colors-ruby-dark-p3-2: color(display-p3 .113 .083 .089);--colors-ruby-dark-p3-3: color(display-p3 .208 .088 .117);--colors-ruby-dark-p3-4: color(display-p3 .279 .092 .147);--colors-ruby-dark-p3-5: color(display-p3 .337 .12 .18);--colors-ruby-dark-p3-6: color(display-p3 .401 .166 .223);--colors-ruby-dark-p3-7: color(display-p3 .495 .224 .281);--colors-ruby-dark-p3-8: color(display-p3 .652 .295 .359);--colors-ruby-dark-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-dark-p3-10: color(display-p3 .857 .392 .455);--colors-ruby-dark-p3-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-12: color(display-p3 .968 .83 .88);--colors-ruby-dark-p3-a-1: color(display-p3 .984 .071 .329 / .03);--colors-ruby-dark-p3-a-2: color(display-p3 .992 .376 .529 / .051);--colors-ruby-dark-p3-a-3: color(display-p3 .996 .196 .404 / .152);--colors-ruby-dark-p3-a-4: color(display-p3 1 .173 .416 / .227);--colors-ruby-dark-p3-a-5: color(display-p3 1 .259 .459 / .29);--colors-ruby-dark-p3-a-6: color(display-p3 1 .341 .506 / .358);--colors-ruby-dark-p3-a-7: color(display-p3 1 .412 .541 / .458);--colors-ruby-dark-p3-a-8: color(display-p3 1 .431 .537 / .627);--colors-ruby-dark-p3-a-9: color(display-p3 1 .376 .482 / .82);--colors-ruby-dark-p3-a-10: color(display-p3 1 .447 .522 / .849);--colors-ruby-dark-p3-a-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-a-12: color(display-p3 .968 .83 .88);--colors-ruby-a-1: var(--colors-ruby-light-a-1);--colors-ruby-a-2: var(--colors-ruby-light-a-2);--colors-ruby-a-3: var(--colors-ruby-light-a-3);--colors-ruby-a-4: var(--colors-ruby-light-a-4);--colors-ruby-a-5: var(--colors-ruby-light-a-5);--colors-ruby-a-6: var(--colors-ruby-light-a-6);--colors-ruby-a-7: var(--colors-ruby-light-a-7);--colors-ruby-a-8: var(--colors-ruby-light-a-8);--colors-ruby-a-9: var(--colors-ruby-light-a-9);--colors-ruby-a-10: var(--colors-ruby-light-a-10);--colors-ruby-a-11: var(--colors-ruby-light-a-11);--colors-ruby-a-12: var(--colors-ruby-light-a-12);--colors-ruby-p3-1: var(--colors-ruby-light-p3-1);--colors-ruby-p3-2: var(--colors-ruby-light-p3-2);--colors-ruby-p3-3: var(--colors-ruby-light-p3-3);--colors-ruby-p3-4: var(--colors-ruby-light-p3-4);--colors-ruby-p3-5: var(--colors-ruby-light-p3-5);--colors-ruby-p3-6: var(--colors-ruby-light-p3-6);--colors-ruby-p3-7: var(--colors-ruby-light-p3-7);--colors-ruby-p3-8: var(--colors-ruby-light-p3-8);--colors-ruby-p3-9: var(--colors-ruby-light-p3-9);--colors-ruby-p3-10: var(--colors-ruby-light-p3-10);--colors-ruby-p3-11: var(--colors-ruby-light-p3-11);--colors-ruby-p3-12: var(--colors-ruby-light-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-light-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-light-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-light-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-light-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-light-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-light-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-light-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-light-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-light-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-light-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-light-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-light-p3-a-12);--colors-teal-1: var(--colors-teal-light-1);--colors-teal-2: var(--colors-teal-light-2);--colors-teal-3: var(--colors-teal-light-3);--colors-teal-4: var(--colors-teal-light-4);--colors-teal-5: var(--colors-teal-light-5);--colors-teal-6: var(--colors-teal-light-6);--colors-teal-7: var(--colors-teal-light-7);--colors-teal-8: var(--colors-teal-light-8);--colors-teal-9: var(--colors-teal-light-9);--colors-teal-10: var(--colors-teal-light-10);--colors-teal-11: var(--colors-teal-light-11);--colors-teal-12: var(--colors-teal-light-12);--colors-teal-light-1: #fafefd;--colors-teal-light-2: #f3fbf9;--colors-teal-light-3: #e0f8f3;--colors-teal-light-4: #ccf3ea;--colors-teal-light-5: #b8eae0;--colors-teal-light-6: #a1ded2;--colors-teal-light-7: #83cdc1;--colors-teal-light-8: #53b9ab;--colors-teal-light-9: #12a594;--colors-teal-light-10: #0d9b8a;--colors-teal-light-11: #008573;--colors-teal-light-12: #0d3d38;--colors-teal-light-a-1: #00cc9905;--colors-teal-light-a-2: #00aa800c;--colors-teal-light-a-3: #00c69d1f;--colors-teal-light-a-4: #00c39633;--colors-teal-light-a-5: #00b49047;--colors-teal-light-a-6: #00a6855e;--colors-teal-light-a-7: #0099807c;--colors-teal-light-a-8: #009783ac;--colors-teal-light-a-9: #009e8ced;--colors-teal-light-a-10: #009684f2;--colors-teal-light-a-11: #008573;--colors-teal-light-a-12: #00332df2;--colors-teal-light-p3-1: color(display-p3 .983 .996 .992);--colors-teal-light-p3-2: color(display-p3 .958 .983 .976);--colors-teal-light-p3-3: color(display-p3 .895 .971 .952);--colors-teal-light-p3-4: color(display-p3 .831 .949 .92);--colors-teal-light-p3-5: color(display-p3 .761 .914 .878);--colors-teal-light-p3-6: color(display-p3 .682 .864 .825);--colors-teal-light-p3-7: color(display-p3 .581 .798 .756);--colors-teal-light-p3-8: color(display-p3 .433 .716 .671);--colors-teal-light-p3-9: color(display-p3 .297 .637 .581);--colors-teal-light-p3-10: color(display-p3 .275 .599 .542);--colors-teal-light-p3-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-12: color(display-p3 .11 .235 .219);--colors-teal-light-p3-a-1: color(display-p3 .024 .757 .514 / .016);--colors-teal-light-p3-a-2: color(display-p3 .02 .647 .467 / .044);--colors-teal-light-p3-a-3: color(display-p3 .004 .741 .557 / .106);--colors-teal-light-p3-a-4: color(display-p3 .004 .702 .537 / .169);--colors-teal-light-p3-a-5: color(display-p3 .004 .643 .494 / .24);--colors-teal-light-p3-a-6: color(display-p3 .004 .569 .447 / .318);--colors-teal-light-p3-a-7: color(display-p3 .004 .518 .424 / .42);--colors-teal-light-p3-a-8: color(display-p3 0 .506 .424 / .569);--colors-teal-light-p3-a-9: color(display-p3 0 .482 .404 / .702);--colors-teal-light-p3-a-10: color(display-p3 0 .451 .369 / .726);--colors-teal-light-p3-a-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-a-12: color(display-p3 .11 .235 .219);--colors-teal-dark-1: #0d1514;--colors-teal-dark-2: #111c1b;--colors-teal-dark-3: #0d2d2a;--colors-teal-dark-4: #023b37;--colors-teal-dark-5: #084843;--colors-teal-dark-6: #145750;--colors-teal-dark-7: #1c6961;--colors-teal-dark-8: #207e73;--colors-teal-dark-9: #12a594;--colors-teal-dark-10: #0eb39e;--colors-teal-dark-11: #0bd8b6;--colors-teal-dark-12: #adf0dd;--colors-teal-dark-a-1: #00deab05;--colors-teal-dark-a-2: #12fbe60c;--colors-teal-dark-a-3: #00ffe61e;--colors-teal-dark-a-4: #00ffe92d;--colors-teal-dark-a-5: #00ffea3b;--colors-teal-dark-a-6: #1cffe84b;--colors-teal-dark-a-7: #2efde85f;--colors-teal-dark-a-8: #32ffe775;--colors-teal-dark-a-9: #13ffe49f;--colors-teal-dark-a-10: #0dffe0ae;--colors-teal-dark-a-11: #0afed5d6;--colors-teal-dark-a-12: #b8ffebef;--colors-teal-dark-p3-1: color(display-p3 .059 .083 .079);--colors-teal-dark-p3-2: color(display-p3 .075 .11 .107);--colors-teal-dark-p3-3: color(display-p3 .087 .175 .165);--colors-teal-dark-p3-4: color(display-p3 .087 .227 .214);--colors-teal-dark-p3-5: color(display-p3 .12 .277 .261);--colors-teal-dark-p3-6: color(display-p3 .162 .335 .314);--colors-teal-dark-p3-7: color(display-p3 .205 .406 .379);--colors-teal-dark-p3-8: color(display-p3 .245 .489 .453);--colors-teal-dark-p3-9: color(display-p3 .297 .637 .581);--colors-teal-dark-p3-10: color(display-p3 .319 .69 .62);--colors-teal-dark-p3-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-12: color(display-p3 .734 .934 .87);--colors-teal-dark-p3-a-1: color(display-p3 0 .992 .761 / .017);--colors-teal-dark-p3-a-2: color(display-p3 .235 .988 .902 / .047);--colors-teal-dark-p3-a-3: color(display-p3 .235 1 .898 / .118);--colors-teal-dark-p3-a-4: color(display-p3 .18 .996 .929 / .173);--colors-teal-dark-p3-a-5: color(display-p3 .31 1 .933 / .227);--colors-teal-dark-p3-a-6: color(display-p3 .396 1 .933 / .286);--colors-teal-dark-p3-a-7: color(display-p3 .443 1 .925 / .366);--colors-teal-dark-p3-a-8: color(display-p3 .459 1 .925 / .454);--colors-teal-dark-p3-a-9: color(display-p3 .443 .996 .906 / .61);--colors-teal-dark-p3-a-10: color(display-p3 .439 .996 .89 / .669);--colors-teal-dark-p3-a-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-a-12: color(display-p3 .734 .934 .87);--colors-teal-a-1: var(--colors-teal-light-a-1);--colors-teal-a-2: var(--colors-teal-light-a-2);--colors-teal-a-3: var(--colors-teal-light-a-3);--colors-teal-a-4: var(--colors-teal-light-a-4);--colors-teal-a-5: var(--colors-teal-light-a-5);--colors-teal-a-6: var(--colors-teal-light-a-6);--colors-teal-a-7: var(--colors-teal-light-a-7);--colors-teal-a-8: var(--colors-teal-light-a-8);--colors-teal-a-9: var(--colors-teal-light-a-9);--colors-teal-a-10: var(--colors-teal-light-a-10);--colors-teal-a-11: var(--colors-teal-light-a-11);--colors-teal-a-12: var(--colors-teal-light-a-12);--colors-teal-p3-1: var(--colors-teal-light-p3-1);--colors-teal-p3-2: var(--colors-teal-light-p3-2);--colors-teal-p3-3: var(--colors-teal-light-p3-3);--colors-teal-p3-4: var(--colors-teal-light-p3-4);--colors-teal-p3-5: var(--colors-teal-light-p3-5);--colors-teal-p3-6: var(--colors-teal-light-p3-6);--colors-teal-p3-7: var(--colors-teal-light-p3-7);--colors-teal-p3-8: var(--colors-teal-light-p3-8);--colors-teal-p3-9: var(--colors-teal-light-p3-9);--colors-teal-p3-10: var(--colors-teal-light-p3-10);--colors-teal-p3-11: var(--colors-teal-light-p3-11);--colors-teal-p3-12: var(--colors-teal-light-p3-12);--colors-teal-p3-a-1: var(--colors-teal-light-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-light-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-light-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-light-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-light-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-light-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-light-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-light-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-light-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-light-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-light-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-light-p3-a-12);--colors-tomato-1: var(--colors-tomato-light-1);--colors-tomato-2: var(--colors-tomato-light-2);--colors-tomato-3: var(--colors-tomato-light-3);--colors-tomato-4: var(--colors-tomato-light-4);--colors-tomato-5: var(--colors-tomato-light-5);--colors-tomato-6: var(--colors-tomato-light-6);--colors-tomato-7: var(--colors-tomato-light-7);--colors-tomato-8: var(--colors-tomato-light-8);--colors-tomato-9: var(--colors-tomato-light-9);--colors-tomato-10: var(--colors-tomato-light-10);--colors-tomato-11: var(--colors-tomato-light-11);--colors-tomato-12: var(--colors-tomato-light-12);--colors-tomato-light-1: #fffcfc;--colors-tomato-light-2: #fff8f7;--colors-tomato-light-3: #feebe7;--colors-tomato-light-4: #ffdcd3;--colors-tomato-light-5: #ffcdc2;--colors-tomato-light-6: #fdbdaf;--colors-tomato-light-7: #f5a898;--colors-tomato-light-8: #ec8e7b;--colors-tomato-light-9: #e54d2e;--colors-tomato-light-10: #dd4425;--colors-tomato-light-11: #d13415;--colors-tomato-light-12: #5c271f;--colors-tomato-light-a-1: #ff000003;--colors-tomato-light-a-2: #ff200008;--colors-tomato-light-a-3: #f52b0018;--colors-tomato-light-a-4: #ff35002c;--colors-tomato-light-a-5: #ff2e003d;--colors-tomato-light-a-6: #f92d0050;--colors-tomato-light-a-7: #e7280067;--colors-tomato-light-a-8: #db250084;--colors-tomato-light-a-9: #df2600d1;--colors-tomato-light-a-10: #d72400da;--colors-tomato-light-a-11: #cd2200ea;--colors-tomato-light-a-12: #460900e0;--colors-tomato-light-p3-1: color(display-p3 .998 .989 .988);--colors-tomato-light-p3-2: color(display-p3 .994 .974 .969);--colors-tomato-light-p3-3: color(display-p3 .985 .924 .909);--colors-tomato-light-p3-4: color(display-p3 .996 .868 .835);--colors-tomato-light-p3-5: color(display-p3 .98 .812 .77);--colors-tomato-light-p3-6: color(display-p3 .953 .75 .698);--colors-tomato-light-p3-7: color(display-p3 .917 .673 .611);--colors-tomato-light-p3-8: color(display-p3 .875 .575 .502);--colors-tomato-light-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-light-p3-10: color(display-p3 .802 .313 .2);--colors-tomato-light-p3-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-12: color(display-p3 .335 .165 .132);--colors-tomato-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-tomato-light-p3-a-2: color(display-p3 .757 .145 .02 / .032);--colors-tomato-light-p3-a-3: color(display-p3 .831 .184 .012 / .091);--colors-tomato-light-p3-a-4: color(display-p3 .976 .192 .004 / .165);--colors-tomato-light-p3-a-5: color(display-p3 .918 .192 .004 / .232);--colors-tomato-light-p3-a-6: color(display-p3 .847 .173 .004 / .302);--colors-tomato-light-p3-a-7: color(display-p3 .788 .165 .004 / .389);--colors-tomato-light-p3-a-8: color(display-p3 .749 .153 .004 / .499);--colors-tomato-light-p3-a-9: color(display-p3 .78 .149 0 / .769);--colors-tomato-light-p3-a-10: color(display-p3 .757 .141 0 / .8);--colors-tomato-light-p3-a-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-a-12: color(display-p3 .335 .165 .132);--colors-tomato-dark-1: #181111;--colors-tomato-dark-2: #1f1513;--colors-tomato-dark-3: #391714;--colors-tomato-dark-4: #4e1511;--colors-tomato-dark-5: #5e1c16;--colors-tomato-dark-6: #6e2920;--colors-tomato-dark-7: #853a2d;--colors-tomato-dark-8: #ac4d39;--colors-tomato-dark-9: #e54d2e;--colors-tomato-dark-10: #ec6142;--colors-tomato-dark-11: #ff977d;--colors-tomato-dark-12: #fbd3cb;--colors-tomato-dark-a-1: #f1121208;--colors-tomato-dark-a-2: #ff55330f;--colors-tomato-dark-a-3: #ff35232b;--colors-tomato-dark-a-4: #fd201142;--colors-tomato-dark-a-5: #fe332153;--colors-tomato-dark-a-6: #ff4f3864;--colors-tomato-dark-a-7: #fd644a7d;--colors-tomato-dark-a-8: #fe6d4ea7;--colors-tomato-dark-a-9: #fe5431e4;--colors-tomato-dark-a-10: #ff6847eb;--colors-tomato-dark-a-11: #ff977d;--colors-tomato-dark-a-12: #ffd6cefb;--colors-tomato-dark-p3-1: color(display-p3 .09 .068 .067);--colors-tomato-dark-p3-2: color(display-p3 .115 .084 .076);--colors-tomato-dark-p3-3: color(display-p3 .205 .097 .083);--colors-tomato-dark-p3-4: color(display-p3 .282 .099 .077);--colors-tomato-dark-p3-5: color(display-p3 .339 .129 .101);--colors-tomato-dark-p3-6: color(display-p3 .398 .179 .141);--colors-tomato-dark-p3-7: color(display-p3 .487 .245 .194);--colors-tomato-dark-p3-8: color(display-p3 .629 .322 .248);--colors-tomato-dark-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-dark-p3-10: color(display-p3 .862 .415 .298);--colors-tomato-dark-p3-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-12: color(display-p3 .959 .833 .802);--colors-tomato-dark-p3-a-1: color(display-p3 .973 .071 .071 / .026);--colors-tomato-dark-p3-a-2: color(display-p3 .992 .376 .224 / .051);--colors-tomato-dark-p3-a-3: color(display-p3 .996 .282 .176 / .148);--colors-tomato-dark-p3-a-4: color(display-p3 1 .204 .118 / .232);--colors-tomato-dark-p3-a-5: color(display-p3 1 .286 .192 / .29);--colors-tomato-dark-p3-a-6: color(display-p3 1 .392 .278 / .353);--colors-tomato-dark-p3-a-7: color(display-p3 1 .459 .349 / .45);--colors-tomato-dark-p3-a-8: color(display-p3 1 .49 .369 / .601);--colors-tomato-dark-p3-a-9: color(display-p3 1 .408 .267 / .82);--colors-tomato-dark-p3-a-10: color(display-p3 1 .478 .341 / .853);--colors-tomato-dark-p3-a-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-a-12: color(display-p3 .959 .833 .802);--colors-tomato-a-1: var(--colors-tomato-light-a-1);--colors-tomato-a-2: var(--colors-tomato-light-a-2);--colors-tomato-a-3: var(--colors-tomato-light-a-3);--colors-tomato-a-4: var(--colors-tomato-light-a-4);--colors-tomato-a-5: var(--colors-tomato-light-a-5);--colors-tomato-a-6: var(--colors-tomato-light-a-6);--colors-tomato-a-7: var(--colors-tomato-light-a-7);--colors-tomato-a-8: var(--colors-tomato-light-a-8);--colors-tomato-a-9: var(--colors-tomato-light-a-9);--colors-tomato-a-10: var(--colors-tomato-light-a-10);--colors-tomato-a-11: var(--colors-tomato-light-a-11);--colors-tomato-a-12: var(--colors-tomato-light-a-12);--colors-tomato-p3-1: var(--colors-tomato-light-p3-1);--colors-tomato-p3-2: var(--colors-tomato-light-p3-2);--colors-tomato-p3-3: var(--colors-tomato-light-p3-3);--colors-tomato-p3-4: var(--colors-tomato-light-p3-4);--colors-tomato-p3-5: var(--colors-tomato-light-p3-5);--colors-tomato-p3-6: var(--colors-tomato-light-p3-6);--colors-tomato-p3-7: var(--colors-tomato-light-p3-7);--colors-tomato-p3-8: var(--colors-tomato-light-p3-8);--colors-tomato-p3-9: var(--colors-tomato-light-p3-9);--colors-tomato-p3-10: var(--colors-tomato-light-p3-10);--colors-tomato-p3-11: var(--colors-tomato-light-p3-11);--colors-tomato-p3-12: var(--colors-tomato-light-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-light-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-light-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-light-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-light-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-light-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-light-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-light-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-light-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-light-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-light-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-light-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-light-p3-a-12);--colors-violet-1: var(--colors-violet-light-1);--colors-violet-2: var(--colors-violet-light-2);--colors-violet-3: var(--colors-violet-light-3);--colors-violet-4: var(--colors-violet-light-4);--colors-violet-5: var(--colors-violet-light-5);--colors-violet-6: var(--colors-violet-light-6);--colors-violet-7: var(--colors-violet-light-7);--colors-violet-8: var(--colors-violet-light-8);--colors-violet-9: var(--colors-violet-light-9);--colors-violet-10: var(--colors-violet-light-10);--colors-violet-11: var(--colors-violet-light-11);--colors-violet-12: var(--colors-violet-light-12);--colors-violet-light-1: #fdfcfe;--colors-violet-light-2: #faf8ff;--colors-violet-light-3: #f4f0fe;--colors-violet-light-4: #ebe4ff;--colors-violet-light-5: #e1d9ff;--colors-violet-light-6: #d4cafe;--colors-violet-light-7: #c2b5f5;--colors-violet-light-8: #aa99ec;--colors-violet-light-9: #6e56cf;--colors-violet-light-10: #654dc4;--colors-violet-light-11: #6550b9;--colors-violet-light-12: #2f265f;--colors-violet-light-a-1: #5500aa03;--colors-violet-light-a-2: #4900ff07;--colors-violet-light-a-3: #4400ee0f;--colors-violet-light-a-4: #4300ff1b;--colors-violet-light-a-5: #3600ff26;--colors-violet-light-a-6: #3100fb35;--colors-violet-light-a-7: #2d01dd4a;--colors-violet-light-a-8: #2b00d066;--colors-violet-light-a-9: #2400b7a9;--colors-violet-light-a-10: #2300abb2;--colors-violet-light-a-11: #1f0099af;--colors-violet-light-a-12: #0b0043d9;--colors-violet-light-p3-1: color(display-p3 .991 .988 .995);--colors-violet-light-p3-2: color(display-p3 .978 .974 .998);--colors-violet-light-p3-3: color(display-p3 .953 .943 .993);--colors-violet-light-p3-4: color(display-p3 .916 .897 1);--colors-violet-light-p3-5: color(display-p3 .876 .851 1);--colors-violet-light-p3-6: color(display-p3 .825 .793 .981);--colors-violet-light-p3-7: color(display-p3 .752 .712 .943);--colors-violet-light-p3-8: color(display-p3 .654 .602 .902);--colors-violet-light-p3-9: color(display-p3 .417 .341 .784);--colors-violet-light-p3-10: color(display-p3 .381 .306 .741);--colors-violet-light-p3-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-12: color(display-p3 .179 .15 .359);--colors-violet-light-p3-a-1: color(display-p3 .349 .024 .675 / .012);--colors-violet-light-p3-a-2: color(display-p3 .161 .024 .863 / .028);--colors-violet-light-p3-a-3: color(display-p3 .204 .004 .871 / .059);--colors-violet-light-p3-a-4: color(display-p3 .196 .004 1 / .102);--colors-violet-light-p3-a-5: color(display-p3 .165 .008 1 / .15);--colors-violet-light-p3-a-6: color(display-p3 .153 .004 .906 / .208);--colors-violet-light-p3-a-7: color(display-p3 .141 .004 .796 / .287);--colors-violet-light-p3-a-8: color(display-p3 .133 .004 .753 / .397);--colors-violet-light-p3-a-9: color(display-p3 .114 0 .675 / .659);--colors-violet-light-p3-a-10: color(display-p3 .11 0 .627 / .695);--colors-violet-light-p3-a-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-a-12: color(display-p3 .179 .15 .359);--colors-violet-dark-1: #14121f;--colors-violet-dark-2: #1b1525;--colors-violet-dark-3: #291f43;--colors-violet-dark-4: #33255b;--colors-violet-dark-5: #3c2e69;--colors-violet-dark-6: #473876;--colors-violet-dark-7: #56468b;--colors-violet-dark-8: #6958ad;--colors-violet-dark-9: #6e56cf;--colors-violet-dark-10: #7d66d9;--colors-violet-dark-11: #baa7ff;--colors-violet-dark-12: #e2ddfe;--colors-violet-dark-a-1: #4422ff0f;--colors-violet-dark-a-2: #853ff916;--colors-violet-dark-a-3: #8354fe36;--colors-violet-dark-a-4: #7d51fd50;--colors-violet-dark-a-5: #845ffd5f;--colors-violet-dark-a-6: #8f6cfd6d;--colors-violet-dark-a-7: #9879ff83;--colors-violet-dark-a-8: #977dfea8;--colors-violet-dark-a-9: #8668ffcc;--colors-violet-dark-a-10: #9176fed7;--colors-violet-dark-a-11: #baa7ff;--colors-violet-dark-a-12: #e3defffe;--colors-violet-dark-p3-1: color(display-p3 .077 .071 .118);--colors-violet-dark-p3-2: color(display-p3 .101 .084 .141);--colors-violet-dark-p3-3: color(display-p3 .154 .123 .256);--colors-violet-dark-p3-4: color(display-p3 .191 .148 .345);--colors-violet-dark-p3-5: color(display-p3 .226 .182 .396);--colors-violet-dark-p3-6: color(display-p3 .269 .223 .449);--colors-violet-dark-p3-7: color(display-p3 .326 .277 .53);--colors-violet-dark-p3-8: color(display-p3 .399 .346 .656);--colors-violet-dark-p3-9: color(display-p3 .417 .341 .784);--colors-violet-dark-p3-10: color(display-p3 .477 .402 .823);--colors-violet-dark-p3-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-12: color(display-p3 .883 .867 .986);--colors-violet-dark-p3-a-1: color(display-p3 .282 .141 .996 / .055);--colors-violet-dark-p3-a-2: color(display-p3 .51 .263 1 / .08);--colors-violet-dark-p3-a-3: color(display-p3 .494 .337 .996 / .202);--colors-violet-dark-p3-a-4: color(display-p3 .49 .345 1 / .299);--colors-violet-dark-p3-a-5: color(display-p3 .525 .392 1 / .353);--colors-violet-dark-p3-a-6: color(display-p3 .569 .455 1 / .408);--colors-violet-dark-p3-a-7: color(display-p3 .588 .494 1 / .496);--colors-violet-dark-p3-a-8: color(display-p3 .596 .51 1 / .631);--colors-violet-dark-p3-a-9: color(display-p3 .522 .424 1 / .769);--colors-violet-dark-p3-a-10: color(display-p3 .576 .482 1 / .811);--colors-violet-dark-p3-a-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-a-12: color(display-p3 .883 .867 .986);--colors-violet-a-1: var(--colors-violet-light-a-1);--colors-violet-a-2: var(--colors-violet-light-a-2);--colors-violet-a-3: var(--colors-violet-light-a-3);--colors-violet-a-4: var(--colors-violet-light-a-4);--colors-violet-a-5: var(--colors-violet-light-a-5);--colors-violet-a-6: var(--colors-violet-light-a-6);--colors-violet-a-7: var(--colors-violet-light-a-7);--colors-violet-a-8: var(--colors-violet-light-a-8);--colors-violet-a-9: var(--colors-violet-light-a-9);--colors-violet-a-10: var(--colors-violet-light-a-10);--colors-violet-a-11: var(--colors-violet-light-a-11);--colors-violet-a-12: var(--colors-violet-light-a-12);--colors-violet-p3-1: var(--colors-violet-light-p3-1);--colors-violet-p3-2: var(--colors-violet-light-p3-2);--colors-violet-p3-3: var(--colors-violet-light-p3-3);--colors-violet-p3-4: var(--colors-violet-light-p3-4);--colors-violet-p3-5: var(--colors-violet-light-p3-5);--colors-violet-p3-6: var(--colors-violet-light-p3-6);--colors-violet-p3-7: var(--colors-violet-light-p3-7);--colors-violet-p3-8: var(--colors-violet-light-p3-8);--colors-violet-p3-9: var(--colors-violet-light-p3-9);--colors-violet-p3-10: var(--colors-violet-light-p3-10);--colors-violet-p3-11: var(--colors-violet-light-p3-11);--colors-violet-p3-12: var(--colors-violet-light-p3-12);--colors-violet-p3-a-1: var(--colors-violet-light-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-light-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-light-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-light-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-light-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-light-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-light-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-light-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-light-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-light-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-light-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-light-p3-a-12);--colors-yellow-1: var(--colors-yellow-light-1);--colors-yellow-2: var(--colors-yellow-light-2);--colors-yellow-3: var(--colors-yellow-light-3);--colors-yellow-4: var(--colors-yellow-light-4);--colors-yellow-5: var(--colors-yellow-light-5);--colors-yellow-6: var(--colors-yellow-light-6);--colors-yellow-7: var(--colors-yellow-light-7);--colors-yellow-8: var(--colors-yellow-light-8);--colors-yellow-9: var(--colors-yellow-light-9);--colors-yellow-10: var(--colors-yellow-light-10);--colors-yellow-11: var(--colors-yellow-light-11);--colors-yellow-12: var(--colors-yellow-light-12);--colors-yellow-light-1: #fdfdf9;--colors-yellow-light-2: #fefce9;--colors-yellow-light-3: #fffab8;--colors-yellow-light-4: #fff394;--colors-yellow-light-5: #ffe770;--colors-yellow-light-6: #f3d768;--colors-yellow-light-7: #e4c767;--colors-yellow-light-8: #d5ae39;--colors-yellow-light-9: #ffe629;--colors-yellow-light-10: #ffdc00;--colors-yellow-light-11: #9e6c00;--colors-yellow-light-12: #473b1f;--colors-yellow-light-a-1: #aaaa0006;--colors-yellow-light-a-2: #f4dd0016;--colors-yellow-light-a-3: #ffee0047;--colors-yellow-light-a-4: #ffe3016b;--colors-yellow-light-a-5: #ffd5008f;--colors-yellow-light-a-6: #ebbc0097;--colors-yellow-light-a-7: #d2a10098;--colors-yellow-light-a-8: #c99700c6;--colors-yellow-light-a-9: #ffe100d6;--colors-yellow-light-a-10: #ffdc00;--colors-yellow-light-a-11: #9e6c00;--colors-yellow-light-a-12: #2e2000e0;--colors-yellow-light-p3-1: color(display-p3 .992 .992 .978);--colors-yellow-light-p3-2: color(display-p3 .995 .99 .922);--colors-yellow-light-p3-3: color(display-p3 .997 .982 .749);--colors-yellow-light-p3-4: color(display-p3 .992 .953 .627);--colors-yellow-light-p3-5: color(display-p3 .984 .91 .51);--colors-yellow-light-p3-6: color(display-p3 .934 .847 .474);--colors-yellow-light-p3-7: color(display-p3 .876 .785 .46);--colors-yellow-light-p3-8: color(display-p3 .811 .689 .313);--colors-yellow-light-p3-9: color(display-p3 1 .92 .22);--colors-yellow-light-p3-10: color(display-p3 .977 .868 .291);--colors-yellow-light-p3-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-12: color(display-p3 .271 .233 .137);--colors-yellow-light-p3-a-1: color(display-p3 .675 .675 .024 / .024);--colors-yellow-light-p3-a-2: color(display-p3 .953 .855 .008 / .079);--colors-yellow-light-p3-a-3: color(display-p3 .988 .925 .004 / .251);--colors-yellow-light-p3-a-4: color(display-p3 .98 .875 .004 / .373);--colors-yellow-light-p3-a-5: color(display-p3 .969 .816 .004 / .491);--colors-yellow-light-p3-a-6: color(display-p3 .875 .71 0 / .526);--colors-yellow-light-p3-a-7: color(display-p3 .769 .604 0 / .542);--colors-yellow-light-p3-a-8: color(display-p3 .725 .549 0 / .687);--colors-yellow-light-p3-a-9: color(display-p3 1 .898 0 / .781);--colors-yellow-light-p3-a-10: color(display-p3 .969 .812 0 / .71);--colors-yellow-light-p3-a-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-a-12: color(display-p3 .271 .233 .137);--colors-yellow-dark-1: #14120b;--colors-yellow-dark-2: #1b180f;--colors-yellow-dark-3: #2d2305;--colors-yellow-dark-4: #362b00;--colors-yellow-dark-5: #433500;--colors-yellow-dark-6: #524202;--colors-yellow-dark-7: #665417;--colors-yellow-dark-8: #836a21;--colors-yellow-dark-9: #ffe629;--colors-yellow-dark-10: #ffff57;--colors-yellow-dark-11: #f5e147;--colors-yellow-dark-12: #f6eeb4;--colors-yellow-dark-a-1: #d1510004;--colors-yellow-dark-a-2: #f9b4000b;--colors-yellow-dark-a-3: #ffaa001e;--colors-yellow-dark-a-4: #fdb70028;--colors-yellow-dark-a-5: #febb0036;--colors-yellow-dark-a-6: #fec40046;--colors-yellow-dark-a-7: #fdcb225c;--colors-yellow-dark-a-8: #fdca327b;--colors-yellow-dark-a-9: #ffe629;--colors-yellow-dark-a-10: #ffff57;--colors-yellow-dark-a-11: #fee949f5;--colors-yellow-dark-a-12: #fef6baf6;--colors-yellow-dark-p3-1: color(display-p3 .078 .069 .047);--colors-yellow-dark-p3-2: color(display-p3 .103 .094 .063);--colors-yellow-dark-p3-3: color(display-p3 .168 .137 .039);--colors-yellow-dark-p3-4: color(display-p3 .209 .169 0);--colors-yellow-dark-p3-5: color(display-p3 .255 .209 0);--colors-yellow-dark-p3-6: color(display-p3 .31 .261 .07);--colors-yellow-dark-p3-7: color(display-p3 .389 .331 .135);--colors-yellow-dark-p3-8: color(display-p3 .497 .42 .182);--colors-yellow-dark-p3-9: color(display-p3 1 .92 .22);--colors-yellow-dark-p3-10: color(display-p3 1 1 .456);--colors-yellow-dark-p3-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-12: color(display-p3 .959 .934 .731);--colors-yellow-dark-p3-a-1: color(display-p3 .973 .369 0 / .013);--colors-yellow-dark-p3-a-2: color(display-p3 .996 .792 0 / .038);--colors-yellow-dark-p3-a-3: color(display-p3 .996 .71 0 / .11);--colors-yellow-dark-p3-a-4: color(display-p3 .996 .741 0 / .152);--colors-yellow-dark-p3-a-5: color(display-p3 .996 .765 0 / .202);--colors-yellow-dark-p3-a-6: color(display-p3 .996 .816 .082 / .261);--colors-yellow-dark-p3-a-7: color(display-p3 1 .831 .263 / .345);--colors-yellow-dark-p3-a-8: color(display-p3 1 .831 .314 / .463);--colors-yellow-dark-p3-a-9: color(display-p3 1 .922 .22);--colors-yellow-dark-p3-a-10: color(display-p3 1 1 .455);--colors-yellow-dark-p3-a-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-a-12: color(display-p3 .959 .934 .731);--colors-yellow-a-1: var(--colors-yellow-light-a-1);--colors-yellow-a-2: var(--colors-yellow-light-a-2);--colors-yellow-a-3: var(--colors-yellow-light-a-3);--colors-yellow-a-4: var(--colors-yellow-light-a-4);--colors-yellow-a-5: var(--colors-yellow-light-a-5);--colors-yellow-a-6: var(--colors-yellow-light-a-6);--colors-yellow-a-7: var(--colors-yellow-light-a-7);--colors-yellow-a-8: var(--colors-yellow-light-a-8);--colors-yellow-a-9: var(--colors-yellow-light-a-9);--colors-yellow-a-10: var(--colors-yellow-light-a-10);--colors-yellow-a-11: var(--colors-yellow-light-a-11);--colors-yellow-a-12: var(--colors-yellow-light-a-12);--colors-yellow-p3-1: var(--colors-yellow-light-p3-1);--colors-yellow-p3-2: var(--colors-yellow-light-p3-2);--colors-yellow-p3-3: var(--colors-yellow-light-p3-3);--colors-yellow-p3-4: var(--colors-yellow-light-p3-4);--colors-yellow-p3-5: var(--colors-yellow-light-p3-5);--colors-yellow-p3-6: var(--colors-yellow-light-p3-6);--colors-yellow-p3-7: var(--colors-yellow-light-p3-7);--colors-yellow-p3-8: var(--colors-yellow-light-p3-8);--colors-yellow-p3-9: var(--colors-yellow-light-p3-9);--colors-yellow-p3-10: var(--colors-yellow-light-p3-10);--colors-yellow-p3-11: var(--colors-yellow-light-p3-11);--colors-yellow-p3-12: var(--colors-yellow-light-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-light-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-light-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-light-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-light-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-light-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-light-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-light-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-light-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-light-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-light-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-light-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-light-p3-a-12);--colors-likec4-background: var(--mantine-color-body);--colors-likec4-tag-bg: var(--colors-tomato-9);--colors-likec4-tag-bg-hover: var(--colors-tomato-10);--colors-likec4-tag-border: var(--colors-tomato-8);--colors-likec4-tag-text: var(--colors-tomato-12);--colors-likec4-panel-bg: var(--colors-mantine-colors-body);--colors-likec4-panel-border: transparent;--colors-likec4-panel-action-icon-text: color-mix(in srgb, var(--mantine-color-text) 80%, transparent);--colors-likec4-panel-action-icon-text-hover: var(--mantine-color-bright);--colors-likec4-panel-action-icon-text-disabled: var(--mantine-color-dimmed);--colors-likec4-panel-action-icon-bg: var(--colors-mantine-colors-gray\\[1\\]);--colors-likec4-panel-action-icon-bg-hover: var(--colors-mantine-colors-gray\\[2\\]);--colors-likec4-dropdown-bg: #FFF;--colors-likec4-dropdown-border: var(--colors-likec4-panel-border);--colors-likec4-overlay-backdrop: rgb(34 34 34);--colors-likec4-overlay-body: var(--mantine-color-body);--colors-likec4-overlay-border: color-mix(in srgb, var(--colors-mantine-colors-default-border) 50%, transparent)}[data-mantine-color-scheme=dark]{--colors-amber-1: var(--colors-amber-dark-1);--colors-amber-2: var(--colors-amber-dark-2);--colors-amber-3: var(--colors-amber-dark-3);--colors-amber-4: var(--colors-amber-dark-4);--colors-amber-5: var(--colors-amber-dark-5);--colors-amber-6: var(--colors-amber-dark-6);--colors-amber-7: var(--colors-amber-dark-7);--colors-amber-8: var(--colors-amber-dark-8);--colors-amber-9: var(--colors-amber-dark-9);--colors-amber-10: var(--colors-amber-dark-10);--colors-amber-11: var(--colors-amber-dark-11);--colors-amber-12: var(--colors-amber-dark-12);--colors-amber-a-1: var(--colors-amber-dark-a-1);--colors-amber-a-2: var(--colors-amber-dark-a-2);--colors-amber-a-3: var(--colors-amber-dark-a-3);--colors-amber-a-4: var(--colors-amber-dark-a-4);--colors-amber-a-5: var(--colors-amber-dark-a-5);--colors-amber-a-6: var(--colors-amber-dark-a-6);--colors-amber-a-7: var(--colors-amber-dark-a-7);--colors-amber-a-8: var(--colors-amber-dark-a-8);--colors-amber-a-9: var(--colors-amber-dark-a-9);--colors-amber-a-10: var(--colors-amber-dark-a-10);--colors-amber-a-11: var(--colors-amber-dark-a-11);--colors-amber-a-12: var(--colors-amber-dark-a-12);--colors-amber-p3-1: var(--colors-amber-dark-p3-1);--colors-amber-p3-2: var(--colors-amber-dark-p3-2);--colors-amber-p3-3: var(--colors-amber-dark-p3-3);--colors-amber-p3-4: var(--colors-amber-dark-p3-4);--colors-amber-p3-5: var(--colors-amber-dark-p3-5);--colors-amber-p3-6: var(--colors-amber-dark-p3-6);--colors-amber-p3-7: var(--colors-amber-dark-p3-7);--colors-amber-p3-8: var(--colors-amber-dark-p3-8);--colors-amber-p3-9: var(--colors-amber-dark-p3-9);--colors-amber-p3-10: var(--colors-amber-dark-p3-10);--colors-amber-p3-11: var(--colors-amber-dark-p3-11);--colors-amber-p3-12: var(--colors-amber-dark-p3-12);--colors-amber-p3-a-1: var(--colors-amber-dark-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-dark-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-dark-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-dark-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-dark-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-dark-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-dark-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-dark-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-dark-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-dark-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-dark-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-dark-p3-a-12);--colors-blue-1: var(--colors-blue-dark-1);--colors-blue-2: var(--colors-blue-dark-2);--colors-blue-3: var(--colors-blue-dark-3);--colors-blue-4: var(--colors-blue-dark-4);--colors-blue-5: var(--colors-blue-dark-5);--colors-blue-6: var(--colors-blue-dark-6);--colors-blue-7: var(--colors-blue-dark-7);--colors-blue-8: var(--colors-blue-dark-8);--colors-blue-9: var(--colors-blue-dark-9);--colors-blue-10: var(--colors-blue-dark-10);--colors-blue-11: var(--colors-blue-dark-11);--colors-blue-12: var(--colors-blue-dark-12);--colors-blue-a-1: var(--colors-blue-dark-a-1);--colors-blue-a-2: var(--colors-blue-dark-a-2);--colors-blue-a-3: var(--colors-blue-dark-a-3);--colors-blue-a-4: var(--colors-blue-dark-a-4);--colors-blue-a-5: var(--colors-blue-dark-a-5);--colors-blue-a-6: var(--colors-blue-dark-a-6);--colors-blue-a-7: var(--colors-blue-dark-a-7);--colors-blue-a-8: var(--colors-blue-dark-a-8);--colors-blue-a-9: var(--colors-blue-dark-a-9);--colors-blue-a-10: var(--colors-blue-dark-a-10);--colors-blue-a-11: var(--colors-blue-dark-a-11);--colors-blue-a-12: var(--colors-blue-dark-a-12);--colors-blue-p3-1: var(--colors-blue-dark-p3-1);--colors-blue-p3-2: var(--colors-blue-dark-p3-2);--colors-blue-p3-3: var(--colors-blue-dark-p3-3);--colors-blue-p3-4: var(--colors-blue-dark-p3-4);--colors-blue-p3-5: var(--colors-blue-dark-p3-5);--colors-blue-p3-6: var(--colors-blue-dark-p3-6);--colors-blue-p3-7: var(--colors-blue-dark-p3-7);--colors-blue-p3-8: var(--colors-blue-dark-p3-8);--colors-blue-p3-9: var(--colors-blue-dark-p3-9);--colors-blue-p3-10: var(--colors-blue-dark-p3-10);--colors-blue-p3-11: var(--colors-blue-dark-p3-11);--colors-blue-p3-12: var(--colors-blue-dark-p3-12);--colors-blue-p3-a-1: var(--colors-blue-dark-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-dark-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-dark-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-dark-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-dark-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-dark-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-dark-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-dark-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-dark-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-dark-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-dark-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-dark-p3-a-12);--colors-crimson-1: var(--colors-crimson-dark-1);--colors-crimson-2: var(--colors-crimson-dark-2);--colors-crimson-3: var(--colors-crimson-dark-3);--colors-crimson-4: var(--colors-crimson-dark-4);--colors-crimson-5: var(--colors-crimson-dark-5);--colors-crimson-6: var(--colors-crimson-dark-6);--colors-crimson-7: var(--colors-crimson-dark-7);--colors-crimson-8: var(--colors-crimson-dark-8);--colors-crimson-9: var(--colors-crimson-dark-9);--colors-crimson-10: var(--colors-crimson-dark-10);--colors-crimson-11: var(--colors-crimson-dark-11);--colors-crimson-12: var(--colors-crimson-dark-12);--colors-crimson-a-1: var(--colors-crimson-dark-a-1);--colors-crimson-a-2: var(--colors-crimson-dark-a-2);--colors-crimson-a-3: var(--colors-crimson-dark-a-3);--colors-crimson-a-4: var(--colors-crimson-dark-a-4);--colors-crimson-a-5: var(--colors-crimson-dark-a-5);--colors-crimson-a-6: var(--colors-crimson-dark-a-6);--colors-crimson-a-7: var(--colors-crimson-dark-a-7);--colors-crimson-a-8: var(--colors-crimson-dark-a-8);--colors-crimson-a-9: var(--colors-crimson-dark-a-9);--colors-crimson-a-10: var(--colors-crimson-dark-a-10);--colors-crimson-a-11: var(--colors-crimson-dark-a-11);--colors-crimson-a-12: var(--colors-crimson-dark-a-12);--colors-crimson-p3-1: var(--colors-crimson-dark-p3-1);--colors-crimson-p3-2: var(--colors-crimson-dark-p3-2);--colors-crimson-p3-3: var(--colors-crimson-dark-p3-3);--colors-crimson-p3-4: var(--colors-crimson-dark-p3-4);--colors-crimson-p3-5: var(--colors-crimson-dark-p3-5);--colors-crimson-p3-6: var(--colors-crimson-dark-p3-6);--colors-crimson-p3-7: var(--colors-crimson-dark-p3-7);--colors-crimson-p3-8: var(--colors-crimson-dark-p3-8);--colors-crimson-p3-9: var(--colors-crimson-dark-p3-9);--colors-crimson-p3-10: var(--colors-crimson-dark-p3-10);--colors-crimson-p3-11: var(--colors-crimson-dark-p3-11);--colors-crimson-p3-12: var(--colors-crimson-dark-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-dark-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-dark-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-dark-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-dark-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-dark-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-dark-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-dark-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-dark-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-dark-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-dark-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-dark-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-dark-p3-a-12);--colors-grass-1: var(--colors-grass-dark-1);--colors-grass-2: var(--colors-grass-dark-2);--colors-grass-3: var(--colors-grass-dark-3);--colors-grass-4: var(--colors-grass-dark-4);--colors-grass-5: var(--colors-grass-dark-5);--colors-grass-6: var(--colors-grass-dark-6);--colors-grass-7: var(--colors-grass-dark-7);--colors-grass-8: var(--colors-grass-dark-8);--colors-grass-9: var(--colors-grass-dark-9);--colors-grass-10: var(--colors-grass-dark-10);--colors-grass-11: var(--colors-grass-dark-11);--colors-grass-12: var(--colors-grass-dark-12);--colors-grass-a-1: var(--colors-grass-dark-a-1);--colors-grass-a-2: var(--colors-grass-dark-a-2);--colors-grass-a-3: var(--colors-grass-dark-a-3);--colors-grass-a-4: var(--colors-grass-dark-a-4);--colors-grass-a-5: var(--colors-grass-dark-a-5);--colors-grass-a-6: var(--colors-grass-dark-a-6);--colors-grass-a-7: var(--colors-grass-dark-a-7);--colors-grass-a-8: var(--colors-grass-dark-a-8);--colors-grass-a-9: var(--colors-grass-dark-a-9);--colors-grass-a-10: var(--colors-grass-dark-a-10);--colors-grass-a-11: var(--colors-grass-dark-a-11);--colors-grass-a-12: var(--colors-grass-dark-a-12);--colors-grass-p3-1: var(--colors-grass-dark-p3-1);--colors-grass-p3-2: var(--colors-grass-dark-p3-2);--colors-grass-p3-3: var(--colors-grass-dark-p3-3);--colors-grass-p3-4: var(--colors-grass-dark-p3-4);--colors-grass-p3-5: var(--colors-grass-dark-p3-5);--colors-grass-p3-6: var(--colors-grass-dark-p3-6);--colors-grass-p3-7: var(--colors-grass-dark-p3-7);--colors-grass-p3-8: var(--colors-grass-dark-p3-8);--colors-grass-p3-9: var(--colors-grass-dark-p3-9);--colors-grass-p3-10: var(--colors-grass-dark-p3-10);--colors-grass-p3-11: var(--colors-grass-dark-p3-11);--colors-grass-p3-12: var(--colors-grass-dark-p3-12);--colors-grass-p3-a-1: var(--colors-grass-dark-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-dark-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-dark-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-dark-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-dark-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-dark-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-dark-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-dark-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-dark-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-dark-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-dark-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-dark-p3-a-12);--colors-indigo-1: var(--colors-indigo-dark-1);--colors-indigo-2: var(--colors-indigo-dark-2);--colors-indigo-3: var(--colors-indigo-dark-3);--colors-indigo-4: var(--colors-indigo-dark-4);--colors-indigo-5: var(--colors-indigo-dark-5);--colors-indigo-6: var(--colors-indigo-dark-6);--colors-indigo-7: var(--colors-indigo-dark-7);--colors-indigo-8: var(--colors-indigo-dark-8);--colors-indigo-9: var(--colors-indigo-dark-9);--colors-indigo-10: var(--colors-indigo-dark-10);--colors-indigo-11: var(--colors-indigo-dark-11);--colors-indigo-12: var(--colors-indigo-dark-12);--colors-indigo-a-1: var(--colors-indigo-dark-a-1);--colors-indigo-a-2: var(--colors-indigo-dark-a-2);--colors-indigo-a-3: var(--colors-indigo-dark-a-3);--colors-indigo-a-4: var(--colors-indigo-dark-a-4);--colors-indigo-a-5: var(--colors-indigo-dark-a-5);--colors-indigo-a-6: var(--colors-indigo-dark-a-6);--colors-indigo-a-7: var(--colors-indigo-dark-a-7);--colors-indigo-a-8: var(--colors-indigo-dark-a-8);--colors-indigo-a-9: var(--colors-indigo-dark-a-9);--colors-indigo-a-10: var(--colors-indigo-dark-a-10);--colors-indigo-a-11: var(--colors-indigo-dark-a-11);--colors-indigo-a-12: var(--colors-indigo-dark-a-12);--colors-indigo-p3-1: var(--colors-indigo-dark-p3-1);--colors-indigo-p3-2: var(--colors-indigo-dark-p3-2);--colors-indigo-p3-3: var(--colors-indigo-dark-p3-3);--colors-indigo-p3-4: var(--colors-indigo-dark-p3-4);--colors-indigo-p3-5: var(--colors-indigo-dark-p3-5);--colors-indigo-p3-6: var(--colors-indigo-dark-p3-6);--colors-indigo-p3-7: var(--colors-indigo-dark-p3-7);--colors-indigo-p3-8: var(--colors-indigo-dark-p3-8);--colors-indigo-p3-9: var(--colors-indigo-dark-p3-9);--colors-indigo-p3-10: var(--colors-indigo-dark-p3-10);--colors-indigo-p3-11: var(--colors-indigo-dark-p3-11);--colors-indigo-p3-12: var(--colors-indigo-dark-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-dark-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-dark-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-dark-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-dark-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-dark-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-dark-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-dark-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-dark-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-dark-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-dark-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-dark-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-dark-p3-a-12);--colors-lime-1: var(--colors-lime-dark-1);--colors-lime-2: var(--colors-lime-dark-2);--colors-lime-3: var(--colors-lime-dark-3);--colors-lime-4: var(--colors-lime-dark-4);--colors-lime-5: var(--colors-lime-dark-5);--colors-lime-6: var(--colors-lime-dark-6);--colors-lime-7: var(--colors-lime-dark-7);--colors-lime-8: var(--colors-lime-dark-8);--colors-lime-9: var(--colors-lime-dark-9);--colors-lime-10: var(--colors-lime-dark-10);--colors-lime-11: var(--colors-lime-dark-11);--colors-lime-12: var(--colors-lime-dark-12);--colors-lime-a-1: var(--colors-lime-dark-a-1);--colors-lime-a-2: var(--colors-lime-dark-a-2);--colors-lime-a-3: var(--colors-lime-dark-a-3);--colors-lime-a-4: var(--colors-lime-dark-a-4);--colors-lime-a-5: var(--colors-lime-dark-a-5);--colors-lime-a-6: var(--colors-lime-dark-a-6);--colors-lime-a-7: var(--colors-lime-dark-a-7);--colors-lime-a-8: var(--colors-lime-dark-a-8);--colors-lime-a-9: var(--colors-lime-dark-a-9);--colors-lime-a-10: var(--colors-lime-dark-a-10);--colors-lime-a-11: var(--colors-lime-dark-a-11);--colors-lime-a-12: var(--colors-lime-dark-a-12);--colors-lime-p3-1: var(--colors-lime-dark-p3-1);--colors-lime-p3-2: var(--colors-lime-dark-p3-2);--colors-lime-p3-3: var(--colors-lime-dark-p3-3);--colors-lime-p3-4: var(--colors-lime-dark-p3-4);--colors-lime-p3-5: var(--colors-lime-dark-p3-5);--colors-lime-p3-6: var(--colors-lime-dark-p3-6);--colors-lime-p3-7: var(--colors-lime-dark-p3-7);--colors-lime-p3-8: var(--colors-lime-dark-p3-8);--colors-lime-p3-9: var(--colors-lime-dark-p3-9);--colors-lime-p3-10: var(--colors-lime-dark-p3-10);--colors-lime-p3-11: var(--colors-lime-dark-p3-11);--colors-lime-p3-12: var(--colors-lime-dark-p3-12);--colors-lime-p3-a-1: var(--colors-lime-dark-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-dark-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-dark-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-dark-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-dark-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-dark-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-dark-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-dark-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-dark-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-dark-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-dark-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-dark-p3-a-12);--colors-orange-1: var(--colors-orange-dark-1);--colors-orange-2: var(--colors-orange-dark-2);--colors-orange-3: var(--colors-orange-dark-3);--colors-orange-4: var(--colors-orange-dark-4);--colors-orange-5: var(--colors-orange-dark-5);--colors-orange-6: var(--colors-orange-dark-6);--colors-orange-7: var(--colors-orange-dark-7);--colors-orange-8: var(--colors-orange-dark-8);--colors-orange-9: var(--colors-orange-dark-9);--colors-orange-10: var(--colors-orange-dark-10);--colors-orange-11: var(--colors-orange-dark-11);--colors-orange-12: var(--colors-orange-dark-12);--colors-orange-a-1: var(--colors-orange-dark-a-1);--colors-orange-a-2: var(--colors-orange-dark-a-2);--colors-orange-a-3: var(--colors-orange-dark-a-3);--colors-orange-a-4: var(--colors-orange-dark-a-4);--colors-orange-a-5: var(--colors-orange-dark-a-5);--colors-orange-a-6: var(--colors-orange-dark-a-6);--colors-orange-a-7: var(--colors-orange-dark-a-7);--colors-orange-a-8: var(--colors-orange-dark-a-8);--colors-orange-a-9: var(--colors-orange-dark-a-9);--colors-orange-a-10: var(--colors-orange-dark-a-10);--colors-orange-a-11: var(--colors-orange-dark-a-11);--colors-orange-a-12: var(--colors-orange-dark-a-12);--colors-orange-p3-1: var(--colors-orange-dark-p3-1);--colors-orange-p3-2: var(--colors-orange-dark-p3-2);--colors-orange-p3-3: var(--colors-orange-dark-p3-3);--colors-orange-p3-4: var(--colors-orange-dark-p3-4);--colors-orange-p3-5: var(--colors-orange-dark-p3-5);--colors-orange-p3-6: var(--colors-orange-dark-p3-6);--colors-orange-p3-7: var(--colors-orange-dark-p3-7);--colors-orange-p3-8: var(--colors-orange-dark-p3-8);--colors-orange-p3-9: var(--colors-orange-dark-p3-9);--colors-orange-p3-10: var(--colors-orange-dark-p3-10);--colors-orange-p3-11: var(--colors-orange-dark-p3-11);--colors-orange-p3-12: var(--colors-orange-dark-p3-12);--colors-orange-p3-a-1: var(--colors-orange-dark-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-dark-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-dark-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-dark-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-dark-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-dark-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-dark-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-dark-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-dark-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-dark-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-dark-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-dark-p3-a-12);--colors-pink-1: var(--colors-pink-dark-1);--colors-pink-2: var(--colors-pink-dark-2);--colors-pink-3: var(--colors-pink-dark-3);--colors-pink-4: var(--colors-pink-dark-4);--colors-pink-5: var(--colors-pink-dark-5);--colors-pink-6: var(--colors-pink-dark-6);--colors-pink-7: var(--colors-pink-dark-7);--colors-pink-8: var(--colors-pink-dark-8);--colors-pink-9: var(--colors-pink-dark-9);--colors-pink-10: var(--colors-pink-dark-10);--colors-pink-11: var(--colors-pink-dark-11);--colors-pink-12: var(--colors-pink-dark-12);--colors-pink-a-1: var(--colors-pink-dark-a-1);--colors-pink-a-2: var(--colors-pink-dark-a-2);--colors-pink-a-3: var(--colors-pink-dark-a-3);--colors-pink-a-4: var(--colors-pink-dark-a-4);--colors-pink-a-5: var(--colors-pink-dark-a-5);--colors-pink-a-6: var(--colors-pink-dark-a-6);--colors-pink-a-7: var(--colors-pink-dark-a-7);--colors-pink-a-8: var(--colors-pink-dark-a-8);--colors-pink-a-9: var(--colors-pink-dark-a-9);--colors-pink-a-10: var(--colors-pink-dark-a-10);--colors-pink-a-11: var(--colors-pink-dark-a-11);--colors-pink-a-12: var(--colors-pink-dark-a-12);--colors-pink-p3-1: var(--colors-pink-dark-p3-1);--colors-pink-p3-2: var(--colors-pink-dark-p3-2);--colors-pink-p3-3: var(--colors-pink-dark-p3-3);--colors-pink-p3-4: var(--colors-pink-dark-p3-4);--colors-pink-p3-5: var(--colors-pink-dark-p3-5);--colors-pink-p3-6: var(--colors-pink-dark-p3-6);--colors-pink-p3-7: var(--colors-pink-dark-p3-7);--colors-pink-p3-8: var(--colors-pink-dark-p3-8);--colors-pink-p3-9: var(--colors-pink-dark-p3-9);--colors-pink-p3-10: var(--colors-pink-dark-p3-10);--colors-pink-p3-11: var(--colors-pink-dark-p3-11);--colors-pink-p3-12: var(--colors-pink-dark-p3-12);--colors-pink-p3-a-1: var(--colors-pink-dark-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-dark-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-dark-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-dark-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-dark-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-dark-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-dark-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-dark-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-dark-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-dark-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-dark-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-dark-p3-a-12);--colors-purple-1: var(--colors-purple-dark-1);--colors-purple-2: var(--colors-purple-dark-2);--colors-purple-3: var(--colors-purple-dark-3);--colors-purple-4: var(--colors-purple-dark-4);--colors-purple-5: var(--colors-purple-dark-5);--colors-purple-6: var(--colors-purple-dark-6);--colors-purple-7: var(--colors-purple-dark-7);--colors-purple-8: var(--colors-purple-dark-8);--colors-purple-9: var(--colors-purple-dark-9);--colors-purple-10: var(--colors-purple-dark-10);--colors-purple-11: var(--colors-purple-dark-11);--colors-purple-12: var(--colors-purple-dark-12);--colors-purple-a-1: var(--colors-purple-dark-a-1);--colors-purple-a-2: var(--colors-purple-dark-a-2);--colors-purple-a-3: var(--colors-purple-dark-a-3);--colors-purple-a-4: var(--colors-purple-dark-a-4);--colors-purple-a-5: var(--colors-purple-dark-a-5);--colors-purple-a-6: var(--colors-purple-dark-a-6);--colors-purple-a-7: var(--colors-purple-dark-a-7);--colors-purple-a-8: var(--colors-purple-dark-a-8);--colors-purple-a-9: var(--colors-purple-dark-a-9);--colors-purple-a-10: var(--colors-purple-dark-a-10);--colors-purple-a-11: var(--colors-purple-dark-a-11);--colors-purple-a-12: var(--colors-purple-dark-a-12);--colors-purple-p3-1: var(--colors-purple-dark-p3-1);--colors-purple-p3-2: var(--colors-purple-dark-p3-2);--colors-purple-p3-3: var(--colors-purple-dark-p3-3);--colors-purple-p3-4: var(--colors-purple-dark-p3-4);--colors-purple-p3-5: var(--colors-purple-dark-p3-5);--colors-purple-p3-6: var(--colors-purple-dark-p3-6);--colors-purple-p3-7: var(--colors-purple-dark-p3-7);--colors-purple-p3-8: var(--colors-purple-dark-p3-8);--colors-purple-p3-9: var(--colors-purple-dark-p3-9);--colors-purple-p3-10: var(--colors-purple-dark-p3-10);--colors-purple-p3-11: var(--colors-purple-dark-p3-11);--colors-purple-p3-12: var(--colors-purple-dark-p3-12);--colors-purple-p3-a-1: var(--colors-purple-dark-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-dark-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-dark-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-dark-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-dark-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-dark-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-dark-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-dark-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-dark-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-dark-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-dark-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-dark-p3-a-12);--colors-red-1: var(--colors-red-dark-1);--colors-red-2: var(--colors-red-dark-2);--colors-red-3: var(--colors-red-dark-3);--colors-red-4: var(--colors-red-dark-4);--colors-red-5: var(--colors-red-dark-5);--colors-red-6: var(--colors-red-dark-6);--colors-red-7: var(--colors-red-dark-7);--colors-red-8: var(--colors-red-dark-8);--colors-red-9: var(--colors-red-dark-9);--colors-red-10: var(--colors-red-dark-10);--colors-red-11: var(--colors-red-dark-11);--colors-red-12: var(--colors-red-dark-12);--colors-red-a-1: var(--colors-red-dark-a-1);--colors-red-a-2: var(--colors-red-dark-a-2);--colors-red-a-3: var(--colors-red-dark-a-3);--colors-red-a-4: var(--colors-red-dark-a-4);--colors-red-a-5: var(--colors-red-dark-a-5);--colors-red-a-6: var(--colors-red-dark-a-6);--colors-red-a-7: var(--colors-red-dark-a-7);--colors-red-a-8: var(--colors-red-dark-a-8);--colors-red-a-9: var(--colors-red-dark-a-9);--colors-red-a-10: var(--colors-red-dark-a-10);--colors-red-a-11: var(--colors-red-dark-a-11);--colors-red-a-12: var(--colors-red-dark-a-12);--colors-red-p3-1: var(--colors-red-dark-p3-1);--colors-red-p3-2: var(--colors-red-dark-p3-2);--colors-red-p3-3: var(--colors-red-dark-p3-3);--colors-red-p3-4: var(--colors-red-dark-p3-4);--colors-red-p3-5: var(--colors-red-dark-p3-5);--colors-red-p3-6: var(--colors-red-dark-p3-6);--colors-red-p3-7: var(--colors-red-dark-p3-7);--colors-red-p3-8: var(--colors-red-dark-p3-8);--colors-red-p3-9: var(--colors-red-dark-p3-9);--colors-red-p3-10: var(--colors-red-dark-p3-10);--colors-red-p3-11: var(--colors-red-dark-p3-11);--colors-red-p3-12: var(--colors-red-dark-p3-12);--colors-red-p3-a-1: var(--colors-red-dark-p3-a-1);--colors-red-p3-a-2: var(--colors-red-dark-p3-a-2);--colors-red-p3-a-3: var(--colors-red-dark-p3-a-3);--colors-red-p3-a-4: var(--colors-red-dark-p3-a-4);--colors-red-p3-a-5: var(--colors-red-dark-p3-a-5);--colors-red-p3-a-6: var(--colors-red-dark-p3-a-6);--colors-red-p3-a-7: var(--colors-red-dark-p3-a-7);--colors-red-p3-a-8: var(--colors-red-dark-p3-a-8);--colors-red-p3-a-9: var(--colors-red-dark-p3-a-9);--colors-red-p3-a-10: var(--colors-red-dark-p3-a-10);--colors-red-p3-a-11: var(--colors-red-dark-p3-a-11);--colors-red-p3-a-12: var(--colors-red-dark-p3-a-12);--colors-ruby-1: var(--colors-ruby-dark-1);--colors-ruby-2: var(--colors-ruby-dark-2);--colors-ruby-3: var(--colors-ruby-dark-3);--colors-ruby-4: var(--colors-ruby-dark-4);--colors-ruby-5: var(--colors-ruby-dark-5);--colors-ruby-6: var(--colors-ruby-dark-6);--colors-ruby-7: var(--colors-ruby-dark-7);--colors-ruby-8: var(--colors-ruby-dark-8);--colors-ruby-9: var(--colors-ruby-dark-9);--colors-ruby-10: var(--colors-ruby-dark-10);--colors-ruby-11: var(--colors-ruby-dark-11);--colors-ruby-12: var(--colors-ruby-dark-12);--colors-ruby-a-1: var(--colors-ruby-dark-a-1);--colors-ruby-a-2: var(--colors-ruby-dark-a-2);--colors-ruby-a-3: var(--colors-ruby-dark-a-3);--colors-ruby-a-4: var(--colors-ruby-dark-a-4);--colors-ruby-a-5: var(--colors-ruby-dark-a-5);--colors-ruby-a-6: var(--colors-ruby-dark-a-6);--colors-ruby-a-7: var(--colors-ruby-dark-a-7);--colors-ruby-a-8: var(--colors-ruby-dark-a-8);--colors-ruby-a-9: var(--colors-ruby-dark-a-9);--colors-ruby-a-10: var(--colors-ruby-dark-a-10);--colors-ruby-a-11: var(--colors-ruby-dark-a-11);--colors-ruby-a-12: var(--colors-ruby-dark-a-12);--colors-ruby-p3-1: var(--colors-ruby-dark-p3-1);--colors-ruby-p3-2: var(--colors-ruby-dark-p3-2);--colors-ruby-p3-3: var(--colors-ruby-dark-p3-3);--colors-ruby-p3-4: var(--colors-ruby-dark-p3-4);--colors-ruby-p3-5: var(--colors-ruby-dark-p3-5);--colors-ruby-p3-6: var(--colors-ruby-dark-p3-6);--colors-ruby-p3-7: var(--colors-ruby-dark-p3-7);--colors-ruby-p3-8: var(--colors-ruby-dark-p3-8);--colors-ruby-p3-9: var(--colors-ruby-dark-p3-9);--colors-ruby-p3-10: var(--colors-ruby-dark-p3-10);--colors-ruby-p3-11: var(--colors-ruby-dark-p3-11);--colors-ruby-p3-12: var(--colors-ruby-dark-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-dark-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-dark-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-dark-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-dark-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-dark-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-dark-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-dark-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-dark-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-dark-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-dark-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-dark-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-dark-p3-a-12);--colors-teal-1: var(--colors-teal-dark-1);--colors-teal-2: var(--colors-teal-dark-2);--colors-teal-3: var(--colors-teal-dark-3);--colors-teal-4: var(--colors-teal-dark-4);--colors-teal-5: var(--colors-teal-dark-5);--colors-teal-6: var(--colors-teal-dark-6);--colors-teal-7: var(--colors-teal-dark-7);--colors-teal-8: var(--colors-teal-dark-8);--colors-teal-9: var(--colors-teal-dark-9);--colors-teal-10: var(--colors-teal-dark-10);--colors-teal-11: var(--colors-teal-dark-11);--colors-teal-12: var(--colors-teal-dark-12);--colors-teal-a-1: var(--colors-teal-dark-a-1);--colors-teal-a-2: var(--colors-teal-dark-a-2);--colors-teal-a-3: var(--colors-teal-dark-a-3);--colors-teal-a-4: var(--colors-teal-dark-a-4);--colors-teal-a-5: var(--colors-teal-dark-a-5);--colors-teal-a-6: var(--colors-teal-dark-a-6);--colors-teal-a-7: var(--colors-teal-dark-a-7);--colors-teal-a-8: var(--colors-teal-dark-a-8);--colors-teal-a-9: var(--colors-teal-dark-a-9);--colors-teal-a-10: var(--colors-teal-dark-a-10);--colors-teal-a-11: var(--colors-teal-dark-a-11);--colors-teal-a-12: var(--colors-teal-dark-a-12);--colors-teal-p3-1: var(--colors-teal-dark-p3-1);--colors-teal-p3-2: var(--colors-teal-dark-p3-2);--colors-teal-p3-3: var(--colors-teal-dark-p3-3);--colors-teal-p3-4: var(--colors-teal-dark-p3-4);--colors-teal-p3-5: var(--colors-teal-dark-p3-5);--colors-teal-p3-6: var(--colors-teal-dark-p3-6);--colors-teal-p3-7: var(--colors-teal-dark-p3-7);--colors-teal-p3-8: var(--colors-teal-dark-p3-8);--colors-teal-p3-9: var(--colors-teal-dark-p3-9);--colors-teal-p3-10: var(--colors-teal-dark-p3-10);--colors-teal-p3-11: var(--colors-teal-dark-p3-11);--colors-teal-p3-12: var(--colors-teal-dark-p3-12);--colors-teal-p3-a-1: var(--colors-teal-dark-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-dark-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-dark-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-dark-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-dark-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-dark-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-dark-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-dark-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-dark-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-dark-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-dark-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-dark-p3-a-12);--colors-tomato-1: var(--colors-tomato-dark-1);--colors-tomato-2: var(--colors-tomato-dark-2);--colors-tomato-3: var(--colors-tomato-dark-3);--colors-tomato-4: var(--colors-tomato-dark-4);--colors-tomato-5: var(--colors-tomato-dark-5);--colors-tomato-6: var(--colors-tomato-dark-6);--colors-tomato-7: var(--colors-tomato-dark-7);--colors-tomato-8: var(--colors-tomato-dark-8);--colors-tomato-9: var(--colors-tomato-dark-9);--colors-tomato-10: var(--colors-tomato-dark-10);--colors-tomato-11: var(--colors-tomato-dark-11);--colors-tomato-12: var(--colors-tomato-dark-12);--colors-tomato-a-1: var(--colors-tomato-dark-a-1);--colors-tomato-a-2: var(--colors-tomato-dark-a-2);--colors-tomato-a-3: var(--colors-tomato-dark-a-3);--colors-tomato-a-4: var(--colors-tomato-dark-a-4);--colors-tomato-a-5: var(--colors-tomato-dark-a-5);--colors-tomato-a-6: var(--colors-tomato-dark-a-6);--colors-tomato-a-7: var(--colors-tomato-dark-a-7);--colors-tomato-a-8: var(--colors-tomato-dark-a-8);--colors-tomato-a-9: var(--colors-tomato-dark-a-9);--colors-tomato-a-10: var(--colors-tomato-dark-a-10);--colors-tomato-a-11: var(--colors-tomato-dark-a-11);--colors-tomato-a-12: var(--colors-tomato-dark-a-12);--colors-tomato-p3-1: var(--colors-tomato-dark-p3-1);--colors-tomato-p3-2: var(--colors-tomato-dark-p3-2);--colors-tomato-p3-3: var(--colors-tomato-dark-p3-3);--colors-tomato-p3-4: var(--colors-tomato-dark-p3-4);--colors-tomato-p3-5: var(--colors-tomato-dark-p3-5);--colors-tomato-p3-6: var(--colors-tomato-dark-p3-6);--colors-tomato-p3-7: var(--colors-tomato-dark-p3-7);--colors-tomato-p3-8: var(--colors-tomato-dark-p3-8);--colors-tomato-p3-9: var(--colors-tomato-dark-p3-9);--colors-tomato-p3-10: var(--colors-tomato-dark-p3-10);--colors-tomato-p3-11: var(--colors-tomato-dark-p3-11);--colors-tomato-p3-12: var(--colors-tomato-dark-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-dark-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-dark-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-dark-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-dark-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-dark-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-dark-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-dark-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-dark-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-dark-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-dark-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-dark-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-dark-p3-a-12);--colors-violet-1: var(--colors-violet-dark-1);--colors-violet-2: var(--colors-violet-dark-2);--colors-violet-3: var(--colors-violet-dark-3);--colors-violet-4: var(--colors-violet-dark-4);--colors-violet-5: var(--colors-violet-dark-5);--colors-violet-6: var(--colors-violet-dark-6);--colors-violet-7: var(--colors-violet-dark-7);--colors-violet-8: var(--colors-violet-dark-8);--colors-violet-9: var(--colors-violet-dark-9);--colors-violet-10: var(--colors-violet-dark-10);--colors-violet-11: var(--colors-violet-dark-11);--colors-violet-12: var(--colors-violet-dark-12);--colors-violet-a-1: var(--colors-violet-dark-a-1);--colors-violet-a-2: var(--colors-violet-dark-a-2);--colors-violet-a-3: var(--colors-violet-dark-a-3);--colors-violet-a-4: var(--colors-violet-dark-a-4);--colors-violet-a-5: var(--colors-violet-dark-a-5);--colors-violet-a-6: var(--colors-violet-dark-a-6);--colors-violet-a-7: var(--colors-violet-dark-a-7);--colors-violet-a-8: var(--colors-violet-dark-a-8);--colors-violet-a-9: var(--colors-violet-dark-a-9);--colors-violet-a-10: var(--colors-violet-dark-a-10);--colors-violet-a-11: var(--colors-violet-dark-a-11);--colors-violet-a-12: var(--colors-violet-dark-a-12);--colors-violet-p3-1: var(--colors-violet-dark-p3-1);--colors-violet-p3-2: var(--colors-violet-dark-p3-2);--colors-violet-p3-3: var(--colors-violet-dark-p3-3);--colors-violet-p3-4: var(--colors-violet-dark-p3-4);--colors-violet-p3-5: var(--colors-violet-dark-p3-5);--colors-violet-p3-6: var(--colors-violet-dark-p3-6);--colors-violet-p3-7: var(--colors-violet-dark-p3-7);--colors-violet-p3-8: var(--colors-violet-dark-p3-8);--colors-violet-p3-9: var(--colors-violet-dark-p3-9);--colors-violet-p3-10: var(--colors-violet-dark-p3-10);--colors-violet-p3-11: var(--colors-violet-dark-p3-11);--colors-violet-p3-12: var(--colors-violet-dark-p3-12);--colors-violet-p3-a-1: var(--colors-violet-dark-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-dark-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-dark-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-dark-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-dark-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-dark-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-dark-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-dark-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-dark-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-dark-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-dark-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-dark-p3-a-12);--colors-yellow-1: var(--colors-yellow-dark-1);--colors-yellow-2: var(--colors-yellow-dark-2);--colors-yellow-3: var(--colors-yellow-dark-3);--colors-yellow-4: var(--colors-yellow-dark-4);--colors-yellow-5: var(--colors-yellow-dark-5);--colors-yellow-6: var(--colors-yellow-dark-6);--colors-yellow-7: var(--colors-yellow-dark-7);--colors-yellow-8: var(--colors-yellow-dark-8);--colors-yellow-9: var(--colors-yellow-dark-9);--colors-yellow-10: var(--colors-yellow-dark-10);--colors-yellow-11: var(--colors-yellow-dark-11);--colors-yellow-12: var(--colors-yellow-dark-12);--colors-yellow-a-1: var(--colors-yellow-dark-a-1);--colors-yellow-a-2: var(--colors-yellow-dark-a-2);--colors-yellow-a-3: var(--colors-yellow-dark-a-3);--colors-yellow-a-4: var(--colors-yellow-dark-a-4);--colors-yellow-a-5: var(--colors-yellow-dark-a-5);--colors-yellow-a-6: var(--colors-yellow-dark-a-6);--colors-yellow-a-7: var(--colors-yellow-dark-a-7);--colors-yellow-a-8: var(--colors-yellow-dark-a-8);--colors-yellow-a-9: var(--colors-yellow-dark-a-9);--colors-yellow-a-10: var(--colors-yellow-dark-a-10);--colors-yellow-a-11: var(--colors-yellow-dark-a-11);--colors-yellow-a-12: var(--colors-yellow-dark-a-12);--colors-yellow-p3-1: var(--colors-yellow-dark-p3-1);--colors-yellow-p3-2: var(--colors-yellow-dark-p3-2);--colors-yellow-p3-3: var(--colors-yellow-dark-p3-3);--colors-yellow-p3-4: var(--colors-yellow-dark-p3-4);--colors-yellow-p3-5: var(--colors-yellow-dark-p3-5);--colors-yellow-p3-6: var(--colors-yellow-dark-p3-6);--colors-yellow-p3-7: var(--colors-yellow-dark-p3-7);--colors-yellow-p3-8: var(--colors-yellow-dark-p3-8);--colors-yellow-p3-9: var(--colors-yellow-dark-p3-9);--colors-yellow-p3-10: var(--colors-yellow-dark-p3-10);--colors-yellow-p3-11: var(--colors-yellow-dark-p3-11);--colors-yellow-p3-12: var(--colors-yellow-dark-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-dark-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-dark-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-dark-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-dark-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-dark-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-dark-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-dark-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-dark-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-dark-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-dark-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-dark-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-dark-p3-a-12);--colors-likec4-background-pattern: color-mix(in srgb, var(--colors-mantine-colors-dark\\[4\\]) 70%, transparent);--colors-likec4-mix-color: white;--colors-likec4-panel-bg: var(--colors-mantine-colors-dark\\[6\\]);--colors-likec4-panel-action-icon-bg: color-mix(in srgb, var(--colors-mantine-colors-dark\\[7\\]) 70%, transparent);--colors-likec4-panel-action-icon-bg-hover: var(--colors-mantine-colors-dark\\[8\\]);--colors-likec4-dropdown-bg: var(--colors-mantine-colors-dark\\[6\\]) }[data-mantine-color-scheme=light]{--colors-likec4-background-pattern: var(--colors-mantine-colors-gray\\[4\\]);--colors-likec4-mix-color: black;--colors-likec4-panel-border: color-mix(in srgb, var(--colors-mantine-colors-default-border) 30%, transparent);--colors-likec4-overlay-backdrop: rgb(15 15 15) }@keyframes indicatorOpacity{0%{opacity:.9;stroke-opacity:.8}to{opacity:.6;stroke-opacity:.4}}@keyframes xyedgeAnimated{0%{stroke-dashoffset:36}to{stroke-dashoffset:0}}}@layer recipes{@layer _base{.likec4-overlay{--_blur: 0px;--_level: 0;--_offset: 0px;--_inset: calc((1 + var(--_level) * .75) * var(--_offset));--_opacity: 0%;--_border-radius: 0px;margin:var(--spacing-0);background:var(--colors-likec4-overlay-border);border:var(--borders-transparent);inset:var(--spacing-0);padding:var(--spacing-0);outline:var(--borders-none);border-radius:var(--_border-radius);box-sizing:border-box;position:fixed;box-shadow:var(--shadows-xl);width:100vw;height:100vh;max-width:100vw;max-height:100vh}.likec4-overlay::backdrop{cursor:zoom-out}.likec4-overlay .likec4-overlay-body{border:var(--borders-transparent);background:var(--colors-likec4-overlay-body);overflow:hidden;position:relative;container-name:likec4-dialog;container-type:size;width:100%;height:100%}.likec4-markdown-block{--text-fz: 1rem;--text-fz-sm: calc(var(--text-fz) * var(--mantine-scale, 1) / 1.125);--text-fz-md: calc(var(--text-fz) * var(--mantine-scale, 1));--typography-spacing: calc(.75 * var(--text-fz-md));--text-fw-headings: 600;font-size:var(--text-fz-md);line-height:var(--mantine-line-height)}[data-mantine-color-scheme=light] .likec4-markdown-block{--code-background: var(--mantine-color-gray-2);--code-color: var(--mantine-color-black)}[data-mantine-color-scheme=dark] .likec4-markdown-block{--code-background: var(--mantine-color-dark-8);--code-color: var(--mantine-color-white)}.likec4-markdown-block :where(hr){border:var(--borders-none);border-bottom:1px solid;margin-top:calc(var(--typography-spacing) / 2);margin-bottom:calc(var(--typography-spacing) / 2)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-gray\\[3\\])}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-dark\\[3\\])}.likec4-markdown-block :where(pre){margin:var(--spacing-0);padding-inline:var(--spacing-3);padding-block:var(--spacing-2);border-radius:var(--radii-sm);line-height:var(--mantine-line-height-xs);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color);margin-top:var(--typography-spacing);margin-bottom:var(--typography-spacing);overflow-x:auto}.likec4-markdown-block :where(code){padding:1px 4px;border-radius:var(--radii-xs);line-height:var(--line-heights-1);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color)}.likec4-markdown-block :where(pre code){padding:var(--spacing-0);border:0;border-radius:var(--radii-0);background-color:var(--colors-transparent);color:inherit}.likec4-markdown-block :where(blockquote){margin:var(--spacing-0);padding:var(--spacing-xs);border-radius:var(--mantine-radius-sm);font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-dark-5)}.likec4-markdown-block :where(blockquote):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(h1,h2,h3,h4,h5,h6){text-wrap:var(--mantine-heading-text-wrap);line-height:1.5;font-family:var(--mantine-font-family-headings);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(a){text-decoration:none;font-size:var(--text-fz-md);color:var(--mantine-color-anchor);font-weight:500}.likec4-markdown-block :where(a):is(:hover,[data-hover]){text-decoration:underline}.likec4-markdown-block :is(h1){font-size:calc(1.476 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h2){font-size:calc(1.383 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h3){font-size:calc(1.296 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h4){font-size:calc(1.215 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h5){font-size:calc(1.138 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h6){font-size:calc(1.067 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :where(p){font-size:var(--text-fz-md);margin-top:var(--spacing-0);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(strong){font-weight:500}.likec4-markdown-block :where(mark){font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[2\\]);color:inherit}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[5\\]);color:var(--mantine-color-black)}.likec4-markdown-block :where(ul,ol):not([data-type=taskList]){padding-inline-start:var(--typography-spacing);list-style-position:inside;margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(table){border-collapse:collapse;caption-side:bottom;width:100%;margin-bottom:var(--typography-spacing)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-dark-4)}.likec4-markdown-block :where(table) :where(th){padding:var(--typography-spacing);text-align:left;font-weight:700;font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(td){padding:var(--typography-spacing);border-bottom:1px solid;border-color:var(--table-border-color);font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(thead th){border-bottom:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tfoot th){border-top:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tr:last-of-type td){border-bottom:0}.likec4-markdown-block :where(table) :where(caption){font-size:var(--text-fz-sm);color:var(--mantine-color-dimmed);margin-top:calc(.5 * var(--typography-spacing) + 1px)}.likec4-markdown-block :first-child{margin-top:var(--spacing-0)}.likec4-markdown-block :last-child{margin-bottom:var(--spacing-0)}.likec4-markdown-block :is(h1,h2,h3,h4,h5,h6):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(img){max-width:100%;margin-bottom:var(--typography-spacing)}.likec4-navigation-panel-icon{color:var(--colors-likec4-panel-action-icon-text)}.likec4-navigation-panel-icon:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-icon-text-disabled);opacity:.5}.likec4-navigation-panel-icon:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-icon-text-hover)}.action-btn{--actionbtn-color: var(--likec4-palette-loContrast);--actionbtn-color-hovered: var(--likec4-palette-loContrast);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-idle: color-mix(in srgb , var(--likec4-palette-fill), transparent 99%);--actionbtn-bg-hovered: color-mix(in srgb , var(--likec4-palette-fill) 65%, var(--likec4-palette-stroke));--actionbtn-bg-hovered-btn: color-mix(in srgb , var(--likec4-palette-fill) 50%, var(--likec4-palette-stroke));--ai-bg: var(--actionbtn-bg-idle);background:var(--ai-bg);pointer-events:all;cursor:pointer;color:var(--actionbtn-color);opacity:.75}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn{--ai-bg: var(--actionbtn-bg-hovered);opacity:1;color:var(--actionbtn-color-hovered)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .action-btn{display:none}:where([data-likec4-zoom-small=true]) .action-btn{display:none}.action-btn *{pointer-events:none}.action-btn:is(:hover,[data-hover]){--ai-bg: var(--actionbtn-bg-hovered-btn);opacity:1;color:var(--actionbtn-color-hovered-btn)}.likec4-compound-node{--_border-width: 3px;--_border-radius: 6px;--_compound-transparency: 100%;--_border-transparency: 100%;--_indicator-spacing: calc(var(--_border-width) + 2px);--_compound-color: var(--likec4-palette-loContrast);padding:var(--spacing-0);margin:var(--spacing-0);border-style:solid;border-width:var(--_border-width);border-radius:var(--_border-radius);position:relative;pointer-events:none;background-clip:padding-box;-webkit-background-clip:padding-box;box-sizing:border-box;color:var(--_compound-color);width:100%;height:100%}[data-mantine-color-scheme=light] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 80%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}.likec4-compound-node:after{border-style:solid;border-width:calc(var(--_border-width) + 1px);border-radius:calc(var(--_border-radius) + 4px);border-color:var(--likec4-palette-outline);position:absolute;content:" ";pointer-events:none;display:none;animation-play-state:paused;top:calc(-1 * var(--_indicator-spacing));left:calc(-1 * var(--_indicator-spacing));width:calc(100% + 2 * var(--_indicator-spacing));height:calc(100% + 2 * var(--_indicator-spacing))}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-compound-node:after{display:block;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node:after{display:block;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node:after{animation-play-state:paused}.likec4-compound-node:has(.likec4-compound-navigation) .likec4-compound-title-container{padding-left:24px}.likec4-compound-node .action-btn{--actionbtn-color: var(--_compound-color);--actionbtn-color-hovered: var(--_compound-color);--actionbtn-color-hovered-btn: color-mix(in srgb, var(--_compound-color) 80%, #fff);opacity:.6}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node .action-btn{transition:all var(--durations-fast) var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-compound-node .action-btn{opacity:.75}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node .action-btn{opacity:.75}.likec4-compound-node .action-btn:is(:hover,[data-hover]){opacity:1}.likec4-compound-node .likec4-compound-title-container{gap:var(--spacing-1\\.5);position:absolute;display:flex;align-items:center;left:var(--spacing-2\\.5);top:var(--spacing-0\\.5);right:30px;width:auto;min-height:30px}:where(.react-flow__node.draggable) .likec4-compound-node .likec4-compound-title-container{pointer-events:all;cursor:grab}.likec4-compound-node .likec4-compound-title{flex:1 1 0%;font-family:var(--fonts-likec4-compound);font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.25px;line-height:var(--line-heights-1);color:var(--_compound-color)}.likec4-compound-node .likec4-compound-icon{flex:0 0 20px;display:flex;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:20px;width:20px}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon{mix-blend-mode:normal}.likec4-compound-node .likec4-compound-icon svg,.likec4-compound-node .likec4-compound-icon img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%)) drop-shadow(0 1px 8px rgb(0 0 0 / 8%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 3%));width:100%;height:auto;max-height:100%}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon img{filter:none}.likec4-compound-node .likec4-compound-icon img{object-fit:contain}.likec4-compound-node .likec4-compound-navigation{position:absolute;top:var(--spacing-1);left:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-navigation{display:none}.likec4-compound-node .likec4-compound-details{position:absolute;top:var(--spacing-0\\.5);right:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-details{display:none}.likec4-edge-action-btn{--ai-bg: transparent;--ai-hover: color-mix(in srgb , var(--xy-edge-label-background-color), var(--colors-likec4-mix-color) 10%);--ai-size: var(--ai-size-sm);--ai-radius: var(--radii-sm);transition:all var(--durations-fast) var(--easings-in-out);pointer-events:all;color:var(--xy-edge-label-color);cursor:pointer;opacity:.75;translate:var(--translate-x) var(--translate-y)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-edge-action-btn{--ai-bg: var(--xy-edge-label-background-color);opacity:1}.likec4-edge-action-btn .tabler-icon{stroke-width:2;width:80%;height:80%}.likec4-edge-action-btn:is(:hover,[data-hover]){--translate-y: 2px;scale:1.15}.likec4-edge-action-btn:is(:active,[data-active]){--translate-y: -1px;scale:.9}.likec4-element-node-data{margin:0 auto;flex:1 1 0%;overflow:hidden;gap:var(--spacing-3);position:relative;display:flex;align-items:center;justify-content:center;flex-direction:row;pointer-events:none;text-align:center;height:fit-content;width:fit-content;max-height:100%;max-width:100%;padding-top:var(--likec4-spacing);padding-bottom:var(--likec4-spacing);padding-left:calc(var(--likec4-spacing) + 8px);padding-right:calc(var(--likec4-spacing) + 8px)}:where([data-likec4-shape-size=xs]) .likec4-element-node-data{--likec4-icon-size: 24px}:where([data-likec4-shape-size=sm]) .likec4-element-node-data{--likec4-icon-size: 36px}:where([data-likec4-shape-size=md]) .likec4-element-node-data{--likec4-icon-size: 60px}:where([data-likec4-shape-size=lg]) .likec4-element-node-data{--likec4-icon-size: 82px;gap:var(--spacing-4)}:where([data-likec4-shape-size=xl]) .likec4-element-node-data{--likec4-icon-size: 90px;gap:var(--spacing-4)}.likec4-element-node-data:has([data-likec4-icon]){gap:var(--spacing-4);text-align:left}.likec4-element-node-data:has([data-likec4-icon]) .likec4-element-node-content{align-items:flex-start;min-width:calc(50% + var(--likec4-icon-size))}:where([data-likec4-shape=queue]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=mobile]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=cylinder]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=storage]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=browser]) .likec4-element-node-data{padding-top:32px;padding-bottom:28px}.likec4-element-node-data [data-likec4-icon]{flex:0 0 var(--likec4-icon-size, 48px);display:flex;align-self:flex-start;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:var(--likec4-icon-size, 48px);width:var(--likec4-icon-size, 48px)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon]{mix-blend-mode:normal}.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%));width:100%;height:auto;max-height:100%}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] img{filter:none}.likec4-element-node-data [data-likec4-icon] img{object-fit:contain}.likec4-element-node-data .likec4-element-node-content{flex:0 1 auto;overflow:hidden;gap:var(--spacing-2);display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-wrap:nowrap;height:fit-content;width:fit-content;max-height:100%;max-width:100%}.likec4-element-node-data .likec4-element-node-content:has([data-likec4-node-description]):has([data-likec4-node-technology]){gap:var(--spacing-1\\.5)}.likec4-element-node-data [data-likec4-node-title]{flex:0 0 auto;font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:500;font-size:var(--likec4-text-size);line-height:1.15;text-wrap-style:balance;white-space:preserve-breaks;text-align:var(__text-align);color:var(--likec4-palette-hiContrast)}.likec4-element-node-data [data-likec4-node-description]{overflow:hidden;flex-grow:0;flex-shrink:1;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .74);line-height:1.3;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);text-overflow:ellipsis}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-description]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-description]{display:none}.likec4-element-node-data [data-likec4-node-description] a{pointer-events:all}.likec4-element-node-data [data-likec4-node-technology]{flex:0 0 auto;text-wrap:balance;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .635);line-height:1.125;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);opacity:.92}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-node-data [data-likec4-node-technology]{opacity:1}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-shape-size=sm]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-technology]{display:none}.likec4-element-shape{overflow:visible;position:absolute;pointer-events:none;top:var(--spacing-0);left:var(--spacing-0);width:100%;height:100%}[data-mantine-color-scheme=light] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 30%, var(--likec4-palette-loContrast))}.likec4-element-shape .likec4-shape-outline{visibility:hidden;animation-play-state:paused;pointer-events:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape .likec4-shape-outline{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.group:is(:focus-visible,[data-focus-visible]) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape .likec4-shape-outline{animation-play-state:paused}.likec4-tag{transition:all var(--durations-fast) var(--easings-in-out);gap:1px;padding-inline:var(--spacing-1);padding-block:var(--spacing-0);pointer-events:all;display:inline-flex;align-items:center;justify-content:center;font-size:var(--font-sizes-xs);cursor:default;font-family:var(--fonts-likec4);font-weight:700;border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.likec4-tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-tag{white-space:nowrap;min-width:40px;width:min-content}@media screen and (min-width: 36rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(0 1px 8px rgb(0 0 0 / 8%))}}@media screen and (min-width: 48rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(1px 1px 16px rgb(0 0 0 / 3%))}}}.likec4-overlay--withBackdrop_true::backdrop{background:color-mix(in srgb,var(--colors-likec4-overlay-backdrop) var(--_opacity),transparent);backdrop-filter:blur(var(--_blur));-webkit-backdrop-filter:blur(var(--_blur))}.likec4-overlay--fullscreen_true{inset:var(--spacing-0);padding:var(--spacing-0)}.likec4-overlay--withBackdrop_false::backdrop{display:none}.likec4-markdown-block--value_plaintext :where(p){white-space:preserve-breaks}.likec4-markdown-block--uselikec4palette_true{--code-background: color-mix(in srgb , var(--likec4-palette-stroke) 70%, transparent);--code-color: var(--likec4-palette-loContrast);--typography-spacing: calc(.5 * var(--text-fz-md))}.likec4-markdown-block--uselikec4palette_true :where(blockquote){padding:var(--spacing-xxs);--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-stroke) 65%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(hr){--mix-borderColor: color-mix(in srgb, var(--likec4-palette-stroke) 85%, transparent);border-color:var(--mix-borderColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(a){--mix-color: color-mix(in srgb, var(--likec4-palette-fill) 45%, transparent);color:var(--mix-color, var(--likec4-palette-fill));mix-blend-mode:difference}.likec4-markdown-block--uselikec4palette_true :where(strong){color:color-mix(in srgb,var(--likec4-palette-hiContrast) 50%,var(--likec4-palette-loContrast))}.likec4-navigation-panel-icon--variant_default{background-color:var(--colors-transparent)}.likec4-navigation-panel-icon--variant_default:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.likec4-navigation-panel-icon--variant_filled{background-color:var(--colors-likec4-panel-action-icon-bg)}.likec4-navigation-panel-icon--variant_filled:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.action-btn--size_md{--ai-size: var(--ai-size-md)}.action-btn--radius_md{--ai-radius: var(--mantine-radius-md)}.action-btn--variant_transparent{--actionbtn-bg-hovered: var(--actionbtn-bg-idle)}.action-btn--variant_filled{box-shadow:1px 1px 3px 0 transparent}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn--variant_filled{box-shadow:1px 1px 3px #0003}.likec4-root:is([data-likec4-reduced-graphics]) .action-btn--variant_filled{box-shadow:var(--shadows-none)}.likec4-compound-node--borderStyle_dashed{border-style:dashed}.likec4-compound-node--borderStyle_none{--_indicator-spacing: calc(var(--_border-width) * 2);border-color:var(--colors-transparent)!important;background-clip:border-box!important;-webkit-background-clip:border-box!important}.likec4-compound-node--isTransparent_false{border-color:var(--likec4-palette-stroke);background-color:var(--likec4-palette-fill)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node--isTransparent_false{box-shadow:0 4px 10px .5px #0000001a,0 2px 2px -1px #0006}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)!important}.likec4-compound-node--isTransparent_true{border-color:color-mix(in srgb,var(--likec4-palette-stroke) var(--_border-transparency),transparent);background-color:color-mix(in srgb,var(--likec4-palette-fill) var(--_compound-transparency),transparent)}.likec4-compound-node--inverseColor_true{--_compound-color: var(--likec4-palette-stroke)}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true{--_compound-color: color-mix(in srgb, var(--likec4-palette-loContrast) 60%, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color-hovered-btn: var(--likec4-palette-loContrast)}[data-mantine-color-scheme=light] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color: var(--likec4-palette-stroke);--actionbtn-color-hovered: var(--likec4-palette-stroke);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-hovered: var(--likec4-palette-fill)/50;--actionbtn-bg-hovered-btn: var(--likec4-palette-fill)}.likec4-compound-node--borderStyle_solid{border-style:solid}.likec4-compound-node--borderStyle_dotted{border-style:dotted}.likec4-element-shape--shapetype_html{--likec4-outline-size: 4px;border-radius:6px;transition:background-color .12s linear,box-shadow .13s var(--easings-in-out);background-color:var(--likec4-palette-fill);box-shadow:0 2px 1px #00000036,0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent),0 5px 3px #0000001a;transition-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{transition:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}[data-mantine-color-scheme=light] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#26394df2 0 20px 30px -10px}[data-mantine-color-scheme=dark] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#0a0b10e5 0 20px 30px -10px}.likec4-element-shape--shapetype_html .likec4-shape-multiple{border-radius:6px;transition:all var(--durations-fast) var(--easings-in-out);position:absolute;content:" ";background-color:var(--likec4-palette-fill);z-index:-1;filter:brightness(.5)!important;visibility:visible;top:16px;left:16px;width:calc(100% - 6px);height:calc(100% - 6px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{transform:translate(-14px,-14px)}.likec4-element-shape--shapetype_html .likec4-shape-outline{border-style:solid;border-width:var(--likec4-outline-size);border-radius:10px;border-color:var(--likec4-palette-outline);position:absolute;content:" ";animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity;top:calc(-1 * var(--likec4-outline-size));left:calc(-1 * var(--likec4-outline-size));width:calc(100% + 2 * var(--likec4-outline-size));height:calc(100% + 2 * var(--likec4-outline-size))}.likec4-element-shape--shapetype_svg{transition:fill .12s linear,filter .13s var(--easings-in-out);fill:var(--likec4-palette-fill);stroke:var(--likec4-palette-stroke);transition-delay:0ms;filter:drop-shadow(0 2px 1px rgba(0,0,0,.21)) drop-shadow(0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent)) drop-shadow(0 5px 3px rgba(0,0,0,.1))}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg{filter:drop-shadow(0 2px 1px rgba(0,0,0,.12)) drop-shadow(0px 4px 2px rgba(0,0,0,.12)) drop-shadow(0px 8px 4px rgba(0,0,0,.12)) drop-shadow(0px 16px 8px rgba(0,0,0,.1)) drop-shadow(0px 32px 16px rgba(0,0,0,.09))}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg{filter:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-element-shape--shapetype_svg [data-likec4-fill=fill]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg [data-likec4-fill=stroke]{fill:var(--likec4-palette-stroke)}.likec4-element-shape--shapetype_svg [data-likec4-fill=mix-stroke]{fill:color-mix(in srgb,var(--likec4-palette-stroke) 90%,var(--likec4-palette-fill))}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transition:all var(--durations-fast) var(--easings-in-out);transform-origin:50% 50%;transform:translate(14px,14px) perspective(200px) translateZ(-4px);filter:brightness(.5)!important;stroke:var(--colors-none)}:where([data-likec4-shape=queue]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:75% 25%}:where([data-likec4-shape=cylinder]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where([data-likec4-shape=storage]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform:translate(2px,2px) perspective(200px) translateZ(-4px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]) [data-likec4-fill=mix-stroke]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg .likec4-shape-outline{stroke:var(--likec4-palette-outline);fill:var(--colors-none);stroke-width:8;stroke-opacity:.8;animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity}.likec4-tag--autoTextColor_false>span{color:var(--colors-likec4-tag-text)}.likec4-tag--autoTextColor_false>span:first-child{opacity:.65}.likec4-tag--autoTextColor_true>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_true:is(:hover,[data-hover])>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span{color:var(--colors-likec4-tag-text)}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span:first-child{opacity:.65}@media screen and (min-width: 48rem){.likec4-overlay--fullscreen_false{--_border-radius: 6px;--_offset: 1rem;inset:var(--_inset) var(--_inset) var(--_offset) var(--_inset);padding:var(--spacing-1\\.5);border-radius:calc(var(--_border-radius) - 2px);width:calc(100vw - 2 * var(--_inset));height:calc(100vh - var(--_offset) - var(--_inset))}}@media screen and (min-width: 62rem){.likec4-overlay--fullscreen_false{--_offset: 1rem}}@media screen and (min-width: 75rem){.likec4-overlay--fullscreen_false{--_offset: 2rem}}@media screen and (min-width: 88rem){.likec4-overlay--fullscreen_false{--_offset: 4rem}}}@layer recipes.slots{@layer _base{.likec4-navlink__root{border-radius:var(--radii-sm);padding-inline:var(--spacing-xs);padding-block:var(--spacing-xxs)}.likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-gray\\[1\\])}[data-mantine-color-scheme=dark] .likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-dark\\[5\\])}.likec4-navlink__body{gap:var(--spacing-0\\.5);display:flex;flex-direction:column}.likec4-navlink__section:where([data-position=left]){margin-inline-end:var(--spacing-xxs)}.likec4-navlink__label{display:block;font-size:var(--font-sizes-sm);font-weight:500;line-height:1.2}.likec4-navlink__description{display:block;font-size:var(--font-sizes-xxs);line-height:1.2}.likec4-edge-label__root{background:var(--xy-edge-label-background-color);border:0px solid transparent;padding-block:var(--spacing-1);padding-inline:var(--spacing-1\\.5);gap:var(--spacing-0\\.5);border-radius:4px;pointer-events:all;font-family:var(--fonts-likec4-relation);display:flex;flex-direction:column;align-items:center;line-height:1.2;color:var(--xy-edge-label-color);width:max-content;max-width:100%}.likec4-edge-label__stepNumber{padding:var(--spacing-1);background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 10%);flex:0 0 auto;align-self:stretch;font-weight:600;font-size:14px;text-align:center;font-variant-numeric:tabular-nums;min-width:22px;border-top-left-radius:4px;border-bottom-left-radius:4px}.likec4-edge-label__stepNumber:only-child{border-radius:4px;min-width:24px}[data-mantine-color-scheme=dark] :where([data-likec4-color=gray]) .likec4-edge-label__stepNumber{background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 15%)}.likec4-edge-label__labelContents{display:contents}.likec4-edge-label__labelContents:is(:empty,[data-empty]){display:none!important}.likec4-edge-label__labelText{margin:var(--spacing-0);white-space-collapse:preserve-breaks;font-size:14px}.likec4-edge-label__labelTechnology{text-align:center;white-space-collapse:preserve-breaks;font-size:11px;line-height:var(--line-heights-1);opacity:.75}}.likec4-navlink__label--truncateLabel_true,.likec4-navlink__description--truncateLabel_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.likec4-edge-label__root--cursor_pointer{cursor:pointer}.likec4-edge-label__root--cursor_default{cursor:default}.likec4-edge-label__root--isStepEdge_true{padding:var(--spacing-0);gap:var(--spacing-1);flex-direction:row}.likec4-edge-label__labelContents--isStepEdge_true{gap:var(--spacing-0\\.5);display:flex;flex-direction:column;align-items:center;padding-top:var(--spacing-0\\.5);padding-right:var(--spacing-1);padding-bottom:var(--spacing-1)}.likec4-edge-label__labelText--isStepEdge_true{padding-block:var(--spacing-0\\.5);padding-right:var(--spacing-0\\.5)}}@layer utilities{@layer compositions{.layerStyle_likec4\\.panel{border:1px solid var(--colors-likec4-panel-border);padding-block:var(--spacing-1);padding-inline:var(--spacing-xs);border-radius:var(--radii-0);background-color:var(--colors-likec4-panel-bg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.panel{border-radius:var(--radii-0);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.dropdown{padding:var(--spacing-xxs);border:1px solid var(--colors-likec4-dropdown-border);border-radius:var(--radii-md);background-color:var(--colors-likec4-dropdown-bg);box-shadow:var(--shadows-lg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.dropdown{border-radius:0;border-color:var(--colors-transparent);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.tag{border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.layerStyle_likec4\\.tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:animationStyle_xyedgeAnimated{animation-duration:.8s;animation-iteration-count:infinite;animation-timing-function:linear;animation-fill-mode:both;animation-name:xyedgeAnimated}@container (min-width: 40rem){.layerStyle_likec4\\.panel{padding:2xs;border-radius:var(--radii-md);box-shadow:var(--shadows-lg)}}}.--mantine-cursor-pointer_pointer{--mantine-cursor-pointer: pointer}.--thickness_1px{--thickness: 1px}.--bleed-x_token\\(spacing\\.2\\,_2\\){--bleed-x: var(--spacing-2, 2)}.--bleed-y_token\\(spacing\\.2\\,_2\\){--bleed-y: var(--spacing-2, 2)}.--text-fz_\\{fontSizes\\.sm\\}{--text-fz: var(--font-sizes-sm)}.--view-title-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}{--view-title-color: var(--colors-mantine-colors-dark\\[1\\])}.--likec4-icon-size_24px{--likec4-icon-size: 24px}.--ti-size_var\\(--likec4-icon-size\\,_24px\\){--ti-size: var(--likec4-icon-size, 24px)}.--_color_var\\(--likec4-palette-stroke\\){--_color: var(--likec4-palette-stroke)}.--ai-radius_0px{--ai-radius: 0px}.--badge-radius_2px{--badge-radius: 2px}.--badge-fz_9\\.5px{--badge-fz: 9.5px}.--badge-padding-x_3px{--badge-padding-x: 3px}.--badge-height_13\\.5px{--badge-height: 13.5px}.--badge-lh_1{--badge-lh: 1}.--badge-bg_var\\(--likec4-palette-fill\\){--badge-bg: var(--likec4-palette-fill)}.--badge-color_var\\(--likec4-palette-hiContrast\\){--badge-color: var(--likec4-palette-hiContrast)}.bg_dots{background:dots}.bg_transparent{background:var(--colors-transparent)}.p_0{padding:var(--spacing-0)}.p_xl{padding:var(--spacing-xl)}.bd_1px_solid{border:1px solid}.bg_mantine\\.colors\\.default{background:var(--colors-mantine-colors-default)}.p_\\[4px_7px\\]{padding:4px 7px}.m_0{margin:var(--spacing-0)}.bg_\\[transparent\\]{background:var(--colors-transparent)}.p_1{padding:var(--spacing-1)}.p_4{padding:var(--spacing-4)}.p_0\\.5{padding:var(--spacing-0\\.5)}.m_xs{margin:var(--spacing-xs)}.p_md{padding:var(--spacing-md)}.p_8{padding:var(--spacing-8)}.p_xxs{padding:var(--spacing-xxs)}.bg_mantine\\.colors\\.orange\\.light{background:var(--colors-mantine-colors-orange-light)}.p_\\[4px_6px\\]{padding:4px 6px}.bg_mantine\\.colors\\.gray\\[2\\]{background:var(--colors-mantine-colors-gray\\[2\\])}.bg_mantine\\.colors\\.gray\\[3\\]{background:var(--colors-mantine-colors-gray\\[3\\])}.bd_2px_solid{border:2px solid}.inset_0{inset:var(--spacing-0)}.bd_transparent{border:var(--borders-transparent)}.bd_none{border:var(--borders-none)}.bg_mantine\\.colors\\.body{background:var(--colors-mantine-colors-body)}.p_\\[10px_8px\\]{padding:10px 8px}.bd_1px_dashed{border:1px dashed}.bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.p_\\[6px_8px\\]{padding:6px 8px}.bd_3\\.5px_solid{border:3.5px solid}.p_\\[3px_6px\\]{padding:3px 6px}.bg_var\\(--likec4-palette-fill\\)\\/75{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 75%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}.bd_1px_solid_\\{colors\\.mantine\\.colors\\.defaultBorder\\}{border:1px solid var(--colors-mantine-colors-default-border)}.p_\\[1px_5px\\]{padding:1px 5px}.bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.p_\\[6px_2px_0_2px\\]{padding:6px 2px 0}.p_\\[0_4px_5px_4px\\]{padding:0 4px 5px}.p_xs{padding:var(--spacing-xs)}.bg_mantine\\.colors\\.dark\\[9\\]\\/30{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[9\\]) 30%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[9\\]))}.bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.p_\\[12px_8px_12px_14px\\]{padding:12px 8px 12px 14px}.bd_2px_dashed{border:2px dashed}.bd_default{border:var(--borders-default)}.p_2{padding:var(--spacing-2)}.bd_3px_dashed{border:3px dashed}.gap_20{gap:20px}.gap_xs{gap:var(--spacing-xs)}.transition_fast{transition:all var(--durations-fast) var(--easings-in-out)}.td_none{text-decoration:none}.bdr_sm{border-radius:var(--radii-sm)}.bd-c_mantine\\.colors\\.defaultBorder{border-color:var(--colors-mantine-colors-default-border)}.flex_1{flex:1 1 0%}.gap_xxs{gap:var(--spacing-xxs)}.gap_sm{gap:var(--spacing-sm)}.gap_1{gap:var(--spacing-1)}.ov_hidden{overflow:hidden}.gap_0\\.5{gap:var(--spacing-0\\.5)}.gap_\\[4px\\]{gap:4px}.px_xs{padding-inline:var(--spacing-xs)}.py_xxs{padding-block:var(--spacing-xxs)}.px_sm{padding-inline:var(--spacing-sm)}.gap_8px{gap:8px}.gap_1\\.5{gap:var(--spacing-1\\.5)}.bdr_\\[4px\\]{border-radius:4px}.px_1\\.5{padding-inline:var(--spacing-1\\.5)}.gap_3{gap:var(--spacing-3)}.mx_calc\\(var\\(--bleed-x\\,_0\\)_\\*_-1\\){margin-inline:calc(var(--bleed-x, 0) * -1)}.my_calc\\(var\\(--bleed-y\\,_0\\)_\\*_-1\\){margin-block:calc(var(--bleed-y, 0) * -1)}.py_2\\.5{padding-block:var(--spacing-2\\.5)}.px_2{padding-inline:var(--spacing-2)}.gap_2{gap:var(--spacing-2)}.offset_2{offset:2px}.py_1\\.5{padding-block:var(--spacing-1\\.5)}.bd-l_2px_dotted{border-left:2px dotted}.px_1{padding-inline:var(--spacing-1)}.py_0\\.5{padding-block:var(--spacing-0\\.5)}.bdr_\\[2px\\]{border-radius:2px}.px_xxs{padding-inline:var(--spacing-xxs)}.py_1{padding-block:var(--spacing-1)}.gap_\\[1px\\]{gap:1px}.gap_md{gap:var(--spacing-md)}.ov_auto{overflow:auto}.ovs-b_contain{overscroll-behavior:contain}.ov_visible{overflow:visible}.my_10{margin-block:var(--spacing-10)}.flex_1_1_40\\%{flex:1 1 40%}.bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}.bd-c_mantine\\.colors\\.gray\\[5\\]{border-color:var(--colors-mantine-colors-gray\\[5\\])}.bdr_3{border-radius:3px}.bd-c_mantine\\.colors\\.orange\\[6\\]{border-color:var(--colors-mantine-colors-orange\\[6\\])}.tw_pretty{text-wrap:pretty}.gap_lg{gap:var(--spacing-lg)}.flex_0{flex:0}.flex_0_0_40px{flex:0 0 40px}.gap_\\[24px_20px\\]{gap:24px 20px}.bd-c_mantine\\.colors\\.dark\\[3\\]{border-color:var(--colors-mantine-colors-dark\\[3\\])}.bd-t_none{border-top:var(--borders-none)}.bd-l_none{border-left:var(--borders-none)}.bdr_2px{border-radius:2px}.gap_4{gap:var(--spacing-4)}.gap_6{gap:var(--spacing-6)}.gap_\\[4px_4px\\]{gap:4px 4px}.ovs-b_none{overscroll-behavior:none}.flex_1_1_100\\%{flex:1 1 100%}.offset_0{offset:0}.py_4{padding-block:var(--spacing-4)}.gap_8{gap:var(--spacing-8)}.px_md{padding-inline:var(--spacing-md)}.py_xs{padding-block:var(--spacing-xs)}.grid-c_1{grid-column:1}.grid-c_2{grid-column:2}.grid-c_3{grid-column:3}.bd-b_1px_solid{border-bottom:1px solid}.gap_0{gap:var(--spacing-0)}.gap_\\[10px_12px\\]{gap:10px 12px}.py_3{padding-block:var(--spacing-3)}.offset_4{offset:4px}.flex_1_0_auto{flex:1 0 auto}.ring_none{outline:var(--borders-none)}.ring_none\\!{outline:var(--borders-none)!important}.bdr_4px{border-radius:4px}.mx_auto{margin-inline:auto}.px_4{padding-inline:var(--spacing-4)}.py_md{padding-block:var(--spacing-md)}.bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.flex_0_0_var\\(--likec4-icon-size\\,_24px\\){flex:0 0 var(--likec4-icon-size, 24px)}.bdr_md{border-radius:var(--radii-md)}.py_xl{padding-block:var(--spacing-xl)}.bd-w_1{border-width:1px}.bd-c_\\[var\\(--_color\\)\\/30\\]{--mix-borderColor: color-mix(in srgb, var(--_color) 30%, transparent);border-color:var(--mix-borderColor, var(--_color))}.bdr_xs{border-radius:var(--radii-xs)}.transition_all_100ms_ease-in{transition:all .1s ease-in}.transition_all_150ms_ease-in-out{transition:all .15s ease-in-out}.py_sm{padding-block:var(--spacing-sm)}.flex_0_0_auto{flex:0 0 auto}.flex_0_0_70px{flex:0 0 70px}.bd-w_3px{border-width:3px}.border-style_dashed{border-style:dashed}.px_3{padding-inline:var(--spacing-3)}.px_5{padding-inline:var(--spacing-5)}.gap_6px{gap:6px}.px_4px{padding-inline:4px}.cursor_pointer{cursor:pointer}.pos_absolute{position:absolute}.c_gray{color:gray}.bkdp_blur\\(5px\\){backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.z_1000{z-index:1000}.c_red{color:red}.c_teal{color:teal}.op_1{opacity:1}.op_0\\.45{opacity:.45}.flex-wrap_nowrap{flex-wrap:nowrap}.us_all{-webkit-user-select:all;user-select:all}.bg-c_transparent{background-color:var(--colors-transparent)}.stk_2\\.5{stroke:2.5px}.op_0\\.7{opacity:.7}.fill_\\[\\#FCFBF7\\]{fill:#fcfbf7}.bx-sh_xs{box-shadow:var(--shadows-xs)}.fs_sm{font-size:var(--font-sizes-sm)}.fw_500{font-weight:500}.c_mantine\\.colors\\.placeholder{color:var(--colors-mantine-colors-placeholder)}.fs_11px{font-size:11px}.fw_600{font-weight:600}.lh_1{line-height:var(--line-heights-1)}.stk_2{stroke:2px}.ai_flex-start{align-items:flex-start}.pointer-events_none{pointer-events:none}.d_flex{display:flex}.ai_stretch{align-items:stretch}.flex-d_column{flex-direction:column}.main-axis_4{main-axis:4px}.pos_bottom-start{position:bottom-start}.ai_center{align-items:center}.flex-d_row{flex-direction:row}.pos_relative{position:relative}.pointer-events_all{pointer-events:all}.us_none{-webkit-user-select:none;user-select:none}.d_none{display:none}.flex-sh_1{flex-shrink:1}.flex-g_1{flex-grow:1}.flex-g_0{flex-grow:0}.op_0\\.3{opacity:.3}.bg-c_mantine\\.colors\\.gray\\[1\\]{background-color:var(--colors-mantine-colors-gray\\[1\\])}.stk_1\\.5{stroke:1.5px}.bd-e-w_var\\(--thickness\\){border-inline-end-width:var(--thickness)}.c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.c_mantine\\.colors\\.text\\/90{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.trunc_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.bg-c_\\[rgb\\(34_34_34_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(34 34 34 / var(--_opacity, 95%))}.bkdp_auto{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.bkdp-blur_var\\(--_blur\\,_10px\\){--backdrop-blur: blur(var(--_blur, 10px))}.jc_stretch{justify-content:stretch}.cq-n_likec4-search-elements{container-name:likec4-search-elements}.cq-t_size{container-type:size}.d_contents{display:contents}.d_grid{display:grid}.order_6{order:6}.stk_1\\.8{stroke:1.8px}.trunc_end{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trs-dur_normal{--transition-duration: var(--durations-normal);transition-duration:var(--durations-normal)}.trs-dly_0\\.2s{transition-delay:.2s}.fill_none{fill:var(--colors-none)}.stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_2\\){stroke-width:calc(var(--xy-edge-stroke-width) + 2)}.stk-op_0\\.08{stroke-opacity:.08}.fill_\\[var\\(--xy-edge-stroke\\)\\]{fill:var(--xy-edge-stroke)}.stk_\\[var\\(--xy-edge-stroke\\)\\]{stroke:var(--xy-edge-stroke)}.stk-do_0{stroke-dashoffset:0}.jc_center{justify-content:center}.z_1{z-index:1}.ai_flex-end{align-items:flex-end}.justify-items_stretch{justify-items:stretch}.fs_lg{font-size:var(--font-sizes-lg)}.ai_baseline{align-items:baseline}.flex-wrap_wrap{flex-wrap:wrap}.translate_auto{translate:var(--translate-x) var(--translate-y)}.translate-x_\\[-8px\\]{--translate-x: -8px}.bd-be-w_var\\(--thickness\\){border-block-end-width:var(--thickness)}.cursor_default{cursor:default}.pos_top-start{position:top-start}.op_0\\.65{opacity:.65}.d_block{display:block}.fs_xxs{font-size:var(--font-sizes-xxs)}.lh_sm{line-height:var(--line-heights-sm)}.white-space_nowrap{white-space:nowrap}.white-space-collapse_preserve-breaks{white-space-collapse:preserve-breaks}.c_likec4\\.panel\\.action-icon\\.text{color:var(--colors-likec4-panel-action-icon-text)}.bg-c_likec4\\.panel\\.action-icon\\.bg{background-color:var(--colors-likec4-panel-action-icon-bg)}.op_0\\.8{opacity:.8}.pos_bottom-end{position:bottom-end}.bx-sh_xl{box-shadow:var(--shadows-xl)}.fs_xs{font-size:var(--font-sizes-xs)}.op_0\\.5{opacity:.5}.me_0\\.5{margin-inline-end:var(--spacing-0\\.5)}.fw_400{font-weight:400}.bx-sh_md{box-shadow:var(--shadows-md)}.main-axis_2{main-axis:2px}.lh_1\\.1{line-height:1.1}.pos_right-start{position:right-start}.bx-sh_lg{box-shadow:var(--shadows-lg)}.main-axis_10{main-axis:10px}.op_0\\.6{opacity:.6}.c_orange{color:orange}.pos_top{position:top}.pos_right{position:right}.main-axis_12{main-axis:12px}.ta_center{text-align:center}.bx-sh_inset_1px_1px_3px_0px_\\#00000024{box-shadow:inset 1px 1px 3px #00000024}.trf_translate\\(-50\\%\\,_-50\\%\\){transform:translate(-50%,-50%)}.flex-sh_0{flex-shrink:0}.ms_0{margin-inline-start:var(--spacing-0)}.z_9{z-index:9}.ta_left{text-align:left}.lh_1\\.25{line-height:1.25}.bx-s_border-box{box-sizing:border-box}.pos_fixed{position:fixed}.c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}.bg-c_mantine\\.colors\\.body{background-color:var(--colors-mantine-colors-body)}.bg-i_linear-gradient\\(180deg\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_60\\%\\,_transparent\\)\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_20\\%\\,_transparent\\)_8px\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_14\\%\\,_transparent\\)_20px\\,_transparent_80px_\\)\\,_linear-gradient\\(180deg\\,_var\\(--likec4-palette-fill\\)\\,_var\\(--likec4-palette-fill\\)_4px\\,_transparent_4px\\){background-image:linear-gradient(180deg,color-mix(in srgb,var(--likec4-palette-fill) 60%,transparent),color-mix(in srgb,var(--likec4-palette-fill) 20%,transparent) 8px,color-mix(in srgb,var(--likec4-palette-fill) 14%,transparent) 20px,transparent 80px),linear-gradient(180deg,var(--likec4-palette-fill),var(--likec4-palette-fill) 4px,transparent 4px)}.cursor_move{cursor:move}.ff_likec4\\.element{font-family:var(--fonts-likec4-element)}.font-optical-sizing_auto{font-optical-sizing:auto}.font-style_normal{font-style:normal}.fs_24px{font-size:24px}.lh_xs{line-height:var(--line-heights-xs)}.as_flex-start{align-self:flex-start}.c_\\[var\\(--view-title-color\\,_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}\\)\\]{color:var(--view-title-color, var(--colors-mantine-colors-gray\\[7\\]))}.fs_15px{font-size:15px}.lh_1\\.4{line-height:1.4}.c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}.grid-tc_min-content_1fr{grid-template-columns:min-content 1fr}.grid-ar_min-content_max-content{grid-auto-rows:min-content max-content}.justify-self_end{justify-self:end}.ta_right{text-align:right}.cursor_se-resize{cursor:se-resize}.ai_start{align-items:start}.jc_space-between{justify-content:space-between}.stk_1\\.6{stroke:1.6px}.trs-prop_all{--transition-prop: all;transition-property:all}.trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}.c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}.white-space_pre{white-space:pre}.ff_mono{font-family:var(--fonts-mono)}.ps_\\[16px\\]{padding-inline-start:16px}.pe_2\\.5{padding-inline-end:var(--spacing-2\\.5)}.stk_1\\.2{stroke:1.2px}.d_inline-block{display:inline-block}.lh_1\\.2{line-height:1.2}.c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}.fs_xl{font-size:var(--font-sizes-xl)}.c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.bx-sh_none{box-shadow:var(--shadows-none)}.d_inline-flex{display:inline-flex}.pos_top-right{position:top-right}.pos_top-left{position:top-left}.grid-cs_1{grid-column-start:1}.grid-ce_4{grid-column-end:4}.grid-tc_1fr_30px_1fr{grid-template-columns:1fr 30px 1fr}.justify-items_start{justify-items:start}.c_dark{color:dark}.stk_3\\.5{stroke:3.5px}.cq-n_likec4-tree{container-name:likec4-tree}.cq-t_inline-size{container-type:inline-size}.fs_10px{font-size:10px}.lh_1\\.3{line-height:1.3}.order_2{order:2}.grayscale_0{--grayscale: grayscale(0)}.grayscale_0\\.9{--grayscale: grayscale(.9)}.filter_auto{filter:var(--blur, ) var(--brightness, ) var(--contrast, ) var(--grayscale, ) var(--hue-rotate, ) var(--invert, ) var(--saturate, ) var(--sepia, ) var(--drop-shadow, )}.cross-axis_50{cross-axis:50px}.sr_true{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fs_13px{font-size:13px}.fs_16px{font-size:16px}.c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}.fs_12px{font-size:12px}.fs_md{font-size:var(--font-sizes-md)}.bg-c_\\[rgb\\(34_34_34_\\/_0\\.7\\)\\]{background-color:#222222b3}.z_902{z-index:902}.bkdp-blur_10px{--backdrop-blur: blur(10px)}.trf_translateX\\(-50\\%\\){transform:translate(-50%)}.z_903{z-index:903}.mix-bm_normal{mix-blend-mode:normal}.fill_var\\(--likec4-palette-relation-stroke\\){fill:var(--likec4-palette-relation-stroke)}.stk_var\\(--likec4-palette-relation-stroke\\){stroke:var(--likec4-palette-relation-stroke)}.fill-opacity_0\\.75{fill-opacity:.75}.stk-w_1{stroke-width:1}.cursor_grab{cursor:grab}.pointer-events_auto{pointer-events:auto}.vis_hidden{visibility:hidden}.cursor_grabbing{cursor:grabbing}.bg-c_var\\(--likec4-palette-fill\\)\\/15{--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-fill) 15%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-fill))}.fw_bold{font-weight:700}.ls_\\.75px{letter-spacing:.75px}.c_\\[var\\(--_color\\)\\/75\\]{--mix-color: color-mix(in srgb, var(--_color) 75%, transparent);color:var(--mix-color, var(--_color))}.bg-c_var\\(--likec4-palette-fill\\){background-color:var(--likec4-palette-fill)}.translate-x_-1\\/2{--translate-x: -50%}.translate-y_-1\\/2{--translate-y: -50%}.bg-c_mantine\\.colors\\.body\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-body) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-body))}.fill_var\\(--likec4-palette-fill\\){fill:var(--likec4-palette-fill)}.stk_var\\(--likec4-palette-stroke\\){stroke:var(--likec4-palette-stroke)}.filter_drop-shadow\\(0_2px_3px_rgb\\(0_0_0_\\/_22\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_10\\%\\)\\){filter:drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) drop-shadow(0 1px 8px rgb(0 0 0 / 10%))}.ls_0\\.2px{letter-spacing:.2px}.tt_lowercase{text-transform:lowercase}.op_0\\.25{opacity:.25}.stk-w_5{stroke-width:5}.pos_right-end{position:right-end}.jc_flex-start{justify-content:flex-start}.pos_left-start{position:left-start}.tov_ellipsis{text-overflow:ellipsis}.top_1rem{top:1rem}.right_1rem{right:1rem}.top_0{top:var(--spacing-0)}.left_0{left:var(--spacing-0)}.w_100\\%{width:100%}.h_100\\%{height:100%}.mt_xl{margin-top:var(--spacing-xl)}.min-h_24{min-height:24px}.max-w_500{max-width:500px}.pr_0{padding-right:var(--spacing-0)}.h_12{height:12px}.w_12{width:12px}.h_30px{height:30px}.pl_sm{padding-left:var(--spacing-sm)}.pr_1{padding-right:var(--spacing-1)}.pr_2\\.5{padding-right:var(--spacing-2\\.5)}.max-w_calc\\(100vw\\){max-width:100vw}.pr_md{padding-right:var(--spacing-md)}.max-w_200px{max-width:200px}.max-w_calc\\(100vw_-_50px\\){max-width:calc(100vw - 50px)}.max-w_calc\\(100vw_-_250px\\){max-width:calc(100vw - 250px)}.max-h_calc\\(100vh_-_200px\\){max-height:calc(100vh - 200px)}.max-h_calc\\(100vh_-_160px\\){max-height:calc(100vh - 160px)}.mb_1{margin-bottom:var(--spacing-1)}.max-h_100vh{max-height:100vh}.pt_\\[20px\\]{padding-top:20px}.pl_md{padding-left:var(--spacing-md)}.pb_sm{padding-bottom:var(--spacing-sm)}.pr_xs{padding-right:var(--spacing-xs)}.lc_5{-webkit-line-clamp:5}.lc_5,.lc_2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.lc_2{-webkit-line-clamp:2}.lc_3{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.max-h_8rem{max-height:8rem}.top_0\\.5{top:var(--spacing-0\\.5)}.right_0\\.5{right:var(--spacing-0\\.5)}.bottom_0{bottom:var(--spacing-0)}.max-w_50{max-width:50px}.h_5{height:5px}.w_max-content{width:max-content}.pt_2{padding-top:var(--spacing-2)}.mt_2{margin-top:var(--spacing-2)}.mt_0{margin-top:var(--spacing-0)}.pl_2\\.5{padding-left:var(--spacing-2\\.5)}.bd-l-c_mantine\\.colors\\.gray\\[3\\]{border-left-color:var(--colors-mantine-colors-gray\\[3\\])}.w_\\[20px\\]{width:20px}.mt_1{margin-top:var(--spacing-1)}.mb_xxs{margin-bottom:var(--spacing-xxs)}.pb_lg{padding-bottom:var(--spacing-lg)}.max-w_calc\\(100cqw_-_52px\\){max-width:calc(100cqw - 52px)}.min-w_200px{min-width:200px}.max-h_calc\\(100cqh_-_100px\\){max-height:calc(100cqh - 100px)}.h_auto{height:auto}.pt_6{padding-top:var(--spacing-6)}.mb_10{margin-bottom:var(--spacing-10)}.pt_100\\%{padding-top:100%}.left_2{left:var(--spacing-2)}.bottom_2{bottom:var(--spacing-2)}.mt_xs{margin-top:var(--spacing-xs)}.top_md{top:var(--spacing-md)}.left_md{left:var(--spacing-md)}.w_8{width:8px}.h_8{height:8px}.mr_sm{margin-right:var(--spacing-sm)}.h_26{height:26px}.top_\\[1px\\]{top:1px}.right_\\[1px\\]{right:1px}.pt_xxs{padding-top:var(--spacing-xxs)}.max-w_calc\\(100cqw_-_32px\\){max-width:calc(100cqw - 32px)}.min-w_calc\\(100cqw_-_50px\\){min-width:calc(100cqw - 50px)}.w_100vw{width:100vw}.h_100vh{height:100vh}.max-w_100vw{max-width:100vw}.h_40px{height:40px}.w_40px{width:40px}.w_14px{width:14px}.h_14px{height:14px}.bottom_0\\.5{bottom:var(--spacing-0\\.5)}.mb_sm{margin-bottom:var(--spacing-sm)}.lc_1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.mt_6{margin-top:var(--spacing-6)}.pt_xs{padding-top:var(--spacing-xs)}.pr_xxs{padding-right:var(--spacing-xxs)}.mb_0{margin-bottom:var(--spacing-0)}.h_36px{height:36px}.min-w_24{min-width:24px}.mb_4{margin-bottom:var(--spacing-4)}.top_12{top:12px}.right_12{right:12px}.mt_sm{margin-top:var(--spacing-sm)}.ml_sm{margin-left:var(--spacing-sm)}.pl_1{padding-left:var(--spacing-1)}.bd-b-c_mantine\\.colors\\.defaultBorder{border-bottom-color:var(--colors-mantine-colors-default-border)}.max-h_70vh{max-height:70vh}.mb_2{margin-bottom:var(--spacing-2)}.max-w_8xl{max-width:8xl}.pl_\\[48px\\]{padding-left:48px}.mr_1{margin-right:var(--spacing-1)}.min-h_60px{min-height:60px}.h_var\\(--likec4-icon-size\\,_24px\\){height:var(--likec4-icon-size, 24px)}.w_var\\(--likec4-icon-size\\,_24px\\){width:var(--likec4-icon-size, 24px)}.top_\\[2rem\\]{top:2rem}.left_\\[50\\%\\]{left:50%}.max-w_600px{max-width:600px}.pl_2{padding-left:var(--spacing-2)}.pt_0\\.5{padding-top:var(--spacing-0\\.5)}.w_5px{width:5px}.top_1{top:var(--spacing-1)}.right_0{right:var(--spacing-0)}.w_min-content{width:min-content}.h_min-content{height:min-content}.min-w_200{min-width:200px}.max-w_calc\\(100vw_-_20px\\){max-width:calc(100vw - 20px)}.pt_0{padding-top:var(--spacing-0)}.pb_0{padding-bottom:var(--spacing-0)}.ml_2{margin-left:var(--spacing-2)}.h_xs{height:xs}.pb_8{padding-bottom:var(--spacing-8)}.pt_4{padding-top:var(--spacing-4)}.max-w_220px{max-width:220px}.\\[\\&_\\.action-icon\\]\\:--ai-size_2rem .action-icon{--ai-size: 2rem}[data-mantine-color-scheme=light] .light\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[6\\]\\}{--icon-color: var(--colors-mantine-colors-gray\\[6\\])}[data-mantine-color-scheme=light] .light\\:--view-title-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}{--view-title-color: var(--colors-mantine-colors-gray\\[7\\])}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:--ti-size_22px .mantine-ThemeIcon-root{--ti-size: 22px}[data-mantine-color-scheme=dark] .dark\\:--_color_\\[color-mix\\(in_srgb\\,_var\\(--likec4-palette-hiContrast\\)_40\\%\\,_var\\(--likec4-palette-fill\\)\\)\\]{--_color: color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:--ai-radius_\\{radii\\.md\\}{--ai-radius: var(--radii-md)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]{background:var(--colors-mantine-colors-dark\\[6\\])}.before\\:bg_\\[transparent\\]:before{background:var(--colors-transparent)}[data-mantine-color-scheme=light] .light\\:bg_var\\(--likec4-palette-fill\\)\\/90{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 90%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_var\\(--likec4-palette-fill\\)\\/60{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[5\\]{background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.\\[\\&\\[data-active\\]\\]\\:bg_mantine\\.colors\\.white[data-active]{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/15[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 15%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/20[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[3\\]\\/20{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[6\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-white) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-white))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[4\\]{border-color:var(--colors-mantine-colors-dark\\[4\\])}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:transition_none\\!{transition:none!important}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[2\\]{border-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[7\\]{border-color:var(--colors-mantine-colors-dark\\[7\\])}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:transition_none{transition:none}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:transition_stroke_130ms_ease-out\\,stroke-width_130ms_ease-out{transition:stroke .13s ease-out,stroke-width .13s ease-out}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:bdr_4{border-radius:4px}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:transition_fast .mantine-ThemeIcon-root{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&_\\>_\\*\\]\\:transition_all_130ms_\\{easings\\.inOut\\}>*{transition:all .13s var(--easings-in-out)}.\\[\\&\\[data-active\\]\\]\\:transition_none[data-active]{transition:none}.\\[\\&_\\>_\\*\\]\\:transition_fast>*,.\\[\\&_\\.tabler-icon\\]\\:transition_fast .tabler-icon{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&\\[data-missing\\]\\]\\:bd-c_mantine\\.colors\\.orange\\[5\\]\\/20[data-missing]{--mix-borderColor: color-mix(in srgb, var(--colors-mantine-colors-orange\\[5\\]) 20%, transparent);border-color:var(--mix-borderColor, var(--colors-mantine-colors-orange\\[5\\]))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:bd-b_none:last-child .likec4-edge-label{border-bottom:var(--borders-none)}.\\[\\&_\\>_\\*\\]\\:transition_all_0\\.15s_ease-in>*{transition:all .15s ease-in}[data-mantine-color-scheme=dark] .dark\\:bd-c_transparent{border-color:var(--colors-transparent)}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:transition_fill-opacity_150ms_ease-out\\,_stroke_150ms_ease-out\\,_stroke-width_150ms_ease-out{transition:fill-opacity .15s ease-out,stroke .15s ease-out,stroke-width .15s ease-out}.\\[\\&_\\:where\\(\\.likec4-diagram\\,_\\.likec4-compound-node\\,_\\.likec4-element-node\\)\\]\\:cursor_pointer :where(.likec4-diagram,.likec4-compound-node,.likec4-element-node){cursor:pointer}[data-mantine-color-scheme=dark] .dark\\:bg-c_\\[rgb\\(34_34_34_\\/_10\\%\\)\\]{background-color:#2222221a}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(15_15_15\\/_20\\%\\)\\]{background-color:#0f0f0f33}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:c_mantine\\.colors\\.dimmed:is([data-position=left]){color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:us_none:is([data-position=left]){-webkit-user-select:none;user-select:none}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:pointer-events_none:is([data-position=left]){pointer-events:none}[data-mantine-color-scheme=light] .light\\:fill_\\[\\#222221\\]{fill:#222221}.\\[\\&_\\.tabler-icon\\]\\:c_mantine\\.colors\\.text .tabler-icon{color:var(--colors-mantine-colors-text)}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none\\!{box-shadow:var(--shadows-none)!important}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[0\\]{color:var(--colors-mantine-colors-dark\\[0\\])}[data-mantine-color-scheme=light] .light\\:bg-c_mantine\\.colors\\.gray\\[2\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-gray\\[2\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-gray\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[8\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[8\\]))}.empty\\:d_none:is(:empty,[data-empty]){display:none}.\\[\\&_\\>_mark\\]\\:bg-c_mantine\\.colors\\.yellow\\[2\\]\\/90>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[2\\]) 90%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:op_0\\.5{opacity:.5}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}.placeholder\\:c_mantine\\.colors\\.dimmed::placeholder,.placeholder\\:c_mantine\\.colors\\.dimmed[data-placeholder]{color:var(--colors-mantine-colors-dimmed)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[3\\]{color:var(--colors-mantine-colors-dark\\[3\\])}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(250_250_250_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(250 250 250 / var(--_opacity, 95%))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-prop_stroke-width\\,_stroke-opacity{--transition-prop: stroke-width, stroke-opacity;transition-property:stroke-width,stroke-opacity}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_4\\){stroke-width:calc(var(--xy-edge-stroke-width) + 4)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-op_0\\.2{stroke-opacity:.2}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_6\\){stroke-width:calc(var(--xy-edge-stroke-width) + 6)}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-op_0\\.25{stroke-opacity:.25}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:anim-ps_paused{animation-play-state:paused}:where([data-edge-dir=back]) .\\[\\:where\\(\\[data-edge-dir\\=\\'back\\'\\]\\)_\\&\\]\\:anim-dir_reverse{animation-direction:reverse}:where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]) .whenDimmed\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:anim-n_none{animation-name:none}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:stk-dsh_none\\!{stroke-dasharray:none!important}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:d_none{display:none}.before\\:content_\\"_\\":before{content:" "}.before\\:pos_absolute:before{position:absolute}.before\\:pointer-events_all:before{pointer-events:all}:where(.react-flow__node.selectable:not(.dragging)) .\\[\\:where\\(\\.react-flow__node\\.selectable\\:not\\(\\.dragging\\)\\)_\\&\\]\\:cursor_pointer{cursor:pointer}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-dly_\\.08s{transition-delay:.08s}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:pointer-events_none{pointer-events:none}[data-mantine-color-scheme=light] .light\\:c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}[data-mantine-color-scheme=dark] .dark\\:c_var\\(--likec4-palette-loContrast\\){color:var(--likec4-palette-loContrast)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\[4\\]{color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.\\[\\&\\:is\\(\\[data-position\\=\\"right\\"\\]\\)\\]\\:ms_1:is([data-position=right]){margin-inline-start:var(--spacing-1)}.\\[\\&_\\:where\\(button\\,_\\.action-icon\\,_\\[role\\=\\'dialog\\'\\]\\)\\]\\:pointer-events_all :where(button,.action-icon,[role=dialog]){pointer-events:all}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none{box-shadow:var(--shadows-none)}.backdrop\\:bkdp_auto::backdrop{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.backdrop\\:bkdp-blur_var\\(--_blur\\)::backdrop{--backdrop-blur: blur(var(--_blur))}.backdrop\\:bg-c_\\[rgb\\(36_36_36_\\/_var\\(--_opacity\\,_5\\%\\)\\)\\]::backdrop{background-color:rgb(36 36 36 / var(--_opacity, 5%))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]{background-color:var(--colors-mantine-colors-dark\\[6\\])}.\\[\\&_\\.react-flow__attribution\\]\\:d_none .react-flow__attribution{display:none}[data-mantine-color-scheme=dark] .dark\\:mix-bm_hard-light{mix-blend-mode:hard-light}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:pointer-events_none :where(svg,img){pointer-events:none}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:filter_drop-shadow\\(0_0_3px_rgb\\(0_0_0_\\/_10\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_5\\%\\)\\)_drop-shadow\\(1px_1px_16px_rgb\\(0_0_0_\\/_2\\%\\)\\) :where(svg,img){filter:drop-shadow(0 0 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))}.\\[\\&_img\\]\\:obj-f_contain img{object-fit:contain}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:c_\\[var\\(--icon-color\\,_\\{colors\\.mantine\\.colors\\.dark\\[2\\]\\}\\)\\] .mantine-ThemeIcon-root{color:var(--icon-color, var(--colors-mantine-colors-dark\\[2\\]))}.\\[\\&\\[data-active\\]\\]\\:bx-sh_xs[data-active]{box-shadow:var(--shadows-xs)}.\\[\\&\\[data-active\\]\\]\\:c_mantine\\.colors\\.defaultColor[data-active]{color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\.lightColor{color:var(--colors-mantine-colors-gray-light-color)}.\\[\\&_\\.tabler-icon\\]\\:op_0\\.65 .tabler-icon{opacity:.65}.\\[\\&\\[data-missing\\]\\]\\:c_mantine\\.colors\\.orange\\[4\\][data-missing]{color:var(--colors-mantine-colors-orange\\[4\\])}.before\\:content_\\"scope\\:\\":before{content:"scope:"}.before\\:fs_xxs:before{font-size:var(--font-sizes-xxs)}.before\\:fw_500:before{font-weight:500}.before\\:lh_1:before{line-height:var(--line-heights-1)}.before\\:c_mantine\\.colors\\.dimmed:before{color:var(--colors-mantine-colors-dimmed)}.before\\:op_0\\.85:before{opacity:.85}.before\\:trf_translateY\\(-100\\%\\)_translateY\\(-2px\\):before{transform:translateY(-100%) translateY(-2px)}.\\[\\&\\[data-zero\\]\\]\\:c_mantine\\.colors\\.dimmed[data-zero]{color:var(--colors-mantine-colors-dimmed)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.text\\/90 .mantine-Text-root{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xs .mantine-Text-root{font-size:var(--font-sizes-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_500 .mantine-Text-root{font-weight:500}.\\[\\&_\\.mantine-Text-root\\]\\:lh_1\\.2 .mantine-Text-root{line-height:1.2}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xxs .mantine-Text-root{font-size:var(--font-sizes-xxs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_400 .mantine-Text-root{font-weight:400}.\\[\\&_\\.mantine-Text-root\\]\\:lh_xs .mantine-Text-root{line-height:var(--line-heights-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.dimmed .mantine-Text-root{color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\[data-disabled\\]_\\.mantine-ThemeIcon-root\\]\\:op_0\\.45[data-disabled] .mantine-ThemeIcon-root{opacity:.45}:where(.likec4-view-btn[data-disabled]) .\\[\\:where\\(\\.likec4-view-btn\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none svg,.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none img{pointer-events:none}.\\[\\&\\.likec4-shape-icon_svg\\]\\:stk-w_1\\.5.likec4-shape-icon svg{stroke-width:1.5}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.4{opacity:.4}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(255_255_255_\\/_0\\.6\\)\\]{background-color:#fff9}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:vis_visible{visibility:visible}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:trs-dly_50ms{transition-delay:50ms}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:fill-opacity_1{fill-opacity:1}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:stk-w_5{stroke-width:5}.\\[\\&_\\*\\]\\:cursor_grabbing\\! *,.\\[\\&_\\.react-flow__edge-interaction\\]\\:cursor_grabbing\\! .react-flow__edge-interaction{cursor:grabbing!important}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[6\\]))}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:min-h_100\\% .mantine-ScrollArea-viewport{min-height:100%}:where([data-likec4-shape=browser]) .shapeBrowser\\:right_\\[5px\\]{right:5px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=storage]) .shapeStorage\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=queue]) .shapeQueue\\:top_\\[1px\\]{top:1px}:where([data-likec4-shape=queue]) .shapeQueue\\:right_3{right:var(--spacing-3)}.before\\:top_\\[calc\\(100\\%_-_4px\\)\\]:before{top:calc(100% - 4px)}.before\\:left_0:before{left:var(--spacing-0)}.before\\:w_100\\%:before{width:100%}.before\\:h_24px:before{height:24px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=storage]) .shapeStorage\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=queue]) .shapeQueue\\:bottom_0{bottom:var(--spacing-0)}:where([data-likec4-shape=queue]) .shapeQueue\\:pl_\\[14px\\]{padding-left:14px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:h_12{height:12px}[data-mantine-color-scheme=dark] .dark\\:bd-l-c_mantine\\.colors\\.dark\\[4\\]{border-left-color:var(--colors-mantine-colors-dark\\[4\\])}.\\[\\&_\\>_svg\\]\\:w_70\\%>svg{width:70%}.\\[\\&_\\>_svg\\]\\:h_70\\%>svg{height:70%}.\\[\\&_\\.tabler-icon\\]\\:w_65\\% .tabler-icon{width:65%}.\\[\\&_\\.tabler-icon\\]\\:h_65\\% .tabler-icon{height:65%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:w_100\\% :where(svg,img){width:100%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:h_auto :where(svg,img){height:auto}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:max-h_100\\% :where(svg,img){max-height:100%}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pl_1:not(:has(.mantine-ScrollArea-root)){padding-left:var(--spacing-1)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pr_1:not(:has(.mantine-ScrollArea-root)){padding-right:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:w_100\\% .mantine-ScrollArea-root{width:100%}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:h_100\\% .mantine-ScrollArea-root{height:100%}.\\[\\&\\[data-level\\=\\'1\\'\\]\\]\\:mb_sm[data-level="1"]{margin-bottom:var(--spacing-sm)}.\\[\\&_\\.tabler-icon\\]\\:w_90\\% .tabler-icon{width:90%}.before\\:top_0:before{top:var(--spacing-0)}.before\\:left_2:before{left:var(--spacing-2)}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:mb_0:last-child .likec4-edge-label{margin-bottom:var(--spacing-0)}.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% img{width:100%}.\\[\\&_svg\\,_\\&_img\\]\\:h_auto svg,.\\[\\&_svg\\,_\\&_img\\]\\:h_auto img{height:auto}.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% img{max-height:100%}:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\])+:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\]){margin-top:32px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:w_7px{width:7px}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:w_7px{width:7px}.focusWithin\\:bg_mantine\\.colors\\.gray\\[4\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[4\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-gray\\[4\\]))!important}.group:focus-within .groupFocusWithin\\:op_1{opacity:1}.group:focus-within .groupFocusWithin\\:grayscale_0{--grayscale: grayscale(0)}.focus\\:bg_mantine\\.colors\\.primary\\[8\\]:is(:focus,[data-focus]){background:var(--colors-mantine-colors-primary\\[8\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.group:is(:focus,[data-focus]) .groupFocus\\:transition_none{transition:none}.focus\\:ring_none:is(:focus,[data-focus]){outline:var(--borders-none)}.focusVisible\\:ring_none:is(:focus-visible,[data-focus-visible]){outline:var(--borders-none)}.focus\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:focus,[data-focus]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:ring_none{outline:var(--borders-none)}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_\\[inherit\\]\\!{color:inherit!important}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.5{opacity:.5}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.8{opacity:.8}.focus\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.focus\\:c_mantine\\.colors\\.primary\\.lightColor\\!:is(:focus,[data-focus]){color:var(--colors-mantine-colors-primary-light-color)!important}.focus\\:bg-c_mantine\\.colors\\.primary\\.lightHover\\!:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-primary-light-hover)!important}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-dark\\[1\\])}.hover\\:--view-title-color_\\{colors\\.mantine\\.colors\\.defaultColor\\}:is(:hover,[data-hover]){--view-title-color: var(--colors-mantine-colors-default-color)}.hover\\:bg_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\[3\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.defaultHover{background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\.lightHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray-light-hover)}.hover\\:bg_mantine\\.colors\\.primary\\[8\\]\\/60:is(:hover,[data-hover]){--mix-background: color-mix(in srgb, var(--colors-mantine-colors-primary\\[8\\]) 60%, transparent);background:var(--mix-background, var(--colors-mantine-colors-primary\\[8\\]))}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.gray\\[3\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}.hover\\:td_underline:is(:hover,[data-hover]){text-decoration:underline}.hover\\:bd-c_mantine\\.colors\\.defaultBorder:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-default-border)}.hover\\:bd-w_4px:is(:hover,[data-hover]){border-width:4px}.hover\\:bd-c_mantine\\.colors\\.dark\\[1\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-dark\\[1\\])}.hover\\:border-style_solid:is(:hover,[data-hover]){border-style:solid}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:transition_all_0\\.15s_ease-out:is(:hover,[data-selected=true])>*{transition:all .15s ease-out}.hover\\:ring_none:is(:hover,[data-hover]){outline:var(--borders-none)}.hover\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.hover\\:transition_stroke_100ms_ease-out\\,_stroke-width_100ms_ease-out:is(:hover,[data-hover]){transition:stroke .1s ease-out,stroke-width .1s ease-out}.hover\\:transition_all_120ms_ease-out:is(:hover,[data-hover]){transition:all .12s ease-out}.hover\\:op_1:is(:hover,[data-hover]){opacity:1}.hover\\:bg-c_mantine\\.colors\\.gray\\[1\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[1\\])}.hover\\:bx-sh_sm:is(:hover,[data-hover]){box-shadow:var(--shadows-sm)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.5{opacity:.5}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.8{opacity:.8}.hover\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.hover\\:c_\\[var\\(--mantine-color-bright\\)\\]:is(:hover,[data-hover]){color:var(--mantine-color-bright)}.hover\\:c_mantine\\.colors\\.text:is(:hover,[data-hover]){color:var(--colors-mantine-colors-text)}.hover\\:trs-dly_0s:is(:hover,[data-hover]){transition-delay:0s}.hover\\:c_likec4\\.panel\\.action-icon\\.text\\.hover:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-icon-text-hover)}.hover\\:bg-c_likec4\\.panel\\.action-icon\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.\\[\\&\\:hover_\\>_\\*\\]\\:trs-tmf_out:hover>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.\\[\\&\\:hover_\\>_\\*\\]\\:trf_translateX\\(1\\.6px\\):hover>*{transform:translate(1.6px)}.hover\\:trs-tmf_out:is(:hover,[data-hover]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:c_mantine\\.colors\\.defaultColor:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}.group:is(:hover,[data-hover]) .groupHover\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:cursor_pointer:is(:hover,[data-selected=true])>*{cursor:pointer}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-selected=true])>*{background-color:var(--colors-mantine-colors-default-hover)}.hover\\:bg-c_mantine\\.colors\\.gray\\[0\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:op_1{opacity:1}.group:is(:hover,[data-hover]) .groupHover\\:grayscale_0{--grayscale: grayscale(0)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:fill-opacity_1:is(:hover,[data-hover]){fill-opacity:1}.hover\\:stk_mantine\\.colors\\.primary\\.filledHover:is(:hover,[data-hover]){stroke:var(--colors-mantine-colors-primary-filled-hover)}.hover\\:stk-w_10:is(:hover,[data-hover]){stroke-width:10}.hover\\:bg-c_mantine\\.colors\\.primary\\[2\\]\\/50:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-primary\\[2\\]) 50%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-primary\\[2\\]))}.group:is(:active,[data-active]) .groupActive\\:op_0\\.5{opacity:.5}.group:is(:active,[data-active]) .groupActive\\:op_0\\.8{opacity:.8}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:\\[\\&_\\.action-icon\\]\\:--ai-radius_0px .action-icon{--ai-radius: 0px}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:bg_mantine\\.colors\\.dark\\[5\\]:is([data-active]){background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .light\\:\\[\\&_\\.mantine-SegmentedControl-root\\]\\:bg_mantine\\.colors\\.gray\\[3\\] .mantine-SegmentedControl-root{background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:c_\\[var\\(--badge-color\\)\\]:is([data-position=left]){color:var(--badge-color)}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:op_0\\.7:is([data-position=left]){opacity:.7}[data-mantine-color-scheme=dark] .\\[\\&_\\>_mark\\]\\:dark\\:bg-c_mantine\\.colors\\.yellow\\[5\\]\\/80>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[5\\]))}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:bg-c_\\[transparent\\]>mark{background-color:var(--colors-transparent)}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:c_\\[inherit\\]\\!>mark{color:inherit!important}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) :where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:whenHovered\\:stk-op_0\\.4{stroke-opacity:.4}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-dly_450ms{animation-delay:.45s}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-dly_0ms{animation-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .reduceGraphicsOnPan\\:before\\:d_none:before{display:none}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:hover\\:c_mantine\\.colors\\.defaultColor .mantine-ThemeIcon-root:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:c_mantine\\.colors\\.white:is([data-active]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .\\[\\&\\[data-missing\\]\\]\\:light\\:c_mantine\\.colors\\.orange\\[8\\][data-missing]{color:var(--colors-mantine-colors-orange\\[8\\])}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:min-h_100\\% .mantine-ScrollArea-viewport>div{min-height:100%}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:h_100\\% .mantine-ScrollArea-viewport>div{height:100%}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pl_1 .mantine-ScrollArea-root>div{padding-left:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pr_1 .mantine-ScrollArea-root>div{padding-right:var(--spacing-1)}[data-mantine-color-scheme=dark] .focusWithin\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))!important}[data-mantine-color-scheme=dark] .focus\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=light] .group:is(:focus,[data-focus]) .groupFocus\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg_mantine\\.colors\\.dark\\[6\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=light] .light\\:hover\\:bd-c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[6\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:bg-c_mantine\\.colors\\.gray\\[2\\]{background-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]{background-color:var(--colors-mantine-colors-dark\\[8\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/70:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=dark] .dark\\:hover\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trs-tmf_out:is(:hover,[data-hover])>:not([data-no-transform]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>:not([data-no-transform]){transform:translate(1px)}.hover\\:\\[\\&_\\>_\\*\\]\\:trs-tmf_out:is(:hover,[data-hover])>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\*\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>*{transform:translate(1px)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-default-hover)}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:bg-c_mantine\\.colors\\.primary\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-primary\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg-c_mantine\\.colors\\.dark\\[3\\]\\/40:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[3\\]) 40%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[3\\]))}@container (min-width: 24rem){.\\@\\/xs\\:d_flex{display:flex}}@media screen and (min-width: 36rem){.xs\\:max-w_calc\\(100cqw\\){max-width:100cqw}.xs\\:max-w_calc\\(100cqw_-_50px\\){max-width:calc(100cqw - 50px)}.xs\\:max-w_calc\\(100cqw_-_250px\\){max-width:calc(100cqw - 250px)}.xs\\:max-h_calc\\(100cqh_-_200px\\){max-height:calc(100cqh - 200px)}.xs\\:max-h_calc\\(100cqh_-_160px\\){max-height:calc(100cqh - 160px)}.xs\\:h_100cqh{height:100cqh}.xs\\:max-h_calc\\(100cqh_-_70px\\){max-height:calc(100cqh - 70px)}}@container (min-width: 40rem){.\\@\\/sm\\:m_xs{margin:var(--spacing-xs)}.\\@\\/sm\\:gap_xs{gap:var(--spacing-xs)}.\\@\\/sm\\:w_max-content{width:max-content}.\\@\\/sm\\:max-w_calc\\(100vw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100vw - 2 * var(--spacing-md))}.\\@\\/sm\\:min-w_400{min-width:400px}.\\@\\/sm\\:max-w_550{max-width:550px}}@container (min-width: 40rem){@media screen and (min-width: 36rem){.\\@\\/sm\\:xs\\:max-w_calc\\(100cqw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100cqw - 2 * var(--spacing-md))}}}@container (min-width: 48rem){.\\@\\/md\\:d_block{display:block}.\\@\\/md\\:d_flex{display:flex}.\\@\\/md\\:d_none{display:none}.\\@\\/md\\:d_\\[inherit\\]{display:inherit}.\\@\\/md\\:ms_2{margin-inline-start:var(--spacing-2)}.\\@\\/md\\:w_\\[64px\\]{width:64px}}@media screen and (min-width: 48rem){.sm\\:pr_\\[30px\\]{padding-right:30px}.sm\\:min-w_300{min-width:300px}.sm\\:max-w_65vw{max-width:65vw}}@media screen and (min-width: 62rem){.md\\:--text-fz_\\{fontSizes\\.md\\}{--text-fz: var(--font-sizes-md)}.md\\:bd-w_4{border-width:4px}.md\\:px_6{padding-inline:var(--spacing-6)}.md\\:pr_\\[50px\\]{padding-right:50px}.md\\:max-w_40vw{max-width:40vw}}@container (min-width: 64rem){.\\@\\/lg\\:max-w_700{max-width:700px}}@media screen and (min-width: 75rem){.lg\\:px_8{padding-inline:var(--spacing-8)}}@container likec4-tree (max-width: 450px){.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:--likec4-icon-size_18px{--likec4-icon-size: 18px}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:gap_0\\.5{gap:var(--spacing-0\\.5)}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:flex-d_column-reverse{flex-direction:column-reverse}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:ai_flex-start{align-items:flex-start}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:d_none{display:none}}}`,Yet={autoContrast:!0,primaryColor:"indigo",cursorType:"pointer",defaultRadius:"sm",fontFamily:"var(--likec4-app-font, var(--likec4-app-font-default))",headings:{fontWeight:"500",sizes:{h1:{fontWeight:"600"},h2:{fontWeight:"500"}}},components:{Portal:D1.extend({defaultProps:{reuseTargetNode:!0}})}};ye({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Wet(e,r){const[n,o]=E.useState([]);return QS(()=>{if(e&&!document.querySelector("style[data-likec4-font]")){const a=document.createElement("style");a.setAttribute("type","text/css"),a.setAttribute("data-likec4-font",""),V6(r)&&a.setAttribute("nonce",r),_1(r)&&a.setAttribute("nonce",r()),a.appendChild(document.createTextNode(qet)),document.head.appendChild(a)}},[e]),QS(()=>{const a=new CSSStyleSheet;return a.replaceSync(Yte.replaceAll(":where(:root,:host)",".likec4-shadow-root").replaceAll(":root",".likec4-shadow-root").replaceAll(new RegExp("(?<![-_])\\bbody\\s*\\{","g"),".likec4-shadow-root{")),o([a]),()=>{a.replaceSync("")}},[Yte]),n}const Wte=()=>{try{const e=window.getComputedStyle(document.documentElement).colorScheme??"",r=hp(e.split(" "));if(r==="light"||r==="dark")return r}catch{}return null};function Xet(e){const r=MV(),[n,o]=E.useState(Wte);return qV(vp(()=>o(Wte),100),{attributes:!0,childList:!1,subtree:!1},()=>document.documentElement),e??n??r}function Get(e,r=!1){if(r===!1)return`
:where([data-likec4-instance="${e}"]) {
  display: block;
  box-sizing: border-box;
  border: 0 solid transparent;
  background: transparent;
  padding: 0;
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 80px;
  min-height: 80px;
}
  `.trim();const{width:n,height:o}=r,a=n>o;return`
:where([data-likec4-instance="${e}"]) {
  display: block;
  box-sizing: border-box;
  border: 0 solid transparent;
  background: transparent;
  padding: 0;
  overflow: hidden;
  aspect-ratio: ${Math.ceil(n)} / ${Math.ceil(o)};
  ${a?"":`
  max-width: min(100%, var(--likec4-view-max-width, ${Math.ceil(n)}px));
  margin-left: auto;
  margin-right: auto;`}
  width: ${a?"100%":"auto"};
  height: ${a?"auto":"100%"};
  ${a?"min-width: 80px;":"min-height: 80px;"}
  max-height: min(100%, var(--likec4-view-max-height, ${Math.ceil(o)}px));
}
`.trim()}const Ket=Vet.div;function Zet({children:e,theme:r=Yet,injectFontCss:n=!0,styleNonce:o,colorScheme:a,keepAspectRatio:i=!1,...s}){const l=Xet(a),c=ZW(),u=Get(c,i),d=E.useRef(null),h=Wet(n,o),p=E.useCallback(()=>d.current??void 0,[d]);let g,y;return H6(o)&&(typeof o=="string"?(y=o,g=()=>o):typeof o=="function"&&(y=o(),g=o)),b.jsxs(b.Fragment,{children:[b.jsx("style",{type:"text/css",nonce:y,dangerouslySetInnerHTML:{__html:u}}),b.jsx(Ket,{ssr:!1,...s,styleSheets:h,"data-likec4-instance":c,children:b.jsx("div",{ref:d,"data-mantine-color-scheme":l,className:"likec4-shadow-root",children:b.jsx(gC,{...a&&{forceColorScheme:a},defaultColorScheme:l,getRootElement:p,...g&&{getStyleNonce:g},cssVariablesSelector:".likec4-shadow-root",theme:r,children:b.jsx(m7,{children:e})})})})]})}const Qet=ye({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Jet({viewId:e,className:r,pannable:n=!1,zoomable:o=!1,keepAspectRatio:a=!0,colorScheme:i,injectFontCss:s=!0,controls:l=!1,background:c="transparent",browser:u=!0,showNavigationButtons:d=!1,showNotations:h,enableFocusMode:p=!1,enableDynamicViewWalkthrough:g=!1,enableElementDetails:y=!1,enableRelationshipDetails:x=!1,enableRelationshipBrowser:w=x,reduceGraphics:k="auto",mantineTheme:C,styleNonce:_,style:T,reactFlowProps:A,renderNodes:N,children:$,...R}){const M=Aze(),[O,B]=E.useState(null),I=it(()=>{B(e)});if(!M)return b.jsx(g7,{children:"LikeC4Model not found. Make sure you provided LikeC4ModelProvider."});const Y=M.findView(e)?.$view;if(!Y)return b.jsx(Tet,{viewId:e});if(Y._stage!=="layouted")return b.jsxs(g7,{children:['LikeC4 View "$',e,'" is not layouted. Make sure you have LikeC4ModelProvider with layouted model.']});const D=O?M.findView(O)?.$view:null,V=(Y.notation?.nodes??[]).length>0;h??=V;const L=u!==!1,U=eV(u)?{}:u,q=Pte(Y,R.dynamicViewVariant);return b.jsx(Zet,{injectFontCss:s,theme:C,colorScheme:i,styleNonce:_,keepAspectRatio:a?q:!1,className:Je("likec4-view",r),style:T,children:b.jsxs(m7,{children:[b.jsx(Ote,{view:Y,readonly:!0,pannable:n,zoomable:o,background:c,fitView:!0,fitViewPadding:Mk.default,showNotations:h,enableDynamicViewWalkthrough:g,showNavigationButtons:d,experimentalEdgeEditing:!1,enableFocusMode:p,enableRelationshipDetails:x,enableElementDetails:y,enableRelationshipBrowser:w,enableElementTags:!1,controls:l,nodesDraggable:!1,reduceGraphics:k,className:Je("likec4-static-view",L&&Qet),enableSearch:!1,...L&&{onCanvasClick:I,onNodeClick:I},reactFlowProps:A,renderNodes:N,children:$,...R}),D&&b.jsxs(Oy,{openDelay:0,onClose:()=>B(null),children:[b.jsx(Ote,{view:D,pannable:!0,zoomable:!0,background:"dots",onNavigateTo:B,showNavigationButtons:!0,enableDynamicViewWalkthrough:!0,enableFocusMode:!0,enableRelationshipBrowser:!0,enableElementDetails:!0,enableRelationshipDetails:!0,enableSearch:!0,enableElementTags:!0,controls:!0,readonly:!0,fitView:!0,...R,fitViewPadding:Mk.withControls,...U,showNotations:U.showNotations??h,renderNodes:N}),b.jsx(Se,{pos:"absolute",top:"1rem",right:"1rem",children:b.jsx(or,{variant:"default",color:"gray",onClick:X=>{X.stopPropagation(),B(null)},children:b.jsx(Hp,{})})})]})]})})}const ett={};function ttt(e){const r=ett[e.node.icon??""];return r?b.jsx(r,e):null}function rtt(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function Xte(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return rtt(e,r,n);throw Error("Wrong number of arguments")}function ntt(...e){return Xte(ott,e)}function ott(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function Gte(...e){return Xte(By,e)}function By(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return att(e,r);if(e instanceof Map)return itt(e,r);if(e instanceof Set)return stt(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!By(o,r[n]))return!1;return!0}function att(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!By(o,r[n]))return!1;return!0}function itt(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!By(o,r.get(n)))return!1;return!0}function stt(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(By(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}let vs=[],Au=0;const f_=4;let p_=0,Kte=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=Au+f_;i<vs.length;)vs[i]===o?vs.splice(i,f_):i+=f_;let a=r.indexOf(o);~a&&(r.splice(a,1),--n.lc||n.off())}},notify(o,a){p_++;let i=!vs.length;for(let s of r)vs.push(s,n.value,o,a);if(i){for(Au=0;Au<vs.length;Au+=f_)vs[Au](vs[Au+1],vs[Au+2],vs[Au+3]);vs.length=0}},off(){},set(o){let a=n.value;a!==o&&(n.value=o,n.notify(a))},subscribe(o){let a=n.listen(o);return o(n.value),a},value:e};return n};const ltt=5,m_=6,g_=10;let ctt=(e,r,n,o)=>(e.events=e.events||{},e.events[n+g_]||(e.events[n+g_]=o(a=>{e.events[n].reduceRight((i,s)=>(s(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(r),()=>{let a=e.events[n],i=a.indexOf(r);a.splice(i,1),a.length||(delete e.events[n],e.events[n+g_](),delete e.events[n+g_])}),utt=1e3,dtt=(e,r)=>ctt(e,n=>{let o=r(n);o&&e.events[m_].push(o)},ltt,n=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,n()),o(...i));let a=e.off;return e.events[m_]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[m_])i();e.events[m_]=[]}},utt)},()=>{e.listen=o,e.off=a}}),htt=(e,r,n)=>{Array.isArray(e)||(e=[e]);let o,a,i=()=>{if(a===p_)return;a=p_;let u=e.map(d=>d.get());if(!o||u.some((d,h)=>d!==o[h])){o=u;let d=r(...u);d&&d.then&&d.t?d.then(h=>{o===u&&s.set(h)}):(s.set(d),a=p_)}},s=Kte(void 0),l=s.get;s.get=()=>(i(),l());let c=i;return dtt(s,()=>{let u=e.map(d=>d.listen(c));return i(),()=>{for(let d of u)d()}}),s},Zte=(e,r)=>htt(e,r);function ftt(e,r,n){let o=new Set(r).add(void 0);return e.listen((a,i,s)=>{o.has(s)&&n(a,i,s)})}let x7=(e,r)=>n=>{e.current!==n&&(e.current=n,r())};function Qte(e,{keys:r,deps:n=[e,r]}={}){let o=E.useRef();o.current=e.get();let a=E.useCallback(s=>(x7(o,s)(e.value),r?.length>0?ftt(e,r,x7(o,s)):e.listen(x7(o,s))),n),i=()=>o.current;return E.useSyncExternalStore(a,i,i)}const ptt=e=>{const r=Zte(e,l=>$d.create(l));function n(l){const c=e.get();if(Gte(c,l))return;const u={...l,views:ntt(l.views,d=>{const h=c.views[d.id];return Gte(h,d)?h:d})};e.set(u)}const o=Zte(e,l=>Object.values(l.views));function a(){return Qte(r)}function i(){return Qte(o)}function s(l){const[c,u]=E.useState(e.value?.views[l]??null);return E.useEffect(()=>e.subscribe(d=>{u(d.views[l]??null)}),[l]),c}return{updateModel:n,$likec4model:r,useLikeC4Model:a,useLikeC4Views:i,useLikeC4View:s}},mtt=Kte({_stage:"layouted",projectId:"documentation-platform",project:{id:"documentation-platform",title:"documentation-platform"},specification:{tags:{},elements:{person:{style:{shape:"person"}},system:{style:{shape:"rectangle"}},tool:{style:{shape:"rectangle"}},component:{style:{shape:"rectangle"}},process:{style:{shape:"rectangle"}},environment:{style:{shape:"cylinder"}},repository:{style:{shape:"storage"}}},relationships:{},deployments:{},customColors:{}},elements:{documentor:{style:{shape:"person"},technology:"Hugo, Markdown, LikeC4",description:{txt:"Content creator and maintainer of the developer platform documentation"},title:"Documentor",kind:"person",id:"documentor"},docPlatform:{style:{shape:"rectangle"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},title:"Documentation Platform",kind:"system",id:"docPlatform"},cicdPipeline:{style:{shape:"rectangle"},description:{txt:"Automated testing and deployment pipeline"},title:"CI/CD Pipeline",kind:"system",id:"cicdPipeline"},deploymentEnv:{style:{shape:"rectangle"},description:{txt:"Edge deployment infrastructure"},title:"Deployment Environment",kind:"system",id:"deploymentEnv"},"docPlatform.hugoSite":{style:{shape:"rectangle"},technology:"Hugo Extended, Docsy",description:{txt:"Static site generator based on Hugo with Docsy theme"},title:"Hugo Site",kind:"component",id:"docPlatform.hugoSite"},"docPlatform.contentRepo":{style:{shape:"storage"},technology:"Git, Markdown",description:{txt:"Markdown files, images, and configuration"},title:"Content Repository",kind:"repository",id:"docPlatform.contentRepo"},"docPlatform.likec4Integration":{style:{shape:"rectangle"},technology:"LikeC4, Web Components",description:{txt:"Architecture diagram visualization embedded in documentation"},title:"LikeC4 Integration",kind:"component",id:"docPlatform.likec4Integration"},"docPlatform.taskfile":{style:{shape:"rectangle"},technology:"Task (go-task)",description:{txt:"Task automation for local development, build, and testing"},title:"Taskfile",kind:"tool",id:"docPlatform.taskfile"},"docPlatform.devServer":{style:{shape:"rectangle"},technology:"Hugo Server",description:{txt:"Local Hugo server with hot reload for content development"},title:"Development Server",kind:"process",id:"docPlatform.devServer"},"cicdPipeline.githubActions":{style:{shape:"rectangle"},technology:"GitHub Actions",description:{txt:"Automated testing workflow on push/PR"},title:"GitHub Actions",kind:"process",id:"cicdPipeline.githubActions"},"cicdPipeline.containerBuild":{style:{shape:"rectangle"},technology:"Docker",description:{txt:"OCI/Docker image creation with Hugo site"},title:"Container Build",kind:"process",id:"cicdPipeline.containerBuild"},"deploymentEnv.edgeConnect":{style:{shape:"cylinder"},technology:"EdgeConnect",description:{txt:"Edge deployment orchestration platform"},title:"Edge Connect",kind:"environment",id:"deploymentEnv.edgeConnect"},"deploymentEnv.k8sCluster":{style:{shape:"cylinder"},technology:"Kubernetes",description:{txt:"K8s cluster on edge cloudlet (Munich)"},title:"Kubernetes Cluster",kind:"environment",id:"deploymentEnv.k8sCluster"},"docPlatform.contentRepo.contentPages":{style:{shape:"rectangle"},technology:"Markdown",description:{txt:"Documentation pages in Markdown format"},title:"Content Pages",kind:"component",id:"docPlatform.contentRepo.contentPages"},"docPlatform.contentRepo.archModels":{style:{shape:"rectangle"},technology:"LikeC4 DSL",description:{txt:"LikeC4 architecture models and views"},title:"Architecture Models",kind:"component",id:"docPlatform.contentRepo.archModels"},"docPlatform.contentRepo.assets":{style:{shape:"rectangle"},technology:"CSS, JavaScript",description:{txt:"CSS, JavaScript, images, fonts"},title:"Static Assets",kind:"component",id:"docPlatform.contentRepo.assets"},"cicdPipeline.githubActions.testBuild":{style:{shape:"rectangle"},technology:"Hugo",description:{txt:"Hugo build validation"},title:"Build Test",kind:"component",id:"cicdPipeline.githubActions.testBuild"},"cicdPipeline.githubActions.testMarkdown":{style:{shape:"rectangle"},technology:"markdownlint",description:{txt:"Markdown syntax and style checking"},title:"Markdown Lint",kind:"component",id:"cicdPipeline.githubActions.testMarkdown"},"cicdPipeline.githubActions.testHtml":{style:{shape:"rectangle"},technology:"htmlvalidate",description:{txt:"Generated HTML validation"},title:"HTML Validation",kind:"component",id:"cicdPipeline.githubActions.testHtml"},"cicdPipeline.githubActions.testLinks":{style:{shape:"rectangle"},technology:"htmltest",description:{txt:"Broken link detection"},title:"Link Checker",kind:"component",id:"cicdPipeline.githubActions.testLinks"},"deploymentEnv.k8sCluster.docService":{style:{shape:"rectangle"},technology:"K8s Service",description:{txt:"LoadBalancer service exposing docs on port 80"},title:"Documentation Service",kind:"component",id:"deploymentEnv.k8sCluster.docService"},"deploymentEnv.k8sCluster.docDeployment":{style:{shape:"rectangle"},technology:"K8s Deployment, Nginx",description:{txt:"Pod running Hugo-generated static site"},title:"Documentation Deployment",kind:"component",id:"deploymentEnv.k8sCluster.docDeployment"}},relations:{"1ouysrh":{title:"writes documentation",description:{txt:"Creates and updates Markdown content"},source:{model:"documentor"},target:{model:"docPlatform.contentRepo.contentPages"},id:"1ouysrh"},fmzkfl:{title:"creates architecture models",description:{txt:"Defines C4 models with LikeC4 DSL"},source:{model:"documentor"},target:{model:"docPlatform.contentRepo.archModels"},id:"fmzkfl"},"1iop8z6":{title:"executes local tasks",description:{txt:"task serve, task build, task test"},source:{model:"documentor"},target:{model:"docPlatform.taskfile"},id:"1iop8z6"},"1h50i3u":{title:"starts",description:{txt:"task serve"},source:{model:"docPlatform.taskfile"},target:{model:"docPlatform.devServer"},id:"1h50i3u"},dg5rzk:{title:"renders",description:{txt:"Live reload on content changes"},source:{model:"docPlatform.devServer"},target:{model:"docPlatform.hugoSite"},id:"dg5rzk"},"1qbbmxu":{title:"reads content from",description:{txt:"Processes Markdown and templates"},source:{model:"docPlatform.hugoSite"},target:{model:"docPlatform.contentRepo"},id:"1qbbmxu"},"1oh42mx":{title:"integrates",description:{txt:"Embeds architecture diagrams"},source:{model:"docPlatform.hugoSite"},target:{model:"docPlatform.likec4Integration"},id:"1oh42mx"},"1a8c499":{title:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},source:{model:"docPlatform.likec4Integration"},target:{model:"docPlatform.contentRepo.archModels"},id:"1a8c499"},"1dzhdhu":{title:"can run locally",description:{txt:"task test:build"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testBuild"},id:"1dzhdhu"},"14ls3qa":{title:"can run locally",description:{txt:"task test:markdown"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testMarkdown"},id:"14ls3qa"},htx1q7:{title:"can run locally",description:{txt:"task test:html"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testHtml"},id:"htx1q7"},"1vqq9gw":{title:"can run locally",description:{txt:"task test:links"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testLinks"},id:"1vqq9gw"},"8hsu7m":{title:"triggers on push/PR",description:{txt:"Webhook on main branch"},source:{model:"docPlatform.contentRepo"},target:{model:"cicdPipeline.githubActions"},id:"8hsu7m"},omluoy:{title:"builds",description:{txt:"hugo --gc --minify"},source:{model:"cicdPipeline.githubActions.testBuild"},target:{model:"docPlatform.hugoSite"},id:"omluoy"},"11hmyp0":{title:"validates",description:{txt:"Lints Markdown files"},source:{model:"cicdPipeline.githubActions.testMarkdown"},target:{model:"docPlatform.contentRepo.contentPages"},id:"11hmyp0"},"1bziuh3":{title:"validates output",description:{txt:"Checks generated HTML"},source:{model:"cicdPipeline.githubActions.testHtml"},target:{model:"docPlatform.hugoSite"},id:"1bziuh3"},"9nq85f":{title:"checks links in",description:{txt:"Detects broken links"},source:{model:"cicdPipeline.githubActions.testLinks"},target:{model:"docPlatform.hugoSite"},id:"9nq85f"},"1knexmm":{title:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},source:{model:"cicdPipeline.githubActions"},target:{model:"cicdPipeline.containerBuild"},id:"1knexmm"},"1nifn":{title:"packages",description:{txt:"public/ directory served by Nginx"},source:{model:"cicdPipeline.containerBuild"},target:{model:"docPlatform.hugoSite"},id:"1nifn"},"1hae5vm":{title:"pushes image to",description:{txt:"Tagged container image"},source:{model:"cicdPipeline.containerBuild"},target:{model:"deploymentEnv.edgeConnect"},id:"1hae5vm"},"3gelf9":{title:"deploys to",description:{txt:"Via edgeconnectdeployment.yaml"},source:{model:"deploymentEnv.edgeConnect"},target:{model:"deploymentEnv.k8sCluster"},id:"3gelf9"},"164u7gn":{title:"exposed by",description:{txt:"Port 80"},source:{model:"deploymentEnv.k8sCluster.docDeployment"},target:{model:"deploymentEnv.k8sCluster.docService"},id:"164u7gn"},otinu1:{title:"views published docs",description:{txt:"HTTPS access to live documentation"},source:{model:"documentor"},target:{model:"deploymentEnv.k8sCluster.docService"},id:"otinu1"}},globals:{predicates:{},dynamicPredicates:{},styles:{}},views:{index:{_stage:"layouted",_type:"element",id:"index",title:"Landscape view",description:null,autoLayout:{direction:"TB"},hash:"d9b3559595eeba5234c915991564d6eb05a128a5",bounds:{x:0,y:0,width:550,height:1148},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1ndqohb","1t1nq4"],title:"Documentor",modelRef:"documentor",shape:"person",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:171,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:[],inEdges:["1ndqohb","8lbghe"],outEdges:["jw1mqa"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",navigateTo:"overview",x:8,y:323,width:320,height:180,labelBBox:{x:25,y:54,width:271,height:65}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["jw1mqa"],outEdges:["8lbghe","1d6ysxt"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:0,y:646,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:47}},{id:"deploymentEnv",parent:null,level:0,children:[],inEdges:["1t1nq4","1d6ysxt"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",x:169,y:968,width:320,height:180,labelBBox:{x:46,y:63,width:229,height:48}}],edges:[{id:"1ndqohb",source:"documentor",target:"docPlatform",label:"[...]",dotpos:"e,213.04,322.97 285.72,179.93 264.61,221.48 239.41,271.07 217.75,313.7",points:[[286,180],[265,221],[239,271],[218,314]],labelBBox:{x:255,y:239,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl","1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1t1nq4",source:"documentor",target:"deploymentEnv",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,369.57,968.77 355.53,179.95 366.18,222.77 377.44,275.06 382.9,322.8 412.48,581.39 434.94,652.6 386.9,908.4 383.76,925.16 378.78,942.46 373.03,959.07",points:[[356,180],[366,223],[377,275],[383,323],[412,581],[435,653],[387,908],[384,925],[379,942],[373,959]],labelBBox:{x:413,y:562,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"jw1mqa",source:"docPlatform",target:"cicdPipeline",label:"[...]",dotpos:"e,91.003,645.83 103.63,502.79 93.021,521.76 83.628,542.28 77.91,562.8 70.997,587.62 76.085,613.1 86.561,636.59",points:[[104,503],[93,522],[84,542],[78,563],[71,588],[76,613],[87,637]],labelBBox:{x:79,y:561,width:25,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw","8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"8lbghe",source:"cicdPipeline",target:"docPlatform",label:"[...]",dotpos:"e,166.79,502.73 165.01,645.77 165.52,604.59 166.14,555.48 166.67,513.08",points:[[165,646],[166,605],[166,555],[167,513]],labelBBox:{x:167,y:561,width:25,height:18},parent:null,relations:["omluoy","11hmyp0","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"1d6ysxt",source:"cicdPipeline",target:"deploymentEnv",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,283.22,968.57 209.65,825.53 231.02,867.08 256.52,916.67 278.45,959.3",points:[[210,826],[231,867],[257,917],[278,959]],labelBBox:{x:252,y:885,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"}]},overview:{_type:"element",tags:null,links:null,viewOf:"docPlatform",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"High-level overview of the Hugo-based documentation platform for documentors"},title:"Documentation Platform Overview",id:"overview",autoLayout:{direction:"TB"},hash:"ee38e18e93593defec5a01081b1c1cb8614e9734",bounds:{x:0,y:0,width:1362,height:1851},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1it4ty8","1xegqy"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:788,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["11swhvh","1yjnj9z"],outEdges:["1y7uioy","zvvnul"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:841,y:1300,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:48}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.taskfile","docPlatform.devServer","docPlatform.hugoSite","docPlatform.likec4Integration","docPlatform.contentRepo"],inEdges:["1it4ty8","1xegqy","1y7uioy","zvvnul"],outEdges:["11swhvh","1yjnj9z"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"localDevelopment",x:8,y:271,width:763,height:1572,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1055tf","1yjnj9z"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:389,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"docPlatform.devServer",parent:"docPlatform",level:1,children:[],inEdges:["1055tf"],outEdges:["zrlo7a"],title:"Development Server",modelRef:"docPlatform.devServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Local Hugo server with hot reload for content development"},tags:[],technology:"Hugo Server",kind:"process",x:391,y:655,width:338,height:180,labelBBox:{x:18,y:44,width:303,height:85}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["1y7uioy","zrlo7a"],outEdges:["blbbud","o4y09i"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:400,y:978,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:85}},{id:"docPlatform.likec4Integration",parent:"docPlatform",level:1,children:[],inEdges:["o4y09i"],outEdges:["ga3up5"],title:"LikeC4 Integration",modelRef:"docPlatform.likec4Integration",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Architecture diagram visualization embedded in documentation"},tags:[],technology:"LikeC4, Web Components",kind:"component",x:48,y:1300,width:339,height:180,labelBBox:{x:18,y:45,width:303,height:85}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["1it4ty8","zvvnul","blbbud","ga3up5"],outEdges:["11swhvh"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:411,y:1623,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}}],edges:[{id:"1it4ty8",source:"documentor",target:"docPlatform.contentRepo",label:"[...]",dotpos:"e,732.09,1678.6 1107.9,153.46 1214.5,206.72 1335,294.84 1335,421 1335,421 1335,421 1335,1391.4 1335,1519.2 967.26,1624.1 742.04,1676.3",points:[[1108,153],[1214,207],[1335,295],[1335,421],[1335,421],[1335,421],[1335,1391],[1335,1519],[967,1624],[742,1676]],labelBBox:{x:1336,y:893,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,664.34,332.26 843.51,179.87 790.56,224.9 726.22,279.62 672.23,325.55",points:[[844,180],[791,225],[726,280],[672,326]],labelBBox:{x:767,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1y7uioy",source:"cicdPipeline",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,683.37,1157.5 881.78,1300.6 822.72,1258 751.91,1207 691.78,1163.6",points:[[882,1301],[823,1258],[752,1207],[692,1164]],labelBBox:{x:797,y:1216,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"zvvnul",source:"cicdPipeline",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,732.04,1649.5 948.79,1480.2 927.52,1509.2 901.5,1539.8 873,1563.2 833.88,1595.3 786.7,1622.7 741.38,1644.9",points:[[949,1480],[928,1509],[902,1540],[873,1563],[834,1595],[787,1623],[741,1645]],labelBBox:{x:896,y:1540,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,569.46,1622.2 561.52,1157.4 563.55,1276.5 567.16,1487.3 569.29,1611.9",points:[[562,1157],[564,1276],[567,1487],[569,1612]],labelBBox:{x:568,y:1379,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"},{id:"o4y09i",source:"docPlatform.hugoSite",target:"docPlatform.likec4Integration",label:"integrates",description:{txt:"Embeds architecture diagrams"},dotpos:"e,312.7,1300.6 465.19,1157.5 420.15,1199.8 366.26,1250.3 320.3,1293.4",points:[[465,1158],[420,1200],[366,1250],[320,1293]],labelBBox:{x:400,y:1217,width:65,height:18},parent:"docPlatform",relations:["1oh42mx"],color:"gray",line:"dashed",head:"normal"},{id:"zrlo7a",source:"docPlatform.devServer",target:"docPlatform.hugoSite",label:"renders",description:{txt:"Live reload on content changes"},dotpos:"e,560,977.77 560,834.73 560,875.93 560,925.04 560,967.43",points:[[560,835],[560,876],[560,925],[560,967]],labelBBox:{x:561,y:894,width:51,height:18},parent:"docPlatform",relations:["dg5rzk"],color:"gray",line:"dashed",head:"normal"},{id:"ga3up5",source:"docPlatform.likec4Integration",target:"docPlatform.contentRepo",label:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},dotpos:"e,473.25,1623.4 315.86,1480.3 362.44,1522.7 418.21,1573.3 465.7,1616.5",points:[[316,1480],[362,1523],[418,1573],[466,1617]],labelBBox:{x:406,y:1540,width:65,height:18},parent:"docPlatform",relations:["1a8c499"],color:"gray",line:"dashed",head:"normal"},{id:"1055tf",source:"docPlatform.taskfile",target:"docPlatform.devServer",label:"starts",description:{txt:"task serve"},dotpos:"e,560,654.97 560,511.93 560,553.13 560,602.24 560,644.63",points:[[560,512],[560,553],[560,602],[560,645]],labelBBox:{x:561,y:572,width:38,height:18},parent:"docPlatform",relations:["1h50i3u"],color:"gray",line:"dashed",head:"normal"},{id:"11swhvh",source:"docPlatform.contentRepo",target:"cicdPipeline",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,841.2,1461.8 635.57,1622.6 658.89,1594.1 686.79,1563.9 716.27,1540.4 751.16,1512.6 792.06,1487.8 831.91,1466.7",points:[[636,1623],[659,1594],[687,1564],[716,1540],[751,1513],[792,1488],[832,1467]],labelBBox:{x:717,y:1540,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1yjnj9z",source:"docPlatform.taskfile",target:"cicdPipeline",label:"can run locally",dotpos:"e,992.23,1300.6 665.66,511.91 707.55,551.89 753.01,601.94 784,654.8 905.77,862.51 965.77,1143.2 990.51,1290.2",points:[[666,512],[708,552],[753,602],[784,655],[906,863],[966,1143],[991,1290]],labelBBox:{x:899,y:894,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"}]},localDevelopment:{_type:"element",tags:null,links:null,viewOf:"docPlatform",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"How a documentor works locally with the documentation"},title:"Local Development Workflow",id:"localDevelopment",autoLayout:{direction:"TB"},hash:"26dc23444be44f6f2c03474a6c59133abd4e74b2",bounds:{x:0,y:0,width:1138,height:1851},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1xegqy"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:371,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.contentRepo","docPlatform.taskfile","docPlatform.devServer","docPlatform.hugoSite","docPlatform.likec4Integration"],inEdges:["1y7uioy","1xegqy"],outEdges:["11swhvh","1yjnj9z"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:8,y:271,width:762,height:1572,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["blbbud","ga3up5"],outEdges:["11swhvh"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:400,y:1623,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1yjnj9z","1055tf"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:360,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["11swhvh","1yjnj9z"],outEdges:["1y7uioy"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:810,y:655,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:47}},{id:"docPlatform.devServer",parent:"docPlatform",level:1,children:[],inEdges:["1055tf"],outEdges:["zrlo7a"],title:"Development Server",modelRef:"docPlatform.devServer",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Local Hugo server with hot reload for content development"},tags:[],technology:"Hugo Server",kind:"process",x:362,y:655,width:338,height:180,labelBBox:{x:18,y:44,width:303,height:85}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["1y7uioy","zrlo7a"],outEdges:["blbbud","o4y09i"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:371,y:978,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:85}},{id:"docPlatform.likec4Integration",parent:"docPlatform",level:1,children:[],inEdges:["o4y09i"],outEdges:["ga3up5"],title:"LikeC4 Integration",modelRef:"docPlatform.likec4Integration",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Architecture diagram visualization embedded in documentation"},tags:[],technology:"LikeC4, Web Components",kind:"component",x:390,y:1300,width:339,height:180,labelBBox:{x:18,y:45,width:303,height:85}}],edges:[{id:"11swhvh",source:"docPlatform.contentRepo",target:"cicdPipeline",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,965.98,834.65 666.92,1624.2 709.24,1584.3 754.89,1534.1 785,1480.4 901.46,1272.8 947.69,992.03 964.8,845",points:[[667,1624],[709,1584],[755,1534],[785,1480],[901,1273],[948,992],[965,845]],labelBBox:{x:891,y:1217,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1y7uioy",source:"cicdPipeline",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,653.67,977.77 851.19,834.73 792.37,877.33 721.89,928.37 662.04,971.71",points:[[851,835],[792,877],[722,928],[662,972]],labelBBox:{x:767,y:893,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,399.21,1647.6 371.15,1143.6 309.79,1181.3 246.35,1233.5 212.28,1300.4 175.97,1371.7 174.53,1409.9 212.28,1480.4 250.61,1552 321.93,1605.3 390.06,1642.7",points:[[371,1144],[310,1181],[246,1233],[212,1300],[176,1372],[175,1410],[212,1480],[251,1552],[322,1605],[390,1643]],labelBBox:{x:213,y:1379,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"},{id:"o4y09i",source:"docPlatform.hugoSite",target:"docPlatform.likec4Integration",label:"integrates",description:{txt:"Embeds architecture diagrams"},dotpos:"e,551.97,1300.6 539.04,1157.5 542.76,1198.7 547.2,1247.8 551.04,1290.2",points:[[539,1158],[543,1199],[547,1248],[551,1290]],labelBBox:{x:547,y:1217,width:65,height:18},parent:"docPlatform",relations:["1oh42mx"],color:"gray",line:"dashed",head:"normal"},{id:"ga3up5",source:"docPlatform.likec4Integration",target:"docPlatform.contentRepo",label:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},dotpos:"e,560,1622.3 560,1480.3 560,1521.2 560,1569.8 560,1612",points:[[560,1480],[560,1521],[560,1570],[560,1612]],labelBBox:{x:561,y:1540,width:65,height:18},parent:"docPlatform",relations:["1a8c499"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,531,332.26 531,179.87 531,223.7 531,276.72 531,321.86",points:[[531,180],[531,224],[531,277],[531,322]],labelBBox:{x:532,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1yjnj9z",source:"docPlatform.taskfile",target:"cicdPipeline",label:"can run locally",dotpos:"e,851.33,654.97 653.81,511.93 712.63,554.53 783.11,605.57 842.96,648.91",points:[[654,512],[713,555],[783,606],[843,649]],labelBBox:{x:767,y:572,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"},{id:"1055tf",source:"docPlatform.taskfile",target:"docPlatform.devServer",label:"starts",description:{txt:"task serve"},dotpos:"e,531,654.97 531,511.93 531,553.13 531,602.24 531,644.63",points:[[531,512],[531,553],[531,602],[531,645]],labelBBox:{x:532,y:572,width:38,height:18},parent:"docPlatform",relations:["1h50i3u"],color:"gray",line:"dashed",head:"normal"},{id:"zrlo7a",source:"docPlatform.devServer",target:"docPlatform.hugoSite",label:"renders",description:{txt:"Live reload on content changes"},dotpos:"e,531,977.77 531,834.73 531,875.93 531,925.04 531,967.43",points:[[531,835],[531,876],[531,925],[531,967]],labelBBox:{x:532,y:894,width:51,height:18},parent:"docPlatform",relations:["dg5rzk"],color:"gray",line:"dashed",head:"normal"}]},cicdPipeline:{_type:"element",tags:null,links:null,viewOf:"cicdPipeline",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"Automated testing and container build process"},title:"CI/CD Pipeline",id:"cicdPipeline",autoLayout:{direction:"TB"},hash:"150f9cc9e37c97380e3d5645a52229bf2e7cc7ae",bounds:{x:0,y:0,width:994,height:629},nodes:[{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.githubActions","cicdPipeline.containerBuild"],inEdges:["cptcjf"],outEdges:["q5uigr","z85qw4","1n4aj6l"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,x:29,y:8,width:957,height:281,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.githubActions",parent:"cicdPipeline",level:1,children:[],inEdges:["cptcjf"],outEdges:["hh1y8j","q5uigr","z85qw4"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",navigateTo:"testingCapabilities",x:69,y:69,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:68}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:["hh1y8j"],outEdges:["1n4aj6l"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"indigo",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:626,y:69,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:68}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.hugoSite","docPlatform.contentRepo"],inEdges:["q5uigr","z85qw4","1n4aj6l"],outEdges:["cptcjf"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:8,y:340,width:953,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["z85qw4","1n4aj6l"],outEdges:["blbbud"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:601,y:401,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:86}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["q5uigr","blbbud"],outEdges:["cptcjf"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:48,y:401,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}}],edges:[{id:"hh1y8j",source:"cicdPipeline.githubActions",target:"cicdPipeline.containerBuild",label:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},dotpos:"e,626.08,159.2 388.99,159.2 460.05,159.2 543.78,159.2 615.98,159.2",points:[[389,159],[460,159],[544,159],[616,159]],labelBBox:{x:445,y:133,width:125,height:18},parent:"cicdPipeline",relations:["1knexmm"],color:"gray",line:"dashed",head:"normal"},{id:"q5uigr",source:"cicdPipeline.githubActions",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,76.672,404.78 94.421,249.05 76.739,266.78 61.164,286.91 50.745,309.2 36.065,340.6 47.577,370.73 69.795,397.09",points:[[94,249],[77,267],[61,287],[51,309],[36,341],[48,371],[70,397]],labelBBox:{x:52,y:309,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"cptcjf",source:"docPlatform.contentRepo",target:"cicdPipeline.githubActions",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,223.34,249.07 213.72,400.31 216.5,356.69 219.84,304.17 222.69,259.39",points:[[214,400],[217,357],[220,304],[223,259]],labelBBox:{x:220,y:309,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"z85qw4",source:"cicdPipeline.githubActions",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,617.94,401.46 372.27,249.07 445.61,294.56 534.9,349.95 609.39,396.16",points:[[372,249],[446,295],[535,350],[609,396]],labelBBox:{x:496,y:308,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f"],color:"gray",line:"dashed",head:"normal"},{id:"1n4aj6l",source:"cicdPipeline.containerBuild",target:"docPlatform.hugoSite",label:"packages",description:{txt:"public/ directory served by Nginx"},dotpos:"e,767.72,401.46 779.27,249.07 775.95,292.9 771.93,345.92 768.51,391.06",points:[[779,249],[776,293],[772,346],[769,391]],labelBBox:{x:775,y:309,width:64,height:18},parent:null,relations:["1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,369.07,491.2 601.07,491.2 531.6,491.2 450.12,491.2 379.42,491.2",points:[[601,491],[532,491],[450,491],[379,491]],labelBBox:{x:424,y:465,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"}]},deploymentFlow:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"How the documentation is deployed to the edge infrastructure"},title:"Deployment to Edge Environment",id:"deploymentFlow",autoLayout:{direction:"TB"},hash:"63aa89007e7f2a0dcea28126ee3ecfb9ff4dd55e",bounds:{x:0,y:0,width:790,height:605},nodes:[{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.containerBuild"],inEdges:[],outEdges:["l7mlxp"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,navigateTo:"cicdPipeline",x:8,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:[],outEdges:["l7mlxp"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:40,y:61,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:68}},{id:"deploymentEnv",parent:null,level:0,children:["deploymentEnv.edgeConnect"],inEdges:["l7mlxp"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"muted",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",depth:1,x:8,y:332,width:384,height:265,labelBBox:{x:6,y:0,width:165,height:15}},{id:"deploymentEnv.edgeConnect",parent:"deploymentEnv",level:1,children:[],inEdges:["l7mlxp"],outEdges:[],title:"Edge Connect",modelRef:"deploymentEnv.edgeConnect",shape:"cylinder",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment orchestration platform"},tags:[],technology:"EdgeConnect",kind:"environment",x:40,y:385,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:68}},{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Documentor",modelRef:"documentor",shape:"person",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:470,y:61,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:86}}],edges:[{id:"l7mlxp",source:"cicdPipeline.containerBuild",target:"deploymentEnv.edgeConnect",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,200,384.25 200,241.04 200,282.23 200,331.36 200,373.88",points:[[200,241],[200,282],[200,331],[200,374]],labelBBox:{x:201,y:301,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"}]},fullWorkflow:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"End-to-end view from content creation to published documentation"},title:"Complete Documentor Workflow",id:"fullWorkflow",autoLayout:{direction:"TB"},hash:"4633688809238a94b2ca062c87b9517f5ebd45c5",bounds:{x:0,y:0,width:1364,height:1224},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1it4ty8","1xegqy","tvlbdk"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:563,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.contentRepo","docPlatform.taskfile"],inEdges:["1it4ty8","1xegqy","q5uigr"],outEdges:["cptcjf","1r2t3dd"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:82,y:271,width:852,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["1it4ty8","q5uigr"],outEdges:["cptcjf"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:122,y:332,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:67}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1r2t3dd"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:552,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.githubActions","cicdPipeline.containerBuild"],inEdges:["cptcjf","1r2t3dd"],outEdges:["q5uigr","l7mlxp"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,navigateTo:"cicdPipeline",x:8,y:603,width:957,height:281,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.githubActions",parent:"cicdPipeline",level:1,children:[],inEdges:["cptcjf","1r2t3dd"],outEdges:["q5uigr","hh1y8j"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",navigateTo:"testingCapabilities",x:48,y:664,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:67}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:["hh1y8j"],outEdges:["l7mlxp"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:605,y:664,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:67}},{id:"deploymentEnv",parent:null,level:0,children:["deploymentEnv.edgeConnect","deploymentEnv.k8sCluster"],inEdges:["l7mlxp","tvlbdk"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",depth:1,x:456,y:935,width:900,height:281,labelBBox:{x:6,y:0,width:165,height:15}},{id:"deploymentEnv.edgeConnect",parent:"deploymentEnv",level:1,children:[],inEdges:["l7mlxp"],outEdges:["11aayil"],title:"Edge Connect",modelRef:"deploymentEnv.edgeConnect",shape:"cylinder",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment orchestration platform"},tags:[],technology:"EdgeConnect",kind:"environment",x:496,y:996,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:67}},{id:"deploymentEnv.k8sCluster",parent:"deploymentEnv",level:1,children:[],inEdges:["tvlbdk","11aayil"],outEdges:[],title:"Kubernetes Cluster",modelRef:"deploymentEnv.k8sCluster",shape:"cylinder",color:"secondary",style:{opacity:15,size:"md"},description:{txt:"K8s cluster on edge cloudlet (Munich)"},tags:[],technology:"Kubernetes",kind:"environment",x:996,y:996,width:320,height:180,labelBBox:{x:33,y:53,width:255,height:67}}],edges:[{id:"1it4ty8",source:"documentor",target:"docPlatform.contentRepo",label:"[...]",dotpos:"e,398.3,333.97 604.24,179.87 543.08,225.63 468.55,281.41 406.57,327.78",points:[[604,180],[543,226],[469,281],[407,328]],labelBBox:{x:517,y:239,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,723,332.26 723,179.87 723,223.7 723,276.72 723,321.86",points:[[723,180],[723,224],[723,277],[723,322]],labelBBox:{x:724,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"cptcjf",source:"docPlatform.contentRepo",target:"cicdPipeline.githubActions",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,227.93,664.14 261.88,512.74 252.07,556.48 240.25,609.2 230.18,654.09",points:[[262,513],[252,556],[240,609],[230,654]],labelBBox:{x:248,y:572,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1r2t3dd",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions",label:"can run locally",dotpos:"e,346.49,664.26 584.31,511.87 513.46,557.27 427.23,612.52 355.2,658.68",points:[[584,512],[513,557],[427,613],[355,659]],labelBBox:{x:482,y:572,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"},{id:"q5uigr",source:"cicdPipeline.githubActions",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,190.36,512.35 160.53,664.25 150.58,634.62 145.95,601.61 156.75,572 163.3,554.02 173.08,536.7 184.34,520.64",points:[[161,664],[151,635],[146,602],[157,572],[163,554],[173,537],[184,521]],labelBBox:{x:158,y:572,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"hh1y8j",source:"cicdPipeline.githubActions",target:"cicdPipeline.containerBuild",label:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},dotpos:"e,605.08,754 367.99,754 439.05,754 522.78,754 594.98,754",points:[[368,754],[439,754],[523,754],[595,754]],labelBBox:{x:424,y:728,width:125,height:18},parent:"cicdPipeline",relations:["1knexmm"],color:"gray",line:"dashed",head:"normal"},{id:"l7mlxp",source:"cicdPipeline.containerBuild",target:"deploymentEnv.edgeConnect",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,685.69,995.11 735.65,843.87 721.22,887.53 703.79,940.3 688.92,985.33",points:[[736,844],[721,888],[704,940],[689,985]],labelBBox:{x:715,y:904,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"tvlbdk",source:"documentor",target:"deploymentEnv.k8sCluster",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,1153.9,995.06 873.63,179.94 906.57,205.58 938.32,236.13 961,270.8 1108.5,496.18 1144.6,821.89 1153.3,984.59",points:[[874,180],[907,206],[938,236],[961,271],[1108,496],[1145,822],[1153,985]],labelBBox:{x:1096,y:572,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"11aayil",source:"deploymentEnv.edgeConnect",target:"deploymentEnv.k8sCluster",label:"deploys to",description:{txt:"Via edgeconnectdeployment.yaml"},dotpos:"e,995.35,1086 816.96,1086 870.59,1086 930.52,1086 984.9,1086",points:[[817,1086],[871,1086],[931,1086],[985,1086]],labelBBox:{x:872,y:1060,width:68,height:18},parent:"deploymentEnv",relations:["3gelf9"],color:"gray",line:"dashed",head:"normal"}]},testingCapabilities:{_type:"element",tags:null,links:null,viewOf:"cicdPipeline.githubActions",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"All automated tests that ensure documentation quality"},title:"Testing Capabilities",id:"testingCapabilities",autoLayout:{direction:"TB"},hash:"76ca10e2d3f66b60e0e770ed653c00e8c3dff101",bounds:{x:0,y:0,width:1845,height:629},nodes:[{id:"docPlatform",parent:null,level:0,children:["docPlatform.taskfile","docPlatform.hugoSite","docPlatform.contentRepo.contentPages"],inEdges:["4wakcq","ln4mn5","iktojz","1lhijkz"],outEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:553,y:8,width:1284,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:[],outEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:1023,y:69,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:86}},{id:"cicdPipeline.githubActions",parent:null,level:0,children:["cicdPipeline.githubActions.testBuild","cicdPipeline.githubActions.testHtml","cicdPipeline.githubActions.testLinks","cicdPipeline.githubActions.testMarkdown"],inEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],outEdges:["4wakcq","ln4mn5","iktojz","1lhijkz"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",depth:1,x:8,y:340,width:1690,height:281,labelBBox:{x:6,y:0,width:99,height:15}},{id:"cicdPipeline.githubActions.testBuild",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["1eaxawv"],outEdges:["4wakcq"],title:"Build Test",modelRef:"cicdPipeline.githubActions.testBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo build validation"},tags:[],technology:"Hugo",kind:"component",x:48,y:401,width:320,height:180,labelBBox:{x:88,y:53,width:143,height:68}},{id:"cicdPipeline.githubActions.testHtml",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["efibas"],outEdges:["ln4mn5"],title:"HTML Validation",modelRef:"cicdPipeline.githubActions.testHtml",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Generated HTML validation"},tags:[],technology:"htmlvalidate",kind:"component",x:908,y:401,width:320,height:180,labelBBox:{x:66,y:53,width:187,height:68}},{id:"cicdPipeline.githubActions.testLinks",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["1e3oxi2"],outEdges:["iktojz"],title:"Link Checker",modelRef:"cicdPipeline.githubActions.testLinks",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Broken link detection"},tags:[],technology:"htmltest",kind:"component",x:478,y:401,width:320,height:180,labelBBox:{x:88,y:53,width:143,height:68}},{id:"cicdPipeline.githubActions.testMarkdown",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["hv4xce"],outEdges:["1lhijkz"],title:"Markdown Lint",modelRef:"cicdPipeline.githubActions.testMarkdown",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown syntax and style checking"},tags:[],technology:"markdownlint",kind:"component",x:1338,y:401,width:320,height:180,labelBBox:{x:36,y:53,width:248,height:68}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["4wakcq","ln4mn5","iktojz"],outEdges:[],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:593,y:69,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:86}},{id:"docPlatform.contentRepo.contentPages",parent:"docPlatform",level:1,children:[],inEdges:["1lhijkz"],outEdges:[],title:"Content Pages",modelRef:"docPlatform.contentRepo.contentPages",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Documentation pages in Markdown format"},tags:[],technology:"Markdown",kind:"component",x:1475,y:69,width:321,height:180,labelBBox:{x:18,y:53,width:286,height:68}}],edges:[{id:"4wakcq",source:"cicdPipeline.githubActions.testBuild",target:"docPlatform.hugoSite",label:"builds",description:{txt:"hugo --gc --minify"},dotpos:"e,593.29,180.37 172.86,401.65 166.12,369.69 166.42,335.14 186.42,309.2 234.84,246.41 434.45,204.83 583.12,181.92",points:[[173,402],[166,370],[166,335],[186,309],[235,246],[434,205],[583,182]],labelBBox:{x:187,y:309,width:41,height:18},parent:null,relations:["omluoy"],color:"gray",line:"dashed",head:"normal"},{id:"ln4mn5",source:"cicdPipeline.githubActions.testHtml",target:"docPlatform.hugoSite",label:"validates output",description:{txt:"Checks generated HTML"},dotpos:"e,837.83,249.07 983.29,401.46 940.59,356.72 888.73,302.39 845.05,256.63",points:[[983,401],[941,357],[889,302],[845,257]],labelBBox:{x:912,y:309,width:102,height:18},parent:null,relations:["1bziuh3"],color:"gray",line:"dashed",head:"normal"},{id:"iktojz",source:"cicdPipeline.githubActions.testLinks",target:"docPlatform.hugoSite",label:"checks links in",description:{txt:"Detects broken links"},dotpos:"e,600.41,249.07 562.94,401.33 546.97,371.84 538.84,338.95 553.75,309.2 563.56,289.61 577.31,271.93 593.05,256.17",points:[[563,401],[547,372],[539,339],[554,309],[564,290],[577,272],[593,256]],labelBBox:{x:555,y:309,width:94,height:18},parent:null,relations:["9nq85f"],color:"gray",line:"dashed",head:"normal"},{id:"1lhijkz",source:"cicdPipeline.githubActions.testMarkdown",target:"docPlatform.contentRepo.contentPages",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,1598.8,249.07 1535.1,401.46 1553.5,357.37 1575.9,303.96 1594.8,258.62",points:[[1535,401],[1554,357],[1576,304],[1595,259]],labelBBox:{x:1572,y:309,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"1eaxawv",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testBuild",label:"can run locally",description:{txt:"task test:build"},dotpos:"e,288.07,401.25 1062.5,249.2 1032.6,265.39 1000.2,280.03 968,289.2 851.77,322.34 537.34,265.89 424.51,309.2 376.79,327.52 332.01,360.97 295.69,394.17",points:[[1062,249],[1033,265],[1e3,280],[968,289],[852,322],[537,266],[425,309],[377,328],[332,361],[296,394]],labelBBox:{x:426,y:309,width:93,height:18},parent:null,relations:["1dzhdhu"],color:"gray",line:"dashed",head:"normal"},{id:"hv4xce",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testMarkdown",label:"can run locally",description:{txt:"task test:markdown"},dotpos:"e,1416.3,401.46 1275.9,249.07 1317.1,293.82 1367.1,348.15 1409.3,393.9",points:[[1276,249],[1317,294],[1367,348],[1409,394]],labelBBox:{x:1347,y:309,width:93,height:18},parent:null,relations:["14ls3qa"],color:"gray",line:"dashed",head:"normal"},{id:"efibas",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testHtml",label:"can run locally",description:{txt:"task test:html"},dotpos:"e,1101.9,401.46 1160.1,249.07 1143.3,293.09 1122.9,346.36 1105.6,391.63",points:[[1160,249],[1143,293],[1123,346],[1106,392]],labelBBox:{x:1136,y:309,width:93,height:18},parent:null,relations:["htx1q7"],color:"gray",line:"dashed",head:"normal"},{id:"1e3oxi2",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testLinks",label:"can run locally",description:{txt:"task test:links"},dotpos:"e,685.67,401.5 1058.9,249.19 1029.9,264.85 998.74,279.29 968,289.2 887.4,315.19 852.51,268.01 778.51,309.2 743.41,328.74 714.14,361.02 691.56,392.96",points:[[1059,249],[1030,265],[999,279],[968,289],[887,315],[853,268],[779,309],[743,329],[714,361],[692,393]],labelBBox:{x:780,y:309,width:93,height:18},parent:null,relations:["1vqq9gw"],color:"gray",line:"dashed",head:"normal"}]}},deployments:{elements:{},relations:{}},imports:{}}),{useLikeC4Model:gtt}=ptt(mtt);function ytt({children:e}){const r=gtt();return b.jsx(Cet,{likec4model:r,children:e})}function btt(e){return b.jsx(ytt,{children:b.jsx(Jet,{renderIcon:ttt,...e})})}var w7={exports:{}},Fy={},k7={exports:{}},_7={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Jte;function vtt(){return Jte||(Jte=1,(function(e){function r(L,U){var q=L.length;L.push(U);e:for(;0<q;){var X=q-1>>>1,F=L[X];if(0<a(F,U))L[X]=U,L[q]=F,q=X;else break e}}function n(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var U=L[0],q=L.pop();if(q!==U){L[0]=q;e:for(var X=0,F=L.length,J=F>>>1;X<J;){var Q=2*(X+1)-1,z=L[Q],W=Q+1,G=L[W];if(0>a(z,q))W<F&&0>a(G,z)?(L[X]=G,L[W]=q,X=W):(L[X]=z,L[Q]=q,X=Q);else if(W<F&&0>a(G,q))L[X]=G,L[W]=q,X=W;else break e}}return U}function a(L,U){var q=L.sortIndex-U.sortIndex;return q!==0?q:L.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,g=!1,y=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function T(L){for(var U=n(u);U!==null;){if(U.callback===null)o(u);else if(U.startTime<=L)o(u),U.sortIndex=U.expirationTime,r(c,U);else break;U=n(u)}}function A(L){if(x=!1,T(L),!y)if(n(c)!==null)y=!0,N||(N=!0,I());else{var U=n(u);U!==null&&V(A,U.startTime-L)}}var N=!1,$=-1,R=5,M=-1;function O(){return w?!0:!(e.unstable_now()-M<R)}function B(){if(w=!1,N){var L=e.unstable_now();M=L;var U=!0;try{e:{y=!1,x&&(x=!1,C($),$=-1),g=!0;var q=p;try{t:{for(T(L),h=n(c);h!==null&&!(h.expirationTime>L&&O());){var X=h.callback;if(typeof X=="function"){h.callback=null,p=h.priorityLevel;var F=X(h.expirationTime<=L);if(L=e.unstable_now(),typeof F=="function"){h.callback=F,T(L),U=!0;break t}h===n(c)&&o(c),T(L)}else o(c);h=n(c)}if(h!==null)U=!0;else{var J=n(u);J!==null&&V(A,J.startTime-L),U=!1}}break e}finally{h=null,p=q,g=!1}U=void 0}}finally{U?I():N=!1}}}var I;if(typeof _=="function")I=function(){_(B)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,D=Y.port2;Y.port1.onmessage=B,I=function(){D.postMessage(null)}}else I=function(){k(B,0)};function V(L,U){$=k(function(){L(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var q=p;p=U;try{return L()}finally{p=q}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(L,U){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var q=p;p=L;try{return U()}finally{p=q}},e.unstable_scheduleCallback=function(L,U,q){var X=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?X+q:X):q=X,L){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=q+F,L={id:d++,callback:U,priorityLevel:L,startTime:q,expirationTime:F,sortIndex:-1},q>X?(L.sortIndex=q,r(u,L),n(c)===null&&L===n(u)&&(x?(C($),$=-1):x=!0,V(A,q-X))):(L.sortIndex=F,r(c,L),y||g||(y=!0,N||(N=!0,I()))),L},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(L){var U=p;return function(){var q=p;p=U;try{return L.apply(this,arguments)}finally{p=q}}}})(_7)),_7}var ere;function xtt(){return ere||(ere=1,k7.exports=vtt()),k7.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tre;function wtt(){if(tre)return Fy;tre=1;var e=xtt(),r=V2(),n=CD();function o(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function i(f){var m=f,v=f;if(f.alternate)for(;m.return;)m=m.return;else{f=m;do m=f,(m.flags&4098)!==0&&(v=m.return),f=m.return;while(f)}return m.tag===3?v:null}function s(f){if(f.tag===13){var m=f.memoizedState;if(m===null&&(f=f.alternate,f!==null&&(m=f.memoizedState)),m!==null)return m.dehydrated}return null}function l(f){if(i(f)!==f)throw Error(o(188))}function c(f){var m=f.alternate;if(!m){if(m=i(f),m===null)throw Error(o(188));return m!==f?null:f}for(var v=f,S=m;;){var P=v.return;if(P===null)break;var j=P.alternate;if(j===null){if(S=P.return,S!==null){v=S;continue}break}if(P.child===j.child){for(j=P.child;j;){if(j===v)return l(P),f;if(j===S)return l(P),m;j=j.sibling}throw Error(o(188))}if(v.return!==S.return)v=P,S=j;else{for(var K=!1,te=P.child;te;){if(te===v){K=!0,v=P,S=j;break}if(te===S){K=!0,S=P,v=j;break}te=te.sibling}if(!K){for(te=j.child;te;){if(te===v){K=!0,v=j,S=P;break}if(te===S){K=!0,S=j,v=P;break}te=te.sibling}if(!K)throw Error(o(189))}}if(v.alternate!==S)throw Error(o(190))}if(v.tag!==3)throw Error(o(188));return v.stateNode.current===v?f:m}function u(f){var m=f.tag;if(m===5||m===26||m===27||m===6)return f;for(f=f.child;f!==null;){if(m=u(f),m!==null)return m;f=f.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function I(f){return f===null||typeof f!="object"?null:(f=B&&f[B]||f["@@iterator"],typeof f=="function"?f:null)}var Y=Symbol.for("react.client.reference");function D(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===Y?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case y:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList";case M:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case g:return"Portal";case _:return(f.displayName||"Context")+".Provider";case C:return(f._context.displayName||"Context")+".Consumer";case T:var m=f.render;return f=f.displayName,f||(f=m.displayName||m.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case $:return m=f.displayName||null,m!==null?m:D(f.type)||"Memo";case R:m=f._payload,f=f._init;try{return D(f(m))}catch{}}return null}var V=Array.isArray,L=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},X=[],F=-1;function J(f){return{current:f}}function Q(f){0>F||(f.current=X[F],X[F]=null,F--)}function z(f,m){F++,X[F]=f.current,f.current=m}var W=J(null),G=J(null),Z=J(null),oe=J(null);function ee(f,m){switch(z(Z,m),z(G,f),z(W,null),m.nodeType){case 9:case 11:f=(f=m.documentElement)&&(f=f.namespaceURI)?Xge(f):0;break;default:if(f=m.tagName,m=m.namespaceURI)m=Xge(m),f=Gge(m,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}Q(W),z(W,f)}function re(){Q(W),Q(G),Q(Z)}function he(f){f.memoizedState!==null&&z(oe,f);var m=W.current,v=Gge(m,f.type);m!==v&&(z(G,f),z(W,v))}function Ce(f){G.current===f&&(Q(W),Q(G)),oe.current===f&&(Q(oe),jv._currentValue=q)}var ce=Object.prototype.hasOwnProperty,de=e.unstable_scheduleCallback,be=e.unstable_cancelCallback,De=e.unstable_shouldYield,Ge=e.unstable_requestPaint,Xe=e.unstable_now,_t=e.unstable_getCurrentPriorityLevel,Qe=e.unstable_ImmediatePriority,St=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,We=e.unstable_LowPriority,lt=e.unstable_IdlePriority,Et=e.log,Pn=e.unstable_setDisableYieldValue,_e=null,we=null;function rt(f){if(typeof Et=="function"&&Pn(f),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(_e,f)}catch{}}var at=Math.clz32?Math.clz32:Pt,$t=Math.log,Wr=Math.LN2;function Pt(f){return f>>>=0,f===0?32:31-($t(f)/Wr|0)|0}var Tr=256,vo=4194304;function Mn(f){var m=f&42;if(m!==0)return m;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Fr(f,m,v){var S=f.pendingLanes;if(S===0)return 0;var P=0,j=f.suspendedLanes,K=f.pingedLanes;f=f.warmLanes;var te=S&134217727;return te!==0?(S=te&~j,S!==0?P=Mn(S):(K&=te,K!==0?P=Mn(K):v||(v=te&~f,v!==0&&(P=Mn(v))))):(te=S&~j,te!==0?P=Mn(te):K!==0?P=Mn(K):v||(v=S&~f,v!==0&&(P=Mn(v)))),P===0?0:m!==0&&m!==P&&(m&j)===0&&(j=P&-P,v=m&-m,j>=v||j===32&&(v&4194048)!==0)?m:P}function no(f,m){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&m)===0}function ur(f,m){switch(f){case 1:case 2:case 4:case 8:case 64:return m+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fa(){var f=Tr;return Tr<<=1,(Tr&4194048)===0&&(Tr=256),f}function _l(){var f=vo;return vo<<=1,(vo&62914560)===0&&(vo=4194304),f}function Qh(f){for(var m=[],v=0;31>v;v++)m.push(f);return m}function Cc(f,m){f.pendingLanes|=m,m!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Ub(f,m,v,S,P,j){var K=f.pendingLanes;f.pendingLanes=v,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=v,f.entangledLanes&=v,f.errorRecoveryDisabledLanes&=v,f.shellSuspendCounter=0;var te=f.entanglements,le=f.expirationTimes,ge=f.hiddenUpdates;for(v=K&~v;0<v;){var Te=31-at(v),Re=1<<Te;te[Te]=0,le[Te]=-1;var ve=ge[Te];if(ve!==null)for(ge[Te]=null,Te=0;Te<ve.length;Te++){var ke=ve[Te];ke!==null&&(ke.lane&=-536870913)}v&=~Re}S!==0&&Sg(f,S,0),j!==0&&P===0&&f.tag!==0&&(f.suspendedLanes|=j&~(K&~m))}function Sg(f,m,v){f.pendingLanes|=m,f.suspendedLanes&=~m;var S=31-at(m);f.entangledLanes|=m,f.entanglements[S]=f.entanglements[S]|1073741824|v&4194090}function Hu(f,m){var v=f.entangledLanes|=m;for(f=f.entanglements;v;){var S=31-at(v),P=1<<S;P&m|f[S]&m&&(f[S]|=m),v&=~P}}function Jh(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function ef(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function Cg(){var f=U.p;return f!==0?f:(f=window.event,f===void 0?32:p0e(f.type))}function Vb(f,m){var v=U.p;try{return U.p=f,m()}finally{U.p=v}}var Ti=Math.random().toString(36).slice(2),On="__reactFiber$"+Ti,oo="__reactProps$"+Ti,El="__reactContainer$"+Ti,tf="__reactEvents$"+Ti,qb="__reactListeners$"+Ti,Yb="__reactHandles$"+Ti,Tg="__reactResources$"+Ti,Tc="__reactMarker$"+Ti;function rf(f){delete f[On],delete f[oo],delete f[tf],delete f[qb],delete f[Yb]}function Sl(f){var m=f[On];if(m)return m;for(var v=f.parentNode;v;){if(m=v[El]||v[On]){if(v=m.alternate,m.child!==null||v!==null&&v.child!==null)for(f=Jge(f);f!==null;){if(v=f[On])return v;f=Jge(f)}return m}f=v,v=f.parentNode}return null}function Ai(f){if(f=f[On]||f[El]){var m=f.tag;if(m===5||m===6||m===13||m===26||m===27||m===3)return f}return null}function zs(f){var m=f.tag;if(m===5||m===26||m===27||m===6)return f.stateNode;throw Error(o(33))}function Ni(f){var m=f[Tg];return m||(m=f[Tg]={hoistableStyles:new Map,hoistableScripts:new Map}),m}function tn(f){f[Tc]=!0}var Ag=new Set,Ng={};function js(f,m){Cl(f,m),Cl(f+"Capture",m)}function Cl(f,m){for(Ng[f]=m,f=0;f<m.length;f++)Ag.add(m[f])}var Wb=RegExp("^[: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]*$"),Uu={},Rg={};function Xb(f){return ce.call(Rg,f)?!0:ce.call(Uu,f)?!1:Wb.test(f)?Rg[f]=!0:(Uu[f]=!0,!1)}function Vu(f,m,v){if(Xb(m))if(v===null)f.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":f.removeAttribute(m);return;case"boolean":var S=m.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){f.removeAttribute(m);return}}f.setAttribute(m,""+v)}}function qu(f,m,v){if(v===null)f.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(m);return}f.setAttribute(m,""+v)}}function Fa(f,m,v,S){if(S===null)f.removeAttribute(v);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(v);return}f.setAttributeNS(m,v,""+S)}}var nf,$g;function Ri(f){if(nf===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);nf=m&&m[1]||"",$g=-1<v.stack.indexOf(`
    at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
`+nf+f+$g}var of=!1;function af(f,m){if(!f||of)return"";of=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var S={DetermineComponentFrameRoot:function(){try{if(m){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(ke){var ve=ke}Reflect.construct(f,[],Re)}else{try{Re.call()}catch(ke){ve=ke}f.call(Re.prototype)}}else{try{throw Error()}catch(ke){ve=ke}(Re=f())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(ke){if(ke&&ve&&typeof ke.stack=="string")return[ke.stack,ve.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var j=S.DetermineComponentFrameRoot(),K=j[0],te=j[1];if(K&&te){var le=K.split(`
`),ge=te.split(`
`);for(P=S=0;S<le.length&&!le[S].includes("DetermineComponentFrameRoot");)S++;for(;P<ge.length&&!ge[P].includes("DetermineComponentFrameRoot");)P++;if(S===le.length||P===ge.length)for(S=le.length-1,P=ge.length-1;1<=S&&0<=P&&le[S]!==ge[P];)P--;for(;1<=S&&0<=P;S--,P--)if(le[S]!==ge[P]){if(S!==1||P!==1)do if(S--,P--,0>P||le[S]!==ge[P]){var Te=`
`+le[S].replace(" at new "," at ");return f.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",f.displayName)),Te}while(1<=S&&0<=P);break}}}finally{of=!1,Error.prepareStackTrace=v}return(v=f?f.displayName||f.name:"")?Ri(v):""}function Gb(f){switch(f.tag){case 26:case 27:case 5:return Ri(f.type);case 16:return Ri("Lazy");case 13:return Ri("Suspense");case 19:return Ri("SuspenseList");case 0:case 15:return af(f.type,!1);case 11:return af(f.type.render,!1);case 1:return af(f.type,!0);case 31:return Ri("Activity");default:return""}}function Pg(f){try{var m="";do m+=Gb(f),f=f.return;while(f);return m}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}function Io(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Mg(f){var m=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Kb(f){var m=Mg(f)?"checked":"value",v=Object.getOwnPropertyDescriptor(f.constructor.prototype,m),S=""+f[m];if(!f.hasOwnProperty(m)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var P=v.get,j=v.set;return Object.defineProperty(f,m,{configurable:!0,get:function(){return P.call(this)},set:function(K){S=""+K,j.call(this,K)}}),Object.defineProperty(f,m,{enumerable:v.enumerable}),{getValue:function(){return S},setValue:function(K){S=""+K},stopTracking:function(){f._valueTracker=null,delete f[m]}}}}function Yu(f){f._valueTracker||(f._valueTracker=Kb(f))}function Wu(f){if(!f)return!1;var m=f._valueTracker;if(!m)return!0;var v=m.getValue(),S="";return f&&(S=Mg(f)?f.checked?"true":"false":f.value),f=S,f!==v?(m.setValue(f),!0):!1}function Xu(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var Zb=/[\n"\\]/g;function zo(f){return f.replace(Zb,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Bs(f,m,v,S,P,j,K,te){f.name="",K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?f.type=K:f.removeAttribute("type"),m!=null?K==="number"?(m===0&&f.value===""||f.value!=m)&&(f.value=""+Io(m)):f.value!==""+Io(m)&&(f.value=""+Io(m)):K!=="submit"&&K!=="reset"||f.removeAttribute("value"),m!=null?sf(f,K,Io(m)):v!=null?sf(f,K,Io(v)):S!=null&&f.removeAttribute("value"),P==null&&j!=null&&(f.defaultChecked=!!j),P!=null&&(f.checked=P&&typeof P!="function"&&typeof P!="symbol"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?f.name=""+Io(te):f.removeAttribute("name")}function Og(f,m,v,S,P,j,K,te){if(j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(f.type=j),m!=null||v!=null){if(!(j!=="submit"&&j!=="reset"||m!=null))return;v=v!=null?""+Io(v):"",m=m!=null?""+Io(m):v,te||m===f.value||(f.value=m),f.defaultValue=m}S=S??P,S=typeof S!="function"&&typeof S!="symbol"&&!!S,f.checked=te?f.checked:!!S,f.defaultChecked=!!S,K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"&&(f.name=K)}function sf(f,m,v){m==="number"&&Xu(f.ownerDocument)===f||f.defaultValue===""+v||(f.defaultValue=""+v)}function $i(f,m,v,S){if(f=f.options,m){m={};for(var P=0;P<v.length;P++)m["$"+v[P]]=!0;for(v=0;v<f.length;v++)P=m.hasOwnProperty("$"+f[v].value),f[v].selected!==P&&(f[v].selected=P),P&&S&&(f[v].defaultSelected=!0)}else{for(v=""+Io(v),m=null,P=0;P<f.length;P++){if(f[P].value===v){f[P].selected=!0,S&&(f[P].defaultSelected=!0);return}m!==null||f[P].disabled||(m=f[P])}m!==null&&(m.selected=!0)}}function Yfe(f,m,v){if(m!=null&&(m=""+Io(m),m!==f.value&&(f.value=m),v==null)){f.defaultValue!==m&&(f.defaultValue=m);return}f.defaultValue=v!=null?""+Io(v):""}function Wfe(f,m,v,S){if(m==null){if(S!=null){if(v!=null)throw Error(o(92));if(V(S)){if(1<S.length)throw Error(o(93));S=S[0]}v=S}v==null&&(v=""),m=v}v=Io(m),f.defaultValue=v,S=f.textContent,S===v&&S!==""&&S!==null&&(f.value=S)}function Dg(f,m){if(m){var v=f.firstChild;if(v&&v===f.lastChild&&v.nodeType===3){v.nodeValue=m;return}}f.textContent=m}var W_t=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xfe(f,m,v){var S=m.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?S?f.setProperty(m,""):m==="float"?f.cssFloat="":f[m]="":S?f.setProperty(m,v):typeof v!="number"||v===0||W_t.has(m)?m==="float"?f.cssFloat=v:f[m]=(""+v).trim():f[m]=v+"px"}function Gfe(f,m,v){if(m!=null&&typeof m!="object")throw Error(o(62));if(f=f.style,v!=null){for(var S in v)!v.hasOwnProperty(S)||m!=null&&m.hasOwnProperty(S)||(S.indexOf("--")===0?f.setProperty(S,""):S==="float"?f.cssFloat="":f[S]="");for(var P in m)S=m[P],m.hasOwnProperty(P)&&v[P]!==S&&Xfe(f,P,S)}else for(var j in m)m.hasOwnProperty(j)&&Xfe(f,j,m[j])}function yM(f){if(f.indexOf("-")===-1)return!1;switch(f){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 X_t=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),G_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;function D5(f){return G_t.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}var bM=null;function vM(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var Lg=null,Ig=null;function Kfe(f){var m=Ai(f);if(m&&(f=m.stateNode)){var v=f[oo]||null;e:switch(f=m.stateNode,m.type){case"input":if(Bs(f,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),m=v.name,v.type==="radio"&&m!=null){for(v=f;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+zo(""+m)+'"][type="radio"]'),m=0;m<v.length;m++){var S=v[m];if(S!==f&&S.form===f.form){var P=S[oo]||null;if(!P)throw Error(o(90));Bs(S,P.value,P.defaultValue,P.defaultValue,P.checked,P.defaultChecked,P.type,P.name)}}for(m=0;m<v.length;m++)S=v[m],S.form===f.form&&Wu(S)}break e;case"textarea":Yfe(f,v.value,v.defaultValue);break e;case"select":m=v.value,m!=null&&$i(f,!!v.multiple,m,!1)}}}var xM=!1;function Zfe(f,m,v){if(xM)return f(m,v);xM=!0;try{var S=f(m);return S}finally{if(xM=!1,(Lg!==null||Ig!==null)&&(x2(),Lg&&(m=Lg,f=Ig,Ig=Lg=null,Kfe(m),f)))for(m=0;m<f.length;m++)Kfe(f[m])}}function Qb(f,m){var v=f.stateNode;if(v===null)return null;var S=v[oo]||null;if(S===null)return null;v=S[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(S=!S.disabled)||(f=f.type,S=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!S;break e;default:f=!1}if(f)return null;if(v&&typeof v!="function")throw Error(o(231,m,typeof v));return v}var Ac=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wM=!1;if(Ac)try{var Jb={};Object.defineProperty(Jb,"passive",{get:function(){wM=!0}}),window.addEventListener("test",Jb,Jb),window.removeEventListener("test",Jb,Jb)}catch{wM=!1}var Gu=null,kM=null,L5=null;function Qfe(){if(L5)return L5;var f,m=kM,v=m.length,S,P="value"in Gu?Gu.value:Gu.textContent,j=P.length;for(f=0;f<v&&m[f]===P[f];f++);var K=v-f;for(S=1;S<=K&&m[v-S]===P[j-S];S++);return L5=P.slice(f,1<S?1-S:void 0)}function I5(f){var m=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&m===13&&(f=13)):f=m,f===10&&(f=13),32<=f||f===13?f:0}function z5(){return!0}function Jfe(){return!1}function pa(f){function m(v,S,P,j,K){this._reactName=v,this._targetInst=P,this.type=S,this.nativeEvent=j,this.target=K,this.currentTarget=null;for(var te in f)f.hasOwnProperty(te)&&(v=f[te],this[te]=v?v(j):j[te]);return this.isDefaultPrevented=(j.defaultPrevented!=null?j.defaultPrevented:j.returnValue===!1)?z5:Jfe,this.isPropagationStopped=Jfe,this}return d(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=z5)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=z5)},persist:function(){},isPersistent:z5}),m}var lf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},j5=pa(lf),ev=d({},lf,{view:0,detail:0}),K_t=pa(ev),_M,EM,tv,B5=d({},ev,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:CM,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==tv&&(tv&&f.type==="mousemove"?(_M=f.screenX-tv.screenX,EM=f.screenY-tv.screenY):EM=_M=0,tv=f),_M)},movementY:function(f){return"movementY"in f?f.movementY:EM}}),epe=pa(B5),Z_t=d({},B5,{dataTransfer:0}),Q_t=pa(Z_t),J_t=d({},ev,{relatedTarget:0}),SM=pa(J_t),eEt=d({},lf,{animationName:0,elapsedTime:0,pseudoElement:0}),tEt=pa(eEt),rEt=d({},lf,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),nEt=pa(rEt),oEt=d({},lf,{data:0}),tpe=pa(oEt),aEt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iEt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},sEt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lEt(f){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(f):(f=sEt[f])?!!m[f]:!1}function CM(){return lEt}var cEt=d({},ev,{key:function(f){if(f.key){var m=aEt[f.key]||f.key;if(m!=="Unidentified")return m}return f.type==="keypress"?(f=I5(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?iEt[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:CM,charCode:function(f){return f.type==="keypress"?I5(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?I5(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),uEt=pa(cEt),dEt=d({},B5,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rpe=pa(dEt),hEt=d({},ev,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:CM}),fEt=pa(hEt),pEt=d({},lf,{propertyName:0,elapsedTime:0,pseudoElement:0}),mEt=pa(pEt),gEt=d({},B5,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),yEt=pa(gEt),bEt=d({},lf,{newState:0,oldState:0}),vEt=pa(bEt),xEt=[9,13,27,32],TM=Ac&&"CompositionEvent"in window,rv=null;Ac&&"documentMode"in document&&(rv=document.documentMode);var wEt=Ac&&"TextEvent"in window&&!rv,npe=Ac&&(!TM||rv&&8<rv&&11>=rv),ope=" ",ape=!1;function ipe(f,m){switch(f){case"keyup":return xEt.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function spe(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var zg=!1;function kEt(f,m){switch(f){case"compositionend":return spe(m);case"keypress":return m.which!==32?null:(ape=!0,ope);case"textInput":return f=m.data,f===ope&&ape?null:f;default:return null}}function _Et(f,m){if(zg)return f==="compositionend"||!TM&&ipe(f,m)?(f=Qfe(),L5=kM=Gu=null,zg=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return npe&&m.locale!=="ko"?null:m.data;default:return null}}var EEt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lpe(f){var m=f&&f.nodeName&&f.nodeName.toLowerCase();return m==="input"?!!EEt[f.type]:m==="textarea"}function cpe(f,m,v,S){Lg?Ig?Ig.push(S):Ig=[S]:Lg=S,m=C2(m,"onChange"),0<m.length&&(v=new j5("onChange","change",null,v,S),f.push({event:v,listeners:m}))}var nv=null,ov=null;function SEt(f){Uge(f,0)}function F5(f){var m=zs(f);if(Wu(m))return f}function upe(f,m){if(f==="change")return m}var dpe=!1;if(Ac){var AM;if(Ac){var NM="oninput"in document;if(!NM){var hpe=document.createElement("div");hpe.setAttribute("oninput","return;"),NM=typeof hpe.oninput=="function"}AM=NM}else AM=!1;dpe=AM&&(!document.documentMode||9<document.documentMode)}function fpe(){nv&&(nv.detachEvent("onpropertychange",ppe),ov=nv=null)}function ppe(f){if(f.propertyName==="value"&&F5(ov)){var m=[];cpe(m,ov,f,vM(f)),Zfe(SEt,m)}}function CEt(f,m,v){f==="focusin"?(fpe(),nv=m,ov=v,nv.attachEvent("onpropertychange",ppe)):f==="focusout"&&fpe()}function TEt(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return F5(ov)}function AEt(f,m){if(f==="click")return F5(m)}function NEt(f,m){if(f==="input"||f==="change")return F5(m)}function REt(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var Ha=typeof Object.is=="function"?Object.is:REt;function av(f,m){if(Ha(f,m))return!0;if(typeof f!="object"||f===null||typeof m!="object"||m===null)return!1;var v=Object.keys(f),S=Object.keys(m);if(v.length!==S.length)return!1;for(S=0;S<v.length;S++){var P=v[S];if(!ce.call(m,P)||!Ha(f[P],m[P]))return!1}return!0}function mpe(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function gpe(f,m){var v=mpe(f);f=0;for(var S;v;){if(v.nodeType===3){if(S=f+v.textContent.length,f<=m&&S>=m)return{node:v,offset:m-f};f=S}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=mpe(v)}}function ype(f,m){return f&&m?f===m?!0:f&&f.nodeType===3?!1:m&&m.nodeType===3?ype(f,m.parentNode):"contains"in f?f.contains(m):f.compareDocumentPosition?!!(f.compareDocumentPosition(m)&16):!1:!1}function bpe(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var m=Xu(f.document);m instanceof f.HTMLIFrameElement;){try{var v=typeof m.contentWindow.location.href=="string"}catch{v=!1}if(v)f=m.contentWindow;else break;m=Xu(f.document)}return m}function RM(f){var m=f&&f.nodeName&&f.nodeName.toLowerCase();return m&&(m==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||m==="textarea"||f.contentEditable==="true")}var $Et=Ac&&"documentMode"in document&&11>=document.documentMode,jg=null,$M=null,iv=null,PM=!1;function vpe(f,m,v){var S=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;PM||jg==null||jg!==Xu(S)||(S=jg,"selectionStart"in S&&RM(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),iv&&av(iv,S)||(iv=S,S=C2($M,"onSelect"),0<S.length&&(m=new j5("onSelect","select",null,m,v),f.push({event:m,listeners:S}),m.target=jg)))}function cf(f,m){var v={};return v[f.toLowerCase()]=m.toLowerCase(),v["Webkit"+f]="webkit"+m,v["Moz"+f]="moz"+m,v}var Bg={animationend:cf("Animation","AnimationEnd"),animationiteration:cf("Animation","AnimationIteration"),animationstart:cf("Animation","AnimationStart"),transitionrun:cf("Transition","TransitionRun"),transitionstart:cf("Transition","TransitionStart"),transitioncancel:cf("Transition","TransitionCancel"),transitionend:cf("Transition","TransitionEnd")},MM={},xpe={};Ac&&(xpe=document.createElement("div").style,"AnimationEvent"in window||(delete Bg.animationend.animation,delete Bg.animationiteration.animation,delete Bg.animationstart.animation),"TransitionEvent"in window||delete Bg.transitionend.transition);function uf(f){if(MM[f])return MM[f];if(!Bg[f])return f;var m=Bg[f],v;for(v in m)if(m.hasOwnProperty(v)&&v in xpe)return MM[f]=m[v];return f}var wpe=uf("animationend"),kpe=uf("animationiteration"),_pe=uf("animationstart"),PEt=uf("transitionrun"),MEt=uf("transitionstart"),OEt=uf("transitioncancel"),Epe=uf("transitionend"),Spe=new Map,OM="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");OM.push("scrollEnd");function Fs(f,m){Spe.set(f,m),js(m,[f])}var Cpe=new WeakMap;function Pi(f,m){if(typeof f=="object"&&f!==null){var v=Cpe.get(f);return v!==void 0?v:(m={value:f,source:m,stack:Pg(m)},Cpe.set(f,m),m)}return{value:f,source:m,stack:Pg(m)}}var Mi=[],Fg=0,DM=0;function H5(){for(var f=Fg,m=DM=Fg=0;m<f;){var v=Mi[m];Mi[m++]=null;var S=Mi[m];Mi[m++]=null;var P=Mi[m];Mi[m++]=null;var j=Mi[m];if(Mi[m++]=null,S!==null&&P!==null){var K=S.pending;K===null?P.next=P:(P.next=K.next,K.next=P),S.pending=P}j!==0&&Tpe(v,P,j)}}function U5(f,m,v,S){Mi[Fg++]=f,Mi[Fg++]=m,Mi[Fg++]=v,Mi[Fg++]=S,DM|=S,f.lanes|=S,f=f.alternate,f!==null&&(f.lanes|=S)}function LM(f,m,v,S){return U5(f,m,v,S),V5(f)}function Hg(f,m){return U5(f,null,null,m),V5(f)}function Tpe(f,m,v){f.lanes|=v;var S=f.alternate;S!==null&&(S.lanes|=v);for(var P=!1,j=f.return;j!==null;)j.childLanes|=v,S=j.alternate,S!==null&&(S.childLanes|=v),j.tag===22&&(f=j.stateNode,f===null||f._visibility&1||(P=!0)),f=j,j=j.return;return f.tag===3?(j=f.stateNode,P&&m!==null&&(P=31-at(v),f=j.hiddenUpdates,S=f[P],S===null?f[P]=[m]:S.push(m),m.lane=v|536870912),j):null}function V5(f){if(50<$v)throw $v=0,HO=null,Error(o(185));for(var m=f.return;m!==null;)f=m,m=f.return;return f.tag===3?f.stateNode:null}var Ug={};function DEt(f,m,v,S){this.tag=f,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ua(f,m,v,S){return new DEt(f,m,v,S)}function IM(f){return f=f.prototype,!(!f||!f.isReactComponent)}function Nc(f,m){var v=f.alternate;return v===null?(v=Ua(f.tag,m,f.key,f.mode),v.elementType=f.elementType,v.type=f.type,v.stateNode=f.stateNode,v.alternate=f,f.alternate=v):(v.pendingProps=m,v.type=f.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=f.flags&65011712,v.childLanes=f.childLanes,v.lanes=f.lanes,v.child=f.child,v.memoizedProps=f.memoizedProps,v.memoizedState=f.memoizedState,v.updateQueue=f.updateQueue,m=f.dependencies,v.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},v.sibling=f.sibling,v.index=f.index,v.ref=f.ref,v.refCleanup=f.refCleanup,v}function Ape(f,m){f.flags&=65011714;var v=f.alternate;return v===null?(f.childLanes=0,f.lanes=m,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=v.childLanes,f.lanes=v.lanes,f.child=v.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=v.memoizedProps,f.memoizedState=v.memoizedState,f.updateQueue=v.updateQueue,f.type=v.type,m=v.dependencies,f.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),f}function q5(f,m,v,S,P,j){var K=0;if(S=f,typeof f=="function")IM(f)&&(K=1);else if(typeof f=="string")K=I5t(f,v,W.current)?26:f==="html"||f==="head"||f==="body"?27:5;else e:switch(f){case M:return f=Ua(31,v,m,P),f.elementType=M,f.lanes=j,f;case y:return df(v.children,P,j,m);case x:K=8,P|=24;break;case w:return f=Ua(12,v,m,P|2),f.elementType=w,f.lanes=j,f;case A:return f=Ua(13,v,m,P),f.elementType=A,f.lanes=j,f;case N:return f=Ua(19,v,m,P),f.elementType=N,f.lanes=j,f;default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case k:case _:K=10;break e;case C:K=9;break e;case T:K=11;break e;case $:K=14;break e;case R:K=16,S=null;break e}K=29,v=Error(o(130,f===null?"null":typeof f,"")),S=null}return m=Ua(K,v,m,P),m.elementType=f,m.type=S,m.lanes=j,m}function df(f,m,v,S){return f=Ua(7,f,S,m),f.lanes=v,f}function zM(f,m,v){return f=Ua(6,f,null,m),f.lanes=v,f}function jM(f,m,v){return m=Ua(4,f.children!==null?f.children:[],f.key,m),m.lanes=v,m.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},m}var Vg=[],qg=0,Y5=null,W5=0,Oi=[],Di=0,hf=null,Rc=1,$c="";function ff(f,m){Vg[qg++]=W5,Vg[qg++]=Y5,Y5=f,W5=m}function Npe(f,m,v){Oi[Di++]=Rc,Oi[Di++]=$c,Oi[Di++]=hf,hf=f;var S=Rc;f=$c;var P=32-at(S)-1;S&=~(1<<P),v+=1;var j=32-at(m)+P;if(30<j){var K=P-P%5;j=(S&(1<<K)-1).toString(32),S>>=K,P-=K,Rc=1<<32-at(m)+P|v<<P|S,$c=j+f}else Rc=1<<j|v<<P|S,$c=f}function BM(f){f.return!==null&&(ff(f,1),Npe(f,1,0))}function FM(f){for(;f===Y5;)Y5=Vg[--qg],Vg[qg]=null,W5=Vg[--qg],Vg[qg]=null;for(;f===hf;)hf=Oi[--Di],Oi[Di]=null,$c=Oi[--Di],Oi[Di]=null,Rc=Oi[--Di],Oi[Di]=null}var Wo=null,rn=null,ir=!1,pf=null,Tl=!1,HM=Error(o(519));function mf(f){var m=Error(o(418,""));throw cv(Pi(m,f)),HM}function Rpe(f){var m=f.stateNode,v=f.type,S=f.memoizedProps;switch(m[On]=f,m[oo]=S,v){case"dialog":Gt("cancel",m),Gt("close",m);break;case"iframe":case"object":case"embed":Gt("load",m);break;case"video":case"audio":for(v=0;v<Mv.length;v++)Gt(Mv[v],m);break;case"source":Gt("error",m);break;case"img":case"image":case"link":Gt("error",m),Gt("load",m);break;case"details":Gt("toggle",m);break;case"input":Gt("invalid",m),Og(m,S.value,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name,!0),Yu(m);break;case"select":Gt("invalid",m);break;case"textarea":Gt("invalid",m),Wfe(m,S.value,S.defaultValue,S.children),Yu(m)}v=S.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||m.textContent===""+v||S.suppressHydrationWarning===!0||Wge(m.textContent,v)?(S.popover!=null&&(Gt("beforetoggle",m),Gt("toggle",m)),S.onScroll!=null&&Gt("scroll",m),S.onScrollEnd!=null&&Gt("scrollend",m),S.onClick!=null&&(m.onclick=T2),m=!0):m=!1,m||mf(f)}function $pe(f){for(Wo=f.return;Wo;)switch(Wo.tag){case 5:case 13:Tl=!1;return;case 27:case 3:Tl=!0;return;default:Wo=Wo.return}}function sv(f){if(f!==Wo)return!1;if(!ir)return $pe(f),ir=!0,!1;var m=f.tag,v;if((v=m!==3&&m!==27)&&((v=m===5)&&(v=f.type,v=!(v!=="form"&&v!=="button")||oD(f.type,f.memoizedProps)),v=!v),v&&rn&&mf(f),$pe(f),m===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));e:{for(f=f.nextSibling,m=0;f;){if(f.nodeType===8)if(v=f.data,v==="/$"){if(m===0){rn=Us(f.nextSibling);break e}m--}else v!=="$"&&v!=="$!"&&v!=="$?"||m++;f=f.nextSibling}rn=null}}else m===27?(m=rn,dd(f.type)?(f=lD,lD=null,rn=f):rn=m):rn=Wo?Us(f.stateNode.nextSibling):null;return!0}function lv(){rn=Wo=null,ir=!1}function Ppe(){var f=pf;return f!==null&&(ya===null?ya=f:ya.push.apply(ya,f),pf=null),f}function cv(f){pf===null?pf=[f]:pf.push(f)}var UM=J(null),gf=null,Pc=null;function Ku(f,m,v){z(UM,m._currentValue),m._currentValue=v}function Mc(f){f._currentValue=UM.current,Q(UM)}function VM(f,m,v){for(;f!==null;){var S=f.alternate;if((f.childLanes&m)!==m?(f.childLanes|=m,S!==null&&(S.childLanes|=m)):S!==null&&(S.childLanes&m)!==m&&(S.childLanes|=m),f===v)break;f=f.return}}function qM(f,m,v,S){var P=f.child;for(P!==null&&(P.return=f);P!==null;){var j=P.dependencies;if(j!==null){var K=P.child;j=j.firstContext;e:for(;j!==null;){var te=j;j=P;for(var le=0;le<m.length;le++)if(te.context===m[le]){j.lanes|=v,te=j.alternate,te!==null&&(te.lanes|=v),VM(j.return,v,f),S||(K=null);break e}j=te.next}}else if(P.tag===18){if(K=P.return,K===null)throw Error(o(341));K.lanes|=v,j=K.alternate,j!==null&&(j.lanes|=v),VM(K,v,f),K=null}else K=P.child;if(K!==null)K.return=P;else for(K=P;K!==null;){if(K===f){K=null;break}if(P=K.sibling,P!==null){P.return=K.return,K=P;break}K=K.return}P=K}}function uv(f,m,v,S){f=null;for(var P=m,j=!1;P!==null;){if(!j){if((P.flags&524288)!==0)j=!0;else if((P.flags&262144)!==0)break}if(P.tag===10){var K=P.alternate;if(K===null)throw Error(o(387));if(K=K.memoizedProps,K!==null){var te=P.type;Ha(P.pendingProps.value,K.value)||(f!==null?f.push(te):f=[te])}}else if(P===oe.current){if(K=P.alternate,K===null)throw Error(o(387));K.memoizedState.memoizedState!==P.memoizedState.memoizedState&&(f!==null?f.push(jv):f=[jv])}P=P.return}f!==null&&qM(m,f,v,S),m.flags|=262144}function X5(f){for(f=f.firstContext;f!==null;){if(!Ha(f.context._currentValue,f.memoizedValue))return!0;f=f.next}return!1}function yf(f){gf=f,Pc=null,f=f.dependencies,f!==null&&(f.firstContext=null)}function jo(f){return Mpe(gf,f)}function G5(f,m){return gf===null&&yf(f),Mpe(f,m)}function Mpe(f,m){var v=m._currentValue;if(m={context:m,memoizedValue:v,next:null},Pc===null){if(f===null)throw Error(o(308));Pc=m,f.dependencies={lanes:0,firstContext:m},f.flags|=524288}else Pc=Pc.next=m;return v}var LEt=typeof AbortController<"u"?AbortController:function(){var f=[],m=this.signal={aborted:!1,addEventListener:function(v,S){f.push(S)}};this.abort=function(){m.aborted=!0,f.forEach(function(v){return v()})}},IEt=e.unstable_scheduleCallback,zEt=e.unstable_NormalPriority,Fn={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function YM(){return{controller:new LEt,data:new Map,refCount:0}}function dv(f){f.refCount--,f.refCount===0&&IEt(zEt,function(){f.controller.abort()})}var hv=null,WM=0,Yg=0,Wg=null;function jEt(f,m){if(hv===null){var v=hv=[];WM=0,Yg=GO(),Wg={status:"pending",value:void 0,then:function(S){v.push(S)}}}return WM++,m.then(Ope,Ope),m}function Ope(){if(--WM===0&&hv!==null){Wg!==null&&(Wg.status="fulfilled");var f=hv;hv=null,Yg=0,Wg=null;for(var m=0;m<f.length;m++)(0,f[m])()}}function BEt(f,m){var v=[],S={status:"pending",value:null,reason:null,then:function(P){v.push(P)}};return f.then(function(){S.status="fulfilled",S.value=m;for(var P=0;P<v.length;P++)(0,v[P])(m)},function(P){for(S.status="rejected",S.reason=P,P=0;P<v.length;P++)(0,v[P])(void 0)}),S}var Dpe=L.S;L.S=function(f,m){typeof m=="object"&&m!==null&&typeof m.then=="function"&&jEt(f,m),Dpe!==null&&Dpe(f,m)};var bf=J(null);function XM(){var f=bf.current;return f!==null?f:Ar.pooledCache}function K5(f,m){m===null?z(bf,bf.current):z(bf,m.pool)}function Lpe(){var f=XM();return f===null?null:{parent:Fn._currentValue,pool:f}}var fv=Error(o(460)),Ipe=Error(o(474)),Z5=Error(o(542)),GM={then:function(){}};function zpe(f){return f=f.status,f==="fulfilled"||f==="rejected"}function Q5(){}function jpe(f,m,v){switch(v=f[v],v===void 0?f.push(m):v!==m&&(m.then(Q5,Q5),m=v),m.status){case"fulfilled":return m.value;case"rejected":throw f=m.reason,Fpe(f),f;default:if(typeof m.status=="string")m.then(Q5,Q5);else{if(f=Ar,f!==null&&100<f.shellSuspendCounter)throw Error(o(482));f=m,f.status="pending",f.then(function(S){if(m.status==="pending"){var P=m;P.status="fulfilled",P.value=S}},function(S){if(m.status==="pending"){var P=m;P.status="rejected",P.reason=S}})}switch(m.status){case"fulfilled":return m.value;case"rejected":throw f=m.reason,Fpe(f),f}throw pv=m,fv}}var pv=null;function Bpe(){if(pv===null)throw Error(o(459));var f=pv;return pv=null,f}function Fpe(f){if(f===fv||f===Z5)throw Error(o(483))}var Zu=!1;function KM(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ZM(f,m){f=f.updateQueue,m.updateQueue===f&&(m.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function Qu(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function Ju(f,m,v){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(dr&2)!==0){var P=S.pending;return P===null?m.next=m:(m.next=P.next,P.next=m),S.pending=m,m=V5(f),Tpe(f,null,v),m}return U5(f,S,m,v),V5(f)}function mv(f,m,v){if(m=m.updateQueue,m!==null&&(m=m.shared,(v&4194048)!==0)){var S=m.lanes;S&=f.pendingLanes,v|=S,m.lanes=v,Hu(f,v)}}function QM(f,m){var v=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,v===S)){var P=null,j=null;if(v=v.firstBaseUpdate,v!==null){do{var K={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};j===null?P=j=K:j=j.next=K,v=v.next}while(v!==null);j===null?P=j=m:j=j.next=m}else P=j=m;v={baseState:S.baseState,firstBaseUpdate:P,lastBaseUpdate:j,shared:S.shared,callbacks:S.callbacks},f.updateQueue=v;return}f=v.lastBaseUpdate,f===null?v.firstBaseUpdate=m:f.next=m,v.lastBaseUpdate=m}var JM=!1;function gv(){if(JM){var f=Wg;if(f!==null)throw f}}function yv(f,m,v,S){JM=!1;var P=f.updateQueue;Zu=!1;var j=P.firstBaseUpdate,K=P.lastBaseUpdate,te=P.shared.pending;if(te!==null){P.shared.pending=null;var le=te,ge=le.next;le.next=null,K===null?j=ge:K.next=ge,K=le;var Te=f.alternate;Te!==null&&(Te=Te.updateQueue,te=Te.lastBaseUpdate,te!==K&&(te===null?Te.firstBaseUpdate=ge:te.next=ge,Te.lastBaseUpdate=le))}if(j!==null){var Re=P.baseState;K=0,Te=ge=le=null,te=j;do{var ve=te.lane&-536870913,ke=ve!==te.lane;if(ke?(rr&ve)===ve:(S&ve)===ve){ve!==0&&ve===Yg&&(JM=!0),Te!==null&&(Te=Te.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var xt=f,pt=te;ve=m;var vr=v;switch(pt.tag){case 1:if(xt=pt.payload,typeof xt=="function"){Re=xt.call(vr,Re,ve);break e}Re=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=pt.payload,ve=typeof xt=="function"?xt.call(vr,Re,ve):xt,ve==null)break e;Re=d({},Re,ve);break e;case 2:Zu=!0}}ve=te.callback,ve!==null&&(f.flags|=64,ke&&(f.flags|=8192),ke=P.callbacks,ke===null?P.callbacks=[ve]:ke.push(ve))}else ke={lane:ve,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Te===null?(ge=Te=ke,le=Re):Te=Te.next=ke,K|=ve;if(te=te.next,te===null){if(te=P.shared.pending,te===null)break;ke=te,te=ke.next,ke.next=null,P.lastBaseUpdate=ke,P.shared.pending=null}}while(!0);Te===null&&(le=Re),P.baseState=le,P.firstBaseUpdate=ge,P.lastBaseUpdate=Te,j===null&&(P.shared.lanes=0),sd|=K,f.lanes=K,f.memoizedState=Re}}function Hpe(f,m){if(typeof f!="function")throw Error(o(191,f));f.call(m)}function Upe(f,m){var v=f.callbacks;if(v!==null)for(f.callbacks=null,f=0;f<v.length;f++)Hpe(v[f],m)}var Xg=J(null),J5=J(0);function Vpe(f,m){f=Bc,z(J5,f),z(Xg,m),Bc=f|m.baseLanes}function eO(){z(J5,Bc),z(Xg,Xg.current)}function tO(){Bc=J5.current,Q(Xg),Q(J5)}var ed=0,Bt=null,yr=null,Dn=null,e2=!1,Gg=!1,vf=!1,t2=0,bv=0,Kg=null,FEt=0;function dn(){throw Error(o(321))}function rO(f,m){if(m===null)return!1;for(var v=0;v<m.length&&v<f.length;v++)if(!Ha(f[v],m[v]))return!1;return!0}function nO(f,m,v,S,P,j){return ed=j,Bt=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,L.H=f===null||f.memoizedState===null?Tme:Ame,vf=!1,j=v(S,P),vf=!1,Gg&&(j=Ype(m,v,S,P)),qpe(f),j}function qpe(f){L.H=s2;var m=yr!==null&&yr.next!==null;if(ed=0,Dn=yr=Bt=null,e2=!1,bv=0,Kg=null,m)throw Error(o(300));f===null||ao||(f=f.dependencies,f!==null&&X5(f)&&(ao=!0))}function Ype(f,m,v,S){Bt=f;var P=0;do{if(Gg&&(Kg=null),bv=0,Gg=!1,25<=P)throw Error(o(301));if(P+=1,Dn=yr=null,f.updateQueue!=null){var j=f.updateQueue;j.lastEffect=null,j.events=null,j.stores=null,j.memoCache!=null&&(j.memoCache.index=0)}L.H=XEt,j=m(v,S)}while(Gg);return j}function HEt(){var f=L.H,m=f.useState()[0];return m=typeof m.then=="function"?vv(m):m,f=f.useState()[0],(yr!==null?yr.memoizedState:null)!==f&&(Bt.flags|=1024),m}function oO(){var f=t2!==0;return t2=0,f}function aO(f,m,v){m.updateQueue=f.updateQueue,m.flags&=-2053,f.lanes&=~v}function iO(f){if(e2){for(f=f.memoizedState;f!==null;){var m=f.queue;m!==null&&(m.pending=null),f=f.next}e2=!1}ed=0,Dn=yr=Bt=null,Gg=!1,bv=t2=0,Kg=null}function ma(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?Bt.memoizedState=Dn=f:Dn=Dn.next=f,Dn}function Ln(){if(yr===null){var f=Bt.alternate;f=f!==null?f.memoizedState:null}else f=yr.next;var m=Dn===null?Bt.memoizedState:Dn.next;if(m!==null)Dn=m,yr=f;else{if(f===null)throw Bt.alternate===null?Error(o(467)):Error(o(310));yr=f,f={memoizedState:yr.memoizedState,baseState:yr.baseState,baseQueue:yr.baseQueue,queue:yr.queue,next:null},Dn===null?Bt.memoizedState=Dn=f:Dn=Dn.next=f}return Dn}function sO(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vv(f){var m=bv;return bv+=1,Kg===null&&(Kg=[]),f=jpe(Kg,f,m),m=Bt,(Dn===null?m.memoizedState:Dn.next)===null&&(m=m.alternate,L.H=m===null||m.memoizedState===null?Tme:Ame),f}function r2(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return vv(f);if(f.$$typeof===_)return jo(f)}throw Error(o(438,String(f)))}function lO(f){var m=null,v=Bt.updateQueue;if(v!==null&&(m=v.memoCache),m==null){var S=Bt.alternate;S!==null&&(S=S.updateQueue,S!==null&&(S=S.memoCache,S!=null&&(m={data:S.data.map(function(P){return P.slice()}),index:0})))}if(m==null&&(m={data:[],index:0}),v===null&&(v=sO(),Bt.updateQueue=v),v.memoCache=m,v=m.data[m.index],v===void 0)for(v=m.data[m.index]=Array(f),S=0;S<f;S++)v[S]=O;return m.index++,v}function Oc(f,m){return typeof m=="function"?m(f):m}function n2(f){var m=Ln();return cO(m,yr,f)}function cO(f,m,v){var S=f.queue;if(S===null)throw Error(o(311));S.lastRenderedReducer=v;var P=f.baseQueue,j=S.pending;if(j!==null){if(P!==null){var K=P.next;P.next=j.next,j.next=K}m.baseQueue=P=j,S.pending=null}if(j=f.baseState,P===null)f.memoizedState=j;else{m=P.next;var te=K=null,le=null,ge=m,Te=!1;do{var Re=ge.lane&-536870913;if(Re!==ge.lane?(rr&Re)===Re:(ed&Re)===Re){var ve=ge.revertLane;if(ve===0)le!==null&&(le=le.next={lane:0,revertLane:0,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),Re===Yg&&(Te=!0);else if((ed&ve)===ve){ge=ge.next,ve===Yg&&(Te=!0);continue}else Re={lane:0,revertLane:ge.revertLane,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},le===null?(te=le=Re,K=j):le=le.next=Re,Bt.lanes|=ve,sd|=ve;Re=ge.action,vf&&v(j,Re),j=ge.hasEagerState?ge.eagerState:v(j,Re)}else ve={lane:Re,revertLane:ge.revertLane,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},le===null?(te=le=ve,K=j):le=le.next=ve,Bt.lanes|=Re,sd|=Re;ge=ge.next}while(ge!==null&&ge!==m);if(le===null?K=j:le.next=te,!Ha(j,f.memoizedState)&&(ao=!0,Te&&(v=Wg,v!==null)))throw v;f.memoizedState=j,f.baseState=K,f.baseQueue=le,S.lastRenderedState=j}return P===null&&(S.lanes=0),[f.memoizedState,S.dispatch]}function uO(f){var m=Ln(),v=m.queue;if(v===null)throw Error(o(311));v.lastRenderedReducer=f;var S=v.dispatch,P=v.pending,j=m.memoizedState;if(P!==null){v.pending=null;var K=P=P.next;do j=f(j,K.action),K=K.next;while(K!==P);Ha(j,m.memoizedState)||(ao=!0),m.memoizedState=j,m.baseQueue===null&&(m.baseState=j),v.lastRenderedState=j}return[j,S]}function Wpe(f,m,v){var S=Bt,P=Ln(),j=ir;if(j){if(v===void 0)throw Error(o(407));v=v()}else v=m();var K=!Ha((yr||P).memoizedState,v);K&&(P.memoizedState=v,ao=!0),P=P.queue;var te=Kpe.bind(null,S,P,f);if(xv(2048,8,te,[f]),P.getSnapshot!==m||K||Dn!==null&&Dn.memoizedState.tag&1){if(S.flags|=2048,Zg(9,o2(),Gpe.bind(null,S,P,v,m),null),Ar===null)throw Error(o(349));j||(ed&124)!==0||Xpe(S,m,v)}return v}function Xpe(f,m,v){f.flags|=16384,f={getSnapshot:m,value:v},m=Bt.updateQueue,m===null?(m=sO(),Bt.updateQueue=m,m.stores=[f]):(v=m.stores,v===null?m.stores=[f]:v.push(f))}function Gpe(f,m,v,S){m.value=v,m.getSnapshot=S,Zpe(m)&&Qpe(f)}function Kpe(f,m,v){return v(function(){Zpe(m)&&Qpe(f)})}function Zpe(f){var m=f.getSnapshot;f=f.value;try{var v=m();return!Ha(f,v)}catch{return!0}}function Qpe(f){var m=Hg(f,2);m!==null&&Xa(m,f,2)}function dO(f){var m=ma();if(typeof f=="function"){var v=f;if(f=v(),vf){rt(!0);try{v()}finally{rt(!1)}}}return m.memoizedState=m.baseState=f,m.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oc,lastRenderedState:f},m}function Jpe(f,m,v,S){return f.baseState=v,cO(f,yr,typeof S=="function"?S:Oc)}function UEt(f,m,v,S,P){if(i2(f))throw Error(o(485));if(f=m.action,f!==null){var j={payload:P,action:f,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(K){j.listeners.push(K)}};L.T!==null?v(!0):j.isTransition=!1,S(j),v=m.pending,v===null?(j.next=m.pending=j,eme(m,j)):(j.next=v.next,m.pending=v.next=j)}}function eme(f,m){var v=m.action,S=m.payload,P=f.state;if(m.isTransition){var j=L.T,K={};L.T=K;try{var te=v(P,S),le=L.S;le!==null&&le(K,te),tme(f,m,te)}catch(ge){hO(f,m,ge)}finally{L.T=j}}else try{j=v(P,S),tme(f,m,j)}catch(ge){hO(f,m,ge)}}function tme(f,m,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(S){rme(f,m,S)},function(S){return hO(f,m,S)}):rme(f,m,v)}function rme(f,m,v){m.status="fulfilled",m.value=v,nme(m),f.state=v,m=f.pending,m!==null&&(v=m.next,v===m?f.pending=null:(v=v.next,m.next=v,eme(f,v)))}function hO(f,m,v){var S=f.pending;if(f.pending=null,S!==null){S=S.next;do m.status="rejected",m.reason=v,nme(m),m=m.next;while(m!==S)}f.action=null}function nme(f){f=f.listeners;for(var m=0;m<f.length;m++)(0,f[m])()}function ome(f,m){return m}function ame(f,m){if(ir){var v=Ar.formState;if(v!==null){e:{var S=Bt;if(ir){if(rn){t:{for(var P=rn,j=Tl;P.nodeType!==8;){if(!j){P=null;break t}if(P=Us(P.nextSibling),P===null){P=null;break t}}j=P.data,P=j==="F!"||j==="F"?P:null}if(P){rn=Us(P.nextSibling),S=P.data==="F!";break e}}mf(S)}S=!1}S&&(m=v[0])}}return v=ma(),v.memoizedState=v.baseState=m,S={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ome,lastRenderedState:m},v.queue=S,v=Eme.bind(null,Bt,S),S.dispatch=v,S=dO(!1),j=yO.bind(null,Bt,!1,S.queue),S=ma(),P={state:m,dispatch:null,action:f,pending:null},S.queue=P,v=UEt.bind(null,Bt,P,j,v),P.dispatch=v,S.memoizedState=f,[m,v,!1]}function ime(f){var m=Ln();return sme(m,yr,f)}function sme(f,m,v){if(m=cO(f,m,ome)[0],f=n2(Oc)[0],typeof m=="object"&&m!==null&&typeof m.then=="function")try{var S=vv(m)}catch(K){throw K===fv?Z5:K}else S=m;m=Ln();var P=m.queue,j=P.dispatch;return v!==m.memoizedState&&(Bt.flags|=2048,Zg(9,o2(),VEt.bind(null,P,v),null)),[S,j,f]}function VEt(f,m){f.action=m}function lme(f){var m=Ln(),v=yr;if(v!==null)return sme(m,v,f);Ln(),m=m.memoizedState,v=Ln();var S=v.queue.dispatch;return v.memoizedState=f,[m,S,!1]}function Zg(f,m,v,S){return f={tag:f,create:v,deps:S,inst:m,next:null},m=Bt.updateQueue,m===null&&(m=sO(),Bt.updateQueue=m),v=m.lastEffect,v===null?m.lastEffect=f.next=f:(S=v.next,v.next=f,f.next=S,m.lastEffect=f),f}function o2(){return{destroy:void 0,resource:void 0}}function cme(){return Ln().memoizedState}function a2(f,m,v,S){var P=ma();S=S===void 0?null:S,Bt.flags|=f,P.memoizedState=Zg(1|m,o2(),v,S)}function xv(f,m,v,S){var P=Ln();S=S===void 0?null:S;var j=P.memoizedState.inst;yr!==null&&S!==null&&rO(S,yr.memoizedState.deps)?P.memoizedState=Zg(m,j,v,S):(Bt.flags|=f,P.memoizedState=Zg(1|m,j,v,S))}function ume(f,m){a2(8390656,8,f,m)}function dme(f,m){xv(2048,8,f,m)}function hme(f,m){return xv(4,2,f,m)}function fme(f,m){return xv(4,4,f,m)}function pme(f,m){if(typeof m=="function"){f=f();var v=m(f);return function(){typeof v=="function"?v():m(null)}}if(m!=null)return f=f(),m.current=f,function(){m.current=null}}function mme(f,m,v){v=v!=null?v.concat([f]):null,xv(4,4,pme.bind(null,m,f),v)}function fO(){}function gme(f,m){var v=Ln();m=m===void 0?null:m;var S=v.memoizedState;return m!==null&&rO(m,S[1])?S[0]:(v.memoizedState=[f,m],f)}function yme(f,m){var v=Ln();m=m===void 0?null:m;var S=v.memoizedState;if(m!==null&&rO(m,S[1]))return S[0];if(S=f(),vf){rt(!0);try{f()}finally{rt(!1)}}return v.memoizedState=[S,m],S}function pO(f,m,v){return v===void 0||(ed&1073741824)!==0?f.memoizedState=m:(f.memoizedState=v,f=xge(),Bt.lanes|=f,sd|=f,v)}function bme(f,m,v,S){return Ha(v,m)?v:Xg.current!==null?(f=pO(f,v,S),Ha(f,m)||(ao=!0),f):(ed&42)===0?(ao=!0,f.memoizedState=v):(f=xge(),Bt.lanes|=f,sd|=f,m)}function vme(f,m,v,S,P){var j=U.p;U.p=j!==0&&8>j?j:8;var K=L.T,te={};L.T=te,yO(f,!1,m,v);try{var le=P(),ge=L.S;if(ge!==null&&ge(te,le),le!==null&&typeof le=="object"&&typeof le.then=="function"){var Te=BEt(le,S);wv(f,m,Te,Wa(f))}else wv(f,m,S,Wa(f))}catch(Re){wv(f,m,{then:function(){},status:"rejected",reason:Re},Wa())}finally{U.p=j,L.T=K}}function qEt(){}function mO(f,m,v,S){if(f.tag!==5)throw Error(o(476));var P=xme(f).queue;vme(f,P,m,q,v===null?qEt:function(){return wme(f),v(S)})}function xme(f){var m=f.memoizedState;if(m!==null)return m;m={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oc,lastRenderedState:q},next:null};var v={};return m.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oc,lastRenderedState:v},next:null},f.memoizedState=m,f=f.alternate,f!==null&&(f.memoizedState=m),m}function wme(f){var m=xme(f).next.queue;wv(f,m,{},Wa())}function gO(){return jo(jv)}function kme(){return Ln().memoizedState}function _me(){return Ln().memoizedState}function YEt(f){for(var m=f.return;m!==null;){switch(m.tag){case 24:case 3:var v=Wa();f=Qu(v);var S=Ju(m,f,v);S!==null&&(Xa(S,m,v),mv(S,m,v)),m={cache:YM()},f.payload=m;return}m=m.return}}function WEt(f,m,v){var S=Wa();v={lane:S,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null},i2(f)?Sme(m,v):(v=LM(f,m,v,S),v!==null&&(Xa(v,f,S),Cme(v,m,S)))}function Eme(f,m,v){var S=Wa();wv(f,m,v,S)}function wv(f,m,v,S){var P={lane:S,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null};if(i2(f))Sme(m,P);else{var j=f.alternate;if(f.lanes===0&&(j===null||j.lanes===0)&&(j=m.lastRenderedReducer,j!==null))try{var K=m.lastRenderedState,te=j(K,v);if(P.hasEagerState=!0,P.eagerState=te,Ha(te,K))return U5(f,m,P,0),Ar===null&&H5(),!1}catch{}finally{}if(v=LM(f,m,P,S),v!==null)return Xa(v,f,S),Cme(v,m,S),!0}return!1}function yO(f,m,v,S){if(S={lane:2,revertLane:GO(),action:S,hasEagerState:!1,eagerState:null,next:null},i2(f)){if(m)throw Error(o(479))}else m=LM(f,v,S,2),m!==null&&Xa(m,f,2)}function i2(f){var m=f.alternate;return f===Bt||m!==null&&m===Bt}function Sme(f,m){Gg=e2=!0;var v=f.pending;v===null?m.next=m:(m.next=v.next,v.next=m),f.pending=m}function Cme(f,m,v){if((v&4194048)!==0){var S=m.lanes;S&=f.pendingLanes,v|=S,m.lanes=v,Hu(f,v)}}var s2={readContext:jo,use:r2,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn,useHostTransitionStatus:dn,useFormState:dn,useActionState:dn,useOptimistic:dn,useMemoCache:dn,useCacheRefresh:dn},Tme={readContext:jo,use:r2,useCallback:function(f,m){return ma().memoizedState=[f,m===void 0?null:m],f},useContext:jo,useEffect:ume,useImperativeHandle:function(f,m,v){v=v!=null?v.concat([f]):null,a2(4194308,4,pme.bind(null,m,f),v)},useLayoutEffect:function(f,m){return a2(4194308,4,f,m)},useInsertionEffect:function(f,m){a2(4,2,f,m)},useMemo:function(f,m){var v=ma();m=m===void 0?null:m;var S=f();if(vf){rt(!0);try{f()}finally{rt(!1)}}return v.memoizedState=[S,m],S},useReducer:function(f,m,v){var S=ma();if(v!==void 0){var P=v(m);if(vf){rt(!0);try{v(m)}finally{rt(!1)}}}else P=m;return S.memoizedState=S.baseState=P,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:P},S.queue=f,f=f.dispatch=WEt.bind(null,Bt,f),[S.memoizedState,f]},useRef:function(f){var m=ma();return f={current:f},m.memoizedState=f},useState:function(f){f=dO(f);var m=f.queue,v=Eme.bind(null,Bt,m);return m.dispatch=v,[f.memoizedState,v]},useDebugValue:fO,useDeferredValue:function(f,m){var v=ma();return pO(v,f,m)},useTransition:function(){var f=dO(!1);return f=vme.bind(null,Bt,f.queue,!0,!1),ma().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,m,v){var S=Bt,P=ma();if(ir){if(v===void 0)throw Error(o(407));v=v()}else{if(v=m(),Ar===null)throw Error(o(349));(rr&124)!==0||Xpe(S,m,v)}P.memoizedState=v;var j={value:v,getSnapshot:m};return P.queue=j,ume(Kpe.bind(null,S,j,f),[f]),S.flags|=2048,Zg(9,o2(),Gpe.bind(null,S,j,v,m),null),v},useId:function(){var f=ma(),m=Ar.identifierPrefix;if(ir){var v=$c,S=Rc;v=(S&~(1<<32-at(S)-1)).toString(32)+v,m="«"+m+"R"+v,v=t2++,0<v&&(m+="H"+v.toString(32)),m+="»"}else v=FEt++,m="«"+m+"r"+v.toString(32)+"»";return f.memoizedState=m},useHostTransitionStatus:gO,useFormState:ame,useActionState:ame,useOptimistic:function(f){var m=ma();m.memoizedState=m.baseState=f;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=v,m=yO.bind(null,Bt,!0,v),v.dispatch=m,[f,m]},useMemoCache:lO,useCacheRefresh:function(){return ma().memoizedState=YEt.bind(null,Bt)}},Ame={readContext:jo,use:r2,useCallback:gme,useContext:jo,useEffect:dme,useImperativeHandle:mme,useInsertionEffect:hme,useLayoutEffect:fme,useMemo:yme,useReducer:n2,useRef:cme,useState:function(){return n2(Oc)},useDebugValue:fO,useDeferredValue:function(f,m){var v=Ln();return bme(v,yr.memoizedState,f,m)},useTransition:function(){var f=n2(Oc)[0],m=Ln().memoizedState;return[typeof f=="boolean"?f:vv(f),m]},useSyncExternalStore:Wpe,useId:kme,useHostTransitionStatus:gO,useFormState:ime,useActionState:ime,useOptimistic:function(f,m){var v=Ln();return Jpe(v,yr,f,m)},useMemoCache:lO,useCacheRefresh:_me},XEt={readContext:jo,use:r2,useCallback:gme,useContext:jo,useEffect:dme,useImperativeHandle:mme,useInsertionEffect:hme,useLayoutEffect:fme,useMemo:yme,useReducer:uO,useRef:cme,useState:function(){return uO(Oc)},useDebugValue:fO,useDeferredValue:function(f,m){var v=Ln();return yr===null?pO(v,f,m):bme(v,yr.memoizedState,f,m)},useTransition:function(){var f=uO(Oc)[0],m=Ln().memoizedState;return[typeof f=="boolean"?f:vv(f),m]},useSyncExternalStore:Wpe,useId:kme,useHostTransitionStatus:gO,useFormState:lme,useActionState:lme,useOptimistic:function(f,m){var v=Ln();return yr!==null?Jpe(v,yr,f,m):(v.baseState=f,[f,v.queue.dispatch])},useMemoCache:lO,useCacheRefresh:_me},Qg=null,kv=0;function l2(f){var m=kv;return kv+=1,Qg===null&&(Qg=[]),jpe(Qg,f,m)}function _v(f,m){m=m.props.ref,f.ref=m!==void 0?m:null}function c2(f,m){throw m.$$typeof===h?Error(o(525)):(f=Object.prototype.toString.call(m),Error(o(31,f==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":f)))}function Nme(f){var m=f._init;return m(f._payload)}function Rme(f){function m(fe,ue){if(f){var pe=fe.deletions;pe===null?(fe.deletions=[ue],fe.flags|=16):pe.push(ue)}}function v(fe,ue){if(!f)return null;for(;ue!==null;)m(fe,ue),ue=ue.sibling;return null}function S(fe){for(var ue=new Map;fe!==null;)fe.key!==null?ue.set(fe.key,fe):ue.set(fe.index,fe),fe=fe.sibling;return ue}function P(fe,ue){return fe=Nc(fe,ue),fe.index=0,fe.sibling=null,fe}function j(fe,ue,pe){return fe.index=pe,f?(pe=fe.alternate,pe!==null?(pe=pe.index,pe<ue?(fe.flags|=67108866,ue):pe):(fe.flags|=67108866,ue)):(fe.flags|=1048576,ue)}function K(fe){return f&&fe.alternate===null&&(fe.flags|=67108866),fe}function te(fe,ue,pe,Ae){return ue===null||ue.tag!==6?(ue=zM(pe,fe.mode,Ae),ue.return=fe,ue):(ue=P(ue,pe),ue.return=fe,ue)}function le(fe,ue,pe,Ae){var ot=pe.type;return ot===y?Te(fe,ue,pe.props.children,Ae,pe.key):ue!==null&&(ue.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===R&&Nme(ot)===ue.type)?(ue=P(ue,pe.props),_v(ue,pe),ue.return=fe,ue):(ue=q5(pe.type,pe.key,pe.props,null,fe.mode,Ae),_v(ue,pe),ue.return=fe,ue)}function ge(fe,ue,pe,Ae){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==pe.containerInfo||ue.stateNode.implementation!==pe.implementation?(ue=jM(pe,fe.mode,Ae),ue.return=fe,ue):(ue=P(ue,pe.children||[]),ue.return=fe,ue)}function Te(fe,ue,pe,Ae,ot){return ue===null||ue.tag!==7?(ue=df(pe,fe.mode,Ae,ot),ue.return=fe,ue):(ue=P(ue,pe),ue.return=fe,ue)}function Re(fe,ue,pe){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=zM(""+ue,fe.mode,pe),ue.return=fe,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case p:return pe=q5(ue.type,ue.key,ue.props,null,fe.mode,pe),_v(pe,ue),pe.return=fe,pe;case g:return ue=jM(ue,fe.mode,pe),ue.return=fe,ue;case R:var Ae=ue._init;return ue=Ae(ue._payload),Re(fe,ue,pe)}if(V(ue)||I(ue))return ue=df(ue,fe.mode,pe,null),ue.return=fe,ue;if(typeof ue.then=="function")return Re(fe,l2(ue),pe);if(ue.$$typeof===_)return Re(fe,G5(fe,ue),pe);c2(fe,ue)}return null}function ve(fe,ue,pe,Ae){var ot=ue!==null?ue.key:null;if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return ot!==null?null:te(fe,ue,""+pe,Ae);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case p:return pe.key===ot?le(fe,ue,pe,Ae):null;case g:return pe.key===ot?ge(fe,ue,pe,Ae):null;case R:return ot=pe._init,pe=ot(pe._payload),ve(fe,ue,pe,Ae)}if(V(pe)||I(pe))return ot!==null?null:Te(fe,ue,pe,Ae,null);if(typeof pe.then=="function")return ve(fe,ue,l2(pe),Ae);if(pe.$$typeof===_)return ve(fe,ue,G5(fe,pe),Ae);c2(fe,pe)}return null}function ke(fe,ue,pe,Ae,ot){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return fe=fe.get(pe)||null,te(ue,fe,""+Ae,ot);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case p:return fe=fe.get(Ae.key===null?pe:Ae.key)||null,le(ue,fe,Ae,ot);case g:return fe=fe.get(Ae.key===null?pe:Ae.key)||null,ge(ue,fe,Ae,ot);case R:var qt=Ae._init;return Ae=qt(Ae._payload),ke(fe,ue,pe,Ae,ot)}if(V(Ae)||I(Ae))return fe=fe.get(pe)||null,Te(ue,fe,Ae,ot,null);if(typeof Ae.then=="function")return ke(fe,ue,pe,l2(Ae),ot);if(Ae.$$typeof===_)return ke(fe,ue,pe,G5(ue,Ae),ot);c2(ue,Ae)}return null}function xt(fe,ue,pe,Ae){for(var ot=null,qt=null,ct=ue,gt=ue=0,so=null;ct!==null&&gt<pe.length;gt++){ct.index>gt?(so=ct,ct=null):so=ct.sibling;var ar=ve(fe,ct,pe[gt],Ae);if(ar===null){ct===null&&(ct=so);break}f&&ct&&ar.alternate===null&&m(fe,ct),ue=j(ar,ue,gt),qt===null?ot=ar:qt.sibling=ar,qt=ar,ct=so}if(gt===pe.length)return v(fe,ct),ir&&ff(fe,gt),ot;if(ct===null){for(;gt<pe.length;gt++)ct=Re(fe,pe[gt],Ae),ct!==null&&(ue=j(ct,ue,gt),qt===null?ot=ct:qt.sibling=ct,qt=ct);return ir&&ff(fe,gt),ot}for(ct=S(ct);gt<pe.length;gt++)so=ke(ct,fe,gt,pe[gt],Ae),so!==null&&(f&&so.alternate!==null&&ct.delete(so.key===null?gt:so.key),ue=j(so,ue,gt),qt===null?ot=so:qt.sibling=so,qt=so);return f&&ct.forEach(function(gd){return m(fe,gd)}),ir&&ff(fe,gt),ot}function pt(fe,ue,pe,Ae){if(pe==null)throw Error(o(151));for(var ot=null,qt=null,ct=ue,gt=ue=0,so=null,ar=pe.next();ct!==null&&!ar.done;gt++,ar=pe.next()){ct.index>gt?(so=ct,ct=null):so=ct.sibling;var gd=ve(fe,ct,ar.value,Ae);if(gd===null){ct===null&&(ct=so);break}f&&ct&&gd.alternate===null&&m(fe,ct),ue=j(gd,ue,gt),qt===null?ot=gd:qt.sibling=gd,qt=gd,ct=so}if(ar.done)return v(fe,ct),ir&&ff(fe,gt),ot;if(ct===null){for(;!ar.done;gt++,ar=pe.next())ar=Re(fe,ar.value,Ae),ar!==null&&(ue=j(ar,ue,gt),qt===null?ot=ar:qt.sibling=ar,qt=ar);return ir&&ff(fe,gt),ot}for(ct=S(ct);!ar.done;gt++,ar=pe.next())ar=ke(ct,fe,gt,ar.value,Ae),ar!==null&&(f&&ar.alternate!==null&&ct.delete(ar.key===null?gt:ar.key),ue=j(ar,ue,gt),qt===null?ot=ar:qt.sibling=ar,qt=ar);return f&&ct.forEach(function(G5t){return m(fe,G5t)}),ir&&ff(fe,gt),ot}function vr(fe,ue,pe,Ae){if(typeof pe=="object"&&pe!==null&&pe.type===y&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case p:e:{for(var ot=pe.key;ue!==null;){if(ue.key===ot){if(ot=pe.type,ot===y){if(ue.tag===7){v(fe,ue.sibling),Ae=P(ue,pe.props.children),Ae.return=fe,fe=Ae;break e}}else if(ue.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===R&&Nme(ot)===ue.type){v(fe,ue.sibling),Ae=P(ue,pe.props),_v(Ae,pe),Ae.return=fe,fe=Ae;break e}v(fe,ue);break}else m(fe,ue);ue=ue.sibling}pe.type===y?(Ae=df(pe.props.children,fe.mode,Ae,pe.key),Ae.return=fe,fe=Ae):(Ae=q5(pe.type,pe.key,pe.props,null,fe.mode,Ae),_v(Ae,pe),Ae.return=fe,fe=Ae)}return K(fe);case g:e:{for(ot=pe.key;ue!==null;){if(ue.key===ot)if(ue.tag===4&&ue.stateNode.containerInfo===pe.containerInfo&&ue.stateNode.implementation===pe.implementation){v(fe,ue.sibling),Ae=P(ue,pe.children||[]),Ae.return=fe,fe=Ae;break e}else{v(fe,ue);break}else m(fe,ue);ue=ue.sibling}Ae=jM(pe,fe.mode,Ae),Ae.return=fe,fe=Ae}return K(fe);case R:return ot=pe._init,pe=ot(pe._payload),vr(fe,ue,pe,Ae)}if(V(pe))return xt(fe,ue,pe,Ae);if(I(pe)){if(ot=I(pe),typeof ot!="function")throw Error(o(150));return pe=ot.call(pe),pt(fe,ue,pe,Ae)}if(typeof pe.then=="function")return vr(fe,ue,l2(pe),Ae);if(pe.$$typeof===_)return vr(fe,ue,G5(fe,pe),Ae);c2(fe,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint"?(pe=""+pe,ue!==null&&ue.tag===6?(v(fe,ue.sibling),Ae=P(ue,pe),Ae.return=fe,fe=Ae):(v(fe,ue),Ae=zM(pe,fe.mode,Ae),Ae.return=fe,fe=Ae),K(fe)):v(fe,ue)}return function(fe,ue,pe,Ae){try{kv=0;var ot=vr(fe,ue,pe,Ae);return Qg=null,ot}catch(ct){if(ct===fv||ct===Z5)throw ct;var qt=Ua(29,ct,null,fe.mode);return qt.lanes=Ae,qt.return=fe,qt}finally{}}}var Jg=Rme(!0),$me=Rme(!1),Li=J(null),Al=null;function td(f){var m=f.alternate;z(Hn,Hn.current&1),z(Li,f),Al===null&&(m===null||Xg.current!==null||m.memoizedState!==null)&&(Al=f)}function Pme(f){if(f.tag===22){if(z(Hn,Hn.current),z(Li,f),Al===null){var m=f.alternate;m!==null&&m.memoizedState!==null&&(Al=f)}}else rd()}function rd(){z(Hn,Hn.current),z(Li,Li.current)}function Dc(f){Q(Li),Al===f&&(Al=null),Q(Hn)}var Hn=J(0);function u2(f){for(var m=f;m!==null;){if(m.tag===13){var v=m.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||sD(v)))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}function bO(f,m,v,S){m=f.memoizedState,v=v(S,m),v=v==null?m:d({},m,v),f.memoizedState=v,f.lanes===0&&(f.updateQueue.baseState=v)}var vO={enqueueSetState:function(f,m,v){f=f._reactInternals;var S=Wa(),P=Qu(S);P.payload=m,v!=null&&(P.callback=v),m=Ju(f,P,S),m!==null&&(Xa(m,f,S),mv(m,f,S))},enqueueReplaceState:function(f,m,v){f=f._reactInternals;var S=Wa(),P=Qu(S);P.tag=1,P.payload=m,v!=null&&(P.callback=v),m=Ju(f,P,S),m!==null&&(Xa(m,f,S),mv(m,f,S))},enqueueForceUpdate:function(f,m){f=f._reactInternals;var v=Wa(),S=Qu(v);S.tag=2,m!=null&&(S.callback=m),m=Ju(f,S,v),m!==null&&(Xa(m,f,v),mv(m,f,v))}};function Mme(f,m,v,S,P,j,K){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(S,j,K):m.prototype&&m.prototype.isPureReactComponent?!av(v,S)||!av(P,j):!0}function Ome(f,m,v,S){f=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(v,S),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(v,S),m.state!==f&&vO.enqueueReplaceState(m,m.state,null)}function xf(f,m){var v=m;if("ref"in m){v={};for(var S in m)S!=="ref"&&(v[S]=m[S])}if(f=f.defaultProps){v===m&&(v=d({},v));for(var P in f)v[P]===void 0&&(v[P]=f[P])}return v}var d2=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)};function Dme(f){d2(f)}function Lme(f){console.error(f)}function Ime(f){d2(f)}function h2(f,m){try{var v=f.onUncaughtError;v(m.value,{componentStack:m.stack})}catch(S){setTimeout(function(){throw S})}}function zme(f,m,v){try{var S=f.onCaughtError;S(v.value,{componentStack:v.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(P){setTimeout(function(){throw P})}}function xO(f,m,v){return v=Qu(v),v.tag=3,v.payload={element:null},v.callback=function(){h2(f,m)},v}function jme(f){return f=Qu(f),f.tag=3,f}function Bme(f,m,v,S){var P=v.type.getDerivedStateFromError;if(typeof P=="function"){var j=S.value;f.payload=function(){return P(j)},f.callback=function(){zme(m,v,S)}}var K=v.stateNode;K!==null&&typeof K.componentDidCatch=="function"&&(f.callback=function(){zme(m,v,S),typeof P!="function"&&(ld===null?ld=new Set([this]):ld.add(this));var te=S.stack;this.componentDidCatch(S.value,{componentStack:te!==null?te:""})})}function GEt(f,m,v,S,P){if(v.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){if(m=v.alternate,m!==null&&uv(m,v,P,!0),v=Li.current,v!==null){switch(v.tag){case 13:return Al===null?VO():v.alternate===null&&nn===0&&(nn=3),v.flags&=-257,v.flags|=65536,v.lanes=P,S===GM?v.flags|=16384:(m=v.updateQueue,m===null?v.updateQueue=new Set([S]):m.add(S),YO(f,S,P)),!1;case 22:return v.flags|=65536,S===GM?v.flags|=16384:(m=v.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([S])},v.updateQueue=m):(v=m.retryQueue,v===null?m.retryQueue=new Set([S]):v.add(S)),YO(f,S,P)),!1}throw Error(o(435,v.tag))}return YO(f,S,P),VO(),!1}if(ir)return m=Li.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=P,S!==HM&&(f=Error(o(422),{cause:S}),cv(Pi(f,v)))):(S!==HM&&(m=Error(o(423),{cause:S}),cv(Pi(m,v))),f=f.current.alternate,f.flags|=65536,P&=-P,f.lanes|=P,S=Pi(S,v),P=xO(f.stateNode,S,P),QM(f,P),nn!==4&&(nn=2)),!1;var j=Error(o(520),{cause:S});if(j=Pi(j,v),Rv===null?Rv=[j]:Rv.push(j),nn!==4&&(nn=2),m===null)return!0;S=Pi(S,v),v=m;do{switch(v.tag){case 3:return v.flags|=65536,f=P&-P,v.lanes|=f,f=xO(v.stateNode,S,f),QM(v,f),!1;case 1:if(m=v.type,j=v.stateNode,(v.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(ld===null||!ld.has(j))))return v.flags|=65536,P&=-P,v.lanes|=P,P=jme(P),Bme(P,f,v,S),QM(v,P),!1}v=v.return}while(v!==null);return!1}var Fme=Error(o(461)),ao=!1;function xo(f,m,v,S){m.child=f===null?$me(m,null,v,S):Jg(m,f.child,v,S)}function Hme(f,m,v,S,P){v=v.render;var j=m.ref;if("ref"in S){var K={};for(var te in S)te!=="ref"&&(K[te]=S[te])}else K=S;return yf(m),S=nO(f,m,v,K,j,P),te=oO(),f!==null&&!ao?(aO(f,m,P),Lc(f,m,P)):(ir&&te&&BM(m),m.flags|=1,xo(f,m,S,P),m.child)}function Ume(f,m,v,S,P){if(f===null){var j=v.type;return typeof j=="function"&&!IM(j)&&j.defaultProps===void 0&&v.compare===null?(m.tag=15,m.type=j,Vme(f,m,j,S,P)):(f=q5(v.type,null,S,m,m.mode,P),f.ref=m.ref,f.return=m,m.child=f)}if(j=f.child,!AO(f,P)){var K=j.memoizedProps;if(v=v.compare,v=v!==null?v:av,v(K,S)&&f.ref===m.ref)return Lc(f,m,P)}return m.flags|=1,f=Nc(j,S),f.ref=m.ref,f.return=m,m.child=f}function Vme(f,m,v,S,P){if(f!==null){var j=f.memoizedProps;if(av(j,S)&&f.ref===m.ref)if(ao=!1,m.pendingProps=S=j,AO(f,P))(f.flags&131072)!==0&&(ao=!0);else return m.lanes=f.lanes,Lc(f,m,P)}return wO(f,m,v,S,P)}function qme(f,m,v){var S=m.pendingProps,P=S.children,j=f!==null?f.memoizedState:null;if(S.mode==="hidden"){if((m.flags&128)!==0){if(S=j!==null?j.baseLanes|v:v,f!==null){for(P=m.child=f.child,j=0;P!==null;)j=j|P.lanes|P.childLanes,P=P.sibling;m.childLanes=j&~S}else m.childLanes=0,m.child=null;return Yme(f,m,S,v)}if((v&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},f!==null&&K5(m,j!==null?j.cachePool:null),j!==null?Vpe(m,j):eO(),Pme(m);else return m.lanes=m.childLanes=536870912,Yme(f,m,j!==null?j.baseLanes|v:v,v)}else j!==null?(K5(m,j.cachePool),Vpe(m,j),rd(),m.memoizedState=null):(f!==null&&K5(m,null),eO(),rd());return xo(f,m,P,v),m.child}function Yme(f,m,v,S){var P=XM();return P=P===null?null:{parent:Fn._currentValue,pool:P},m.memoizedState={baseLanes:v,cachePool:P},f!==null&&K5(m,null),eO(),Pme(m),f!==null&&uv(f,m,S,!0),null}function f2(f,m){var v=m.ref;if(v===null)f!==null&&f.ref!==null&&(m.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(o(284));(f===null||f.ref!==v)&&(m.flags|=4194816)}}function wO(f,m,v,S,P){return yf(m),v=nO(f,m,v,S,void 0,P),S=oO(),f!==null&&!ao?(aO(f,m,P),Lc(f,m,P)):(ir&&S&&BM(m),m.flags|=1,xo(f,m,v,P),m.child)}function Wme(f,m,v,S,P,j){return yf(m),m.updateQueue=null,v=Ype(m,S,v,P),qpe(f),S=oO(),f!==null&&!ao?(aO(f,m,j),Lc(f,m,j)):(ir&&S&&BM(m),m.flags|=1,xo(f,m,v,j),m.child)}function Xme(f,m,v,S,P){if(yf(m),m.stateNode===null){var j=Ug,K=v.contextType;typeof K=="object"&&K!==null&&(j=jo(K)),j=new v(S,j),m.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=vO,m.stateNode=j,j._reactInternals=m,j=m.stateNode,j.props=S,j.state=m.memoizedState,j.refs={},KM(m),K=v.contextType,j.context=typeof K=="object"&&K!==null?jo(K):Ug,j.state=m.memoizedState,K=v.getDerivedStateFromProps,typeof K=="function"&&(bO(m,v,K,S),j.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(K=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),K!==j.state&&vO.enqueueReplaceState(j,j.state,null),yv(m,S,j,P),gv(),j.state=m.memoizedState),typeof j.componentDidMount=="function"&&(m.flags|=4194308),S=!0}else if(f===null){j=m.stateNode;var te=m.memoizedProps,le=xf(v,te);j.props=le;var ge=j.context,Te=v.contextType;K=Ug,typeof Te=="object"&&Te!==null&&(K=jo(Te));var Re=v.getDerivedStateFromProps;Te=typeof Re=="function"||typeof j.getSnapshotBeforeUpdate=="function",te=m.pendingProps!==te,Te||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(te||ge!==K)&&Ome(m,j,S,K),Zu=!1;var ve=m.memoizedState;j.state=ve,yv(m,S,j,P),gv(),ge=m.memoizedState,te||ve!==ge||Zu?(typeof Re=="function"&&(bO(m,v,Re,S),ge=m.memoizedState),(le=Zu||Mme(m,v,le,S,ve,ge,K))?(Te||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(m.flags|=4194308)):(typeof j.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=S,m.memoizedState=ge),j.props=S,j.state=ge,j.context=K,S=le):(typeof j.componentDidMount=="function"&&(m.flags|=4194308),S=!1)}else{j=m.stateNode,ZM(f,m),K=m.memoizedProps,Te=xf(v,K),j.props=Te,Re=m.pendingProps,ve=j.context,ge=v.contextType,le=Ug,typeof ge=="object"&&ge!==null&&(le=jo(ge)),te=v.getDerivedStateFromProps,(ge=typeof te=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(K!==Re||ve!==le)&&Ome(m,j,S,le),Zu=!1,ve=m.memoizedState,j.state=ve,yv(m,S,j,P),gv();var ke=m.memoizedState;K!==Re||ve!==ke||Zu||f!==null&&f.dependencies!==null&&X5(f.dependencies)?(typeof te=="function"&&(bO(m,v,te,S),ke=m.memoizedState),(Te=Zu||Mme(m,v,Te,S,ve,ke,le)||f!==null&&f.dependencies!==null&&X5(f.dependencies))?(ge||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(S,ke,le),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(S,ke,le)),typeof j.componentDidUpdate=="function"&&(m.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof j.componentDidUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=1024),m.memoizedProps=S,m.memoizedState=ke),j.props=S,j.state=ke,j.context=le,S=Te):(typeof j.componentDidUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=1024),S=!1)}return j=S,f2(f,m),S=(m.flags&128)!==0,j||S?(j=m.stateNode,v=S&&typeof v.getDerivedStateFromError!="function"?null:j.render(),m.flags|=1,f!==null&&S?(m.child=Jg(m,f.child,null,P),m.child=Jg(m,null,v,P)):xo(f,m,v,P),m.memoizedState=j.state,f=m.child):f=Lc(f,m,P),f}function Gme(f,m,v,S){return lv(),m.flags|=256,xo(f,m,v,S),m.child}var kO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _O(f){return{baseLanes:f,cachePool:Lpe()}}function EO(f,m,v){return f=f!==null?f.childLanes&~v:0,m&&(f|=Ii),f}function Kme(f,m,v){var S=m.pendingProps,P=!1,j=(m.flags&128)!==0,K;if((K=j)||(K=f!==null&&f.memoizedState===null?!1:(Hn.current&2)!==0),K&&(P=!0,m.flags&=-129),K=(m.flags&32)!==0,m.flags&=-33,f===null){if(ir){if(P?td(m):rd(),ir){var te=rn,le;if(le=te){e:{for(le=te,te=Tl;le.nodeType!==8;){if(!te){te=null;break e}if(le=Us(le.nextSibling),le===null){te=null;break e}}te=le}te!==null?(m.memoizedState={dehydrated:te,treeContext:hf!==null?{id:Rc,overflow:$c}:null,retryLane:536870912,hydrationErrors:null},le=Ua(18,null,null,0),le.stateNode=te,le.return=m,m.child=le,Wo=m,rn=null,le=!0):le=!1}le||mf(m)}if(te=m.memoizedState,te!==null&&(te=te.dehydrated,te!==null))return sD(te)?m.lanes=32:m.lanes=536870912,null;Dc(m)}return te=S.children,S=S.fallback,P?(rd(),P=m.mode,te=p2({mode:"hidden",children:te},P),S=df(S,P,v,null),te.return=m,S.return=m,te.sibling=S,m.child=te,P=m.child,P.memoizedState=_O(v),P.childLanes=EO(f,K,v),m.memoizedState=kO,S):(td(m),SO(m,te))}if(le=f.memoizedState,le!==null&&(te=le.dehydrated,te!==null)){if(j)m.flags&256?(td(m),m.flags&=-257,m=CO(f,m,v)):m.memoizedState!==null?(rd(),m.child=f.child,m.flags|=128,m=null):(rd(),P=S.fallback,te=m.mode,S=p2({mode:"visible",children:S.children},te),P=df(P,te,v,null),P.flags|=2,S.return=m,P.return=m,S.sibling=P,m.child=S,Jg(m,f.child,null,v),S=m.child,S.memoizedState=_O(v),S.childLanes=EO(f,K,v),m.memoizedState=kO,m=P);else if(td(m),sD(te)){if(K=te.nextSibling&&te.nextSibling.dataset,K)var ge=K.dgst;K=ge,S=Error(o(419)),S.stack="",S.digest=K,cv({value:S,source:null,stack:null}),m=CO(f,m,v)}else if(ao||uv(f,m,v,!1),K=(v&f.childLanes)!==0,ao||K){if(K=Ar,K!==null&&(S=v&-v,S=(S&42)!==0?1:Jh(S),S=(S&(K.suspendedLanes|v))!==0?0:S,S!==0&&S!==le.retryLane))throw le.retryLane=S,Hg(f,S),Xa(K,f,S),Fme;te.data==="$?"||VO(),m=CO(f,m,v)}else te.data==="$?"?(m.flags|=192,m.child=f.child,m=null):(f=le.treeContext,rn=Us(te.nextSibling),Wo=m,ir=!0,pf=null,Tl=!1,f!==null&&(Oi[Di++]=Rc,Oi[Di++]=$c,Oi[Di++]=hf,Rc=f.id,$c=f.overflow,hf=m),m=SO(m,S.children),m.flags|=4096);return m}return P?(rd(),P=S.fallback,te=m.mode,le=f.child,ge=le.sibling,S=Nc(le,{mode:"hidden",children:S.children}),S.subtreeFlags=le.subtreeFlags&65011712,ge!==null?P=Nc(ge,P):(P=df(P,te,v,null),P.flags|=2),P.return=m,S.return=m,S.sibling=P,m.child=S,S=P,P=m.child,te=f.child.memoizedState,te===null?te=_O(v):(le=te.cachePool,le!==null?(ge=Fn._currentValue,le=le.parent!==ge?{parent:ge,pool:ge}:le):le=Lpe(),te={baseLanes:te.baseLanes|v,cachePool:le}),P.memoizedState=te,P.childLanes=EO(f,K,v),m.memoizedState=kO,S):(td(m),v=f.child,f=v.sibling,v=Nc(v,{mode:"visible",children:S.children}),v.return=m,v.sibling=null,f!==null&&(K=m.deletions,K===null?(m.deletions=[f],m.flags|=16):K.push(f)),m.child=v,m.memoizedState=null,v)}function SO(f,m){return m=p2({mode:"visible",children:m},f.mode),m.return=f,f.child=m}function p2(f,m){return f=Ua(22,f,null,m),f.lanes=0,f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},f}function CO(f,m,v){return Jg(m,f.child,null,v),f=SO(m,m.pendingProps.children),f.flags|=2,m.memoizedState=null,f}function Zme(f,m,v){f.lanes|=m;var S=f.alternate;S!==null&&(S.lanes|=m),VM(f.return,m,v)}function TO(f,m,v,S,P){var j=f.memoizedState;j===null?f.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:S,tail:v,tailMode:P}:(j.isBackwards=m,j.rendering=null,j.renderingStartTime=0,j.last=S,j.tail=v,j.tailMode=P)}function Qme(f,m,v){var S=m.pendingProps,P=S.revealOrder,j=S.tail;if(xo(f,m,S.children,v),S=Hn.current,(S&2)!==0)S=S&1|2,m.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=m.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&Zme(f,v,m);else if(f.tag===19)Zme(f,v,m);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===m)break e;for(;f.sibling===null;){if(f.return===null||f.return===m)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}S&=1}switch(z(Hn,S),P){case"forwards":for(v=m.child,P=null;v!==null;)f=v.alternate,f!==null&&u2(f)===null&&(P=v),v=v.sibling;v=P,v===null?(P=m.child,m.child=null):(P=v.sibling,v.sibling=null),TO(m,!1,P,v,j);break;case"backwards":for(v=null,P=m.child,m.child=null;P!==null;){if(f=P.alternate,f!==null&&u2(f)===null){m.child=P;break}f=P.sibling,P.sibling=v,v=P,P=f}TO(m,!0,v,null,j);break;case"together":TO(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Lc(f,m,v){if(f!==null&&(m.dependencies=f.dependencies),sd|=m.lanes,(v&m.childLanes)===0)if(f!==null){if(uv(f,m,v,!1),(v&m.childLanes)===0)return null}else return null;if(f!==null&&m.child!==f.child)throw Error(o(153));if(m.child!==null){for(f=m.child,v=Nc(f,f.pendingProps),m.child=v,v.return=m;f.sibling!==null;)f=f.sibling,v=v.sibling=Nc(f,f.pendingProps),v.return=m;v.sibling=null}return m.child}function AO(f,m){return(f.lanes&m)!==0?!0:(f=f.dependencies,!!(f!==null&&X5(f)))}function KEt(f,m,v){switch(m.tag){case 3:ee(m,m.stateNode.containerInfo),Ku(m,Fn,f.memoizedState.cache),lv();break;case 27:case 5:he(m);break;case 4:ee(m,m.stateNode.containerInfo);break;case 10:Ku(m,m.type,m.memoizedProps.value);break;case 13:var S=m.memoizedState;if(S!==null)return S.dehydrated!==null?(td(m),m.flags|=128,null):(v&m.child.childLanes)!==0?Kme(f,m,v):(td(m),f=Lc(f,m,v),f!==null?f.sibling:null);td(m);break;case 19:var P=(f.flags&128)!==0;if(S=(v&m.childLanes)!==0,S||(uv(f,m,v,!1),S=(v&m.childLanes)!==0),P){if(S)return Qme(f,m,v);m.flags|=128}if(P=m.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),z(Hn,Hn.current),S)break;return null;case 22:case 23:return m.lanes=0,qme(f,m,v);case 24:Ku(m,Fn,f.memoizedState.cache)}return Lc(f,m,v)}function Jme(f,m,v){if(f!==null)if(f.memoizedProps!==m.pendingProps)ao=!0;else{if(!AO(f,v)&&(m.flags&128)===0)return ao=!1,KEt(f,m,v);ao=(f.flags&131072)!==0}else ao=!1,ir&&(m.flags&1048576)!==0&&Npe(m,W5,m.index);switch(m.lanes=0,m.tag){case 16:e:{f=m.pendingProps;var S=m.elementType,P=S._init;if(S=P(S._payload),m.type=S,typeof S=="function")IM(S)?(f=xf(S,f),m.tag=1,m=Xme(null,m,S,f,v)):(m.tag=0,m=wO(null,m,S,f,v));else{if(S!=null){if(P=S.$$typeof,P===T){m.tag=11,m=Hme(null,m,S,f,v);break e}else if(P===$){m.tag=14,m=Ume(null,m,S,f,v);break e}}throw m=D(S)||S,Error(o(306,m,""))}}return m;case 0:return wO(f,m,m.type,m.pendingProps,v);case 1:return S=m.type,P=xf(S,m.pendingProps),Xme(f,m,S,P,v);case 3:e:{if(ee(m,m.stateNode.containerInfo),f===null)throw Error(o(387));S=m.pendingProps;var j=m.memoizedState;P=j.element,ZM(f,m),yv(m,S,null,v);var K=m.memoizedState;if(S=K.cache,Ku(m,Fn,S),S!==j.cache&&qM(m,[Fn],v,!0),gv(),S=K.element,j.isDehydrated)if(j={element:S,isDehydrated:!1,cache:K.cache},m.updateQueue.baseState=j,m.memoizedState=j,m.flags&256){m=Gme(f,m,S,v);break e}else if(S!==P){P=Pi(Error(o(424)),m),cv(P),m=Gme(f,m,S,v);break e}else{switch(f=m.stateNode.containerInfo,f.nodeType){case 9:f=f.body;break;default:f=f.nodeName==="HTML"?f.ownerDocument.body:f}for(rn=Us(f.firstChild),Wo=m,ir=!0,pf=null,Tl=!0,v=$me(m,null,S,v),m.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(lv(),S===P){m=Lc(f,m,v);break e}xo(f,m,S,v)}m=m.child}return m;case 26:return f2(f,m),f===null?(v=n0e(m.type,null,m.pendingProps,null))?m.memoizedState=v:ir||(v=m.type,f=m.pendingProps,S=A2(Z.current).createElement(v),S[On]=m,S[oo]=f,ko(S,v,f),tn(S),m.stateNode=S):m.memoizedState=n0e(m.type,f.memoizedProps,m.pendingProps,f.memoizedState),null;case 27:return he(m),f===null&&ir&&(S=m.stateNode=e0e(m.type,m.pendingProps,Z.current),Wo=m,Tl=!0,P=rn,dd(m.type)?(lD=P,rn=Us(S.firstChild)):rn=P),xo(f,m,m.pendingProps.children,v),f2(f,m),f===null&&(m.flags|=4194304),m.child;case 5:return f===null&&ir&&((P=S=rn)&&(S=E5t(S,m.type,m.pendingProps,Tl),S!==null?(m.stateNode=S,Wo=m,rn=Us(S.firstChild),Tl=!1,P=!0):P=!1),P||mf(m)),he(m),P=m.type,j=m.pendingProps,K=f!==null?f.memoizedProps:null,S=j.children,oD(P,j)?S=null:K!==null&&oD(P,K)&&(m.flags|=32),m.memoizedState!==null&&(P=nO(f,m,HEt,null,null,v),jv._currentValue=P),f2(f,m),xo(f,m,S,v),m.child;case 6:return f===null&&ir&&((f=v=rn)&&(v=S5t(v,m.pendingProps,Tl),v!==null?(m.stateNode=v,Wo=m,rn=null,f=!0):f=!1),f||mf(m)),null;case 13:return Kme(f,m,v);case 4:return ee(m,m.stateNode.containerInfo),S=m.pendingProps,f===null?m.child=Jg(m,null,S,v):xo(f,m,S,v),m.child;case 11:return Hme(f,m,m.type,m.pendingProps,v);case 7:return xo(f,m,m.pendingProps,v),m.child;case 8:return xo(f,m,m.pendingProps.children,v),m.child;case 12:return xo(f,m,m.pendingProps.children,v),m.child;case 10:return S=m.pendingProps,Ku(m,m.type,S.value),xo(f,m,S.children,v),m.child;case 9:return P=m.type._context,S=m.pendingProps.children,yf(m),P=jo(P),S=S(P),m.flags|=1,xo(f,m,S,v),m.child;case 14:return Ume(f,m,m.type,m.pendingProps,v);case 15:return Vme(f,m,m.type,m.pendingProps,v);case 19:return Qme(f,m,v);case 31:return S=m.pendingProps,v=m.mode,S={mode:S.mode,children:S.children},f===null?(v=p2(S,v),v.ref=m.ref,m.child=v,v.return=m,m=v):(v=Nc(f.child,S),v.ref=m.ref,m.child=v,v.return=m,m=v),m;case 22:return qme(f,m,v);case 24:return yf(m),S=jo(Fn),f===null?(P=XM(),P===null&&(P=Ar,j=YM(),P.pooledCache=j,j.refCount++,j!==null&&(P.pooledCacheLanes|=v),P=j),m.memoizedState={parent:S,cache:P},KM(m),Ku(m,Fn,P)):((f.lanes&v)!==0&&(ZM(f,m),yv(m,null,null,v),gv()),P=f.memoizedState,j=m.memoizedState,P.parent!==S?(P={parent:S,cache:S},m.memoizedState=P,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=P),Ku(m,Fn,S)):(S=j.cache,Ku(m,Fn,S),S!==P.cache&&qM(m,[Fn],v,!0))),xo(f,m,m.pendingProps.children,v),m.child;case 29:throw m.pendingProps}throw Error(o(156,m.tag))}function Ic(f){f.flags|=4}function ege(f,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!l0e(m)){if(m=Li.current,m!==null&&((rr&4194048)===rr?Al!==null:(rr&62914560)!==rr&&(rr&536870912)===0||m!==Al))throw pv=GM,Ipe;f.flags|=8192}}function m2(f,m){m!==null&&(f.flags|=4),f.flags&16384&&(m=f.tag!==22?_l():536870912,f.lanes|=m,n0|=m)}function Ev(f,m){if(!ir)switch(f.tailMode){case"hidden":m=f.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?f.tail=null:v.sibling=null;break;case"collapsed":v=f.tail;for(var S=null;v!==null;)v.alternate!==null&&(S=v),v=v.sibling;S===null?m||f.tail===null?f.tail=null:f.tail.sibling=null:S.sibling=null}}function Xr(f){var m=f.alternate!==null&&f.alternate.child===f.child,v=0,S=0;if(m)for(var P=f.child;P!==null;)v|=P.lanes|P.childLanes,S|=P.subtreeFlags&65011712,S|=P.flags&65011712,P.return=f,P=P.sibling;else for(P=f.child;P!==null;)v|=P.lanes|P.childLanes,S|=P.subtreeFlags,S|=P.flags,P.return=f,P=P.sibling;return f.subtreeFlags|=S,f.childLanes=v,m}function ZEt(f,m,v){var S=m.pendingProps;switch(FM(m),m.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(m),null;case 1:return Xr(m),null;case 3:return v=m.stateNode,S=null,f!==null&&(S=f.memoizedState.cache),m.memoizedState.cache!==S&&(m.flags|=2048),Mc(Fn),re(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(f===null||f.child===null)&&(sv(m)?Ic(m):f===null||f.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,Ppe())),Xr(m),null;case 26:return v=m.memoizedState,f===null?(Ic(m),v!==null?(Xr(m),ege(m,v)):(Xr(m),m.flags&=-16777217)):v?v!==f.memoizedState?(Ic(m),Xr(m),ege(m,v)):(Xr(m),m.flags&=-16777217):(f.memoizedProps!==S&&Ic(m),Xr(m),m.flags&=-16777217),null;case 27:Ce(m),v=Z.current;var P=m.type;if(f!==null&&m.stateNode!=null)f.memoizedProps!==S&&Ic(m);else{if(!S){if(m.stateNode===null)throw Error(o(166));return Xr(m),null}f=W.current,sv(m)?Rpe(m):(f=e0e(P,S,v),m.stateNode=f,Ic(m))}return Xr(m),null;case 5:if(Ce(m),v=m.type,f!==null&&m.stateNode!=null)f.memoizedProps!==S&&Ic(m);else{if(!S){if(m.stateNode===null)throw Error(o(166));return Xr(m),null}if(f=W.current,sv(m))Rpe(m);else{switch(P=A2(Z.current),f){case 1:f=P.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:f=P.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":f=P.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":f=P.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":f=P.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof S.is=="string"?P.createElement("select",{is:S.is}):P.createElement("select"),S.multiple?f.multiple=!0:S.size&&(f.size=S.size);break;default:f=typeof S.is=="string"?P.createElement(v,{is:S.is}):P.createElement(v)}}f[On]=m,f[oo]=S;e:for(P=m.child;P!==null;){if(P.tag===5||P.tag===6)f.appendChild(P.stateNode);else if(P.tag!==4&&P.tag!==27&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===m)break e;for(;P.sibling===null;){if(P.return===null||P.return===m)break e;P=P.return}P.sibling.return=P.return,P=P.sibling}m.stateNode=f;e:switch(ko(f,v,S),v){case"button":case"input":case"select":case"textarea":f=!!S.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&Ic(m)}}return Xr(m),m.flags&=-16777217,null;case 6:if(f&&m.stateNode!=null)f.memoizedProps!==S&&Ic(m);else{if(typeof S!="string"&&m.stateNode===null)throw Error(o(166));if(f=Z.current,sv(m)){if(f=m.stateNode,v=m.memoizedProps,S=null,P=Wo,P!==null)switch(P.tag){case 27:case 5:S=P.memoizedProps}f[On]=m,f=!!(f.nodeValue===v||S!==null&&S.suppressHydrationWarning===!0||Wge(f.nodeValue,v)),f||mf(m)}else f=A2(f).createTextNode(S),f[On]=m,m.stateNode=f}return Xr(m),null;case 13:if(S=m.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(P=sv(m),S!==null&&S.dehydrated!==null){if(f===null){if(!P)throw Error(o(318));if(P=m.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(o(317));P[On]=m}else lv(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Xr(m),P=!1}else P=Ppe(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=P),P=!0;if(!P)return m.flags&256?(Dc(m),m):(Dc(m),null)}if(Dc(m),(m.flags&128)!==0)return m.lanes=v,m;if(v=S!==null,f=f!==null&&f.memoizedState!==null,v){S=m.child,P=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(P=S.alternate.memoizedState.cachePool.pool);var j=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(j=S.memoizedState.cachePool.pool),j!==P&&(S.flags|=2048)}return v!==f&&v&&(m.child.flags|=8192),m2(m,m.updateQueue),Xr(m),null;case 4:return re(),f===null&&JO(m.stateNode.containerInfo),Xr(m),null;case 10:return Mc(m.type),Xr(m),null;case 19:if(Q(Hn),P=m.memoizedState,P===null)return Xr(m),null;if(S=(m.flags&128)!==0,j=P.rendering,j===null)if(S)Ev(P,!1);else{if(nn!==0||f!==null&&(f.flags&128)!==0)for(f=m.child;f!==null;){if(j=u2(f),j!==null){for(m.flags|=128,Ev(P,!1),f=j.updateQueue,m.updateQueue=f,m2(m,f),m.subtreeFlags=0,f=v,v=m.child;v!==null;)Ape(v,f),v=v.sibling;return z(Hn,Hn.current&1|2),m.child}f=f.sibling}P.tail!==null&&Xe()>b2&&(m.flags|=128,S=!0,Ev(P,!1),m.lanes=4194304)}else{if(!S)if(f=u2(j),f!==null){if(m.flags|=128,S=!0,f=f.updateQueue,m.updateQueue=f,m2(m,f),Ev(P,!0),P.tail===null&&P.tailMode==="hidden"&&!j.alternate&&!ir)return Xr(m),null}else 2*Xe()-P.renderingStartTime>b2&&v!==536870912&&(m.flags|=128,S=!0,Ev(P,!1),m.lanes=4194304);P.isBackwards?(j.sibling=m.child,m.child=j):(f=P.last,f!==null?f.sibling=j:m.child=j,P.last=j)}return P.tail!==null?(m=P.tail,P.rendering=m,P.tail=m.sibling,P.renderingStartTime=Xe(),m.sibling=null,f=Hn.current,z(Hn,S?f&1|2:f&1),m):(Xr(m),null);case 22:case 23:return Dc(m),tO(),S=m.memoizedState!==null,f!==null?f.memoizedState!==null!==S&&(m.flags|=8192):S&&(m.flags|=8192),S?(v&536870912)!==0&&(m.flags&128)===0&&(Xr(m),m.subtreeFlags&6&&(m.flags|=8192)):Xr(m),v=m.updateQueue,v!==null&&m2(m,v.retryQueue),v=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),S=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(S=m.memoizedState.cachePool.pool),S!==v&&(m.flags|=2048),f!==null&&Q(bf),null;case 24:return v=null,f!==null&&(v=f.memoizedState.cache),m.memoizedState.cache!==v&&(m.flags|=2048),Mc(Fn),Xr(m),null;case 25:return null;case 30:return null}throw Error(o(156,m.tag))}function QEt(f,m){switch(FM(m),m.tag){case 1:return f=m.flags,f&65536?(m.flags=f&-65537|128,m):null;case 3:return Mc(Fn),re(),f=m.flags,(f&65536)!==0&&(f&128)===0?(m.flags=f&-65537|128,m):null;case 26:case 27:case 5:return Ce(m),null;case 13:if(Dc(m),f=m.memoizedState,f!==null&&f.dehydrated!==null){if(m.alternate===null)throw Error(o(340));lv()}return f=m.flags,f&65536?(m.flags=f&-65537|128,m):null;case 19:return Q(Hn),null;case 4:return re(),null;case 10:return Mc(m.type),null;case 22:case 23:return Dc(m),tO(),f!==null&&Q(bf),f=m.flags,f&65536?(m.flags=f&-65537|128,m):null;case 24:return Mc(Fn),null;case 25:return null;default:return null}}function tge(f,m){switch(FM(m),m.tag){case 3:Mc(Fn),re();break;case 26:case 27:case 5:Ce(m);break;case 4:re();break;case 13:Dc(m);break;case 19:Q(Hn);break;case 10:Mc(m.type);break;case 22:case 23:Dc(m),tO(),f!==null&&Q(bf);break;case 24:Mc(Fn)}}function Sv(f,m){try{var v=m.updateQueue,S=v!==null?v.lastEffect:null;if(S!==null){var P=S.next;v=P;do{if((v.tag&f)===f){S=void 0;var j=v.create,K=v.inst;S=j(),K.destroy=S}v=v.next}while(v!==P)}}catch(te){kr(m,m.return,te)}}function nd(f,m,v){try{var S=m.updateQueue,P=S!==null?S.lastEffect:null;if(P!==null){var j=P.next;S=j;do{if((S.tag&f)===f){var K=S.inst,te=K.destroy;if(te!==void 0){K.destroy=void 0,P=m;var le=v,ge=te;try{ge()}catch(Te){kr(P,le,Te)}}}S=S.next}while(S!==j)}}catch(Te){kr(m,m.return,Te)}}function rge(f){var m=f.updateQueue;if(m!==null){var v=f.stateNode;try{Upe(m,v)}catch(S){kr(f,f.return,S)}}}function nge(f,m,v){v.props=xf(f.type,f.memoizedProps),v.state=f.memoizedState;try{v.componentWillUnmount()}catch(S){kr(f,m,S)}}function Cv(f,m){try{var v=f.ref;if(v!==null){switch(f.tag){case 26:case 27:case 5:var S=f.stateNode;break;case 30:S=f.stateNode;break;default:S=f.stateNode}typeof v=="function"?f.refCleanup=v(S):v.current=S}}catch(P){kr(f,m,P)}}function Nl(f,m){var v=f.ref,S=f.refCleanup;if(v!==null)if(typeof S=="function")try{S()}catch(P){kr(f,m,P)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(P){kr(f,m,P)}else v.current=null}function oge(f){var m=f.type,v=f.memoizedProps,S=f.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":v.autoFocus&&S.focus();break e;case"img":v.src?S.src=v.src:v.srcSet&&(S.srcset=v.srcSet)}}catch(P){kr(f,f.return,P)}}function NO(f,m,v){try{var S=f.stateNode;v5t(S,f.type,v,m),S[oo]=m}catch(P){kr(f,f.return,P)}}function age(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&dd(f.type)||f.tag===4}function RO(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||age(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&dd(f.type)||f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function $O(f,m,v){var S=f.tag;if(S===5||S===6)f=f.stateNode,m?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(f,m):(m=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,m.appendChild(f),v=v._reactRootContainer,v!=null||m.onclick!==null||(m.onclick=T2));else if(S!==4&&(S===27&&dd(f.type)&&(v=f.stateNode,m=null),f=f.child,f!==null))for($O(f,m,v),f=f.sibling;f!==null;)$O(f,m,v),f=f.sibling}function g2(f,m,v){var S=f.tag;if(S===5||S===6)f=f.stateNode,m?v.insertBefore(f,m):v.appendChild(f);else if(S!==4&&(S===27&&dd(f.type)&&(v=f.stateNode),f=f.child,f!==null))for(g2(f,m,v),f=f.sibling;f!==null;)g2(f,m,v),f=f.sibling}function ige(f){var m=f.stateNode,v=f.memoizedProps;try{for(var S=f.type,P=m.attributes;P.length;)m.removeAttributeNode(P[0]);ko(m,S,v),m[On]=f,m[oo]=v}catch(j){kr(f,f.return,j)}}var zc=!1,hn=!1,PO=!1,sge=typeof WeakSet=="function"?WeakSet:Set,io=null;function JEt(f,m){if(f=f.containerInfo,rD=O2,f=bpe(f),RM(f)){if("selectionStart"in f)var v={start:f.selectionStart,end:f.selectionEnd};else e:{v=(v=f.ownerDocument)&&v.defaultView||window;var S=v.getSelection&&v.getSelection();if(S&&S.rangeCount!==0){v=S.anchorNode;var P=S.anchorOffset,j=S.focusNode;S=S.focusOffset;try{v.nodeType,j.nodeType}catch{v=null;break e}var K=0,te=-1,le=-1,ge=0,Te=0,Re=f,ve=null;t:for(;;){for(var ke;Re!==v||P!==0&&Re.nodeType!==3||(te=K+P),Re!==j||S!==0&&Re.nodeType!==3||(le=K+S),Re.nodeType===3&&(K+=Re.nodeValue.length),(ke=Re.firstChild)!==null;)ve=Re,Re=ke;for(;;){if(Re===f)break t;if(ve===v&&++ge===P&&(te=K),ve===j&&++Te===S&&(le=K),(ke=Re.nextSibling)!==null)break;Re=ve,ve=Re.parentNode}Re=ke}v=te===-1||le===-1?null:{start:te,end:le}}else v=null}v=v||{start:0,end:0}}else v=null;for(nD={focusedElem:f,selectionRange:v},O2=!1,io=m;io!==null;)if(m=io,f=m.child,(m.subtreeFlags&1024)!==0&&f!==null)f.return=m,io=f;else for(;io!==null;){switch(m=io,j=m.alternate,f=m.flags,m.tag){case 0:break;case 11:case 15:break;case 1:if((f&1024)!==0&&j!==null){f=void 0,v=m,P=j.memoizedProps,j=j.memoizedState,S=v.stateNode;try{var xt=xf(v.type,P,v.elementType===v.type);f=S.getSnapshotBeforeUpdate(xt,j),S.__reactInternalSnapshotBeforeUpdate=f}catch(pt){kr(v,v.return,pt)}}break;case 3:if((f&1024)!==0){if(f=m.stateNode.containerInfo,v=f.nodeType,v===9)iD(f);else if(v===1)switch(f.nodeName){case"HEAD":case"HTML":case"BODY":iD(f);break;default:f.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error(o(163))}if(f=m.sibling,f!==null){f.return=m.return,io=f;break}io=m.return}}function lge(f,m,v){var S=v.flags;switch(v.tag){case 0:case 11:case 15:od(f,v),S&4&&Sv(5,v);break;case 1:if(od(f,v),S&4)if(f=v.stateNode,m===null)try{f.componentDidMount()}catch(K){kr(v,v.return,K)}else{var P=xf(v.type,m.memoizedProps);m=m.memoizedState;try{f.componentDidUpdate(P,m,f.__reactInternalSnapshotBeforeUpdate)}catch(K){kr(v,v.return,K)}}S&64&&rge(v),S&512&&Cv(v,v.return);break;case 3:if(od(f,v),S&64&&(f=v.updateQueue,f!==null)){if(m=null,v.child!==null)switch(v.child.tag){case 27:case 5:m=v.child.stateNode;break;case 1:m=v.child.stateNode}try{Upe(f,m)}catch(K){kr(v,v.return,K)}}break;case 27:m===null&&S&4&&ige(v);case 26:case 5:od(f,v),m===null&&S&4&&oge(v),S&512&&Cv(v,v.return);break;case 12:od(f,v);break;case 13:od(f,v),S&4&&dge(f,v),S&64&&(f=v.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(v=l5t.bind(null,v),C5t(f,v))));break;case 22:if(S=v.memoizedState!==null||zc,!S){m=m!==null&&m.memoizedState!==null||hn,P=zc;var j=hn;zc=S,(hn=m)&&!j?ad(f,v,(v.subtreeFlags&8772)!==0):od(f,v),zc=P,hn=j}break;case 30:break;default:od(f,v)}}function cge(f){var m=f.alternate;m!==null&&(f.alternate=null,cge(m)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(m=f.stateNode,m!==null&&rf(m)),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}var Hr=null,ga=!1;function jc(f,m,v){for(v=v.child;v!==null;)uge(f,m,v),v=v.sibling}function uge(f,m,v){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(_e,v)}catch{}switch(v.tag){case 26:hn||Nl(v,m),jc(f,m,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:hn||Nl(v,m);var S=Hr,P=ga;dd(v.type)&&(Hr=v.stateNode,ga=!1),jc(f,m,v),Dv(v.stateNode),Hr=S,ga=P;break;case 5:hn||Nl(v,m);case 6:if(S=Hr,P=ga,Hr=null,jc(f,m,v),Hr=S,ga=P,Hr!==null)if(ga)try{(Hr.nodeType===9?Hr.body:Hr.nodeName==="HTML"?Hr.ownerDocument.body:Hr).removeChild(v.stateNode)}catch(j){kr(v,m,j)}else try{Hr.removeChild(v.stateNode)}catch(j){kr(v,m,j)}break;case 18:Hr!==null&&(ga?(f=Hr,Qge(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,v.stateNode),Uv(f)):Qge(Hr,v.stateNode));break;case 4:S=Hr,P=ga,Hr=v.stateNode.containerInfo,ga=!0,jc(f,m,v),Hr=S,ga=P;break;case 0:case 11:case 14:case 15:hn||nd(2,v,m),hn||nd(4,v,m),jc(f,m,v);break;case 1:hn||(Nl(v,m),S=v.stateNode,typeof S.componentWillUnmount=="function"&&nge(v,m,S)),jc(f,m,v);break;case 21:jc(f,m,v);break;case 22:hn=(S=hn)||v.memoizedState!==null,jc(f,m,v),hn=S;break;default:jc(f,m,v)}}function dge(f,m){if(m.memoizedState===null&&(f=m.alternate,f!==null&&(f=f.memoizedState,f!==null&&(f=f.dehydrated,f!==null))))try{Uv(f)}catch(v){kr(m,m.return,v)}}function e5t(f){switch(f.tag){case 13:case 19:var m=f.stateNode;return m===null&&(m=f.stateNode=new sge),m;case 22:return f=f.stateNode,m=f._retryCache,m===null&&(m=f._retryCache=new sge),m;default:throw Error(o(435,f.tag))}}function MO(f,m){var v=e5t(f);m.forEach(function(S){var P=c5t.bind(null,f,S);v.has(S)||(v.add(S),S.then(P,P))})}function Va(f,m){var v=m.deletions;if(v!==null)for(var S=0;S<v.length;S++){var P=v[S],j=f,K=m,te=K;e:for(;te!==null;){switch(te.tag){case 27:if(dd(te.type)){Hr=te.stateNode,ga=!1;break e}break;case 5:Hr=te.stateNode,ga=!1;break e;case 3:case 4:Hr=te.stateNode.containerInfo,ga=!0;break e}te=te.return}if(Hr===null)throw Error(o(160));uge(j,K,P),Hr=null,ga=!1,j=P.alternate,j!==null&&(j.return=null),P.return=null}if(m.subtreeFlags&13878)for(m=m.child;m!==null;)hge(m,f),m=m.sibling}var Hs=null;function hge(f,m){var v=f.alternate,S=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:Va(m,f),qa(f),S&4&&(nd(3,f,f.return),Sv(3,f),nd(5,f,f.return));break;case 1:Va(m,f),qa(f),S&512&&(hn||v===null||Nl(v,v.return)),S&64&&zc&&(f=f.updateQueue,f!==null&&(S=f.callbacks,S!==null&&(v=f.shared.hiddenCallbacks,f.shared.hiddenCallbacks=v===null?S:v.concat(S))));break;case 26:var P=Hs;if(Va(m,f),qa(f),S&512&&(hn||v===null||Nl(v,v.return)),S&4){var j=v!==null?v.memoizedState:null;if(S=f.memoizedState,v===null)if(S===null)if(f.stateNode===null){e:{S=f.type,v=f.memoizedProps,P=P.ownerDocument||P;t:switch(S){case"title":j=P.getElementsByTagName("title")[0],(!j||j[Tc]||j[On]||j.namespaceURI==="http://www.w3.org/2000/svg"||j.hasAttribute("itemprop"))&&(j=P.createElement(S),P.head.insertBefore(j,P.querySelector("head > title"))),ko(j,S,v),j[On]=f,tn(j),S=j;break e;case"link":var K=i0e("link","href",P).get(S+(v.href||""));if(K){for(var te=0;te<K.length;te++)if(j=K[te],j.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&j.getAttribute("rel")===(v.rel==null?null:v.rel)&&j.getAttribute("title")===(v.title==null?null:v.title)&&j.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){K.splice(te,1);break t}}j=P.createElement(S),ko(j,S,v),P.head.appendChild(j);break;case"meta":if(K=i0e("meta","content",P).get(S+(v.content||""))){for(te=0;te<K.length;te++)if(j=K[te],j.getAttribute("content")===(v.content==null?null:""+v.content)&&j.getAttribute("name")===(v.name==null?null:v.name)&&j.getAttribute("property")===(v.property==null?null:v.property)&&j.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&j.getAttribute("charset")===(v.charSet==null?null:v.charSet)){K.splice(te,1);break t}}j=P.createElement(S),ko(j,S,v),P.head.appendChild(j);break;default:throw Error(o(468,S))}j[On]=f,tn(j),S=j}f.stateNode=S}else s0e(P,f.type,f.stateNode);else f.stateNode=a0e(P,S,f.memoizedProps);else j!==S?(j===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):j.count--,S===null?s0e(P,f.type,f.stateNode):a0e(P,S,f.memoizedProps)):S===null&&f.stateNode!==null&&NO(f,f.memoizedProps,v.memoizedProps)}break;case 27:Va(m,f),qa(f),S&512&&(hn||v===null||Nl(v,v.return)),v!==null&&S&4&&NO(f,f.memoizedProps,v.memoizedProps);break;case 5:if(Va(m,f),qa(f),S&512&&(hn||v===null||Nl(v,v.return)),f.flags&32){P=f.stateNode;try{Dg(P,"")}catch(ke){kr(f,f.return,ke)}}S&4&&f.stateNode!=null&&(P=f.memoizedProps,NO(f,P,v!==null?v.memoizedProps:P)),S&1024&&(PO=!0);break;case 6:if(Va(m,f),qa(f),S&4){if(f.stateNode===null)throw Error(o(162));S=f.memoizedProps,v=f.stateNode;try{v.nodeValue=S}catch(ke){kr(f,f.return,ke)}}break;case 3:if($2=null,P=Hs,Hs=N2(m.containerInfo),Va(m,f),Hs=P,qa(f),S&4&&v!==null&&v.memoizedState.isDehydrated)try{Uv(m.containerInfo)}catch(ke){kr(f,f.return,ke)}PO&&(PO=!1,fge(f));break;case 4:S=Hs,Hs=N2(f.stateNode.containerInfo),Va(m,f),qa(f),Hs=S;break;case 12:Va(m,f),qa(f);break;case 13:Va(m,f),qa(f),f.child.flags&8192&&f.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(jO=Xe()),S&4&&(S=f.updateQueue,S!==null&&(f.updateQueue=null,MO(f,S)));break;case 22:P=f.memoizedState!==null;var le=v!==null&&v.memoizedState!==null,ge=zc,Te=hn;if(zc=ge||P,hn=Te||le,Va(m,f),hn=Te,zc=ge,qa(f),S&8192)e:for(m=f.stateNode,m._visibility=P?m._visibility&-2:m._visibility|1,P&&(v===null||le||zc||hn||wf(f)),v=null,m=f;;){if(m.tag===5||m.tag===26){if(v===null){le=v=m;try{if(j=le.stateNode,P)K=j.style,typeof K.setProperty=="function"?K.setProperty("display","none","important"):K.display="none";else{te=le.stateNode;var Re=le.memoizedProps.style,ve=Re!=null&&Re.hasOwnProperty("display")?Re.display:null;te.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(ke){kr(le,le.return,ke)}}}else if(m.tag===6){if(v===null){le=m;try{le.stateNode.nodeValue=P?"":le.memoizedProps}catch(ke){kr(le,le.return,ke)}}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===f)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===f)break e;for(;m.sibling===null;){if(m.return===null||m.return===f)break e;v===m&&(v=null),m=m.return}v===m&&(v=null),m.sibling.return=m.return,m=m.sibling}S&4&&(S=f.updateQueue,S!==null&&(v=S.retryQueue,v!==null&&(S.retryQueue=null,MO(f,v))));break;case 19:Va(m,f),qa(f),S&4&&(S=f.updateQueue,S!==null&&(f.updateQueue=null,MO(f,S)));break;case 30:break;case 21:break;default:Va(m,f),qa(f)}}function qa(f){var m=f.flags;if(m&2){try{for(var v,S=f.return;S!==null;){if(age(S)){v=S;break}S=S.return}if(v==null)throw Error(o(160));switch(v.tag){case 27:var P=v.stateNode,j=RO(f);g2(f,j,P);break;case 5:var K=v.stateNode;v.flags&32&&(Dg(K,""),v.flags&=-33);var te=RO(f);g2(f,te,K);break;case 3:case 4:var le=v.stateNode.containerInfo,ge=RO(f);$O(f,ge,le);break;default:throw Error(o(161))}}catch(Te){kr(f,f.return,Te)}f.flags&=-3}m&4096&&(f.flags&=-4097)}function fge(f){if(f.subtreeFlags&1024)for(f=f.child;f!==null;){var m=f;fge(m),m.tag===5&&m.flags&1024&&m.stateNode.reset(),f=f.sibling}}function od(f,m){if(m.subtreeFlags&8772)for(m=m.child;m!==null;)lge(f,m.alternate,m),m=m.sibling}function wf(f){for(f=f.child;f!==null;){var m=f;switch(m.tag){case 0:case 11:case 14:case 15:nd(4,m,m.return),wf(m);break;case 1:Nl(m,m.return);var v=m.stateNode;typeof v.componentWillUnmount=="function"&&nge(m,m.return,v),wf(m);break;case 27:Dv(m.stateNode);case 26:case 5:Nl(m,m.return),wf(m);break;case 22:m.memoizedState===null&&wf(m);break;case 30:wf(m);break;default:wf(m)}f=f.sibling}}function ad(f,m,v){for(v=v&&(m.subtreeFlags&8772)!==0,m=m.child;m!==null;){var S=m.alternate,P=f,j=m,K=j.flags;switch(j.tag){case 0:case 11:case 15:ad(P,j,v),Sv(4,j);break;case 1:if(ad(P,j,v),S=j,P=S.stateNode,typeof P.componentDidMount=="function")try{P.componentDidMount()}catch(ge){kr(S,S.return,ge)}if(S=j,P=S.updateQueue,P!==null){var te=S.stateNode;try{var le=P.shared.hiddenCallbacks;if(le!==null)for(P.shared.hiddenCallbacks=null,P=0;P<le.length;P++)Hpe(le[P],te)}catch(ge){kr(S,S.return,ge)}}v&&K&64&&rge(j),Cv(j,j.return);break;case 27:ige(j);case 26:case 5:ad(P,j,v),v&&S===null&&K&4&&oge(j),Cv(j,j.return);break;case 12:ad(P,j,v);break;case 13:ad(P,j,v),v&&K&4&&dge(P,j);break;case 22:j.memoizedState===null&&ad(P,j,v),Cv(j,j.return);break;case 30:break;default:ad(P,j,v)}m=m.sibling}}function OO(f,m){var v=null;f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),f=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(f=m.memoizedState.cachePool.pool),f!==v&&(f!=null&&f.refCount++,v!=null&&dv(v))}function DO(f,m){f=null,m.alternate!==null&&(f=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==f&&(m.refCount++,f!=null&&dv(f))}function Rl(f,m,v,S){if(m.subtreeFlags&10256)for(m=m.child;m!==null;)pge(f,m,v,S),m=m.sibling}function pge(f,m,v,S){var P=m.flags;switch(m.tag){case 0:case 11:case 15:Rl(f,m,v,S),P&2048&&Sv(9,m);break;case 1:Rl(f,m,v,S);break;case 3:Rl(f,m,v,S),P&2048&&(f=null,m.alternate!==null&&(f=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==f&&(m.refCount++,f!=null&&dv(f)));break;case 12:if(P&2048){Rl(f,m,v,S),f=m.stateNode;try{var j=m.memoizedProps,K=j.id,te=j.onPostCommit;typeof te=="function"&&te(K,m.alternate===null?"mount":"update",f.passiveEffectDuration,-0)}catch(le){kr(m,m.return,le)}}else Rl(f,m,v,S);break;case 13:Rl(f,m,v,S);break;case 23:break;case 22:j=m.stateNode,K=m.alternate,m.memoizedState!==null?j._visibility&2?Rl(f,m,v,S):Tv(f,m):j._visibility&2?Rl(f,m,v,S):(j._visibility|=2,e0(f,m,v,S,(m.subtreeFlags&10256)!==0)),P&2048&&OO(K,m);break;case 24:Rl(f,m,v,S),P&2048&&DO(m.alternate,m);break;default:Rl(f,m,v,S)}}function e0(f,m,v,S,P){for(P=P&&(m.subtreeFlags&10256)!==0,m=m.child;m!==null;){var j=f,K=m,te=v,le=S,ge=K.flags;switch(K.tag){case 0:case 11:case 15:e0(j,K,te,le,P),Sv(8,K);break;case 23:break;case 22:var Te=K.stateNode;K.memoizedState!==null?Te._visibility&2?e0(j,K,te,le,P):Tv(j,K):(Te._visibility|=2,e0(j,K,te,le,P)),P&&ge&2048&&OO(K.alternate,K);break;case 24:e0(j,K,te,le,P),P&&ge&2048&&DO(K.alternate,K);break;default:e0(j,K,te,le,P)}m=m.sibling}}function Tv(f,m){if(m.subtreeFlags&10256)for(m=m.child;m!==null;){var v=f,S=m,P=S.flags;switch(S.tag){case 22:Tv(v,S),P&2048&&OO(S.alternate,S);break;case 24:Tv(v,S),P&2048&&DO(S.alternate,S);break;default:Tv(v,S)}m=m.sibling}}var Av=8192;function t0(f){if(f.subtreeFlags&Av)for(f=f.child;f!==null;)mge(f),f=f.sibling}function mge(f){switch(f.tag){case 26:t0(f),f.flags&Av&&f.memoizedState!==null&&j5t(Hs,f.memoizedState,f.memoizedProps);break;case 5:t0(f);break;case 3:case 4:var m=Hs;Hs=N2(f.stateNode.containerInfo),t0(f),Hs=m;break;case 22:f.memoizedState===null&&(m=f.alternate,m!==null&&m.memoizedState!==null?(m=Av,Av=16777216,t0(f),Av=m):t0(f));break;default:t0(f)}}function gge(f){var m=f.alternate;if(m!==null&&(f=m.child,f!==null)){m.child=null;do m=f.sibling,f.sibling=null,f=m;while(f!==null)}}function Nv(f){var m=f.deletions;if((f.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var S=m[v];io=S,bge(S,f)}gge(f)}if(f.subtreeFlags&10256)for(f=f.child;f!==null;)yge(f),f=f.sibling}function yge(f){switch(f.tag){case 0:case 11:case 15:Nv(f),f.flags&2048&&nd(9,f,f.return);break;case 3:Nv(f);break;case 12:Nv(f);break;case 22:var m=f.stateNode;f.memoizedState!==null&&m._visibility&2&&(f.return===null||f.return.tag!==13)?(m._visibility&=-3,y2(f)):Nv(f);break;default:Nv(f)}}function y2(f){var m=f.deletions;if((f.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var S=m[v];io=S,bge(S,f)}gge(f)}for(f=f.child;f!==null;){switch(m=f,m.tag){case 0:case 11:case 15:nd(8,m,m.return),y2(m);break;case 22:v=m.stateNode,v._visibility&2&&(v._visibility&=-3,y2(m));break;default:y2(m)}f=f.sibling}}function bge(f,m){for(;io!==null;){var v=io;switch(v.tag){case 0:case 11:case 15:nd(8,v,m);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var S=v.memoizedState.cachePool.pool;S!=null&&S.refCount++}break;case 24:dv(v.memoizedState.cache)}if(S=v.child,S!==null)S.return=v,io=S;else e:for(v=f;io!==null;){S=io;var P=S.sibling,j=S.return;if(cge(S),S===v){io=null;break e}if(P!==null){P.return=j,io=P;break e}io=j}}}var t5t={getCacheForType:function(f){var m=jo(Fn),v=m.data.get(f);return v===void 0&&(v=f(),m.data.set(f,v)),v}},r5t=typeof WeakMap=="function"?WeakMap:Map,dr=0,Ar=null,Xt=null,rr=0,hr=0,Ya=null,id=!1,r0=!1,LO=!1,Bc=0,nn=0,sd=0,kf=0,IO=0,Ii=0,n0=0,Rv=null,ya=null,zO=!1,jO=0,b2=1/0,v2=null,ld=null,wo=0,cd=null,o0=null,a0=0,BO=0,FO=null,vge=null,$v=0,HO=null;function Wa(){if((dr&2)!==0&&rr!==0)return rr&-rr;if(L.T!==null){var f=Yg;return f!==0?f:GO()}return Cg()}function xge(){Ii===0&&(Ii=(rr&536870912)===0||ir?fa():536870912);var f=Li.current;return f!==null&&(f.flags|=32),Ii}function Xa(f,m,v){(f===Ar&&(hr===2||hr===9)||f.cancelPendingCommit!==null)&&(i0(f,0),ud(f,rr,Ii,!1)),Cc(f,v),((dr&2)===0||f!==Ar)&&(f===Ar&&((dr&2)===0&&(kf|=v),nn===4&&ud(f,rr,Ii,!1)),$l(f))}function wge(f,m,v){if((dr&6)!==0)throw Error(o(327));var S=!v&&(m&124)===0&&(m&f.expiredLanes)===0||no(f,m),P=S?a5t(f,m):qO(f,m,!0),j=S;do{if(P===0){r0&&!S&&ud(f,m,0,!1);break}else{if(v=f.current.alternate,j&&!n5t(v)){P=qO(f,m,!1),j=!1;continue}if(P===2){if(j=m,f.errorRecoveryDisabledLanes&j)var K=0;else K=f.pendingLanes&-536870913,K=K!==0?K:K&536870912?536870912:0;if(K!==0){m=K;e:{var te=f;P=Rv;var le=te.current.memoizedState.isDehydrated;if(le&&(i0(te,K).flags|=256),K=qO(te,K,!1),K!==2){if(LO&&!le){te.errorRecoveryDisabledLanes|=j,kf|=j,P=4;break e}j=ya,ya=P,j!==null&&(ya===null?ya=j:ya.push.apply(ya,j))}P=K}if(j=!1,P!==2)continue}}if(P===1){i0(f,0),ud(f,m,0,!0);break}e:{switch(S=f,j=P,j){case 0:case 1:throw Error(o(345));case 4:if((m&4194048)!==m)break;case 6:ud(S,m,Ii,!id);break e;case 2:ya=null;break;case 3:case 5:break;default:throw Error(o(329))}if((m&62914560)===m&&(P=jO+300-Xe(),10<P)){if(ud(S,m,Ii,!id),Fr(S,0,!0)!==0)break e;S.timeoutHandle=Kge(kge.bind(null,S,v,ya,v2,zO,m,Ii,kf,n0,id,j,2,-0,0),P);break e}kge(S,v,ya,v2,zO,m,Ii,kf,n0,id,j,0,-0,0)}}break}while(!0);$l(f)}function kge(f,m,v,S,P,j,K,te,le,ge,Te,Re,ve,ke){if(f.timeoutHandle=-1,Re=m.subtreeFlags,(Re&8192||(Re&16785408)===16785408)&&(zv={stylesheets:null,count:0,unsuspend:z5t},mge(m),Re=B5t(),Re!==null)){f.cancelPendingCommit=Re(Nge.bind(null,f,m,j,v,S,P,K,te,le,Te,1,ve,ke)),ud(f,j,K,!ge);return}Nge(f,m,j,v,S,P,K,te,le)}function n5t(f){for(var m=f;;){var v=m.tag;if((v===0||v===11||v===15)&&m.flags&16384&&(v=m.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var S=0;S<v.length;S++){var P=v[S],j=P.getSnapshot;P=P.value;try{if(!Ha(j(),P))return!1}catch{return!1}}if(v=m.child,m.subtreeFlags&16384&&v!==null)v.return=m,m=v;else{if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function ud(f,m,v,S){m&=~IO,m&=~kf,f.suspendedLanes|=m,f.pingedLanes&=~m,S&&(f.warmLanes|=m),S=f.expirationTimes;for(var P=m;0<P;){var j=31-at(P),K=1<<j;S[j]=-1,P&=~K}v!==0&&Sg(f,v,m)}function x2(){return(dr&6)===0?(Pv(0),!1):!0}function UO(){if(Xt!==null){if(hr===0)var f=Xt.return;else f=Xt,Pc=gf=null,iO(f),Qg=null,kv=0,f=Xt;for(;f!==null;)tge(f.alternate,f),f=f.return;Xt=null}}function i0(f,m){var v=f.timeoutHandle;v!==-1&&(f.timeoutHandle=-1,w5t(v)),v=f.cancelPendingCommit,v!==null&&(f.cancelPendingCommit=null,v()),UO(),Ar=f,Xt=v=Nc(f.current,null),rr=m,hr=0,Ya=null,id=!1,r0=no(f,m),LO=!1,n0=Ii=IO=kf=sd=nn=0,ya=Rv=null,zO=!1,(m&8)!==0&&(m|=m&32);var S=f.entangledLanes;if(S!==0)for(f=f.entanglements,S&=m;0<S;){var P=31-at(S),j=1<<P;m|=f[P],S&=~j}return Bc=m,H5(),v}function _ge(f,m){Bt=null,L.H=s2,m===fv||m===Z5?(m=Bpe(),hr=3):m===Ipe?(m=Bpe(),hr=4):hr=m===Fme?8:m!==null&&typeof m=="object"&&typeof m.then=="function"?6:1,Ya=m,Xt===null&&(nn=1,h2(f,Pi(m,f.current)))}function Ege(){var f=L.H;return L.H=s2,f===null?s2:f}function Sge(){var f=L.A;return L.A=t5t,f}function VO(){nn=4,id||(rr&4194048)!==rr&&Li.current!==null||(r0=!0),(sd&134217727)===0&&(kf&134217727)===0||Ar===null||ud(Ar,rr,Ii,!1)}function qO(f,m,v){var S=dr;dr|=2;var P=Ege(),j=Sge();(Ar!==f||rr!==m)&&(v2=null,i0(f,m)),m=!1;var K=nn;e:do try{if(hr!==0&&Xt!==null){var te=Xt,le=Ya;switch(hr){case 8:UO(),K=6;break e;case 3:case 2:case 9:case 6:Li.current===null&&(m=!0);var ge=hr;if(hr=0,Ya=null,s0(f,te,le,ge),v&&r0){K=0;break e}break;default:ge=hr,hr=0,Ya=null,s0(f,te,le,ge)}}o5t(),K=nn;break}catch(Te){_ge(f,Te)}while(!0);return m&&f.shellSuspendCounter++,Pc=gf=null,dr=S,L.H=P,L.A=j,Xt===null&&(Ar=null,rr=0,H5()),K}function o5t(){for(;Xt!==null;)Cge(Xt)}function a5t(f,m){var v=dr;dr|=2;var S=Ege(),P=Sge();Ar!==f||rr!==m?(v2=null,b2=Xe()+500,i0(f,m)):r0=no(f,m);e:do try{if(hr!==0&&Xt!==null){m=Xt;var j=Ya;t:switch(hr){case 1:hr=0,Ya=null,s0(f,m,j,1);break;case 2:case 9:if(zpe(j)){hr=0,Ya=null,Tge(m);break}m=function(){hr!==2&&hr!==9||Ar!==f||(hr=7),$l(f)},j.then(m,m);break e;case 3:hr=7;break e;case 4:hr=5;break e;case 7:zpe(j)?(hr=0,Ya=null,Tge(m)):(hr=0,Ya=null,s0(f,m,j,7));break;case 5:var K=null;switch(Xt.tag){case 26:K=Xt.memoizedState;case 5:case 27:var te=Xt;if(!K||l0e(K)){hr=0,Ya=null;var le=te.sibling;if(le!==null)Xt=le;else{var ge=te.return;ge!==null?(Xt=ge,w2(ge)):Xt=null}break t}}hr=0,Ya=null,s0(f,m,j,5);break;case 6:hr=0,Ya=null,s0(f,m,j,6);break;case 8:UO(),nn=6;break e;default:throw Error(o(462))}}i5t();break}catch(Te){_ge(f,Te)}while(!0);return Pc=gf=null,L.H=S,L.A=P,dr=v,Xt!==null?0:(Ar=null,rr=0,H5(),nn)}function i5t(){for(;Xt!==null&&!De();)Cge(Xt)}function Cge(f){var m=Jme(f.alternate,f,Bc);f.memoizedProps=f.pendingProps,m===null?w2(f):Xt=m}function Tge(f){var m=f,v=m.alternate;switch(m.tag){case 15:case 0:m=Wme(v,m,m.pendingProps,m.type,void 0,rr);break;case 11:m=Wme(v,m,m.pendingProps,m.type.render,m.ref,rr);break;case 5:iO(m);default:tge(v,m),m=Xt=Ape(m,Bc),m=Jme(v,m,Bc)}f.memoizedProps=f.pendingProps,m===null?w2(f):Xt=m}function s0(f,m,v,S){Pc=gf=null,iO(m),Qg=null,kv=0;var P=m.return;try{if(GEt(f,P,m,v,rr)){nn=1,h2(f,Pi(v,f.current)),Xt=null;return}}catch(j){if(P!==null)throw Xt=P,j;nn=1,h2(f,Pi(v,f.current)),Xt=null;return}m.flags&32768?(ir||S===1?f=!0:r0||(rr&536870912)!==0?f=!1:(id=f=!0,(S===2||S===9||S===3||S===6)&&(S=Li.current,S!==null&&S.tag===13&&(S.flags|=16384))),Age(m,f)):w2(m)}function w2(f){var m=f;do{if((m.flags&32768)!==0){Age(m,id);return}f=m.return;var v=ZEt(m.alternate,m,Bc);if(v!==null){Xt=v;return}if(m=m.sibling,m!==null){Xt=m;return}Xt=m=f}while(m!==null);nn===0&&(nn=5)}function Age(f,m){do{var v=QEt(f.alternate,f);if(v!==null){v.flags&=32767,Xt=v;return}if(v=f.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!m&&(f=f.sibling,f!==null)){Xt=f;return}Xt=f=v}while(f!==null);nn=6,Xt=null}function Nge(f,m,v,S,P,j,K,te,le){f.cancelPendingCommit=null;do k2();while(wo!==0);if((dr&6)!==0)throw Error(o(327));if(m!==null){if(m===f.current)throw Error(o(177));if(j=m.lanes|m.childLanes,j|=DM,Ub(f,v,j,K,te,le),f===Ar&&(Xt=Ar=null,rr=0),o0=m,cd=f,a0=v,BO=j,FO=P,vge=S,(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?(f.callbackNode=null,f.callbackPriority=0,u5t(Ke,function(){return Oge(),null})):(f.callbackNode=null,f.callbackPriority=0),S=(m.flags&13878)!==0,(m.subtreeFlags&13878)!==0||S){S=L.T,L.T=null,P=U.p,U.p=2,K=dr,dr|=4;try{JEt(f,m,v)}finally{dr=K,U.p=P,L.T=S}}wo=1,Rge(),$ge(),Pge()}}function Rge(){if(wo===1){wo=0;var f=cd,m=o0,v=(m.flags&13878)!==0;if((m.subtreeFlags&13878)!==0||v){v=L.T,L.T=null;var S=U.p;U.p=2;var P=dr;dr|=4;try{hge(m,f);var j=nD,K=bpe(f.containerInfo),te=j.focusedElem,le=j.selectionRange;if(K!==te&&te&&te.ownerDocument&&ype(te.ownerDocument.documentElement,te)){if(le!==null&&RM(te)){var ge=le.start,Te=le.end;if(Te===void 0&&(Te=ge),"selectionStart"in te)te.selectionStart=ge,te.selectionEnd=Math.min(Te,te.value.length);else{var Re=te.ownerDocument||document,ve=Re&&Re.defaultView||window;if(ve.getSelection){var ke=ve.getSelection(),xt=te.textContent.length,pt=Math.min(le.start,xt),vr=le.end===void 0?pt:Math.min(le.end,xt);!ke.extend&&pt>vr&&(K=vr,vr=pt,pt=K);var fe=gpe(te,pt),ue=gpe(te,vr);if(fe&&ue&&(ke.rangeCount!==1||ke.anchorNode!==fe.node||ke.anchorOffset!==fe.offset||ke.focusNode!==ue.node||ke.focusOffset!==ue.offset)){var pe=Re.createRange();pe.setStart(fe.node,fe.offset),ke.removeAllRanges(),pt>vr?(ke.addRange(pe),ke.extend(ue.node,ue.offset)):(pe.setEnd(ue.node,ue.offset),ke.addRange(pe))}}}}for(Re=[],ke=te;ke=ke.parentNode;)ke.nodeType===1&&Re.push({element:ke,left:ke.scrollLeft,top:ke.scrollTop});for(typeof te.focus=="function"&&te.focus(),te=0;te<Re.length;te++){var Ae=Re[te];Ae.element.scrollLeft=Ae.left,Ae.element.scrollTop=Ae.top}}O2=!!rD,nD=rD=null}finally{dr=P,U.p=S,L.T=v}}f.current=m,wo=2}}function $ge(){if(wo===2){wo=0;var f=cd,m=o0,v=(m.flags&8772)!==0;if((m.subtreeFlags&8772)!==0||v){v=L.T,L.T=null;var S=U.p;U.p=2;var P=dr;dr|=4;try{lge(f,m.alternate,m)}finally{dr=P,U.p=S,L.T=v}}wo=3}}function Pge(){if(wo===4||wo===3){wo=0,Ge();var f=cd,m=o0,v=a0,S=vge;(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?wo=5:(wo=0,o0=cd=null,Mge(f,f.pendingLanes));var P=f.pendingLanes;if(P===0&&(ld=null),ef(v),m=m.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(_e,m,void 0,(m.current.flags&128)===128)}catch{}if(S!==null){m=L.T,P=U.p,U.p=2,L.T=null;try{for(var j=f.onRecoverableError,K=0;K<S.length;K++){var te=S[K];j(te.value,{componentStack:te.stack})}}finally{L.T=m,U.p=P}}(a0&3)!==0&&k2(),$l(f),P=f.pendingLanes,(v&4194090)!==0&&(P&42)!==0?f===HO?$v++:($v=0,HO=f):$v=0,Pv(0)}}function Mge(f,m){(f.pooledCacheLanes&=m)===0&&(m=f.pooledCache,m!=null&&(f.pooledCache=null,dv(m)))}function k2(f){return Rge(),$ge(),Pge(),Oge()}function Oge(){if(wo!==5)return!1;var f=cd,m=BO;BO=0;var v=ef(a0),S=L.T,P=U.p;try{U.p=32>v?32:v,L.T=null,v=FO,FO=null;var j=cd,K=a0;if(wo=0,o0=cd=null,a0=0,(dr&6)!==0)throw Error(o(331));var te=dr;if(dr|=4,yge(j.current),pge(j,j.current,K,v),dr=te,Pv(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(_e,j)}catch{}return!0}finally{U.p=P,L.T=S,Mge(f,m)}}function Dge(f,m,v){m=Pi(v,m),m=xO(f.stateNode,m,2),f=Ju(f,m,2),f!==null&&(Cc(f,2),$l(f))}function kr(f,m,v){if(f.tag===3)Dge(f,f,v);else for(;m!==null;){if(m.tag===3){Dge(m,f,v);break}else if(m.tag===1){var S=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(ld===null||!ld.has(S))){f=Pi(v,f),v=jme(2),S=Ju(m,v,2),S!==null&&(Bme(v,S,m,f),Cc(S,2),$l(S));break}}m=m.return}}function YO(f,m,v){var S=f.pingCache;if(S===null){S=f.pingCache=new r5t;var P=new Set;S.set(m,P)}else P=S.get(m),P===void 0&&(P=new Set,S.set(m,P));P.has(v)||(LO=!0,P.add(v),f=s5t.bind(null,f,m,v),m.then(f,f))}function s5t(f,m,v){var S=f.pingCache;S!==null&&S.delete(m),f.pingedLanes|=f.suspendedLanes&v,f.warmLanes&=~v,Ar===f&&(rr&v)===v&&(nn===4||nn===3&&(rr&62914560)===rr&&300>Xe()-jO?(dr&2)===0&&i0(f,0):IO|=v,n0===rr&&(n0=0)),$l(f)}function Lge(f,m){m===0&&(m=_l()),f=Hg(f,m),f!==null&&(Cc(f,m),$l(f))}function l5t(f){var m=f.memoizedState,v=0;m!==null&&(v=m.retryLane),Lge(f,v)}function c5t(f,m){var v=0;switch(f.tag){case 13:var S=f.stateNode,P=f.memoizedState;P!==null&&(v=P.retryLane);break;case 19:S=f.stateNode;break;case 22:S=f.stateNode._retryCache;break;default:throw Error(o(314))}S!==null&&S.delete(m),Lge(f,v)}function u5t(f,m){return de(f,m)}var _2=null,l0=null,WO=!1,E2=!1,XO=!1,_f=0;function $l(f){f!==l0&&f.next===null&&(l0===null?_2=l0=f:l0=l0.next=f),E2=!0,WO||(WO=!0,h5t())}function Pv(f,m){if(!XO&&E2){XO=!0;do for(var v=!1,S=_2;S!==null;){if(f!==0){var P=S.pendingLanes;if(P===0)var j=0;else{var K=S.suspendedLanes,te=S.pingedLanes;j=(1<<31-at(42|f)+1)-1,j&=P&~(K&~te),j=j&201326741?j&201326741|1:j?j|2:0}j!==0&&(v=!0,Bge(S,j))}else j=rr,j=Fr(S,S===Ar?j:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(j&3)===0||no(S,j)||(v=!0,Bge(S,j));S=S.next}while(v);XO=!1}}function d5t(){Ige()}function Ige(){E2=WO=!1;var f=0;_f!==0&&(x5t()&&(f=_f),_f=0);for(var m=Xe(),v=null,S=_2;S!==null;){var P=S.next,j=zge(S,m);j===0?(S.next=null,v===null?_2=P:v.next=P,P===null&&(l0=v)):(v=S,(f!==0||(j&3)!==0)&&(E2=!0)),S=P}Pv(f)}function zge(f,m){for(var v=f.suspendedLanes,S=f.pingedLanes,P=f.expirationTimes,j=f.pendingLanes&-62914561;0<j;){var K=31-at(j),te=1<<K,le=P[K];le===-1?((te&v)===0||(te&S)!==0)&&(P[K]=ur(te,m)):le<=m&&(f.expiredLanes|=te),j&=~te}if(m=Ar,v=rr,v=Fr(f,f===m?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),S=f.callbackNode,v===0||f===m&&(hr===2||hr===9)||f.cancelPendingCommit!==null)return S!==null&&S!==null&&be(S),f.callbackNode=null,f.callbackPriority=0;if((v&3)===0||no(f,v)){if(m=v&-v,m===f.callbackPriority)return m;switch(S!==null&&be(S),ef(v)){case 2:case 8:v=St;break;case 32:v=Ke;break;case 268435456:v=lt;break;default:v=Ke}return S=jge.bind(null,f),v=de(v,S),f.callbackPriority=m,f.callbackNode=v,m}return S!==null&&S!==null&&be(S),f.callbackPriority=2,f.callbackNode=null,2}function jge(f,m){if(wo!==0&&wo!==5)return f.callbackNode=null,f.callbackPriority=0,null;var v=f.callbackNode;if(k2()&&f.callbackNode!==v)return null;var S=rr;return S=Fr(f,f===Ar?S:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),S===0?null:(wge(f,S,m),zge(f,Xe()),f.callbackNode!=null&&f.callbackNode===v?jge.bind(null,f):null)}function Bge(f,m){if(k2())return null;wge(f,m,!0)}function h5t(){k5t(function(){(dr&6)!==0?de(Qe,d5t):Ige()})}function GO(){return _f===0&&(_f=fa()),_f}function Fge(f){return f==null||typeof f=="symbol"||typeof f=="boolean"?null:typeof f=="function"?f:D5(""+f)}function Hge(f,m){var v=m.ownerDocument.createElement("input");return v.name=m.name,v.value=m.value,f.id&&v.setAttribute("form",f.id),m.parentNode.insertBefore(v,m),f=new FormData(f),v.parentNode.removeChild(v),f}function f5t(f,m,v,S,P){if(m==="submit"&&v&&v.stateNode===P){var j=Fge((P[oo]||null).action),K=S.submitter;K&&(m=(m=K[oo]||null)?Fge(m.formAction):K.getAttribute("formAction"),m!==null&&(j=m,K=null));var te=new j5("action","action",null,S,P);f.push({event:te,listeners:[{instance:null,listener:function(){if(S.defaultPrevented){if(_f!==0){var le=K?Hge(P,K):new FormData(P);mO(v,{pending:!0,data:le,method:P.method,action:j},null,le)}}else typeof j=="function"&&(te.preventDefault(),le=K?Hge(P,K):new FormData(P),mO(v,{pending:!0,data:le,method:P.method,action:j},j,le))},currentTarget:P}]})}}for(var KO=0;KO<OM.length;KO++){var ZO=OM[KO],p5t=ZO.toLowerCase(),m5t=ZO[0].toUpperCase()+ZO.slice(1);Fs(p5t,"on"+m5t)}Fs(wpe,"onAnimationEnd"),Fs(kpe,"onAnimationIteration"),Fs(_pe,"onAnimationStart"),Fs("dblclick","onDoubleClick"),Fs("focusin","onFocus"),Fs("focusout","onBlur"),Fs(PEt,"onTransitionRun"),Fs(MEt,"onTransitionStart"),Fs(OEt,"onTransitionCancel"),Fs(Epe,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),js("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),js("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),js("onBeforeInput",["compositionend","keypress","textInput","paste"]),js("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),js("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),js("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),g5t=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mv));function Uge(f,m){m=(m&4)!==0;for(var v=0;v<f.length;v++){var S=f[v],P=S.event;S=S.listeners;e:{var j=void 0;if(m)for(var K=S.length-1;0<=K;K--){var te=S[K],le=te.instance,ge=te.currentTarget;if(te=te.listener,le!==j&&P.isPropagationStopped())break e;j=te,P.currentTarget=ge;try{j(P)}catch(Te){d2(Te)}P.currentTarget=null,j=le}else for(K=0;K<S.length;K++){if(te=S[K],le=te.instance,ge=te.currentTarget,te=te.listener,le!==j&&P.isPropagationStopped())break e;j=te,P.currentTarget=ge;try{j(P)}catch(Te){d2(Te)}P.currentTarget=null,j=le}}}}function Gt(f,m){var v=m[tf];v===void 0&&(v=m[tf]=new Set);var S=f+"__bubble";v.has(S)||(Vge(m,f,2,!1),v.add(S))}function QO(f,m,v){var S=0;m&&(S|=4),Vge(v,f,S,m)}var S2="_reactListening"+Math.random().toString(36).slice(2);function JO(f){if(!f[S2]){f[S2]=!0,Ag.forEach(function(v){v!=="selectionchange"&&(g5t.has(v)||QO(v,!1,f),QO(v,!0,f))});var m=f.nodeType===9?f:f.ownerDocument;m===null||m[S2]||(m[S2]=!0,QO("selectionchange",!1,m))}}function Vge(f,m,v,S){switch(p0e(m)){case 2:var P=U5t;break;case 8:P=V5t;break;default:P=fD}v=P.bind(null,m,v,f),P=void 0,!wM||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(P=!0),S?P!==void 0?f.addEventListener(m,v,{capture:!0,passive:P}):f.addEventListener(m,v,!0):P!==void 0?f.addEventListener(m,v,{passive:P}):f.addEventListener(m,v,!1)}function eD(f,m,v,S,P){var j=S;if((m&1)===0&&(m&2)===0&&S!==null)e:for(;;){if(S===null)return;var K=S.tag;if(K===3||K===4){var te=S.stateNode.containerInfo;if(te===P)break;if(K===4)for(K=S.return;K!==null;){var le=K.tag;if((le===3||le===4)&&K.stateNode.containerInfo===P)return;K=K.return}for(;te!==null;){if(K=Sl(te),K===null)return;if(le=K.tag,le===5||le===6||le===26||le===27){S=j=K;continue e}te=te.parentNode}}S=S.return}Zfe(function(){var ge=j,Te=vM(v),Re=[];e:{var ve=Spe.get(f);if(ve!==void 0){var ke=j5,xt=f;switch(f){case"keypress":if(I5(v)===0)break e;case"keydown":case"keyup":ke=uEt;break;case"focusin":xt="focus",ke=SM;break;case"focusout":xt="blur",ke=SM;break;case"beforeblur":case"afterblur":ke=SM;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=epe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=Q_t;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=fEt;break;case wpe:case kpe:case _pe:ke=tEt;break;case Epe:ke=mEt;break;case"scroll":case"scrollend":ke=K_t;break;case"wheel":ke=yEt;break;case"copy":case"cut":case"paste":ke=nEt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=rpe;break;case"toggle":case"beforetoggle":ke=vEt}var pt=(m&4)!==0,vr=!pt&&(f==="scroll"||f==="scrollend"),fe=pt?ve!==null?ve+"Capture":null:ve;pt=[];for(var ue=ge,pe;ue!==null;){var Ae=ue;if(pe=Ae.stateNode,Ae=Ae.tag,Ae!==5&&Ae!==26&&Ae!==27||pe===null||fe===null||(Ae=Qb(ue,fe),Ae!=null&&pt.push(Ov(ue,Ae,pe))),vr)break;ue=ue.return}0<pt.length&&(ve=new ke(ve,xt,null,v,Te),Re.push({event:ve,listeners:pt}))}}if((m&7)===0){e:{if(ve=f==="mouseover"||f==="pointerover",ke=f==="mouseout"||f==="pointerout",ve&&v!==bM&&(xt=v.relatedTarget||v.fromElement)&&(Sl(xt)||xt[El]))break e;if((ke||ve)&&(ve=Te.window===Te?Te:(ve=Te.ownerDocument)?ve.defaultView||ve.parentWindow:window,ke?(xt=v.relatedTarget||v.toElement,ke=ge,xt=xt?Sl(xt):null,xt!==null&&(vr=i(xt),pt=xt.tag,xt!==vr||pt!==5&&pt!==27&&pt!==6)&&(xt=null)):(ke=null,xt=ge),ke!==xt)){if(pt=epe,Ae="onMouseLeave",fe="onMouseEnter",ue="mouse",(f==="pointerout"||f==="pointerover")&&(pt=rpe,Ae="onPointerLeave",fe="onPointerEnter",ue="pointer"),vr=ke==null?ve:zs(ke),pe=xt==null?ve:zs(xt),ve=new pt(Ae,ue+"leave",ke,v,Te),ve.target=vr,ve.relatedTarget=pe,Ae=null,Sl(Te)===ge&&(pt=new pt(fe,ue+"enter",xt,v,Te),pt.target=pe,pt.relatedTarget=vr,Ae=pt),vr=Ae,ke&&xt)t:{for(pt=ke,fe=xt,ue=0,pe=pt;pe;pe=c0(pe))ue++;for(pe=0,Ae=fe;Ae;Ae=c0(Ae))pe++;for(;0<ue-pe;)pt=c0(pt),ue--;for(;0<pe-ue;)fe=c0(fe),pe--;for(;ue--;){if(pt===fe||fe!==null&&pt===fe.alternate)break t;pt=c0(pt),fe=c0(fe)}pt=null}else pt=null;ke!==null&&qge(Re,ve,ke,pt,!1),xt!==null&&vr!==null&&qge(Re,vr,xt,pt,!0)}}e:{if(ve=ge?zs(ge):window,ke=ve.nodeName&&ve.nodeName.toLowerCase(),ke==="select"||ke==="input"&&ve.type==="file")var ot=upe;else if(lpe(ve))if(dpe)ot=NEt;else{ot=TEt;var qt=CEt}else ke=ve.nodeName,!ke||ke.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?ge&&yM(ge.elementType)&&(ot=upe):ot=AEt;if(ot&&(ot=ot(f,ge))){cpe(Re,ot,v,Te);break e}qt&&qt(f,ve,ge),f==="focusout"&&ge&&ve.type==="number"&&ge.memoizedProps.value!=null&&sf(ve,"number",ve.value)}switch(qt=ge?zs(ge):window,f){case"focusin":(lpe(qt)||qt.contentEditable==="true")&&(jg=qt,$M=ge,iv=null);break;case"focusout":iv=$M=jg=null;break;case"mousedown":PM=!0;break;case"contextmenu":case"mouseup":case"dragend":PM=!1,vpe(Re,v,Te);break;case"selectionchange":if($Et)break;case"keydown":case"keyup":vpe(Re,v,Te)}var ct;if(TM)e:{switch(f){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else zg?ipe(f,v)&&(gt="onCompositionEnd"):f==="keydown"&&v.keyCode===229&&(gt="onCompositionStart");gt&&(npe&&v.locale!=="ko"&&(zg||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&zg&&(ct=Qfe()):(Gu=Te,kM="value"in Gu?Gu.value:Gu.textContent,zg=!0)),qt=C2(ge,gt),0<qt.length&&(gt=new tpe(gt,f,null,v,Te),Re.push({event:gt,listeners:qt}),ct?gt.data=ct:(ct=spe(v),ct!==null&&(gt.data=ct)))),(ct=wEt?kEt(f,v):_Et(f,v))&&(gt=C2(ge,"onBeforeInput"),0<gt.length&&(qt=new tpe("onBeforeInput","beforeinput",null,v,Te),Re.push({event:qt,listeners:gt}),qt.data=ct)),f5t(Re,f,ge,v,Te)}Uge(Re,m)})}function Ov(f,m,v){return{instance:f,listener:m,currentTarget:v}}function C2(f,m){for(var v=m+"Capture",S=[];f!==null;){var P=f,j=P.stateNode;if(P=P.tag,P!==5&&P!==26&&P!==27||j===null||(P=Qb(f,v),P!=null&&S.unshift(Ov(f,P,j)),P=Qb(f,m),P!=null&&S.push(Ov(f,P,j))),f.tag===3)return S;f=f.return}return[]}function c0(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5&&f.tag!==27);return f||null}function qge(f,m,v,S,P){for(var j=m._reactName,K=[];v!==null&&v!==S;){var te=v,le=te.alternate,ge=te.stateNode;if(te=te.tag,le!==null&&le===S)break;te!==5&&te!==26&&te!==27||ge===null||(le=ge,P?(ge=Qb(v,j),ge!=null&&K.unshift(Ov(v,ge,le))):P||(ge=Qb(v,j),ge!=null&&K.push(Ov(v,ge,le)))),v=v.return}K.length!==0&&f.push({event:m,listeners:K})}var y5t=/\r\n?/g,b5t=/\u0000|\uFFFD/g;function Yge(f){return(typeof f=="string"?f:""+f).replace(y5t,`
`).replace(b5t,"")}function Wge(f,m){return m=Yge(m),Yge(f)===m}function T2(){}function br(f,m,v,S,P,j){switch(v){case"children":typeof S=="string"?m==="body"||m==="textarea"&&S===""||Dg(f,S):(typeof S=="number"||typeof S=="bigint")&&m!=="body"&&Dg(f,""+S);break;case"className":qu(f,"class",S);break;case"tabIndex":qu(f,"tabindex",S);break;case"dir":case"role":case"viewBox":case"width":case"height":qu(f,v,S);break;case"style":Gfe(f,S,j);break;case"data":if(m!=="object"){qu(f,"data",S);break}case"src":case"href":if(S===""&&(m!=="a"||v!=="href")){f.removeAttribute(v);break}if(S==null||typeof S=="function"||typeof S=="symbol"||typeof S=="boolean"){f.removeAttribute(v);break}S=D5(""+S),f.setAttribute(v,S);break;case"action":case"formAction":if(typeof S=="function"){f.setAttribute(v,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof j=="function"&&(v==="formAction"?(m!=="input"&&br(f,m,"name",P.name,P,null),br(f,m,"formEncType",P.formEncType,P,null),br(f,m,"formMethod",P.formMethod,P,null),br(f,m,"formTarget",P.formTarget,P,null)):(br(f,m,"encType",P.encType,P,null),br(f,m,"method",P.method,P,null),br(f,m,"target",P.target,P,null)));if(S==null||typeof S=="symbol"||typeof S=="boolean"){f.removeAttribute(v);break}S=D5(""+S),f.setAttribute(v,S);break;case"onClick":S!=null&&(f.onclick=T2);break;case"onScroll":S!=null&&Gt("scroll",f);break;case"onScrollEnd":S!=null&&Gt("scrollend",f);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(o(61));if(v=S.__html,v!=null){if(P.children!=null)throw Error(o(60));f.innerHTML=v}}break;case"multiple":f.multiple=S&&typeof S!="function"&&typeof S!="symbol";break;case"muted":f.muted=S&&typeof S!="function"&&typeof S!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(S==null||typeof S=="function"||typeof S=="boolean"||typeof S=="symbol"){f.removeAttribute("xlink:href");break}v=D5(""+S),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":S!=null&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(v,""+S):f.removeAttribute(v);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":S&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(v,""):f.removeAttribute(v);break;case"capture":case"download":S===!0?f.setAttribute(v,""):S!==!1&&S!=null&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(v,S):f.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":S!=null&&typeof S!="function"&&typeof S!="symbol"&&!isNaN(S)&&1<=S?f.setAttribute(v,S):f.removeAttribute(v);break;case"rowSpan":case"start":S==null||typeof S=="function"||typeof S=="symbol"||isNaN(S)?f.removeAttribute(v):f.setAttribute(v,S);break;case"popover":Gt("beforetoggle",f),Gt("toggle",f),Vu(f,"popover",S);break;case"xlinkActuate":Fa(f,"http://www.w3.org/1999/xlink","xlink:actuate",S);break;case"xlinkArcrole":Fa(f,"http://www.w3.org/1999/xlink","xlink:arcrole",S);break;case"xlinkRole":Fa(f,"http://www.w3.org/1999/xlink","xlink:role",S);break;case"xlinkShow":Fa(f,"http://www.w3.org/1999/xlink","xlink:show",S);break;case"xlinkTitle":Fa(f,"http://www.w3.org/1999/xlink","xlink:title",S);break;case"xlinkType":Fa(f,"http://www.w3.org/1999/xlink","xlink:type",S);break;case"xmlBase":Fa(f,"http://www.w3.org/XML/1998/namespace","xml:base",S);break;case"xmlLang":Fa(f,"http://www.w3.org/XML/1998/namespace","xml:lang",S);break;case"xmlSpace":Fa(f,"http://www.w3.org/XML/1998/namespace","xml:space",S);break;case"is":Vu(f,"is",S);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=X_t.get(v)||v,Vu(f,v,S))}}function tD(f,m,v,S,P,j){switch(v){case"style":Gfe(f,S,j);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(o(61));if(v=S.__html,v!=null){if(P.children!=null)throw Error(o(60));f.innerHTML=v}}break;case"children":typeof S=="string"?Dg(f,S):(typeof S=="number"||typeof S=="bigint")&&Dg(f,""+S);break;case"onScroll":S!=null&&Gt("scroll",f);break;case"onScrollEnd":S!=null&&Gt("scrollend",f);break;case"onClick":S!=null&&(f.onclick=T2);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ng.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(P=v.endsWith("Capture"),m=v.slice(2,P?v.length-7:void 0),j=f[oo]||null,j=j!=null?j[v]:null,typeof j=="function"&&f.removeEventListener(m,j,P),typeof S=="function")){typeof j!="function"&&j!==null&&(v in f?f[v]=null:f.hasAttribute(v)&&f.removeAttribute(v)),f.addEventListener(m,S,P);break e}v in f?f[v]=S:S===!0?f.setAttribute(v,""):Vu(f,v,S)}}}function ko(f,m,v){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gt("error",f),Gt("load",f);var S=!1,P=!1,j;for(j in v)if(v.hasOwnProperty(j)){var K=v[j];if(K!=null)switch(j){case"src":S=!0;break;case"srcSet":P=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,m));default:br(f,m,j,K,v,null)}}P&&br(f,m,"srcSet",v.srcSet,v,null),S&&br(f,m,"src",v.src,v,null);return;case"input":Gt("invalid",f);var te=j=K=P=null,le=null,ge=null;for(S in v)if(v.hasOwnProperty(S)){var Te=v[S];if(Te!=null)switch(S){case"name":P=Te;break;case"type":K=Te;break;case"checked":le=Te;break;case"defaultChecked":ge=Te;break;case"value":j=Te;break;case"defaultValue":te=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(o(137,m));break;default:br(f,m,S,Te,v,null)}}Og(f,j,te,le,ge,K,P,!1),Yu(f);return;case"select":Gt("invalid",f),S=K=j=null;for(P in v)if(v.hasOwnProperty(P)&&(te=v[P],te!=null))switch(P){case"value":j=te;break;case"defaultValue":K=te;break;case"multiple":S=te;default:br(f,m,P,te,v,null)}m=j,v=K,f.multiple=!!S,m!=null?$i(f,!!S,m,!1):v!=null&&$i(f,!!S,v,!0);return;case"textarea":Gt("invalid",f),j=P=S=null;for(K in v)if(v.hasOwnProperty(K)&&(te=v[K],te!=null))switch(K){case"value":S=te;break;case"defaultValue":P=te;break;case"children":j=te;break;case"dangerouslySetInnerHTML":if(te!=null)throw Error(o(91));break;default:br(f,m,K,te,v,null)}Wfe(f,S,P,j),Yu(f);return;case"option":for(le in v)if(v.hasOwnProperty(le)&&(S=v[le],S!=null))switch(le){case"selected":f.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:br(f,m,le,S,v,null)}return;case"dialog":Gt("beforetoggle",f),Gt("toggle",f),Gt("cancel",f),Gt("close",f);break;case"iframe":case"object":Gt("load",f);break;case"video":case"audio":for(S=0;S<Mv.length;S++)Gt(Mv[S],f);break;case"image":Gt("error",f),Gt("load",f);break;case"details":Gt("toggle",f);break;case"embed":case"source":case"link":Gt("error",f),Gt("load",f);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ge in v)if(v.hasOwnProperty(ge)&&(S=v[ge],S!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,m));default:br(f,m,ge,S,v,null)}return;default:if(yM(m)){for(Te in v)v.hasOwnProperty(Te)&&(S=v[Te],S!==void 0&&tD(f,m,Te,S,v,void 0));return}}for(te in v)v.hasOwnProperty(te)&&(S=v[te],S!=null&&br(f,m,te,S,v,null))}function v5t(f,m,v,S){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var P=null,j=null,K=null,te=null,le=null,ge=null,Te=null;for(ke in v){var Re=v[ke];if(v.hasOwnProperty(ke)&&Re!=null)switch(ke){case"checked":break;case"value":break;case"defaultValue":le=Re;default:S.hasOwnProperty(ke)||br(f,m,ke,null,S,Re)}}for(var ve in S){var ke=S[ve];if(Re=v[ve],S.hasOwnProperty(ve)&&(ke!=null||Re!=null))switch(ve){case"type":j=ke;break;case"name":P=ke;break;case"checked":ge=ke;break;case"defaultChecked":Te=ke;break;case"value":K=ke;break;case"defaultValue":te=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(o(137,m));break;default:ke!==Re&&br(f,m,ve,ke,S,Re)}}Bs(f,K,te,le,ge,Te,j,P);return;case"select":ke=K=te=ve=null;for(j in v)if(le=v[j],v.hasOwnProperty(j)&&le!=null)switch(j){case"value":break;case"multiple":ke=le;default:S.hasOwnProperty(j)||br(f,m,j,null,S,le)}for(P in S)if(j=S[P],le=v[P],S.hasOwnProperty(P)&&(j!=null||le!=null))switch(P){case"value":ve=j;break;case"defaultValue":te=j;break;case"multiple":K=j;default:j!==le&&br(f,m,P,j,S,le)}m=te,v=K,S=ke,ve!=null?$i(f,!!v,ve,!1):!!S!=!!v&&(m!=null?$i(f,!!v,m,!0):$i(f,!!v,v?[]:"",!1));return;case"textarea":ke=ve=null;for(te in v)if(P=v[te],v.hasOwnProperty(te)&&P!=null&&!S.hasOwnProperty(te))switch(te){case"value":break;case"children":break;default:br(f,m,te,null,S,P)}for(K in S)if(P=S[K],j=v[K],S.hasOwnProperty(K)&&(P!=null||j!=null))switch(K){case"value":ve=P;break;case"defaultValue":ke=P;break;case"children":break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(91));break;default:P!==j&&br(f,m,K,P,S,j)}Yfe(f,ve,ke);return;case"option":for(var xt in v)if(ve=v[xt],v.hasOwnProperty(xt)&&ve!=null&&!S.hasOwnProperty(xt))switch(xt){case"selected":f.selected=!1;break;default:br(f,m,xt,null,S,ve)}for(le in S)if(ve=S[le],ke=v[le],S.hasOwnProperty(le)&&ve!==ke&&(ve!=null||ke!=null))switch(le){case"selected":f.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:br(f,m,le,ve,S,ke)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pt in v)ve=v[pt],v.hasOwnProperty(pt)&&ve!=null&&!S.hasOwnProperty(pt)&&br(f,m,pt,null,S,ve);for(ge in S)if(ve=S[ge],ke=v[ge],S.hasOwnProperty(ge)&&ve!==ke&&(ve!=null||ke!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(o(137,m));break;default:br(f,m,ge,ve,S,ke)}return;default:if(yM(m)){for(var vr in v)ve=v[vr],v.hasOwnProperty(vr)&&ve!==void 0&&!S.hasOwnProperty(vr)&&tD(f,m,vr,void 0,S,ve);for(Te in S)ve=S[Te],ke=v[Te],!S.hasOwnProperty(Te)||ve===ke||ve===void 0&&ke===void 0||tD(f,m,Te,ve,S,ke);return}}for(var fe in v)ve=v[fe],v.hasOwnProperty(fe)&&ve!=null&&!S.hasOwnProperty(fe)&&br(f,m,fe,null,S,ve);for(Re in S)ve=S[Re],ke=v[Re],!S.hasOwnProperty(Re)||ve===ke||ve==null&&ke==null||br(f,m,Re,ve,S,ke)}var rD=null,nD=null;function A2(f){return f.nodeType===9?f:f.ownerDocument}function Xge(f){switch(f){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gge(f,m){if(f===0)switch(m){case"svg":return 1;case"math":return 2;default:return 0}return f===1&&m==="foreignObject"?0:f}function oD(f,m){return f==="textarea"||f==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.children=="bigint"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var aD=null;function x5t(){var f=window.event;return f&&f.type==="popstate"?f===aD?!1:(aD=f,!0):(aD=null,!1)}var Kge=typeof setTimeout=="function"?setTimeout:void 0,w5t=typeof clearTimeout=="function"?clearTimeout:void 0,Zge=typeof Promise=="function"?Promise:void 0,k5t=typeof queueMicrotask=="function"?queueMicrotask:typeof Zge<"u"?function(f){return Zge.resolve(null).then(f).catch(_5t)}:Kge;function _5t(f){setTimeout(function(){throw f})}function dd(f){return f==="head"}function Qge(f,m){var v=m,S=0,P=0;do{var j=v.nextSibling;if(f.removeChild(v),j&&j.nodeType===8)if(v=j.data,v==="/$"){if(0<S&&8>S){v=S;var K=f.ownerDocument;if(v&1&&Dv(K.documentElement),v&2&&Dv(K.body),v&4)for(v=K.head,Dv(v),K=v.firstChild;K;){var te=K.nextSibling,le=K.nodeName;K[Tc]||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&K.rel.toLowerCase()==="stylesheet"||v.removeChild(K),K=te}}if(P===0){f.removeChild(j),Uv(m);return}P--}else v==="$"||v==="$?"||v==="$!"?P++:S=v.charCodeAt(0)-48;else S=0;v=j}while(v);Uv(m)}function iD(f){var m=f.firstChild;for(m&&m.nodeType===10&&(m=m.nextSibling);m;){var v=m;switch(m=m.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":iD(v),rf(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}f.removeChild(v)}}function E5t(f,m,v,S){for(;f.nodeType===1;){var P=v;if(f.nodeName.toLowerCase()!==m.toLowerCase()){if(!S&&(f.nodeName!=="INPUT"||f.type!=="hidden"))break}else if(S){if(!f[Tc])switch(m){case"meta":if(!f.hasAttribute("itemprop"))break;return f;case"link":if(j=f.getAttribute("rel"),j==="stylesheet"&&f.hasAttribute("data-precedence"))break;if(j!==P.rel||f.getAttribute("href")!==(P.href==null||P.href===""?null:P.href)||f.getAttribute("crossorigin")!==(P.crossOrigin==null?null:P.crossOrigin)||f.getAttribute("title")!==(P.title==null?null:P.title))break;return f;case"style":if(f.hasAttribute("data-precedence"))break;return f;case"script":if(j=f.getAttribute("src"),(j!==(P.src==null?null:P.src)||f.getAttribute("type")!==(P.type==null?null:P.type)||f.getAttribute("crossorigin")!==(P.crossOrigin==null?null:P.crossOrigin))&&j&&f.hasAttribute("async")&&!f.hasAttribute("itemprop"))break;return f;default:return f}}else if(m==="input"&&f.type==="hidden"){var j=P.name==null?null:""+P.name;if(P.type==="hidden"&&f.getAttribute("name")===j)return f}else return f;if(f=Us(f.nextSibling),f===null)break}return null}function S5t(f,m,v){if(m==="")return null;for(;f.nodeType!==3;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!v||(f=Us(f.nextSibling),f===null))return null;return f}function sD(f){return f.data==="$!"||f.data==="$?"&&f.ownerDocument.readyState==="complete"}function C5t(f,m){var v=f.ownerDocument;if(f.data!=="$?"||v.readyState==="complete")m();else{var S=function(){m(),v.removeEventListener("DOMContentLoaded",S)};v.addEventListener("DOMContentLoaded",S),f._reactRetry=S}}function Us(f){for(;f!=null;f=f.nextSibling){var m=f.nodeType;if(m===1||m===3)break;if(m===8){if(m=f.data,m==="$"||m==="$!"||m==="$?"||m==="F!"||m==="F")break;if(m==="/$")return null}}return f}var lD=null;function Jge(f){f=f.previousSibling;for(var m=0;f;){if(f.nodeType===8){var v=f.data;if(v==="$"||v==="$!"||v==="$?"){if(m===0)return f;m--}else v==="/$"&&m++}f=f.previousSibling}return null}function e0e(f,m,v){switch(m=A2(v),f){case"html":if(f=m.documentElement,!f)throw Error(o(452));return f;case"head":if(f=m.head,!f)throw Error(o(453));return f;case"body":if(f=m.body,!f)throw Error(o(454));return f;default:throw Error(o(451))}}function Dv(f){for(var m=f.attributes;m.length;)f.removeAttributeNode(m[0]);rf(f)}var zi=new Map,t0e=new Set;function N2(f){return typeof f.getRootNode=="function"?f.getRootNode():f.nodeType===9?f:f.ownerDocument}var Fc=U.d;U.d={f:T5t,r:A5t,D:N5t,C:R5t,L:$5t,m:P5t,X:O5t,S:M5t,M:D5t};function T5t(){var f=Fc.f(),m=x2();return f||m}function A5t(f){var m=Ai(f);m!==null&&m.tag===5&&m.type==="form"?wme(m):Fc.r(f)}var u0=typeof document>"u"?null:document;function r0e(f,m,v){var S=u0;if(S&&typeof m=="string"&&m){var P=zo(m);P='link[rel="'+f+'"][href="'+P+'"]',typeof v=="string"&&(P+='[crossorigin="'+v+'"]'),t0e.has(P)||(t0e.add(P),f={rel:f,crossOrigin:v,href:m},S.querySelector(P)===null&&(m=S.createElement("link"),ko(m,"link",f),tn(m),S.head.appendChild(m)))}}function N5t(f){Fc.D(f),r0e("dns-prefetch",f,null)}function R5t(f,m){Fc.C(f,m),r0e("preconnect",f,m)}function $5t(f,m,v){Fc.L(f,m,v);var S=u0;if(S&&f&&m){var P='link[rel="preload"][as="'+zo(m)+'"]';m==="image"&&v&&v.imageSrcSet?(P+='[imagesrcset="'+zo(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(P+='[imagesizes="'+zo(v.imageSizes)+'"]')):P+='[href="'+zo(f)+'"]';var j=P;switch(m){case"style":j=d0(f);break;case"script":j=h0(f)}zi.has(j)||(f=d({rel:"preload",href:m==="image"&&v&&v.imageSrcSet?void 0:f,as:m},v),zi.set(j,f),S.querySelector(P)!==null||m==="style"&&S.querySelector(Lv(j))||m==="script"&&S.querySelector(Iv(j))||(m=S.createElement("link"),ko(m,"link",f),tn(m),S.head.appendChild(m)))}}function P5t(f,m){Fc.m(f,m);var v=u0;if(v&&f){var S=m&&typeof m.as=="string"?m.as:"script",P='link[rel="modulepreload"][as="'+zo(S)+'"][href="'+zo(f)+'"]',j=P;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":j=h0(f)}if(!zi.has(j)&&(f=d({rel:"modulepreload",href:f},m),zi.set(j,f),v.querySelector(P)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(Iv(j)))return}S=v.createElement("link"),ko(S,"link",f),tn(S),v.head.appendChild(S)}}}function M5t(f,m,v){Fc.S(f,m,v);var S=u0;if(S&&f){var P=Ni(S).hoistableStyles,j=d0(f);m=m||"default";var K=P.get(j);if(!K){var te={loading:0,preload:null};if(K=S.querySelector(Lv(j)))te.loading=5;else{f=d({rel:"stylesheet",href:f,"data-precedence":m},v),(v=zi.get(j))&&cD(f,v);var le=K=S.createElement("link");tn(le),ko(le,"link",f),le._p=new Promise(function(ge,Te){le.onload=ge,le.onerror=Te}),le.addEventListener("load",function(){te.loading|=1}),le.addEventListener("error",function(){te.loading|=2}),te.loading|=4,R2(K,m,S)}K={type:"stylesheet",instance:K,count:1,state:te},P.set(j,K)}}}function O5t(f,m){Fc.X(f,m);var v=u0;if(v&&f){var S=Ni(v).hoistableScripts,P=h0(f),j=S.get(P);j||(j=v.querySelector(Iv(P)),j||(f=d({src:f,async:!0},m),(m=zi.get(P))&&uD(f,m),j=v.createElement("script"),tn(j),ko(j,"link",f),v.head.appendChild(j)),j={type:"script",instance:j,count:1,state:null},S.set(P,j))}}function D5t(f,m){Fc.M(f,m);var v=u0;if(v&&f){var S=Ni(v).hoistableScripts,P=h0(f),j=S.get(P);j||(j=v.querySelector(Iv(P)),j||(f=d({src:f,async:!0,type:"module"},m),(m=zi.get(P))&&uD(f,m),j=v.createElement("script"),tn(j),ko(j,"link",f),v.head.appendChild(j)),j={type:"script",instance:j,count:1,state:null},S.set(P,j))}}function n0e(f,m,v,S){var P=(P=Z.current)?N2(P):null;if(!P)throw Error(o(446));switch(f){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(m=d0(v.href),v=Ni(P).hoistableStyles,S=v.get(m),S||(S={type:"style",instance:null,count:0,state:null},v.set(m,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){f=d0(v.href);var j=Ni(P).hoistableStyles,K=j.get(f);if(K||(P=P.ownerDocument||P,K={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},j.set(f,K),(j=P.querySelector(Lv(f)))&&!j._p&&(K.instance=j,K.state.loading=5),zi.has(f)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},zi.set(f,v),j||L5t(P,f,v,K.state))),m&&S===null)throw Error(o(528,""));return K}if(m&&S!==null)throw Error(o(529,""));return null;case"script":return m=v.async,v=v.src,typeof v=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=h0(v),v=Ni(P).hoistableScripts,S=v.get(m),S||(S={type:"script",instance:null,count:0,state:null},v.set(m,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,f))}}function d0(f){return'href="'+zo(f)+'"'}function Lv(f){return'link[rel="stylesheet"]['+f+"]"}function o0e(f){return d({},f,{"data-precedence":f.precedence,precedence:null})}function L5t(f,m,v,S){f.querySelector('link[rel="preload"][as="style"]['+m+"]")?S.loading=1:(m=f.createElement("link"),S.preload=m,m.addEventListener("load",function(){return S.loading|=1}),m.addEventListener("error",function(){return S.loading|=2}),ko(m,"link",v),tn(m),f.head.appendChild(m))}function h0(f){return'[src="'+zo(f)+'"]'}function Iv(f){return"script[async]"+f}function a0e(f,m,v){if(m.count++,m.instance===null)switch(m.type){case"style":var S=f.querySelector('style[data-href~="'+zo(v.href)+'"]');if(S)return m.instance=S,tn(S),S;var P=d({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return S=(f.ownerDocument||f).createElement("style"),tn(S),ko(S,"style",P),R2(S,v.precedence,f),m.instance=S;case"stylesheet":P=d0(v.href);var j=f.querySelector(Lv(P));if(j)return m.state.loading|=4,m.instance=j,tn(j),j;S=o0e(v),(P=zi.get(P))&&cD(S,P),j=(f.ownerDocument||f).createElement("link"),tn(j);var K=j;return K._p=new Promise(function(te,le){K.onload=te,K.onerror=le}),ko(j,"link",S),m.state.loading|=4,R2(j,v.precedence,f),m.instance=j;case"script":return j=h0(v.src),(P=f.querySelector(Iv(j)))?(m.instance=P,tn(P),P):(S=v,(P=zi.get(j))&&(S=d({},v),uD(S,P)),f=f.ownerDocument||f,P=f.createElement("script"),tn(P),ko(P,"link",S),f.head.appendChild(P),m.instance=P);case"void":return null;default:throw Error(o(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(S=m.instance,m.state.loading|=4,R2(S,v.precedence,f));return m.instance}function R2(f,m,v){for(var S=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),P=S.length?S[S.length-1]:null,j=P,K=0;K<S.length;K++){var te=S[K];if(te.dataset.precedence===m)j=te;else if(j!==P)break}j?j.parentNode.insertBefore(f,j.nextSibling):(m=v.nodeType===9?v.head:v,m.insertBefore(f,m.firstChild))}function cD(f,m){f.crossOrigin==null&&(f.crossOrigin=m.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=m.referrerPolicy),f.title==null&&(f.title=m.title)}function uD(f,m){f.crossOrigin==null&&(f.crossOrigin=m.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=m.referrerPolicy),f.integrity==null&&(f.integrity=m.integrity)}var $2=null;function i0e(f,m,v){if($2===null){var S=new Map,P=$2=new Map;P.set(v,S)}else P=$2,S=P.get(v),S||(S=new Map,P.set(v,S));if(S.has(f))return S;for(S.set(f,null),v=v.getElementsByTagName(f),P=0;P<v.length;P++){var j=v[P];if(!(j[Tc]||j[On]||f==="link"&&j.getAttribute("rel")==="stylesheet")&&j.namespaceURI!=="http://www.w3.org/2000/svg"){var K=j.getAttribute(m)||"";K=f+K;var te=S.get(K);te?te.push(j):S.set(K,[j])}}return S}function s0e(f,m,v){f=f.ownerDocument||f,f.head.insertBefore(v,m==="title"?f.querySelector("head > title"):null)}function I5t(f,m,v){if(v===1||m.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;switch(m.rel){case"stylesheet":return f=m.disabled,typeof m.precedence=="string"&&f==null;default:return!0}case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function l0e(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}var zv=null;function z5t(){}function j5t(f,m,v){if(zv===null)throw Error(o(475));var S=zv;if(m.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var P=d0(v.href),j=f.querySelector(Lv(P));if(j){f=j._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(S.count++,S=P2.bind(S),f.then(S,S)),m.state.loading|=4,m.instance=j,tn(j);return}j=f.ownerDocument||f,v=o0e(v),(P=zi.get(P))&&cD(v,P),j=j.createElement("link"),tn(j);var K=j;K._p=new Promise(function(te,le){K.onload=te,K.onerror=le}),ko(j,"link",v),m.instance=j}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(m,f),(f=m.state.preload)&&(m.state.loading&3)===0&&(S.count++,m=P2.bind(S),f.addEventListener("load",m),f.addEventListener("error",m))}}function B5t(){if(zv===null)throw Error(o(475));var f=zv;return f.stylesheets&&f.count===0&&dD(f,f.stylesheets),0<f.count?function(m){var v=setTimeout(function(){if(f.stylesheets&&dD(f,f.stylesheets),f.unsuspend){var S=f.unsuspend;f.unsuspend=null,S()}},6e4);return f.unsuspend=m,function(){f.unsuspend=null,clearTimeout(v)}}:null}function P2(){if(this.count--,this.count===0){if(this.stylesheets)dD(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var M2=null;function dD(f,m){f.stylesheets=null,f.unsuspend!==null&&(f.count++,M2=new Map,m.forEach(F5t,f),M2=null,P2.call(f))}function F5t(f,m){if(!(m.state.loading&4)){var v=M2.get(f);if(v)var S=v.get(null);else{v=new Map,M2.set(f,v);for(var P=f.querySelectorAll("link[data-precedence],style[data-precedence]"),j=0;j<P.length;j++){var K=P[j];(K.nodeName==="LINK"||K.getAttribute("media")!=="not all")&&(v.set(K.dataset.precedence,K),S=K)}S&&v.set(null,S)}P=m.instance,K=P.getAttribute("data-precedence"),j=v.get(K)||S,j===S&&v.set(null,P),v.set(K,P),this.count++,S=P2.bind(this),P.addEventListener("load",S),P.addEventListener("error",S),j?j.parentNode.insertBefore(P,j.nextSibling):(f=f.nodeType===9?f.head:f,f.insertBefore(P,f.firstChild)),m.state.loading|=4}}var jv={$$typeof:_,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function H5t(f,m,v,S,P,j,K,te){this.tag=1,this.containerInfo=f,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qh(0),this.hiddenUpdates=Qh(null),this.identifierPrefix=S,this.onUncaughtError=P,this.onCaughtError=j,this.onRecoverableError=K,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=te,this.incompleteTransitions=new Map}function c0e(f,m,v,S,P,j,K,te,le,ge,Te,Re){return f=new H5t(f,m,v,K,te,le,ge,Re),m=1,j===!0&&(m|=24),j=Ua(3,null,null,m),f.current=j,j.stateNode=f,m=YM(),m.refCount++,f.pooledCache=m,m.refCount++,j.memoizedState={element:S,isDehydrated:v,cache:m},KM(j),f}function u0e(f){return f?(f=Ug,f):Ug}function d0e(f,m,v,S,P,j){P=u0e(P),S.context===null?S.context=P:S.pendingContext=P,S=Qu(m),S.payload={element:v},j=j===void 0?null:j,j!==null&&(S.callback=j),v=Ju(f,S,m),v!==null&&(Xa(v,f,m),mv(v,f,m))}function h0e(f,m){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var v=f.retryLane;f.retryLane=v!==0&&v<m?v:m}}function hD(f,m){h0e(f,m),(f=f.alternate)&&h0e(f,m)}function f0e(f){if(f.tag===13){var m=Hg(f,67108864);m!==null&&Xa(m,f,67108864),hD(f,67108864)}}var O2=!0;function U5t(f,m,v,S){var P=L.T;L.T=null;var j=U.p;try{U.p=2,fD(f,m,v,S)}finally{U.p=j,L.T=P}}function V5t(f,m,v,S){var P=L.T;L.T=null;var j=U.p;try{U.p=8,fD(f,m,v,S)}finally{U.p=j,L.T=P}}function fD(f,m,v,S){if(O2){var P=pD(S);if(P===null)eD(f,m,S,D2,v),m0e(f,S);else if(Y5t(P,f,m,v,S))S.stopPropagation();else if(m0e(f,S),m&4&&-1<q5t.indexOf(f)){for(;P!==null;){var j=Ai(P);if(j!==null)switch(j.tag){case 3:if(j=j.stateNode,j.current.memoizedState.isDehydrated){var K=Mn(j.pendingLanes);if(K!==0){var te=j;for(te.pendingLanes|=2,te.entangledLanes|=2;K;){var le=1<<31-at(K);te.entanglements[1]|=le,K&=~le}$l(j),(dr&6)===0&&(b2=Xe()+500,Pv(0))}}break;case 13:te=Hg(j,2),te!==null&&Xa(te,j,2),x2(),hD(j,2)}if(j=pD(S),j===null&&eD(f,m,S,D2,v),j===P)break;P=j}P!==null&&S.stopPropagation()}else eD(f,m,S,null,v)}}function pD(f){return f=vM(f),mD(f)}var D2=null;function mD(f){if(D2=null,f=Sl(f),f!==null){var m=i(f);if(m===null)f=null;else{var v=m.tag;if(v===13){if(f=s(m),f!==null)return f;f=null}else if(v===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;f=null}else m!==f&&(f=null)}}return D2=f,null}function p0e(f){switch(f){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_t()){case Qe:return 2;case St:return 8;case Ke:case We:return 32;case lt:return 268435456;default:return 32}default:return 32}}var gD=!1,hd=null,fd=null,pd=null,Bv=new Map,Fv=new Map,md=[],q5t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function m0e(f,m){switch(f){case"focusin":case"focusout":hd=null;break;case"dragenter":case"dragleave":fd=null;break;case"mouseover":case"mouseout":pd=null;break;case"pointerover":case"pointerout":Bv.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fv.delete(m.pointerId)}}function Hv(f,m,v,S,P,j){return f===null||f.nativeEvent!==j?(f={blockedOn:m,domEventName:v,eventSystemFlags:S,nativeEvent:j,targetContainers:[P]},m!==null&&(m=Ai(m),m!==null&&f0e(m)),f):(f.eventSystemFlags|=S,m=f.targetContainers,P!==null&&m.indexOf(P)===-1&&m.push(P),f)}function Y5t(f,m,v,S,P){switch(m){case"focusin":return hd=Hv(hd,f,m,v,S,P),!0;case"dragenter":return fd=Hv(fd,f,m,v,S,P),!0;case"mouseover":return pd=Hv(pd,f,m,v,S,P),!0;case"pointerover":var j=P.pointerId;return Bv.set(j,Hv(Bv.get(j)||null,f,m,v,S,P)),!0;case"gotpointercapture":return j=P.pointerId,Fv.set(j,Hv(Fv.get(j)||null,f,m,v,S,P)),!0}return!1}function g0e(f){var m=Sl(f.target);if(m!==null){var v=i(m);if(v!==null){if(m=v.tag,m===13){if(m=s(v),m!==null){f.blockedOn=m,Vb(f.priority,function(){if(v.tag===13){var S=Wa();S=Jh(S);var P=Hg(v,S);P!==null&&Xa(P,v,S),hD(v,S)}});return}}else if(m===3&&v.stateNode.current.memoizedState.isDehydrated){f.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}f.blockedOn=null}function L2(f){if(f.blockedOn!==null)return!1;for(var m=f.targetContainers;0<m.length;){var v=pD(f.nativeEvent);if(v===null){v=f.nativeEvent;var S=new v.constructor(v.type,v);bM=S,v.target.dispatchEvent(S),bM=null}else return m=Ai(v),m!==null&&f0e(m),f.blockedOn=v,!1;m.shift()}return!0}function y0e(f,m,v){L2(f)&&v.delete(m)}function W5t(){gD=!1,hd!==null&&L2(hd)&&(hd=null),fd!==null&&L2(fd)&&(fd=null),pd!==null&&L2(pd)&&(pd=null),Bv.forEach(y0e),Fv.forEach(y0e)}function I2(f,m){f.blockedOn===m&&(f.blockedOn=null,gD||(gD=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,W5t)))}var z2=null;function b0e(f){z2!==f&&(z2=f,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){z2===f&&(z2=null);for(var m=0;m<f.length;m+=3){var v=f[m],S=f[m+1],P=f[m+2];if(typeof S!="function"){if(mD(S||v)===null)continue;break}var j=Ai(v);j!==null&&(f.splice(m,3),m-=3,mO(j,{pending:!0,data:P,method:v.method,action:S},S,P))}}))}function Uv(f){function m(le){return I2(le,f)}hd!==null&&I2(hd,f),fd!==null&&I2(fd,f),pd!==null&&I2(pd,f),Bv.forEach(m),Fv.forEach(m);for(var v=0;v<md.length;v++){var S=md[v];S.blockedOn===f&&(S.blockedOn=null)}for(;0<md.length&&(v=md[0],v.blockedOn===null);)g0e(v),v.blockedOn===null&&md.shift();if(v=(f.ownerDocument||f).$$reactFormReplay,v!=null)for(S=0;S<v.length;S+=3){var P=v[S],j=v[S+1],K=P[oo]||null;if(typeof j=="function")K||b0e(v);else if(K){var te=null;if(j&&j.hasAttribute("formAction")){if(P=j,K=j[oo]||null)te=K.formAction;else if(mD(P)!==null)continue}else te=K.action;typeof te=="function"?v[S+1]=te:(v.splice(S,3),S-=3),b0e(v)}}}function yD(f){this._internalRoot=f}j2.prototype.render=yD.prototype.render=function(f){var m=this._internalRoot;if(m===null)throw Error(o(409));var v=m.current,S=Wa();d0e(v,S,f,m,null,null)},j2.prototype.unmount=yD.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var m=f.containerInfo;d0e(f.current,2,null,f,null,null),x2(),m[El]=null}};function j2(f){this._internalRoot=f}j2.prototype.unstable_scheduleHydration=function(f){if(f){var m=Cg();f={blockedOn:null,target:f,priority:m};for(var v=0;v<md.length&&m!==0&&m<md[v].priority;v++);md.splice(v,0,f),v===0&&g0e(f)}};var v0e=r.version;if(v0e!=="19.1.1")throw Error(o(527,v0e,"19.1.1"));U.findDOMNode=function(f){var m=f._reactInternals;if(m===void 0)throw typeof f.render=="function"?Error(o(188)):(f=Object.keys(f).join(","),Error(o(268,f)));return f=c(m),f=f!==null?u(f):null,f=f===null?null:f.stateNode,f};var X5t={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var B2=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!B2.isDisabled&&B2.supportsFiber)try{_e=B2.inject(X5t),we=B2}catch{}}return Fy.createRoot=function(f,m){if(!a(f))throw Error(o(299));var v=!1,S="",P=Dme,j=Lme,K=Ime,te=null;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(S=m.identifierPrefix),m.onUncaughtError!==void 0&&(P=m.onUncaughtError),m.onCaughtError!==void 0&&(j=m.onCaughtError),m.onRecoverableError!==void 0&&(K=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(te=m.unstable_transitionCallbacks)),m=c0e(f,1,!1,null,null,v,S,P,j,K,te,null),f[El]=m.current,JO(f),new yD(m)},Fy.hydrateRoot=function(f,m,v){if(!a(f))throw Error(o(299));var S=!1,P="",j=Dme,K=Lme,te=Ime,le=null,ge=null;return v!=null&&(v.unstable_strictMode===!0&&(S=!0),v.identifierPrefix!==void 0&&(P=v.identifierPrefix),v.onUncaughtError!==void 0&&(j=v.onUncaughtError),v.onCaughtError!==void 0&&(K=v.onCaughtError),v.onRecoverableError!==void 0&&(te=v.onRecoverableError),v.unstable_transitionCallbacks!==void 0&&(le=v.unstable_transitionCallbacks),v.formState!==void 0&&(ge=v.formState)),m=c0e(f,1,!0,m,v??null,S,P,j,K,te,le,ge),m.context=u0e(null),v=m.current,S=Wa(),S=Jh(S),P=Qu(S),P.callback=null,Ju(v,P,S),v=S,m.current.lanes=v,Cc(m,v),$l(m),f[El]=m.current,JO(f),new j2(m)},Fy.version="19.1.1",Fy}var rre;function ktt(){if(rre)return w7.exports;rre=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),w7.exports=wtt(),w7.exports}var _tt=ktt();const Ett={View:"likec4-view"};let E7="/";E7.endsWith("/")||(E7=E7+"/");var ll=function(){return ll=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ll.apply(this,arguments)};function nre(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function Stt(e,r,n){for(var o=0,a=r.length,i;o<a;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}var y_="right-scroll-bar-position",b_="width-before-scroll-bar",Ctt="with-scroll-bars-hidden",Ttt="--removed-body-scroll-bar-size";function S7(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function Att(e,r){var n=E.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var Ntt=typeof window<"u"?E.useLayoutEffect:E.useEffect,ore=new WeakMap;function Rtt(e,r){var n=Att(null,function(o){return e.forEach(function(a){return S7(a,o)})});return Ntt(function(){var o=ore.get(n);if(o){var a=new Set(o),i=new Set(e),s=n.current;a.forEach(function(l){i.has(l)||S7(l,null)}),i.forEach(function(l){a.has(l)||S7(l,s)})}ore.set(n,e)},[e]),n}function $tt(e){return e}function Ptt(e,r){r===void 0&&(r=$tt);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=r(i,o);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return a}function Mtt(e){e===void 0&&(e={});var r=Ptt(null);return r.options=ll({async:!0,ssr:!1},e),r}var are=function(e){var r=e.sideCar,n=nre(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return E.createElement(o,ll({},n))};are.isSideCarExport=!0;function Ott(e,r){return e.useMedium(r),are}var ire=Mtt(),C7=function(){},v_=E.forwardRef(function(e,r){var n=E.useRef(null),o=E.useState({onScrollCapture:C7,onWheelCapture:C7,onTouchMoveCapture:C7}),a=o[0],i=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,y=e.noIsolation,x=e.inert,w=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,_=e.gapMode,T=nre(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,N=Rtt([n,r]),$=ll(ll({},T),a);return E.createElement(E.Fragment,null,d&&E.createElement(A,{sideCar:ire,removeScrollBar:u,shards:h,noRelative:g,noIsolation:y,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:_}),s?E.cloneElement(E.Children.only(l),ll(ll({},$),{ref:N})):E.createElement(C,ll({},$,{className:c,ref:N}),l))});v_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v_.classNames={fullWidth:b_,zeroRight:y_};var Dtt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ltt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=Dtt();return r&&e.setAttribute("nonce",r),e}function Itt(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function ztt(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var jtt=function(){var e=0,r=null;return{add:function(n){e==0&&(r=Ltt())&&(Itt(r,n),ztt(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Btt=function(){var e=jtt();return function(r,n){E.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},sre=function(){var e=Btt(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},Ftt={left:0,top:0,right:0,gap:0},T7=function(e){return parseInt(e||"",10)||0},Htt=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[T7(n),T7(o),T7(a)]},Utt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ftt;var r=Htt(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},Vtt=sre(),Tm="data-scroll-locked",qtt=function(e,r,n,o){var a=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(Ctt,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(l,"px ").concat(o,`;
  }
  body[`).concat(Tm,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(l,"px ").concat(o,`;
    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(y_,` {
    right: `).concat(l,"px ").concat(o,`;
  }
  
  .`).concat(b_,` {
    margin-right: `).concat(l,"px ").concat(o,`;
  }
  
  .`).concat(y_," .").concat(y_,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(b_," .").concat(b_,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(Tm,`] {
    `).concat(Ttt,": ").concat(l,`px;
  }
`)},lre=function(){var e=parseInt(document.body.getAttribute(Tm)||"0",10);return isFinite(e)?e:0},Ytt=function(){E.useEffect(function(){return document.body.setAttribute(Tm,(lre()+1).toString()),function(){var e=lre()-1;e<=0?document.body.removeAttribute(Tm):document.body.setAttribute(Tm,e.toString())}},[])},Wtt=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;Ytt();var i=E.useMemo(function(){return Utt(a)},[a]);return E.createElement(Vtt,{styles:qtt(i,!r,a,n?"":"!important")})},A7=!1;if(typeof window<"u")try{var x_=Object.defineProperty({},"passive",{get:function(){return A7=!0,!0}});window.addEventListener("test",x_,x_),window.removeEventListener("test",x_,x_)}catch{A7=!1}var Am=A7?{passive:!1}:!1,Xtt=function(e){return e.tagName==="TEXTAREA"},cre=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xtt(e)&&n[r]==="visible")},Gtt=function(e){return cre(e,"overflowY")},Ktt=function(e){return cre(e,"overflowX")},ure=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=dre(e,o);if(a){var i=hre(e,o),s=i[1],l=i[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Ztt=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},Qtt=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},dre=function(e,r){return e==="v"?Gtt(r):Ktt(r)},hre=function(e,r){return e==="v"?Ztt(r):Qtt(r)},Jtt=function(e,r){return e==="h"&&r==="rtl"?-1:1},ert=function(e,r,n,o,a){var i=Jtt(e,window.getComputedStyle(r).direction),s=i*o,l=n.target,c=r.contains(l),u=!1,d=s>0,h=0,p=0;do{if(!l)break;var g=hre(e,l),y=g[0],x=g[1],w=g[2],k=x-w-i*y;(y||k)&&dre(e,l)&&(h+=k,p+=y);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&l!==document.body||c&&(r.contains(l)||r===l));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(u=!0),u},w_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fre=function(e){return[e.deltaX,e.deltaY]},pre=function(e){return e&&"current"in e?e.current:e},trt=function(e,r){return e[0]===r[0]&&e[1]===r[1]},rrt=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},nrt=0,Nm=[];function ort(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState(nrt++)[0],i=E.useState(sre)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=Stt([e.lockRef.current],(e.shards||[]).map(pre)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var k=w_(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],A,N=x.target,$=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&$==="h"&&N.type==="range")return!1;var R=ure($,N);if(!R)return!0;if(R?A=$:(A=$==="v"?"h":"v",R=ure($,N)),!R)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=A),!A)return!0;var M=o.current||A;return ert(M,w,x,M==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!Nm.length||Nm[Nm.length-1]!==i)){var k="deltaY"in w?fre(w):w_(w),C=r.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&trt(A.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(s.current.shards||[]).map(pre).filter(Boolean).filter(function(A){return A.contains(w.target)}),T=_.length>0?l(w,_[0]):!s.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),u=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:art(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=E.useCallback(function(x){n.current=w_(x),o.current=void 0},[]),h=E.useCallback(function(x){u(x.type,fre(x),x.target,l(x,e.lockRef.current))},[]),p=E.useCallback(function(x){u(x.type,w_(x),x.target,l(x,e.lockRef.current))},[]);E.useEffect(function(){return Nm.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Am),document.addEventListener("touchmove",c,Am),document.addEventListener("touchstart",d,Am),function(){Nm=Nm.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,Am),document.removeEventListener("touchmove",c,Am),document.removeEventListener("touchstart",d,Am)}},[]);var g=e.removeScrollBar,y=e.inert;return E.createElement(E.Fragment,null,y?E.createElement(i,{styles:rrt(a)}):null,g?E.createElement(Wtt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function art(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const irt=Ott(ire,ort);var mre=E.forwardRef(function(e,r){return E.createElement(v_,ll({},e,{ref:r,sideCar:irt}))});mre.classNames=v_.classNames;function Mo(e){return Object.keys(e)}function srt(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function lrt(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function k_(e){const r=lrt(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function gre(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function yre(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?gre(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?gre(i):i}}return o}return n}const Fe=yre("rem",{shouldScale:!0});yre("em");function Nu(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function bre(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function xs(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function Ma(e){const r=E.createContext(null);return[({children:n,value:o})=>b.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function Rm(e=null){const r=E.createContext(e);return[({children:n,value:o})=>b.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function vre(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function Hy(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function crt(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function urt(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].disabled)return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].disabled)return o}return e}function drt(e,r,n){return Hy(e,n)===Hy(r,n)}function N7({parentSelector:e,siblingSelector:r,onKeyDown:n,loop:o=!0,activateOnFocus:a=!1,dir:i="rtl",orientation:s}){return l=>{n?.(l);const c=Array.from(Hy(l.currentTarget,e)?.querySelectorAll(r)||[]).filter(y=>drt(l.currentTarget,y,e)),u=c.findIndex(y=>l.currentTarget===y),d=urt(u,c,o),h=crt(u,c,o),p=i==="rtl"?h:d,g=i==="rtl"?d:h;switch(l.key){case"ArrowRight":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[p].focus(),a&&c[p].click());break}case"ArrowLeft":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[h].focus(),a&&c[h].click());break}case"ArrowDown":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[d].focus(),a&&c[d].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const y=c.length-1;!c[y].disabled&&c[y].focus();break}}}}const hrt={app:100,modal:200,popover:300,overlay:400,max:9999};function ws(e){return hrt[e]}const frt=()=>{};function prt(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||frt:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function er(e,r="size",n=!0){if(e!==void 0)return bre(e)?n?Fe(e):e:`var(--${r}-${e})`}function Jn(e){return er(e,"mantine-spacing")}function un(e){return e===void 0?"var(--mantine-radius-default)":er(e,"mantine-radius")}function Oo(e){return er(e,"mantine-font-size")}function mrt(e){return er(e,"mantine-line-height",!1)}function R7(e){if(e)return er(e,"mantine-shadow",!1)}function En(e,r){return n=>{e?.(n),r?.(n)}}function grt(e,r){return e in r?k_(r[e]):k_(e)}function $7(e,r){const n=e.map(o=>({value:o,px:grt(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function ks(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function $m(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function P7(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function yrt(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in r)||e[i]!==r[i]&&!(Number.isNaN(e[i])&&Number.isNaN(r[i])))return!1}return!0}function wh(e){const r=E.useRef(e);return E.useEffect(()=>{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function __(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=wh(e),s=E.useRef(0),l=E.useMemo(()=>{const c=Object.assign((...u)=>{window.clearTimeout(s.current);const d=c._isFirstCall;c._isFirstCall=!1;function h(){window.clearTimeout(s.current),s.current=0,c._isFirstCall=!0}if(a&&d){i(...u);const y=()=>{h()},x=()=>{s.current!==0&&(h(),i(...u))},w=()=>{h()};c.flush=x,c.cancel=w,s.current=window.setTimeout(y,n);return}if(a&&!d){const y=()=>{s.current!==0&&(h(),i(...u))},x=()=>{h()};c.flush=y,c.cancel=x;const w=()=>{h()};s.current=window.setTimeout(w,n);return}const p=()=>{s.current!==0&&(h(),i(...u))},g=()=>{h()};c.flush=p,c.cancel=g,s.current=window.setTimeout(p,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return E.useEffect(()=>()=>{o?l.flush():l.cancel()},[l,o]),l}const brt=["mousedown","touchstart"];function xre(e,r,n){const o=E.useRef(null),a=r||brt;return E.useEffect(()=>{const i=s=>{const{target:l}=s??{};if(Array.isArray(n)){const c=!document.body.contains(l)&&l.tagName!=="HTML";n.every(u=>!!u&&!s.composedPath().includes(u))&&!c&&e()}else o.current&&!o.current.contains(l)&&e()};return a.forEach(s=>document.addEventListener(s,i)),()=>{a.forEach(s=>document.removeEventListener(s,i))}},[o,e,n]),o}function vrt(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function xrt(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function wrt(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:xrt(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),vrt(i,s=>a(s.matches))}catch{return}},[e]),o||!1}const M7=typeof document<"u"?E.useLayoutEffect:E.useEffect;function kh(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function wre({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return kh(()=>{let a=-1;const i=s=>{s.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const krt=/input|select|textarea|button|object/,kre="a, input, select, textarea, button, object, [tabindex]";function _rt(e){return e.style.display==="none"}function Ert(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(_rt(r))return!1;r=r.parentNode}return!0}function _re(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function O7(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(_re(e));return(krt.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Ert(e)}function Ere(e){const r=_re(e);return(Number.isNaN(r)||r>=0)&&O7(e)}function Srt(e){return Array.from(e.querySelectorAll(kre)).filter(Ere)}function Crt(e,r){const n=Srt(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===s.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const l=n[r.shiftKey?n.length-1:0];l&&l.focus()}function Trt(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const s=Array.from(a.querySelectorAll(kre));i=s.find(Ere)||s.find(O7)||null,!i&&O7(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&Crt(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const Art=Gr.useId||(()=>{});function Nrt(){const e=Art();return e?`mantine-${e.replace(/:/g,"")}`:""}function _s(e){const r=Nrt(),[n,o]=E.useState(r);return M7(()=>{o(P7())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function Rrt(e,r,n){E.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function D7(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function Sre(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=D7(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():D7(o,null)}),r.clear()}}}function Jr(...e){return E.useCallback(Sre(...e),e)}function $rt(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[s,l]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.useCallback(u=>{if(c.current&&(c.current(),c.current=null),!u)return;const d=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const A=u.getBoundingClientRect();if(A.width&&A.height){const N=$m((_-A.left)/A.width,0,1);e({x:n==="ltr"?N:1-N,y:$m((T-A.top)/A.height,0,1)})}}})},h=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",y),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",y)},p=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",y)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),l(!0),h())},y=()=>{a.current&&o.current&&(a.current=!1,l(!1),p(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>d({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),d({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};u.addEventListener("mousedown",x),u.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{u.removeEventListener("mousedown",x),u.removeEventListener("touchstart",k)}},[n,e]),active:s}}function Ru({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(l,...c)=>{i(l),o?.(l,...c)},!1]}function L7(e,r){return wrt("(prefers-reduced-motion: reduce)",e,r)}function Prt(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n<e.length;n+=1)if(!yrt(e[n],r[n]))return!1;return!0}function Mrt(e){const r=E.useRef([]),n=E.useRef(0);return Prt(r.current,e)||(r.current=e,n.current+=1),[n.current]}function Ort(e,r){E.useEffect(e,Mrt(r))}function Drt(e=!1,r={}){const[n,o]=E.useState(e),a=E.useCallback(()=>{o(l=>l||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(l=>l&&(r.onClose?.(),!1))},[r.onClose]),s=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:s}]}function Lrt(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...s)=>{o.current||(o.current=window.setTimeout(()=>{e(s),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function Irt(e){const r=E.useRef(void 0);return E.useEffect(()=>{r.current=e},[e]),r.current}function zrt(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function jrt(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function Brt(){return typeof process<"u"&&process.env?"production":"development"}function Cre(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function Tre(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e)<Math.abs(n-e)?o:n)}function E_(e){const r=Gr.version;return typeof Gr.version!="string"||r.startsWith("18.")?e?.ref:e?.props?.ref}function Are(e){var r,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=Are(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function eo(){for(var e,r,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=Are(e))&&(o&&(o+=" "),o+=r);return o}const Frt={};function Hrt(e){const r={};return e.forEach(n=>{Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=eo(r[o],a):r[o]=a})}),r}function S_({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||Frt);return Hrt(a)}function C_({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const Urt=E.createContext(null);function _h(){const e=E.useContext(Urt);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function Vrt(){return _h().classNamesPrefix}function qrt(){return _h().getStyleNonce}function Yrt(){return _h().withStaticClasses}function Wrt(){return _h().headless}function Xrt(){return _h().stylesTransform?.sx}function Grt(){return _h().stylesTransform?.styles}function T_(){return _h().env||"default"}function Krt(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Zrt(e){let r=e.replace("#","");if(r.length===3){const s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(r.length===8){const s=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:s}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function Qrt(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function Jrt(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*i-1))*a,c=o/60,u=l*(1-Math.abs(c%2-1)),d=i-l/2;let h,p,g;return c>=0&&c<1?(h=l,p=u,g=0):c>=1&&c<2?(h=u,p=l,g=0):c>=2&&c<3?(h=0,p=l,g=u):c>=3&&c<4?(h=0,p=u,g=l):c>=4&&c<5?(h=u,p=0,g=l):(h=l,p=0,g=u),{r:Math.round((h+d)*255),g:Math.round((p+d)*255),b:Math.round((g+d)*255),a:s||1}}function Nre(e){return Krt(e)?Zrt(e):e.startsWith("rgb")?Qrt(e):e.startsWith("hsl")?Jrt(e):{r:0,g:0,b:0,a:1}}function Uy(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function I7(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function ent(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function tnt(e){if(e.startsWith("oklch("))return(ent(e)||0)/100;const{r,g:n,b:o}=Nre(e),a=r/255,i=n/255,s=o/255,l=I7(a),c=I7(i),u=I7(s);return .2126*l+.7152*c+.0722*u}function Vy(e,r=.179){return e.startsWith("var(")?!1:tnt(e)>r}function Eh({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:Vy(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Vy(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:Vy(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,s=o in r.colors;if(s){const l=i!==void 0?r.colors[o][i]:r.colors[o][Uy(r,n||"light")];return{color:o,value:l,shade:i,isThemeColor:s,isLight:Vy(l,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:Vy(e,r.luminanceThreshold),shade:i,variable:void 0}}function qo(e,r){const n=Eh({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function rnt(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=qo(n.from,r),a=qo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function Rre(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=Nre(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const Pm=Rre,nnt={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},$re="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",ont={scale:1,fontSmoothing:!0,white:"#fff",black:"#000",colors:nnt,primaryShade:{light:6,dark:8},primaryColor:"blue",autoContrast:!1,luminanceThreshold:.3,fontFamily:$re,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",cursorType:"default",defaultRadius:"sm",headings:{fontFamily:$re,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Fe(34),lineHeight:"1.3"},h2:{fontSize:Fe(26),lineHeight:"1.35"},h3:{fontSize:Fe(22),lineHeight:"1.4"},h4:{fontSize:Fe(18),lineHeight:"1.45"},h5:{fontSize:Fe(16),lineHeight:"1.5"},h6:{fontSize:Fe(14),lineHeight:"1.5"}}},fontSizes:{xs:Fe(12),sm:Fe(14),md:Fe(16),lg:Fe(18),xl:Fe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Fe(2),sm:Fe(4),md:Fe(8),lg:Fe(16),xl:Fe(32)},spacing:{xs:Fe(10),sm:Fe(12),md:Fe(16),lg:Fe(20),xl:Fe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), 0 ${Fe(1)} ${Fe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(10)} ${Fe(15)} ${Fe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Fe(7)} ${Fe(7)} ${Fe(-5)}`,md:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(20)} ${Fe(25)} ${Fe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Fe(10)} ${Fe(10)} ${Fe(-5)}`,lg:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(28)} ${Fe(23)} ${Fe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Fe(12)} ${Fe(12)} ${Fe(-7)}`,xl:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(36)} ${Fe(28)} ${Fe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Fe(17)} ${Fe(17)} ${Fe(-7)}`}},ant=E.createContext(null);function yo(){const e=E.useContext(ant);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function z7({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&Eh({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Pre(e,r){return z7({color:e.colors[e.primaryColor][Uy(e,r)],theme:e,autoContrast:null})}function A_({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const l=Uy(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${l===9?8:l+1})`,[`--mantine-color-${o}-light`]:Pm(e.colors[r][l],.1),[`--mantine-color-${o}-light-hover`]:Pm(e.colors[r][l],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline-hover`]:Pm(e.colors[r][l],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=Uy(e,"dark"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:Pm(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:Pm(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:Pm(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...s}:s}function int(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Mm(e,r,n){Mo(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}(e=>{const r=Uy(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Fe(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Pre(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Pre(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Mm(o.variables,e.breakpoints,"breakpoint"),Mm(o.variables,e.spacing,"spacing"),Mm(o.variables,e.fontSizes,"font-size"),Mm(o.variables,e.lineHeights,"line-height"),Mm(o.variables,e.shadows,"shadow"),Mm(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,s)=>{o.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${e.primaryColor}-${s})`}),Mo(e.colors).forEach(i=>{const s=e.colors[i];if(int(s)){Object.assign(o.light,A_({theme:e,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,A_({theme:e,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((l,c)=>{o.variables[`--mantine-color-${i}-${c}`]=l}),Object.assign(o.light,A_({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,A_({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return Mo(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o})(ont);function j7({classNames:e,styles:r,props:n,stylesCtx:o}){const a=yo();return{resolvedClassNames:S_({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:C_({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const snt={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function lnt({theme:e,options:r,unstyled:n}){return eo(r?.focusable&&!n&&(e.focusClassName||snt[e.focusRing]),r?.active&&!n&&e.activeClassName)}function cnt({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return S_({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function Mre({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return S_({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function unt({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function dnt({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function hnt({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function fnt({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>S_({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function pnt({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function mnt({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:s,unstyled:l,className:c,rootSelector:u,props:d,stylesCtx:h,withStaticClasses:p,headless:g,transformedStyles:y}){return eo(lnt({theme:e,options:r,unstyled:l||g}),fnt({theme:e,themeName:n,selector:o,props:d,stylesCtx:h}),pnt({options:r,classes:s,selector:o,unstyled:l}),Mre({selector:o,stylesCtx:h,theme:e,classNames:i,props:d}),Mre({selector:o,stylesCtx:h,theme:e,classNames:y,props:d}),cnt({selector:o,stylesCtx:h,options:r,props:d,theme:e}),unt({rootSelector:u,selector:o,className:c}),dnt({selector:o,classes:s,unstyled:l||g}),p&&!g&&hnt({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function gnt({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>C_({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,s)=>({...i,...s}),{})}function B7({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...B7({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function ynt(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...Nu(n[o])}}),r),{})}function bnt({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:s,headless:l}){return ynt([l?{}:r?.(n,o,a),...s.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function vnt({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:s,styles:l,style:c,vars:u,varsResolver:d,headless:h,withStylesTransform:p}){return{...!p&&gnt({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!p&&C_({theme:e,styles:l,props:a,stylesCtx:i})[n],...!p&&C_({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...bnt({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:h}),...s===n?B7({style:c,theme:e}):null,...B7({style:o?.style,theme:e})}}function xnt({props:e,stylesCtx:r,themeName:n}){const o=yo(),a=Grt()?.();return{getTransformedStyles:i=>a?[...i.map(s=>a(s,{props:e,theme:o,ctx:r})),...n.map(s=>a(o.components[s]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function dt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:s="root",unstyled:l,classNames:c,styles:u,vars:d,varsResolver:h,attributes:p}){const g=yo(),y=Vrt(),x=Yrt(),w=Wrt(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=xnt({props:n,stylesCtx:o,themeName:k});return(T,A)=>({className:mnt({theme:g,options:A,themeName:k,selector:T,classNamesPrefix:y,classNames:c,classes:r,unstyled:l,className:a,rootSelector:s,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([A?.styles,u])}),style:vnt({theme:g,themeName:k,selector:T,options:A,props:n,stylesCtx:o,rootSelector:s,styles:u,style:i,vars:d,varsResolver:h,headless:w,withStylesTransform:C}),...p?.[T]})}function wnt(e,r){return typeof e=="boolean"?e:r.autoContrast}function $e(e,r,n){const o=yo(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...Nu(n)}}function F7(e){return Mo(e).reduce((r,n)=>e[n]!==void 0?`${r}${srt(n)}:${e[n]};`:r,"").trim()}function knt({selector:e,styles:r,media:n,container:o}){const a=r?F7(r):"",i=Array.isArray(n)?n.map(l=>`@media${l.query}{${e}{${F7(l.styles)}}}`):[],s=Array.isArray(o)?o.map(l=>`@container ${l.query}{${e}{${F7(l.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${s.join("")}`.trim()}function Om(e){const r=qrt();return b.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:knt(e)}})}function H7(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:u,p:d,px:h,py:p,pt:g,pb:y,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:A,c:N,opacity:$,ff:R,fz:M,fw:O,lts:B,ta:I,lh:Y,fs:D,tt:V,td:L,w:U,miw:q,maw:X,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:G,bga:Z,pos:oe,top:ee,left:re,bottom:he,right:Ce,inset:ce,display:de,flex:be,hiddenFrom:De,visibleFrom:Ge,lightHidden:Xe,darkHidden:_t,sx:Qe,...St}=e;return{styleProps:Nu({m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:u,p:d,px:h,py:p,pt:g,pb:y,pl:x,pr:w,pe:k,ps:C,bd:_,bg:A,c:N,opacity:$,ff:R,fz:M,fw:O,lts:B,ta:I,lh:Y,fs:D,tt:V,td:L,w:U,miw:q,maw:X,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:G,bga:Z,pos:oe,top:ee,left:re,bottom:he,right:Ce,inset:ce,display:de,flex:be,bdrs:T,hiddenFrom:De,visibleFrom:Ge,lightHidden:Xe,darkHidden:_t,sx:Qe}),rest:St}}const _nt={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function U7(e,r){const n=Eh({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Ent(e,r){const n=Eh({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:U7(e,r)}function Snt(e,r){if(typeof e=="number")return Fe(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(s=>s.trim()!=="");let i=`${Fe(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${U7(a.join(" "),r)}`),i.trim()}return e}const Ore={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function Cnt(e){return typeof e=="string"&&e in Ore?Ore[e]:e}const Tnt=["h1","h2","h3","h4","h5","h6"];function Ant(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&Tnt.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Fe(e):e}function Nnt(e){return e}const Rnt=["h1","h2","h3","h4","h5","h6"];function $nt(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&Rnt.includes(e)?`var(--mantine-${e}-line-height)`:e}function Pnt(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Fe(e):e}function Mnt(e){return typeof e=="number"?Fe(e):e}function Ont(e,r){if(typeof e=="number")return Fe(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return Fe(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const V7={color:U7,textColor:Ent,fontSize:Ant,spacing:Ont,radius:Pnt,identity:Nnt,size:Mnt,lineHeight:$nt,fontFamily:Cnt,border:Snt};function Dre(e){return e.replace("(min-width: ","").replace("em)","")}function Dnt({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(Dre(o))-Number(Dre(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function Lnt(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function Int(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function znt(e){return typeof e=="object"&&e!==null?Mo(e).filter(r=>r!=="base"):[]}function jnt(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function Lre({styleProps:e,data:r,theme:n}){return Dnt(Mo(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],s=Array.isArray(i.property)?i.property:[i.property],l=Int(e[a]);if(!Lnt(e[a]))return s.forEach(u=>{o.inlineStyles[u]=V7[i.type](l,n)}),o;o.hasResponsiveStyles=!0;const c=znt(e[a]);return s.forEach(u=>{l!=null&&(o.styles[u]=V7[i.type](l,n)),c.forEach(d=>{const h=`(min-width: ${n.breakpoints[d]})`;o.media[h]={...o.media[h],[u]:V7[i.type](jnt(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function qy(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function q7(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...q7(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Ire(e){return e.startsWith("data-")?e:`data-${e}`}function Bnt(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[Ire(n)]=e[n]),r},{})}function zre(e){return e?typeof e=="string"?{[Ire(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...zre(n)}),{}):Bnt(e):null}function Y7(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...Y7(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Fnt({theme:e,style:r,vars:n,styleProps:o}){const a=Y7(r,e),i=Y7(n,e);return{...a,...i,...o}}const jre=E.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:s,hiddenFrom:l,visibleFrom:c,lightHidden:u,darkHidden:d,renderRoot:h,__size:p,...g},y)=>{const x=yo(),w=e||"div",{styleProps:k,rest:C}=H7(g),_=Xrt()?.()?.(k.sx),T=qy(),A=Lre({styleProps:k,theme:x,data:_nt}),N={ref:y,style:Fnt({theme:x,style:r,vars:n,styleProps:A.inlineStyles}),className:eo(o,_,{[T]:A.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":bre(s)?void 0:s||void 0,size:p,...zre(i),...C};return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(Om,{selector:`.${T}`,styles:A.styles,media:A.media}),typeof h=="function"?h(N):b.jsx(w,{...N})]})});jre.displayName="@mantine/core/Box";const Oe=jre;function Bre(e){return e}function Ze(e){const r=E.forwardRef(e);return r.extend=Bre,r.withProps=n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function zn(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=Bre,r}const Hnt=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function cc(){return E.useContext(Hnt)}function Unt(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function W7(e){return e?.current?e.current.scrollHeight:"auto"}const N_=typeof window<"u"&&window.requestAnimationFrame,Fre=0,Vnt=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function qnt({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),s=Vnt(a),[l,c]=E.useState(o?{}:s),u=y=>{ji.flushSync(()=>c(y))},d=y=>{u(x=>({...x,...y}))};function h(y){const x=e||Unt(y);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}kh(()=>{typeof N_=="function"&&N_(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),N_(()=>{const y=W7(i);d({...h(y),height:y})})}:()=>{const y=W7(i);d({...h(y),willChange:"height",height:y}),N_(()=>d({height:Fre,overflow:"hidden"}))})},[o]);const p=y=>{if(!(y.target!==i.current||y.propertyName!=="height"))if(o){const x=W7(i);x===l.height?u({}):d({height:x}),n()}else l.height===Fre&&(u(s),n())};function g({style:y={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:Sre(i,k),onTransitionEnd:p,style:{boxSizing:"border-box",...y,...l}};return Gr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const Ynt={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Hre=Ze((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:s,onTransitionEnd:l,animateOpacity:c,keepMounted:u,...d}=$e("Collapse",Ynt,e),h=yo(),p=L7(),g=h.respectReducedMotion&&p?0:a,y=qnt({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:l,keepMounted:u});return g===0?o?b.jsx(Oe,{...d,children:n}):null:b.jsx(Oe,{...y({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...q7(s,h)},ref:r,...d}),children:n})});Hre.displayName="@mantine/core/Collapse";function R_(){return typeof window<"u"}function Dm(e){return Ure(e)?(e.nodeName||"").toLowerCase():"#document"}function sa(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function cl(e){var r;return(r=(Ure(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Ure(e){return R_()?e instanceof Node||e instanceof sa(e).Node:!1}function Or(e){return R_()?e instanceof Element||e instanceof sa(e).Element:!1}function Oa(e){return R_()?e instanceof HTMLElement||e instanceof sa(e).HTMLElement:!1}function X7(e){return!R_()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sa(e).ShadowRoot}const Wnt=new Set(["inline","contents"]);function Yy(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=vi(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!Wnt.has(a)}const Xnt=new Set(["table","td","th"]);function Gnt(e){return Xnt.has(Dm(e))}const Knt=[":popover-open",":modal"];function $_(e){return Knt.some(r=>{try{return e.matches(r)}catch{return!1}})}const Znt=["transform","translate","scale","rotate","perspective"],Qnt=["transform","translate","scale","rotate","perspective","filter"],Jnt=["paint","layout","strict","content"];function G7(e){const r=P_(),n=Or(e)?vi(e):e;return Znt.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||Qnt.some(o=>(n.willChange||"").includes(o))||Jnt.some(o=>(n.contain||"").includes(o))}function eot(e){let r=dc(e);for(;Oa(r)&&!uc(r);){if(G7(r))return r;if($_(r))return null;r=dc(r)}return null}function P_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tot=new Set(["html","body","#document"]);function uc(e){return tot.has(Dm(e))}function vi(e){return sa(e).getComputedStyle(e)}function M_(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dc(e){if(Dm(e)==="html")return e;const r=e.assignedSlot||e.parentNode||X7(e)&&e.host||cl(e);return X7(r)?r.host:r}function Vre(e){const r=dc(e);return uc(r)?e.ownerDocument?e.ownerDocument.body:e.body:Oa(r)&&Yy(r)?r:Vre(r)}function hc(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=Vre(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),s=sa(a);if(i){const l=K7(s);return r.concat(s,s.visualViewport||[],Yy(a)?a:[],l&&n?hc(l):[])}return r.concat(a,hc(a,[],n))}function K7(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const rot=["top","right","bottom","left"],Es=Math.min,Do=Math.max,O_=Math.round,D_=Math.floor,ul=e=>({x:e,y:e}),not={left:"right",right:"left",bottom:"top",top:"bottom"},oot={start:"end",end:"start"};function Z7(e,r,n){return Do(e,Es(r,n))}function dl(e,r){return typeof e=="function"?e(r):e}function Ss(e){return e.split("-")[0]}function Lm(e){return e.split("-")[1]}function Q7(e){return e==="x"?"y":"x"}function J7(e){return e==="y"?"height":"width"}const aot=new Set(["top","bottom"]);function Cs(e){return aot.has(Ss(e))?"y":"x"}function eN(e){return Q7(Cs(e))}function iot(e,r,n){n===void 0&&(n=!1);const o=Lm(e),a=eN(e),i=J7(a);let s=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=L_(s)),[s,L_(s)]}function sot(e){const r=L_(e);return[tN(e),r,tN(r)]}function tN(e){return e.replace(/start|end/g,r=>oot[r])}const qre=["left","right"],Yre=["right","left"],lot=["top","bottom"],cot=["bottom","top"];function uot(e,r,n){switch(e){case"top":case"bottom":return n?r?Yre:qre:r?qre:Yre;case"left":case"right":return r?lot:cot;default:return[]}}function dot(e,r,n,o){const a=Lm(e);let i=uot(Ss(e),n==="start",o);return a&&(i=i.map(s=>s+"-"+a),r&&(i=i.concat(i.map(tN)))),i}function L_(e){return e.replace(/left|right|bottom|top/g,r=>not[r])}function hot(e){return{top:0,right:0,bottom:0,left:0,...e}}function rN(e){return typeof e!="number"?hot(e):{top:e,right:e,bottom:e,left:e}}function Im(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function fot(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function pot(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function mot(){return/apple/i.test(navigator.vendor)}function got(){return fot().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function yot(){return pot().includes("jsdom/")}const Wre="data-floating-ui-focusable",bot="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Xre(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function Wy(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&X7(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function zm(e){return"composedPath"in e?e.composedPath()[0]:e.target}function nN(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function vot(e){return e.matches("html,body")}function Sh(e){return e?.ownerDocument||document}function xot(e){return Oa(e)&&e.matches(bot)}function wot(e){if(!e||yot())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function kot(e){return e?e.hasAttribute(Wre)?e:e.querySelector("["+Wre+"]")||e:null}function I_(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...I_(e,o.id,n)])}function _ot(e){return"nativeEvent"in e}function oN(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Eot=typeof document<"u",Sot=function(){},hl=Eot?E.useLayoutEffect:Sot;const Cot={...Vv};function z_(e){const r=E.useRef(e);return hl(()=>{r.current=e}),r}const Tot=Cot.useInsertionEffect,Aot=Tot||(e=>e());function fl(e){const r=E.useRef(()=>{});return Aot(()=>{r.current=e}),E.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r.current==null?void 0:r.current(...o)},[])}function Gre(e,r,n){let{reference:o,floating:a}=e;const i=Cs(r),s=eN(r),l=J7(s),c=Ss(r),u=i==="y",d=o.x+o.width/2-a.width/2,h=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-a.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Lm(r)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const Not=async(e,r,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(r));let u=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:d,y:h}=Gre(u,o,c),p=o,g={},y=0;for(let x=0;x<l.length;x++){const{name:w,fn:k}=l[x],{x:C,y:_,data:T,reset:A}=await k({x:d,y:h,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:r}});d=C??d,h=_??h,g={...g,[w]:{...g[w],...T}},A&&y<=50&&(y++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:a}):A.rects),{x:d,y:h}=Gre(u,p,c)),x=-1)}return{x:d,y:h,placement:p,strategy:a,middlewareData:g}};async function Xy(e,r){var n;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=dl(r,e),y=rN(g),x=l[p?h==="floating"?"reference":"floating":h],w=Im(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),k=h==="floating"?{x:o,y:a,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Im(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:C,strategy:c}):k);return{top:(w.top-T.top+y.top)/_.y,bottom:(T.bottom-w.bottom+y.bottom)/_.y,left:(w.left-T.left+y.left)/_.x,right:(T.right-w.right+y.right)/_.x}}const Rot=e=>({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=r,{element:u,padding:d=0}=dl(e,r)||{};if(u==null)return{};const h=rN(d),p={x:n,y:o},g=eN(a),y=J7(g),x=await s.getDimensions(u),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[y]+i.reference[g]-p[g]-i.floating[y],A=p[g]-i.reference[g],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let $=N?N[_]:0;(!$||!await(s.isElement==null?void 0:s.isElement(N)))&&($=l.floating[_]||i.floating[y]);const R=T/2-A/2,M=$/2-x[y]/2-1,O=Es(h[k],M),B=Es(h[C],M),I=O,Y=$-x[y]-B,D=$/2-x[y]/2+R,V=Z7(I,D,Y),L=!c.arrow&&Lm(a)!=null&&D!==V&&i.reference[y]/2-(D<I?O:B)-x[y]/2<0,U=L?D<I?D-I:D-Y:0;return{[g]:p[g]+U,data:{[g]:V,centerOffset:D-V-U,...L&&{alignmentOffset:U}},reset:L}}}),$ot=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=r,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...w}=dl(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Ss(a),C=Cs(l),_=Ss(l)===l,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),A=p||(_||!x?[L_(l)]:sot(l)),N=y!=="none";!p&&N&&A.push(...dot(l,x,y,T));const $=[l,...A],R=await Xy(r,w),M=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&M.push(R[k]),h){const D=iot(a,s,T);M.push(R[D[0]],R[D[1]])}if(O=[...O,{placement:a,overflows:M}],!M.every(D=>D<=0)){var B,I;const D=(((B=i.flip)==null?void 0:B.index)||0)+1,V=$[D];if(V&&(!(h==="alignment"&&C!==Cs(V))||O.every(U=>Cs(U.placement)===C?U.overflows[0]>0:!0)))return{data:{index:D,overflows:O},reset:{placement:V}};let L=(I=O.filter(U=>U.overflows[0]<=0).sort((U,q)=>U.overflows[1]-q.overflows[1])[0])==null?void 0:I.placement;if(!L)switch(g){case"bestFit":{var Y;const U=(Y=O.filter(q=>{if(N){const X=Cs(q.placement);return X===C||X==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(X=>X>0).reduce((X,F)=>X+F,0)]).sort((q,X)=>q[1]-X[1])[0])==null?void 0:Y[0];U&&(L=U);break}case"initialPlacement":L=l;break}if(a!==L)return{reset:{placement:L}}}return{}}}};function Kre(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Zre(e){return rot.some(r=>e[r]>=0)}const Pot=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=dl(e,r);switch(o){case"referenceHidden":{const i=await Xy(r,{...a,elementContext:"reference"}),s=Kre(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zre(s)}}}case"escaped":{const i=await Xy(r,{...a,altBoundary:!0}),s=Kre(i,n.floating);return{data:{escapedOffsets:s,escaped:Zre(s)}}}default:return{}}}}};function Qre(e){const r=Es(...e.map(i=>i.left)),n=Es(...e.map(i=>i.top)),o=Do(...e.map(i=>i.right)),a=Do(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function Mot(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;a<r.length;a++){const i=r[a];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>Im(Qre(a)))}const Oot=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:s}=r,{padding:l=2,x:c,y:u}=dl(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),h=Mot(d),p=Im(Qre(d)),g=rN(l);function y(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&u!=null)return h.find(w=>c>w.left-g.left&&c<w.right+g.right&&u>w.top-g.top&&u<w.bottom+g.bottom)||p;if(h.length>=2){if(Cs(n)==="y"){const O=h[0],B=h[h.length-1],I=Ss(n)==="top",Y=O.top,D=B.bottom,V=I?O.left:B.left,L=I?O.right:B.right,U=L-V,q=D-Y;return{top:Y,bottom:D,left:V,right:L,width:U,height:q,x:V,y:Y}}const w=Ss(n)==="left",k=Do(...h.map(O=>O.right)),C=Es(...h.map(O=>O.left)),_=h.filter(O=>w?O.left===C:O.right===k),T=_[0].top,A=_[_.length-1].bottom,N=C,$=k,R=$-N,M=A-T;return{top:T,bottom:A,left:N,right:$,width:R,height:M,x:N,y:T}}return p}const x=await i.getElementRects({reference:{getBoundingClientRect:y},floating:o.floating,strategy:s});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},Jre=new Set(["left","top"]);async function Dot(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),s=Ss(n),l=Lm(n),c=Cs(n)==="y",u=Jre.has(s)?-1:1,d=i&&c?-1:1,h=dl(r,e);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(g=l==="end"?y*-1:y),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const Lot=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:s,middlewareData:l}=r,c=await Dot(r,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},Iot=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=dl(e,r),u={x:n,y:o},d=await Xy(r,c),h=Cs(Ss(a)),p=Q7(h);let g=u[p],y=u[h];if(i){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=g+d[w],_=g-d[k];g=Z7(C,g,_)}if(s){const w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",C=y+d[w],_=y-d[k];y=Z7(C,y,_)}const x=l.fn({...r,[p]:g,[h]:y});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[p]:i,[h]:s}}}}}},zot=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:s}=r,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=dl(e,r),d={x:n,y:o},h=Cs(a),p=Q7(h);let g=d[p],y=d[h];const x=dl(l,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=p==="y"?"height":"width",T=i.reference[p]-i.floating[_]+w.mainAxis,A=i.reference[p]+i.reference[_]-w.mainAxis;g<T?g=T:g>A&&(g=A)}if(u){var k,C;const _=p==="y"?"width":"height",T=Jre.has(Ss(a)),A=i.reference[h]-i.floating[_]+(T&&((k=s.offset)==null?void 0:k[h])||0)+(T?0:w.crossAxis),N=i.reference[h]+i.reference[_]+(T?0:((C=s.offset)==null?void 0:C[h])||0)-(T?w.crossAxis:0);y<A?y=A:y>N&&(y=N)}return{[p]:g,[h]:y}}}},jot=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...u}=dl(e,r),d=await Xy(r,u),h=Ss(a),p=Lm(a),g=Cs(a)==="y",{width:y,height:x}=i.floating;let w,k;h==="top"||h==="bottom"?(w=h,k=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(k=h,w=p==="end"?"top":"bottom");const C=x-d.top-d.bottom,_=y-d.left-d.right,T=Es(x-d[w],C),A=Es(y-d[k],_),N=!r.middlewareData.shift;let $=T,R=A;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(R=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&($=C),N&&!p){const O=Do(d.left,0),B=Do(d.right,0),I=Do(d.top,0),Y=Do(d.bottom,0);g?R=y-2*(O!==0||B!==0?O+B:Do(d.left,d.right)):$=x-2*(I!==0||Y!==0?I+Y:Do(d.top,d.bottom))}await c({...r,availableWidth:R,availableHeight:$});const M=await s.getDimensions(l.floating);return y!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}};function ene(e){const r=vi(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Oa(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:o,l=O_(n)!==i||O_(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function aN(e){return Or(e)?e:e.contextElement}function jm(e){const r=aN(e);if(!Oa(r))return ul(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=ene(r);let s=(i?O_(n.width):n.width)/o,l=(i?O_(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Bot=ul(0);function tne(e){const r=sa(e);return!P_()||!r.visualViewport?Bot:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Fot(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==sa(e)?!1:r}function Ch(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=aN(e);let s=ul(1);r&&(o?Or(o)&&(s=jm(o)):s=jm(e));const l=Fot(i,n,o)?tne(i):ul(0);let c=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,d=a.width/s.x,h=a.height/s.y;if(i){const p=sa(i),g=o&&Or(o)?sa(o):o;let y=p,x=K7(y);for(;x&&o&&g!==y;){const w=jm(x),k=x.getBoundingClientRect(),C=vi(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,h*=w.y,c+=_,u+=T,y=sa(x),x=K7(y)}}return Im({width:d,height:h,x:c,y:u})}function j_(e,r){const n=M_(e).scrollLeft;return r?r.left+n:Ch(cl(e)).left+n}function rne(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-j_(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function Hot(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",s=cl(o),l=r?$_(r.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=ul(1);const d=ul(0),h=Oa(o);if((h||!h&&!i)&&((Dm(o)!=="body"||Yy(s))&&(c=M_(o)),Oa(o))){const g=Ch(o);u=jm(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const p=s&&!h&&!i?rne(s,c):ul(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function Uot(e){return Array.from(e.getClientRects())}function Vot(e){const r=cl(e),n=M_(e),o=e.ownerDocument.body,a=Do(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=Do(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+j_(e);const l=-n.scrollTop;return vi(o).direction==="rtl"&&(s+=Do(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}const nne=25;function qot(e,r){const n=sa(e),o=cl(e),a=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const d=P_();(!d||d&&r==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const u=j_(o);if(u<=0){const d=o.ownerDocument,h=d.body,p=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(o.clientWidth-h.clientWidth-g);y<=nne&&(i-=y)}else u<=nne&&(i+=u);return{width:i,height:s,x:l,y:c}}const Yot=new Set(["absolute","fixed"]);function Wot(e,r){const n=Ch(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Oa(e)?jm(e):ul(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,u=o*i.y;return{width:s,height:l,x:c,y:u}}function one(e,r,n){let o;if(r==="viewport")o=qot(e,n);else if(r==="document")o=Vot(cl(e));else if(Or(r))o=Wot(r,n);else{const a=tne(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Im(o)}function ane(e,r){const n=dc(e);return n===r||!Or(n)||uc(n)?!1:vi(n).position==="fixed"||ane(n,r)}function Xot(e,r){const n=r.get(e);if(n)return n;let o=hc(e,[],!1).filter(l=>Or(l)&&Dm(l)!=="body"),a=null;const i=vi(e).position==="fixed";let s=i?dc(e):e;for(;Or(s)&&!uc(s);){const l=vi(s),c=G7(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&a&&Yot.has(a.position)||Yy(s)&&!c&&ane(e,s))?o=o.filter(u=>u!==s):a=l,s=dc(s)}return r.set(e,o),o}function Got(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?$_(r)?[]:Xot(r,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,u)=>{const d=one(r,u,a);return c.top=Do(d.top,c.top),c.right=Es(d.right,c.right),c.bottom=Es(d.bottom,c.bottom),c.left=Do(d.left,c.left),c},one(r,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Kot(e){const{width:r,height:n}=ene(e);return{width:r,height:n}}function Zot(e,r,n){const o=Oa(r),a=cl(r),i=n==="fixed",s=Ch(e,!0,i,r);let l={scrollLeft:0,scrollTop:0};const c=ul(0);function u(){c.x=j_(a)}if(o||!o&&!i)if((Dm(r)!=="body"||Yy(a))&&(l=M_(r)),o){const g=Ch(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&u();i&&!o&&a&&u();const d=a&&!o&&!i?rne(a,l):ul(0),h=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function iN(e){return vi(e).position==="static"}function ine(e,r){if(!Oa(e)||vi(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return cl(e)===n&&(n=n.ownerDocument.body),n}function sne(e,r){const n=sa(e);if($_(e))return n;if(!Oa(e)){let a=dc(e);for(;a&&!uc(a);){if(Or(a)&&!iN(a))return a;a=dc(a)}return n}let o=ine(e,r);for(;o&&Gnt(o)&&iN(o);)o=ine(o,r);return o&&uc(o)&&iN(o)&&!G7(o)?n:o||eot(e)||n}const Qot=async function(e){const r=this.getOffsetParent||sne,n=this.getDimensions,o=await n(e.floating);return{reference:Zot(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Jot(e){return vi(e).direction==="rtl"}const eat={convertOffsetParentRelativeRectToViewportRelativeRect:Hot,getDocumentElement:cl,getClippingRect:Got,getOffsetParent:sne,getElementRects:Qot,getClientRects:Uot,getDimensions:Kot,getScale:jm,isElement:Or,isRTL:Jot};function lne(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function tat(e,r){let n=null,o;const a=cl(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(l||r(),!p||!g)return;const y=D_(h),x=D_(a.clientWidth-(d+p)),w=D_(a.clientHeight-(h+g)),k=D_(d),C={rootMargin:-y+"px "+-x+"px "+-w+"px "+-k+"px",threshold:Do(0,Es(1,c))||1};let _=!0;function T(A){const N=A[0].intersectionRatio;if(N!==c){if(!_)return s();N?s(!1,N):o=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!lne(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function sN(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=aN(e),d=a||i?[...u?hc(u):[],...hc(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const h=u&&l?tat(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),u&&!c&&g.observe(u),g.observe(r));let y,x=c?Ch(e):null;c&&w();function w(){const k=Ch(e);x&&!lne(x,k)&&n(),x=k,y=requestAnimationFrame(w)}return n(),()=>{var k;d.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(y)}}const rat=Lot,nat=Iot,oat=$ot,aat=jot,iat=Pot,cne=Rot,sat=Oot,lat=zot,cat=(e,r,n)=>{const o=new Map,a={platform:eat,...n},i={...a.platform,_c:o};return Not(e,r,{...a,platform:i})};var uat=typeof document<"u",dat=function(){},B_=uat?E.useLayoutEffect:dat;function F_(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!F_(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!F_(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function une(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dne(e,r){const n=une(e);return Math.round(r*n)/n}function lN(e){const r=E.useRef(e);return B_(()=>{r.current=e}),r}function hat(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[p,g]=E.useState(o);F_(p,o)||g(o);const[y,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(q=>{q!==N.current&&(N.current=q,x(q))},[]),_=E.useCallback(q=>{q!==$.current&&($.current=q,k(q))},[]),T=i||y,A=s||w,N=E.useRef(null),$=E.useRef(null),R=E.useRef(d),M=c!=null,O=lN(c),B=lN(a),I=lN(u),Y=E.useCallback(()=>{if(!N.current||!$.current)return;const q={placement:r,strategy:n,middleware:p};B.current&&(q.platform=B.current),cat(N.current,$.current,q).then(X=>{const F={...X,isPositioned:I.current!==!1};D.current&&!F_(R.current,F)&&(R.current=F,ji.flushSync(()=>{h(F)}))})},[p,r,n,B,I]);B_(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(q=>({...q,isPositioned:!1})))},[u]);const D=E.useRef(!1);B_(()=>(D.current=!0,()=>{D.current=!1}),[]),B_(()=>{if(T&&(N.current=T),A&&($.current=A),T&&A){if(O.current)return O.current(T,A,Y);Y()}},[T,A,Y,O,M]);const V=E.useMemo(()=>({reference:N,floating:$,setReference:C,setFloating:_}),[C,_]),L=E.useMemo(()=>({reference:T,floating:A}),[T,A]),U=E.useMemo(()=>{const q={position:n,left:0,top:0};if(!L.floating)return q;const X=dne(L.floating,d.x),F=dne(L.floating,d.y);return l?{...q,transform:"translate("+X+"px, "+F+"px)",...une(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:F}},[n,l,L.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:Y,refs:V,elements:L,floatingStyles:U}),[d,Y,V,L,U])}const fat=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?cne({element:o.current,padding:a}).fn(n):{}:o?cne({element:o,padding:a}).fn(n):{}}}},hne=(e,r)=>({...rat(e),options:[e,r]}),cN=(e,r)=>({...nat(e),options:[e,r]}),fne=(e,r)=>({...lat(e),options:[e,r]}),H_=(e,r)=>({...oat(e),options:[e,r]}),pat=(e,r)=>({...aat(e),options:[e,r]}),mat=(e,r)=>({...iat(e),options:[e,r]}),Gy=(e,r)=>({...sat(e),options:[e,r]}),pne=(e,r)=>({...fat(e),options:[e,r]});function mne(e){const r=E.useRef(void 0),n=E.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const s=i,l=s(o);return typeof l=="function"?l:()=>{s(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const gat="data-floating-ui-focusable",gne="active",yne="selected",yat={...Vv};let bne=!1,bat=0;const vne=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+bat++;function vat(){const[e,r]=E.useState(()=>bne?vne():void 0);return hl(()=>{e==null&&r(vne())},[]),E.useEffect(()=>{bne=!0},[]),e}const xat=yat.useId,xne=xat||vat;function wat(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const kat=E.createContext(null),_at=E.createContext(null),uN=()=>{var e;return((e=E.useContext(kat))==null?void 0:e.id)||null},dN=()=>E.useContext(_at);function hN(e){return"data-floating-ui-"+e}function xi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const wne=hN("safe-polygon");function U_(e,r,n){if(n&&!oN(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function fN(e){return typeof e=="function"?e():e}function Eat(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:h=0,move:p=!0}=r,g=dN(),y=uN(),x=z_(u),w=z_(c),k=z_(n),C=z_(h),_=E.useRef(),T=E.useRef(-1),A=E.useRef(),N=E.useRef(-1),$=E.useRef(!0),R=E.useRef(!1),M=E.useRef(()=>{}),O=E.useRef(!1),B=fl(()=>{var U;const q=(U=a.current.openEvent)==null?void 0:U.type;return q?.includes("mouse")&&q!=="mousedown"});E.useEffect(()=>{if(!l)return;function U(q){let{open:X}=q;X||(xi(T),xi(N),$.current=!0,O.current=!1)}return i.on("openchange",U),()=>{i.off("openchange",U)}},[l,i]),E.useEffect(()=>{if(!l||!x.current||!n)return;function U(X){B()&&o(!1,X,"hover")}const q=Sh(s.floating).documentElement;return q.addEventListener("mouseleave",U),()=>{q.removeEventListener("mouseleave",U)}},[s.floating,n,o,l,x,B]);const I=E.useCallback(function(U,q,X){q===void 0&&(q=!0),X===void 0&&(X="hover");const F=U_(w.current,"close",_.current);F&&!A.current?(xi(T),T.current=window.setTimeout(()=>o(!1,U,X),F)):q&&(xi(T),o(!1,U,X))},[w,o]),Y=fl(()=>{M.current(),A.current=void 0}),D=fl(()=>{if(R.current){const U=Sh(s.floating).body;U.style.pointerEvents="",U.removeAttribute(wne),R.current=!1}}),V=fl(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!l)return;function U(Q){if(xi(T),$.current=!1,d&&!oN(_.current)||fN(C.current)>0&&!U_(w.current,"open"))return;const z=U_(w.current,"open",_.current);z?T.current=window.setTimeout(()=>{k.current||o(!0,Q,"hover")},z):n||o(!0,Q,"hover")}function q(Q){if(V()){D();return}M.current();const z=Sh(s.floating);if(xi(N),O.current=!1,x.current&&a.current.floatingContext){n||xi(T),A.current=x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){D(),Y(),V()||I(Q,!0,"safe-polygon")}});const W=A.current;z.addEventListener("mousemove",W),M.current=()=>{z.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!Wy(s.floating,Q.relatedTarget))&&I(Q)}function X(Q){V()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){D(),Y(),V()||I(Q)}})(Q))}function F(){xi(T)}function J(Q){V()||I(Q,!1)}if(Or(s.domReference)){const Q=s.domReference,z=s.floating;return n&&Q.addEventListener("mouseleave",X),p&&Q.addEventListener("mousemove",U,{once:!0}),Q.addEventListener("mouseenter",U),Q.addEventListener("mouseleave",q),z&&(z.addEventListener("mouseleave",X),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",J)),()=>{n&&Q.removeEventListener("mouseleave",X),p&&Q.removeEventListener("mousemove",U),Q.removeEventListener("mouseenter",U),Q.removeEventListener("mouseleave",q),z&&(z.removeEventListener("mouseleave",X),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",J))}}},[s,l,e,d,p,I,Y,D,o,n,k,g,w,x,a,V,C]),hl(()=>{var U;if(l&&n&&(U=x.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&B()){R.current=!0;const X=s.floating;if(Or(s.domReference)&&X){var q;const F=Sh(s.floating).body;F.setAttribute(wne,"");const J=s.domReference,Q=g==null||(q=g.nodesRef.current.find(z=>z.id===y))==null||(q=q.context)==null?void 0:q.elements.floating;return Q&&(Q.style.pointerEvents=""),F.style.pointerEvents="none",J.style.pointerEvents="auto",X.style.pointerEvents="auto",()=>{F.style.pointerEvents="",J.style.pointerEvents="",X.style.pointerEvents=""}}}},[l,n,y,s,g,x,B]),hl(()=>{n||(_.current=void 0,O.current=!1,Y(),D())},[n,Y,D]),E.useEffect(()=>()=>{Y(),xi(T),xi(N),D()},[l,s.domReference,Y,D]);const L=E.useMemo(()=>{function U(q){_.current=q.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(q){const{nativeEvent:X}=q;function F(){!$.current&&!k.current&&o(!0,X,"hover")}d&&!oN(_.current)||n||fN(C.current)===0||O.current&&q.movementX**2+q.movementY**2<2||(xi(N),_.current==="touch"?F():(O.current=!0,N.current=window.setTimeout(F,fN(C.current))))}}},[d,o,n,k,C]);return E.useMemo(()=>l?{reference:L}:{},[l,L])}const pN=()=>{},kne=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:pN,setState:pN,isInstantPhase:!1}),Sat=()=>E.useContext(kne);function _ne(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=E.useRef(null),l=E.useCallback(c=>{i({currentId:c})},[]);return hl(()=>{a.currentId?s.current===null?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[a.currentId,a.isInstantPhase]),b.jsx(kne.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:l}),[a,l]),children:r})}function Cat(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:s=!0}=r,l=i??a,c=Sat(),{currentId:u,setCurrentId:d,initialDelay:h,setState:p,timeoutMs:g}=c;return hl(()=>{s&&u&&(p({delay:{open:1,close:U_(h,"close")}}),u!==l&&o(!1))},[s,l,o,p,u,h]),hl(()=>{function y(){o(!1),p({delay:h,currentId:null})}if(s&&u&&!n&&u===l){if(g){const x=window.setTimeout(y,g);return()=>{clearTimeout(x)}}y()}},[s,n,p,u,l,o,h,g]),hl(()=>{s&&(d===pN||!n||d(l))},[s,n,d,l]),c}const Tat={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Aat={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ene=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Nat(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:h="pointerdown",ancestorScroll:p=!1,bubbles:g,capture:y}=r,x=dN(),w=fl(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=Ene(g),{escapeKey:A,outsidePress:N}=Ene(y),$=E.useRef(!1),R=fl(D=>{var V;if(!n||!s||!l||D.key!=="Escape"||$.current)return;const L=(V=i.current.floatingContext)==null?void 0:V.nodeId,U=x?I_(x.nodesRef.current,L):[];if(!_&&(D.stopPropagation(),U.length>0)){let q=!0;if(U.forEach(X=>{var F;if((F=X.context)!=null&&F.open&&!X.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o(!1,_ot(D)?D.nativeEvent:D,"escape-key")}),M=fl(D=>{var V;const L=()=>{var U;R(D),(U=zm(D))==null||U.removeEventListener("keydown",L)};(V=zm(D))==null||V.addEventListener("keydown",L)}),O=fl(D=>{var V;const L=i.current.insideReactTree;i.current.insideReactTree=!1;const U=C.current;if(C.current=!1,u==="click"&&U||L||typeof k=="function"&&!k(D))return;const q=zm(D),X="["+hN("inert")+"]",F=Sh(a.floating).querySelectorAll(X);let J=Or(q)?q:null;for(;J&&!uc(J);){const G=dc(J);if(uc(G)||!Or(G))break;J=G}if(F.length&&Or(q)&&!vot(q)&&!Wy(q,a.floating)&&Array.from(F).every(G=>!Wy(J,G)))return;if(Oa(q)&&Y){const G=uc(q),Z=vi(q),oe=/auto|scroll/,ee=G||oe.test(Z.overflowX),re=G||oe.test(Z.overflowY),he=ee&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,Ce=re&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,ce=Z.direction==="rtl",de=Ce&&(ce?D.offsetX<=q.offsetWidth-q.clientWidth:D.offsetX>q.clientWidth),be=he&&D.offsetY>q.clientHeight;if(de||be)return}const Q=(V=i.current.floatingContext)==null?void 0:V.nodeId,z=x&&I_(x.nodesRef.current,Q).some(G=>{var Z;return nN(D,(Z=G.context)==null?void 0:Z.elements.floating)});if(nN(D,a.floating)||nN(D,a.domReference)||z)return;const W=x?I_(x.nodesRef.current,Q):[];if(W.length>0){let G=!0;if(W.forEach(Z=>{var oe;if((oe=Z.context)!=null&&oe.open&&!Z.context.dataRef.current.__outsidePressBubbles){G=!1;return}}),!G)return}o(!1,D,"outside-press")}),B=fl(D=>{var V;const L=()=>{var U;O(D),(U=zm(D))==null||U.removeEventListener(u,L)};(V=zm(D))==null||V.addEventListener(u,L)});E.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let D=-1;function V(F){o(!1,F,"ancestor-scroll")}function L(){window.clearTimeout(D),$.current=!0}function U(){D=window.setTimeout(()=>{$.current=!1},P_()?5:0)}const q=Sh(a.floating);l&&(q.addEventListener("keydown",A?M:R,A),q.addEventListener("compositionstart",L),q.addEventListener("compositionend",U)),k&&q.addEventListener(u,N?B:O,N);let X=[];return p&&(Or(a.domReference)&&(X=hc(a.domReference)),Or(a.floating)&&(X=X.concat(hc(a.floating))),!Or(a.reference)&&a.reference&&a.reference.contextElement&&(X=X.concat(hc(a.reference.contextElement)))),X=X.filter(F=>{var J;return F!==((J=q.defaultView)==null?void 0:J.visualViewport)}),X.forEach(F=>{F.addEventListener("scroll",V,{passive:!0})}),()=>{l&&(q.removeEventListener("keydown",A?M:R,A),q.removeEventListener("compositionstart",L),q.removeEventListener("compositionend",U)),k&&q.removeEventListener(u,N?B:O,N),X.forEach(F=>{F.removeEventListener("scroll",V)}),window.clearTimeout(D)}},[i,a,l,k,u,n,o,p,s,_,T,R,A,M,O,N,B]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const I=E.useMemo(()=>({onKeyDown:R,...d&&{[Tat[h]]:D=>{o(!1,D.nativeEvent,"reference-press")},...h!=="click"&&{onClick(D){o(!1,D.nativeEvent,"reference-press")}}}}),[R,o,d,h]),Y=E.useMemo(()=>({onKeyDown:R,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Aat[u]]:()=>{i.current.insideReactTree=!0}}),[R,u,i]);return E.useMemo(()=>s?{reference:I,floating:Y}:{},[s,I,Y])}function Rat(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=xne(),i=E.useRef({}),[s]=E.useState(()=>wat()),l=uN()!=null,[c,u]=E.useState(o.reference),d=fl((g,y,x)=>{i.current.openEvent=g?y:void 0,s.emit("openchange",{open:g,event:y,reason:x,nested:l}),n?.(g,y,x)}),h=E.useMemo(()=>({setPositionReference:u}),[]),p=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:p,events:s,floatingId:a,refs:h}),[r,d,p,s,a,h])}function mN(e){e===void 0&&(e={});const{nodeId:r}=e,n=Rat({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,s]=E.useState(null),[l,c]=E.useState(null),u=a?.domReference||i,d=E.useRef(null),h=dN();hl(()=>{u&&(d.current=u)},[u]);const p=hat({...e,elements:{...a,...l&&{reference:l}}}),g=E.useCallback(C=>{const _=Or(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),p.refs.setReference(_)},[p.refs]),y=E.useCallback(C=>{(Or(C)||C===null)&&(d.current=C,s(C)),(Or(p.refs.reference.current)||p.refs.reference.current===null||C!==null&&!Or(C))&&p.refs.setReference(C)},[p.refs]),x=E.useMemo(()=>({...p.refs,setReference:y,setPositionReference:g,domReference:d}),[p.refs,y,g]),w=E.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),k=E.useMemo(()=>({...p,...o,refs:x,elements:w,nodeId:r}),[p,x,w,r,o]);return hl(()=>{o.dataRef.current.floatingContext=k;const C=h?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...p,context:k,refs:x,elements:w}),[p,x,w,k])}function gN(){return got()&&mot()}function $at(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=r,u=E.useRef(!1),d=E.useRef(-1),h=E.useRef(!0);E.useEffect(()=>{if(!l)return;const g=sa(s.domReference);function y(){!n&&Oa(s.domReference)&&s.domReference===Xre(Sh(s.domReference))&&(u.current=!0)}function x(){h.current=!0}function w(){h.current=!1}return g.addEventListener("blur",y),gN()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",y),gN()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[s.domReference,n,l]),E.useEffect(()=>{if(!l)return;function g(y){let{reason:x}=y;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,l]),E.useEffect(()=>()=>{xi(d)},[]);const p=E.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const y=zm(g.nativeEvent);if(c&&Or(y)){if(gN()&&!g.relatedTarget){if(!h.current&&!xot(y))return}else if(!wot(y))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const y=g.relatedTarget,x=g.nativeEvent,w=Or(y)&&y.hasAttribute(hN("focus-guard"))&&y.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=Xre(s.domReference?s.domReference.ownerDocument:document);!y&&C===s.domReference||Wy((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||Wy(s.domReference,C)||w||o(!1,x,"focus")})}}),[i,s.domReference,o,c]);return E.useMemo(()=>l?{reference:p}:{},[l,p])}function yN(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[gne]:s,[yne]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[gat]:""},...i,...r.map(s=>{const l=s?s[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(c=>{let[u,d]=c;if(!(a&&[gne,yne].includes(u)))if(u.indexOf("on")===0){if(o.has(u)||o.set(u,[]),typeof d=="function"){var h;(h=o.get(u))==null||h.push(d),s[u]=function(){for(var p,g=arguments.length,y=new Array(g),x=0;x<g;x++)y[x]=arguments[x];return(p=o.get(u))==null?void 0:p.map(w=>w(...y)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function Pat(e){e===void 0&&(e=[]);const r=e.map(l=>l?.reference),n=e.map(l=>l?.floating),o=e.map(l=>l?.item),a=E.useCallback(l=>yN(l,e,"reference"),r),i=E.useCallback(l=>yN(l,e,"floating"),n),s=E.useCallback(l=>yN(l,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const Mat=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Oat(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:s}=e,{enabled:l=!0,role:c="dialog"}=r,u=xne(),d=((n=i.domReference)==null?void 0:n.id)||u,h=E.useMemo(()=>{var k;return((k=kot(i.floating))==null?void 0:k.id)||s},[i.floating,s]),p=(o=Mat.get(c))!=null?o:c,g=uN()!=null,y=E.useMemo(()=>p==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?h:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":a?h:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:d},...p==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[p,h,g,a,d,c]),x=E.useMemo(()=>{const k={id:h,...p&&{role:p}};return p==="tooltip"||c==="label"?k:{...k,...p==="menu"&&{"aria-labelledby":d}}},[p,h,d,c]),w=E.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[h,c]);return E.useMemo(()=>l?{reference:y,floating:x,item:w}:{},[l,y,x,w])}const[Dat,wi]=Ma("ScrollArea.Root component was not found in tree");function Bm(e,r){const n=wh(r);M7(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const Lat=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=wi(),[i,s]=E.useState(0),[l,c]=E.useState(0),u=!!(i&&l);return Bm(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),Bm(a.scrollbarY,()=>{const d=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(d),s(d)}),u?b.jsx("div",{...o,ref:r,style:{...n,width:i,height:l}}):null}),Iat=E.forwardRef((e,r)=>{const n=wi(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?b.jsx(Lat,{...e,ref:r}):null}),zat={scrollHideDelay:1e3,type:"hover"},Sne=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...s}=$e("ScrollAreaRoot",zat,e),[l,c]=E.useState(null),[u,d]=E.useState(null),[h,p]=E.useState(null),[g,y]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[A,N]=E.useState(!1),[$,R]=E.useState(!1),M=Jr(r,O=>c(O));return b.jsx(Dat,{value:{type:n,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:p,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:A,onScrollbarXEnabledChange:N,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:$,onScrollbarYEnabledChange:R,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:b.jsx(Oe,{...s,ref:M,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});Sne.displayName="@mantine/core/ScrollAreaRoot";function Cne(e,r){const n=e/r;return Number.isNaN(n)?0:n}function V_(e){const r=Cne(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function Tne(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function jat(e,[r,n]){return Math.min(n,Math.max(r,e))}function Ane(e,r,n="ltr"){const o=V_(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,s=r.content-r.viewport,l=i-o,c=n==="ltr"?[0,s]:[s*-1,0],u=jat(e,c);return Tne([0,s],[0,l])(u)}function Bat(e,r,n,o="ltr"){const a=V_(n),i=a/2,s=r||i,l=a-s,c=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,d=n.content-n.viewport,h=o==="ltr"?[0,d]:[d*-1,0];return Tne([c,u],h)(e)}function Nne(e,r){return e>0&&e<r}function $u(e){return e?parseInt(e,10):0}function Th(e,r,{checkForDefaultPrevented:n=!0}={}){return o=>{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[Fat,Rne]=Ma("ScrollAreaScrollbar was not found in tree"),$ne=E.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...h}=e,p=wi(),[g,y]=E.useState(null),x=Jr(r,R=>y(R)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=p,_=n.content-n.viewport,T=wh(u),A=wh(l),N=__(d,10),$=R=>{if(w.current){const M=R.clientX-w.current.left,O=R.clientY-w.current.top;c({x:M,y:O})}};return E.useEffect(()=>{const R=M=>{const O=M.target;g?.contains(O)&&T(M,_)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[C,g,_,T]),E.useEffect(A,[n,A]),Bm(g,N),Bm(p.content,N),b.jsx(Fat,{value:{scrollbar:g,hasThumb:o,onThumbChange:wh(a),onThumbPointerUp:wh(i),onThumbPositionChange:A,onThumbPointerDown:wh(s)},children:b.jsx("div",{...h,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:Th(e.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(R))}),onPointerMove:Th(e.onPointerMove,$),onPointerUp:Th(e.onPointerUp,R=>{const M=R.target;M.hasPointerCapture(R.pointerId)&&(R.preventDefault(),M.releasePointerCapture(R.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),Pne=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=wi(),[l,c]=E.useState(),u=E.useRef(null),d=Jr(r,u,s.onScrollbarXChange);return E.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),b.jsx($ne,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${V_(n)}px`},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,p)=>{if(s.viewport){const g=s.viewport.scrollLeft+h.deltaX;e.onWheelScroll(g),Nne(g,p)&&h.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:$u(l.paddingLeft),paddingEnd:$u(l.paddingRight)}})}})});Pne.displayName="@mantine/core/ScrollAreaScrollbarX";const Mne=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=wi(),[l,c]=E.useState(),u=E.useRef(null),d=Jr(r,u,s.onScrollbarYChange);return E.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),b.jsx($ne,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${V_(n)}px`,...a},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,p)=>{if(s.viewport){const g=s.viewport.scrollTop+h.deltaY;e.onWheelScroll(g),Nne(g,p)&&h.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:$u(l.paddingTop),paddingEnd:$u(l.paddingBottom)}})}})});Mne.displayName="@mantine/core/ScrollAreaScrollbarY";const q_=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=cc(),i=wi(),s=E.useRef(null),l=E.useRef(0),[c,u]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Cne(c.viewport,c.content),h={...o,sizes:c,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:g=>{l.current=g}},p=(g,y)=>Bat(g,l.current,c,y);return n==="horizontal"?b.jsx(Pne,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollLeft,y=Ane(g,c,a);s.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=p(g,a))}}):n==="vertical"?b.jsx(Mne,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollTop,y=Ane(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=p(g))}}):null});q_.displayName="@mantine/core/ScrollAreaScrollbarVisible";const bN=E.forwardRef((e,r)=>{const n=wi(),{forceMount:o,...a}=e,[i,s]=E.useState(!1),l=e.orientation==="horizontal",c=__(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?u:d)}},10);return Bm(n.viewport,c),Bm(n.content,c),o||i?b.jsx(q_,{"data-state":i?"visible":"hidden",...a,ref:r}):null});bN.displayName="@mantine/core/ScrollAreaScrollbarAuto";const One=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wi(),[i,s]=E.useState(!1);return E.useEffect(()=>{const{scrollArea:l}=a;let c=0;if(l){const u=()=>{window.clearTimeout(c),s(!0)},d=()=>{c=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),n||i?b.jsx(bN,{"data-state":i?"visible":"hidden",...o,ref:r}):null});One.displayName="@mantine/core/ScrollAreaScrollbarHover";const Hat=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wi(),i=e.orientation==="horizontal",[s,l]=E.useState("hidden"),c=__(()=>l("idle"),100);return E.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,a.scrollHideDelay]),E.useEffect(()=>{const{viewport:u}=a,d=i?"scrollLeft":"scrollTop";if(u){let h=u[d];const p=()=>{const g=u[d];h!==g&&(l("scrolling"),c()),h=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[a.viewport,i,c]),n||s!=="hidden"?b.jsx(q_,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Th(e.onPointerEnter,()=>l("interacting")),onPointerLeave:Th(e.onPointerLeave,()=>l("idle"))}):null}),vN=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,l=e.orientation==="horizontal";return E.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),a.type==="hover"?b.jsx(One,{...o,ref:r,forceMount:n}):a.type==="scroll"?b.jsx(Hat,{...o,ref:r,forceMount:n}):a.type==="auto"?b.jsx(bN,{...o,ref:r,forceMount:n}):a.type==="always"?b.jsx(q_,{...o,ref:r}):null});vN.displayName="@mantine/core/ScrollAreaScrollbar";function Uat(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,l=n.top!==i.top;(s||l)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const Dne=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=wi(),i=Rne(),{onThumbPositionChange:s}=i,l=Jr(r,d=>i.onThumbChange(d)),c=E.useRef(void 0),u=__(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:d}=a;if(d){const h=()=>{if(u(),!c.current){const p=Uat(d,s);c.current=p,s()}};return s(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[a.viewport,u,s]),b.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Th(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),p=d.clientX-h.left,g=d.clientY-h.top;i.onThumbPointerDown({x:p,y:g})}),onPointerUp:Th(e.onPointerUp,i.onThumbPointerUp)})});Dne.displayName="@mantine/core/ScrollAreaThumb";const xN=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Rne();return n||a.hasThumb?b.jsx(Dne,{ref:r,...o}):null});xN.displayName="@mantine/core/ScrollAreaThumb";const Lne=E.forwardRef(({children:e,style:r,...n},o)=>{const a=wi(),i=Jr(o,a.onViewportChange);return b.jsx(Oe,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:b.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});Lne.displayName="@mantine/core/ScrollAreaViewport";var wN={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Ine={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Vat=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Fe(r),"--scrollarea-over-scroll-behavior":n}}),Ah=Ze((e,r)=>{const n=$e("ScrollArea",Ine,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:u,type:d,scrollHideDelay:h,viewportProps:p,viewportRef:g,onScrollPositionChange:y,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:A,...N}=n,[$,R]=E.useState(!1),[M,O]=E.useState(!1),[B,I]=E.useState(!1),Y=dt({name:"ScrollArea",props:n,classes:wN,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:A,vars:u,varsResolver:Vat}),D=E.useRef(null),V=mne([g,D]);return E.useEffect(()=>{if(!D.current||w!=="present")return;const L=D.current,U=new ResizeObserver(()=>{const{scrollHeight:q,clientHeight:X,scrollWidth:F,clientWidth:J}=L;O(q>X),I(F>J)});return U.observe(L),()=>U.disconnect()},[D,w]),b.jsxs(Sne,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:h,ref:r,scrollbars:k,...Y("root"),...N,children:[b.jsx(Lne,{...p,...Y("viewport",{style:p?.style}),ref:V,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!B?"true":void 0,"data-vertical-hidden":w==="present"&&!M?"true":void 0,onScroll:L=>{p?.onScroll?.(L),y?.({x:L.currentTarget.scrollLeft,y:L.currentTarget.scrollTop});const{scrollTop:U,scrollHeight:q,clientHeight:X}=L.currentTarget;U-(q-X)>=-.6&&C?.(),U===0&&_?.()},children:x}),(k==="xy"||k==="x")&&b.jsx(vN,{...Y("scrollbar"),orientation:"horizontal","data-hidden":d==="never"||w==="present"&&!B?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(xN,{...Y("thumb")})}),(k==="xy"||k==="y")&&b.jsx(vN,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!M?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(xN,{...Y("thumb")})}),b.jsx(Iat,{...Y("corner"),"data-hovered":$||void 0,"data-hidden":d==="never"||void 0})]})});Ah.displayName="@mantine/core/ScrollArea";const kN=Ze((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:h,unstyled:p,variant:g,viewportProps:y,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...A}=$e("ScrollAreaAutosize",Ine,e),N=E.useRef(null),$=mne([d,N]),[R,M]=E.useState(!1),O=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const B=N.current;if(!B)return;const I=()=>{const D=B.scrollHeight>B.clientHeight;D!==R&&(O.current?T?.(D):(O.current=!0,D&&T?.(!0)),M(D))};I();const Y=new ResizeObserver(I);return Y.observe(B),()=>Y.disconnect()},[T,R]),b.jsx(Oe,{...A,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:b.jsx(Oe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:b.jsx(Ah,{classNames:o,styles:a,scrollHideDelay:s,scrollbarSize:i,type:l,dir:c,offsetScrollbars:u,viewportRef:$,onScrollPositionChange:h,unstyled:p,variant:g,viewportProps:y,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});Ah.classes=wN,kN.displayName="@mantine/core/ScrollAreaAutosize",kN.classes=wN,Ah.Autosize=kN;var zne={root:"m_87cf2631"};const qat={__staticSelector:"UnstyledButton"},pl=zn((e,r)=>{const n=$e("UnstyledButton",qat,e),{className:o,component:a="button",__staticSelector:i,unstyled:s,classNames:l,styles:c,style:u,attributes:d,...h}=n,p=dt({name:i,props:n,classes:zne,className:o,style:u,classNames:l,styles:c,unstyled:s,attributes:d});return b.jsx(Oe,{...p("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...h})});pl.classes=zne,pl.displayName="@mantine/core/UnstyledButton";var jne={root:"m_515a97f8"};const _N=Ze((e,r)=>{const n=$e("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,attributes:u,...d}=n,h=dt({name:"VisuallyHidden",classes:jne,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u});return b.jsx(Oe,{component:"span",ref:r,...h("root"),...d})});_N.classes=jne,_N.displayName="@mantine/core/VisuallyHidden";var Bne={root:"m_1b7284a3"};const Yat=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:un(r),"--paper-shadow":R7(n)}}),Y_=zn((e,r)=>{const n=$e("Paper",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,withBorder:c,vars:u,radius:d,shadow:h,variant:p,mod:g,attributes:y,...x}=n,w=dt({name:"Paper",props:n,classes:Bne,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:u,varsResolver:Yat});return b.jsx(Oe,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:p,...x})});Y_.classes=Bne,Y_.displayName="@mantine/core/Paper";function Fne(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Hne(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const Wat={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Xat({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:s,dir:l}){const[c,u="center"]=e.split("-"),d={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[Wat[c]]:o},h=-r/2;return c==="left"?{...d,...Fne(u,s,n,a),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...Fne(u,s,n,a),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...Hne(u,i,n,a,l),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...Hne(u,i,n,a,l),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const W_=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:s,arrowY:l,style:c,...u},d)=>{const{dir:h}=cc();return i?b.jsx("div",{...u,ref:d,style:{...c,...Xat({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:h,arrowX:s,arrowY:l})}}):null});W_.displayName="@mantine/core/FloatingArrow";function Une(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var Vne={root:"m_9814e45f"};const Gat={zIndex:ws("modal")},Kat=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:s})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&Rre(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Fe(a)})`:void 0,"--overlay-radius":i===void 0?void 0:un(i),"--overlay-z-index":s?.toString()}}),Fm=zn((e,r)=>{const n=$e("Overlay",Gat,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fixed:u,center:d,children:h,radius:p,zIndex:g,gradient:y,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,A=dt({name:"Overlay",props:n,classes:Vne,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:Kat});return b.jsx(Oe,{ref:r,...A("root"),mod:[{center:d,fixed:u},C],...T,children:h})});Fm.classes=Vne,Fm.displayName="@mantine/core/Overlay";function EN(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function Zat({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||EN(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=EN(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return EN(n)}const Qat={reuseTargetNode:!0},qne=Ze((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=$e("Portal",Qat,e),[s,l]=E.useState(!1),c=E.useRef(null);return M7(()=>(l(!0),c.current=Zat({target:o,reuseTargetNode:a,...i}),D7(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!s||!c.current?null:ji.createPortal(b.jsx(b.Fragment,{children:n}),c.current)});qne.displayName="@mantine/core/Portal";const Nh=Ze(({withinPortal:e=!0,children:r,...n},o)=>T_()==="test"||!e?b.jsx(b.Fragment,{children:r}):b.jsx(qne,{ref:o,...n,children:r}));Nh.displayName="@mantine/core/OptionalPortal";const Ky=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),X_={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Ky("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Ky("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Ky("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Ky("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Ky("top"),common:{transformOrigin:"top right"}}},Yne={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Jat({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in X_?{transitionProperty:X_[e].transitionProperty,...a,...X_[e].common,...X_[e][Yne[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[Yne[r]]}}function eit({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:u}){const d=yo(),h=L7(),p=d.respectReducedMotion?h:!1,[g,y]=E.useState(p?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const A=$=>{T();const R=$?a:i,M=$?s:l,O=p?0:$?e:r;y(O),O===0?(typeof R=="function"&&R(),typeof M=="function"&&M(),w($?"entered":"exited")):_.current=requestAnimationFrame(()=>{TD.flushSync(()=>{w($?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof R=="function"&&R(),w($?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof M=="function"&&M(),w($?"entered":"exited")},O)})})},N=$=>{if(T(),typeof($?c:u)!="number"){A($);return}C.current=window.setTimeout(()=>{A($)},$?c:u)};return kh(()=>{N(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function Ts({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:s="ease",onExit:l,onEntered:c,onEnter:u,onExited:d,enterDelay:h,exitDelay:p}){const g=T_(),{transitionDuration:y,transitionStatus:x,transitionTimingFunction:w}=eit({mounted:a,exitDuration:o,duration:n,timingFunction:s,onExit:l,onEntered:c,onEnter:u,onExited:d,enterDelay:h,exitDelay:p});return y===0||g==="test"?a?b.jsx(b.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:b.jsx(b.Fragment,{children:i(Jat({transition:r,duration:y,state:x,timingFunction:w}))})}Ts.displayName="@mantine/core/Transition";const[tit,Wne]=Ma("Popover component was not found in the tree");function G_({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=Trt(r),i=Jr(a,o);return xs(e)?E.cloneElement(e,{[n]:i}):e}function Xne(e){return b.jsx(_N,{tabIndex:-1,"data-autofocus":!0,...e})}G_.displayName="@mantine/core/FocusTrap",Xne.displayName="@mantine/core/FocusTrapInitialFocus",G_.InitialFocus=Xne;var Gne={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const SN=Ze((e,r)=>{const n=$e("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:u,styles:d,...h}=n,p=Wne(),g=wre({opened:p.opened,shouldReturnFocus:p.returnFocus}),y=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Jr(r,p.floating);return p.disabled?null:b.jsx(Nh,{...p.portalProps,withinPortal:p.withinPortal,children:b.jsx(Ts,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:typeof p.transitionProps?.exitDuration=="number"?p.transitionProps.exitDuration:p.transitionProps?.duration,children:w=>b.jsx(G_,{active:p.trapFocus&&p.opened,innerRef:x,children:b.jsxs(Oe,{...y,...h,variant:c,onKeyDownCapture:prt(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:g,onKeyDown:l}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:o,props:n,classNames:u,styles:d,style:[{...w,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:Fe(p.width),...p.referenceHidden?{display:"none"}:null},p.resolvedStyles.dropdown,d?.dropdown,a]}),children:[s,b.jsx(W_,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});SN.classes=Gne,SN.displayName="@mantine/core/PopoverDropdown";const rit={refProp:"ref",popupType:"dialog"},Kne=Ze((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=$e("PopoverTarget",rit,e);if(!xs(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=Wne(),c=Jr(l.reference,E_(n),r),u=l.withRoles?{"aria-haspopup":a,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return E.cloneElement(n,{...s,...u,...l.targetProps,className:eo(l.targetProps.className,s.className,n.props.className),[o]:c,...l.controlled?null:{onClick:()=>{l.onToggle(),n.props.onClick?.()}}})});Kne.displayName="@mantine/core/PopoverTarget";function nit(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function oit(e,r,n){const o=nit(e.middlewares),a=[hne(e.offset),mat()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(cN(typeof o.shift=="boolean"?{limiter:fne(),padding:5}:{limiter:fne(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?H_():H_(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?Gy():Gy(o.inline)),a.push(pne({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(pat({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:s,availableHeight:l,...c}){const u=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:s,availableHeight:l,...c}):Object.assign(u,{maxWidth:`${s}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),a}function ait(e){const r=T_(),[n,o]=Ru({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},s=()=>{e.disabled||o(!n)},l=mN({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:oit(e,()=>l,r),whileElementsMounted:e.keepMounted?void 0:sN});return E.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&n)return sN(l.refs.reference.current,l.refs.floating.current,l.update)},[n,l.update]),kh(()=>{e.onPositionChange?.(l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),kh(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),kh(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:s}}const iit={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:ws("popover"),__staticSelector:"Popover",width:"max-content"},sit=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:un(r),"--popover-shadow":R7(n)}});function bo(e){const r=$e("Popover",iit,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:h,middlewares:p,withArrow:g,arrowSize:y,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:A,withinPortal:N,portalProps:$,closeOnEscape:R,clickOutsideEvents:M,trapFocus:O,onClose:B,onDismiss:I,onOpen:Y,onChange:D,zIndex:V,radius:L,shadow:U,id:q,defaultOpened:X,__staticSelector:F,withRoles:J,disabled:Q,returnFocus:z,variant:W,keepMounted:G,vars:Z,floatingStrategy:oe,withOverlay:ee,overlayProps:re,hideDetached:he,attributes:Ce,preventPositionChangeWhenVisible:ce,...de}=r,be=dt({name:F,props:r,classes:Gne,classNames:_,styles:T,unstyled:C,attributes:Ce,rootSelector:"dropdown",vars:Z,varsResolver:sit}),{resolvedStyles:De}=j7({classNames:_,styles:T,props:r}),[Ge,Xe]=E.useState(l??X??!1),_t=E.useRef(o),Qe=E.useRef(null),[St,Ke]=E.useState(null),[We,lt]=E.useState(null),{dir:Et}=cc(),Pn=T_(),_e=_s(q),we=ait({middlewares:p,width:h,position:Une(Et,o),offset:typeof a=="number"?a+(g?y/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:X,onChange:D,onOpen:Y,onClose:B,onDismiss:I,strategy:oe,dropdownVisible:Ge,setDropdownVisible:Xe,positionRef:_t,disabled:Q,preventPositionChangeWhenVisible:ce,keepMounted:G});xre(()=>{A&&(we.onClose(),I?.())},M,[St,We]);const rt=E.useCallback(Pt=>{Ke(Pt),we.floating.refs.setReference(Pt)},[we.floating.refs.setReference]),at=E.useCallback(Pt=>{lt(Pt),we.floating.refs.setFloating(Pt)},[we.floating.refs.setFloating]),$t=E.useCallback(()=>{c?.onExited?.(),u?.(),Xe(!1),_t.current=o},[c?.onExited,u]),Wr=E.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return b.jsxs(tit,{value:{returnFocus:z,disabled:Q,controlled:we.controlled,reference:rt,floating:at,x:we.floating.x,y:we.floating.y,arrowX:we.floating?.middlewareData?.arrow?.x,arrowY:we.floating?.middlewareData?.arrow?.y,opened:we.opened,arrowRef:Qe,transitionProps:{...c,onExited:$t,onEntered:Wr},width:h,withArrow:g,arrowSize:y,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:we.floating.placement,trapFocus:O,withinPortal:N,portalProps:$,zIndex:V,radius:L,shadow:U,closeOnEscape:R,onDismiss:I,onClose:we.onClose,onToggle:we.onToggle,getTargetId:()=>`${_e}-target`,getDropdownId:()=>`${_e}-dropdown`,withRoles:J,targetProps:de,__staticSelector:F,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:G,getStyles:be,resolvedStyles:De,floatingStrategy:oe,referenceHidden:he&&Pn!=="test"?we.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ee&&b.jsx(Ts,{transition:"fade",mounted:we.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>b.jsx(Nh,{withinPortal:N,children:b.jsx(Fm,{...re,...be("overlay",{className:re?.className,style:[Pt,re?.style]})})})})]})}bo.Target=Kne,bo.Dropdown=SN,bo.displayName="@mantine/core/Popover",bo.extend=e=>e;var As={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const Zne=E.forwardRef(({className:e,...r},n)=>b.jsxs(Oe,{component:"span",className:eo(As.barsLoader,e),...r,ref:n,children:[b.jsx("span",{className:As.bar}),b.jsx("span",{className:As.bar}),b.jsx("span",{className:As.bar})]}));Zne.displayName="@mantine/core/Bars";const Qne=E.forwardRef(({className:e,...r},n)=>b.jsxs(Oe,{component:"span",className:eo(As.dotsLoader,e),...r,ref:n,children:[b.jsx("span",{className:As.dot}),b.jsx("span",{className:As.dot}),b.jsx("span",{className:As.dot})]}));Qne.displayName="@mantine/core/Dots";const Jne=E.forwardRef(({className:e,...r},n)=>b.jsx(Oe,{component:"span",className:eo(As.ovalLoader,e),...r,ref:n}));Jne.displayName="@mantine/core/Oval";const eoe={bars:Zne,oval:Jne,dots:Qne},lit={loaders:eoe,type:"oval"},cit=(e,{size:r,color:n})=>({root:{"--loader-size":er(r,"loader-size"),"--loader-color":n?qo(n,e):void 0}}),Rh=Ze((e,r)=>{const n=$e("Loader",lit,e),{size:o,color:a,type:i,vars:s,className:l,style:c,classNames:u,styles:d,unstyled:h,loaders:p,variant:g,children:y,attributes:x,...w}=n,k=dt({name:"Loader",props:n,classes:As,className:l,style:c,classNames:u,styles:d,unstyled:h,attributes:x,vars:s,varsResolver:cit});return y?b.jsx(Oe,{...k("root"),ref:r,...w,children:y}):b.jsx(Oe,{...k("root"),ref:r,component:p[i],variant:g,size:o,...w})});Rh.defaultLoaders=eoe,Rh.classes=As,Rh.displayName="@mantine/core/Loader";var Hm={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const toe={orientation:"horizontal"},uit=(e,{borderWidth:r})=>({group:{"--ai-border-width":Fe(r)}}),CN=Ze((e,r)=>{const n=$e("ActionIconGroup",toe,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:u,borderWidth:d,variant:h,mod:p,attributes:g,...y}=$e("ActionIconGroup",toe,e),x=dt({name:"ActionIconGroup",props:n,classes:Hm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:u,varsResolver:uit,rootSelector:"group"});return b.jsx(Oe,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},p],role:"group",...y})});CN.classes=Hm,CN.displayName="@mantine/core/ActionIconGroup";const dit=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":er(s,"section-height"),"--section-padding-x":er(s,"section-padding-x"),"--section-fz":Oo(s),"--section-radius":r===void 0?void 0:un(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},TN=Ze((e,r)=>{const n=$e("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:u,gradient:d,radius:h,autoContrast:p,attributes:g,...y}=n,x=dt({name:"ActionIconGroupSection",props:n,classes:Hm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:dit,rootSelector:"groupSection"});return b.jsx(Oe,{...x("groupSection"),ref:r,variant:u,...y})});TN.classes=Hm,TN.displayName="@mantine/core/ActionIconGroupSection";const hit=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ai-size":er(r,"ai-size"),"--ai-radius":n===void 0?void 0:un(n),"--ai-bg":i||o?l.background:void 0,"--ai-hover":i||o?l.hover:void 0,"--ai-hover-color":i||o?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":i||o?l.border:void 0}}},K_=zn((e,r)=>{const n=$e("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:s,styles:l,style:c,loading:u,loaderProps:d,size:h,color:p,radius:g,__staticSelector:y,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:A,attributes:N,...$}=n,R=dt({name:["ActionIcon",y],props:n,className:o,style:c,classes:Hm,classNames:s,styles:l,unstyled:a,attributes:N,vars:w,varsResolver:hit});return b.jsxs(pl,{...R("root",{active:!C&&!u&&!_}),...$,unstyled:a,variant:i,size:h,disabled:C||u,ref:r,mod:[{loading:u,disabled:C||_},A],children:[typeof u=="boolean"&&b.jsx(Ts,{mounted:u,transition:"slide-down",duration:150,children:M=>b.jsx(Oe,{component:"span",...R("loader",{style:M}),"aria-hidden":!0,children:b.jsx(Rh,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),b.jsx(Oe,{component:"span",mod:{loading:u},...R("icon"),children:k})]})});K_.classes=Hm,K_.displayName="@mantine/core/ActionIcon",K_.Group=CN,K_.GroupSection=TN;const roe=E.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:b.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));roe.displayName="@mantine/core/CloseIcon";var noe={root:"m_86a44da5","root--subtle":"m_220c80f2"};const fit={variant:"subtle"},pit=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":er(r,"cb-size"),"--cb-radius":n===void 0?void 0:un(n),"--cb-icon-size":Fe(o)}}),$h=zn((e,r)=>{const n=$e("CloseButton",fit,e),{iconSize:o,children:a,vars:i,radius:s,className:l,classNames:c,style:u,styles:d,unstyled:h,"data-disabled":p,disabled:g,variant:y,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=dt({name:C||"CloseButton",props:n,className:l,style:u,classes:noe,classNames:c,styles:d,unstyled:h,attributes:k,vars:i,varsResolver:pit});return b.jsxs(pl,{ref:r,..._,unstyled:h,variant:y,disabled:g,mod:[{disabled:g||p},w],...T("root",{variant:y,active:!g&&!p}),children:[x||b.jsx(roe,{}),a]})});$h.classes=noe,$h.displayName="@mantine/core/CloseButton";function mit(e){return E.Children.toArray(e).filter(Boolean)}var ooe={root:"m_4081bf90"};const git={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},yit=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:s},{childWidth:l})=>({root:{"--group-child-width":r&&n?l:void 0,"--group-gap":Jn(o),"--group-align":a,"--group-justify":i,"--group-wrap":s}}),aoe=Ze((e,r)=>{const n=$e("Group",git,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,children:c,gap:u,align:d,justify:h,wrap:p,grow:g,preventGrowOverflow:y,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,A=mit(c),N=A.length,$=Jn(u??"md"),R={childWidth:`calc(${100/N}% - (${$} - ${$} / ${N}))`},M=dt({name:"Group",props:n,stylesCtx:R,className:a,style:i,classes:ooe,classNames:o,styles:s,unstyled:l,attributes:_,vars:x,varsResolver:yit});return b.jsx(Oe,{...M("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:A})});aoe.classes=ooe,aoe.displayName="@mantine/core/Group";const[bit,fc]=Ma("ModalBase component was not found in tree");function vit({opened:e,transitionDuration:r}){const[n,o]=E.useState(e),a=E.useRef(-1),i=L7()?0:r;return E.useEffect(()=>(e?(o(!0),window.clearTimeout(a.current)):i===0?o(!1):a.current=window.setTimeout(()=>o(!1),i),()=>window.clearTimeout(a.current)),[e,i]),n}function xit({id:e,transitionProps:r,opened:n,trapFocus:o,closeOnEscape:a,onClose:i,returnFocus:s}){const l=_s(e),[c,u]=E.useState(!1),[d,h]=E.useState(!1),p=typeof r?.duration=="number"?r?.duration:200,g=vit({opened:n,transitionDuration:p});return Rrt("keydown",y=>{y.key==="Escape"&&a&&!y.isComposing&&n&&y.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&i()},{capture:!0}),wre({opened:n,shouldReturnFocus:o&&s}),{_id:l,titleMounted:c,bodyMounted:d,shouldLockScroll:g,setTitleMounted:u,setBodyMounted:h}}const AN=E.forwardRef(({keepMounted:e,opened:r,onClose:n,id:o,transitionProps:a,onExitTransitionEnd:i,onEnterTransitionEnd:s,trapFocus:l,closeOnEscape:c,returnFocus:u,closeOnClickOutside:d,withinPortal:h,portalProps:p,lockScroll:g,children:y,zIndex:x,shadow:w,padding:k,__vars:C,unstyled:_,removeScrollProps:T,...A},N)=>{const{_id:$,titleMounted:R,bodyMounted:M,shouldLockScroll:O,setTitleMounted:B,setBodyMounted:I}=xit({id:o,transitionProps:a,opened:r,trapFocus:l,closeOnEscape:c,onClose:n,returnFocus:u}),{key:Y,...D}=T||{};return b.jsx(Nh,{...p,withinPortal:h,children:b.jsx(bit,{value:{opened:r,onClose:n,closeOnClickOutside:d,onExitTransitionEnd:i,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e},getTitleId:()=>`${$}-title`,getBodyId:()=>`${$}-body`,titleMounted:R,bodyMounted:M,setTitleMounted:B,setBodyMounted:I,trapFocus:l,closeOnEscape:c,zIndex:x,unstyled:_},children:b.jsx(mre,{enabled:O&&g,...D,children:b.jsx(Oe,{ref:N,...A,__vars:{...C,"--mb-z-index":(x||ws("modal")).toString(),"--mb-shadow":R7(w),"--mb-padding":Jn(k)},children:y})},Y)})})});AN.displayName="@mantine/core/ModalBase";function wit(){const e=fc();return E.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Um={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const NN=E.forwardRef(({className:e,...r},n)=>{const o=wit(),a=fc();return b.jsx(Oe,{ref:n,...r,id:o,className:eo({[Um.body]:!a.unstyled},e)})});NN.displayName="@mantine/core/ModalBaseBody";const ioe=E.forwardRef(({className:e,onClick:r,...n},o)=>{const a=fc();return b.jsx($h,{ref:o,...n,onClick:i=>{a.onClose(),r?.(i)},className:eo({[Um.close]:!a.unstyled},e),unstyled:a.unstyled})});ioe.displayName="@mantine/core/ModalBaseCloseButton";const RN=E.forwardRef(({transitionProps:e,className:r,innerProps:n,onKeyDown:o,style:a,...i},s)=>{const l=fc();return b.jsx(Ts,{mounted:l.opened,transition:"pop",...l.transitionProps,onExited:()=>{l.onExitTransitionEnd?.(),l.transitionProps?.onExited?.()},onEntered:()=>{l.onEnterTransitionEnd?.(),l.transitionProps?.onEntered?.()},...e,children:c=>b.jsx("div",{...n,className:eo({[Um.inner]:!l.unstyled},n.className),children:b.jsx(G_,{active:l.opened&&l.trapFocus,innerRef:s,children:b.jsx(Y_,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,style:[a,c],className:eo({[Um.content]:!l.unstyled},r),unstyled:l.unstyled,children:i.children})})})})});RN.displayName="@mantine/core/ModalBaseContent";const soe=E.forwardRef(({className:e,...r},n)=>{const o=fc();return b.jsx(Oe,{component:"header",ref:n,className:eo({[Um.header]:!o.unstyled},e),...r})});soe.displayName="@mantine/core/ModalBaseHeader";const kit={duration:200,timingFunction:"ease",transition:"fade"};function _it(e){const r=fc();return{...kit,...r.transitionProps,...e}}const $N=E.forwardRef(({onClick:e,transitionProps:r,style:n,visible:o,...a},i)=>{const s=fc(),l=_it(r);return b.jsx(Ts,{mounted:o!==void 0?o:s.opened,...l,transition:"fade",children:c=>b.jsx(Fm,{ref:i,fixed:!0,style:[n,c],zIndex:s.zIndex,unstyled:s.unstyled,onClick:u=>{e?.(u),s.closeOnClickOutside&&s.onClose()},...a})})});$N.displayName="@mantine/core/ModalBaseOverlay";function Eit(){const e=fc();return E.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const loe=E.forwardRef(({className:e,...r},n)=>{const o=Eit(),a=fc();return b.jsx(Oe,{component:"h2",ref:n,className:eo({[Um.title]:!a.unstyled},e),...r,id:o})});loe.displayName="@mantine/core/ModalBaseTitle";function coe({children:e}){return b.jsx(b.Fragment,{children:e})}const[Sit,Cit]=Rm({size:"sm"}),uoe=Ze((e,r)=>{const n=$e("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:s,styles:l,...c}=n,u=Cit(),{resolvedClassNames:d,resolvedStyles:h}=j7({classNames:s,styles:l,props:n});return b.jsx($h,{variant:a||"transparent",ref:r,size:o||u?.size||"sm",classNames:d,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});uoe.displayName="@mantine/core/InputClearButton";const Tit={xs:7,sm:8,md:10,lg:12,xl:15};function Ait({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?b.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Tit[a]},children:[i,n||o]}):n||i||o}const[Nit,Z_]=Rm({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ki={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Rit=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Oo(r)} - ${Fe(2)})`}}),Q_=Ze((e,r)=>{const n=$e("InputDescription",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,__staticSelector:d,__inheritStyles:h=!0,attributes:p,variant:g,...y}=$e("InputDescription",null,n),x=Z_(),w=dt({name:["InputWrapper",d],props:n,classes:ki,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:p,rootSelector:"description",vars:c,varsResolver:Rit}),k=h&&x?.getStyles||w;return b.jsx(Oe,{component:"p",ref:r,variant:g,size:u,...k("description",x?.getStyles?{className:a,style:i}:void 0),...y})});Q_.classes=ki,Q_.displayName="@mantine/core/InputDescription";const $it=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Oo(r)} - ${Fe(2)})`}}),J_=Ze((e,r)=>{const n=$e("InputError",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,attributes:d,__staticSelector:h,__inheritStyles:p=!0,variant:g,...y}=n,x=dt({name:["InputWrapper",h],props:n,classes:ki,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d,rootSelector:"error",vars:c,varsResolver:$it}),w=Z_(),k=p&&w?.getStyles||x;return b.jsx(Oe,{component:"p",ref:r,variant:g,size:u,...k("error",w?.getStyles?{className:a,style:i}:void 0),...y})});J_.classes=ki,J_.displayName="@mantine/core/InputError";const doe={labelElement:"label"},Pit=(e,{size:r})=>({label:{"--input-label-size":Oo(r),"--input-asterisk-color":void 0}}),eE=Ze((e,r)=>{const n=$e("InputLabel",doe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,labelElement:u,size:d,required:h,htmlFor:p,onMouseDown:g,children:y,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=$e("InputLabel",doe,n),T=dt({name:["InputWrapper",x],props:n,classes:ki,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,rootSelector:"label",vars:c,varsResolver:Pit}),A=Z_(),N=A?.getStyles||T;return b.jsxs(Oe,{...N("label",A?.getStyles?{className:a,style:i}:void 0),component:u,variant:w,size:d,ref:r,htmlFor:u==="label"?p:void 0,mod:[{required:h},k],onMouseDown:$=>{g?.($),!$.defaultPrevented&&$.detail>1&&$.preventDefault()},..._,children:[y,h&&b.jsx("span",{...N("required"),"aria-hidden":!0,children:" *"})]})});eE.classes=ki,eE.displayName="@mantine/core/InputLabel";const PN=Ze((e,r)=>{const n=$e("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,__staticSelector:u,variant:d,error:h,mod:p,attributes:g,...y}=n,x=dt({name:["InputPlaceholder",u],props:n,classes:ki,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,rootSelector:"placeholder"});return b.jsx(Oe,{...x("placeholder"),mod:[{error:!!h},p],component:"span",variant:d,ref:r,...y})});PN.classes=ki,PN.displayName="@mantine/core/InputPlaceholder";function Mit(e,{hasDescription:r,hasError:n}){const o=e.findIndex(l=>l==="input"),a=e.slice(0,o),i=e.slice(o+1),s=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:s}}const Oit={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Dit=(e,{size:r})=>({label:{"--input-label-size":Oo(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Oo(r)} - ${Fe(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Oo(r)} - ${Fe(2)})`}}),MN=Ze((e,r)=>{const n=$e("InputWrapper",Oit,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,variant:d,__staticSelector:h,inputContainer:p,inputWrapperOrder:g,label:y,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:A,withAsterisk:N,id:$,required:R,__stylesApiProps:M,mod:O,attributes:B,...I}=n,Y=dt({name:["InputWrapper",h],props:M||n,classes:ki,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:B,vars:c,varsResolver:Dit}),D={size:u,variant:d,__staticSelector:h},V=_s($),L=typeof N=="boolean"?N:R,U=_?.id||`${V}-error`,q=C?.id||`${V}-description`,X=V,F=!!x&&typeof x!="boolean",J=!!w,Q=`${F?U:""} ${J?q:""}`,z=Q.trim().length>0?Q.trim():void 0,W=k?.id||`${V}-label`,G=y&&b.jsx(eE,{labelElement:T,id:W,htmlFor:X,required:L,...D,...k,children:y},"label"),Z=J&&b.jsx(Q_,{...C,...D,size:C?.size||D.size,id:C?.id||q,children:w},"description"),oe=b.jsx(E.Fragment,{children:p(A)},"input"),ee=F&&E.createElement(J_,{..._,...D,size:_?.size||D.size,key:"error",id:_?.id||U},x),re=g.map(he=>{switch(he){case"label":return G;case"input":return oe;case"description":return Z;case"error":return ee;default:return null}});return b.jsx(Nit,{value:{getStyles:Y,describedBy:z,inputId:X,labelId:W,...Mit(g,{hasDescription:J,hasError:F})},children:b.jsx(Oe,{ref:r,variant:d,size:u,mod:[{error:!!x},O],...Y("root"),...I,children:re})})});MN.classes=ki,MN.displayName="@mantine/core/InputWrapper";const Lit={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},Iit=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":er(r.size,"input-height"),"--input-fz":Oo(r.size),"--input-radius":r.radius===void 0?void 0:un(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?Fe(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?Fe(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?er(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),la=zn((e,r)=>{const n=$e("Input",Lit,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,required:c,__staticSelector:u,__stylesApiProps:d,size:h,wrapperProps:p,error:g,disabled:y,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:A,leftSectionPointerEvents:N,variant:$,vars:R,pointer:M,multiline:O,radius:B,id:I,withAria:Y,withErrorStyles:D,mod:V,inputSize:L,attributes:U,__clearSection:q,__clearable:X,__defaultRightSection:F,...J}=n,{styleProps:Q,rest:z}=H7(J),W=Z_(),G={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},Z=dt({name:["Input",u],props:d||n,classes:ki,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:U,stylesCtx:G,rootSelector:"wrapper",vars:R,varsResolver:Iit}),oe=Y?{required:c,disabled:y,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||I}:{},ee=Ait({__clearable:X,__clearSection:q,rightSection:C,__defaultRightSection:F,size:h});return b.jsx(Sit,{value:{size:h||"sm"},children:b.jsxs(Oe,{...Z("wrapper"),...Q,...p,mod:[{error:!!g&&D,pointer:M,disabled:y,multiline:O,"data-with-right-section":!!ee,"data-with-left-section":!!x},V],variant:$,size:h,children:[x&&b.jsx("div",{...w,"data-position":"left",...Z("section",{className:w?.className,style:w?.style}),children:x}),b.jsx(Oe,{component:"input",...z,...oe,ref:r,required:c,mod:{disabled:y,error:!!g&&D},variant:$,__size:L,...Z("input")}),ee&&b.jsx("div",{..._,"data-position":"right",...Z("section",{className:_?.className,style:_?.style}),children:ee})]})})});la.classes=ki,la.Wrapper=MN,la.Label=eE,la.Error=J_,la.Description=Q_,la.Placeholder=PN,la.ClearButton=uoe,la.displayName="@mantine/core/Input";function zit(e,r,n){const o=$e(e,r,n),{label:a,description:i,error:s,required:l,classNames:c,styles:u,className:d,unstyled:h,__staticSelector:p,__stylesApiProps:g,errorProps:y,labelProps:x,descriptionProps:w,wrapperProps:k,id:C,size:_,style:T,inputContainer:A,inputWrapperOrder:N,withAsterisk:$,variant:R,vars:M,mod:O,attributes:B,...I}=o,{styleProps:Y,rest:D}=H7(I),V={label:a,description:i,error:s,required:l,classNames:c,className:d,__staticSelector:p,__stylesApiProps:g||o,errorProps:y,labelProps:x,descriptionProps:w,unstyled:h,styles:u,size:_,style:T,inputContainer:A,inputWrapperOrder:N,withAsterisk:$,variant:R,id:C,mod:O,attributes:B,...k};return{...D,classNames:c,styles:u,unstyled:h,wrapperProps:{...V,...Y},inputProps:{required:l,classNames:c,styles:u,unstyled:h,size:_,__staticSelector:p,__stylesApiProps:g||o,error:s,variant:R,id:C,attributes:B}}}const jit={__staticSelector:"InputBase",withAria:!0,size:"sm"},tE=zn((e,r)=>{const{inputProps:n,wrapperProps:o,...a}=zit("InputBase",jit,e);return b.jsx(la.Wrapper,{...o,children:b.jsx(la,{...n,...a,ref:r})})});tE.classes={...la.classes,...la.Wrapper.classes},tE.displayName="@mantine/core/InputBase";const Bit={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var hoe={root:"m_8bffd616"};const foe=zn((e,r)=>{const n=$e("Flex",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,gap:u,rowGap:d,columnGap:h,align:p,justify:g,wrap:y,direction:x,attributes:w,...k}=n,C=dt({name:"Flex",classes:hoe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c}),_=yo(),T=qy(),A=Lre({styleProps:{gap:u,rowGap:d,columnGap:h,align:p,justify:g,wrap:y,direction:x},theme:_,data:Bit});return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(Om,{selector:`.${T}`,styles:A.styles,media:A.media}),b.jsx(Oe,{ref:r,...C("root",{className:T,style:Nu(A.inlineStyles)}),...k})]})});foe.classes=hoe,foe.displayName="@mantine/core/Flex";function Fit(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Hit({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,s]=E.useState(!1),[l,c]=E.useState(typeof o=="boolean"?o:!1),u=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),y=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=$u(x.borderTopWidth)+$u(w.borderTopWidth),C=$u(x.borderLeftWidth)+$u(w.borderLeftWidth),_={top:g.top-y.top-k,left:g.left-y.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),u(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},h=E.useRef(null),p=E.useRef(null);return E.useEffect(()=>{if(u(),e)return h.current=new ResizeObserver(d),h.current.observe(e),r&&(p.current=new ResizeObserver(d),p.current.observe(r)),()=>{h.current?.disconnect(),p.current?.disconnect()}},[r,e]),E.useEffect(()=>{if(r){const g=y=>{Fit(y.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),Lrt(()=>{Brt()!=="test"&&s(!0)},20,{autoInvoke:!0}),zrt(g=>{g.forEach(y=>{y.type==="attributes"&&y.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:l}}var poe={root:"m_96b553a6"};const Uit=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),ON=Ze((e,r)=>{const n=$e("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,target:u,parent:d,transitionDuration:h,mod:p,displayAfterTransitionEnd:g,attributes:y,...x}=n,w=dt({name:"FloatingIndicator",classes:poe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:Uit}),k=E.useRef(null),{initialized:C,hidden:_}=Hit({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=Jr(r,k);return!u||!d?null:b.jsx(Oe,{ref:T,mod:[{initialized:C,hidden:_},p],...w("root"),...x})});ON.displayName="@mantine/core/FloatingIndicator",ON.classes=poe;function Vit({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.useRef(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},l=()=>{s(),e()},c=()=>{s(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return E.useEffect(()=>s,[]),{openDropdown:l,closeDropdown:c}}function DN({style:e,size:r=16,...n}){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:Fe(r),height:Fe(r),display:"block"},...n,children:b.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}DN.displayName="@mantine/core/AccordionChevron";var moe={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const qit=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:un(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},goe=Ze((e,r)=>{const n=$e("Alert",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:u,color:d,title:h,children:p,id:g,icon:y,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...A}=n,N=dt({name:"Alert",classes:moe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:qit}),$=_s(g),R=h&&`${$}-title`||void 0,M=`${$}-body`;return b.jsx(Oe,{id:$,...N("root",{variant:C}),variant:C,ref:r,...A,role:"alert","aria-describedby":M,"aria-labelledby":R,children:b.jsxs("div",{...N("wrapper"),children:[y&&b.jsx("div",{...N("icon"),children:y}),b.jsxs("div",{...N("body"),children:[h&&b.jsx("div",{...N("title"),"data-with-close-button":x||void 0,children:b.jsx("span",{id:R,...N("label"),children:h})}),p&&b.jsx("div",{id:M,...N("message"),"data-variant":C,children:p})]}),x&&b.jsx($h,{...N("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:l})]})})});goe.classes=moe,goe.displayName="@mantine/core/Alert";var yoe={root:"m_b6d8b162"};function Yit(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const Wit={inherit:!1},Xit=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Oo(a),"--text-lh":mrt(a),"--text-gradient":r==="gradient"?rnt(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?qo(i,e):void 0}}),Zy=zn((e,r)=>{const n=$e("Text",Wit,e),{lineClamp:o,truncate:a,inline:i,inherit:s,gradient:l,span:c,__staticSelector:u,vars:d,className:h,style:p,classNames:g,styles:y,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,A=dt({name:["Text",u],props:n,classes:yoe,className:h,style:p,classNames:g,styles:y,unstyled:x,attributes:_,vars:d,varsResolver:Xit});return b.jsx(Oe,{...A("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":Yit(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":s},k],size:C,...T})});Zy.classes=yoe,Zy.displayName="@mantine/core/Text";var boe={root:"m_849cf0da"};const Git={underline:"hover"},voe=zn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...s}=$e("Anchor",Git,e);return b.jsx(Zy,{component:"a",ref:r,className:eo({[boe.root]:!a},o),...s,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});voe.classes=boe,voe.displayName="@mantine/core/Anchor";function xoe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(r=>xoe(r))}:e}function Kit(e){return e?e.map(r=>xoe(r)):[]}function woe(e){return e.reduce((r,n)=>"group"in n?{...r,...woe(n.items)}:(r[n.value]=n,r),{})}var ca={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Zit={error:null},Qit=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":er(r,"combobox-chevron-size"),"--combobox-chevron-color":n?qo(n,e):void 0}}),LN=Ze((e,r)=>{const n=$e("ComboboxChevron",Zit,e),{size:o,error:a,style:i,className:s,classNames:l,styles:c,unstyled:u,vars:d,mod:h,...p}=n,g=dt({name:"ComboboxChevron",classes:ca,props:n,style:i,className:s,classNames:l,styles:c,unstyled:u,vars:d,varsResolver:Qit,rootSelector:"chevron"});return b.jsx(Oe,{component:"svg",...p,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},h],ref:r,children:b.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});LN.classes=ca,LN.displayName="@mantine/core/ComboboxChevron";const[Jit,_i]=Ma("Combobox component was not found in tree"),koe=E.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>b.jsx(la.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:s=>{s.preventDefault(),r?.(s)},onClick:s=>{o(),n?.(s)}}));koe.displayName="@mantine/core/ComboboxClearButton";const IN=Ze((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:s,...l}=$e("ComboboxDropdown",null,e),c=_i();return b.jsx(bo.Dropdown,{...l,ref:r,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});IN.classes=ca,IN.displayName="@mantine/core/ComboboxDropdown";const est={refProp:"ref"},_oe=Ze((e,r)=>{const{children:n,refProp:o}=$e("ComboboxDropdownTarget",est,e);if(_i(),!xs(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return b.jsx(bo.Target,{ref:r,refProp:o,children:n})});_oe.displayName="@mantine/core/ComboboxDropdownTarget";const zN=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=$e("ComboboxEmpty",null,e),c=_i();return b.jsx(Oe,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...l})});zN.classes=ca,zN.displayName="@mantine/core/ComboboxEmpty";function jN({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const s=_i(),[l,c]=E.useState(null),u=d=>{if(e?.(d),!s.readOnly&&r){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const h=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&h!==-1?(d.preventDefault(),s.store.clickSelectedOption()):a==="button"&&(d.preventDefault(),s.store.openDropdown("keyboard"))}d.key==="Escape"&&s.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&a==="button"&&(d.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:u}}const tst={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Eoe=Ze((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=$e("ComboboxEventsTarget",tst,e);if(!xs(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=_i(),h=jN({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...h,...u,[o]:Jr(r,d.store.targetRef,E_(n))})});Eoe.displayName="@mantine/core/ComboboxEventsTarget";const BN=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=$e("ComboboxFooter",null,e),c=_i();return b.jsx(Oe,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:u=>{u.preventDefault()}})});BN.classes=ca,BN.displayName="@mantine/core/ComboboxFooter";const FN=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,children:l,label:c,id:u,...d}=$e("ComboboxGroup",null,e),h=_i(),p=_s(u);return b.jsxs(Oe,{ref:r,role:"group","aria-labelledby":c?p:void 0,...h.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...d,children:[c&&b.jsx("div",{id:p,...h.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),l]})});FN.classes=ca,FN.displayName="@mantine/core/ComboboxGroup";const HN=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=$e("ComboboxHeader",null,e),c=_i();return b.jsx(Oe,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:u=>{u.preventDefault()}})});HN.classes=ca,HN.displayName="@mantine/core/ComboboxHeader";function Soe({value:e,valuesDivider:r=",",...n}){return b.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}Soe.displayName="@mantine/core/ComboboxHiddenInput";const UN=Ze((e,r)=>{const n=$e("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,onClick:c,id:u,active:d,onMouseDown:h,onMouseOver:p,disabled:g,selected:y,mod:x,...w}=n,k=_i(),C=E.useId(),_=u||C;return b.jsx(Oe,{...k.getStyles("option",{className:a,classNames:o,styles:s,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":g,"combobox-selected":y},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),h?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),p?.(T)}})});UN.classes=ca,UN.displayName="@mantine/core/ComboboxOption";const VN=Ze((e,r)=>{const n=$e("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:s,id:l,onMouseDown:c,labelledBy:u,...d}=n,h=_i(),p=_s(l);return E.useEffect(()=>{h.store.setListId(p)},[p]),b.jsx(Oe,{ref:r,...h.getStyles("options",{className:a,style:i,classNames:o,styles:s}),...d,id:p,role:"listbox","aria-labelledby":u,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});VN.classes=ca,VN.displayName="@mantine/core/ComboboxOptions";const rst={withAriaAttributes:!0,withKeyboardNavigation:!0},qN=Ze((e,r)=>{const n=$e("ComboboxSearch",rst,e),{classNames:o,styles:a,unstyled:i,vars:s,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:u,size:d,...h}=n,p=_i(),g=p.getStyles("search"),y=jN({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return b.jsx(la,{ref:Jr(r,p.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||p.size,...y,...h,__staticSelector:"Combobox"})});qN.classes=ca,qN.displayName="@mantine/core/ComboboxSearch";const nst={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Coe=Ze((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=$e("ComboboxTarget",nst,e);if(!xs(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=_i(),h=jN({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),p=E.cloneElement(n,{...h,...u});return b.jsx(bo.Target,{ref:Jr(r,d.store.targetRef),children:p})});Coe.displayName="@mantine/core/ComboboxTarget";function ost(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function ast(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function ist(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function Toe({defaultOpened:e,opened:r,onOpenedChange:n,onDropdownClose:o,onDropdownOpen:a,loop:i=!0,scrollBehavior:s="instant"}={}){const[l,c]=Ru({value:r,defaultValue:e,finalValue:!1,onChange:n}),u=E.useRef(null),d=E.useRef(-1),h=E.useRef(null),p=E.useRef(null),g=E.useRef(-1),y=E.useRef(-1),x=E.useRef(-1),w=E.useCallback((L="unknown")=>{l||(c(!0),a?.(L))},[c,a,l]),k=E.useCallback((L="unknown")=>{l&&(c(!1),o?.(L))},[c,o,l]),C=E.useCallback((L="unknown")=>{l?k(L):w(L)},[k,w,l]),_=E.useCallback(()=>{const L=document.querySelector(`#${u.current} [data-combobox-selected]`);L?.removeAttribute("data-combobox-selected"),L?.removeAttribute("aria-selected")},[]),T=E.useCallback(L=>{const U=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!U)return null;const q=L>=U.length?0:L<0?U.length-1:L;return d.current=q,U?.[q]&&!U[q].hasAttribute("data-combobox-disabled")?(_(),U[q].setAttribute("data-combobox-selected","true"),U[q].setAttribute("aria-selected","true"),U[q].scrollIntoView({block:"nearest",behavior:s}),U[q].id):null},[s,_]),A=E.useCallback(()=>{const L=document.querySelector(`#${u.current} [data-combobox-active]`);if(L){const U=document.querySelectorAll(`#${u.current} [data-combobox-option]`),q=Array.from(U).findIndex(X=>X===L);return T(q)}return T(0)},[T]),N=E.useCallback(()=>T(ast(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),$=E.useCallback(()=>T(ost(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),R=E.useCallback(()=>T(ist(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),M=E.useCallback((L="selected",U)=>{x.current=window.setTimeout(()=>{const q=document.querySelectorAll(`#${u.current} [data-combobox-option]`),X=Array.from(q).findIndex(F=>F.hasAttribute(`data-combobox-${L}`));d.current=X,U?.scrollIntoView&&q[X]?.scrollIntoView({block:"nearest",behavior:s})},0)},[]),O=E.useCallback(()=>{d.current=-1,_()},[_]),B=E.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),I=E.useCallback(L=>{u.current=L},[]),Y=E.useCallback(()=>{g.current=window.setTimeout(()=>h.current?.focus(),0)},[]),D=E.useCallback(()=>{y.current=window.setTimeout(()=>p.current?.focus(),0)},[]),V=E.useCallback(()=>d.current,[]);return E.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout(x.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:d.current,getSelectedOptionIndex:V,selectOption:T,selectFirstOption:R,selectActiveOption:A,selectNextOption:N,selectPreviousOption:$,resetSelectedOption:O,updateSelectedOptionIndex:M,listId:u.current,setListId:I,clickSelectedOption:B,searchRef:h,focusSearchInput:Y,targetRef:p,focusTarget:D}}const sst={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},lst=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Oo(r),"--combobox-option-padding":er(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Fe(n),"--combobox-option-fz":Oo(r),"--combobox-option-padding":er(r,"combobox-option-padding")}});function gr(e){const r=$e("Combobox",sst,e),{classNames:n,styles:o,unstyled:a,children:i,store:s,vars:l,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:h,resetSelectionOnOptionHover:p,__staticSelector:g,readOnly:y,attributes:x,...w}=r,k=Toe(),C=s||k,_=dt({name:g||"Combobox",classes:ca,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:l,varsResolver:lst}),T=()=>{u?.(),C.closeDropdown()};return b.jsx(Jit,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:p,readOnly:y},children:b.jsx(bo,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:A=>!A&&T(),withRoles:!1,unstyled:a,children:i})})}const cst=e=>e;gr.extend=cst,gr.classes=ca,gr.displayName="@mantine/core/Combobox",gr.Target=Coe,gr.Dropdown=IN,gr.Options=VN,gr.Option=UN,gr.Search=qN,gr.Empty=zN,gr.Chevron=LN,gr.Footer=BN,gr.Header=HN,gr.EventsTarget=Eoe,gr.DropdownTarget=_oe,gr.Group=FN,gr.ClearButton=koe,gr.HiddenInput=Soe;function ust({size:e,style:r,...n}){const o=e!==void 0?{width:Fe(e),height:Fe(e),...r}:r;return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Qy(e){return"group"in e}function Aoe({options:e,search:r,limit:n}){const o=r.trim().toLowerCase(),a=[];for(let i=0;i<e.length;i+=1){const s=e[i];if(a.length===n)return a;Qy(s)&&a.push({group:s.group,items:Aoe({options:s.items,search:r,limit:n-a.length})}),Qy(s)||s.label.toLowerCase().includes(o)&&a.push(s)}return a}function dst(e){if(e.length===0)return!0;for(const r of e)if(!("group"in r)||r.items.length>0)return!1;return!0}function Noe(e,r=new Set){if(Array.isArray(e))for(const n of e)if(Qy(n))Noe(n.items,r);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(r.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);r.add(n.value)}}function hst(e,r){return Array.isArray(e)?e.includes(r):e===r}function Roe({data:e,withCheckIcon:r,value:n,checkIconPosition:o,unstyled:a,renderOption:i}){if(!Qy(e)){const l=hst(n,e.value),c=r&&l&&b.jsx(ust,{className:ca.optionsDropdownCheckIcon}),u=b.jsxs(b.Fragment,{children:[o==="left"&&c,b.jsx("span",{children:e.label}),o==="right"&&c]});return b.jsx(gr.Option,{value:e.value,disabled:e.disabled,className:eo({[ca.optionsDropdownOption]:!a}),"data-reverse":o==="right"||void 0,"data-checked":l||void 0,"aria-selected":l,active:l,children:typeof i=="function"?i({option:e,checked:l}):u})}const s=e.items.map(l=>b.jsx(Roe,{data:l,value:n,unstyled:a,withCheckIcon:r,checkIconPosition:o,renderOption:i},l.value));return b.jsx(gr.Group,{label:e.group,children:s})}function fst({data:e,hidden:r,hiddenWhenEmpty:n,filter:o,search:a,limit:i,maxDropdownHeight:s,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:u=!1,value:d,checkIconPosition:h,nothingFoundMessage:p,unstyled:g,labelId:y,renderOption:x,scrollAreaProps:w,"aria-label":k}){Noe(e);const C=typeof a=="string"?(o||Aoe)({options:e,search:c?a:"",limit:i??1/0}):e,_=dst(C),T=C.map(A=>b.jsx(Roe,{data:A,withCheckIcon:u,value:d,checkIconPosition:h,unstyled:g,renderOption:x},Qy(A)?A.group:A.value));return b.jsx(gr.Dropdown,{hidden:r||n&&_,"data-composed":!0,children:b.jsxs(gr.Options,{labelledBy:y,"aria-label":k,children:[l?b.jsx(Ah.Autosize,{mah:s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...w,children:T}):T,_&&p&&b.jsx(gr.Empty,{children:p})]})})}var $oe={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const pst=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--badge-height":er(i,"badge-height"),"--badge-padding-x":er(i,"badge-padding-x"),"--badge-fz":er(i,"badge-fz"),"--badge-radius":r===void 0?void 0:un(r),"--badge-bg":n||a?l.background:void 0,"--badge-color":n||a?l.color:void 0,"--badge-bd":n||a?l.border:void 0,"--badge-dot-color":a==="dot"?qo(n,e):void 0}}},Poe=zn((e,r)=>{const n=$e("Badge",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:u,color:d,gradient:h,leftSection:p,rightSection:g,children:y,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...A}=n,N=dt({name:"Badge",props:n,classes:$oe,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:pst});return b.jsxs(Oe,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!p},_],...N("root",{variant:x}),ref:r,...A,children:[p&&b.jsx("span",{...N("section"),"data-position":"left",children:p}),b.jsx("span",{...N("label"),children:y}),g&&b.jsx("span",{...N("section"),"data-position":"right",children:g})]})});Poe.classes=$oe,Poe.displayName="@mantine/core/Badge";var Moe={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const mst={separator:"/"},gst=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":Jn(r)}}),Ooe=Ze((e,r)=>{const n=$e("Breadcrumbs",mst,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:u,separator:d,separatorMargin:h,attributes:p,...g}=n,y=dt({name:"Breadcrumbs",classes:Moe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:p,vars:c,varsResolver:gst}),x=E.Children.toArray(u).reduce((w,k,C,_)=>{const T=xs(k)?E.cloneElement(k,{...y("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...y("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Oe,{...y("separator"),key:`separator-${C}`},d)),w},[]);return b.jsx(Oe,{ref:r,...y("root"),...g,children:x})});Ooe.classes=Moe,Ooe.displayName="@mantine/core/Breadcrumbs";var Doe={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const yst=(e,{color:r,size:n,lineSize:o,transitionDuration:a,transitionTimingFunction:i})=>({root:{"--burger-color":r?qo(r,e):void 0,"--burger-size":er(n,"burger-size"),"--burger-line-size":o?Fe(o):void 0,"--burger-transition-duration":a===void 0?void 0:`${a}ms`,"--burger-transition-timing-function":i}}),Loe=Ze((e,r)=>{const n=$e("Burger",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:u,children:d,transitionDuration:h,transitionTimingFunction:p,lineSize:g,attributes:y,...x}=n,w=dt({name:"Burger",classes:Doe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:yst});return b.jsxs(pl,{...w("root"),ref:r,...x,children:[b.jsx(Oe,{mod:["reduce-motion",{opened:u}],...w("burger")}),d]})});Loe.classes=Doe,Loe.displayName="@mantine/core/Burger";var Vm={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const Ioe={orientation:"horizontal"},bst=(e,{borderWidth:r})=>({group:{"--button-border-width":Fe(r)}}),YN=Ze((e,r)=>{const n=$e("ButtonGroup",Ioe,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:u,borderWidth:d,variant:h,mod:p,attributes:g,...y}=$e("ButtonGroup",Ioe,e),x=dt({name:"ButtonGroup",props:n,classes:Vm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:u,varsResolver:bst,rootSelector:"group"});return b.jsx(Oe,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},p],role:"group",...y})});YN.classes=Vm,YN.displayName="@mantine/core/ButtonGroup";const vst=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":er(s,"section-height"),"--section-padding-x":er(s,"section-padding-x"),"--section-fz":s?.includes("compact")?Oo(s.replace("compact-","")):Oo(s),"--section-radius":r===void 0?void 0:un(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},WN=Ze((e,r)=>{const n=$e("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:u,gradient:d,radius:h,autoContrast:p,attributes:g,...y}=n,x=dt({name:"ButtonGroupSection",props:n,classes:Vm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:vst,rootSelector:"groupSection"});return b.jsx(Oe,{...x("groupSection"),ref:r,variant:u,...y})});WN.classes=Vm,WN.displayName="@mantine/core/ButtonGroupSection";const xst={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Fe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},wst=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:s,autoContrast:l})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--button-justify":s,"--button-height":er(i,"button-height"),"--button-padding-x":er(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Oo(i.replace("compact-","")):Oo(i),"--button-radius":r===void 0?void 0:un(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},rE=zn((e,r)=>{const n=$e("Button",null,e),{style:o,vars:a,className:i,color:s,disabled:l,children:c,leftSection:u,rightSection:d,fullWidth:h,variant:p,radius:g,loading:y,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:A,mod:N,attributes:$,...R}=n,M=dt({name:"Button",props:n,classes:Vm,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:$,vars:a,varsResolver:wst}),O=!!u,B=!!d;return b.jsxs(pl,{ref:r,...M("root",{active:!l&&!y&&!T}),unstyled:_,variant:p,disabled:l||y,mod:[{disabled:l||T,loading:y,block:h,"with-left-section":O,"with-right-section":B},N],...R,children:[typeof y=="boolean"&&b.jsx(Ts,{mounted:y,transition:xst,duration:150,children:I=>b.jsx(Oe,{component:"span",...M("loader",{style:I}),"aria-hidden":!0,children:b.jsx(Rh,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),b.jsxs("span",{...M("inner"),children:[u&&b.jsx(Oe,{component:"span",...M("section"),mod:{position:"left"},children:u}),b.jsx(Oe,{component:"span",mod:{loading:y},...M("label"),children:c}),d&&b.jsx(Oe,{component:"span",...M("section"),mod:{position:"right"},children:d})]})]})});rE.classes=Vm,rE.displayName="@mantine/core/Button",rE.Group=YN,rE.GroupSection=WN;const[kst,_st]=Ma("Card component was not found in tree");var XN={root:"m_e615b15f",section:"m_599a2148"};const nE=zn((e,r)=>{const n=$e("CardSection",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,withBorder:c,inheritPadding:u,mod:d,...h}=n,p=_st();return b.jsx(Oe,{ref:r,mod:[{"with-border":c,"inherit-padding":u},d],...p.getStyles("section",{className:a,style:i,styles:s,classNames:o}),...h})});nE.classes=XN,nE.displayName="@mantine/core/CardSection";const Est=(e,{padding:r})=>({root:{"--card-padding":Jn(r)}}),GN=zn((e,r)=>{const n=$e("Card",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:u,padding:d,attributes:h,...p}=n,g=dt({name:"Card",props:n,classes:XN,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:Est}),y=E.Children.toArray(u),x=y.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===nE?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===y.length-1||void 0}):w);return b.jsx(kst,{value:{getStyles:g},children:b.jsx(Y_,{ref:r,unstyled:l,...g("root"),...p,children:x})})});GN.classes=XN,GN.displayName="@mantine/core/Card",GN.Section=nE;var zoe={root:"m_b183c0a2"};const Sst=(e,{color:r})=>({root:{"--code-bg":r?qo(r,e):void 0}}),joe=Ze((e,r)=>{const n=$e("Code",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,block:d,variant:h,mod:p,attributes:g,...y}=n,x=dt({name:"Code",props:n,classes:zoe,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:Sst});return b.jsx(Oe,{component:d?"pre":"code",variant:h,ref:r,mod:[{block:d},p],...x("root"),...y,dir:"ltr"})});joe.classes=zoe,joe.displayName="@mantine/core/Code";var Boe={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const Foe={withShadow:!0},Cst=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:un(r),"--cs-size":Fe(n)}}),Hoe=zn((e,r)=>{const n=$e("ColorSwatch",Foe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,size:d,radius:h,withShadow:p,children:g,variant:y,attributes:x,...w}=$e("ColorSwatch",Foe,n),k=dt({name:"ColorSwatch",props:n,classes:Boe,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:c,varsResolver:Cst});return b.jsxs(Oe,{ref:r,variant:y,size:d,...k("root",{focusable:!0}),...w,children:[b.jsx("span",{...k("alphaOverlay")}),p&&b.jsx("span",{...k("shadowOverlay")}),b.jsx("span",{...k("colorOverlay",{style:{backgroundColor:u}})}),b.jsx("span",{...k("childrenOverlay"),children:g})]})});Hoe.classes=Boe,Hoe.displayName="@mantine/core/ColorSwatch";var Uoe={root:"m_7485cace"};const Tst=(e,{size:r,fluid:n})=>({root:{"--container-size":n?void 0:er(r,"container-size")}}),Voe=Ze((e,r)=>{const n=$e("Container",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fluid:u,mod:d,attributes:h,strategy:p,...g}=n,y=dt({name:"Container",classes:Uoe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:Tst});return b.jsx(Oe,{ref:r,mod:[{fluid:u,strategy:p||"block"},d],...y("root"),...g})});Voe.classes=Uoe,Voe.displayName="@mantine/core/Container";var qoe={root:"m_3eebeb36",label:"m_9e365f20"};const Ast={orientation:"horizontal"},Nst=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?qo(r,e):void 0,"--divider-border-style":n,"--divider-size":er(o,"divider-size")}}),Yoe=Ze((e,r)=>{const n=$e("Divider",Ast,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,orientation:d,label:h,labelPosition:p,mod:g,attributes:y,...x}=n,w=dt({name:"Divider",classes:qoe,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:Nst});return b.jsx(Oe,{ref:r,mod:[{orientation:d,"with-label":!!h},g],...w("root"),...x,role:"separator",children:h&&b.jsx(Oe,{component:"span",mod:{position:p},...w("label"),children:h})})});Yoe.classes=qoe,Yoe.displayName="@mantine/core/Divider";const[Rst,qm]=Ma("Drawer component was not found in tree");var pc={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const oE=Ze((e,r)=>{const n=$e("DrawerBody",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=qm();return b.jsx(NN,{ref:r,...u.getStyles("body",{classNames:o,style:i,styles:s,className:a}),...c})});oE.classes=pc,oE.displayName="@mantine/core/DrawerBody";const aE=Ze((e,r)=>{const n=$e("DrawerCloseButton",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=qm();return b.jsx(ioe,{ref:r,...u.getStyles("close",{classNames:o,style:i,styles:s,className:a}),...c})});aE.classes=pc,aE.displayName="@mantine/core/DrawerCloseButton";const iE=Ze((e,r)=>{const n=$e("DrawerContent",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,children:c,radius:u,__hidden:d,...h}=n,p=qm(),g=p.scrollAreaComponent||coe;return b.jsx(RN,{...p.getStyles("content",{className:a,style:i,styles:s,classNames:o}),innerProps:p.getStyles("inner",{className:a,style:i,styles:s,classNames:o}),ref:r,...h,radius:u||p.radius||0,"data-hidden":d||void 0,children:b.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:c})})});iE.classes=pc,iE.displayName="@mantine/core/DrawerContent";const sE=Ze((e,r)=>{const n=$e("DrawerHeader",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=qm();return b.jsx(soe,{ref:r,...u.getStyles("header",{classNames:o,style:i,styles:s,className:a}),...c})});sE.classes=pc,sE.displayName="@mantine/core/DrawerHeader";const lE=Ze((e,r)=>{const n=$e("DrawerOverlay",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=qm();return b.jsx($N,{ref:r,...u.getStyles("overlay",{classNames:o,style:i,styles:s,className:a}),...c})});lE.classes=pc,lE.displayName="@mantine/core/DrawerOverlay";function $st(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function Pst(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const Mst={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},Ost={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},Dst={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ws("modal"),position:"left"},Lst=(e,{position:r,size:n,offset:o})=>({root:{"--drawer-size":er(n,"drawer-size"),"--drawer-flex":Pst(r),"--drawer-height":r==="left"||r==="right"?void 0:"var(--drawer-size)","--drawer-align":$st(r),"--drawer-justify":r==="right"?"flex-end":void 0,"--drawer-offset":Fe(o)}}),cE=Ze((e,r)=>{const n=$e("DrawerRoot",Dst,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,scrollAreaComponent:u,position:d,transitionProps:h,radius:p,attributes:g,...y}=n,{dir:x}=cc(),w=dt({name:"Drawer",classes:pc,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:Lst}),k=(x==="rtl"?Ost:Mst)[d];return b.jsx(Rst,{value:{scrollAreaComponent:u,getStyles:w,radius:p},children:b.jsx(AN,{ref:r,...w("root"),transitionProps:{transition:k,...h},"data-offset-scrollbars":u===Ah.Autosize||void 0,unstyled:l,...y})})});cE.classes=pc,cE.displayName="@mantine/core/DrawerRoot";const[Ist,zst]=Rm();function Woe({children:e}){const[r,n]=E.useState([]),[o,a]=E.useState(ws("modal"));return b.jsx(Ist,{value:{stack:r,addModal:(i,s)=>{n(l=>[...new Set([...l,i])]),a(l=>typeof s=="number"&&typeof l=="number"?Math.max(l,s):l)},removeModal:i=>n(s=>s.filter(l=>l!==i)),getZIndex:i=>`calc(${o} + ${r.indexOf(i)} + 1)`,currentId:r[r.length-1],maxZIndex:o},children:e})}Woe.displayName="@mantine/core/DrawerStack";const uE=Ze((e,r)=>{const n=$e("DrawerTitle",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=qm();return b.jsx(loe,{ref:r,...u.getStyles("title",{classNames:o,style:i,styles:s,className:a}),...c})});uE.classes=pc,uE.displayName="@mantine/core/DrawerTitle";const jst={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ws("modal"),withOverlay:!0,withCloseButton:!0},ml=Ze((e,r)=>{const{title:n,withOverlay:o,overlayProps:a,withCloseButton:i,closeButtonProps:s,children:l,opened:c,stackId:u,zIndex:d,...h}=$e("Drawer",jst,e),p=zst(),g=!!n||i,y=p&&u?{closeOnEscape:p.currentId===u,trapFocus:p.currentId===u,zIndex:p.getZIndex(u)}:{},x=o===!1?!1:u&&p?p.currentId===u:c;return E.useEffect(()=>{p&&u&&(c?p.addModal(u,d||ws("modal")):p.removeModal(u))},[c,u,d]),b.jsxs(cE,{ref:r,opened:c,zIndex:p&&u?p.getZIndex(u):d,...h,...y,children:[o&&b.jsx(lE,{visible:x,transitionProps:p&&u?{duration:0}:void 0,...a}),b.jsxs(iE,{__hidden:p&&u&&c?u!==p.currentId:!1,children:[g&&b.jsxs(sE,{children:[n&&b.jsx(uE,{children:n}),i&&b.jsx(aE,{...s})]}),b.jsx(oE,{children:l})]})]})});ml.classes=pc,ml.displayName="@mantine/core/Drawer",ml.Root=cE,ml.Overlay=lE,ml.Content=iE,ml.Body=oE,ml.Header=sE,ml.Title=uE,ml.CloseButton=aE,ml.Stack=Woe;const[Xoe,Goe]=Ma("Grid component was not found in tree"),KN=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,Koe=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":KN(e,r),Zoe=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},Qoe=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function Bst({span:e,order:r,offset:n,selector:o}){const a=yo(),i=Goe(),s=i.breakpoints||a.breakpoints,l=ks(e)===void 0?12:ks(e),c=Nu({"--col-order":ks(r)?.toString(),"--col-flex-grow":Zoe(l,i.grow),"--col-flex-basis":KN(l,i.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":Koe(l,i.columns,i.grow),"--col-offset":Qoe(ks(n),i.columns)}),u=Mo(s).reduce((h,p)=>(h[p]||(h[p]={}),typeof r=="object"&&r[p]!==void 0&&(h[p]["--col-order"]=r[p]?.toString()),typeof e=="object"&&e[p]!==void 0&&(h[p]["--col-flex-grow"]=Zoe(e[p],i.grow),h[p]["--col-flex-basis"]=KN(e[p],i.columns),h[p]["--col-width"]=e[p]==="content"?"auto":void 0,h[p]["--col-max-width"]=Koe(e[p],i.columns,i.grow)),typeof n=="object"&&n[p]!==void 0&&(h[p]["--col-offset"]=Qoe(n[p],i.columns)),h),{}),d=$7(Mo(u),s).filter(h=>Mo(u[h.value]).length>0).map(h=>({query:i.type==="container"?`mantine-grid (min-width: ${s[h.value]})`:`(min-width: ${s[h.value]})`,styles:u[h.value]}));return b.jsx(Om,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var ZN={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Fst={span:12},QN=Ze((e,r)=>{const n=$e("GridCol",Fst,e),{classNames:o,className:a,style:i,styles:s,vars:l,span:c,order:u,offset:d,...h}=n,p=Goe(),g=qy();return b.jsxs(b.Fragment,{children:[b.jsx(Bst,{selector:`.${g}`,span:c,order:u,offset:d}),b.jsx(Oe,{ref:r,...p.getStyles("col",{className:eo(a,g),style:i,classNames:o,styles:s}),...h})]})});QN.classes=ZN,QN.displayName="@mantine/core/GridCol";function Joe({gutter:e,selector:r,breakpoints:n,type:o}){const a=yo(),i=n||a.breakpoints,s=Nu({"--grid-gutter":Jn(ks(e))}),l=Mo(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=Jn(e[d])),u),{}),c=$7(Mo(l),i).filter(u=>Mo(l[u.value]).length>0).map(u=>({query:o==="container"?`mantine-grid (min-width: ${i[u.value]})`:`(min-width: ${i[u.value]})`,styles:l[u.value]}));return b.jsx(Om,{styles:s,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const Hst={gutter:"md",grow:!1,columns:12},Ust=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),JN=Ze((e,r)=>{const n=$e("Grid",Hst,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,grow:u,gutter:d,columns:h,align:p,justify:g,children:y,breakpoints:x,type:w,attributes:k,...C}=n,_=dt({name:"Grid",classes:ZN,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:k,vars:c,varsResolver:Ust}),T=qy();return w==="container"&&x?b.jsxs(Xoe,{value:{getStyles:_,grow:u,columns:h,breakpoints:x,type:w},children:[b.jsx(Joe,{selector:`.${T}`,...n}),b.jsx("div",{..._("container"),children:b.jsx(Oe,{ref:r,..._("root",{className:T}),...C,children:b.jsx("div",{..._("inner"),children:y})})})]}):b.jsxs(Xoe,{value:{getStyles:_,grow:u,columns:h,breakpoints:x,type:w},children:[b.jsx(Joe,{selector:`.${T}`,...n}),b.jsx(Oe,{ref:r,..._("root",{className:T}),...C,children:b.jsx("div",{..._("inner"),children:y})})]})});JN.classes=ZN,JN.displayName="@mantine/core/Grid",JN.Col=QN;function eae({color:e,theme:r,defaultShade:n}){const o=Eh({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var tae={root:"m_bcb3f3c2"};const Vst={color:"yellow"},qst=(e,{color:r})=>({root:{"--mark-bg-dark":eae({color:r,theme:e,defaultShade:5}),"--mark-bg-light":eae({color:r,theme:e,defaultShade:2})}}),eR=Ze((e,r)=>{const n=$e("Mark",Vst,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,variant:d,attributes:h,...p}=n,g=dt({name:"Mark",props:n,className:a,style:i,classes:tae,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:qst});return b.jsx(Oe,{component:"mark",ref:r,variant:d,...g("root"),...p})});eR.classes=tae,eR.displayName="@mantine/core/Mark";function rae(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function Yst(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(rae):rae(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,s)=>s.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const nae=zn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:s,...l}=$e("Highlight",null,e),c=Yst(o,a);return b.jsx(Zy,{unstyled:n,ref:r,...l,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},h)=>d?b.jsx(eR,{unstyled:n,color:s,style:i,"data-highlight":u,children:u},h):b.jsx("span",{children:u},h))})});nae.classes=Zy.classes,nae.displayName="@mantine/core/Highlight";const[v2t,oae]=Ma("HoverCard component was not found in the tree"),aae=E.createContext(!1),Wst=aae.Provider,iae=()=>E.useContext(aae);function Xst(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=$e("HoverCardDropdown",null,e),i=oae();if(iae()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return b.jsx(bo.Dropdown,{ref:i.floating,...c,onMouseEnter:En(n,c.onMouseEnter),onMouseLeave:En(o,c.onMouseLeave),...a,children:r})}const s=En(n,i.openDropdown),l=En(o,i.closeDropdown);return b.jsx(bo.Dropdown,{onMouseEnter:s,onMouseLeave:l,...a,children:r})}Xst.displayName="@mantine/core/HoverCardDropdown";const Gst={openDelay:0,closeDelay:0};function sae(e){const{openDelay:r,closeDelay:n,children:o}=$e("HoverCardGroup",Gst,e);return b.jsx(Wst,{value:!0,children:b.jsx(_ne,{delay:{open:r,close:n},children:o})})}sae.displayName="@mantine/core/HoverCardGroup",sae.extend=e=>e;const Kst={refProp:"ref"},Zst=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=$e("HoverCardTarget",Kst,e);if(!xs(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=oae();if(iae()&&s.getReferenceProps&&s.reference){const d=s.getReferenceProps();return b.jsx(bo.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:{...d,ref:s.reference}}:{...d,ref:s.reference})})}const l=En(n.props.onMouseEnter,s.openDropdown),c=En(n.props.onMouseLeave,s.closeDropdown),u={onMouseEnter:l,onMouseLeave:c};return b.jsx(bo.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:u}:u)})});Zst.displayName="@mantine/core/HoverCardTarget";function lae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cae={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const uae={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:ws("overlay")},Qst=(e,{zIndex:r})=>({root:{"--lo-z-index":r?.toString()}}),dae=Ze((e,r)=>{const n=$e("LoadingOverlay",uae,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,transitionProps:u,loaderProps:d,overlayProps:h,visible:p,zIndex:g,attributes:y,...x}=n,w=yo(),k=dt({name:"LoadingOverlay",classes:cae,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:Qst}),C={...uae.overlayProps,...h};return b.jsx(Ts,{transition:"fade",...u,mounted:!!p,children:_=>b.jsxs(Oe,{...k("root",{style:_}),ref:r,...x,children:[b.jsx(Rh,{...k("loader"),unstyled:l,...d}),b.jsx(Fm,{...C,...k("overlay"),darkHidden:!0,unstyled:l,color:h?.color||w.white}),b.jsx(Fm,{...C,...k("overlay"),lightHidden:!0,unstyled:l,color:h?.color||w.colors.dark[5]})]})})});dae.classes=cae,dae.displayName="@mantine/core/LoadingOverlay";const[x2t,Pu]=Ma("Menu component was not found in the tree");var Ym={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const hae=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=$e("MenuDivider",null,e),c=Pu();return b.jsx(Oe,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...l})});hae.classes=Ym,hae.displayName="@mantine/core/MenuDivider";const fae=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:u,children:d,...h}=$e("MenuDropdown",null,e),p=E.useRef(null),g=Pu(),y=En(u,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),p.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=En(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=En(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return b.jsxs(bo.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Jr(r,p),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:[g.withInitialFocusPlaceholder&&b.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),d]})});fae.classes=Ym,fae.displayName="@mantine/core/MenuDropdown";const[Jst,dE]=Rm(),pae=zn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,closeMenuOnClick:c,leftSection:u,rightSection:d,children:h,disabled:p,"data-disabled":g,...y}=$e("MenuItem",null,e),x=Pu(),w=dE(),k=yo(),{dir:C}=cc(),_=E.useRef(null),T=y,A=En(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),N=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,$=l?Eh({color:l,theme:k}):null,R=En(T.onKeyDown,M=>{M.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return b.jsxs(pl,{onMouseDown:M=>M.preventDefault(),...y,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Jr(_,r),role:"menuitem",disabled:p,"data-menu-item":!0,"data-disabled":p||g||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:N7({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":$?.isThemeColor&&$?.shade===void 0?`var(--mantine-color-${$.color}-6)`:N?.color,"--menu-item-hover":N?.hover},children:[u&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:u}),h&&b.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:h}),d&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d})]})});pae.classes=Ym,pae.displayName="@mantine/core/MenuItem";const mae=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=$e("MenuLabel",null,e),c=Pu();return b.jsx(Oe,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...l})});mae.classes=Ym,mae.displayName="@mantine/core/MenuLabel";const tR=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:u,children:d,...h}=$e("MenuSubDropdown",null,e),p=E.useRef(null),g=Pu(),y=dE(),x=En(l,y?.open),w=En(c,y?.close);return b.jsx(bo.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Jr(r,p),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});tR.classes=Ym,tR.displayName="@mantine/core/MenuSubDropdown";const rR=zn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,leftSection:c,rightSection:u,children:d,disabled:h,"data-disabled":p,closeMenuOnClick:g,...y}=$e("MenuSubItem",null,e),x=Pu(),w=dE(),k=yo(),{dir:C}=cc(),_=E.useRef(null),T=y,A=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,N=l?Eh({color:l,theme:k}):null,$=En(T.onKeyDown,B=>{B.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),B.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),R=En(T.onClick,()=>{!p&&g&&x.closeDropdownImmediately()}),M=En(T.onMouseEnter,w?.open),O=En(T.onMouseLeave,w?.close);return b.jsxs(pl,{onMouseDown:B=>B.preventDefault(),...y,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Jr(_,r),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||p||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:M,onMouseLeave:O,onClick:R,onKeyDown:N7({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:$}),__vars:{"--menu-item-color":N?.isThemeColor&&N?.shade===void 0?`var(--mantine-color-${N.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[c&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),d&&b.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:d}),b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u||b.jsx(DN,{...x.getStyles("chevron"),size:14})})]})});rR.classes=Ym,rR.displayName="@mantine/core/MenuSubItem";function gae({children:e,refProp:r}){if(!xs(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Pu(),b.jsx(bo.Target,{refProp:r,popupType:"menu",children:e})}gae.displayName="@mantine/core/MenuSubTarget";const elt={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function Jy(e){const{children:r,closeDelay:n,...o}=$e("MenuSub",elt,e),a=_s(),[i,{open:s,close:l}]=Drt(!1),c=dE(),{openDropdown:u,closeDropdown:d}=Vit({open:s,close:l,closeDelay:n,openDelay:0});return b.jsx(Jst,{value:{opened:i,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:b.jsx(bo,{opened:i,...o,withinPortal:!1,withArrow:!1,id:a,children:r})})}Jy.extend=e=>e,Jy.displayName="@mantine/core/MenuSub",Jy.Target=gae,Jy.Dropdown=tR,Jy.Item=rR;const tlt={refProp:"ref"},rlt=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=$e("MenuTarget",tlt,e);if(!xs(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Pu(),s=n.props,l=En(s.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=En(s.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=En(s.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return b.jsx(bo.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:l,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});rlt.displayName="@mantine/core/MenuTarget";const[nlt,nR]=Ma("Modal component was not found in tree");var eb={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const yae=Ze((e,r)=>{const n=$e("ModalBody",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=nR();return b.jsx(NN,{ref:r,...u.getStyles("body",{classNames:o,style:i,styles:s,className:a}),...c})});yae.classes=eb,yae.displayName="@mantine/core/ModalBody";const bae=Ze((e,r)=>{const n=$e("ModalContent",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,children:c,__hidden:u,...d}=n,h=nR(),p=h.scrollAreaComponent||coe;return b.jsx(RN,{...h.getStyles("content",{className:a,style:i,styles:s,classNames:o}),innerProps:h.getStyles("inner",{className:a,style:i,styles:s,classNames:o}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:r,...d,children:b.jsx(p,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${Fe(h.yOffset)} * 2))`},children:c})})});bae.classes=eb,bae.displayName="@mantine/core/ModalContent";const vae=Ze((e,r)=>{const n=$e("ModalOverlay",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,u=nR();return b.jsx($N,{ref:r,...u.getStyles("overlay",{classNames:o,style:i,styles:s,className:a}),...c})});vae.classes=eb,vae.displayName="@mantine/core/ModalOverlay";const olt={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ws("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},alt=(e,{radius:r,size:n,yOffset:o,xOffset:a})=>({root:{"--modal-radius":r===void 0?void 0:un(r),"--modal-size":er(n,"modal-size"),"--modal-y-offset":Fe(o),"--modal-x-offset":Fe(a)}}),xae=Ze((e,r)=>{const n=$e("ModalRoot",olt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,yOffset:u,scrollAreaComponent:d,radius:h,fullScreen:p,centered:g,xOffset:y,__staticSelector:x,attributes:w,...k}=n,C=dt({name:x,classes:eb,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c,varsResolver:alt});return b.jsx(nlt,{value:{yOffset:u,scrollAreaComponent:d,getStyles:C,fullScreen:p},children:b.jsx(AN,{ref:r,...C("root"),"data-full-screen":p||void 0,"data-centered":g||void 0,"data-offset-scrollbars":d===Ah.Autosize||void 0,unstyled:l,...k})})});xae.classes=eb,xae.displayName="@mantine/core/ModalRoot";const[w2t,wae]=Rm(),[ilt,slt]=Rm();var hE={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const llt=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?er(r):er(n,"pg-gap")}}),oR=Ze((e,r)=>{const n=$e("PillGroup",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,disabled:d,attributes:h,...p}=n,g=wae()?.size||u||void 0,y=dt({name:"PillGroup",classes:hE,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:llt,stylesCtx:{size:g},rootSelector:"group"});return b.jsx(ilt,{value:{size:g,disabled:d},children:b.jsx(Oe,{ref:r,size:g,...y("group"),...p})})});oR.classes=hE,oR.displayName="@mantine/core/PillGroup";const clt={variant:"default"},ult=(e,{radius:r},{size:n})=>({root:{"--pill-fz":er(n,"pill-fz"),"--pill-height":er(n,"pill-height"),"--pill-radius":r===void 0?void 0:un(r)}}),aR=Ze((e,r)=>{const n=$e("Pill",clt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,variant:u,children:d,withRemoveButton:h,onRemove:p,removeButtonProps:g,radius:y,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=slt(),A=wae(),N=x||T?.size||void 0,$=A?.variant==="filled"?"contrast":u||"default",R=dt({name:"Pill",classes:hE,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,vars:c,varsResolver:ult,stylesCtx:{size:N}});return b.jsxs(Oe,{component:"span",ref:r,variant:$,size:N,...R("root",{variant:$}),mod:[{"with-remove":h&&!w,disabled:w||T?.disabled},k],..._,children:[b.jsx("span",{...R("label"),children:d}),h&&b.jsx($h,{variant:"transparent",radius:y,tabIndex:-1,"aria-hidden":!0,unstyled:l,...g,...R("remove",{className:g?.className,style:g?.style}),onMouseDown:M=>{M.preventDefault(),M.stopPropagation(),g?.onMouseDown?.(M)},onClick:M=>{M.stopPropagation(),p?.(),g?.onClick?.(M)}})]})});aR.classes=hE,aR.displayName="@mantine/core/Pill",aR.Group=oR;var kae={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const dlt=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":Jn(o)}}},_ae=zn((e,r)=>{const n=$e("NavLink",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:u,defaultOpened:d,onChange:h,children:p,active:g,disabled:y,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:A,autoContrast:N,mod:$,attributes:R,...M}=n,O=dt({name:"NavLink",props:n,classes:kae,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:R,vars:c,varsResolver:dlt}),[B,I]=Ru({value:u,defaultValue:d,finalValue:!1,onChange:h}),Y=!!p,D=V=>{M.onClick?.(V),Y&&(V.preventDefault(),I(!B))};return b.jsxs(b.Fragment,{children:[b.jsxs(pl,{...O("root"),component:"a",ref:r,onClick:D,onKeyDown:V=>{M.onKeyDown?.(V),V.nativeEvent.code==="Space"&&Y&&(V.preventDefault(),I(!B))},unstyled:l,mod:[{disabled:y,active:g,expanded:B},$],...M,children:[x&&b.jsx(Oe,{component:"span",...O("section"),mod:{position:"left"},children:x}),b.jsxs(Oe,{...O("body"),mod:{"no-wrap":T},children:[b.jsx(Oe,{component:"span",...O("label"),children:k}),b.jsx(Oe,{component:"span",mod:{active:g},...O("description"),children:C})]}),(Y||w!==void 0)&&b.jsx(Oe,{...O("section"),component:"span",mod:{rotate:B&&!_,position:"right"},children:Y?w!==void 0?w:b.jsx(DN,{...O("chevron")}):w})]}),Y&&b.jsx(Hre,{in:B,...O("collapse"),children:b.jsx("div",{...O("children"),children:p})})]})});_ae.classes=kae,_ae.displayName="@mantine/core/NavLink";var Eae={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const hlt={withCloseButton:!0},flt=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:un(r),"--notification-color":n?qo(n,e):void 0}}),Sae=Ze((e,r)=>{const n=$e("Notification",hlt,e),{className:o,color:a,radius:i,loading:s,withCloseButton:l,withBorder:c,title:u,icon:d,children:h,onClose:p,closeButtonProps:g,classNames:y,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:A,role:N,attributes:$,...R}=n,M=dt({name:"Notification",classes:Eae,props:n,className:o,style:x,classNames:y,styles:w,unstyled:k,attributes:$,vars:_,varsResolver:flt});return b.jsxs(Oe,{...M("root"),mod:[{"data-with-icon":!!d||s,"data-with-border":c},T],ref:r,variant:C,role:N||"alert",...R,children:[d&&!s&&b.jsx("div",{...M("icon"),children:d}),s&&b.jsx(Rh,{size:28,color:a,...A,...M("loader")}),b.jsxs("div",{...M("body"),children:[u&&b.jsx("div",{...M("title"),children:u}),b.jsx(Oe,{...M("description"),mod:{"data-with-title":!!u},children:h})]}),l&&b.jsx($h,{iconSize:16,color:"gray",...g,unstyled:k,onClick:p,...M("closeButton")})]})});Sae.classes=Eae,Sae.displayName="@mantine/core/Notification";const plt={duration:100,transition:"fade"};function Cae(e,r){return{...plt,...r,...e}}function mlt({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:s,y:l,elements:c,refs:u,update:d,placement:h}=mN({placement:r,middleware:[cN({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=h.includes("right")?e:r.includes("left")?e*-1:0,g=h.includes("bottom")?e:r.includes("top")?e*-1:0,y=E.useCallback(({clientX:x,clientY:w})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+p,top:w+g,right:x,bottom:w}}})},[c.reference]);return E.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",y);const w=hc(u.floating.current);return w.forEach(k=>{k.addEventListener("scroll",d)}),()=>{x.removeEventListener("mousemove",y),w.forEach(k=>{k.removeEventListener("scroll",d)})}}},[c.reference,u.floating.current,d,y,o]),{handleMouseMove:y,x:s,y:l,opened:o,setOpened:a,boundaryRef:i,floating:u.setFloating}}var fE={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const glt={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:ws("popover")},ylt=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:un(r),"--tooltip-bg":n?qo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),iR=Ze((e,r)=>{const n=$e("TooltipFloating",glt,e),{children:o,refProp:a,withinPortal:i,style:s,className:l,classNames:c,styles:u,unstyled:d,radius:h,color:p,label:g,offset:y,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:A,portalProps:N,attributes:$,...R}=n,M=yo(),O=dt({name:"TooltipFloating",props:n,classes:fE,className:l,style:s,classNames:c,styles:u,unstyled:d,attributes:$,rootSelector:"tooltip",vars:A,varsResolver:ylt}),{handleMouseMove:B,x:I,y:Y,opened:D,boundaryRef:V,floating:L,setOpened:U}=mlt({offset:y,position:x,defaultOpened:_});if(!xs(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=Jr(V,E_(o),r),X=o.props,F=Q=>{X.onMouseEnter?.(Q),B(Q),U(!0)},J=Q=>{X.onMouseLeave?.(Q),U(!1)};return b.jsxs(b.Fragment,{children:[b.jsx(Nh,{...N,withinPortal:i,children:b.jsx(Oe,{...R,...O("tooltip",{style:{...q7(s,M),zIndex:k,display:!C&&D?"block":"none",top:(Y&&Math.round(Y))??"",left:(I&&Math.round(I))??""}}),variant:T,ref:L,mod:{multiline:w},children:g})}),E.cloneElement(o,{...X,[a]:q,onMouseEnter:F,onMouseLeave:J})]})});iR.classes=fE,iR.displayName="@mantine/core/TooltipFloating";const Tae=E.createContext(!1),blt=Tae.Provider,vlt=()=>E.useContext(Tae),xlt={openDelay:0,closeDelay:0};function sR(e){const{openDelay:r,closeDelay:n,children:o}=$e("TooltipGroup",xlt,e);return b.jsx(blt,{value:!0,children:b.jsx(_ne,{delay:{open:r,close:n},children:o})})}sR.displayName="@mantine/core/TooltipGroup",sR.extend=e=>e;function wlt(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function klt(e){const r=wlt(e.middlewares),n=[hne(e.offset)];return r.shift&&n.push(cN(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?H_():H_(r.flip)),n.push(pne({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?Gy():Gy(r.inline)):e.inline&&n.push(Gy()),n}function _lt(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=vlt(),i=_s(),s=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:l,y:c,context:u,refs:d,placement:h,middlewareData:{arrow:{x:p,y:g}={}}}=mN({strategy:e.strategy,placement:e.position,open:o,onOpenChange:s,middleware:klt(e),whileElementsMounted:sN}),{delay:y,currentId:x,setCurrentId:w}=Cat(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=Pat([Eat(u,{enabled:e.events?.hover,delay:a?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),$at(u,{enabled:e.events?.focus,visibleOnly:!0}),Oat(u,{role:"tooltip"}),Nat(u,{enabled:typeof e.opened>"u"})]);kh(()=>{e.onPositionChange?.(h)},[h]);const _=o&&x&&x!==i;return{x:l,y:c,arrowX:p,arrowY:g,reference:d.setReference,floating:d.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:h}}const Aae={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:ws("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},Elt=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:un(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},pE=Ze((e,r)=>{const n=$e("Tooltip",Aae,e),{children:o,position:a,refProp:i,label:s,openDelay:l,closeDelay:c,onPositionChange:u,opened:d,defaultOpened:h,withinPortal:p,radius:g,color:y,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,offset:M,transitionProps:O,multiline:B,events:I,zIndex:Y,disabled:D,positionDependencies:V,onClick:L,onMouseEnter:U,onMouseLeave:q,inline:X,variant:F,keepMounted:J,vars:Q,portalProps:z,mod:W,floatingStrategy:G,middlewares:Z,autoContrast:oe,attributes:ee,target:re,...he}=$e("Tooltip",Aae,n),{dir:Ce}=cc(),ce=E.useRef(null),de=_lt({position:Une(Ce,a),closeDelay:c,openDelay:l,onPositionChange:u,opened:d,defaultOpened:h,events:I,arrowRef:ce,arrowOffset:N,offset:typeof M=="number"?M+(T?A/2:0):M,positionDependencies:[...V,re??o],inline:X,strategy:G,middlewares:Z});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&de.reference(Qe)},[re,de]);const be=dt({name:"Tooltip",props:n,classes:fE,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ee,rootSelector:"tooltip",vars:Q,varsResolver:Elt});if(!re&&!xs(o))return null;if(re){const Qe=Cae(O,{duration:100,transition:"fade"});return b.jsx(b.Fragment,{children:b.jsx(Nh,{...z,withinPortal:p,children:b.jsx(Ts,{...Qe,keepMounted:J,mounted:!D&&!!de.opened,duration:de.isGroupPhase?10:Qe.duration,children:St=>b.jsxs(Oe,{...he,"data-fixed":G==="fixed"||void 0,variant:F,mod:[{multiline:B},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...St,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[s,b.jsx(W_,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,...be("arrow")})]})})})})}const De=o,Ge=De.props,Xe=Jr(de.reference,E_(De),r),_t=Cae(O,{duration:100,transition:"fade"});return b.jsxs(b.Fragment,{children:[b.jsx(Nh,{...z,withinPortal:p,children:b.jsx(Ts,{..._t,keepMounted:J,mounted:!D&&!!de.opened,duration:de.isGroupPhase?10:_t.duration,children:Qe=>b.jsxs(Oe,{...he,"data-fixed":G==="fixed"||void 0,variant:F,mod:[{multiline:B},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...Qe,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[s,b.jsx(W_,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,...be("arrow")})]})})}),E.cloneElement(De,de.getReferenceProps({onClick:L,onMouseEnter:U,onMouseLeave:q,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:eo(_,Ge.className),...Ge,[i]:Xe}))]})});pE.classes=fE,pE.displayName="@mantine/core/Tooltip",pE.Floating=iR,pE.Group=sR;var Nae={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const Slt={withItemsBorders:!0},Clt=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:un(r),"--sc-color":n?qo(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":er(a,"sc-padding"),"--sc-font-size":Oo(a)}}),Rae=Ze((e,r)=>{const n=$e("SegmentedControl",Slt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:u,value:d,defaultValue:h,onChange:p,size:g,name:y,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:A,transitionTimingFunction:N,variant:$,autoContrast:R,withItemsBorders:M,mod:O,attributes:B,...I}=n,Y=dt({name:"SegmentedControl",props:n,classes:Nae,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:B,vars:c,varsResolver:Clt}),D=yo(),V=u.map(re=>typeof re=="string"?{label:re,value:re}:re),L=jrt(),[U,q]=E.useState(P7()),[X,F]=E.useState(null),[J,Q]=E.useState({}),z=(re,he)=>{J[he]=re,Q(J)},[W,G]=Ru({value:d,defaultValue:h,finalValue:Array.isArray(u)?V.find(re=>!re.disabled)?.value??u[0]?.value??null:null,onChange:p}),Z=_s(y),oe=V.map(re=>E.createElement(Oe,{...Y("control"),mod:{active:W===re.value,orientation:C},key:re.value},E.createElement("input",{...Y("input"),disabled:x||re.disabled,type:"radio",name:Z,value:re.value,id:`${Z}-${re.value}`,checked:W===re.value,onChange:()=>!w&&G(re.value),"data-focus-ring":D.focusRing,key:`${re.value}-input`}),E.createElement(Oe,{component:"label",...Y("label"),mod:{active:W===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${Z}-${re.value}`,ref:he=>z(he,re.value),__vars:{"--sc-label-color":T!==void 0?z7({color:T,theme:D,autoContrast:R}):void 0},key:`${re.value}-label`},b.jsx("span",{...Y("innerLabel"),children:re.label})))),ee=Jr(r,re=>F(re));return Ort(()=>{q(P7())},[u.length]),u.length===0?null:b.jsxs(Oe,{...Y("root"),variant:$,size:g,ref:ee,mod:[{"full-width":k,orientation:C,initialized:L,"with-items-borders":M},O],...I,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&b.jsx(ON,{target:J[W],parent:X,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},U),oe]})});Rae.classes=Nae,Rae.displayName="@mantine/core/SegmentedControl";const Tlt={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},$ae=Ze((e,r)=>{const n=$e("Select",Tlt,e),{classNames:o,styles:a,unstyled:i,vars:s,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:u,onDropdownOpen:d,onFocus:h,onBlur:p,onClick:g,onChange:y,data:x,value:w,defaultValue:k,selectFirstOptionOnChange:C,onOptionSubmit:_,comboboxProps:T,readOnly:A,disabled:N,filter:$,limit:R,withScrollArea:M,maxDropdownHeight:O,size:B,searchable:I,rightSection:Y,checkIconPosition:D,withCheckIcon:V,nothingFoundMessage:L,name:U,form:q,searchValue:X,defaultSearchValue:F,onSearchChange:J,allowDeselect:Q,error:z,rightSectionPointerEvents:W,id:G,clearable:Z,clearButtonProps:oe,hiddenInputProps:ee,renderOption:re,onClear:he,autoComplete:Ce,scrollAreaProps:ce,__defaultRightSection:de,__clearSection:be,__clearable:De,chevronColor:Ge,autoSelectOnBlur:Xe,attributes:_t,...Qe}=n,St=E.useMemo(()=>Kit(x),[x]),Ke=E.useRef({}),We=E.useMemo(()=>woe(St),[St]),lt=_s(G),[Et,Pn,_e]=Ru({value:w,defaultValue:k,finalValue:null,onChange:y}),we=typeof Et=="string"?Et in We?We[Et]:Ke.current[Et]:void 0,rt=Irt(we),[at,$t,Wr]=Ru({value:X,defaultValue:F,finalValue:we?we.label:"",onChange:J}),Pt=Toe({opened:l,defaultOpened:c,onDropdownOpen:()=>{d?.(),Pt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),setTimeout(Pt.resetSelectedOption,0)}}),Tr=ur=>{$t(ur),Pt.resetSelectedOption()},{resolvedClassNames:vo,resolvedStyles:Mn}=j7({props:n,styles:a,classNames:o});E.useEffect(()=>{C&&Pt.selectFirstOption()},[C,at]),E.useEffect(()=>{w===null&&Tr(""),typeof w=="string"&&we&&(rt?.value!==we.value||rt?.label!==we.label)&&Tr(we.label)},[w,we]),E.useEffect(()=>{!_e&&!Wr&&Tr(typeof Et=="string"?Et in We?We[Et]?.label:Ke.current[Et]?.label||"":"")},[We,Et]),E.useEffect(()=>{Et&&Et in We&&(Ke.current[Et]=We[Et])},[We,Et]);const Fr=b.jsx(gr.ClearButton,{...oe,onClear:()=>{Pn(null,null),Tr(""),he?.()}}),no=Z&&!!Et&&!N&&!A;return b.jsxs(b.Fragment,{children:[b.jsxs(gr,{store:Pt,__staticSelector:"Select",classNames:vo,styles:Mn,unstyled:i,readOnly:A,size:B,attributes:_t,keepMounted:Xe,onOptionSubmit:ur=>{_?.(ur);const fa=Q&&We[ur].value===Et?null:We[ur],_l=fa?fa.value:null;_l!==Et&&Pn(_l,fa),!_e&&Tr(typeof _l=="string"&&fa?.label||""),Pt.closeDropdown()},...T,children:[b.jsx(gr.Target,{targetType:I?"input":"button",autoComplete:Ce,children:b.jsx(tE,{id:lt,ref:r,__defaultRightSection:b.jsx(gr.Chevron,{size:B,error:z,unstyled:i,color:Ge}),__clearSection:Fr,__clearable:no,rightSection:Y,rightSectionPointerEvents:W||"none",...Qe,size:B,__staticSelector:"Select",disabled:N,readOnly:A||!I,value:at,onChange:ur=>{Tr(ur.currentTarget.value),Pt.openDropdown(),C&&Pt.selectFirstOption()},onFocus:ur=>{I&&Pt.openDropdown(),h?.(ur)},onBlur:ur=>{Xe&&Pt.clickSelectedOption(),I&&Pt.closeDropdown();const fa=typeof Et=="string"&&(Et in We?We[Et]:Ke.current[Et]);Tr(fa&&fa.label||""),p?.(ur)},onClick:ur=>{I?Pt.openDropdown():Pt.toggleDropdown(),g?.(ur)},classNames:vo,styles:Mn,unstyled:i,pointer:!I,error:z,attributes:_t})}),b.jsx(fst,{data:St,hidden:A||N,filter:$,search:at,limit:R,hiddenWhenEmpty:!L,withScrollArea:M,maxDropdownHeight:O,filterOptions:!!I&&we?.label!==at,value:Et,checkIconPosition:D,withCheckIcon:V,nothingFoundMessage:L,unstyled:i,labelId:Qe.label?`${lt}-label`:void 0,"aria-label":Qe.label?void 0:Qe["aria-label"],renderOption:re,scrollAreaProps:ce})]}),b.jsx(gr.HiddenInput,{value:Et,name:U,form:q,disabled:N,...ee})]})});$ae.classes={...tE.classes,...gr.classes},$ae.displayName="@mantine/core/Select";function Alt({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=yo(),i=r===void 0?e:r,s=Nu({"--sg-spacing-x":Jn(ks(e)),"--sg-spacing-y":Jn(ks(i)),"--sg-cols":ks(n)?.toString()}),l=Mo(a.breakpoints).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=Jn(e[d])),typeof i=="object"&&i[d]!==void 0&&(u[d]["--sg-spacing-y"]=Jn(i[d])),typeof n=="object"&&n[d]!==void 0&&(u[d]["--sg-cols"]=n[d]),u),{}),c=$7(Mo(l),a.breakpoints).filter(u=>Mo(l[u.value]).length>0).map(u=>({query:`(min-width: ${a.breakpoints[u.value]})`,styles:l[u.value]}));return b.jsx(Om,{styles:s,media:c,selector:o})}function lR(e){return typeof e=="object"&&e!==null?Mo(e):[]}function Nlt(e){return e.sort((r,n)=>k_(r)-k_(n))}function Rlt({spacing:e,verticalSpacing:r,cols:n}){const o=Array.from(new Set([...lR(e),...lR(r),...lR(n)]));return Nlt(o)}function $lt({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=r===void 0?e:r,i=Nu({"--sg-spacing-x":Jn(ks(e)),"--sg-spacing-y":Jn(ks(a)),"--sg-cols":ks(n)?.toString()}),s=Rlt({spacing:e,verticalSpacing:r,cols:n}),l=s.reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=Jn(e[d])),typeof a=="object"&&a[d]!==void 0&&(u[d]["--sg-spacing-y"]=Jn(a[d])),typeof n=="object"&&n[d]!==void 0&&(u[d]["--sg-cols"]=n[d]),u),{}),c=s.map(u=>({query:`simple-grid (min-width: ${u})`,styles:l[u]}));return b.jsx(Om,{styles:i,container:c,selector:o})}var Pae={container:"m_925c2d2c",root:"m_2415a157"};const Plt={cols:1,spacing:"md",type:"media"},Mae=Ze((e,r)=>{const n=$e("SimpleGrid",Plt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,cols:u,verticalSpacing:d,spacing:h,type:p,attributes:g,...y}=n,x=dt({name:"SimpleGrid",classes:Pae,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c}),w=qy();return p==="container"?b.jsxs(b.Fragment,{children:[b.jsx($lt,{...n,selector:`.${w}`}),b.jsx("div",{...x("container"),children:b.jsx(Oe,{ref:r,...x("root",{className:w}),...y})})]}):b.jsxs(b.Fragment,{children:[b.jsx(Alt,{...n,selector:`.${w}`}),b.jsx(Oe,{ref:r,...x("root",{className:w}),...y})]})});Mae.classes=Pae,Mae.displayName="@mantine/core/SimpleGrid";const[Mlt,mE]=Ma("SliderProvider was not found in tree"),Oae=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...s},l)=>{const{getStyles:c}=mE();return b.jsx(Oe,{tabIndex:-1,variant:n,size:e,ref:l,...c("root"),...s})});Oae.displayName="@mantine/core/SliderRoot";const Dae=E.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:s,onKeyDownCapture:l,labelTransitionProps:c,labelAlwaysOn:u,thumbLabel:d,onFocus:h,onBlur:p,showLabelOnHover:g,isHovered:y,children:x=null,disabled:w},k)=>{const{getStyles:C}=mE(),[_,T]=E.useState(!1),A=u||i||_||g&&y;return b.jsxs(Oe,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:N=>{T(!0),typeof h=="function"&&h(N)},onBlur:N=>{T(!1),typeof p=="function"&&p(N)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:l,onClick:N=>N.stopPropagation(),children:[x,b.jsx(Ts,{mounted:a!=null&&!!A,transition:"fade",duration:0,...c,children:N=>b.jsx("div",{...C("label",{style:N}),children:a})})]})});Dae.displayName="@mantine/core/SliderThumb";function Lae({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function Olt({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function Iae({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:s}){const{getStyles:l}=mE();if(!e)return null;const c=e.map((u,d)=>E.createElement(Oe,{...l("markWrapper"),__vars:{"--mark-offset":`${Lae({value:u.value,min:r,max:n})}%`},key:d},b.jsx(Oe,{...l("mark"),mod:{filled:Olt({mark:u,value:a,offset:i,inverted:s}),disabled:o}}),u.label&&b.jsx("div",{...l("markLabel"),children:u.label})));return b.jsx("div",{children:c})}Iae.displayName="@mantine/core/SliderMarks";function zae({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:s,...l}){const{getStyles:c}=mE();return b.jsx(Oe,{...c("trackContainer"),mod:{disabled:o},...s,children:b.jsxs(Oe,{...c("track"),mod:{inverted:i,disabled:o},children:[b.jsx(Oe,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,b.jsx(Iae,{...l,offset:a,disabled:o,inverted:i})]})})}zae.displayName="@mantine/core/SliderTrack";function Dlt({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const s=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),l=(s!==0?Math.round(s/a)*a:0)+n,c=Math.max(l,n);return i!==void 0?Number(c.toFixed(i)):c}function gE(e,r){return parseFloat(e.toFixed(r))}function Llt(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function cR(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function uR(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.value<e);return n?n.value:e}function jae(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[0].value:0}function Bae(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var Fae={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const Ilt={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},zlt=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":er(r,"slider-size"),"--slider-color":n?qo(n,e):void 0,"--slider-radius":a===void 0?void 0:un(a),"--slider-thumb-size":o!==void 0?Fe(o):"calc(var(--slider-size) * 2)"}}),Hae=Ze((e,r)=>{const n=$e("Slider",Ilt,e),{classNames:o,styles:a,value:i,onChange:s,onChangeEnd:l,size:c,min:u,max:d,domain:h,step:p,precision:g,defaultValue:y,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,thumbChildren:N,disabled:$,unstyled:R,scale:M,inverted:O,className:B,style:I,vars:Y,hiddenInputProps:D,restrictToMarks:V,thumbProps:L,attributes:U,...q}=n,X=dt({name:"Slider",props:n,classes:Fae,classNames:o,className:B,styles:a,style:I,attributes:U,vars:Y,varsResolver:zlt,unstyled:R}),{dir:F}=cc(),[J,Q]=E.useState(!1),[z,W]=Ru({value:typeof i=="number"?$m(i,u,d):i,defaultValue:typeof y=="number"?$m(y,u,d):y,finalValue:$m(0,u,d),onChange:s}),G=E.useRef(z),Z=E.useRef(l);E.useEffect(()=>{Z.current=l},[l]);const oe=E.useRef(null),ee=E.useRef(null),[re,he]=h||[u,d],Ce=Lae({value:z,min:re,max:he}),ce=M(z),de=typeof k=="function"?k(ce):k,be=g??Llt(p),De=E.useCallback(({x:Ke})=>{if(!$){const We=Dlt({value:Ke,min:re,max:he,step:p,precision:be}),lt=$m(We,u,d);W(V&&w?.length?Tre(lt,w.map(Et=>Et.value)):lt),G.current=lt}},[$,u,d,re,he,p,be,W,w,V]),Ge=E.useCallback(()=>{if(!$&&Z.current){const Ke=V&&w?.length?Tre(G.current,w.map(We=>We.value)):G.current;Z.current(Ke)}},[$,w,V]),{ref:Xe,active:_t}=$rt(De,{onScrubEnd:Ge},F),Qe=E.useCallback(Ke=>{!$&&Z.current&&Z.current(Ke)},[$]),St=Ke=>{if(!$)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=cR(z,w);W(lt),Qe(lt);break}const We=gE(Math.min(Math.max(z+p,u),d),be);W(We),Qe(We);break}case"ArrowRight":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=F==="rtl"?uR(z,w):cR(z,w);W(lt),Qe(lt);break}const We=gE(Math.min(Math.max(F==="rtl"?z-p:z+p,u),d),be);W(We),Qe(We);break}case"ArrowDown":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=uR(z,w);W(lt),Qe(lt);break}const We=gE(Math.min(Math.max(z-p,u),d),be);W(We),Qe(We);break}case"ArrowLeft":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=F==="rtl"?cR(z,w):uR(z,w);W(lt),Qe(lt);break}const We=gE(Math.min(Math.max(F==="rtl"?z+p:z-p,u),d),be);W(We),Qe(We);break}case"Home":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){W(jae(w)),Qe(jae(w));break}W(u),Qe(u);break}case"End":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){W(Bae(w)),Qe(Bae(w));break}W(d),Qe(d);break}}};return b.jsx(Mlt,{value:{getStyles:X},children:b.jsxs(Oae,{...q,ref:Jr(r,oe),onKeyDownCapture:St,onMouseDownCapture:()=>oe.current?.focus(),size:c,disabled:$,children:[b.jsx(zae,{inverted:O,offset:0,filled:Ce,marks:w,min:re,max:he,value:ce,disabled:$,containerProps:{ref:Xe,onMouseEnter:A?()=>Q(!0):void 0,onMouseLeave:A?()=>Q(!1):void 0},children:b.jsx(Dae,{max:he,min:re,value:ce,position:Ce,dragging:_t,label:de,ref:ee,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,isHovered:J,disabled:$,...L,children:N})}),b.jsx("input",{type:"hidden",name:x,value:ce,...D})]})})});Hae.classes=Fae,Hae.displayName="@mantine/core/Slider";const jlt=Ze((e,r)=>{const{w:n,h:o,miw:a,mih:i,...s}=$e("Space",null,e);return b.jsx(Oe,{ref:r,...s,w:n,miw:a??n,h:o,mih:i??o})});jlt.displayName="@mantine/core/Space";var Uae={root:"m_6d731127"};const Blt={gap:"md",align:"stretch",justify:"flex-start"},Flt=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":Jn(r),"--stack-align":n,"--stack-justify":o}}),Vae=Ze((e,r)=>{const n=$e("Stack",Blt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,align:u,justify:d,gap:h,variant:p,attributes:g,...y}=n,x=dt({name:"Stack",props:n,classes:Uae,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:Flt});return b.jsx(Oe,{ref:r,...x("root"),variant:p,...y})});Vae.classes=Uae,Vae.displayName="@mantine/core/Stack";const[Hlt,dR]=Ma("Tabs component was not found in the tree");var tb={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const hR=Ze((e,r)=>{const n=$e("TabsList",null,e),{children:o,className:a,grow:i,justify:s,classNames:l,styles:c,style:u,mod:d,...h}=n,p=dR();return b.jsx(Oe,{...h,...p.getStyles("list",{className:a,style:u,classNames:l,styles:c,props:n,variant:p.variant}),ref:r,role:"tablist",variant:p.variant,mod:[{grow:i,orientation:p.orientation,placement:p.orientation==="vertical"&&p.placement,inverted:p.inverted},d],"aria-orientation":p.orientation,__vars:{"--tabs-justify":s},children:o})});hR.classes=tb,hR.displayName="@mantine/core/TabsList";const fR=Ze((e,r)=>{const n=$e("TabsPanel",null,e),{children:o,className:a,value:i,classNames:s,styles:l,style:c,mod:u,keepMounted:d,...h}=n,p=dR(),g=p.value===i,y=p.keepMounted||d||g?o:null;return b.jsx(Oe,{...p.getStyles("panel",{className:a,classNames:s,styles:l,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:p.orientation},u],role:"tabpanel",id:p.getPanelId(i),"aria-labelledby":p.getTabId(i),...h,children:y})});fR.classes=tb,fR.displayName="@mantine/core/TabsPanel";const pR=Ze((e,r)=>{const n=$e("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:s,value:l,onClick:c,onKeyDown:u,disabled:d,color:h,style:p,classNames:g,styles:y,vars:x,mod:w,tabIndex:k,...C}=n,_=yo(),{dir:T}=cc(),A=dR(),N=l===A.value,$=M=>{A.onChange(A.allowTabDeactivation&&l===A.value?null:l),c?.(M)},R={classNames:g,styles:y,props:n};return b.jsxs(pl,{...C,...A.getStyles("tab",{className:o,style:p,variant:A.variant,...R}),disabled:d,unstyled:A.unstyled,variant:A.variant,mod:[{active:N,disabled:d,orientation:A.orientation,inverted:A.inverted,placement:A.orientation==="vertical"&&A.placement},w],ref:r,role:"tab",id:A.getTabId(l),"aria-selected":N,tabIndex:k!==void 0?k:N||A.value===null?0:-1,"aria-controls":A.getPanelId(l),onClick:$,__vars:{"--tabs-color":h?qo(h,_):void 0},onKeyDown:N7({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:A.activateTabWithKeyboard,loop:A.loop,orientation:A.orientation||"horizontal",dir:T,onKeyDown:u}),children:[s&&b.jsx("span",{...A.getStyles("tabSection",R),"data-position":"left",children:s}),a&&b.jsx("span",{...A.getStyles("tabLabel",R),children:a}),i&&b.jsx("span",{...A.getStyles("tabSection",R),"data-position":"right",children:i})]})});pR.classes=tb,pR.displayName="@mantine/core/TabsTab";const qae="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",Ult={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},Vlt=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":un(r),"--tabs-color":qo(n,e),"--tabs-text-color":wnt(o,e)?z7({color:n,theme:e,autoContrast:o}):void 0}}),rb=Ze((e,r)=>{const n=$e("Tabs",Ult,e),{defaultValue:o,value:a,onChange:i,orientation:s,children:l,loop:c,id:u,activateTabWithKeyboard:d,allowTabDeactivation:h,variant:p,color:g,radius:y,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:A,style:N,vars:$,autoContrast:R,mod:M,attributes:O,...B}=n,I=_s(u),[Y,D]=Ru({value:a,defaultValue:o,finalValue:null,onChange:i}),V=dt({name:"Tabs",props:n,classes:tb,className:A,style:N,classNames:C,styles:_,unstyled:T,attributes:O,vars:$,varsResolver:Vlt});return b.jsx(Hlt,{value:{placement:w,value:Y,orientation:s,id:I,loop:c,activateTabWithKeyboard:d,getTabId:vre(`${I}-tab`,qae),getPanelId:vre(`${I}-panel`,qae),onChange:D,allowTabDeactivation:h,variant:p,color:g,radius:y,inverted:x,keepMounted:k,unstyled:T,getStyles:V},children:b.jsx(Oe,{ref:r,id:I,variant:p,mod:[{orientation:s,inverted:s==="horizontal"&&x,placement:s==="vertical"&&w},M],...V("root"),...B,children:l})})});rb.classes=tb,rb.displayName="@mantine/core/Tabs",rb.Tab=pR,rb.Panel=fR,rb.List=hR;var Yae={root:"m_7341320d"};const qlt=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ti-size":er(r,"ti-size"),"--ti-radius":n===void 0?void 0:un(n),"--ti-bg":i||o?l.background:void 0,"--ti-color":i||o?l.color:void 0,"--ti-bd":i||o?l.border:void 0}}},Wae=Ze((e,r)=>{const n=$e("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,autoContrast:u,attributes:d,...h}=n,p=dt({name:"ThemeIcon",classes:Yae,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d,vars:c,varsResolver:qlt});return b.jsx(Oe,{ref:r,...p("root"),...h})});Wae.classes=Yae,Wae.displayName="@mantine/core/ThemeIcon";const Ylt=["h1","h2","h3","h4","h5","h6"],Wlt=["xs","sm","md","lg","xl"];function Xlt(e,r){const n=r!==void 0?r:`h${e}`;return Ylt.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Wlt.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:Fe(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Xae={root:"m_8a5d1357"};const Glt={order:1},Klt=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=Xlt(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},Gae=Ze((e,r)=>{const n=$e("Title",Glt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,order:c,vars:u,size:d,variant:h,lineClamp:p,textWrap:g,mod:y,attributes:x,...w}=n,k=dt({name:"Title",props:n,classes:Xae,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:u,varsResolver:Klt});return[1,2,3,4,5,6].includes(c)?b.jsx(Oe,{...k("root"),component:`h${c}`,variant:h,ref:r,mod:[{order:c,"data-line-clamp":typeof p=="number"},y],size:d,...w}):null});Gae.classes=Xae,Gae.displayName="@mantine/core/Title";function Kae(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),s=Math.max(o,a);return n.slice(i,s+1)}function mR({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:s,level:l=1,renderNode:c,flatValues:u,allowRangeSelection:d,expandOnSpace:h,checkOnSpace:p}){const g=E.useRef(null),y=(e.children||[]).map(_=>b.jsx(mR,{node:_,flatValues:u,getStyles:r,rootIndex:void 0,level:l+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:d,expandOnSpace:h,checkOnSpace:p},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):s&&Hy(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=Hy(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const A=Array.from(T.querySelectorAll("[role=treeitem]")),N=A.indexOf(_.currentTarget);if(N===-1)return;const $=_.nativeEvent.code==="ArrowDown"?N+1:N-1;if(A[$]?.focus(),_.shiftKey){const R=A[$];R&&o.setSelectedState(Kae(o.anchorNode,R.dataset.value,u))}}_.nativeEvent.code==="Space"&&(h&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),p&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),d&&_.shiftKey&&o.anchorNode?(o.setSelectedState(Kae(o.anchorNode,e.value,u)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return b.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${l-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":l,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:l,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):b.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&y.length>0&&b.jsx(Oe,{component:"ul",role:"group",...r("subtree"),"data-level":l,children:y})]})}mR.displayName="@mantine/core/TreeNode";function yE(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=yE(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const s=i.currentTreeChecked.every(c=>c.checked),l={checked:s,indeterminate:!s,value:a.value,hasChildren:!0};o.push(l),n.push(l)}else if(i.currentTreeChecked.length>0){const s={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(s),n.push(s)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function Zae(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=Zae(e,n.children);if(o)return o}}return null}function bE(e,r,n=[]){const o=Zae(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?bE(a.value,r,n):n.push(a.value)}),n):n}function Qae(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...Qae(n.children)):r.push(n.value),r),[])}function Zlt(e,r,n){return n.length===0?!1:n.includes(e)?!0:yE(r,n).result.some(o=>o.value===e&&o.checked)}const Qlt=Cre(Zlt);function Jlt(e,r,n){return n.length===0?!1:yE(r,n).result.some(o=>o.value===e&&o.indeterminate)}const ect=Cre(Jlt);function Jae(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&Jae(e,a.children,n,o)}),o}function tct(e,r){const n=[];return e.forEach(o=>n.push(...bE(o,r))),Array.from(new Set(n))}function rct({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[s,l]=E.useState([]),[c,u]=E.useState(n),[d,h]=E.useState(e),[p,g]=E.useState(r),[y,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(L=>{u(U=>Jae(U,L,d)),g(U=>tct(U,L)),l(L)},[d,p]),_=E.useCallback(L=>{u(U=>{const q={...U,[L]:!U[L]};return q[L]?i?.(L):a?.(L),q})},[a,i]),T=E.useCallback(L=>{u(U=>(U[L]!==!1&&a?.(L),{...U,[L]:!1}))},[a]),A=E.useCallback(L=>{u(U=>(U[L]!==!0&&i?.(L),{...U,[L]:!0}))},[i]),N=E.useCallback(()=>{u(L=>{const U={...L};return Object.keys(U).forEach(q=>{U[q]=!0}),U})},[]),$=E.useCallback(()=>{u(L=>{const U={...L};return Object.keys(U).forEach(q=>{U[q]=!1}),U})},[]),R=E.useCallback(L=>h(U=>o?U.includes(L)?(x(null),U.filter(q=>q!==L)):(x(L),[...U,L]):U.includes(L)?(x(null),[]):(x(L),[L])),[]),M=E.useCallback(L=>{x(L),h(U=>o?U.includes(L)?U:[...U,L]:[L])},[]),O=E.useCallback(L=>{y===L&&x(null),h(U=>U.filter(q=>q!==L))},[]),B=E.useCallback(()=>{h([]),x(null)},[]),I=E.useCallback(L=>{const U=bE(L,s);g(q=>Array.from(new Set([...q,...U])))},[s]),Y=E.useCallback(L=>{const U=bE(L,s);g(q=>q.filter(X=>!U.includes(X)))},[s]),D=E.useCallback(()=>{g(()=>Qae(s))},[s]),V=E.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:d,checkedState:p,anchorNode:y,initialize:C,toggleExpanded:_,collapse:T,expand:A,expandAllNodes:N,collapseAllNodes:$,setExpandedState:u,checkNode:I,uncheckNode:Y,checkAllNodes:D,uncheckAllNodes:V,setCheckedState:g,toggleSelected:R,select:M,deselect:O,clearSelected:B,setSelectedState:h,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>yE(s,p).result,isNodeChecked:L=>Qlt(L,s,p),isNodeIndeterminate:L=>ect(L,s,p)}}var eie={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function tie(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...tie(n.children)),r),[])}const nct={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},oct=(e,{levelOffset:r})=>({root:{"--level-offset":Jn(r)}}),rie=Ze((e,r)=>{const n=$e("Tree",nct,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:u,expandOnClick:d,tree:h,renderNode:p,selectOnClick:g,clearSelectionOnOutsideClick:y,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,A=rct(),N=h||A,$=dt({name:"Tree",classes:eie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:oct}),R=xre(()=>y&&N.clearSelected()),M=Jr(r,R),O=E.useMemo(()=>tie(u),[u]);E.useEffect(()=>{N.initialize(u)},[u]);const B=u.map((I,Y)=>b.jsx(mR,{node:I,getStyles:$,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:N,renderNode:p,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},I.value));return b.jsx(Oe,{component:"ul",ref:M,...$("root"),...T,role:"tree","aria-multiselectable":N.multiple,"data-tree-root":!0,children:B})});rie.displayName="@mantine/core/Tree",rie.classes=eie;var act="Invariant failed";function vE(e,r){if(!e)throw new Error(act)}function ict(e){return typeof e=="function"}function nie(e,r){return ict(e)?e(r):e}function sct(e,r){return r.reduce((n,o)=>(n[o]=e[o],n),{})}function oie(e,r){if(e===r)return e;const n=r,o=iie(e)&&iie(n);if(o||xE(e)&&xE(n)){const a=o?e:Object.keys(e),i=a.length,s=o?n:Object.keys(n),l=s.length,c=o?[]:{};let u=0;for(let d=0;d<l;d++){const h=o?d:s[d];(!o&&a.includes(h)||o)&&e[h]===void 0&&n[h]===void 0?(c[h]=void 0,u++):(c[h]=oie(e[h],n[h]),c[h]===e[h]&&e[h]!==void 0&&u++)}return i===l&&u===i?e:c}return n}function xE(e){if(!aie(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const n=r.prototype;return!(!aie(n)||!n.hasOwnProperty("isPrototypeOf"))}function aie(e){return Object.prototype.toString.call(e)==="[object Object]"}function iie(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sie(e,r){let n=Object.keys(e);return r&&(n=n.filter(o=>e[o]!==void 0)),n}function gR(e,r,n){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(xE(e)&&xE(r)){const o=n?.ignoreUndefined??!0,a=sie(e,o),i=sie(r,o);return!n?.partial&&a.length!==i.length?!1:i.every(s=>gR(e[s],r[s],n))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((o,a)=>!gR(o,r[a],n)):!1}function lct(e){let r,n;const o=new Promise((a,i)=>{r=a,n=i});return o.status="pending",o.resolve=a=>{o.status="resolved",o.value=a,r(a)},o.reject=a=>{o.status="rejected",n(a)},o}function wE(e,r){return e?.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function cct(e,r,n){return wE(e,n)===wE(r,n)}function kE(e){return!!e?.isNotFound}const lie="tsr-scroll-restoration-v1_3";let cie=!1;try{cie=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}cie&&JSON.parse(window.sessionStorage.getItem(lie)||"null");const uie=e=>e.state.key||e.href;function uct(e,r,n,o,a){var i;let s;try{s=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(u){console.error(u);return}const l=r||((i=window.history.state)==null?void 0:i.key),c=s[l];(()=>{if(o&&c){for(const d in c){const h=c[d];if(d==="window")window.scrollTo({top:h.scrollY,left:h.scrollX,behavior:n});else if(d){const p=document.querySelector(d);p&&(p.scrollLeft=h.scrollX,p.scrollTop=h.scrollY)}}return}const u=window.location.hash.split("#")[1];if(u){const d=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(d){const h=document.getElementById(u);h&&h.scrollIntoView(d)}return}["window",...a?.filter(d=>d!=="window")??[]].forEach(d=>{const h=d==="window"?window:document.querySelector(d);h&&h.scrollTo({top:0,left:0,behavior:n})})})()}const die="__root__";function dct(e){return!!e?.isRedirect}function hct(e){const r=e.resolvedLocation,n=e.location,o=r?.pathname!==n.pathname,a=r?.href!==n.href,i=r?.hash!==n.hash;return{fromLocation:r,toLocation:n,pathChanged:o,hrefChanged:a,hashChanged:i}}const fct="Error preloading route! ☝️";function hie(e){const r=e.errorComponent??yR;return b.jsx(pct,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:o})=>n?E.createElement(r,{error:n,reset:o}):e.children})}class pct extends E.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,n){this.props.onCatch&&this.props.onCatch(r,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function yR({error:e}){const[r,n]=E.useState(!1);return b.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[b.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),b.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(o=>!o),children:r?"Hide Error":"Show Error"})]}),b.jsx("div",{style:{height:".25rem"}}),r?b.jsx("div",{children:b.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?b.jsx("code",{children:e.message}):null})}):null]})}var fie={exports:{}},bR={},pie={exports:{}},vR={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mie;function mct(){if(mie)return vR;mie=1;var e=Gr;function r(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(h,p){var g=p(),y=o({inst:{value:g,getSnapshot:p}}),x=y[0].inst,w=y[1];return i(function(){x.value=g,x.getSnapshot=p,c(x)&&w({inst:x})},[h,g,p]),a(function(){return c(x)&&w({inst:x}),h(function(){c(x)&&w({inst:x})})},[h]),s(g),g}function c(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!n(h,g)}catch{return!0}}function u(h,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return vR.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,vR}var gie;function gct(){return gie||(gie=1,pie.exports=mct()),pie.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yie;function yct(){if(yie)return bR;yie=1;var e=Gr,r=gct();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return bR.useSyncExternalStoreWithSelector=function(u,d,h,p,g){var y=i(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=l(function(){function k(N){if(!C){if(C=!0,_=N,N=p(N),g!==void 0&&x.hasValue){var $=x.value;if(g($,N))return T=$}return T=N}if($=T,o(_,N))return $;var R=p(N);return g!==void 0&&g($,R)?(_=N,$):(_=N,T=R)}var C=!1,_,T,A=h===void 0?null:h;return[function(){return k(d())},A===null?void 0:function(){return k(A())}]},[d,h,p,g]);var w=a(u,y[0],y[1]);return s(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},bR}var bie;function bct(){return bie||(bie=1,fie.exports=yct()),fie.exports}var vie=bct();const vct=lae(vie);function xct(e,r=n=>n){return vie.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,wct)}function wct(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!r.has(o)||!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(r,n[o])||!Object.is(e[n[o]],r[n[o]]))return!1;return!0}const xR=E.createContext(null);function kct(){return typeof document>"u"?xR:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=xR,xR)}function Ph(e){const r=E.useContext(kct());return e?.warn,r}function Ns(e){const r=Ph({warn:e?.router===void 0}),n=e?.router||r,o=E.useRef(void 0);return xct(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=oie(o.current,e.select(a));return o.current=i,i}return e.select(a)}return a})}const xie=E.createContext(void 0);E.createContext(void 0);function _ct(e){const r=Ns({select:n=>`not-found-${n.location.pathname}-${n.status}`});return b.jsx(hie,{getResetKey:()=>r,onCatch:(n,o)=>{var a;if(kE(n))(a=e.onCatch)==null||a.call(e,n,o);else throw n},errorComponent:({error:n})=>{var o;if(kE(n))return(o=e.fallback)==null?void 0:o.call(e,n);throw n},children:e.children})}function Ect(){return b.jsx("p",{children:"Not Found"})}function wR(e){return b.jsx(b.Fragment,{children:e.children})}function wie(e,r,n){return r.options.notFoundComponent?b.jsx(r.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?b.jsx(e.options.defaultNotFoundComponent,{data:n}):b.jsx(Ect,{})}var kR,kie;function Sct(){if(kie)return kR;kie=1;const e={},r=e.hasOwnProperty,n=(R,M)=>{for(const O in R)r.call(R,O)&&M(O,R[O])},o=(R,M)=>(M&&n(M,(O,B)=>{R[O]=B}),R),a=(R,M)=>{const O=R.length;let B=-1;for(;++B<O;)M(R[B])},i=R=>"\\u"+("0000"+R).slice(-4),s=(R,M)=>{let O=R.toString(16);return M?O:O.toUpperCase()},l=e.toString,c=Array.isArray,u=R=>typeof Buffer=="function"&&Buffer.isBuffer(R),d=R=>l.call(R)=="[object Object]",h=R=>typeof R=="string"||l.call(R)=="[object String]",p=R=>typeof R=="number"||l.call(R)=="[object Number]",g=R=>typeof R=="bigint",y=R=>typeof R=="function",x=R=>l.call(R)=="[object Map]",w=R=>l.call(R)=="[object Set]",k={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},C=/[\\\b\f\n\r\t]/,_=/[0-9]/,T=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,A=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,N=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,$=(R,M)=>{const O=()=>{U=L,++M.indentLevel,L=M.indent.repeat(M.indentLevel)},B={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"	",indentLevel:0,__inline1__:!1,__inline2__:!1},I=M&&M.json;I&&(B.quotes="double",B.wrap=!0),M=o(B,M),M.quotes!="single"&&M.quotes!="double"&&M.quotes!="backtick"&&(M.quotes="single");const Y=M.quotes=="double"?'"':M.quotes=="backtick"?"`":"'",D=M.compact,V=M.lowercaseHex;let L=M.indent.repeat(M.indentLevel),U="";const q=M.__inline1__,X=M.__inline2__,F=D?"":`
`;let J,Q=!0;const z=M.numbers=="binary",W=M.numbers=="octal",G=M.numbers=="decimal",Z=M.numbers=="hexadecimal";if(I&&R&&y(R.toJSON)&&(R=R.toJSON()),!h(R)){if(x(R))return R.size==0?"new Map()":(D||(M.__inline1__=!0,M.__inline2__=!1),"new Map("+$(Array.from(R),M)+")");if(w(R))return R.size==0?"new Set()":"new Set("+$(Array.from(R),M)+")";if(u(R))return R.length==0?"Buffer.from([])":"Buffer.from("+$(Array.from(R),M)+")";if(c(R))return J=[],M.wrap=!0,q&&(M.__inline1__=!1,M.__inline2__=!0),X||O(),a(R,ee=>{Q=!1,X&&(M.__inline2__=!1),J.push((D||X?"":L)+$(ee,M))}),Q?"[]":X?"["+J.join(", ")+"]":"["+F+J.join(","+F)+F+(D?"":U)+"]";if(p(R)||g(R)){if(I)return JSON.stringify(Number(R));let ee;if(G)ee=String(R);else if(Z){let re=R.toString(16);V||(re=re.toUpperCase()),ee="0x"+re}else z?ee="0b"+R.toString(2):W&&(ee="0o"+R.toString(8));return g(R)?ee+"n":ee}else return g(R)?I?JSON.stringify(Number(R)):R+"n":d(R)?(J=[],M.wrap=!0,O(),n(R,(ee,re)=>{Q=!1,J.push((D?"":L)+$(ee,M)+":"+(D?"":" ")+$(re,M))}),Q?"{}":"{"+F+J.join(","+F)+F+(D?"":U)+"}"):I?JSON.stringify(R)||"null":String(R)}const oe=M.escapeEverything?A:N;return J=R.replace(oe,(ee,re,he,Ce,ce,de)=>{if(re){if(M.minimal)return re;const De=re.charCodeAt(0),Ge=re.charCodeAt(1);if(M.es6){const Xe=(De-55296)*1024+Ge-56320+65536;return"\\u{"+s(Xe,V)+"}"}return i(s(De,V))+i(s(Ge,V))}if(he)return i(s(he.charCodeAt(0),V));if(ee=="\0"&&!I&&!_.test(de.charAt(ce+1)))return"\\0";if(Ce)return Ce==Y||M.escapeEverything?"\\"+Ce:Ce;if(C.test(ee))return k[ee];if(M.minimal&&!T.test(ee))return ee;const be=s(ee.charCodeAt(0),V);return I||be.length>2?i(be):"\\x"+("00"+be).slice(-2)}),Y=="`"&&(J=J.replace(/\$\{/g,"\\${")),M.isScriptContext&&(J=J.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,I?"\\u003C!--":"\\x3C!--")),M.wrap&&(J=Y+J+Y),J};return $.version="3.0.2",kR=$,kR}Sct();function Cct({children:e,log:r}){return typeof document<"u"?null:b.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
`)}})}function Tct(){const e=Ph(),r=(e.options.getScrollRestorationKey||uie)(e.latestLocation),n=r!==uie(e.latestLocation)?r:null;return!e.isScrollRestoring||!e.isServer?null:b.jsx(Cct,{children:`(${uct.toString()})(${JSON.stringify(lie)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const Act=E.memo(function({matchId:e}){var r,n;const o=Ph(),a=Ns({select:w=>{var k;return(k=w.matches.find(C=>C.id===e))==null?void 0:k.routeId}});vE(a);const i=o.routesById[a],s=i.options.pendingComponent??o.options.defaultPendingComponent,l=s?b.jsx(s,{}):null,c=i.options.errorComponent??o.options.defaultErrorComponent,u=i.options.onCatch??o.options.defaultOnCatch,d=i.isRoot?i.options.notFoundComponent??((r=o.options.notFoundRoute)==null?void 0:r.options.component):i.options.notFoundComponent,h=(!i.isRoot||i.options.wrapInSuspense)&&(i.options.wrapInSuspense??s??((n=i.options.errorComponent)==null?void 0:n.preload))?E.Suspense:wR,p=c?hie:wR,g=d?_ct:wR,y=Ns({select:w=>w.loadedAt}),x=Ns({select:w=>{var k;const C=w.matches.findIndex(_=>_.id===e);return(k=w.matches[C-1])==null?void 0:k.routeId}});return b.jsxs(b.Fragment,{children:[b.jsx(xie.Provider,{value:e,children:b.jsx(h,{fallback:l,children:b.jsx(p,{getResetKey:()=>y,errorComponent:c||yR,onCatch:(w,k)=>{if(kE(w))throw w;u?.(w,k)},children:b.jsx(g,{fallback:w=>{if(!d||w.routeId&&w.routeId!==a||!w.routeId&&!i.isRoot)throw w;return E.createElement(d,w)},children:b.jsx(Rct,{matchId:e})})})})}),x===die&&o.options.scrollRestoration?b.jsxs(b.Fragment,{children:[b.jsx(Nct,{}),b.jsx(Tct,{})]}):null]})});function Nct(){var e;const r=Ph(),n=E.useRef(void 0);return b.jsx("script",{suppressHydrationWarning:!0,ref:o=>{var a;o&&(n.current===void 0||n.current.href!==((a=r.state.resolvedLocation)==null?void 0:a.href))&&(r.emit({type:"onRendered",...hct(r.state)}),n.current=r.state.resolvedLocation)}},(e=r.state.resolvedLocation)==null?void 0:e.state.key)}const Rct=E.memo(function({matchId:e}){var r,n,o;const a=Ph(),{match:i,key:s,routeId:l}=Ns({select:h=>{const p=h.matches.findIndex(k=>k.id===e),g=h.matches[p],y=g.routeId,x=a.routesById[y].options.remountDeps??a.options.defaultRemountDeps,w=x?.({routeId:y,loaderDeps:g.loaderDeps,params:g._strictParams,search:g._strictSearch});return{key:w?JSON.stringify(w):void 0,routeId:y,match:sct(g,["id","status","error"])}},structuralSharing:!0}),c=a.routesById[l],u=E.useMemo(()=>{const h=c.options.component??a.options.defaultComponent;return h?b.jsx(h,{},s):b.jsx($ct,{})},[s,c.options.component,a.options.defaultComponent]),d=(c.options.errorComponent??a.options.defaultErrorComponent)||yR;if(i.status==="notFound")return vE(kE(i.error)),wie(a,c,i.error);if(i.status==="redirected")throw vE(dct(i.error)),(r=a.getMatch(i.id))==null?void 0:r.loadPromise;if(i.status==="error"){if(a.isServer)return b.jsx(d,{error:i.error,reset:void 0,info:{componentStack:""}});throw i.error}if(i.status==="pending"){const h=c.options.pendingMinMs??a.options.defaultPendingMinMs;if(h&&!((n=a.getMatch(i.id))!=null&&n.minPendingPromise)&&!a.isServer){const p=lct();Promise.resolve().then(()=>{a.updateMatch(i.id,g=>({...g,minPendingPromise:p}))}),setTimeout(()=>{p.resolve(),a.updateMatch(i.id,g=>({...g,minPendingPromise:void 0}))},h)}throw(o=a.getMatch(i.id))==null?void 0:o.loadPromise}return u}),$ct=E.memo(function(){const e=Ph(),r=E.useContext(xie),n=Ns({select:c=>{var u;return(u=c.matches.find(d=>d.id===r))==null?void 0:u.routeId}}),o=e.routesById[n],a=Ns({select:c=>{const u=c.matches.find(d=>d.id===r);return vE(u),u.globalNotFound}}),i=Ns({select:c=>{var u;const d=c.matches,h=d.findIndex(p=>p.id===r);return(u=d[h+1])==null?void 0:u.id}});if(a)return wie(e,o,void 0);if(!i)return null;const s=b.jsx(Act,{matchId:i}),l=e.options.defaultPendingComponent?b.jsx(e.options.defaultPendingComponent,{}):null;return r===die?b.jsx(E.Suspense,{fallback:l,children:s}):s}),Pct=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Mct(e,r,n={},o={}){const a=E.useRef(typeof IntersectionObserver=="function"),i=E.useRef(null);return E.useEffect(()=>{if(!(!e.current||!a.current||o.disabled))return i.current=new IntersectionObserver(([s])=>{r(s)},n),i.current.observe(e.current),()=>{var s;(s=i.current)==null||s.disconnect()}},[r,n,o.disabled,e]),i.current}function Oct(e){const r=E.useRef(null);return E.useImperativeHandle(e,()=>r.current,[]),r}function Dct(e){return Ns({select:r=>{const n=r.matches;return e?.select?e.select(n):n},structuralSharing:e?.structuralSharing})}function Lct(e,r){const n=Ph(),[o,a]=E.useState(!1),i=E.useRef(!1),s=Oct(r),{activeProps:l=()=>({className:"active"}),inactiveProps:c=()=>({}),activeOptions:u,to:d,preload:h,preloadDelay:p,hashScrollIntoView:g,replace:y,startTransition:x,resetScroll:w,viewTransition:k,children:C,target:_,disabled:T,style:A,className:N,onClick:$,onFocus:R,onMouseEnter:M,onMouseLeave:O,onTouchStart:B,ignoreBlocker:I,...Y}=e,{params:D,search:V,hash:L,state:U,mask:q,reloadDocument:X,...F}=Y,J=E.useMemo(()=>{try{return new URL(`${d}`),"external"}catch{}return"internal"},[d]),Q=Ns({select:Ke=>Ke.location.search,structuralSharing:!0}),z=Dct({select:Ke=>{var We;return e.from??((We=Ke[Ke.length-1])==null?void 0:We.fullPath)}}),W=E.useMemo(()=>({...e,from:z}),[e,z]),G=E.useMemo(()=>n.buildLocation(W),[n,W,Q]),Z=E.useMemo(()=>W.reloadDocument?!1:h??n.options.defaultPreload,[n.options.defaultPreload,h,W.reloadDocument]),oe=p??n.options.defaultPreloadDelay??0,ee=Ns({select:Ke=>{if(u?.exact){if(!cct(Ke.location.pathname,G.pathname,n.basepath))return!1}else{const We=wE(Ke.location.pathname,n.basepath).split("/");if(!wE(G.pathname,n.basepath).split("/").every((lt,Et)=>lt===We[Et]))return!1}return(u?.includeSearch??!0)&&!gR(Ke.location.search,G.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?Ke.location.hash===G.hash:!0}}),re=E.useCallback(()=>{n.preloadRoute(W).catch(Ke=>{console.warn(Ke),console.warn(fct)})},[W,n]),he=E.useCallback(Ke=>{Ke?.isIntersecting&&re()},[re]);if(Mct(s,he,{rootMargin:"100px"},{disabled:!!T||Z!=="viewport"}),Pct(()=>{i.current||!T&&Z==="render"&&(re(),i.current=!0)},[T,re,Z]),J==="external")return{...F,ref:s,type:J,href:d,...C&&{children:C},..._&&{target:_},...T&&{disabled:T},...A&&{style:A},...N&&{className:N},...$&&{onClick:$},...R&&{onFocus:R},...M&&{onMouseEnter:M},...O&&{onMouseLeave:O},...B&&{onTouchStart:B}};const Ce=Ke=>{if(!T&&!Ict(Ke)&&!Ke.defaultPrevented&&(!_||_==="_self")&&Ke.button===0){Ke.preventDefault(),ji.flushSync(()=>{a(!0)});const We=n.subscribe("onResolved",()=>{We(),a(!1)});return n.navigate({...W,replace:y,resetScroll:w,hashScrollIntoView:g,startTransition:x,viewTransition:k,ignoreBlocker:I})}},ce=Ke=>{T||Z&&re()},de=ce,be=Ke=>{if(T)return;const We=Ke.target||{};if(Z){if(We.preloadTimeout)return;We.preloadTimeout=setTimeout(()=>{We.preloadTimeout=null,re()},oe)}},De=Ke=>{if(T)return;const We=Ke.target||{};We.preloadTimeout&&(clearTimeout(We.preloadTimeout),We.preloadTimeout=null)},Ge=Ke=>We=>{var lt;(lt=We.persist)==null||lt.call(We),Ke.filter(Boolean).forEach(Et=>{We.defaultPrevented||Et(We)})},Xe=ee?nie(l,{})??{}:{},_t=ee?{}:nie(c,{}),Qe=[N,Xe.className,_t.className].filter(Boolean).join(" "),St={...A,...Xe.style,..._t.style};return{...F,...Xe,..._t,href:T?void 0:G.maskedLocation?n.history.createHref(G.maskedLocation.href):n.history.createHref(G.href),ref:s,onClick:Ge([$,Ce]),onFocus:Ge([R,ce]),onMouseEnter:Ge([M,be]),onMouseLeave:Ge([O,De]),onTouchStart:Ge([B,de]),disabled:!!T,target:_,...Object.keys(St).length&&{style:St},...Qe&&{className:Qe},...T&&{role:"link","aria-disabled":!0},...ee&&{"data-status":"active","aria-current":"page"},...o&&{"data-transitioning":"transitioning"}}}E.forwardRef((e,r)=>{const{_asChild:n,...o}=e,{type:a,ref:i,...s}=Lct(o,r),l=typeof o.children=="function"?o.children({isActive:s["data-status"]==="active"}):o.children;return typeof n>"u"&&delete s.disabled,E.createElement(n||"a",{...s,ref:i},l)});function Ict(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sn(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=Sn(e[n]))!==""&&(r+=(r&&" ")+o);else for(let n in e)e[n]&&(r+=(r&&" ")+n);return r}var zct={value:()=>{}};function _E(){for(var e=0,r=arguments.length,n={},o;e<r;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new EE(n)}function EE(e){this._=e}function jct(e,r){return e.trim().split(/^|\s+/).map(function(n){var o="",a=n.indexOf(".");if(a>=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}EE.prototype=_E.prototype={constructor:EE,on:function(e,r){var n=this._,o=jct(e+"",n),a,i=-1,s=o.length;if(arguments.length<2){for(;++i<s;)if((a=(e=o[i]).type)&&(a=Bct(n[a],e.name)))return a;return}if(r!=null&&typeof r!="function")throw new Error("invalid callback: "+r);for(;++i<s;)if(a=(e=o[i]).type)n[a]=_ie(n[a],e.name,r);else if(r==null)for(a in n)n[a]=_ie(n[a],e.name,null);return this},copy:function(){var e={},r=this._;for(var n in r)e[n]=r[n].slice();return new EE(e)},call:function(e,r){if((a=arguments.length-2)>0)for(var n=new Array(a),o=0,a,i;o<a;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(r,n)},apply:function(e,r,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],a=0,i=o.length;a<i;++a)o[a].value.apply(r,n)}};function Bct(e,r){for(var n=0,o=e.length,a;n<o;++n)if((a=e[n]).name===r)return a.value}function _ie(e,r,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===r){e[o]=zct,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:r,value:n}),e}var _R="http://www.w3.org/1999/xhtml";const Eie={svg:"http://www.w3.org/2000/svg",xhtml:_R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function SE(e){var r=e+="",n=r.indexOf(":");return n>=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Eie.hasOwnProperty(r)?{space:Eie[r],local:e}:e}function Fct(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===_R&&r.documentElement.namespaceURI===_R?r.createElement(e):r.createElementNS(n,e)}}function Hct(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Sie(e){var r=SE(e);return(r.local?Hct:Fct)(r)}function Uct(){}function ER(e){return e==null?Uct:function(){return this.querySelector(e)}}function Vct(e){typeof e!="function"&&(e=ER(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],s=i.length,l=o[a]=new Array(s),c,u,d=0;d<s;++d)(c=i[d])&&(u=e.call(c,c.__data__,d,i))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new Da(o,this._parents)}function qct(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Yct(){return[]}function Cie(e){return e==null?Yct:function(){return this.querySelectorAll(e)}}function Wct(e){return function(){return qct(e.apply(this,arguments))}}function Xct(e){typeof e=="function"?e=Wct(e):e=Cie(e);for(var r=this._groups,n=r.length,o=[],a=[],i=0;i<n;++i)for(var s=r[i],l=s.length,c,u=0;u<l;++u)(c=s[u])&&(o.push(e.call(c,c.__data__,u,s)),a.push(c));return new Da(o,a)}function Tie(e){return function(){return this.matches(e)}}function Aie(e){return function(r){return r.matches(e)}}var Gct=Array.prototype.find;function Kct(e){return function(){return Gct.call(this.children,e)}}function Zct(){return this.firstElementChild}function Qct(e){return this.select(e==null?Zct:Kct(typeof e=="function"?e:Aie(e)))}var Jct=Array.prototype.filter;function eut(){return Array.from(this.children)}function tut(e){return function(){return Jct.call(this.children,e)}}function rut(e){return this.selectAll(e==null?eut:tut(typeof e=="function"?e:Aie(e)))}function nut(e){typeof e!="function"&&(e=Tie(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],s=i.length,l=o[a]=[],c,u=0;u<s;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&l.push(c);return new Da(o,this._parents)}function Nie(e){return new Array(e.length)}function out(){return new Da(this._enter||this._groups.map(Nie),this._parents)}function CE(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}CE.prototype={constructor:CE,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function aut(e){return function(){return e}}function iut(e,r,n,o,a,i){for(var s=0,l,c=r.length,u=i.length;s<u;++s)(l=r[s])?(l.__data__=i[s],o[s]=l):n[s]=new CE(e,i[s]);for(;s<c;++s)(l=r[s])&&(a[s]=l)}function sut(e,r,n,o,a,i,s){var l,c,u=new Map,d=r.length,h=i.length,p=new Array(d),g;for(l=0;l<d;++l)(c=r[l])&&(p[l]=g=s.call(c,c.__data__,l,r)+"",u.has(g)?a[l]=c:u.set(g,c));for(l=0;l<h;++l)g=s.call(e,i[l],l,i)+"",(c=u.get(g))?(o[l]=c,c.__data__=i[l],u.delete(g)):n[l]=new CE(e,i[l]);for(l=0;l<d;++l)(c=r[l])&&u.get(p[l])===c&&(a[l]=c)}function lut(e){return e.__data__}function cut(e,r){if(!arguments.length)return Array.from(this,lut);var n=r?sut:iut,o=this._parents,a=this._groups;typeof e!="function"&&(e=aut(e));for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],h=a[u],p=h.length,g=uut(e.call(d,d&&d.__data__,u,o)),y=g.length,x=l[u]=new Array(y),w=s[u]=new Array(y),k=c[u]=new Array(p);n(d,h,x,w,k,g,r);for(var C=0,_=0,T,A;C<y;++C)if(T=x[C]){for(C>=_&&(_=C+1);!(A=w[_])&&++_<y;);T._next=A||null}}return s=new Da(s,o),s._enter=l,s._exit=c,s}function uut(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dut(){return new Da(this._exit||this._groups.map(Nie),this._parents)}function hut(e,r,n){var o=this.enter(),a=this,i=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),r!=null&&(a=r(a),a&&(a=a.selection())),n==null?i.remove():n(i),o&&a?o.merge(a).order():a}function fut(e){for(var r=e.selection?e.selection():e,n=this._groups,o=r._groups,a=n.length,i=o.length,s=Math.min(a,i),l=new Array(a),c=0;c<s;++c)for(var u=n[c],d=o[c],h=u.length,p=l[c]=new Array(h),g,y=0;y<h;++y)(g=u[y]||d[y])&&(p[y]=g);for(;c<a;++c)l[c]=n[c];return new Da(l,this._parents)}function put(){for(var e=this._groups,r=-1,n=e.length;++r<n;)for(var o=e[r],a=o.length-1,i=o[a],s;--a>=0;)(s=o[a])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function mut(e){e||(e=gut);function r(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,o=n.length,a=new Array(o),i=0;i<o;++i){for(var s=n[i],l=s.length,c=a[i]=new Array(l),u,d=0;d<l;++d)(u=s[d])&&(c[d]=u);c.sort(r)}return new Da(a,this._parents).order()}function gut(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function yut(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function but(){return Array.from(this)}function vut(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length;a<i;++a){var s=o[a];if(s)return s}return null}function xut(){let e=0;for(const r of this)++e;return e}function wut(){return!this.node()}function kut(e){for(var r=this._groups,n=0,o=r.length;n<o;++n)for(var a=r[n],i=0,s=a.length,l;i<s;++i)(l=a[i])&&e.call(l,l.__data__,i,a);return this}function _ut(e){return function(){this.removeAttribute(e)}}function Eut(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sut(e,r){return function(){this.setAttribute(e,r)}}function Cut(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function Tut(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Aut(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Nut(e,r){var n=SE(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((r==null?n.local?Eut:_ut:typeof r=="function"?n.local?Aut:Tut:n.local?Cut:Sut)(n,r))}function Rie(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Rut(e){return function(){this.style.removeProperty(e)}}function $ut(e,r,n){return function(){this.style.setProperty(e,r,n)}}function Put(e,r,n){return function(){var o=r.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function Mut(e,r,n){return arguments.length>1?this.each((r==null?Rut:typeof r=="function"?Put:$ut)(e,r,n??"")):Wm(this.node(),e)}function Wm(e,r){return e.style.getPropertyValue(r)||Rie(e).getComputedStyle(e,null).getPropertyValue(r)}function Out(e){return function(){delete this[e]}}function Dut(e,r){return function(){this[e]=r}}function Lut(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Iut(e,r){return arguments.length>1?this.each((r==null?Out:typeof r=="function"?Lut:Dut)(e,r)):this.node()[e]}function $ie(e){return e.trim().split(/^|\s+/)}function SR(e){return e.classList||new Pie(e)}function Pie(e){this._node=e,this._names=$ie(e.getAttribute("class")||"")}Pie.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Mie(e,r){for(var n=SR(e),o=-1,a=r.length;++o<a;)n.add(r[o])}function Oie(e,r){for(var n=SR(e),o=-1,a=r.length;++o<a;)n.remove(r[o])}function zut(e){return function(){Mie(this,e)}}function jut(e){return function(){Oie(this,e)}}function But(e,r){return function(){(r.apply(this,arguments)?Mie:Oie)(this,e)}}function Fut(e,r){var n=$ie(e+"");if(arguments.length<2){for(var o=SR(this.node()),a=-1,i=n.length;++a<i;)if(!o.contains(n[a]))return!1;return!0}return this.each((typeof r=="function"?But:r?zut:jut)(n,r))}function Hut(){this.textContent=""}function Uut(e){return function(){this.textContent=e}}function Vut(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function qut(e){return arguments.length?this.each(e==null?Hut:(typeof e=="function"?Vut:Uut)(e)):this.node().textContent}function Yut(){this.innerHTML=""}function Wut(e){return function(){this.innerHTML=e}}function Xut(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function Gut(e){return arguments.length?this.each(e==null?Yut:(typeof e=="function"?Xut:Wut)(e)):this.node().innerHTML}function Kut(){this.nextSibling&&this.parentNode.appendChild(this)}function Zut(){return this.each(Kut)}function Qut(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jut(){return this.each(Qut)}function edt(e){var r=typeof e=="function"?e:Sie(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function tdt(){return null}function rdt(e,r){var n=typeof e=="function"?e:Sie(e),o=r==null?tdt:typeof r=="function"?r:ER(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function ndt(){var e=this.parentNode;e&&e.removeChild(this)}function odt(){return this.each(ndt)}function adt(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function idt(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function sdt(e){return this.select(e?idt:adt)}function ldt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function cdt(e){return function(r){e.call(this,r,this.__data__)}}function udt(e){return e.trim().split(/^|\s+/).map(function(r){var n="",o=r.indexOf(".");return o>=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function ddt(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n<a;++n)i=r[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):r[++o]=i;++o?r.length=o:delete this.__on}}}function hdt(e,r,n){return function(){var o=this.__on,a,i=cdt(r);if(o){for(var s=0,l=o.length;s<l;++s)if((a=o[s]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=n),a.value=r;return}}this.addEventListener(e.type,i,n),a={type:e.type,name:e.name,value:r,listener:i,options:n},o?o.push(a):this.__on=[a]}}function fdt(e,r,n){var o=udt(e+""),a,i=o.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(a=0,d=l[c];a<i;++a)if((s=o[a]).type===d.type&&s.name===d.name)return d.value}return}for(l=r?hdt:ddt,a=0;a<i;++a)this.each(l(o[a],r,n));return this}function Die(e,r,n){var o=Rie(e),a=o.CustomEvent;typeof a=="function"?a=new a(r,n):(a=o.document.createEvent("Event"),n?(a.initEvent(r,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(r,!1,!1)),e.dispatchEvent(a)}function pdt(e,r){return function(){return Die(this,e,r)}}function mdt(e,r){return function(){return Die(this,e,r.apply(this,arguments))}}function gdt(e,r){return this.each((typeof r=="function"?mdt:pdt)(e,r))}function*ydt(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length,s;a<i;++a)(s=o[a])&&(yield s)}var Lie=[null];function Da(e,r){this._groups=e,this._parents=r}function nb(){return new Da([[document.documentElement]],Lie)}function bdt(){return this}Da.prototype=nb.prototype={constructor:Da,select:Vct,selectAll:Xct,selectChild:Qct,selectChildren:rut,filter:nut,data:cut,enter:out,exit:dut,join:hut,merge:fut,selection:bdt,order:put,sort:mut,call:yut,nodes:but,node:vut,size:xut,empty:wut,each:kut,attr:Nut,style:Mut,property:Iut,classed:Fut,text:qut,html:Gut,raise:Zut,lower:Jut,append:edt,insert:rdt,remove:odt,clone:sdt,datum:ldt,on:fdt,dispatch:gdt,[Symbol.iterator]:ydt};function La(e){return typeof e=="string"?new Da([[document.querySelector(e)]],[document.documentElement]):new Da([[e]],Lie)}function vdt(e){let r;for(;r=e.sourceEvent;)e=r;return e}function Rs(e,r){if(e=vdt(e),r===void 0&&(r=e.currentTarget),r){var n=r.ownerSVGElement||r;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(r.getScreenCTM().inverse()),[o.x,o.y]}if(r.getBoundingClientRect){var a=r.getBoundingClientRect();return[e.clientX-a.left-r.clientLeft,e.clientY-a.top-r.clientTop]}}return[e.pageX,e.pageY]}const xdt={passive:!1},ob={capture:!0,passive:!1};function CR(e){e.stopImmediatePropagation()}function Xm(e){e.preventDefault(),e.stopImmediatePropagation()}function Iie(e){var r=e.document.documentElement,n=La(e).on("dragstart.drag",Xm,ob);"onselectstart"in r?n.on("selectstart.drag",Xm,ob):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function zie(e,r){var n=e.document.documentElement,o=La(e).on("dragstart.drag",null);r&&(o.on("click.drag",Xm,ob),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const TE=e=>()=>e;function TR(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:s,y:l,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}TR.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function wdt(e){return!e.ctrlKey&&!e.button}function kdt(){return this.parentNode}function _dt(e,r){return r??{x:e.x,y:e.y}}function Edt(){return navigator.maxTouchPoints||"ontouchstart"in this}function jie(){var e=wdt,r=kdt,n=_dt,o=Edt,a={},i=_E("start","drag","end"),s=0,l,c,u,d,h=0;function p(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,xdt).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,A){if(!(d||!e.call(this,T,A))){var N=_(this,r.call(this,T,A),T,A,"mouse");N&&(La(T.view).on("mousemove.drag",y,ob).on("mouseup.drag",x,ob),Iie(T.view),CR(T),u=!1,l=T.clientX,c=T.clientY,N("start",T))}}function y(T){if(Xm(T),!u){var A=T.clientX-l,N=T.clientY-c;u=A*A+N*N>h}a.mouse("drag",T)}function x(T){La(T.view).on("mousemove.drag mouseup.drag",null),zie(T.view,u),Xm(T),a.mouse("end",T)}function w(T,A){if(e.call(this,T,A)){var N=T.changedTouches,$=r.call(this,T,A),R=N.length,M,O;for(M=0;M<R;++M)(O=_(this,$,T,A,N[M].identifier,N[M]))&&(CR(T),O("start",T,N[M]))}}function k(T){var A=T.changedTouches,N=A.length,$,R;for($=0;$<N;++$)(R=a[A[$].identifier])&&(Xm(T),R("drag",T,A[$]))}function C(T){var A=T.changedTouches,N=A.length,$,R;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),$=0;$<N;++$)(R=a[A[$].identifier])&&(CR(T),R("end",T,A[$]))}function _(T,A,N,$,R,M){var O=i.copy(),B=Rs(M||N,A),I,Y,D;if((D=n.call(T,new TR("beforestart",{sourceEvent:N,target:p,identifier:R,active:s,x:B[0],y:B[1],dx:0,dy:0,dispatch:O}),$))!=null)return I=D.x-B[0]||0,Y=D.y-B[1]||0,function V(L,U,q){var X=B,F;switch(L){case"start":a[R]=V,F=s++;break;case"end":delete a[R],--s;case"drag":B=Rs(q||U,A),F=s;break}O.call(L,T,new TR(L,{sourceEvent:U,subject:D,target:p,identifier:R,active:F,x:B[0]+I,y:B[1]+Y,dx:B[0]-X[0],dy:B[1]-X[1],dispatch:O}),$)}}return p.filter=function(T){return arguments.length?(e=typeof T=="function"?T:TE(!!T),p):e},p.container=function(T){return arguments.length?(r=typeof T=="function"?T:TE(T),p):r},p.subject=function(T){return arguments.length?(n=typeof T=="function"?T:TE(T),p):n},p.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:TE(!!T),p):o},p.on=function(){var T=i.on.apply(i,arguments);return T===i?p:T},p.clickDistance=function(T){return arguments.length?(h=(T=+T)*T,p):Math.sqrt(h)},p}function AR(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function Bie(e,r){var n=Object.create(e.prototype);for(var o in r)n[o]=r[o];return n}function ab(){}var ib=.7,AE=1/ib,Gm="\\s*([+-]?\\d+)\\s*",sb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sdt=/^#([0-9a-f]{3,8})$/,Cdt=new RegExp(`^rgb\\(${Gm},${Gm},${Gm}\\)$`),Tdt=new RegExp(`^rgb\\(${gl},${gl},${gl}\\)$`),Adt=new RegExp(`^rgba\\(${Gm},${Gm},${Gm},${sb}\\)$`),Ndt=new RegExp(`^rgba\\(${gl},${gl},${gl},${sb}\\)$`),Rdt=new RegExp(`^hsl\\(${sb},${gl},${gl}\\)$`),$dt=new RegExp(`^hsla\\(${sb},${gl},${gl},${sb}\\)$`),Fie={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};AR(ab,Mh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hie,formatHex:Hie,formatHex8:Pdt,formatHsl:Mdt,formatRgb:Uie,toString:Uie});function Hie(){return this.rgb().formatHex()}function Pdt(){return this.rgb().formatHex8()}function Mdt(){return Xie(this).formatHsl()}function Uie(){return this.rgb().formatRgb()}function Mh(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=Sdt.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?Vie(r):n===3?new ua(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?NE(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?NE(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=Cdt.exec(e))?new ua(r[1],r[2],r[3],1):(r=Tdt.exec(e))?new ua(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Adt.exec(e))?NE(r[1],r[2],r[3],r[4]):(r=Ndt.exec(e))?NE(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Rdt.exec(e))?Wie(r[1],r[2]/100,r[3]/100,1):(r=$dt.exec(e))?Wie(r[1],r[2]/100,r[3]/100,r[4]):Fie.hasOwnProperty(e)?Vie(Fie[e]):e==="transparent"?new ua(NaN,NaN,NaN,0):null}function Vie(e){return new ua(e>>16&255,e>>8&255,e&255,1)}function NE(e,r,n,o){return o<=0&&(e=r=n=NaN),new ua(e,r,n,o)}function Odt(e){return e instanceof ab||(e=Mh(e)),e?(e=e.rgb(),new ua(e.r,e.g,e.b,e.opacity)):new ua}function NR(e,r,n,o){return arguments.length===1?Odt(e):new ua(e,r,n,o??1)}function ua(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}AR(ua,NR,Bie(ab,{brighter(e){return e=e==null?AE:Math.pow(AE,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ib:Math.pow(ib,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ua(Oh(this.r),Oh(this.g),Oh(this.b),RE(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qie,formatHex:qie,formatHex8:Ddt,formatRgb:Yie,toString:Yie}));function qie(){return`#${Dh(this.r)}${Dh(this.g)}${Dh(this.b)}`}function Ddt(){return`#${Dh(this.r)}${Dh(this.g)}${Dh(this.b)}${Dh((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yie(){const e=RE(this.opacity);return`${e===1?"rgb(":"rgba("}${Oh(this.r)}, ${Oh(this.g)}, ${Oh(this.b)}${e===1?")":`, ${e})`}`}function RE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dh(e){return e=Oh(e),(e<16?"0":"")+e.toString(16)}function Wie(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new $s(e,r,n,o)}function Xie(e){if(e instanceof $s)return new $s(e.h,e.s,e.l,e.opacity);if(e instanceof ab||(e=Mh(e)),!e)return new $s;if(e instanceof $s)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),s=NaN,l=i-a,c=(i+a)/2;return l?(r===i?s=(n-o)/l+(n<o)*6:n===i?s=(o-r)/l+2:s=(r-n)/l+4,l/=c<.5?i+a:2-i-a,s*=60):l=c>0&&c<1?0:s,new $s(s,l,c,e.opacity)}function Ldt(e,r,n,o){return arguments.length===1?Xie(e):new $s(e,r,n,o??1)}function $s(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}AR($s,Ldt,Bie(ab,{brighter(e){return e=e==null?AE:Math.pow(AE,e),new $s(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ib:Math.pow(ib,e),new $s(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new ua(RR(e>=240?e-240:e+120,a,o),RR(e,a,o),RR(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new $s(Gie(this.h),$E(this.s),$E(this.l),RE(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=RE(this.opacity);return`${e===1?"hsl(":"hsla("}${Gie(this.h)}, ${$E(this.s)*100}%, ${$E(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gie(e){return e=(e||0)%360,e<0?e+360:e}function $E(e){return Math.max(0,Math.min(1,e||0))}function RR(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const $R=e=>()=>e;function Idt(e,r){return function(n){return e+n*r}}function zdt(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function jdt(e){return(e=+e)==1?Kie:function(r,n){return n-r?zdt(r,n,e):$R(isNaN(r)?n:r)}}function Kie(e,r){var n=r-e;return n?Idt(e,n):$R(isNaN(e)?r:e)}const PE=(function e(r){var n=jdt(r);function o(a,i){var s=n((a=NR(a)).r,(i=NR(i)).r),l=n(a.g,i.g),c=n(a.b,i.b),u=Kie(a.opacity,i.opacity);return function(d){return a.r=s(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function Bdt(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;a<n;++a)o[a]=e[a]*(1-i)+r[a]*i;return o}}function Fdt(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Hdt(e,r){var n=r?r.length:0,o=e?Math.min(n,e.length):0,a=new Array(o),i=new Array(n),s;for(s=0;s<o;++s)a[s]=lb(e[s],r[s]);for(;s<n;++s)i[s]=r[s];return function(l){for(s=0;s<o;++s)i[s]=a[s](l);return i}}function Udt(e,r){var n=new Date;return e=+e,r=+r,function(o){return n.setTime(e*(1-o)+r*o),n}}function yl(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}function Vdt(e,r){var n={},o={},a;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(a in r)a in e?n[a]=lb(e[a],r[a]):o[a]=r[a];return function(i){for(a in n)o[a]=n[a](i);return o}}var PR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,MR=new RegExp(PR.source,"g");function qdt(e){return function(){return e}}function Ydt(e){return function(r){return e(r)+""}}function Zie(e,r){var n=PR.lastIndex=MR.lastIndex=0,o,a,i,s=-1,l=[],c=[];for(e=e+"",r=r+"";(o=PR.exec(e))&&(a=MR.exec(r));)(i=a.index)>n&&(i=r.slice(n,i),l[s]?l[s]+=i:l[++s]=i),(o=o[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,c.push({i:s,x:yl(o,a)})),n=MR.lastIndex;return n<r.length&&(i=r.slice(n),l[s]?l[s]+=i:l[++s]=i),l.length<2?c[0]?Ydt(c[0].x):qdt(r):(r=c.length,function(u){for(var d=0,h;d<r;++d)l[(h=c[d]).i]=h.x(u);return l.join("")})}function lb(e,r){var n=typeof r,o;return r==null||n==="boolean"?$R(r):(n==="number"?yl:n==="string"?(o=Mh(r))?(r=o,PE):Zie:r instanceof Mh?PE:r instanceof Date?Udt:Fdt(r)?Bdt:Array.isArray(r)?Hdt:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Vdt:yl)(e,r)}var Qie=180/Math.PI,Jie={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ese(e,r,n,o,a,i){var s,l,c;return(s=Math.sqrt(e*e+r*r))&&(e/=s,r/=s),(c=e*n+r*o)&&(n-=e*c,o-=r*c),(l=Math.sqrt(n*n+o*o))&&(n/=l,o/=l,c/=l),e*o<r*n&&(e=-e,r=-r,c=-c,s=-s),{translateX:a,translateY:i,rotate:Math.atan2(r,e)*Qie,skewX:Math.atan(c)*Qie,scaleX:s,scaleY:l}}var ME;function Wdt(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Jie:ese(r.a,r.b,r.c,r.d,r.e,r.f)}function Xdt(e){return e==null||(ME||(ME=document.createElementNS("http://www.w3.org/2000/svg","g")),ME.setAttribute("transform",e),!(e=ME.transform.baseVal.consolidate()))?Jie:(e=e.matrix,ese(e.a,e.b,e.c,e.d,e.e,e.f))}function tse(e,r,n,o){function a(u){return u.length?u.pop()+" ":""}function i(u,d,h,p,g,y){if(u!==h||d!==p){var x=g.push("translate(",null,r,null,n);y.push({i:x-4,x:yl(u,h)},{i:x-2,x:yl(d,p)})}else(h||p)&&g.push("translate("+h+r+p+n)}function s(u,d,h,p){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),p.push({i:h.push(a(h)+"rotate(",null,o)-2,x:yl(u,d)})):d&&h.push(a(h)+"rotate("+d+o)}function l(u,d,h,p){u!==d?p.push({i:h.push(a(h)+"skewX(",null,o)-2,x:yl(u,d)}):d&&h.push(a(h)+"skewX("+d+o)}function c(u,d,h,p,g,y){if(u!==h||d!==p){var x=g.push(a(g)+"scale(",null,",",null,")");y.push({i:x-4,x:yl(u,h)},{i:x-2,x:yl(d,p)})}else(h!==1||p!==1)&&g.push(a(g)+"scale("+h+","+p+")")}return function(u,d){var h=[],p=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,h,p),s(u.rotate,d.rotate,h,p),l(u.skewX,d.skewX,h,p),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,p),u=d=null,function(g){for(var y=-1,x=p.length,w;++y<x;)h[(w=p[y]).i]=w.x(g);return h.join("")}}}var Gdt=tse(Wdt,"px, ","px)","deg)"),Kdt=tse(Xdt,", ",")",")"),Zdt=1e-12;function rse(e){return((e=Math.exp(e))+1/e)/2}function Qdt(e){return((e=Math.exp(e))-1/e)/2}function Jdt(e){return((e=Math.exp(2*e))-1)/(e+1)}const OE=(function e(r,n,o){function a(i,s){var l=i[0],c=i[1],u=i[2],d=s[0],h=s[1],p=s[2],g=d-l,y=h-c,x=g*g+y*y,w,k;if(x<Zdt)k=Math.log(p/u)/r,w=function($){return[l+$*g,c+$*y,u*Math.exp(r*$*k)]};else{var C=Math.sqrt(x),_=(p*p-u*u+o*x)/(2*u*n*C),T=(p*p-u*u-o*x)/(2*p*n*C),A=Math.log(Math.sqrt(_*_+1)-_),N=Math.log(Math.sqrt(T*T+1)-T);k=(N-A)/r,w=function($){var R=$*k,M=rse(A),O=u/(n*C)*(M*Jdt(r*R+A)-Qdt(A));return[l+O*g,c+O*y,u*M/rse(r*R+A)]}}return w.duration=k*1e3*r/Math.SQRT2,w}return a.rho=function(i){var s=Math.max(.001,+i),l=s*s,c=l*l;return e(s,l,c)},a})(Math.SQRT2,2,4);var Km=0,cb=0,ub=0,nse=1e3,DE,db,LE=0,Lh=0,IE=0,hb=typeof performance=="object"&&performance.now?performance:Date,ose=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function OR(){return Lh||(ose(eht),Lh=hb.now()+IE)}function eht(){Lh=0}function zE(){this._call=this._time=this._next=null}zE.prototype=ase.prototype={constructor:zE,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?OR():+n)+(r==null?0:+r),!this._next&&db!==this&&(db?db._next=this:DE=this,db=this),this._call=e,this._time=n,DR()},stop:function(){this._call&&(this._call=null,this._time=1/0,DR())}};function ase(e,r,n){var o=new zE;return o.restart(e,r,n),o}function tht(){OR(),++Km;for(var e=DE,r;e;)(r=Lh-e._time)>=0&&e._call.call(void 0,r),e=e._next;--Km}function ise(){Lh=(LE=hb.now())+IE,Km=cb=0;try{tht()}finally{Km=0,nht(),Lh=0}}function rht(){var e=hb.now(),r=e-LE;r>nse&&(IE-=r,LE=e)}function nht(){for(var e,r=DE,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:DE=n);db=e,DR(o)}function DR(e){if(!Km){cb&&(cb=clearTimeout(cb));var r=e-Lh;r>24?(e<1/0&&(cb=setTimeout(ise,e-hb.now()-IE)),ub&&(ub=clearInterval(ub))):(ub||(LE=hb.now(),ub=setInterval(rht,nse)),Km=1,ose(ise))}}function sse(e,r,n){var o=new zE;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var oht=_E("start","end","cancel","interrupt"),aht=[],lse=0,cse=1,LR=2,jE=3,use=4,IR=5,BE=6;function FE(e,r,n,o,a,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;iht(e,n,{name:r,index:o,group:a,on:oht,tween:aht,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:lse})}function zR(e,r){var n=Ps(e,r);if(n.state>lse)throw new Error("too late; already scheduled");return n}function bl(e,r){var n=Ps(e,r);if(n.state>jE)throw new Error("too late; already running");return n}function Ps(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function iht(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=ase(i,0,n.time);function i(u){n.state=cse,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var d,h,p,g;if(n.state!==cse)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===jE)return sse(s);g.state===use?(g.state=BE,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+d<r&&(g.state=BE,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[d])}if(sse(function(){n.state===jE&&(n.state=use,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=LR,n.on.call("start",e,e.__data__,n.index,n.group),n.state===LR){for(n.state=jE,a=new Array(p=n.tween.length),d=0,h=-1;d<p;++d)(g=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++h]=g);a.length=h+1}}function l(u){for(var d=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=IR,1),h=-1,p=a.length;++h<p;)a[h].call(e,d);n.state===IR&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=BE,n.timer.stop(),delete o[r];for(var u in o)return;delete e.__transition}}function HE(e,r){var n=e.__transition,o,a,i=!0,s;if(n){r=r==null?null:r+"";for(s in n){if((o=n[s]).name!==r){i=!1;continue}a=o.state>LR&&o.state<IR,o.state=BE,o.timer.stop(),o.on.call(a?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[s]}i&&delete e.__transition}}function sht(e){return this.each(function(){HE(this,e)})}function lht(e,r){var n,o;return function(){var a=bl(this,e),i=a.tween;if(i!==n){o=n=i;for(var s=0,l=o.length;s<l;++s)if(o[s].name===r){o=o.slice(),o.splice(s,1);break}}a.tween=o}}function cht(e,r,n){var o,a;if(typeof n!="function")throw new Error;return function(){var i=bl(this,e),s=i.tween;if(s!==o){a=(o=s).slice();for(var l={name:r,value:n},c=0,u=a.length;c<u;++c)if(a[c].name===r){a[c]=l;break}c===u&&a.push(l)}i.tween=a}}function uht(e,r){var n=this._id;if(e+="",arguments.length<2){for(var o=Ps(this.node(),n).tween,a=0,i=o.length,s;a<i;++a)if((s=o[a]).name===e)return s.value;return null}return this.each((r==null?lht:cht)(n,e,r))}function jR(e,r,n){var o=e._id;return e.each(function(){var a=bl(this,o);(a.value||(a.value={}))[r]=n.apply(this,arguments)}),function(a){return Ps(a,o).value[r]}}function dse(e,r){var n;return(typeof r=="number"?yl:r instanceof Mh?PE:(n=Mh(r))?(r=n,PE):Zie)(e,r)}function dht(e){return function(){this.removeAttribute(e)}}function hht(e){return function(){this.removeAttributeNS(e.space,e.local)}}function fht(e,r,n){var o,a=n+"",i;return function(){var s=this.getAttribute(e);return s===a?null:s===o?i:i=r(o=s,n)}}function pht(e,r,n){var o,a=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===o?i:i=r(o=s,n)}}function mht(e,r,n){var o,a,i;return function(){var s,l=n(this),c;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=l+"",s===c?null:s===o&&c===a?i:(a=c,i=r(o=s,l)))}}function ght(e,r,n){var o,a,i;return function(){var s,l=n(this),c;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=l+"",s===c?null:s===o&&c===a?i:(a=c,i=r(o=s,l)))}}function yht(e,r){var n=SE(e),o=n==="transform"?Kdt:dse;return this.attrTween(e,typeof r=="function"?(n.local?ght:mht)(n,o,jR(this,"attr."+e,r)):r==null?(n.local?hht:dht)(n):(n.local?pht:fht)(n,o,r))}function bht(e,r){return function(n){this.setAttribute(e,r.call(this,n))}}function vht(e,r){return function(n){this.setAttributeNS(e.space,e.local,r.call(this,n))}}function xht(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&vht(e,i)),n}return a._value=r,a}function wht(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&bht(e,i)),n}return a._value=r,a}function kht(e,r){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;var o=SE(e);return this.tween(n,(o.local?xht:wht)(o,r))}function _ht(e,r){return function(){zR(this,e).delay=+r.apply(this,arguments)}}function Eht(e,r){return r=+r,function(){zR(this,e).delay=r}}function Sht(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?_ht:Eht)(r,e)):Ps(this.node(),r).delay}function Cht(e,r){return function(){bl(this,e).duration=+r.apply(this,arguments)}}function Tht(e,r){return r=+r,function(){bl(this,e).duration=r}}function Aht(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?Cht:Tht)(r,e)):Ps(this.node(),r).duration}function Nht(e,r){if(typeof r!="function")throw new Error;return function(){bl(this,e).ease=r}}function Rht(e){var r=this._id;return arguments.length?this.each(Nht(r,e)):Ps(this.node(),r).ease}function $ht(e,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;bl(this,e).ease=n}}function Pht(e){if(typeof e!="function")throw new Error;return this.each($ht(this._id,e))}function Mht(e){typeof e!="function"&&(e=Tie(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],s=i.length,l=o[a]=[],c,u=0;u<s;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&l.push(c);return new mc(o,this._parents,this._name,this._id)}function Oht(e){if(e._id!==this._id)throw new Error;for(var r=this._groups,n=e._groups,o=r.length,a=n.length,i=Math.min(o,a),s=new Array(o),l=0;l<i;++l)for(var c=r[l],u=n[l],d=c.length,h=s[l]=new Array(d),p,g=0;g<d;++g)(p=c[g]||u[g])&&(h[g]=p);for(;l<o;++l)s[l]=r[l];return new mc(s,this._parents,this._name,this._id)}function Dht(e){return(e+"").trim().split(/^|\s+/).every(function(r){var n=r.indexOf(".");return n>=0&&(r=r.slice(0,n)),!r||r==="start"})}function Lht(e,r,n){var o,a,i=Dht(r)?zR:bl;return function(){var s=i(this,e),l=s.on;l!==o&&(a=(o=l).copy()).on(r,n),s.on=a}}function Iht(e,r){var n=this._id;return arguments.length<2?Ps(this.node(),n).on.on(e):this.each(Lht(n,e,r))}function zht(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function jht(){return this.on("end.remove",zht(this._id))}function Bht(e){var r=this._name,n=this._id;typeof e!="function"&&(e=ER(e));for(var o=this._groups,a=o.length,i=new Array(a),s=0;s<a;++s)for(var l=o[s],c=l.length,u=i[s]=new Array(c),d,h,p=0;p<c;++p)(d=l[p])&&(h=e.call(d,d.__data__,p,l))&&("__data__"in d&&(h.__data__=d.__data__),u[p]=h,FE(u[p],r,n,p,u,Ps(d,n)));return new mc(i,this._parents,r,n)}function Fht(e){var r=this._name,n=this._id;typeof e!="function"&&(e=Cie(e));for(var o=this._groups,a=o.length,i=[],s=[],l=0;l<a;++l)for(var c=o[l],u=c.length,d,h=0;h<u;++h)if(d=c[h]){for(var p=e.call(d,d.__data__,h,c),g,y=Ps(d,n),x=0,w=p.length;x<w;++x)(g=p[x])&&FE(g,r,n,x,p,y);i.push(p),s.push(d)}return new mc(i,s,r,n)}var Hht=nb.prototype.constructor;function Uht(){return new Hht(this._groups,this._parents)}function Vht(e,r){var n,o,a;return function(){var i=Wm(this,e),s=(this.style.removeProperty(e),Wm(this,e));return i===s?null:i===n&&s===o?a:a=r(n=i,o=s)}}function hse(e){return function(){this.style.removeProperty(e)}}function qht(e,r,n){var o,a=n+"",i;return function(){var s=Wm(this,e);return s===a?null:s===o?i:i=r(o=s,n)}}function Yht(e,r,n){var o,a,i;return function(){var s=Wm(this,e),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(e),Wm(this,e))),s===c?null:s===o&&c===a?i:(a=c,i=r(o=s,l))}}function Wht(e,r){var n,o,a,i="style."+r,s="end."+i,l;return function(){var c=bl(this,e),u=c.on,d=c.value[i]==null?l||(l=hse(r)):void 0;(u!==n||a!==d)&&(o=(n=u).copy()).on(s,a=d),c.on=o}}function Xht(e,r,n){var o=(e+="")=="transform"?Gdt:dse;return r==null?this.styleTween(e,Vht(e,o)).on("end.style."+e,hse(e)):typeof r=="function"?this.styleTween(e,Yht(e,o,jR(this,"style."+e,r))).each(Wht(this._id,e)):this.styleTween(e,qht(e,o,r),n).on("end.style."+e,null)}function Ght(e,r,n){return function(o){this.style.setProperty(e,r.call(this,o),n)}}function Kht(e,r,n){var o,a;function i(){var s=r.apply(this,arguments);return s!==a&&(o=(a=s)&&Ght(e,s,n)),o}return i._value=r,i}function Zht(e,r,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(r==null)return this.tween(o,null);if(typeof r!="function")throw new Error;return this.tween(o,Kht(e,r,n??""))}function Qht(e){return function(){this.textContent=e}}function Jht(e){return function(){var r=e(this);this.textContent=r??""}}function eft(e){return this.tween("text",typeof e=="function"?Jht(jR(this,"text",e)):Qht(e==null?"":e+""))}function tft(e){return function(r){this.textContent=e.call(this,r)}}function rft(e){var r,n;function o(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&tft(a)),r}return o._value=e,o}function nft(e){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,rft(e))}function oft(){for(var e=this._name,r=this._id,n=fse(),o=this._groups,a=o.length,i=0;i<a;++i)for(var s=o[i],l=s.length,c,u=0;u<l;++u)if(c=s[u]){var d=Ps(c,r);FE(c,e,n,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new mc(o,this._parents,e,n)}function aft(){var e,r,n=this,o=n._id,a=n.size();return new Promise(function(i,s){var l={value:s},c={value:function(){--a===0&&i()}};n.each(function(){var u=bl(this,o),d=u.on;d!==e&&(r=(e=d).copy(),r._.cancel.push(l),r._.interrupt.push(l),r._.end.push(c)),u.on=r}),a===0&&i()})}var ift=0;function mc(e,r,n,o){this._groups=e,this._parents=r,this._name=n,this._id=o}function fse(){return++ift}var gc=nb.prototype;mc.prototype={constructor:mc,select:Bht,selectAll:Fht,selectChild:gc.selectChild,selectChildren:gc.selectChildren,filter:Mht,merge:Oht,selection:Uht,transition:oft,call:gc.call,nodes:gc.nodes,node:gc.node,size:gc.size,empty:gc.empty,each:gc.each,on:Iht,attr:yht,attrTween:kht,style:Xht,styleTween:Zht,text:eft,textTween:nft,remove:jht,tween:uht,delay:Sht,duration:Aht,ease:Rht,easeVarying:Pht,end:aft,[Symbol.iterator]:gc[Symbol.iterator]};function sft(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lft={time:null,delay:0,duration:250,ease:sft};function cft(e,r){for(var n;!(n=e.__transition)||!(n=n[r]);)if(!(e=e.parentNode))throw new Error(`transition ${r} not found`);return n}function uft(e){var r,n;e instanceof mc?(r=e._id,e=e._name):(r=fse(),(n=lft).time=OR(),e=e==null?null:e+"");for(var o=this._groups,a=o.length,i=0;i<a;++i)for(var s=o[i],l=s.length,c,u=0;u<l;++u)(c=s[u])&&FE(c,e,r,u,s,n||cft(c,r));return new mc(o,this._parents,e,r)}nb.prototype.interrupt=sht,nb.prototype.transition=uft;const UE=e=>()=>e;function dft(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function yc(e,r,n){this.k=e,this.x=r,this.y=n}yc.prototype={constructor:yc,scale:function(e){return e===1?this:new yc(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new yc(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var VE=new yc(1,0,0);pse.prototype=yc.prototype;function pse(e){for(;!e.__zoom;)if(!(e=e.parentNode))return VE;return e.__zoom}function BR(e){e.stopImmediatePropagation()}function fb(e){e.preventDefault(),e.stopImmediatePropagation()}function hft(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function fft(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function mse(){return this.__zoom||VE}function pft(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function mft(){return navigator.maxTouchPoints||"ontouchstart"in this}function gft(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],s=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function gse(){var e=hft,r=fft,n=gft,o=pft,a=mft,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=OE,u=_E("start","zoom","end"),d,h,p,g=500,y=150,x=0,w=10;function k(D){D.property("__zoom",mse).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",B).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(D,V,L,U){var q=D.selection?D.selection():D;q.property("__zoom",mse),D!==q?A(D,V,L,U):q.interrupt().each(function(){N(this,arguments).event(U).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},k.scaleBy=function(D,V,L,U){k.scaleTo(D,function(){var q=this.__zoom.k,X=typeof V=="function"?V.apply(this,arguments):V;return q*X},L,U)},k.scaleTo=function(D,V,L,U){k.transform(D,function(){var q=r.apply(this,arguments),X=this.__zoom,F=L==null?T(q):typeof L=="function"?L.apply(this,arguments):L,J=X.invert(F),Q=typeof V=="function"?V.apply(this,arguments):V;return n(_(C(X,Q),F,J),q,s)},L,U)},k.translateBy=function(D,V,L,U){k.transform(D,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof L=="function"?L.apply(this,arguments):L),r.apply(this,arguments),s)},null,U)},k.translateTo=function(D,V,L,U,q){k.transform(D,function(){var X=r.apply(this,arguments),F=this.__zoom,J=U==null?T(X):typeof U=="function"?U.apply(this,arguments):U;return n(VE.translate(J[0],J[1]).scale(F.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof L=="function"?-L.apply(this,arguments):-L),X,s)},U,q)};function C(D,V){return V=Math.max(i[0],Math.min(i[1],V)),V===D.k?D:new yc(V,D.x,D.y)}function _(D,V,L){var U=V[0]-L[0]*D.k,q=V[1]-L[1]*D.k;return U===D.x&&q===D.y?D:new yc(D.k,U,q)}function T(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function A(D,V,L,U){D.on("start.zoom",function(){N(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){N(this,arguments).event(U).end()}).tween("zoom",function(){var q=this,X=arguments,F=N(q,X).event(U),J=r.apply(q,X),Q=L==null?T(J):typeof L=="function"?L.apply(q,X):L,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=q.__zoom,G=typeof V=="function"?V.apply(q,X):V,Z=c(W.invert(Q).concat(z/W.k),G.invert(Q).concat(z/G.k));return function(oe){if(oe===1)oe=G;else{var ee=Z(oe),re=z/ee[2];oe=new yc(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function N(D,V,L){return!L&&D.__zooming||new $(D,V)}function $(D,V){this.that=D,this.args=V,this.active=0,this.sourceEvent=null,this.extent=r.apply(D,V),this.taps=0}$.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,V){return this.mouse&&D!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var V=La(this.that).datum();u.call(D,this.that,new dft(D,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),V)}};function R(D,...V){if(!e.apply(this,arguments))return;var L=N(this,V).event(D),U=this.__zoom,q=Math.max(i[0],Math.min(i[1],U.k*Math.pow(2,o.apply(this,arguments)))),X=Rs(D);if(L.wheel)(L.mouse[0][0]!==X[0]||L.mouse[0][1]!==X[1])&&(L.mouse[1]=U.invert(L.mouse[0]=X)),clearTimeout(L.wheel);else{if(U.k===q)return;L.mouse=[X,U.invert(X)],HE(this),L.start()}fb(D),L.wheel=setTimeout(F,y),L.zoom("mouse",n(_(C(U,q),L.mouse[0],L.mouse[1]),L.extent,s));function F(){L.wheel=null,L.end()}}function M(D,...V){if(p||!e.apply(this,arguments))return;var L=D.currentTarget,U=N(this,V,!0).event(D),q=La(D.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),X=Rs(D,L),F=D.clientX,J=D.clientY;Iie(D.view),BR(D),U.mouse=[X,this.__zoom.invert(X)],HE(this),U.start();function Q(W){if(fb(W),!U.moved){var G=W.clientX-F,Z=W.clientY-J;U.moved=G*G+Z*Z>x}U.event(W).zoom("mouse",n(_(U.that.__zoom,U.mouse[0]=Rs(W,L),U.mouse[1]),U.extent,s))}function z(W){q.on("mousemove.zoom mouseup.zoom",null),zie(W.view,U.moved),fb(W),U.event(W).end()}}function O(D,...V){if(e.apply(this,arguments)){var L=this.__zoom,U=Rs(D.changedTouches?D.changedTouches[0]:D,this),q=L.invert(U),X=L.k*(D.shiftKey?.5:2),F=n(_(C(L,X),U,q),r.apply(this,V),s);fb(D),l>0?La(this).transition().duration(l).call(A,F,U,D):La(this).call(k.transform,F,U,D)}}function B(D,...V){if(e.apply(this,arguments)){var L=D.touches,U=L.length,q=N(this,V,D.changedTouches.length===U).event(D),X,F,J,Q;for(BR(D),F=0;F<U;++F)J=L[F],Q=Rs(J,this),Q=[Q,this.__zoom.invert(Q),J.identifier],q.touch0?!q.touch1&&q.touch0[2]!==Q[2]&&(q.touch1=Q,q.taps=0):(q.touch0=Q,X=!0,q.taps=1+!!d);d&&(d=clearTimeout(d)),X&&(q.taps<2&&(h=Q[0],d=setTimeout(function(){d=null},g)),HE(this),q.start())}}function I(D,...V){if(this.__zooming){var L=N(this,V).event(D),U=D.changedTouches,q=U.length,X,F,J,Q;for(fb(D),X=0;X<q;++X)F=U[X],J=Rs(F,this),L.touch0&&L.touch0[2]===F.identifier?L.touch0[0]=J:L.touch1&&L.touch1[2]===F.identifier&&(L.touch1[0]=J);if(F=L.that.__zoom,L.touch1){var z=L.touch0[0],W=L.touch0[1],G=L.touch1[0],Z=L.touch1[1],oe=(oe=G[0]-z[0])*oe+(oe=G[1]-z[1])*oe,ee=(ee=Z[0]-W[0])*ee+(ee=Z[1]-W[1])*ee;F=C(F,Math.sqrt(oe/ee)),J=[(z[0]+G[0])/2,(z[1]+G[1])/2],Q=[(W[0]+Z[0])/2,(W[1]+Z[1])/2]}else if(L.touch0)J=L.touch0[0],Q=L.touch0[1];else return;L.zoom("touch",n(_(F,J,Q),L.extent,s))}}function Y(D,...V){if(this.__zooming){var L=N(this,V).event(D),U=D.changedTouches,q=U.length,X,F;for(BR(D),p&&clearTimeout(p),p=setTimeout(function(){p=null},g),X=0;X<q;++X)F=U[X],L.touch0&&L.touch0[2]===F.identifier?delete L.touch0:L.touch1&&L.touch1[2]===F.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(F=Rs(F,this),Math.hypot(h[0]-F[0],h[1]-F[1])<w)){var J=La(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return k.wheelDelta=function(D){return arguments.length?(o=typeof D=="function"?D:UE(+D),k):o},k.filter=function(D){return arguments.length?(e=typeof D=="function"?D:UE(!!D),k):e},k.touchable=function(D){return arguments.length?(a=typeof D=="function"?D:UE(!!D),k):a},k.extent=function(D){return arguments.length?(r=typeof D=="function"?D:UE([[+D[0][0],+D[0][1]],[+D[1][0],+D[1][1]]]),k):r},k.scaleExtent=function(D){return arguments.length?(i[0]=+D[0],i[1]=+D[1],k):[i[0],i[1]]},k.translateExtent=function(D){return arguments.length?(s[0][0]=+D[0][0],s[1][0]=+D[1][0],s[0][1]=+D[0][1],s[1][1]=+D[1][1],k):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},k.constrain=function(D){return arguments.length?(n=D,k):n},k.duration=function(D){return arguments.length?(l=+D,k):l},k.interpolate=function(D){return arguments.length?(c=D,k):c},k.on=function(){var D=u.on.apply(u,arguments);return D===u?k:D},k.clickDistance=function(D){return arguments.length?(x=(D=+D)*D,k):Math.sqrt(x)},k.tapDistance=function(D){return arguments.length?(w=+D,k):w},k}const vl={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},pb=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],yse=["Enter"," ","Escape"],bse={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Zm;(function(e){e.Strict="strict",e.Loose="loose"})(Zm||(Zm={}));var Ih;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Ih||(Ih={}));var mb;(function(e){e.Partial="partial",e.Full="full"})(mb||(mb={}));const vse={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var Mu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Mu||(Mu={}));var qE;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(qE||(qE={}));var ft;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ft||(ft={}));const xse={[ft.Left]:ft.Right,[ft.Right]:ft.Left,[ft.Top]:ft.Bottom,[ft.Bottom]:ft.Top};function wse(e){return e===null?null:e?"valid":"invalid"}const kse=e=>"id"in e&&"source"in e&&"target"in e,yft=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),FR=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),gb=(e,r=[0,0])=>{const{width:n,height:o}=bc(e),a=e.origin??r,i=n*a[0],s=o*a[1];return{x:e.position.x-i,y:e.position.y-s}},bft=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let s=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(s=i?r.nodeLookup.get(a):FR(a)?a:r.nodeLookup.get(a.id));const l=s?XE(s,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return YE(o,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return WE(n)},yb=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=XE(o);n=YE(n,a)}}),WE(n)},HR=(e,r,[n,o,a]=[0,0,1],i=!1,s=!1)=>{const l={...xb(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:h=!0,hidden:p=!1}=u;if(s&&!h||p)continue;const g=d.width??u.width??u.initialWidth??null,y=d.height??u.height??u.initialHeight??null,x=bb(l,Jm(u)),w=(g??0)*(y??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},vft=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function xft(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function wft({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const l=xft(e,s),c=yb(l),u=VR(c,r,n,s?.minZoom??a,s?.maxZoom??i,s?.padding??.1);return await o.setViewport(u,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),Promise.resolve(!0)}function _se({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const s=n.get(e),l=s.parentId?n.get(s.parentId):void 0,{x:c,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},d=s.origin??o;let h=s.extent||a;if(s.extent==="parent"&&!s.expandParent)if(!l)i?.("005",vl.error005());else{const g=l.measured.width,y=l.measured.height;g&&y&&(h=[[c,u],[c+g,u+y]])}else l&&tg(s.extent)&&(h=[[s.extent[0][0]+c,s.extent[0][1]+u],[s.extent[1][0]+c,s.extent[1][1]+u]]);const p=tg(h)?zh(r,h,s.measured):r;return(s.measured.width===void 0||s.measured.height===void 0)&&i?.("015",vl.error015()),{position:{x:p.x-c+(s.measured.width??0)*d[0],y:p.y-u+(s.measured.height??0)*d[1]},positionAbsolute:p}}async function kft({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(h=>h.id)),s=[];for(const h of n){if(h.deletable===!1)continue;const p=i.has(h.id),g=!p&&h.parentId&&s.find(y=>y.id===h.parentId);(p||g)&&s.push(h)}const l=new Set(r.map(h=>h.id)),c=o.filter(h=>h.deletable!==!1),u=vft(s,c);for(const h of c)l.has(h.id)&&!u.find(p=>p.id===h.id)&&u.push(h);if(!a)return{edges:u,nodes:s};const d=await a({nodes:s,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:s}:{edges:[],nodes:[]}:d}const Qm=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),zh=(e={x:0,y:0},r,n)=>({x:Qm(e.x,r[0][0],r[1][0]-(n?.width??0)),y:Qm(e.y,r[0][1],r[1][1]-(n?.height??0))});function Ese(e,r,n){const{width:o,height:a}=bc(n),{x:i,y:s}=n.internals.positionAbsolute;return zh(e,[[i,s],[i+o,s+a]],r)}const Sse=(e,r,n)=>e<r?Qm(Math.abs(e-r),1,r)/r:e>n?-Qm(Math.abs(e-n),1,r)/r:0,Cse=(e,r,n=15,o=40)=>{const a=Sse(e.x,o,r.width-o)*n,i=Sse(e.y,o,r.height-o)*n;return[a,i]},YE=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),UR=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),WE=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Jm=(e,r=[0,0])=>{const{x:n,y:o}=FR(e)?e.internals.positionAbsolute:gb(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},XE=(e,r=[0,0])=>{const{x:n,y:o}=FR(e)?e.internals.positionAbsolute:gb(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},Tse=(e,r)=>WE(YE(UR(e),UR(r))),bb=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},Ase=e=>Ms(e.width)&&Ms(e.height)&&Ms(e.x)&&Ms(e.y),Ms=e=>!isNaN(e)&&isFinite(e),_ft=(e,r)=>{},vb=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),xb=({x:e,y:r},[n,o,a],i=!1,s=[1,1])=>{const l={x:(e-n)/a,y:(r-o)/a};return i?vb(l,s):l},GE=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function eg(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Eft(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=eg(e,n),a=eg(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=eg(e.top??e.y??0,n),a=eg(e.bottom??e.y??0,n),i=eg(e.left??e.x??0,r),s=eg(e.right??e.x??0,r);return{top:o,right:s,bottom:a,left:i,x:i+s,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Sft(e,r,n,o,a,i){const{x:s,y:l}=GE(e,[r,n,o]),{x:c,y:u}=GE({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,h=i-u;return{left:Math.floor(s),top:Math.floor(l),right:Math.floor(d),bottom:Math.floor(h)}}const VR=(e,r,n,o,a,i)=>{const s=Eft(i,r,n),l=(r-s.x)/e.width,c=(n-s.y)/e.height,u=Math.min(l,c),d=Qm(u,o,a),h=e.x+e.width/2,p=e.y+e.height/2,g=r/2-h*d,y=n/2-p*d,x=Sft(e,g,y,d,r,n),w={left:Math.min(x.left-s.left,0),top:Math.min(x.top-s.top,0),right:Math.min(x.right-s.right,0),bottom:Math.min(x.bottom-s.bottom,0)};return{x:g-w.left+w.right,y:y-w.top+w.bottom,zoom:d}},wb=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function tg(e){return e!=null&&e!=="parent"}function bc(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function Nse(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function Rse(e,r={width:0,height:0},n,o,a){const i={...e},s=o.get(n);if(s){const l=s.origin||a;i.x+=s.internals.positionAbsolute.x-(r.width??0)*l[0],i.y+=s.internals.positionAbsolute.y-(r.height??0)*l[1]}return i}function $se(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function Cft(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function Tft(e){return{...bse,...e||{}}}function kb(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:s}=Os(e),l=xb({x:i-(a?.left??0),y:s-(a?.top??0)},o),{x:c,y:u}=n?vb(l,r):l;return{xSnapped:c,ySnapped:u,...l}}const qR=e=>({width:e.offsetWidth,height:e.offsetHeight}),Pse=e=>e?.getRootNode?.()||window?.document,Aft=["INPUT","SELECT","TEXTAREA"];function Mse(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:Aft.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const Ose=e=>"clientX"in e,Os=(e,r)=>{const n=Ose(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},Dse=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const l=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:a,position:s.getAttribute("data-handlepos"),x:(l.left-n.left)/o,y:(l.top-n.top)/o,...qR(s)}})};function Lse({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:s,targetControlY:l}){const c=e*.125+a*.375+s*.375+n*.125,u=r*.125+i*.375+l*.375+o*.125,d=Math.abs(c-e),h=Math.abs(u-r);return[c,u,d,h]}function KE(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function Ise({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case ft.Left:return[r-KE(r-o,i),n];case ft.Right:return[r+KE(o-r,i),n];case ft.Top:return[r,n-KE(n-a,i)];case ft.Bottom:return[r,n+KE(a-n,i)]}}function zse({sourceX:e,sourceY:r,sourcePosition:n=ft.Bottom,targetX:o,targetY:a,targetPosition:i=ft.Top,curvature:s=.25}){const[l,c]=Ise({pos:n,x1:e,y1:r,x2:o,y2:a,c:s}),[u,d]=Ise({pos:i,x1:o,y1:a,x2:e,y2:r,c:s}),[h,p,g,y]=Lse({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${l},${c} ${u},${d} ${o},${a}`,h,p,g,y]}function jse({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n<e?n+a:n-a,s=Math.abs(o-r)/2,l=o<r?o+s:o-s;return[i,l,a,s]}function Nft({sourceNode:e,targetNode:r,selected:n=!1,zIndex:o,elevateOnSelect:a=!1}){if(o!==void 0)return o;const i=a&&n?1e3:0,s=Math.max(e.parentId||a&&e.selected?e.internals.z:0,r.parentId||a&&r.selected?r.internals.z:0);return i+s}function Rft({sourceNode:e,targetNode:r,width:n,height:o,transform:a}){const i=YE(XE(e),XE(r));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const s={x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:o/a[2]};return bb(s,WE(i))>0}const $ft=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,Pft=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),Mft=(e,r)=>{if(!e.source||!e.target)return r;let n;return kse(e)?n={...e}:n={...e,id:$ft(e)},Pft(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function Bse({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,s,l]=jse({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,s,l]}const Fse={[ft.Left]:{x:-1,y:0},[ft.Right]:{x:1,y:0},[ft.Top]:{x:0,y:-1},[ft.Bottom]:{x:0,y:1}},Oft=({source:e,sourcePosition:r=ft.Bottom,target:n})=>r===ft.Left||r===ft.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Hse=(e,r)=>Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function Dft({source:e,sourcePosition:r=ft.Bottom,target:n,targetPosition:o=ft.Top,center:a,offset:i,stepPosition:s}){const l=Fse[r],c=Fse[o],u={x:e.x+l.x*i,y:e.y+l.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},h=Oft({source:u,sourcePosition:r,target:d}),p=h.x!==0?"x":"y",g=h[p];let y=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=jse({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[p]*c[p]===-1){p==="x"?(x=a.x??u.x+(d.x-u.x)*s,w=a.y??(u.y+d.y)/2):(x=a.x??(u.x+d.x)/2,w=a.y??u.y+(d.y-u.y)*s);const A=[{x,y:u.y},{x,y:d.y}],N=[{x:u.x,y:w},{x:d.x,y:w}];l[p]===g?y=p==="x"?A:N:y=p==="x"?N:A}else{const A=[{x:u.x,y:d.y}],N=[{x:d.x,y:u.y}];if(p==="x"?y=l.x===g?N:A:y=l.y===g?A:N,r===o){const B=Math.abs(e[p]-n[p]);if(B<=i){const I=Math.min(i-1,i-B);l[p]===g?k[p]=(u[p]>e[p]?-1:1)*I:C[p]=(d[p]>n[p]?-1:1)*I}}if(r!==o){const B=p==="x"?"y":"x",I=l[p]===c[B],Y=u[B]>d[B],D=u[B]<d[B];(l[p]===1&&(!I&&Y||I&&D)||l[p]!==1&&(!I&&D||I&&Y))&&(y=p==="x"?A:N)}const $={x:u.x+k.x,y:u.y+k.y},R={x:d.x+C.x,y:d.y+C.y},M=Math.max(Math.abs($.x-y[0].x),Math.abs(R.x-y[0].x)),O=Math.max(Math.abs($.y-y[0].y),Math.abs(R.y-y[0].y));M>=O?(x=($.x+R.x)/2,w=y[0].y):(x=y[0].x,w=($.y+R.y)/2)}return[[e,{x:u.x+k.x,y:u.y+k.y},...y,{x:d.x+C.x,y:d.y+C.y},n],x,w,_,T]}function Lft(e,r,n,o){const a=Math.min(Hse(e,r)/2,Hse(r,n)/2,o),{x:i,y:s}=r;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const u=e.x<n.x?-1:1,d=e.y<n.y?1:-1;return`L ${i+a*u},${s}Q ${i},${s} ${i},${s+a*d}`}const l=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${i},${s+a*c}Q ${i},${s} ${i+a*l},${s}`}function YR({sourceX:e,sourceY:r,sourcePosition:n=ft.Bottom,targetX:o,targetY:a,targetPosition:i=ft.Top,borderRadius:s=5,centerX:l,centerY:c,offset:u=20,stepPosition:d=.5}){const[h,p,g,y,x]=Dft({source:{x:e,y:r},sourcePosition:n,target:{x:o,y:a},targetPosition:i,center:{x:l,y:c},offset:u,stepPosition:d});return[h.reduce((w,k,C)=>{let _="";return C>0&&C<h.length-1?_=Lft(h[C-1],k,h[C+1],s):_=`${C===0?"M":"L"}${k.x} ${k.y}`,w+=_,w},""),p,g,y,x]}function Use(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Ift(e){const{sourceNode:r,targetNode:n}=e;if(!Use(r)||!Use(n))return null;const o=r.internals.handleBounds||Vse(r.handles),a=n.internals.handleBounds||Vse(n.handles),i=qse(o?.source??[],e.sourceHandle),s=qse(e.connectionMode===Zm.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!s)return e.onError?.("008",vl.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const l=i?.position||ft.Bottom,c=s?.position||ft.Top,u=_b(r,i,l),d=_b(n,s,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:l,targetPosition:c}}function Vse(e){if(!e)return null;const r=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?r.push(o):o.type==="target"&&n.push(o);return{source:r,target:n}}function _b(e,r,n=ft.Left,o=!1){const a=(r?.x??0)+e.internals.positionAbsolute.x,i=(r?.y??0)+e.internals.positionAbsolute.y,{width:s,height:l}=r??bc(e);if(o)return{x:a+s/2,y:i+l/2};switch(r?.position??n){case ft.Top:return{x:a+s/2,y:i};case ft.Right:return{x:a+s,y:i+l/2};case ft.Bottom:return{x:a+s/2,y:i+l};case ft.Left:return{x:a,y:i+l/2}}}function qse(e,r){return e&&(r?e.find(n=>n.id===r):e[0])||null}function WR(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function zft(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((s,l)=>([l.markerStart||o,l.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const u=WR(c,r);i.has(u)||(s.push({id:u,color:c.color||n,...c}),i.add(u))}}),s),[]).sort((s,l)=>s.id.localeCompare(l.id))}const XR={nodeOrigin:[0,0],nodeExtent:pb,elevateNodesOnSelect:!0,defaults:{}},jft={...XR,checkEquality:!0};function GR(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function Bft(e,r,n){const o=GR(XR,n);for(const a of e.values())if(a.parentId)ZR(a,e,r,o);else{const i=gb(a,o.nodeOrigin),s=tg(a.extent)?a.extent:o.nodeExtent,l=zh(i,s,bc(a));a.internals.positionAbsolute=l}}function Fft(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function KR(e,r,n,o){const a=GR(jft,o);let i=e.length>0;const s=new Map(r),l=a?.elevateNodesOnSelect?1e3:0;r.clear(),n.clear();for(const c of e){let u=s.get(c.id);if(a.checkEquality&&c===u?.internals.userNode)r.set(c.id,u);else{const d=gb(c,a.nodeOrigin),h=tg(c.extent)?c.extent:a.nodeExtent,p=zh(d,h,bc(c));u={...a.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:p,handleBounds:Fft(c,u),z:Yse(c,l),userNode:c}},r.set(c.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(i=!1),c.parentId&&ZR(u,r,n,o)}return i}function Hft(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function ZR(e,r,n,o){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:s}=GR(XR,o),l=e.parentId,c=r.get(l);if(!c){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}Hft(e,n);const u=a?1e3:0,{x:d,y:h,z:p}=Uft(e,c,i,s,u),{positionAbsolute:g}=e.internals,y=d!==g.x||h!==g.y;(y||p!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:y?{x:d,y:h}:g,z:p}})}function Yse(e,r){return(Ms(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function Uft(e,r,n,o,a){const{x:i,y:s}=r.internals.positionAbsolute,l=bc(e),c=gb(e,n),u=tg(e.extent)?zh(c,e.extent,l):c;let d=zh({x:i+u.x,y:s+u.y},o,l);e.extent==="parent"&&(d=Ese(d,l,r));const h=Yse(e,a),p=r.internals.z??0;return{x:d.x,y:d.y,z:p>=h?p+1:h}}function QR(e,r,n,o=[0,0]){const a=[],i=new Map;for(const s of e){const l=r.get(s.parentId);if(!l)continue;const c=i.get(s.parentId)?.expandedRect??Jm(l),u=Tse(c,s.rect);i.set(s.parentId,{expandedRect:u,parent:l})}return i.size>0&&i.forEach(({expandedRect:s,parent:l},c)=>{const u=l.internals.positionAbsolute,d=bc(l),h=l.origin??o,p=s.x<u.x?Math.round(Math.abs(u.x-s.x)):0,g=s.y<u.y?Math.round(Math.abs(u.y-s.y)):0,y=Math.max(d.width,Math.round(s.width)),x=Math.max(d.height,Math.round(s.height)),w=(y-d.width)*h[0],k=(x-d.height)*h[1];(p>0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:l.position.x-p+w,y:l.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+p,y:C.position.y+g}})})),(d.width<s.width||d.height<s.height||p||g)&&a.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:y+(p?h[0]*p-w:0),height:x+(g?h[1]*g-k:0)}})}),a}function Vft(e,r,n,o,a,i){const s=o?.querySelector(".xyflow__viewport");let l=!1;if(!s)return{changes:[],updatedInternals:l};const c=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),h=[];for(const p of e.values()){const g=r.get(p.id);if(!g)continue;if(g.hidden){r.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),l=!0;continue}const y=qR(p.nodeElement),x=g.measured.width!==y.width||g.measured.height!==y.height;if(y.width&&y.height&&(x||!g.internals.handleBounds||p.force)){const w=p.nodeElement.getBoundingClientRect(),k=tg(g.extent)?g.extent:i;let{positionAbsolute:C}=g.internals;g.parentId&&g.extent==="parent"?C=Ese(C,y,r.get(g.parentId)):k&&(C=zh(C,k,y));const _={...g,measured:y,internals:{...g.internals,positionAbsolute:C,handleBounds:{source:Dse("source",p.nodeElement,w,d,g.id),target:Dse("target",p.nodeElement,w,d,g.id)}}};r.set(g.id,_),g.parentId&&ZR(_,r,n,{nodeOrigin:a}),l=!0,x&&(c.push({id:g.id,type:"dimensions",dimensions:y}),g.expandParent&&g.parentId&&h.push({id:g.id,parentId:g.parentId,rect:Jm(_,a)}))}}if(h.length>0){const p=QR(h,r,n,a);c.push(...p)}return{changes:c,updatedInternals:l}}async function qft({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const s=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),l=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(l)}function Wse(e,r,n,o,a,i){let s=a;const l=o.get(s)||new Map;o.set(s,l.set(n,r)),s=`${a}-${e}`;const c=o.get(s)||new Map;if(o.set(s,c.set(n,r)),i){s=`${a}-${e}-${i}`;const u=o.get(s)||new Map;o.set(s,u.set(n,r))}}function Xse(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:s=null,targetHandle:l=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:s,targetHandle:l},u=`${a}-${s}--${i}-${l}`,d=`${i}-${l}--${a}-${s}`;Wse("source",c,d,e,a,s),Wse("target",c,u,e,i,l),r.set(o.id,o)}}function Gse(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:Gse(n,r):!1}function Kse(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function Yft(e,r,n,o){const a=new Map;for(const[i,s]of e)if((s.selected||s.id===o)&&(!s.parentId||!Gse(s,e))&&(s.draggable||r&&typeof s.draggable>"u")){const l=e.get(i);l&&a.set(i,{id:i,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return a}function JR({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[s,l]of r){const c=n.get(s)?.internals.userNode;c&&a.push({...c,position:l.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function Wft({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},s=vb(i,r);return{x:s.x-i.x,y:s.y-i.y}}function Xft({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},s=0,l=new Map,c=!1,u={x:0,y:0},d=null,h=!1,p=null,g=!1,y=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:A,nodeId:N,nodeClickDistance:$=0}){p=La(T);function R({x:I,y:Y}){const{nodeLookup:D,nodeExtent:V,snapGrid:L,snapToGrid:U,nodeOrigin:q,onNodeDrag:X,onSelectionDrag:F,onError:J,updateNodePositions:Q}=r();i={x:I,y:Y};let z=!1;const W=l.size>1,G=W&&V?UR(yb(l)):null,Z=W&&U?Wft({dragItems:l,snapGrid:L,x:I,y:Y}):null;for(const[oe,ee]of l){if(!D.has(oe))continue;let re={x:I-ee.distance.x,y:Y-ee.distance.y};U&&(re=Z?{x:Math.round(re.x+Z.x),y:Math.round(re.y+Z.y)}:vb(re,L));let he=null;if(W&&V&&!ee.extent&&G){const{positionAbsolute:de}=ee.internals,be=de.x-G.x+V[0][0],De=de.x+ee.measured.width-G.x2+V[1][0],Ge=de.y-G.y+V[0][1],Xe=de.y+ee.measured.height-G.y2+V[1][1];he=[[be,Ge],[De,Xe]]}const{position:Ce,positionAbsolute:ce}=_se({nodeId:oe,nextPosition:re,nodeLookup:D,nodeExtent:he||V,nodeOrigin:q,onError:J});z=z||ee.position.x!==Ce.x||ee.position.y!==Ce.y,ee.position=Ce,ee.internals.positionAbsolute=ce}if(y=y||z,!!z&&(Q(l,!0),x&&(o||X||!N&&F))){const[oe,ee]=JR({nodeId:N,dragItems:l,nodeLookup:D});o?.(x,l,oe,ee),X?.(x,oe,ee),N||F?.(x,ee)}}async function M(){if(!d)return;const{transform:I,panBy:Y,autoPanSpeed:D,autoPanOnNodeDrag:V}=r();if(!V){c=!1,cancelAnimationFrame(s);return}const[L,U]=Cse(u,d,D);(L!==0||U!==0)&&(i.x=(i.x??0)-L/I[2],i.y=(i.y??0)-U/I[2],await Y({x:L,y:U})&&R(i)),s=requestAnimationFrame(M)}function O(I){const{nodeLookup:Y,multiSelectionActive:D,nodesDraggable:V,transform:L,snapGrid:U,snapToGrid:q,selectNodesOnDrag:X,onNodeDragStart:F,onSelectionDragStart:J,unselectNodesAndEdges:Q}=r();h=!0,(!X||!A)&&!D&&N&&(Y.get(N)?.selected||Q()),A&&X&&N&&e?.(N);const z=kb(I.sourceEvent,{transform:L,snapGrid:U,snapToGrid:q,containerBounds:d});if(i=z,l=Yft(Y,V,z,N),l.size>0&&(n||F||!N&&J)){const[W,G]=JR({nodeId:N,dragItems:l,nodeLookup:Y});n?.(I.sourceEvent,l,W,G),F?.(I.sourceEvent,W,G),N||J?.(I.sourceEvent,G)}}const B=jie().clickDistance($).on("start",I=>{const{domNode:Y,nodeDragThreshold:D,transform:V,snapGrid:L,snapToGrid:U}=r();d=Y?.getBoundingClientRect()||null,g=!1,y=!1,x=I.sourceEvent,D===0&&O(I),i=kb(I.sourceEvent,{transform:V,snapGrid:L,snapToGrid:U,containerBounds:d}),u=Os(I.sourceEvent,d)}).on("drag",I=>{const{autoPanOnNodeDrag:Y,transform:D,snapGrid:V,snapToGrid:L,nodeDragThreshold:U,nodeLookup:q}=r(),X=kb(I.sourceEvent,{transform:D,snapGrid:V,snapToGrid:L,containerBounds:d});if(x=I.sourceEvent,(I.sourceEvent.type==="touchmove"&&I.sourceEvent.touches.length>1||N&&!q.has(N))&&(g=!0),!g){if(!c&&Y&&h&&(c=!0,M()),!h){const F=Os(I.sourceEvent,d),J=F.x-u.x,Q=F.y-u.y;Math.sqrt(J*J+Q*Q)>U&&O(I)}(i.x!==X.xSnapped||i.y!==X.ySnapped)&&l&&h&&(u=Os(I.sourceEvent,d),R(X))}}).on("end",I=>{if(!(!h||g)&&(c=!1,h=!1,cancelAnimationFrame(s),l.size>0)){const{nodeLookup:Y,updateNodePositions:D,onNodeDragStop:V,onSelectionDragStop:L}=r();if(y&&(D(l,!1),y=!1),a||V||!N&&L){const[U,q]=JR({nodeId:N,dragItems:l,nodeLookup:Y,dragging:!1});a?.(I.sourceEvent,l,U,q),V?.(I.sourceEvent,U,q),N||L?.(I.sourceEvent,q)}}}).filter(I=>{const Y=I.target;return!I.button&&(!C||!Kse(Y,`.${C}`,T))&&(!_||Kse(Y,_,T))});p.call(B)}function k(){p?.on(".drag",null)}return{update:w,destroy:k}}function Gft(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())bb(a,Jm(i))>0&&o.push(i);return o}const Kft=250;function Zft(e,r,n,o){let a=[],i=1/0;const s=Gft(e,n,r+Kft);for(const l of s){const c=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(const u of c){if(o.nodeId===u.nodeId&&o.type===u.type&&o.id===u.id)continue;const{x:d,y:h}=_b(l,u,u.position,!0),p=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(h-e.y,2));p>r||(p<i?(a=[{...u,x:d,y:h}],i=p):p===i&&a.push({...u,x:d,y:h}))}}if(!a.length)return null;if(a.length>1){const l=o.type==="source"?"target":"source";return a.find(c=>c.type===l)??a[0]}return a[0]}function Zse(e,r,n,o,a,i=!1){const s=o.get(e);if(!s)return null;const l=a==="strict"?s.internals.handleBounds?.[r]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],c=(n?l?.find(u=>u.id===n):l?.[0])??null;return c&&i?{...c,..._b(s,c,c.position,!0)}:c}function Qse(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function Qft(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const Jse=()=>!0;function Jft(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:s,domNode:l,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:h,panBy:p,cancelConnection:g,onConnectStart:y,onConnect:x,onConnectEnd:w,isValidConnection:k=Jse,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:A,autoPanSpeed:N,dragThreshold:$=1,handleDomNode:R}){const M=Pse(e.target);let O=0,B;const{x:I,y:Y}=Os(e),D=Qse(i,R),V=l?.getBoundingClientRect();let L=!1;if(!V||!D)return;const U=Zse(a,D,o,c,r);if(!U)return;let q=Os(e,V),X=!1,F=null,J=!1,Q=null;function z(){if(!d||!V)return;const[he,Ce]=Cse(q,V,N);p({x:he,y:Ce}),O=requestAnimationFrame(z)}const W={...U,nodeId:a,type:D,position:U.position},G=c.get(a);let Z={inProgress:!0,isValid:null,from:_b(G,W,ft.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:G,to:q,toHandle:null,toPosition:xse[W.position],toNode:null};function oe(){L=!0,_(Z),y?.(e,{nodeId:a,handleId:o,handleType:D})}$===0&&oe();function ee(he){if(!L){const{x:be,y:De}=Os(he),Ge=be-I,Xe=De-Y;if(!(Ge*Ge+Xe*Xe>$*$))return;oe()}if(!A()||!W){re(he);return}const Ce=T();q=Os(he,V),B=Zft(xb(q,Ce,!1,[1,1]),n,c,W),X||(z(),X=!0);const ce=ele(he,{handle:B,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:s?"target":"source",isValidConnection:k,doc:M,lib:u,flowId:h,nodeLookup:c});Q=ce.handleDomNode,F=ce.connection,J=Qft(!!B,ce.isValid);const de={...Z,isValid:J,to:ce.toHandle&&J?GE({x:ce.toHandle.x,y:ce.toHandle.y},Ce):q,toHandle:ce.toHandle,toPosition:J&&ce.toHandle?ce.toHandle.position:xse[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};J&&B&&Z.toHandle&&de.toHandle&&Z.toHandle.type===de.toHandle.type&&Z.toHandle.nodeId===de.toHandle.nodeId&&Z.toHandle.id===de.toHandle.id&&Z.to.x===de.to.x&&Z.to.y===de.to.y||(_(de),Z=de)}function re(he){if(!("touches"in he&&he.touches.length>0)){if(L){(B||Q)&&F&&J&&x?.(F);const{inProgress:Ce,...ce}=Z,de={...ce,toPosition:Z.toHandle?Z.toPosition:null};w?.(he,de),i&&C?.(he,de)}g(),cancelAnimationFrame(O),X=!1,J=!1,F=null,Q=null,M.removeEventListener("mousemove",ee),M.removeEventListener("mouseup",re),M.removeEventListener("touchmove",ee),M.removeEventListener("touchend",re)}}M.addEventListener("mousemove",ee),M.addEventListener("mouseup",re),M.addEventListener("touchmove",ee),M.addEventListener("touchend",re)}function ele(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:s,lib:l,flowId:c,isValidConnection:u=Jse,nodeLookup:d}){const h=i==="target",p=r?s.querySelector(`.${l}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y}=Os(e),x=s.elementFromPoint(g,y),w=x?.classList.contains(`${l}-flow__handle`)?x:p,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=Qse(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),A=w.classList.contains("connectable"),N=w.classList.contains("connectableend");if(!_||!C)return k;const $={source:h?_:o,sourceHandle:h?T:a,target:h?o:_,targetHandle:h?a:T};k.connection=$;const R=A&&N&&(n===Zm.Strict?h&&C==="source"||!h&&C==="target":_!==o||T!==a);k.isValid=R&&u($),k.toHandle=Zse(_,C,T,d,n,!0)}return k}const e$={onPointerDown:Jft,isValid:ele};function ept({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=La(e);function i({translateExtent:l,width:c,height:u,zoomStep:d=1,pannable:h=!0,zoomable:p=!0,inversePan:g=!1}){const y=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),A=_.sourceEvent.ctrlKey&&wb()?10:1,N=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*d,$=T[2]*Math.pow(2,N*A);r.scaleTo($)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const A=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],N=[A[0]-x[0],A[1]-x[1]];x=A;const $=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),R={x:T[0]-N[0]*$,y:T[1]-N[1]*$},M=[[0,0],[c,u]];r.setViewportConstrained({x:R.x,y:R.y,zoom:T[2]},M,l)},C=gse().on("start",w).on("zoom",h?k:null).on("zoom.wheel",p?y:null);a.call(C,{})}function s(){a.on("zoom",null)}return{update:i,destroy:s,pointer:Rs}}const tpt=(e,r)=>e.x!==r.x||e.y!==r.y||e.zoom!==r.k,ZE=e=>({x:e.x,y:e.y,zoom:e.k}),t$=({x:e,y:r,zoom:n})=>VE.translate(e,r).scale(n),rg=(e,r)=>e.target.closest(`.${r}`),tle=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),rpt=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,r$=(e,r=0,n=rpt,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},rle=e=>{const r=e.ctrlKey&&wb()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function npt({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(rg(d,r))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();const h=n.property("__zoom").k||1;if(d.ctrlKey&&s){const w=Rs(d),k=rle(d),C=h*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const p=d.deltaMode===1?20:1;let g=a===Ih.Vertical?0:d.deltaX*p,y=a===Ih.Horizontal?0:d.deltaY*p;!wb()&&d.shiftKey&&a!==Ih.Vertical&&(g=d.deltaY*p,y=0),o.translateBy(n,-(g/h)*i,-(y/h)*i,{internal:!0});const x=ZE(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l?.(d,x)),e.isPanScrolling&&(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150))}}function opt({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",s=!r&&i&&!o.ctrlKey,l=rg(o,e);if(o.ctrlKey&&i&&l&&o.preventDefault(),s||l)return null;o.preventDefault(),n.call(this,o,a)}}function apt({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=ZE(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function ipt({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&tle(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,ZE(i.transform))}}function spt({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&tle(r,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,o(!1),a&&tpt(e.prevViewport,s.transform))){const l=ZE(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(s.sourceEvent,l)},n?150:0)}}}function lpt({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:l,noPanClassName:c,lib:u,connectionInProgress:d}){return h=>{const p=e||r,g=n&&h.ctrlKey,y=h.type==="wheel";if(h.button===1&&h.type==="mousedown"&&(rg(h,`${u}-flow__node`)||rg(h,`${u}-flow__edge`)))return!0;if(!o&&!p&&!a&&!i&&!n||s||d&&!y||rg(h,l)&&y||rg(h,c)&&(!y||a&&y&&!e)||!n&&h.ctrlKey&&y)return!1;if(!n&&h.type==="touchstart"&&h.touches?.length>1)return h.preventDefault(),!1;if(!p&&!a&&!g&&y||!o&&(h.type==="mousedown"||h.type==="touchstart")||Array.isArray(o)&&!o.includes(h.button)&&h.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||y)&&x}}function cpt({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:s,onPanZoomStart:l,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),p=gse().clickDistance(!Ms(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=La(e).call(p);_({x:i.x,y:i.y,zoom:Qm(i.zoom,r,n)},[[0,0],[h.width,h.height]],a);const y=g.on("wheel.zoom"),x=g.on("dblclick.zoom");p.wheelDelta(rle);function w(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?lb:OE).transform(r$(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function k({noWheelClassName:I,noPanClassName:Y,onPaneContextMenu:D,userSelectionActive:V,panOnScroll:L,panOnDrag:U,panOnScrollMode:q,panOnScrollSpeed:X,preventScrolling:F,zoomOnPinch:J,zoomOnScroll:Q,zoomOnDoubleClick:z,zoomActivationKeyPressed:W,lib:G,onTransformChange:Z,connectionInProgress:oe}){V&&!d.isZoomingOrPanning&&C();const ee=L&&!W&&!V?npt({zoomPanValues:d,noWheelClassName:I,d3Selection:g,d3Zoom:p,panOnScrollMode:q,panOnScrollSpeed:X,zoomOnPinch:J,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:c}):opt({noWheelClassName:I,preventScrolling:F,d3ZoomHandler:y});if(g.on("wheel.zoom",ee,{passive:!1}),!V){const he=apt({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:l});p.on("start",he);const Ce=ipt({zoomPanValues:d,panOnDrag:U,onPaneContextMenu:!!D,onPanZoom:s,onTransformChange:Z});p.on("zoom",Ce);const ce=spt({zoomPanValues:d,panOnDrag:U,panOnScroll:L,onPaneContextMenu:D,onPanZoomEnd:c,onDraggingChange:u});p.on("end",ce)}const re=lpt({zoomActivationKeyPressed:W,panOnDrag:U,zoomOnScroll:Q,panOnScroll:L,zoomOnDoubleClick:z,zoomOnPinch:J,userSelectionActive:V,noPanClassName:Y,noWheelClassName:I,lib:G,connectionInProgress:oe});p.filter(re),z?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){p.on("zoom",null)}async function _(I,Y,D){const V=t$(I),L=p?.constrain()(V,Y,D);return L&&await w(L),new Promise(U=>U(L))}async function T(I,Y){const D=t$(I);return await w(D,Y),new Promise(V=>V(D))}function A(I){if(g){const Y=t$(I),D=g.property("__zoom");(D.k!==I.zoom||D.x!==I.x||D.y!==I.y)&&p?.transform(g,Y,null,{sync:!0})}}function N(){const I=g?pse(g.node()):{x:0,y:0,k:1};return{x:I.x,y:I.y,zoom:I.k}}function $(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?lb:OE).scaleTo(r$(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function R(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?lb:OE).scaleBy(r$(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function M(I){p?.scaleExtent(I)}function O(I){p?.translateExtent(I)}function B(I){const Y=!Ms(I)||I<0?0:I;p?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:N,scaleTo:$,scaleBy:R,setScaleExtent:M,setTranslateExtent:O,syncViewport:A,setClickDistance:B}}var ng;(function(e){e.Line="line",e.Handle="handle"})(ng||(ng={}));function upt({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const s=e-r,l=n-o,c=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&a&&(c[0]=c[0]*-1),l&&i&&(c[1]=c[1]*-1),c}function dpt(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function Ou(e,r){return Math.max(0,r-e)}function Du(e,r){return Math.max(0,e-r)}function QE(e,r,n){return Math.max(0,r-e,e-n)}function nle(e,r){return e?!r:r}function hpt(e,r,n,o,a,i,s,l){let{affectsX:c,affectsY:u}=r;const{isHorizontal:d,isVertical:h}=r,p=d&&h,{xSnapped:g,ySnapped:y}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:A,height:N,aspectRatio:$}=e;let R=Math.floor(d?g-e.pointerX:0),M=Math.floor(h?y-e.pointerY:0);const O=A+(c?-R:R),B=N+(u?-M:M),I=-i[0]*A,Y=-i[1]*N;let D=QE(O,x,w),V=QE(B,k,C);if(s){let q=0,X=0;c&&R<0?q=Ou(_+R+I,s[0][0]):!c&&R>0&&(q=Du(_+O+I,s[1][0])),u&&M<0?X=Ou(T+M+Y,s[0][1]):!u&&M>0&&(X=Du(T+B+Y,s[1][1])),D=Math.max(D,q),V=Math.max(V,X)}if(l){let q=0,X=0;c&&R>0?q=Du(_+R,l[0][0]):!c&&R<0&&(q=Ou(_+O,l[1][0])),u&&M>0?X=Du(T+M,l[0][1]):!u&&M<0&&(X=Ou(T+B,l[1][1])),D=Math.max(D,q),V=Math.max(V,X)}if(a){if(d){const q=QE(O/$,k,C)*$;if(D=Math.max(D,q),s){let X=0;!c&&!u||c&&!u&&p?X=Du(T+Y+O/$,s[1][1])*$:X=Ou(T+Y+(c?R:-R)/$,s[0][1])*$,D=Math.max(D,X)}if(l){let X=0;!c&&!u||c&&!u&&p?X=Ou(T+O/$,l[1][1])*$:X=Du(T+(c?R:-R)/$,l[0][1])*$,D=Math.max(D,X)}}if(h){const q=QE(B*$,x,w)/$;if(V=Math.max(V,q),s){let X=0;!c&&!u||u&&!c&&p?X=Du(_+B*$+I,s[1][0])/$:X=Ou(_+(u?M:-M)*$+I,s[0][0])/$,V=Math.max(V,X)}if(l){let X=0;!c&&!u||u&&!c&&p?X=Ou(_+B*$,l[1][0])/$:X=Du(_+(u?M:-M)*$,l[0][0])/$,V=Math.max(V,X)}}}M=M+(M<0?V:-V),R=R+(R<0?D:-D),a&&(p?O>B*$?M=(nle(c,u)?-R:R)/$:R=(nle(c,u)?-M:M)*$:d?(M=R/$,u=c):(R=M*$,c=u));const L=c?_+R:_,U=u?T+M:T;return{width:A+(c?-R:R),height:N+(u?-M:M),x:i[0]*R*(c?-1:1)+L,y:i[1]*M*(u?-1:1)+U}}const ole={width:0,height:0,x:0,y:0},fpt={...ole,pointerX:0,pointerY:0,aspectRatio:1};function ppt(e){return[[0,0],[e.measured.width,e.measured.height]]}function mpt(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,l=n[0]*i,c=n[1]*s;return[[o-l,a-c],[o+i-l,a+s-c]]}function gpt({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=La(e);function s({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:h,onResizeStart:p,onResize:g,onResizeEnd:y,shouldResize:x}){let w={...ole},k={...fpt};const C=dpt(c);let _,T=null,A=[],N,$,R,M=!1;const O=jie().on("start",B=>{const{nodeLookup:I,transform:Y,snapGrid:D,snapToGrid:V,nodeOrigin:L,paneDomNode:U}=n();if(_=I.get(r),!_)return;T=U?.getBoundingClientRect()??null;const{xSnapped:q,ySnapped:X}=kb(B.sourceEvent,{transform:Y,snapGrid:D,snapToGrid:V,containerBounds:T});w={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},k={...w,pointerX:q,pointerY:X,aspectRatio:w.width/w.height},N=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(N=I.get(_.parentId),$=N&&_.extent==="parent"?ppt(N):void 0),A=[],R=void 0;for(const[F,J]of I)if(J.parentId===r&&(A.push({id:F,position:{...J.position},extent:J.extent}),J.extent==="parent"||J.expandParent)){const Q=mpt(J,_,J.origin??L);R?R=[[Math.min(Q[0][0],R[0][0]),Math.min(Q[0][1],R[0][1])],[Math.max(Q[1][0],R[1][0]),Math.max(Q[1][1],R[1][1])]]:R=Q}p?.(B,{...w})}).on("drag",B=>{const{transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V}=n(),L=kb(B.sourceEvent,{transform:I,snapGrid:Y,snapToGrid:D,containerBounds:T}),U=[];if(!_)return;const{x:q,y:X,width:F,height:J}=w,Q={},z=_.origin??V,{width:W,height:G,x:Z,y:oe}=hpt(k,C,L,u,d,z,$,R),ee=W!==F,re=G!==J,he=Z!==q&&ee,Ce=oe!==X&&re;if(!he&&!Ce&&!ee&&!re)return;if((he||Ce||z[0]===1||z[1]===1)&&(Q.x=he?Z:w.x,Q.y=Ce?oe:w.y,w.x=Q.x,w.y=Q.y,A.length>0)){const be=Z-q,De=oe-X;for(const Ge of A)Ge.position={x:Ge.position.x-be+z[0]*(W-F),y:Ge.position.y-De+z[1]*(G-J)},U.push(Ge)}if((ee||re)&&(Q.width=ee&&(!h||h==="horizontal")?W:w.width,Q.height=re&&(!h||h==="vertical")?G:w.height,w.width=Q.width,w.height=Q.height),N&&_.expandParent){const be=z[0]*(Q.width??0);Q.x&&Q.x<be&&(w.x=be,k.x=k.x-(Q.x-be));const De=z[1]*(Q.height??0);Q.y&&Q.y<De&&(w.y=De,k.y=k.y-(Q.y-De))}const ce=upt({width:w.width,prevWidth:F,height:w.height,prevHeight:J,affectsX:C.affectsX,affectsY:C.affectsY}),de={...w,direction:ce};x?.(B,de)!==!1&&(M=!0,g?.(B,de),o(Q,U))}).on("end",B=>{M&&(y?.(B,{...w}),a?.({...w}),M=!1)});i.call(O)}function l(){i.on(".drag",null)}return{update:s,destroy:l}}const ypt={},ale=e=>{let r;const n=new Set,o=(l,c)=>{const u=typeof l=="function"?l(r):l;if(!Object.is(u,r)){const d=r;r=c??(typeof u!="object"||u===null)?u:Object.assign({},r,u),n.forEach(h=>h(r,d))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{(ypt?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=r=e(o,a,i);return i},bpt=e=>e?ale(e):ale,{useDebugValue:vpt}=Gr,{useSyncExternalStoreWithSelector:xpt}=vct,wpt=e=>e;function ile(e,r=wpt,n){const o=xpt(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return vpt(o),o}const sle=(e,r)=>{const n=bpt(e),o=(a,i=r)=>ile(n,a,i);return Object.assign(o,n),o},kpt=(e,r)=>e?sle(e,r):sle;function qr(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const JE=E.createContext(null),_pt=JE.Provider,lle=vl.error001();function tr(e,r){const n=E.useContext(JE);if(n===null)throw new Error(lle);return ile(n,e,r)}function zr(){const e=E.useContext(JE);if(e===null)throw new Error(lle);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const cle={display:"none"},Ept={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ule="react-flow__node-desc",dle="react-flow__edge-desc",Spt="react-flow__aria-live",Cpt=e=>e.ariaLiveMessage,Tpt=e=>e.ariaLabelConfig;function Apt({rfId:e}){const r=tr(Cpt);return b.jsx("div",{id:`${Spt}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Ept,children:r})}function Npt({rfId:e,disableKeyboardA11y:r}){const n=tr(Tpt);return b.jsxs(b.Fragment,{children:[b.jsx("div",{id:`${ule}-${e}`,style:cle,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),b.jsx("div",{id:`${dle}-${e}`,style:cle,children:n["edge.a11yDescription.default"]}),!r&&b.jsx(Apt,{rfId:e})]})}const e5=E.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const s=`${e}`.split("-");return b.jsx("div",{className:Sn(["react-flow__panel",n,...s]),style:o,ref:i,...a,children:r})});e5.displayName="Panel";function Rpt({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:b.jsx(e5,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:b.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const $pt=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},t5=e=>e.id;function Ppt(e,r){return qr(e.selectedNodes.map(t5),r.selectedNodes.map(t5))&&qr(e.selectedEdges.map(t5),r.selectedEdges.map(t5))}function Mpt({onSelectionChange:e}){const r=zr(),{selectedNodes:n,selectedEdges:o}=tr($pt,Ppt);return E.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const Opt=e=>!!e.onSelectionChangeHandlers;function Dpt({onSelectionChange:e}){const r=tr(Opt);return e||r?b.jsx(Mpt,{onSelectionChange:e}):null}const hle=[0,0],Lpt={x:0,y:0,zoom:1},Ipt=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],fle=[...Ipt,"rfId"],zpt=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),ple={translateExtent:pb,nodeOrigin:hle,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function jpt(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=tr(zpt,qr),d=zr();E.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{h.current=ple,l()}),[]);const h=E.useRef(ple);return E.useEffect(()=>{for(const p of fle){const g=e[p],y=h.current[p];g!==y&&(typeof e[p]>"u"||(p==="nodes"?r(g):p==="edges"?n(g):p==="minZoom"?o(g):p==="maxZoom"?a(g):p==="translateExtent"?i(g):p==="nodeExtent"?s(g):p==="paneClickDistance"?u(g):p==="ariaLabelConfig"?d.setState({ariaLabelConfig:Tft(g)}):p==="fitView"?d.setState({fitViewQueued:g}):p==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[p]:g})))}h.current=e},fle.map(p=>e[p])),null}function mle(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function Bpt(e){const[r,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=mle(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:mle()?.matches?"dark":"light"}const gle=typeof document<"u"?document:null;function Eb(e=null,r={target:gle,actInsideInputWithModifier:!0}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(new Set([])),[s,l]=E.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace("+",`
`).replace(`

`,`
+`).split(`
`)),u=c.reduce((d,h)=>d.concat(...h),[]);return[c,u]}return[[],[]]},[e]);return E.useEffect(()=>{const c=r?.target??gle,u=r?.actInsideInputWithModifier??!0;if(e!==null){const d=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!u)&&Mse(g))return!1;const y=ble(g.code,l);if(i.current.add(g[y]),yle(s,i.current,!1)){const x=g.composedPath?.()?.[0]||g.target,w=x?.nodeName==="BUTTON"||x?.nodeName==="A";r.preventDefault!==!1&&(a.current||!w)&&g.preventDefault(),o(!0)}},h=g=>{const y=ble(g.code,l);yle(s,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[y]),g.key==="Meta"&&i.current.clear(),a.current=!1},p=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",d),c?.addEventListener("keyup",h),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{c?.removeEventListener("keydown",d),c?.removeEventListener("keyup",h),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,o]),n}function yle(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function ble(e,r){return r.includes(e)?"code":"key"}const Fpt=()=>{const e=zr();return E.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:s,panZoom:l}=e.getState(),c=VR(r,o,a,i,s,n?.padding??.1);return l?(await l.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:s}=e.getState();if(!s)return r;const{x:l,y:c}=s.getBoundingClientRect(),u={x:r.x-l,y:r.y-c},d=n.snapGrid??a,h=n.snapToGrid??i;return xb(u,o,h,d)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),s=GE(r,n);return{x:s.x+a,y:s.y+i}}}),[])};function vle(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const s=o.get(i.id);s?s.push(i):o.set(i.id,[i])}for(const i of r){const s=o.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const l={...i};for(const c of s)Hpt(c,l);n.push(l)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function Hpt(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured??={},r.measured.width=e.dimensions.width,r.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function Upt(e,r){return vle(e,r)}function Vpt(e,r){return vle(e,r)}function jh(e,r){return{id:e,type:"select",selected:r}}function og(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const s=r.has(a);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),o.push(jh(i.id,s)))}return o}function xle({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const s=r.get(i.id),l=s?.internals?.userNode??s;l!==void 0&&l!==i&&n.push({id:i.id,item:i,type:"replace"}),l===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function wle(e){return{id:e.id,type:"remove"}}const kle=e=>yft(e),qpt=e=>kse(e);function _le(e){return E.forwardRef(e)}const Ypt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Ele(e){const[r,n]=E.useState(BigInt(0)),[o]=E.useState(()=>Wpt(()=>n(a=>a+BigInt(1))));return Ypt(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function Wpt(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const Sle=E.createContext(null);function Xpt({children:e}){const r=zr(),n=E.useCallback(l=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:h,nodeLookup:p,fitViewQueued:g}=r.getState();let y=c;for(const w of l)y=typeof w=="function"?w(y):w;const x=xle({items:y,lookup:p});d&&u(y),x.length>0?h?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:C}=r.getState();w&&C(k)})},[]),o=Ele(n),a=E.useCallback(l=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:h,edgeLookup:p}=r.getState();let g=c;for(const y of l)g=typeof y=="function"?y(g):y;d?u(g):h&&h(xle({items:g,lookup:p}))},[]),i=Ele(a),s=E.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return b.jsx(Sle.Provider,{value:s,children:e})}function Gpt(){const e=E.useContext(Sle);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const Kpt=e=>!!e.panZoom;function n$(){const e=Fpt(),r=zr(),n=Gpt(),o=tr(Kpt),a=E.useMemo(()=>{const i=h=>r.getState().nodeLookup.get(h),s=h=>{n.nodeQueue.push(h)},l=h=>{n.edgeQueue.push(h)},c=h=>{const{nodeLookup:p,nodeOrigin:g}=r.getState(),y=kle(h)?h:p.get(h.id),x=y.parentId?Rse(y.position,y.measured,y.parentId,p,g):y.position,w={...y,position:x,width:y.measured?.width??y.width,height:y.measured?.height??y.height};return Jm(w)},u=(h,p,g={replace:!1})=>{s(y=>y.map(x=>{if(x.id===h){const w=typeof p=="function"?p(x):p;return g.replace&&kle(w)?w:{...x,...w}}return x}))},d=(h,p,g={replace:!1})=>{l(y=>y.map(x=>{if(x.id===h){const w=typeof p=="function"?p(x):p;return g.replace&&qpt(w)?w:{...x,...w}}return x}))};return{getNodes:()=>r.getState().nodes.map(h=>({...h})),getNode:h=>i(h)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:h=[]}=r.getState();return h.map(p=>({...p}))},getEdge:h=>r.getState().edgeLookup.get(h),setNodes:s,setEdges:l,addNodes:h=>{const p=Array.isArray(h)?h:[h];n.nodeQueue.push(g=>[...g,...p])},addEdges:h=>{const p=Array.isArray(h)?h:[h];n.edgeQueue.push(g=>[...g,...p])},toObject:()=>{const{nodes:h=[],edges:p=[],transform:g}=r.getState(),[y,x,w]=g;return{nodes:h.map(k=>({...k})),edges:p.map(k=>({...k})),viewport:{x:y,y:x,zoom:w}}},deleteElements:async({nodes:h=[],edges:p=[]})=>{const{nodes:g,edges:y,onNodesDelete:x,onEdgesDelete:w,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:T}=r.getState(),{nodes:A,edges:N}=await kft({nodesToRemove:h,edgesToRemove:p,nodes:g,edges:y,onBeforeDelete:T}),$=N.length>0,R=A.length>0;if($){const M=N.map(wle);w?.(N),C(M)}if(R){const M=A.map(wle);x?.(A),k(M)}return(R||$)&&_?.({nodes:A,edges:N}),{deletedNodes:A,deletedEdges:N}},getIntersectingNodes:(h,p=!0,g)=>{const y=Ase(h),x=y?h:c(h),w=g!==void 0;return x?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!y&&(k.id===h.id||!C.internals.positionAbsolute))return!1;const _=Jm(w?k:C),T=bb(_,x);return p&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(h,p,g=!0)=>{const y=Ase(h)?h:c(h);if(!y)return!1;const x=bb(y,p);return g&&x>0||x>=p.width*p.height||x>=y.width*y.height},updateNode:u,updateNodeData:(h,p,g={replace:!1})=>{u(h,y=>{const x=typeof p=="function"?p(y):p;return g.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},g)},updateEdge:d,updateEdgeData:(h,p,g={replace:!1})=>{d(h,y=>{const x=typeof p=="function"?p(y):p;return g.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},g)},getNodesBounds:h=>{const{nodeLookup:p,nodeOrigin:g}=r.getState();return bft(h,{nodeLookup:p,nodeOrigin:g})},getHandleConnections:({type:h,id:p,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${h}${p?`-${p}`:""}`)?.values()??[]),getNodeConnections:({type:h,handleId:p,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${h?p?`-${h}-${p}`:`-${h}`:""}`)?.values()??[]),fitView:async h=>{const p=r.getState().fitViewResolver??Cft();return r.setState({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:p}),n.nodeQueue.push(g=>[...g]),p.promise}}},[]);return E.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const Cle=e=>e.selected,Zpt=typeof window<"u"?window:void 0;function Qpt({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=zr(),{deleteElements:o}=n$(),a=Eb(e,{actInsideInputWithModifier:!1}),i=Eb(r,{target:Zpt});E.useEffect(()=>{if(a){const{edges:s,nodes:l}=n.getState();o({nodes:l.filter(Cle),edges:s.filter(Cle)}),n.setState({nodesSelectionActive:!1})}},[a]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function Jpt(e){const r=zr();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=qR(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",vl.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const r5={position:"absolute",width:"100%",height:"100%",top:0,left:0},emt=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function tmt({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=Ih.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:h,zoomActivationKeyCode:p,preventScrolling:g=!0,children:y,noWheelClassName:x,noPanClassName:w,onViewportChange:k,isControlledViewport:C,paneClickDistance:_}){const T=zr(),A=E.useRef(null),{userSelectionActive:N,lib:$,connectionInProgress:R}=tr(emt,qr),M=Eb(p),O=E.useRef();Jpt(A);const B=E.useCallback(I=>{k?.({x:I[0],y:I[1],zoom:I[2]}),C||T.setState({transform:I})},[k,C]);return E.useEffect(()=>{if(A.current){O.current=cpt({domNode:A.current,minZoom:d,maxZoom:h,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:V=>T.setState({paneDragging:V}),onPanZoomStart:(V,L)=>{const{onViewportChangeStart:U,onMoveStart:q}=T.getState();q?.(V,L),U?.(L)},onPanZoom:(V,L)=>{const{onViewportChange:U,onMove:q}=T.getState();q?.(V,L),U?.(L)},onPanZoomEnd:(V,L)=>{const{onViewportChangeEnd:U,onMoveEnd:q}=T.getState();q?.(V,L),U?.(L)}});const{x:I,y:Y,zoom:D}=O.current.getViewport();return T.setState({panZoom:O.current,transform:[I,Y,D],domNode:A.current.closest(".react-flow")}),()=>{O.current?.destroy()}}},[]),E.useEffect(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:M,preventScrolling:g,noPanClassName:w,userSelectionActive:N,noWheelClassName:x,lib:$,onTransformChange:B,connectionInProgress:R})},[e,r,n,o,a,i,s,l,M,g,w,N,x,$,B,R]),b.jsx("div",{className:"react-flow__renderer",ref:A,style:r5,children:y})}const rmt=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function nmt(){const{userSelectionActive:e,userSelectionRect:r}=tr(rmt,qr);return e&&r?b.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const o$=(e,r)=>n=>{n.target===r.current&&e?.(n)},omt=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function amt({isSelecting:e,selectionKeyPressed:r,selectionMode:n=mb.Full,panOnDrag:o,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:h,onPaneMouseLeave:p,children:g}){const y=zr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=tr(omt,qr),_=w&&(e||x),T=E.useRef(null),A=E.useRef(),N=E.useRef(new Set),$=E.useRef(new Set),R=E.useRef(!1),M=E.useRef(!1),O=U=>{if(R.current||C){R.current=!1;return}l?.(U),y.getState().resetSelectedElements(),y.setState({nodesSelectionActive:!1})},B=U=>{if(Array.isArray(o)&&o?.includes(2)){U.preventDefault();return}c?.(U)},I=u?U=>u(U):void 0,Y=U=>{const{resetSelectedElements:q,domNode:X}=y.getState();if(A.current=X?.getBoundingClientRect(),!w||!e||U.button!==0||U.target!==T.current||!A.current)return;U.target?.setPointerCapture?.(U.pointerId),M.current=!0,R.current=!1;const{x:F,y:J}=Os(U.nativeEvent,A.current);q(),y.setState({userSelectionRect:{width:0,height:0,startX:F,startY:J,x:F,y:J}}),i?.(U)},D=U=>{const{userSelectionRect:q,transform:X,nodeLookup:F,edgeLookup:J,connectionLookup:Q,triggerNodeChanges:z,triggerEdgeChanges:W,defaultEdgeOptions:G}=y.getState();if(!A.current||!q)return;R.current=!0;const{x:Z,y:oe}=Os(U.nativeEvent,A.current),{startX:ee,startY:re}=q,he={startX:ee,startY:re,x:Z<ee?Z:ee,y:oe<re?oe:re,width:Math.abs(Z-ee),height:Math.abs(oe-re)},Ce=N.current,ce=$.current;N.current=new Set(HR(F,he,X,n===mb.Partial,!0).map(be=>be.id)),$.current=new Set;const de=G?.selectable??!0;for(const be of N.current){const De=Q.get(be);if(De)for(const{edgeId:Ge}of De.values()){const Xe=J.get(Ge);Xe&&(Xe.selectable??de)&&$.current.add(Ge)}}if(!$se(Ce,N.current)){const be=og(F,N.current,!0);z(be)}if(!$se(ce,$.current)){const be=og(J,$.current);W(be)}y.setState({userSelectionRect:he,userSelectionActive:!0,nodesSelectionActive:!1})},V=U=>{if(U.button!==0||!M.current)return;U.target?.releasePointerCapture?.(U.pointerId);const{userSelectionRect:q}=y.getState();!x&&q&&U.target===T.current&&O?.(U),y.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:N.current.size>0}),s?.(U),(r||a)&&(R.current=!1),M.current=!1},L=o===!0||Array.isArray(o)&&o.includes(0);return b.jsxs("div",{className:Sn(["react-flow__pane",{draggable:L,dragging:k,selection:e}]),onClick:_?void 0:o$(O,T),onContextMenu:o$(B,T),onWheel:o$(I,T),onPointerEnter:_?void 0:d,onPointerDown:_?Y:h,onPointerMove:_?D:h,onPointerUp:_?V:void 0,onPointerLeave:p,ref:T,style:r5,children:[g,b.jsx(nmt,{})]})}function a$({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:l,onError:c}=r.getState(),u=l.get(e);if(!u){c?.("012",vl.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function Tle({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:s}){const l=zr(),[c,u]=E.useState(!1),d=E.useRef();return E.useEffect(()=>{d.current=Xft({getStoreItems:()=>l.getState(),onNodeMouseDown:h=>{a$({id:h,store:l,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),E.useEffect(()=>{if(r)d.current?.destroy();else if(e.current)return d.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:s}),()=>{d.current?.destroy()}},[n,o,r,i,e,a]),c}const imt=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function Ale(){const e=zr();return E.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:s,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,h=imt(i),p=o?a[0]:5,g=o?a[1]:5,y=r.direction.x*p*r.factor,x=r.direction.y*g*r.factor;for(const[,w]of c){if(!h(w))continue;let k={x:w.internals.positionAbsolute.x+y,y:w.internals.positionAbsolute.y+x};o&&(k=vb(k,a));const{position:C,positionAbsolute:_}=_se({nodeId:w.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:u,onError:s});w.position=C,w.internals.positionAbsolute=_,d.set(w.id,w)}l(d)},[])}const i$=E.createContext(null),smt=i$.Provider;i$.Consumer;const Nle=()=>E.useContext(i$),lmt=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),cmt=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:s}=o,{fromHandle:l,toHandle:c,isValid:u}=s,d=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:l?.nodeId===e&&l?.id===r&&l?.type===n,connectingTo:d,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===Zm.Strict?l?.type!==n:e!==l?.nodeId||r!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!a,valid:d&&u}};function umt({type:e="source",position:r=ft.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:h,...p},g){const y=s||null,x=e==="target",w=zr(),k=Nle(),{connectOnClick:C,noPanClassName:_,rfId:T}=tr(lmt,qr),{connectingFrom:A,connectingTo:N,clickConnecting:$,isPossibleEndHandle:R,connectionInProcess:M,clickConnectionInProcess:O,valid:B}=tr(cmt(k,y,e),qr);k||w.getState().onError?.("010",vl.error010());const I=V=>{const{defaultEdgeOptions:L,onConnect:U,hasDefaultEdges:q}=w.getState(),X={...L,...V};if(q){const{edges:F,setEdges:J}=w.getState();J(Mft(X,F))}U?.(X),l?.(X)},Y=V=>{if(!k)return;const L=Ose(V.nativeEvent);if(a&&(L&&V.button===0||!L)){const U=w.getState();e$.onPointerDown(V.nativeEvent,{handleDomNode:V.currentTarget,autoPanOnConnect:U.autoPanOnConnect,connectionMode:U.connectionMode,connectionRadius:U.connectionRadius,domNode:U.domNode,nodeLookup:U.nodeLookup,lib:U.lib,isTarget:x,handleId:y,nodeId:k,flowId:U.rfId,panBy:U.panBy,cancelConnection:U.cancelConnection,onConnectStart:U.onConnectStart,onConnectEnd:U.onConnectEnd,updateConnection:U.updateConnection,onConnect:I,isValidConnection:n||U.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:U.autoPanSpeed,dragThreshold:U.connectionDragThreshold})}L?d?.(V):h?.(V)},D=V=>{const{onClickConnectStart:L,onClickConnectEnd:U,connectionClickStartHandle:q,connectionMode:X,isValidConnection:F,lib:J,rfId:Q,nodeLookup:z,connection:W}=w.getState();if(!k||!q&&!a)return;if(!q){L?.(V.nativeEvent,{nodeId:k,handleId:y,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:y}});return}const G=Pse(V.target),Z=n||F,{connection:oe,isValid:ee}=e$.isValid(V.nativeEvent,{handle:{nodeId:k,id:y,type:e},connectionMode:X,fromNodeId:q.nodeId,fromHandleId:q.id||null,fromType:q.type,isValidConnection:Z,flowId:Q,doc:G,lib:J,nodeLookup:z});ee&&oe&&I(oe);const re=structuredClone(W);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,U?.(V,re),w.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":y,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${y}-${e}`,className:Sn(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,u,{source:!x,target:x,connectable:o,connectablestart:a,connectableend:i,clickconnecting:$,connectingfrom:A,connectingto:N,valid:B,connectionindicator:o&&(!M||R)&&(M||O?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?D:void 0,ref:g,...p,children:c})}const n5=E.memo(_le(umt));function dmt({data:e,isConnectable:r,sourcePosition:n=ft.Bottom}){return b.jsxs(b.Fragment,{children:[e?.label,b.jsx(n5,{type:"source",position:n,isConnectable:r})]})}function hmt({data:e,isConnectable:r,targetPosition:n=ft.Top,sourcePosition:o=ft.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(n5,{type:"target",position:n,isConnectable:r}),e?.label,b.jsx(n5,{type:"source",position:o,isConnectable:r})]})}function fmt(){return null}function pmt({data:e,isConnectable:r,targetPosition:n=ft.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(n5,{type:"target",position:n,isConnectable:r}),e?.label]})}const o5={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Rle={input:dmt,default:hmt,output:pmt,group:fmt};function mmt(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const gmt=e=>{const{width:r,height:n,x:o,y:a}=yb(e.nodeLookup,{filter:i=>!!i.selected});return{width:Ms(r)?r:null,height:Ms(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function ymt({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=zr(),{width:a,height:i,transformString:s,userSelectionActive:l}=tr(gmt,qr),c=Ale(),u=E.useRef(null);if(E.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),Tle({nodeRef:u}),l||!a||!i)return null;const d=e?p=>{const g=o.getState().nodes.filter(y=>y.selected);e(p,g)}:void 0,h=p=>{Object.prototype.hasOwnProperty.call(o5,p.key)&&(p.preventDefault(),c({direction:o5[p.key],factor:p.shiftKey?4:1}))};return b.jsx("div",{className:Sn(["react-flow__nodesselection","react-flow__container",r]),style:{transform:s},children:b.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:a,height:i}})})}const $le=typeof window<"u"?window:void 0,bmt=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Ple({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:h,onSelectionStart:p,onSelectionEnd:g,multiSelectionKeyCode:y,panActivationKeyCode:x,zoomActivationKeyCode:w,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:A,panOnScrollMode:N,zoomOnDoubleClick:$,panOnDrag:R,defaultViewport:M,translateExtent:O,minZoom:B,maxZoom:I,preventScrolling:Y,onSelectionContextMenu:D,noWheelClassName:V,noPanClassName:L,disableKeyboardA11y:U,onViewportChange:q,isControlledViewport:X}){const{nodesSelectionActive:F,userSelectionActive:J}=tr(bmt),Q=Eb(u,{target:$le}),z=Eb(x,{target:$le}),W=z||R,G=z||T,Z=d&&W!==!0,oe=Q||J||Z;return Qpt({deleteKeyCode:c,multiSelectionKeyCode:y}),b.jsx(tmt,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:G,panOnScrollSpeed:A,panOnScrollMode:N,zoomOnDoubleClick:$,panOnDrag:!Q&&W,defaultViewport:M,translateExtent:O,minZoom:B,maxZoom:I,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:V,noPanClassName:L,onViewportChange:q,isControlledViewport:X,paneClickDistance:l,children:b.jsxs(amt,{onSelectionStart:p,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:W,isSelecting:!!oe,selectionMode:h,selectionKeyPressed:Q,selectionOnDrag:Z,children:[e,F&&b.jsx(ymt,{onSelectionContextMenu:D,noPanClassName:L,disableKeyboardA11y:U})]})})}Ple.displayName="FlowRenderer";const vmt=E.memo(Ple),xmt=e=>r=>e?HR(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function wmt(e){return tr(E.useCallback(xmt(e),[e]),qr)}const kmt=e=>e.updateNodeInternals;function _mt(){const e=tr(kmt),[r]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return E.useEffect(()=>()=>{r?.disconnect()},[r]),r}function Emt({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=zr(),i=E.useRef(null),s=E.useRef(null),l=E.useRef(e.sourcePosition),c=E.useRef(e.targetPosition),u=E.useRef(r),d=n&&!!e.internals.handleBounds;return E.useEffect(()=>{i.current&&!e.hidden&&(!d||s.current!==i.current)&&(s.current&&o?.unobserve(s.current),o?.observe(i.current),s.current=i.current)},[d,e.hidden]),E.useEffect(()=>()=>{s.current&&(o?.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(i.current){const h=u.current!==r,p=l.current!==e.sourcePosition,g=c.current!==e.targetPosition;(h||p||g)&&(u.current=r,l.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function Smt({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:s,nodesDraggable:l,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:h,noDragClassName:p,noPanClassName:g,disableKeyboardA11y:y,rfId:x,nodeTypes:w,nodeClickDistance:k,onError:C}){const{node:_,internals:T,isParent:A}=tr(ee=>{const re=ee.nodeLookup.get(e),he=ee.parentLookup.has(e);return{node:re,internals:re.internals,isParent:he}},qr);let N=_.type||"default",$=w?.[N]||Rle[N];$===void 0&&(C?.("003",vl.error003(N)),N="default",$=w?.default||Rle.default);const R=!!(_.draggable||l&&typeof _.draggable>"u"),M=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||u&&typeof _.connectable>"u"),B=!!(_.focusable||d&&typeof _.focusable>"u"),I=zr(),Y=Nse(_),D=Emt({node:_,nodeType:N,hasDimensions:Y,resizeObserver:h}),V=Tle({nodeRef:D,disabled:_.hidden||!R,noDragClassName:p,handleSelector:_.dragHandle,nodeId:e,isSelectable:M,nodeClickDistance:k}),L=Ale();if(_.hidden)return null;const U=bc(_),q=mmt(_),X=M||R||r||n||o||a,F=n?ee=>n(ee,{...T.userNode}):void 0,J=o?ee=>o(ee,{...T.userNode}):void 0,Q=a?ee=>a(ee,{...T.userNode}):void 0,z=i?ee=>i(ee,{...T.userNode}):void 0,W=s?ee=>s(ee,{...T.userNode}):void 0,G=ee=>{const{selectNodesOnDrag:re,nodeDragThreshold:he}=I.getState();M&&(!re||!R||he>0)&&a$({id:e,store:I,nodeRef:D}),r&&r(ee,{...T.userNode})},Z=ee=>{if(!(Mse(ee.nativeEvent)||y)){if(yse.includes(ee.key)&&M){const re=ee.key==="Escape";a$({id:e,store:I,unselect:re,nodeRef:D})}else if(R&&_.selected&&Object.prototype.hasOwnProperty.call(o5,ee.key)){ee.preventDefault();const{ariaLabelConfig:re}=I.getState();I.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:ee.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),L({direction:o5[ee.key],factor:ee.shiftKey?4:1})}}},oe=()=>{if(y||!D.current?.matches(":focus-visible"))return;const{transform:ee,width:re,height:he,autoPanOnNodeFocus:Ce,setCenter:ce}=I.getState();Ce&&(HR(new Map([[e,_]]),{x:0,y:0,width:re,height:he},ee,!0).length>0||ce(_.position.x+U.width/2,_.position.y+U.height/2,{zoom:ee[2]}))};return b.jsx("div",{className:Sn(["react-flow__node",`react-flow__node-${N}`,{[g]:R},_.className,{selected:_.selected,selectable:M,parent:A,draggable:R,dragging:V}]),ref:D,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:Y?"visible":"hidden",..._.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:F,onMouseMove:J,onMouseLeave:Q,onContextMenu:z,onClick:G,onDoubleClick:W,onKeyDown:B?Z:void 0,tabIndex:B?0:void 0,onFocus:B?oe:void 0,role:_.ariaRole??(B?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${ule}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:b.jsx(smt,{value:e,children:b.jsx($,{id:e,data:_.data,type:N,positionAbsoluteX:T.positionAbsolute.x,positionAbsoluteY:T.positionAbsolute.y,selected:_.selected??!1,selectable:M,draggable:R,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:V,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...U})})})}const Cmt=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Mle(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=tr(Cmt,qr),s=wmt(e.onlyRenderVisibleElements),l=_mt();return b.jsx("div",{className:"react-flow__nodes",style:r5,children:s.map(c=>b.jsx(Smt,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:l,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}Mle.displayName="NodeRenderer";const Tmt=E.memo(Mle);function Amt(e){return tr(E.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&Rft({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),qr)}const Nmt=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return b.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},Rmt=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return b.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},Ole={[qE.Arrow]:Nmt,[qE.ArrowClosed]:Rmt};function $mt(e){const r=zr();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(Ole,e)?Ole[e]:(r.getState().onError?.("009",vl.error009(e)),null),[e])}const Pmt=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=$mt(r);return c?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:l,refX:"0",refY:"0",children:b.jsx(c,{color:n,strokeWidth:s})}):null},Dle=({defaultColor:e,rfId:r})=>{const n=tr(i=>i.edges),o=tr(i=>i.defaultEdgeOptions),a=E.useMemo(()=>zft(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?b.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:b.jsx("defs",{children:a.map(i=>b.jsx(Pmt,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};Dle.displayName="MarkerDefinitions";var Mmt=E.memo(Dle);function Lle({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d}){const[h,p]=E.useState({x:1,y:0,width:0,height:0}),g=Sn(["react-flow__edge-textwrapper",u]),y=E.useRef(null);return E.useEffect(()=>{if(y.current){const x=y.current.getBBox();p({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?b.jsxs("g",{transform:`translate(${e-h.width/2} ${r-h.height/2})`,className:g,visibility:h.width?"visible":"hidden",...d,children:[a&&b.jsx("rect",{width:h.width+2*s[0],x:-s[0],y:-s[1],height:h.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:l,ry:l}),b.jsx("text",{className:"react-flow__edge-text",y:h.height/2,dy:"0.3em",ref:y,style:o,children:n}),c]}):null}Lle.displayName="EdgeText";const Omt=E.memo(Lle);function a5({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,interactionWidth:u=20,...d}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...d,d:e,fill:"none",className:Sn(["react-flow__edge-path",d.className])}),u?b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,o&&Ms(r)&&Ms(n)?b.jsx(Omt,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null]})}function Ile({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===ft.Left||e===ft.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function zle({sourceX:e,sourceY:r,sourcePosition:n=ft.Bottom,targetX:o,targetY:a,targetPosition:i=ft.Top}){const[s,l]=Ile({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=Ile({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,h,p,g]=Lse({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${r} C${s},${l} ${c},${u} ${o},${a}`,d,h,p,g]}function jle(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s,targetPosition:l,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:k})=>{const[C,_,T]=zle({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l}),A=e.isInternal?void 0:r;return b.jsx(a5,{id:A,path:C,labelX:_,labelY:T,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:k})})}const Dmt=jle({isInternal:!1}),Ble=jle({isInternal:!0});Dmt.displayName="SimpleBezierEdge",Ble.displayName="SimpleBezierEdgeInternal";function Fle(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,sourcePosition:g=ft.Bottom,targetPosition:y=ft.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=YR({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:y,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),N=e.isInternal?void 0:r;return b.jsx(a5,{id:N,path:_,labelX:T,labelY:A,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:x,markerStart:w,interactionWidth:C})})}const Hle=Fle({isInternal:!1}),Ule=Fle({isInternal:!0});Hle.displayName="SmoothStepEdge",Ule.displayName="SmoothStepEdgeInternal";function Vle(e){return E.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return b.jsx(Hle,{...n,id:o,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const Lmt=Vle({isInternal:!1}),qle=Vle({isInternal:!0});Lmt.displayName="StepEdge",qle.displayName="StepEdgeInternal";function Yle(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:g,markerStart:y,interactionWidth:x})=>{const[w,k,C]=Bse({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return b.jsx(a5,{id:_,path:w,labelX:k,labelY:C,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:g,markerStart:y,interactionWidth:x})})}const Imt=Yle({isInternal:!1}),Wle=Yle({isInternal:!0});Imt.displayName="StraightEdge",Wle.displayName="StraightEdgeInternal";function Xle(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s=ft.Bottom,targetPosition:l=ft.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=zse({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l,curvature:k?.curvature}),N=e.isInternal?void 0:r;return b.jsx(a5,{id:N,path:_,labelX:T,labelY:A,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:C})})}const zmt=Xle({isInternal:!1}),Gle=Xle({isInternal:!0});zmt.displayName="BezierEdge",Gle.displayName="BezierEdgeInternal";const Kle={default:Gle,straight:Wle,step:qle,smoothstep:Ule,simplebezier:Ble},Zle={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},jmt=(e,r,n)=>n===ft.Left?e-r:n===ft.Right?e+r:e,Bmt=(e,r,n)=>n===ft.Top?e-r:n===ft.Bottom?e+r:e,Qle="react-flow__edgeupdater";function Jle({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:s,type:l}){return b.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:s,className:Sn([Qle,`${Qle}-${l}`]),cx:jmt(r,o,e),cy:Bmt(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function Fmt({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:s,sourcePosition:l,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,setReconnecting:p,setUpdateHover:g}){const y=zr(),x=(T,A)=>{if(T.button!==0)return;const{autoPanOnConnect:N,domNode:$,isValidConnection:R,connectionMode:M,connectionRadius:O,lib:B,onConnectStart:I,onConnectEnd:Y,cancelConnection:D,nodeLookup:V,rfId:L,panBy:U,updateConnection:q}=y.getState(),X=A.type==="target",F=(z,W)=>{p(!1),h?.(z,n,A.type,W)},J=z=>u?.(n,z),Q=(z,W)=>{p(!0),d?.(T,n,A.type),I?.(z,W)};e$.onPointerDown(T.nativeEvent,{autoPanOnConnect:N,connectionMode:M,connectionRadius:O,domNode:$,handleId:A.id,nodeId:A.nodeId,nodeLookup:V,isTarget:X,edgeUpdaterType:A.type,lib:B,flowId:L,cancelConnection:D,panBy:U,isValidConnection:R,onConnect:J,onConnectStart:Q,onConnectEnd:Y,onReconnectEnd:F,updateConnection:q,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:T.currentTarget})},w=T=>x(T,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=T=>x(T,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(Jle,{position:l,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&b.jsx(Jle,{position:c,centerX:i,centerY:s,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function Hmt({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:h,onReconnectStart:p,onReconnectEnd:g,rfId:y,edgeTypes:x,noPanClassName:w,onError:k,disableKeyboardA11y:C}){let _=tr(ce=>ce.edgeLookup.get(e));const T=tr(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let A=_.type||"default",N=x?.[A]||Kle[A];N===void 0&&(k?.("011",vl.error011(A)),A="default",N=x?.default||Kle.default);const $=!!(_.focusable||r&&typeof _.focusable>"u"),R=typeof h<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),M=!!(_.selectable||o&&typeof _.selectable>"u"),O=E.useRef(null),[B,I]=E.useState(!1),[Y,D]=E.useState(!1),V=zr(),{zIndex:L,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q}=tr(E.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),be=ce.nodeLookup.get(_.target);if(!de||!be)return{zIndex:_.zIndex,...Zle};const De=Ift({id:e,sourceNode:de,targetNode:be,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:Nft({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:be,elevateOnSelect:ce.elevateEdgesOnSelect}),...De||Zle}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),qr),z=E.useMemo(()=>_.markerStart?`url('#${WR(_.markerStart,y)}')`:void 0,[_.markerStart,y]),W=E.useMemo(()=>_.markerEnd?`url('#${WR(_.markerEnd,y)}')`:void 0,[_.markerEnd,y]);if(_.hidden||U===null||q===null||X===null||F===null)return null;const G=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:be,multiSelectionActive:De}=V.getState();M&&(V.setState({nodesSelectionActive:!1}),_.selected&&De?(be({nodes:[],edges:[_]}),O.current?.blur()):de([e])),a&&a(ce,_)},Z=i?ce=>{i(ce,{..._})}:void 0,oe=s?ce=>{s(ce,{..._})}:void 0,ee=l?ce=>{l(ce,{..._})}:void 0,re=c?ce=>{c(ce,{..._})}:void 0,he=u?ce=>{u(ce,{..._})}:void 0,Ce=ce=>{if(!C&&yse.includes(ce.key)&&M){const{unselectNodesAndEdges:de,addSelectedEdges:be}=V.getState();ce.key==="Escape"?(O.current?.blur(),de({edges:[_]})):be([e])}};return b.jsx("svg",{style:{zIndex:L},children:b.jsxs("g",{className:Sn(["react-flow__edge",`react-flow__edge-${A}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!M&&!a,updating:B,selectable:M}]),onClick:G,onDoubleClick:Z,onContextMenu:oe,onMouseEnter:ee,onMouseMove:re,onMouseLeave:he,onKeyDown:$?Ce:void 0,tabIndex:$?0:void 0,role:_.ariaRole??($?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":$?`${dle}-${y}`:void 0,ref:O,..._.domAttributes,children:[!Y&&b.jsx(N,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:M,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:z,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),R&&b.jsx(Fmt,{edge:_,isReconnectable:R,reconnectRadius:d,onReconnect:h,onReconnectStart:p,onReconnectEnd:g,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q,setUpdateHover:I,setReconnecting:D})]})})}const Umt=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function ece({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:h,onEdgeDoubleClick:p,onReconnectStart:g,onReconnectEnd:y,disableKeyboardA11y:x}){const{edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,onError:_}=tr(Umt,qr),T=Amt(r);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(Mmt,{defaultColor:e,rfId:n}),T.map(A=>b.jsx(Hmt,{id:A,edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:h,onDoubleClick:p,onReconnectStart:g,onReconnectEnd:y,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:x},A))]})}ece.displayName="EdgeRenderer";const Vmt=E.memo(ece),qmt=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Ymt({children:e}){const r=tr(qmt);return b.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function Wmt(e){const r=n$(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const Xmt=e=>e.panZoom?.syncViewport;function Gmt(e){const r=tr(Xmt),n=zr();return E.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function Kmt(e){return e.connection.inProgress?{...e.connection,to:xb(e.connection.to,e.transform)}:{...e.connection}}function Zmt(e){return Kmt}function Qmt(e){const r=Zmt();return tr(r,qr)}const Jmt=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function egt({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:s,isValid:l,inProgress:c}=tr(Jmt,qr);return i&&a&&c?b.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:Sn(["react-flow__connection",wse(l)]),children:b.jsx(tce,{style:r,type:n,CustomComponent:o,isValid:l})})}):null}const tce=({style:e,type:r=Mu.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:s,fromHandle:l,fromPosition:c,to:u,toNode:d,toHandle:h,toPosition:p}=Qmt();if(!a)return;if(n)return b.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:p,connectionStatus:wse(o),toNode:d,toHandle:h});let g="";const y={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:p};switch(r){case Mu.Bezier:[g]=zse(y);break;case Mu.SimpleBezier:[g]=zle(y);break;case Mu.Step:[g]=YR({...y,borderRadius:0});break;case Mu.SmoothStep:[g]=YR(y);break;default:[g]=Bse(y)}return b.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};tce.displayName="ConnectionLine";const tgt={};function rce(e=tgt){E.useRef(e),zr(),E.useEffect(()=>{},[e])}function rgt(){zr(),E.useRef(!1),E.useEffect(()=>{},[])}function nce({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:h,onSelectionStart:p,onSelectionEnd:g,connectionLineType:y,connectionLineStyle:x,connectionLineComponent:w,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,multiSelectionKeyCode:A,panActivationKeyCode:N,zoomActivationKeyCode:$,deleteKeyCode:R,onlyRenderVisibleElements:M,elementsSelectable:O,defaultViewport:B,translateExtent:I,minZoom:Y,maxZoom:D,preventScrolling:V,defaultMarkerColor:L,zoomOnScroll:U,zoomOnPinch:q,panOnScroll:X,panOnScrollSpeed:F,panOnScrollMode:J,zoomOnDoubleClick:Q,panOnDrag:z,onPaneClick:W,onPaneMouseEnter:G,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneScroll:ee,onPaneContextMenu:re,paneClickDistance:he,nodeClickDistance:Ce,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:De,reconnectRadius:Ge,onReconnect:Xe,onReconnectStart:_t,onReconnectEnd:Qe,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:lt,nodeExtent:Et,rfId:Pn,viewport:_e,onViewportChange:we}){return rce(e),rce(r),rgt(),Wmt(n),Gmt(_e),b.jsx(vmt,{onPaneClick:W,onPaneMouseEnter:G,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneContextMenu:re,onPaneScroll:ee,paneClickDistance:he,deleteKeyCode:R,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:p,onSelectionEnd:g,multiSelectionKeyCode:A,panActivationKeyCode:N,zoomActivationKeyCode:$,elementsSelectable:O,zoomOnScroll:U,zoomOnPinch:q,zoomOnDoubleClick:Q,panOnScroll:X,panOnScrollSpeed:F,panOnScrollMode:J,panOnDrag:z,defaultViewport:B,translateExtent:I,minZoom:Y,maxZoom:D,onSelectionContextMenu:h,preventScrolling:V,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:lt,onViewportChange:we,isControlledViewport:!!_e,children:b.jsxs(Ymt,{children:[b.jsx(Vmt,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:s,onReconnect:Xe,onReconnectStart:_t,onReconnectEnd:Qe,onlyRenderVisibleElements:M,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:De,reconnectRadius:Ge,defaultMarkerColor:L,noPanClassName:We,disableKeyboardA11y:lt,rfId:Pn}),b.jsx(egt,{style:x,type:y,component:w,containerStyle:k}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(Tmt,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Ce,onlyRenderVisibleElements:M,noPanClassName:We,noDragClassName:St,disableKeyboardA11y:lt,nodeExtent:Et,rfId:Pn}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}nce.displayName="GraphView";const ngt=E.memo(nce),oce=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c=.5,maxZoom:u=2,nodeOrigin:d,nodeExtent:h}={})=>{const p=new Map,g=new Map,y=new Map,x=new Map,w=o??r??[],k=n??e??[],C=d??[0,0],_=h??pb;Xse(y,x,w);const T=KR(k,p,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let A=[0,0,1];if(s&&a&&i){const N=yb(p,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:$,y:R,zoom:M}=VR(N,a,i,c,u,l?.padding??.1);A=[$,R,M]}return{rfId:"1",width:a??0,height:i??0,transform:A,nodes:k,nodesInitialized:T,nodeLookup:p,parentLookup:g,edges:w,edgeLookup:x,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:u,translateExtent:pb,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Zm.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:l,fitViewResolver:null,connection:{...vse},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:_ft,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:bse}},ogt=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:h})=>kpt((p,g)=>{async function y(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:A,maxZoom:N}=g();w&&(await wft({nodes:x,width:_,height:T,panZoom:w,minZoom:A,maxZoom:N},k),C?.resolve(!0),p({fitViewResolver:null}))}return{...oce({nodes:e,edges:r,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:h,defaultNodes:n,defaultEdges:o}),setNodes:x=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:C,elevateNodesOnSelect:_,fitViewQueued:T}=g(),A=KR(x,w,k,{nodeOrigin:C,nodeExtent:h,elevateNodesOnSelect:_,checkEquality:!0});T&&A?(y(),p({nodes:x,nodesInitialized:A,fitViewQueued:!1,fitViewOptions:void 0})):p({nodes:x,nodesInitialized:A})},setEdges:x=>{const{connectionLookup:w,edgeLookup:k}=g();Xse(w,k,x),p({edges:x})},setDefaultNodesAndEdges:(x,w)=>{if(x){const{setNodes:k}=g();k(x),p({hasDefaultNodes:!0})}if(w){const{setEdges:k}=g();k(w),p({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:C,domNode:_,nodeOrigin:T,nodeExtent:A,debug:N,fitViewQueued:$}=g(),{changes:R,updatedInternals:M}=Vft(x,k,C,_,T,A);M&&(Bft(k,C,{nodeOrigin:T,nodeExtent:A}),$?(y(),p({fitViewQueued:!1,fitViewOptions:void 0})):p({}),R?.length>0&&(N&&console.log("React Flow: trigger node changes",R),w?.(R)))},updateNodePositions:(x,w=!1)=>{const k=[],C=[],{nodeLookup:_,triggerNodeChanges:T}=g();for(const[A,N]of x){const $=_.get(A),R=!!($?.expandParent&&$?.parentId&&N?.position),M={id:A,type:"position",position:R?{x:Math.max(0,N.position.x),y:Math.max(0,N.position.y)}:N.position,dragging:w};R&&$.parentId&&k.push({id:A,parentId:$.parentId,rect:{...N.internals.positionAbsolute,width:N.measured.width??0,height:N.measured.height??0}}),C.push(M)}if(k.length>0){const{parentLookup:A,nodeOrigin:N}=g(),$=QR(k,_,A,N);C.push(...$)}T(C)},triggerNodeChanges:x=>{const{onNodesChange:w,setNodes:k,nodes:C,hasDefaultNodes:_,debug:T}=g();if(x?.length){if(_){const A=Upt(x,C);k(A)}T&&console.log("React Flow: trigger node changes",x),w?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:w,setEdges:k,edges:C,hasDefaultEdges:_,debug:T}=g();if(x?.length){if(_){const A=Vpt(x,C);k(A)}T&&console.log("React Flow: trigger edge changes",x),w?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(N=>jh(N,!0));_(A);return}_(og(C,new Set([...x]),!0)),T(og(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(N=>jh(N,!0));T(A);return}T(og(k,new Set([...x]))),_(og(C,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:w}={})=>{const{edges:k,nodes:C,nodeLookup:_,triggerNodeChanges:T,triggerEdgeChanges:A}=g(),N=x||C,$=w||k,R=N.map(O=>{const B=_.get(O.id);return B&&(B.selected=!1),jh(O.id,!1)}),M=$.map(O=>jh(O.id,!1));T(R),A(M)},setMinZoom:x=>{const{panZoom:w,maxZoom:k}=g();w?.setScaleExtent([x,k]),p({minZoom:x})},setMaxZoom:x=>{const{panZoom:w,minZoom:k}=g();w?.setScaleExtent([k,x]),p({maxZoom:x})},setTranslateExtent:x=>{g().panZoom?.setTranslateExtent(x),p({translateExtent:x})},setPaneClickDistance:x=>{g().panZoom?.setClickDistance(x)},resetSelectedElements:()=>{const{edges:x,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:C,elementsSelectable:_}=g();if(!_)return;const T=w.reduce((N,$)=>$.selected?[...N,jh($.id,!1)]:N,[]),A=x.reduce((N,$)=>$.selected?[...N,jh($.id,!1)]:N,[]);k(T),C(A)},setNodeExtent:x=>{const{nodes:w,nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:T,nodeExtent:A}=g();x[0][0]===A[0][0]&&x[0][1]===A[0][1]&&x[1][0]===A[1][0]&&x[1][1]===A[1][1]||(KR(w,k,C,{nodeOrigin:_,nodeExtent:x,elevateNodesOnSelect:T,checkEquality:!1}),p({nodeExtent:x}))},panBy:x=>{const{transform:w,width:k,height:C,panZoom:_,translateExtent:T}=g();return qft({delta:x,panZoom:_,transform:w,translateExtent:T,width:k,height:C})},setCenter:async(x,w,k)=>{const{width:C,height:_,maxZoom:T,panZoom:A}=g();if(!A)return Promise.resolve(!1);const N=typeof k?.zoom<"u"?k.zoom:T;return await A.setViewport({x:C/2-x*N,y:_/2-w*N,zoom:N},{duration:k?.duration,ease:k?.ease,interpolate:k?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{p({connection:{...vse}})},updateConnection:x=>{p({connection:x})},reset:()=>p({...oce()})}},Object.is);function agt({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:s,initialMaxZoom:l,initialFitViewOptions:c,fitView:u,nodeOrigin:d,nodeExtent:h,children:p}){const[g]=E.useState(()=>ogt({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:u,minZoom:s,maxZoom:l,fitViewOptions:c,nodeOrigin:d,nodeExtent:h}));return b.jsx(_pt,{value:g,children:b.jsx(Xpt,{children:p})})}function igt({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:s,fitView:l,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:h,nodeExtent:p}){return E.useContext(JE)?b.jsx(b.Fragment,{children:e}):b.jsx(agt,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:s,fitView:l,initialFitViewOptions:c,initialMinZoom:u,initialMaxZoom:d,nodeOrigin:h,nodeExtent:p,children:e})}const sgt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function lgt({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:s,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:h,onMoveEnd:p,onConnect:g,onConnectStart:y,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:N,onNodeDragStart:$,onNodeDrag:R,onNodeDragStop:M,onNodesDelete:O,onEdgesDelete:B,onDelete:I,onSelectionChange:Y,onSelectionDragStart:D,onSelectionDrag:V,onSelectionDragStop:L,onSelectionContextMenu:U,onSelectionStart:q,onSelectionEnd:X,onBeforeDelete:F,connectionMode:J,connectionLineType:Q=Mu.Bezier,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:G,deleteKeyCode:Z="Backspace",selectionKeyCode:oe="Shift",selectionOnDrag:ee=!1,selectionMode:re=mb.Full,panActivationKeyCode:he="Space",multiSelectionKeyCode:Ce=wb()?"Meta":"Control",zoomActivationKeyCode:ce=wb()?"Meta":"Control",snapToGrid:de,snapGrid:be,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:Ge,nodesDraggable:Xe,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,nodeOrigin:Ke=hle,edgesFocusable:We,edgesReconnectable:lt,elementsSelectable:Et=!0,defaultViewport:Pn=Lpt,minZoom:_e=.5,maxZoom:we=2,translateExtent:rt=pb,preventScrolling:at=!0,nodeExtent:$t,defaultMarkerColor:Wr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Tr=!0,panOnScroll:vo=!1,panOnScrollSpeed:Mn=.5,panOnScrollMode:Fr=Ih.Free,zoomOnDoubleClick:no=!0,panOnDrag:ur=!0,onPaneClick:fa,onPaneMouseEnter:_l,onPaneMouseMove:Qh,onPaneMouseLeave:Cc,onPaneScroll:Ub,onPaneContextMenu:Sg,paneClickDistance:Hu=0,nodeClickDistance:Jh=0,children:ef,onReconnect:Cg,onReconnectStart:Vb,onReconnectEnd:Ti,onEdgeContextMenu:On,onEdgeDoubleClick:oo,onEdgeMouseEnter:El,onEdgeMouseMove:tf,onEdgeMouseLeave:qb,reconnectRadius:Yb=10,onNodesChange:Tg,onEdgesChange:Tc,noDragClassName:rf="nodrag",noWheelClassName:Sl="nowheel",noPanClassName:Ai="nopan",fitView:zs,fitViewOptions:Ni,connectOnClick:tn,attributionPosition:Ag,proOptions:Ng,defaultEdgeOptions:js,elevateNodesOnSelect:Cl,elevateEdgesOnSelect:Wb,disableKeyboardA11y:Uu=!1,autoPanOnConnect:Rg,autoPanOnNodeDrag:Xb,autoPanSpeed:Vu,connectionRadius:qu,isValidConnection:Fa,onError:nf,style:$g,id:Ri,nodeDragThreshold:of,connectionDragThreshold:af,viewport:Gb,onViewportChange:Pg,width:Io,height:Mg,colorMode:Kb="light",debug:Yu,onScroll:Wu,ariaLabelConfig:Xu,...Zb},zo){const Bs=Ri||"1",Og=Bpt(Kb),sf=E.useCallback($i=>{$i.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Wu?.($i)},[Wu]);return b.jsx("div",{"data-testid":"rf__wrapper",...Zb,onScroll:sf,style:{...$g,...sgt},ref:zo,className:Sn(["react-flow",a,Og]),id:Ri,role:"application",children:b.jsxs(igt,{nodes:e,edges:r,width:Io,height:Mg,fitView:zs,fitViewOptions:Ni,minZoom:_e,maxZoom:we,nodeOrigin:Ke,nodeExtent:$t,children:[b.jsx(ngt,{onInit:u,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:N,nodeTypes:i,edgeTypes:s,connectionLineType:Q,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:G,selectionKeyCode:oe,selectionOnDrag:ee,selectionMode:re,deleteKeyCode:Z,multiSelectionKeyCode:Ce,panActivationKeyCode:he,zoomActivationKeyCode:ce,onlyRenderVisibleElements:De,defaultViewport:Pn,translateExtent:rt,minZoom:_e,maxZoom:we,preventScrolling:at,zoomOnScroll:Pt,zoomOnPinch:Tr,zoomOnDoubleClick:no,panOnScroll:vo,panOnScrollSpeed:Mn,panOnScrollMode:Fr,panOnDrag:ur,onPaneClick:fa,onPaneMouseEnter:_l,onPaneMouseMove:Qh,onPaneMouseLeave:Cc,onPaneScroll:Ub,onPaneContextMenu:Sg,paneClickDistance:Hu,nodeClickDistance:Jh,onSelectionContextMenu:U,onSelectionStart:q,onSelectionEnd:X,onReconnect:Cg,onReconnectStart:Vb,onReconnectEnd:Ti,onEdgeContextMenu:On,onEdgeDoubleClick:oo,onEdgeMouseEnter:El,onEdgeMouseMove:tf,onEdgeMouseLeave:qb,reconnectRadius:Yb,defaultMarkerColor:Wr,noDragClassName:rf,noWheelClassName:Sl,noPanClassName:Ai,rfId:Bs,disableKeyboardA11y:Uu,nodeExtent:$t,viewport:Gb,onViewportChange:Pg}),b.jsx(jpt,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:y,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:Xe,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,edgesFocusable:We,edgesReconnectable:lt,elementsSelectable:Et,elevateNodesOnSelect:Cl,elevateEdgesOnSelect:Wb,minZoom:_e,maxZoom:we,nodeExtent:$t,onNodesChange:Tg,onEdgesChange:Tc,snapToGrid:de,snapGrid:be,connectionMode:J,translateExtent:rt,connectOnClick:tn,defaultEdgeOptions:js,fitView:zs,fitViewOptions:Ni,onNodesDelete:O,onEdgesDelete:B,onDelete:I,onNodeDragStart:$,onNodeDrag:R,onNodeDragStop:M,onSelectionDrag:V,onSelectionDragStart:D,onSelectionDragStop:L,onMove:d,onMoveStart:h,onMoveEnd:p,noPanClassName:Ai,nodeOrigin:Ke,rfId:Bs,autoPanOnConnect:Rg,autoPanOnNodeDrag:Xb,autoPanSpeed:Vu,onError:nf,connectionRadius:qu,isValidConnection:Fa,selectNodesOnDrag:Ge,nodeDragThreshold:of,connectionDragThreshold:af,onBeforeDelete:F,paneClickDistance:Hu,debug:Yu,ariaLabelConfig:Xu}),b.jsx(Dpt,{onSelectionChange:Y}),ef,b.jsx(Rpt,{proOptions:Ng,position:Ag}),b.jsx(Npt,{rfId:Bs,disableKeyboardA11y:Uu})]})})}_le(lgt);function cgt({dimensions:e,lineWidth:r,variant:n,className:o}){return b.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Sn(["react-flow__background-pattern",n,o])})}function ugt({radius:e,className:r}){return b.jsx("circle",{cx:e,cy:e,r:e,className:Sn(["react-flow__background-pattern","dots",r])})}var Lu;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Lu||(Lu={}));const dgt={[Lu.Dots]:1,[Lu.Lines]:1,[Lu.Cross]:6},hgt=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function ace({id:e,variant:r=Lu.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:s,bgColor:l,style:c,className:u,patternClassName:d}){const h=E.useRef(null),{transform:p,patternId:g}=tr(hgt,qr),y=o||dgt[r],x=r===Lu.Dots,w=r===Lu.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*p[2]||1,k[1]*p[2]||1],_=y*p[2],T=Array.isArray(i)?i:[i,i],A=w?[_,_]:C,N=[T[0]*p[2]||1+A[0]/2,T[1]*p[2]||1+A[1]/2],$=`${g}${e||""}`;return b.jsxs("svg",{className:Sn(["react-flow__background",u]),style:{...c,...r5,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:h,"data-testid":"rf__background",children:[b.jsx("pattern",{id:$,x:p[0]%C[0],y:p[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${N[0]},-${N[1]})`,children:x?b.jsx(ugt,{radius:_/2,className:d}):b.jsx(cgt,{dimensions:A,lineWidth:a,variant:r,className:d})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${$})`})]})}ace.displayName="Background",E.memo(ace);function fgt(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function pgt(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function mgt(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function ggt(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function ygt(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function i5({children:e,className:r,...n}){return b.jsx("button",{type:"button",className:Sn(["react-flow__controls-button",r]),...n,children:e})}const bgt=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function ice({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:s,onFitView:l,onInteractiveChange:c,className:u,children:d,position:h="bottom-left",orientation:p="vertical","aria-label":g}){const y=zr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=tr(bgt,qr),{zoomIn:_,zoomOut:T,fitView:A}=n$(),N=()=>{_(),i?.()},$=()=>{T(),s?.()},R=()=>{A(a),l?.()},M=()=>{y.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return b.jsxs(e5,{className:Sn(["react-flow__controls",p==="horizontal"?"horizontal":"vertical",u]),position:h,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&b.jsxs(b.Fragment,{children:[b.jsx(i5,{onClick:N,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:b.jsx(fgt,{})}),b.jsx(i5,{onClick:$,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:b.jsx(pgt,{})})]}),n&&b.jsx(i5,{className:"react-flow__controls-fitview",onClick:R,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:b.jsx(mgt,{})}),o&&b.jsx(i5,{className:"react-flow__controls-interactive",onClick:M,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?b.jsx(ygt,{}):b.jsx(ggt,{})}),d]})}ice.displayName="Controls",E.memo(ice);function vgt({id:e,x:r,y:n,width:o,height:a,style:i,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:h,selected:p,onClick:g}){const{background:y,backgroundColor:x}=i||{},w=s||y||x;return b.jsx("rect",{className:Sn(["react-flow__minimap-node",{selected:p},u]),x:r,y:n,rx:d,ry:d,width:o,height:a,style:{fill:w,stroke:l,strokeWidth:c},shapeRendering:h,onClick:g?k=>g(k,e):void 0})}const xgt=E.memo(vgt),wgt=e=>e.nodes.map(r=>r.id),s$=e=>e instanceof Function?e:()=>e;function kgt({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=xgt,onClick:s}){const l=tr(wgt,qr),c=s$(r),u=s$(e),d=s$(n),h=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:l.map(p=>b.jsx(Egt,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:s,shapeRendering:h},p))})}function _gt({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:l,onClick:c}){const{node:u,x:d,y:h,width:p,height:g}=tr(y=>{const{internals:x}=y.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=bc(w);return{node:w,x:k,y:C,width:_,height:T}},qr);return!u||u.hidden||!Nse(u)?null:b.jsx(l,{x:d,y:h,width:p,height:g,style:u.style,selected:!!u.selected,className:o(u),color:r(u),borderRadius:a,strokeColor:n(u),strokeWidth:i,shapeRendering:s,onClick:c,id:u.id})}const Egt=E.memo(_gt);var Sgt=E.memo(kgt);const Cgt=200,Tgt=150,Agt=e=>!e.hidden,Ngt=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?Tse(yb(e.nodeLookup,{filter:Agt}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},Rgt="react-flow__minimap-desc";function sce({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:h,position:p="bottom-right",onClick:g,onNodeClick:y,pannable:x=!1,zoomable:w=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:T=5}){const A=zr(),N=E.useRef(null),{boundingRect:$,viewBB:R,rfId:M,panZoom:O,translateExtent:B,flowWidth:I,flowHeight:Y,ariaLabelConfig:D}=tr(Ngt,qr),V=e?.width??Cgt,L=e?.height??Tgt,U=$.width/V,q=$.height/L,X=Math.max(U,q),F=X*V,J=X*L,Q=T*X,z=$.x-(F-$.width)/2-Q,W=$.y-(J-$.height)/2-Q,G=F+Q*2,Z=J+Q*2,oe=`${Rgt}-${M}`,ee=E.useRef(0),re=E.useRef();ee.current=X,E.useEffect(()=>{if(N.current&&O)return re.current=ept({domNode:N.current,panZoom:O,getTransform:()=>A.getState().transform,getViewScale:()=>ee.current}),()=>{re.current?.destroy()}},[O]),E.useEffect(()=>{re.current?.update({translateExtent:B,width:I,height:Y,inversePan:C,pannable:x,zoomStep:_,zoomable:w})},[x,w,C,_,B,I,Y]);const he=g?de=>{const[be,De]=re.current?.pointer(de)||[0,0];g(de,{x:be,y:De})}:void 0,Ce=y?E.useCallback((de,be)=>{const De=A.getState().nodeLookup.get(be).internals.userNode;y(de,De)},[]):void 0,ce=k??D["minimap.ariaLabel"];return b.jsx(e5,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof h=="number"?h*X:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:Sn(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:V,height:L,viewBox:`${z} ${W} ${G} ${Z}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":oe,ref:N,onClick:he,children:[ce&&b.jsx("title",{id:oe,children:ce}),b.jsx(Sgt,{onClick:Ce,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:s,nodeComponent:l}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${z-Q},${W-Q}h${G+Q*2}v${Z+Q*2}h${-G-Q*2}z
        M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}sce.displayName="MiniMap",E.memo(sce);const $gt=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,Pgt={[ng.Line]:"right",[ng.Handle]:"bottom-right"};function Mgt({nodeId:e,position:r,variant:n=ng.Handle,className:o,style:a=void 0,children:i,color:s,minWidth:l=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:h=!1,resizeDirection:p,autoScale:g=!0,shouldResize:y,onResizeStart:x,onResize:w,onResizeEnd:k}){const C=Nle(),_=typeof e=="string"?e:C,T=zr(),A=E.useRef(null),N=n===ng.Handle,$=tr(E.useCallback($gt(N&&g),[N,g]),qr),R=E.useRef(null),M=r??Pgt[n];E.useEffect(()=>{if(!(!A.current||!_))return R.current||(R.current=gpt({domNode:A.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:B,transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V,domNode:L}=T.getState();return{nodeLookup:B,transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V,paneDomNode:L}},onChange:(B,I)=>{const{triggerNodeChanges:Y,nodeLookup:D,parentLookup:V,nodeOrigin:L}=T.getState(),U=[],q={x:B.x,y:B.y},X=D.get(_);if(X&&X.expandParent&&X.parentId){const F=X.origin??L,J=B.width??X.measured.width??0,Q=B.height??X.measured.height??0,z={id:X.id,parentId:X.parentId,rect:{width:J,height:Q,...Rse({x:B.x??X.position.x,y:B.y??X.position.y},{width:J,height:Q},X.parentId,D,F)}},W=QR([z],D,V,L);U.push(...W),q.x=B.x?Math.max(F[0]*J,B.x):void 0,q.y=B.y?Math.max(F[1]*Q,B.y):void 0}if(q.x!==void 0&&q.y!==void 0){const F={id:_,type:"position",position:{...q}};U.push(F)}if(B.width!==void 0&&B.height!==void 0){const F={id:_,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:B.width,height:B.height}};U.push(F)}for(const F of I){const J={...F,type:"position"};U.push(J)}Y(U)},onEnd:({width:B,height:I})=>{const Y={id:_,type:"dimensions",resizing:!1,dimensions:{width:B,height:I}};T.getState().triggerNodeChanges([Y])}})),R.current.update({controlPosition:M,boundaries:{minWidth:l,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:h,resizeDirection:p,onResizeStart:x,onResize:w,onResizeEnd:k,shouldResize:y}),()=>{R.current?.destroy()}},[M,l,c,u,d,h,x,w,k,y]);const O=M.split("-");return b.jsx("div",{className:Sn(["react-flow__resize-control","nodrag",...O,n,o]),ref:A,style:{...a,scale:$,...s&&{[N?"backgroundColor":"borderColor"]:s}},children:i})}E.memo(Mgt);var Ogt=Object.getOwnPropertyNames,Dgt=Object.getOwnPropertySymbols,Lgt=Object.prototype.hasOwnProperty;function lce(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function s5(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),s=a.get(n);if(i&&s)return i===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,o);return a.delete(r),a.delete(n),l}}function cce(e){return Ogt(e).concat(Dgt(e))}var Igt=Object.hasOwn||(function(e,r){return Lgt.call(e,r)});function Bh(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var zgt="__v",jgt="__o",Bgt="_owner",uce=Object.getOwnPropertyDescriptor,dce=Object.keys;function Fgt(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function Hgt(e,r){return Bh(e.getTime(),r.getTime())}function Ugt(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function Vgt(e,r){return e===r}function hce(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),s,l,c=0;(s=i.next())&&!s.done;){for(var u=r.entries(),d=!1,h=0;(l=u.next())&&!l.done;){if(a[h]){h++;continue}var p=s.value,g=l.value;if(n.equals(p[0],g[0],c,h,e,r,n)&&n.equals(p[1],g[1],p[0],g[0],e,r,n)){d=a[h]=!0;break}h++}if(!d)return!1;c++}return!0}var qgt=Bh;function Ygt(e,r,n){var o=dce(e),a=o.length;if(dce(r).length!==a)return!1;for(;a-- >0;)if(!pce(e,r,n,o[a]))return!1;return!0}function Sb(e,r,n){var o=cce(e),a=o.length;if(cce(r).length!==a)return!1;for(var i,s,l;a-- >0;)if(i=o[a],!pce(e,r,n,i)||(s=uce(e,i),l=uce(r,i),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function Wgt(e,r){return Bh(e.valueOf(),r.valueOf())}function Xgt(e,r){return e.source===r.source&&e.flags===r.flags}function fce(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),s,l;(s=i.next())&&!s.done;){for(var c=r.values(),u=!1,d=0;(l=c.next())&&!l.done;){if(!a[d]&&n.equals(s.value,l.value,s.value,l.value,e,r,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function Ggt(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function Kgt(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function pce(e,r,n,o){return(o===Bgt||o===jgt||o===zgt)&&(e.$$typeof||r.$$typeof)?!0:Igt(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var Zgt="[object Arguments]",Qgt="[object Boolean]",Jgt="[object Date]",e0t="[object Error]",t0t="[object Map]",r0t="[object Number]",n0t="[object Object]",o0t="[object RegExp]",a0t="[object Set]",i0t="[object String]",s0t="[object URL]",l0t=Array.isArray,mce=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,gce=Object.assign,c0t=Object.prototype.toString.call.bind(Object.prototype.toString);function u0t(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,h=e.areTypedArraysEqual,p=e.areUrlsEqual;return function(g,y,x){if(g===y)return!0;if(g==null||y==null)return!1;var w=typeof g;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(g,y,x):w==="function"?a(g,y,x):!1;var k=g.constructor;if(k!==y.constructor)return!1;if(k===Object)return l(g,y,x);if(l0t(g))return r(g,y,x);if(mce!=null&&mce(g))return h(g,y,x);if(k===Date)return n(g,y,x);if(k===RegExp)return u(g,y,x);if(k===Map)return i(g,y,x);if(k===Set)return d(g,y,x);var C=c0t(g);return C===Jgt?n(g,y,x):C===o0t?u(g,y,x):C===t0t?i(g,y,x):C===a0t?d(g,y,x):C===n0t?typeof g.then!="function"&&typeof y.then!="function"&&l(g,y,x):C===s0t?p(g,y,x):C===e0t?o(g,y,x):C===Zgt?l(g,y,x):C===Qgt||C===r0t||C===i0t?c(g,y,x):!1}}function d0t(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?Sb:Fgt,areDatesEqual:Hgt,areErrorsEqual:Ugt,areFunctionsEqual:Vgt,areMapsEqual:o?lce(hce,Sb):hce,areNumbersEqual:qgt,areObjectsEqual:o?Sb:Ygt,arePrimitiveWrappersEqual:Wgt,areRegExpsEqual:Xgt,areSetsEqual:o?lce(fce,Sb):fce,areTypedArraysEqual:o?Sb:Ggt,areUrlsEqual:Kgt};if(n&&(a=gce({},a,n(a))),r){var i=s5(a.areArraysEqual),s=s5(a.areMapsEqual),l=s5(a.areObjectsEqual),c=s5(a.areSetsEqual);a=gce({},a,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return a}function h0t(e){return function(r,n,o,a,i,s,l){return e(r,n,l)}}function f0t(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(l,c){var u=o(),d=u.cache,h=d===void 0?r?new WeakMap:void 0:d,p=u.meta;return n(l,c,{cache:h,equals:a,meta:p,strict:i})};if(r)return function(l,c){return n(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var s={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return n(l,c,s)}}Iu(),Iu({strict:!0}),Iu({circular:!0}),Iu({circular:!0,strict:!0}),Iu({createInternalComparator:function(){return Bh}}),Iu({strict:!0,createInternalComparator:function(){return Bh}}),Iu({circular:!0,createInternalComparator:function(){return Bh}}),Iu({circular:!0,createInternalComparator:function(){return Bh},strict:!0});function Iu(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,s=i===void 0?!1:i,l=d0t(e),c=u0t(l),u=o?o(c):h0t(c);return f0t({circular:n,comparator:c,createState:a,equals:u,strict:s})}const{min:p0t,max:m0t}=Math,Fh=(e,r=0,n=1)=>p0t(m0t(r,e),n),l$=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=Fh(e[r],0,255)):r===3&&(e[r]=Fh(e[r],0,1));return e},yce={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])yce[`[object ${e}]`]=e.toLowerCase();function Vt(e){return yce[Object.prototype.toString.call(e)]||"object"}const Lt=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Vt(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),ag=e=>{if(e.length<2)return null;const r=e.length-1;return Vt(e[r])=="string"?e[r].toLowerCase():null},{PI:l5,min:bce,max:vce}=Math,Ei=e=>Math.round(e*100)/100,c$=e=>Math.round(e*100)/100,vc=l5*2,u$=l5/3,g0t=l5/180,y0t=180/l5;function xce(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Rt={format:{},autodetect:[]};let Be=class{constructor(...e){const r=this;if(Vt(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=ag(e),o=!1;if(!n){o=!0,Rt.sorted||(Rt.autodetect=Rt.autodetect.sort((a,i)=>i.p-a.p),Rt.sorted=!0);for(let a of Rt.autodetect)if(n=a.test(...e),n)break}if(Rt.format[n]){const a=Rt.format[n].apply(null,o?e:e.slice(0,-1));r._rgb=l$(a)}else throw new Error("unknown format: "+e);r._rgb.length===3&&r._rgb.push(1)}toString(){return Vt(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const b0t="3.1.2",Zt=(...e)=>new Be(...e);Zt.version=b0t;const ig={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},v0t=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,x0t=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,wce=e=>{if(e.match(v0t)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(x0t)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:c5}=Math,kce=(...e)=>{let[r,n,o,a]=Lt(e,"rgba"),i=ag(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=c5(r),n=c5(n),o=c5(o);let s="000000"+(r<<16|n<<8|o).toString(16);s=s.substr(s.length-6);let l="0"+c5(a*255).toString(16);switch(l=l.substr(l.length-2),i.toLowerCase()){case"rgba":return`#${s}${l}`;case"argb":return`#${l}${s}`;default:return`#${s}`}};Be.prototype.name=function(){const e=kce(this._rgb,"rgb");for(let r of Object.keys(ig))if(ig[r]===e)return r.toLowerCase();return e},Rt.format.named=e=>{if(e=e.toLowerCase(),ig[e])return wce(ig[e]);throw new Error("unknown color name: "+e)},Rt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Vt(e)==="string"&&ig[e.toLowerCase()])return"named"}}),Be.prototype.alpha=function(e,r=!1){return e!==void 0&&Vt(e)==="number"?r?(this._rgb[3]=e,this):new Be([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Be.prototype.clipped=function(){return this._rgb._clipped||!1};const xl={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},w0t=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function xc(e){const r=w0t.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);xl.labWhitePoint=e,xl.Xn=r[0],xl.Zn=r[1]}function Cb(){return xl.labWhitePoint}const d$=(...e)=>{e=Lt(e,"lab");const[r,n,o]=e,[a,i,s]=k0t(r,n,o),[l,c,u]=_ce(a,i,s);return[l,c,u,e.length>3?e[3]:1]},k0t=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:s,Yn:l,Zn:c}=xl,u=(e+16)/116,d=.002*r+u,h=u-.005*n,p=d*d*d,g=h*h*h,y=p>o?p:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*h-16)/a,k=y*s,C=x*l,_=w*c;return[k,C,_]},h$=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},_ce=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:s,Xn:l,Yn:c,Zn:u}=xl,d=l*o.m00+c*o.m10+u*o.m20,h=l*o.m01+c*o.m11+u*o.m21,p=l*o.m02+c*o.m12+u*o.m22,g=s.X*o.m00+s.Y*o.m10+s.Z*o.m20,y=s.X*o.m01+s.Y*o.m11+s.Z*o.m21,x=s.X*o.m02+s.Y*o.m12+s.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(y/h),C=(e*o.m02+r*o.m12+n*o.m22)*(x/p),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,A=w*a.m02+k*a.m12+C*a.m22,N=h$(_*i.m00+T*i.m10+A*i.m20),$=h$(_*i.m01+T*i.m11+A*i.m21),R=h$(_*i.m02+T*i.m12+A*i.m22);return[N*255,$*255,R*255]},f$=(...e)=>{const[r,n,o,...a]=Lt(e,"rgb"),[i,s,l]=Ece(r,n,o),[c,u,d]=_0t(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function _0t(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:s,kK:l}=xl,c=e/o,u=r/a,d=n/i,h=c>s?Math.pow(c,1/3):(l*c+16)/116,p=u>s?Math.pow(u,1/3):(l*u+16)/116,g=d>s?Math.pow(d,1/3):(l*d+16)/116;return[116*p-16,500*(h-p),200*(p-g)]}function p$(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Ece=(e,r,n)=>{e=p$(e/255),r=p$(r/255),n=p$(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:s,Yn:l,Zn:c,As:u,Bs:d,Cs:h}=xl;let p=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,y=e*o.m02+r*o.m12+n*o.m22;const x=s*a.m00+l*a.m10+c*a.m20,w=s*a.m01+l*a.m11+c*a.m21,k=s*a.m02+l*a.m12+c*a.m22;let C=p*a.m00+g*a.m10+y*a.m20,_=p*a.m01+g*a.m11+y*a.m21,T=p*a.m02+g*a.m12+y*a.m22;return C*=x/u,_*=w/d,T*=k/h,p=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,y=C*i.m02+_*i.m12+T*i.m22,[p,g,y]};Be.prototype.lab=function(){return f$(this._rgb)},Object.assign(Zt,{lab:(...e)=>new Be(...e,"lab"),getLabWhitePoint:Cb,setLabWhitePoint:xc}),Rt.format.lab=d$,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"lab"),Vt(e)==="array"&&e.length===3)return"lab"}}),Be.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=xl.Kn*e,new Be(n,"lab").alpha(r.alpha(),!0)},Be.prototype.brighten=function(e=1){return this.darken(-e)},Be.prototype.darker=Be.prototype.darken,Be.prototype.brighter=Be.prototype.brighten,Be.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:E0t}=Math,S0t=1e-7,C0t=20;Be.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Vt(e)==="number"){if(e===0)return new Be([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Be([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=C0t;const a=(s,l)=>{const c=s.interpolate(l,.5,r),u=c.luminance();return Math.abs(e-u)<S0t||!o--?c:u>e?a(s,c):a(c,l)},i=(n>e?a(new Be([0,0,0]),this):a(this,new Be([255,255,255]))).rgb();return new Be([...i,this._rgb[3]])}return T0t(...this._rgb.slice(0,3))};const T0t=(e,r,n)=>(e=m$(e),r=m$(r),n=m$(n),.2126*e+.7152*r+.0722*n),m$=e=>(e/=255,e<=.03928?e/12.92:E0t((e+.055)/1.055,2.4)),Lo={},sg=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Lo[a]&&!o.length&&(a=Object.keys(Lo)[0]),!Lo[a])throw new Error(`interpolation mode ${a} is not defined`);return Vt(e)!=="object"&&(e=new Be(e)),Vt(r)!=="object"&&(r=new Be(r)),Lo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};Be.prototype.mix=Be.prototype.interpolate=function(e,r=.5,...n){return sg(this,e,r,...n)},Be.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new Be([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:A0t,cos:N0t}=Math,Sce=(...e)=>{let[r,n,o]=Lt(e,"lch");return isNaN(o)&&(o=0),o=o*g0t,[r,N0t(o)*n,A0t(o)*n]},g$=(...e)=>{e=Lt(e,"lch");const[r,n,o]=e,[a,i,s]=Sce(r,n,o),[l,c,u]=d$(a,i,s);return[l,c,u,e.length>3?e[3]:1]},R0t=(...e)=>{const r=xce(Lt(e,"hcl"));return g$(...r)},{sqrt:$0t,atan2:P0t,round:M0t}=Math,Cce=(...e)=>{const[r,n,o]=Lt(e,"lab"),a=$0t(n*n+o*o);let i=(P0t(o,n)*y0t+360)%360;return M0t(a*1e4)===0&&(i=Number.NaN),[r,a,i]},y$=(...e)=>{const[r,n,o,...a]=Lt(e,"rgb"),[i,s,l]=f$(r,n,o),[c,u,d]=Cce(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};Be.prototype.lch=function(){return y$(this._rgb)},Be.prototype.hcl=function(){return xce(y$(this._rgb))},Object.assign(Zt,{lch:(...e)=>new Be(...e,"lch"),hcl:(...e)=>new Be(...e,"hcl")}),Rt.format.lch=g$,Rt.format.hcl=R0t,["lch","hcl"].forEach(e=>Rt.autodetect.push({p:2,test:(...r)=>{if(r=Lt(r,e),Vt(r)==="array"&&r.length===3)return e}})),Be.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=xl.Kn*e,n[1]<0&&(n[1]=0),new Be(n,"lch").alpha(r.alpha(),!0)},Be.prototype.desaturate=function(e=1){return this.saturate(-e)},Be.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const s=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(s>-1){if(Vt(r)=="string")switch(r.charAt(0)){case"+":i[s]+=+r;break;case"-":i[s]+=+r;break;case"*":i[s]*=+r.substr(1);break;case"/":i[s]/=+r.substr(1);break;default:i[s]=+r}else if(Vt(r)==="number")i[s]=r;else throw new Error("unsupported value for Color.set");const l=new Be(i,o);return n?(this._rgb=l._rgb,this):l}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},Be.prototype.tint=function(e=.5,...r){return sg(this,"white",e,...r)},Be.prototype.shade=function(e=.5,...r){return sg(this,"black",e,...r)};const O0t=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Lo.rgb=O0t;const{sqrt:b$,pow:lg}=Math,D0t=(e,r,n)=>{const[o,a,i]=e._rgb,[s,l,c]=r._rgb;return new Be(b$(lg(o,2)*(1-n)+lg(s,2)*n),b$(lg(a,2)*(1-n)+lg(l,2)*n),b$(lg(i,2)*(1-n)+lg(c,2)*n),"rgb")};Lo.lrgb=D0t;const L0t=(e,r,n)=>{const o=e.lab(),a=r.lab();return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Lo.lab=L0t;const cg=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let s,l,c,u,d,h;(o.substr(0,1)==="h"||o==="oklch")&&([s,c,d]=a,[l,u,h]=i);let p,g,y,x;return!isNaN(s)&&!isNaN(l)?(l>s&&l-s>180?x=l-(s+360):l<s&&s-l>180?x=l+360-s:x=l-s,g=s+n*x):isNaN(s)?isNaN(l)?g=Number.NaN:(g=l,(d==1||d==0)&&o!="hsv"&&(p=u)):(g=s,(h==1||h==0)&&o!="hsv"&&(p=c)),p===void 0&&(p=c+n*(u-c)),y=d+n*(h-d),o==="oklch"?new Be([y,p,g],o):new Be([g,p,y],o)},Tce=(e,r,n)=>cg(e,r,n,"lch");Lo.lch=Tce,Lo.hcl=Tce;const I0t=e=>{if(Vt(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},z0t=(...e)=>{const[r,n,o]=Lt(e,"rgb");return(r<<16)+(n<<8)+o};Be.prototype.num=function(){return z0t(this._rgb)},Object.assign(Zt,{num:(...e)=>new Be(...e,"num")}),Rt.format.num=I0t,Rt.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Vt(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const j0t=(e,r,n)=>{const o=e.num(),a=r.num();return new Be(o+n*(a-o),"num")};Lo.num=j0t;const{floor:B0t}=Math,F0t=(...e)=>{e=Lt(e,"hcg");let[r,n,o]=e,a,i,s;o=o*255;const l=n*255;if(n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=B0t(r),u=r-c,d=o*(1-n),h=d+l*(1-u),p=d+l*u,g=d+l;switch(c){case 0:[a,i,s]=[g,p,d];break;case 1:[a,i,s]=[h,g,d];break;case 2:[a,i,s]=[d,g,p];break;case 3:[a,i,s]=[d,h,g];break;case 4:[a,i,s]=[p,d,g];break;case 5:[a,i,s]=[g,d,h];break}}return[a,i,s,e.length>3?e[3]:1]},H0t=(...e)=>{const[r,n,o]=Lt(e,"rgb"),a=bce(r,n,o),i=vce(r,n,o),s=i-a,l=s*100/255,c=a/(255-s)*100;let u;return s===0?u=Number.NaN:(r===i&&(u=(n-o)/s),n===i&&(u=2+(o-r)/s),o===i&&(u=4+(r-n)/s),u*=60,u<0&&(u+=360)),[u,l,c]};Be.prototype.hcg=function(){return H0t(this._rgb)};const U0t=(...e)=>new Be(...e,"hcg");Zt.hcg=U0t,Rt.format.hcg=F0t,Rt.autodetect.push({p:1,test:(...e)=>{if(e=Lt(e,"hcg"),Vt(e)==="array"&&e.length===3)return"hcg"}});const V0t=(e,r,n)=>cg(e,r,n,"hcg");Lo.hcg=V0t;const{cos:ug}=Math,q0t=(...e)=>{e=Lt(e,"hsi");let[r,n,o]=e,a,i,s;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(s=(1-n)/3,a=(1+n*ug(vc*r)/ug(u$-vc*r))/3,i=1-(s+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*ug(vc*r)/ug(u$-vc*r))/3,s=1-(a+i)):(r-=2/3,i=(1-n)/3,s=(1+n*ug(vc*r)/ug(u$-vc*r))/3,a=1-(i+s)),a=Fh(o*a*3),i=Fh(o*i*3),s=Fh(o*s*3),[a*255,i*255,s*255,e.length>3?e[3]:1]},{min:Y0t,sqrt:W0t,acos:X0t}=Math,G0t=(...e)=>{let[r,n,o]=Lt(e,"rgb");r/=255,n/=255,o/=255;let a;const i=Y0t(r,n,o),s=(r+n+o)/3,l=s>0?1-i/s:0;return l===0?a=NaN:(a=(r-n+(r-o))/2,a/=W0t((r-n)*(r-n)+(r-o)*(n-o)),a=X0t(a),o>n&&(a=vc-a),a/=vc),[a*360,l,s]};Be.prototype.hsi=function(){return G0t(this._rgb)};const K0t=(...e)=>new Be(...e,"hsi");Zt.hsi=K0t,Rt.format.hsi=q0t,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"hsi"),Vt(e)==="array"&&e.length===3)return"hsi"}});const Z0t=(e,r,n)=>cg(e,r,n,"hsi");Lo.hsi=Z0t;const v$=(...e)=>{e=Lt(e,"hsl");const[r,n,o]=e;let a,i,s;if(n===0)a=i=s=o*255;else{const l=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,h=r/360;l[0]=h+1/3,l[1]=h,l[2]=h-1/3;for(let p=0;p<3;p++)l[p]<0&&(l[p]+=1),l[p]>1&&(l[p]-=1),6*l[p]<1?c[p]=d+(u-d)*6*l[p]:2*l[p]<1?c[p]=u:3*l[p]<2?c[p]=d+(u-d)*(2/3-l[p])*6:c[p]=d;[a,i,s]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,s,e[3]]:[a,i,s,1]},Ace=(...e)=>{e=Lt(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=bce(r,n,o),i=vce(r,n,o),s=(i+a)/2;let l,c;return i===a?(l=0,c=Number.NaN):l=s<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,l,s,e[3]]:[c,l,s]};Be.prototype.hsl=function(){return Ace(this._rgb)};const Q0t=(...e)=>new Be(...e,"hsl");Zt.hsl=Q0t,Rt.format.hsl=v$,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"hsl"),Vt(e)==="array"&&e.length===3)return"hsl"}});const J0t=(e,r,n)=>cg(e,r,n,"hsl");Lo.hsl=J0t;const{floor:e1t}=Math,t1t=(...e)=>{e=Lt(e,"hsv");let[r,n,o]=e,a,i,s;if(o*=255,n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const l=e1t(r),c=r-l,u=o*(1-n),d=o*(1-n*c),h=o*(1-n*(1-c));switch(l){case 0:[a,i,s]=[o,h,u];break;case 1:[a,i,s]=[d,o,u];break;case 2:[a,i,s]=[u,o,h];break;case 3:[a,i,s]=[u,d,o];break;case 4:[a,i,s]=[h,u,o];break;case 5:[a,i,s]=[o,u,d];break}}return[a,i,s,e.length>3?e[3]:1]},{min:r1t,max:n1t}=Math,o1t=(...e)=>{e=Lt(e,"rgb");let[r,n,o]=e;const a=r1t(r,n,o),i=n1t(r,n,o),s=i-a;let l,c,u;return u=i/255,i===0?(l=Number.NaN,c=0):(c=s/i,r===i&&(l=(n-o)/s),n===i&&(l=2+(o-r)/s),o===i&&(l=4+(r-n)/s),l*=60,l<0&&(l+=360)),[l,c,u]};Be.prototype.hsv=function(){return o1t(this._rgb)};const a1t=(...e)=>new Be(...e,"hsv");Zt.hsv=a1t,Rt.format.hsv=t1t,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"hsv"),Vt(e)==="array"&&e.length===3)return"hsv"}});const i1t=(e,r,n)=>cg(e,r,n,"hsv");Lo.hsv=i1t;function u5(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(s=>[s]));let o=r[0].length,a=r[0].map((s,l)=>r.map(c=>c[l])),i=e.map(s=>a.map(l=>Array.isArray(s)?s.reduce((c,u,d)=>c+u*(l[d]||0),0):l.reduce((c,u)=>c+u*s,0)));return n===1&&(i=i[0]),o===1?i.map(s=>s[0]):i}const x$=(...e)=>{e=Lt(e,"lab");const[r,n,o,...a]=e,[i,s,l]=s1t([r,n,o]),[c,u,d]=_ce(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function s1t(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=u5(n,e);return u5(r,o.map(a=>a**3))}const w$=(...e)=>{const[r,n,o,...a]=Lt(e,"rgb"),i=Ece(r,n,o);return[...l1t(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function l1t(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=u5(r,e);return u5(n,o.map(a=>Math.cbrt(a)))}Be.prototype.oklab=function(){return w$(this._rgb)},Object.assign(Zt,{oklab:(...e)=>new Be(...e,"oklab")}),Rt.format.oklab=x$,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"oklab"),Vt(e)==="array"&&e.length===3)return"oklab"}});const c1t=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Lo.oklab=c1t;const u1t=(e,r,n)=>cg(e,r,n,"oklch");Lo.oklch=u1t;const{pow:k$,sqrt:_$,PI:E$,cos:Nce,sin:Rce,atan2:d1t}=Math,h1t=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(h,p){return h+p});if(n.forEach((h,p)=>{n[p]*=a}),e=e.map(h=>new Be(h)),r==="lrgb")return f1t(e,n);const i=e.shift(),s=i.get(r),l=[];let c=0,u=0;for(let h=0;h<s.length;h++)if(s[h]=(s[h]||0)*n[0],l.push(isNaN(s[h])?0:n[0]),r.charAt(h)==="h"&&!isNaN(s[h])){const p=s[h]/180*E$;c+=Nce(p)*n[0],u+=Rce(p)*n[0]}let d=i.alpha()*n[0];e.forEach((h,p)=>{const g=h.get(r);d+=h.alpha()*n[p+1];for(let y=0;y<s.length;y++)if(!isNaN(g[y]))if(l[y]+=n[p+1],r.charAt(y)==="h"){const x=g[y]/180*E$;c+=Nce(x)*n[p+1],u+=Rce(x)*n[p+1]}else s[y]+=g[y]*n[p+1]});for(let h=0;h<s.length;h++)if(r.charAt(h)==="h"){let p=d1t(u/l[h],c/l[h])/E$*180;for(;p<0;)p+=360;for(;p>=360;)p-=360;s[h]=p}else s[h]=s[h]/l[h];return d/=o,new Be(s,r).alpha(d>.99999?1:d,!0)},f1t=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a<e.length;a++){const i=e[a],s=r[a]/n,l=i._rgb;o[0]+=k$(l[0],2)*s,o[1]+=k$(l[1],2)*s,o[2]+=k$(l[2],2)*s,o[3]+=l[3]*s}return o[0]=_$(o[0]),o[1]=_$(o[1]),o[2]=_$(o[2]),o[3]>.9999999&&(o[3]=1),new Be(l$(o))},{pow:p1t}=Math;function d5(e){let r="rgb",n=Zt("#ccc"),o=0,a=[0,1],i=[],s=[0,0],l=!1,c=[],u=!1,d=0,h=1,p=!1,g={},y=!0,x=1;const w=function($){if($=$||["#fff","#000"],$&&Vt($)==="string"&&Zt.brewer&&Zt.brewer[$.toLowerCase()]&&($=Zt.brewer[$.toLowerCase()]),Vt($)==="array"){$.length===1&&($=[$[0],$[0]]),$=$.slice(0);for(let R=0;R<$.length;R++)$[R]=Zt($[R]);i.length=0;for(let R=0;R<$.length;R++)i.push(R/($.length-1))}return A(),c=$},k=function($){if(l!=null){const R=l.length-1;let M=0;for(;M<R&&$>=l[M];)M++;return M-1}return 0};let C=$=>$,_=$=>$;const T=function($,R){let M,O;if(R==null&&(R=!1),isNaN($)||$===null)return n;R?O=$:l&&l.length>2?O=k($)/(l.length-2):h!==d?O=($-d)/(h-d):O=1,O=_(O),R||(O=C(O)),x!==1&&(O=p1t(O,x)),O=s[0]+O*(1-s[0]-s[1]),O=Fh(O,0,1);const B=Math.floor(O*1e4);if(y&&g[B])M=g[B];else{if(Vt(c)==="array")for(let I=0;I<i.length;I++){const Y=i[I];if(O<=Y){M=c[I];break}if(O>=Y&&I===i.length-1){M=c[I];break}if(O>Y&&O<i[I+1]){O=(O-Y)/(i[I+1]-Y),M=Zt.interpolate(c[I],c[I+1],O,r);break}}else Vt(c)==="function"&&(M=c(O));y&&(g[B]=M)}return M};var A=()=>g={};w(e);const N=function($){const R=Zt(T($));return u&&R[u]?R[u]():R};return N.classes=function($){if($!=null){if(Vt($)==="array")l=$,a=[$[0],$[$.length-1]];else{const R=Zt.analyze(a);$===0?l=[R.min,R.max]:l=Zt.limits(R,"e",$)}return N}return l},N.domain=function($){if(!arguments.length)return a;d=$[0],h=$[$.length-1],i=[];const R=c.length;if($.length===R&&d!==h)for(let M of Array.from($))i.push((M-d)/(h-d));else{for(let M=0;M<R;M++)i.push(M/(R-1));if($.length>2){const M=$.map((B,I)=>I/($.length-1)),O=$.map(B=>(B-d)/(h-d));O.every((B,I)=>M[I]===B)||(_=B=>{if(B<=0||B>=1)return B;let I=0;for(;B>=O[I+1];)I++;const Y=(B-O[I])/(O[I+1]-O[I]);return M[I]+Y*(M[I+1]-M[I])})}}return a=[d,h],N},N.mode=function($){return arguments.length?(r=$,A(),N):r},N.range=function($,R){return w($),N},N.out=function($){return u=$,N},N.spread=function($){return arguments.length?(o=$,N):o},N.correctLightness=function($){return $==null&&($=!0),p=$,A(),p?C=function(R){const M=T(0,!0).lab()[0],O=T(1,!0).lab()[0],B=M>O;let I=T(R,!0).lab()[0];const Y=M+(O-M)*R;let D=I-Y,V=0,L=1,U=20;for(;Math.abs(D)>.01&&U-- >0;)(function(){return B&&(D*=-1),D<0?(V=R,R+=(L-R)*.5):(L=R,R+=(V-R)*.5),I=T(R,!0).lab()[0],D=I-Y})();return R}:C=R=>R,N},N.padding=function($){return $!=null?(Vt($)==="number"&&($=[$,$]),s=$,N):s},N.colors=function($,R){arguments.length<2&&(R="hex");let M=[];if(arguments.length===0)M=c.slice(0);else if($===1)M=[N(.5)];else if($>1){const O=a[0],B=a[1]-O;M=m1t(0,$).map(I=>N(O+I/($-1)*B))}else{e=[];let O=[];if(l&&l.length>2)for(let B=1,I=l.length,Y=1<=I;Y?B<I:B>I;Y?B++:B--)O.push((l[B-1]+l[B])*.5);else O=a;M=O.map(B=>N(B))}return Zt[R]&&(M=M.map(O=>O[R]())),M},N.cache=function($){return $!=null?(y=$,N):y},N.gamma=function($){return $!=null?(x=$,N):x},N.nodata=function($){return $!=null?(n=Zt($),N):n},N}function m1t(e,r,n){let o=[],a=e<r,i=r;for(let s=e;a?s<i:s>i;a?s++:s--)o.push(s);return o}const g1t=function(e){let r=[1,1];for(let n=1;n<e;n++){let o=[1];for(let a=1;a<=r.length;a++)o[a]=(r[a]||0)+r[a-1];r=o}return r},y1t=function(e){let r,n,o,a;if(e=e.map(i=>new Be(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>n[l]+i*(o[l]-n[l]));return new Be(s,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>(1-i)*(1-i)*n[l]+2*(1-i)*i*o[l]+i*i*a[l]);return new Be(s,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(s=>s.lab()),r=function(s){const l=[0,1,2].map(c=>(1-s)*(1-s)*(1-s)*n[c]+3*(1-s)*(1-s)*s*o[c]+3*(1-s)*s*s*a[c]+s*s*s*i[c]);return new Be(l,"lab")}}else if(e.length>=5){let i,s,l;i=e.map(c=>c.lab()),l=e.length-1,s=g1t(l),r=function(c){const u=1-c,d=[0,1,2].map(h=>i.reduce((p,g,y)=>p+s[y]*u**(l-y)*c**y*g[h],0));return new Be(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},b1t=e=>{const r=y1t(e);return r.scale=()=>d5(r),r},{round:$ce}=Math;Be.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map($ce)},Be.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:$ce(r):r)},Object.assign(Zt,{rgb:(...e)=>new Be(...e,"rgb")}),Rt.format.rgb=(...e)=>{const r=Lt(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Rt.autodetect.push({p:3,test:(...e)=>{if(e=Lt(e,"rgba"),Vt(e)==="array"&&(e.length===3||e.length===4&&Vt(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Ds=(e,r,n)=>{if(!Ds[n])throw new Error("unknown blend mode "+n);return Ds[n](e,r)},zu=e=>(r,n)=>{const o=Zt(n).rgb(),a=Zt(r).rgb();return Zt.rgb(e(o,a))},ju=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},v1t=e=>e,x1t=(e,r)=>e*r/255,w1t=(e,r)=>e>r?r:e,k1t=(e,r)=>e>r?e:r,_1t=(e,r)=>255*(1-(1-e/255)*(1-r/255)),E1t=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),S1t=(e,r)=>255*(1-(1-r/255)/(e/255)),C1t=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Ds.normal=zu(ju(v1t)),Ds.multiply=zu(ju(x1t)),Ds.screen=zu(ju(_1t)),Ds.overlay=zu(ju(E1t)),Ds.darken=zu(ju(w1t)),Ds.lighten=zu(ju(k1t)),Ds.dodge=zu(ju(C1t)),Ds.burn=zu(ju(S1t));const{pow:T1t,sin:A1t,cos:N1t}=Math;function R1t(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,s;Vt(a)==="array"?s=a[1]-a[0]:(s=0,a=[a,a]);const l=function(c){const u=vc*((e+120)/360+r*c),d=T1t(a[0]+s*c,o),h=(i!==0?n[0]+c*i:n)*d*(1-d)/2,p=N1t(u),g=A1t(u),y=d+h*(-.14861*p+1.78277*g),x=d+h*(-.29227*p-.90649*g),w=d+h*(1.97294*p);return Zt(l$([y*255,x*255,w*255,1]))};return l.start=function(c){return c==null?e:(e=c,l)},l.rotations=function(c){return c==null?r:(r=c,l)},l.gamma=function(c){return c==null?o:(o=c,l)},l.hue=function(c){return c==null?n:(n=c,Vt(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,l)},l.lightness=function(c){return c==null?a:(Vt(c)==="array"?(a=c,s=c[1]-c[0]):(a=[c,c],s=0),l)},l.scale=()=>Zt.scale(l),l.hue(n),l}const $1t="0123456789abcdef",{floor:P1t,random:M1t}=Math,O1t=()=>{let e="#";for(let r=0;r<6;r++)e+=$1t.charAt(P1t(M1t()*16));return new Be(e,"hex")},{log:Pce,pow:D1t,floor:L1t,abs:I1t}=Math;function Mce(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Vt(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Vt(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,o<n.min&&(n.min=o),o>n.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>Oce(n,o,a),n}function Oce(e,r="equal",n=7){Vt(e)=="array"&&(e=Mce(e));const{min:o,max:a}=e,i=e.values.sort((l,c)=>l-c);if(n===1)return[o,a];const s=[];if(r.substr(0,1)==="c"&&(s.push(o),s.push(a)),r.substr(0,1)==="e"){s.push(o);for(let l=1;l<n;l++)s.push(o+l/n*(a-o));s.push(a)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const l=Math.LOG10E*Pce(o),c=Math.LOG10E*Pce(a);s.push(o);for(let u=1;u<n;u++)s.push(D1t(10,l+u/n*(c-l)));s.push(a)}else if(r.substr(0,1)==="q"){s.push(o);for(let l=1;l<n;l++){const c=(i.length-1)*l/n,u=L1t(c);if(u===c)s.push(i[u]);else{const d=c-u;s.push(i[u]*(1-d)+i[u+1]*d)}}s.push(a)}else if(r.substr(0,1)==="k"){let l;const c=i.length,u=new Array(c),d=new Array(n);let h=!0,p=0,g=null;g=[],g.push(o);for(let w=1;w<n;w++)g.push(o+w/n*(a-o));for(g.push(a);h;){for(let k=0;k<n;k++)d[k]=0;for(let k=0;k<c;k++){const C=i[k];let _=Number.MAX_VALUE,T;for(let A=0;A<n;A++){const N=I1t(g[A]-C);N<_&&(_=N,T=A),d[T]++,u[k]=T}}const w=new Array(n);for(let k=0;k<n;k++)w[k]=null;for(let k=0;k<c;k++)l=u[k],w[l]===null?w[l]=i[k]:w[l]+=i[k];for(let k=0;k<n;k++)w[k]*=1/d[k];h=!1;for(let k=0;k<n;k++)if(w[k]!==g[k]){h=!0;break}g=w,p++,p>200&&(h=!1)}const y={};for(let w=0;w<n;w++)y[w]=[];for(let w=0;w<c;w++)l=u[w],y[l].push(i[w]);let x=[];for(let w=0;w<n;w++)x.push(y[w][0]),x.push(y[w][y[w].length-1]);x=x.sort((w,k)=>w-k),s.push(x[0]);for(let w=1;w<x.length;w+=2){const k=x[w];!isNaN(k)&&s.indexOf(k)===-1&&s.push(k)}}return s}const z1t=(e,r)=>{e=new Be(e),r=new Be(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/**
 * @license
 *
 * The APCA contrast prediction algorithm is based of the formulas published
 * in the APCA-1.0.98G specification by Myndex. The specification is available at:
 * https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
 *
 * Note that the APCA implementation is still beta, so please update to
 * future versions of chroma.js when they become available.
 *
 * You can read more about the APCA Readability Criterion at
 * https://readtech.org/ARC/
 */const Dce=.027,j1t=5e-4,B1t=.1,Lce=1.14,h5=.022,Ice=1.414,F1t=(e,r)=>{e=new Be(e),r=new Be(r),e.alpha()<1&&(e=sg(r,e,e.alpha(),"rgb"));const n=zce(...e.rgb()),o=zce(...r.rgb()),a=n>=h5?n:n+Math.pow(h5-n,Ice),i=o>=h5?o:o+Math.pow(h5-o,Ice),s=Math.pow(i,.56)-Math.pow(a,.57),l=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)<j1t?0:a<i?s*Lce:l*Lce;return(Math.abs(c)<B1t?0:c>0?c-Dce:c+Dce)*100};function zce(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:wc,pow:Cn,min:H1t,max:U1t,atan2:jce,abs:Bce,cos:f5,sin:Fce,exp:V1t,PI:Hce}=Math;function q1t(e,r,n=1,o=1,a=1){var i=function(Q){return 360*Q/(2*Hce)},s=function(Q){return 2*Hce*Q/360};e=new Be(e),r=new Be(r);const[l,c,u]=Array.from(e.lab()),[d,h,p]=Array.from(r.lab()),g=(l+d)/2,y=wc(Cn(c,2)+Cn(u,2)),x=wc(Cn(h,2)+Cn(p,2)),w=(y+x)/2,k=.5*(1-wc(Cn(w,7)/(Cn(w,7)+Cn(25,7)))),C=c*(1+k),_=h*(1+k),T=wc(Cn(C,2)+Cn(u,2)),A=wc(Cn(_,2)+Cn(p,2)),N=(T+A)/2,$=i(jce(u,C)),R=i(jce(p,_)),M=$>=0?$:$+360,O=R>=0?R:R+360,B=Bce(M-O)>180?(M+O+360)/2:(M+O)/2,I=1-.17*f5(s(B-30))+.24*f5(s(2*B))+.32*f5(s(3*B+6))-.2*f5(s(4*B-63));let Y=O-M;Y=Bce(Y)<=180?Y:O<=M?Y+360:Y-360,Y=2*wc(T*A)*Fce(s(Y)/2);const D=d-l,V=A-T,L=1+.015*Cn(g-50,2)/wc(20+Cn(g-50,2)),U=1+.045*N,q=1+.015*N*I,X=30*V1t(-Cn((B-275)/25,2)),F=-(2*wc(Cn(N,7)/(Cn(N,7)+Cn(25,7))))*Fce(2*s(X)),J=wc(Cn(D/(n*L),2)+Cn(V/(o*U),2)+Cn(Y/(a*q),2)+F*(V/(o*U))*(Y/(a*q)));return U1t(0,H1t(100,J))}function Y1t(e,r,n="lab"){e=new Be(e),r=new Be(r);const o=e.get(n),a=r.get(n);let i=0;for(let s in o){const l=(o[s]||0)-(a[s]||0);i+=l*l}return Math.sqrt(i)}const W1t=(...e)=>{try{return new Be(...e),!0}catch{return!1}},X1t={cool(){return d5([Zt.hsl(180,1,.9),Zt.hsl(250,.7,.4)])},hot(){return d5(["#000","#f00","#ff0","#fff"]).mode("rgb")}},S$={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Uce=Object.keys(S$),Vce=new Map(Uce.map(e=>[e.toLowerCase(),e])),G1t=typeof Proxy=="function"?new Proxy(S$,{get(e,r){const n=r.toLowerCase();if(Vce.has(n))return e[Vce.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(Uce)}}):S$,K1t=(...e)=>{e=Lt(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:qce}=Math,Z1t=(...e)=>{let[r,n,o]=Lt(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-qce(r,qce(n,o)),i=a<1?1/(1-a):0,s=(1-r-a)*i,l=(1-n-a)*i,c=(1-o-a)*i;return[s,l,c,a]};Be.prototype.cmyk=function(){return Z1t(this._rgb)},Object.assign(Zt,{cmyk:(...e)=>new Be(...e,"cmyk")}),Rt.format.cmyk=K1t,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"cmyk"),Vt(e)==="array"&&e.length===4)return"cmyk"}});const Q1t=(...e)=>{const r=Lt(e,"hsla");let n=ag(e)||"lsa";return r[0]=Ei(r[0]||0)+"deg",r[1]=Ei(r[1]*100)+"%",r[2]=Ei(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},J1t=(...e)=>{const r=Lt(e,"lab");let n=ag(e)||"lab";return r[0]=Ei(r[0])+"%",r[1]=Ei(r[1]),r[2]=Ei(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},eyt=(...e)=>{const r=Lt(e,"lch");let n=ag(e)||"lab";return r[0]=Ei(r[0])+"%",r[1]=Ei(r[1]),r[2]=isNaN(r[2])?"none":Ei(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},tyt=(...e)=>{const r=Lt(e,"lab");return r[0]=Ei(r[0]*100)+"%",r[1]=c$(r[1]),r[2]=c$(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},Yce=(...e)=>{const[r,n,o,...a]=Lt(e,"rgb"),[i,s,l]=w$(r,n,o),[c,u,d]=Cce(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},ryt=(...e)=>{const r=Lt(e,"lch");return r[0]=Ei(r[0]*100)+"%",r[1]=c$(r[1]),r[2]=isNaN(r[2])?"none":Ei(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:C$}=Math,nyt=(...e)=>{const r=Lt(e,"rgba");let n=ag(e)||"rgb";if(n.substr(0,3)==="hsl")return Q1t(Ace(r),n);if(n.substr(0,3)==="lab"){const o=Cb();xc("d50");const a=J1t(f$(r),n);return xc(o),a}if(n.substr(0,3)==="lch"){const o=Cb();xc("d50");const a=eyt(y$(r),n);return xc(o),a}return n.substr(0,5)==="oklab"?tyt(w$(r)):n.substr(0,5)==="oklch"?ryt(Yce(r)):(r[0]=C$(r[0]),r[1]=C$(r[1]),r[2]=C$(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},Wce=(...e)=>{e=Lt(e,"lch");const[r,n,o,...a]=e,[i,s,l]=Sce(r,n,o),[c,u,d]=x$(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},kc=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Ls=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,p5=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Si=/\s*/.source,dg=/\s+/.source,T$=/\s*,\s*/.source,m5=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,hg=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Xce=new RegExp("^rgba?\\("+Si+[kc,kc,kc].join(dg)+hg+"\\)$"),Gce=new RegExp("^rgb\\("+Si+[kc,kc,kc].join(T$)+Si+"\\)$"),Kce=new RegExp("^rgba\\("+Si+[kc,kc,kc,Ls].join(T$)+Si+"\\)$"),Zce=new RegExp("^hsla?\\("+Si+[m5,p5,p5].join(dg)+hg+"\\)$"),Qce=new RegExp("^hsl?\\("+Si+[m5,p5,p5].join(T$)+Si+"\\)$"),Jce=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,eue=new RegExp("^lab\\("+Si+[Ls,Ls,Ls].join(dg)+hg+"\\)$"),tue=new RegExp("^lch\\("+Si+[Ls,Ls,m5].join(dg)+hg+"\\)$"),rue=new RegExp("^oklab\\("+Si+[Ls,Ls,Ls].join(dg)+hg+"\\)$"),nue=new RegExp("^oklch\\("+Si+[Ls,Ls,m5].join(dg)+hg+"\\)$"),{round:oue}=Math,fg=e=>e.map((r,n)=>n<=2?Fh(oue(r),0,255):r),Tn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Yo=(e,r)=>e==="none"?r:e,A$=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Rt.format.named)try{return Rt.format.named(e)}catch{}if((r=e.match(Xce))||(r=e.match(Gce))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+Tn(Yo(n[a],0),0,255);n=fg(n);const o=r[4]!==void 0?+Tn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(Kce)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+Tn(n[o],0,255);return n}if((r=e.match(Zce))||(r=e.match(Qce))){const n=r.slice(1,4);n[0]=+Yo(n[0].replace("deg",""),0),n[1]=+Tn(Yo(n[1],0),0,100)*.01,n[2]=+Tn(Yo(n[2],0),0,100)*.01;const o=fg(v$(n)),a=r[4]!==void 0?+Tn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(Jce)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=v$(n);for(let a=0;a<3;a++)o[a]=oue(o[a]);return o[3]=+r[4],o}if(r=e.match(eue)){const n=r.slice(1,4);n[0]=Tn(Yo(n[0],0),0,100),n[1]=Tn(Yo(n[1],0),-125,125,!0),n[2]=Tn(Yo(n[2],0),-125,125,!0);const o=Cb();xc("d50");const a=fg(d$(n));xc(o);const i=r[4]!==void 0?+Tn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(tue)){const n=r.slice(1,4);n[0]=Tn(n[0],0,100),n[1]=Tn(Yo(n[1],0),0,150,!1),n[2]=+Yo(n[2].replace("deg",""),0);const o=Cb();xc("d50");const a=fg(g$(n));xc(o);const i=r[4]!==void 0?+Tn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(rue)){const n=r.slice(1,4);n[0]=Tn(Yo(n[0],0),0,1),n[1]=Tn(Yo(n[1],0),-.4,.4,!0),n[2]=Tn(Yo(n[2],0),-.4,.4,!0);const o=fg(x$(n)),a=r[4]!==void 0?+Tn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(nue)){const n=r.slice(1,4);n[0]=Tn(Yo(n[0],0),0,1),n[1]=Tn(Yo(n[1],0),0,.4,!1),n[2]=+Yo(n[2].replace("deg",""),0);const o=fg(Wce(n)),a=r[4]!==void 0?+Tn(r[4],0,1):1;return o[3]=a,o}};A$.test=e=>Xce.test(e)||Zce.test(e)||eue.test(e)||tue.test(e)||rue.test(e)||nue.test(e)||Gce.test(e)||Kce.test(e)||Qce.test(e)||Jce.test(e)||e==="transparent",Be.prototype.css=function(e){return nyt(this._rgb,e)};const oyt=(...e)=>new Be(...e,"css");Zt.css=oyt,Rt.format.css=A$,Rt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Vt(e)==="string"&&A$.test(e))return"css"}}),Rt.format.gl=(...e)=>{const r=Lt(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const ayt=(...e)=>new Be(...e,"gl");Zt.gl=ayt,Be.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Be.prototype.hex=function(e){return kce(this._rgb,e)};const iyt=(...e)=>new Be(...e,"hex");Zt.hex=iyt,Rt.format.hex=wce,Rt.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Vt(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:g5}=Math,aue=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*g5(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*g5(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*g5(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*g5(o),a=255),[n,o,a,1]},{round:syt}=Math,lyt=(...e)=>{const r=Lt(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const s=.4;let l;for(;i-a>s;){l=(i+a)*.5;const c=aue(l);c[2]/c[0]>=o/n?i=l:a=l}return syt(l)};Be.prototype.temp=Be.prototype.kelvin=Be.prototype.temperature=function(){return lyt(this._rgb)};const N$=(...e)=>new Be(...e,"temp");Object.assign(Zt,{temp:N$,kelvin:N$,temperature:N$}),Rt.format.temp=Rt.format.kelvin=Rt.format.temperature=aue,Be.prototype.oklch=function(){return Yce(this._rgb)},Object.assign(Zt,{oklch:(...e)=>new Be(...e,"oklch")}),Rt.format.oklch=Wce,Rt.autodetect.push({p:2,test:(...e)=>{if(e=Lt(e,"oklch"),Vt(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Zt,{analyze:Mce,average:h1t,bezier:b1t,blend:Ds,brewer:G1t,Color:Be,colors:ig,contrast:z1t,contrastAPCA:F1t,cubehelix:R1t,deltaE:q1t,distance:Y1t,input:Rt,interpolate:sg,limits:Oce,mix:sg,random:O1t,scale:d5,scales:X1t,valid:W1t});var R$={exports:{}},iue;function cyt(){if(iue)return R$.exports;iue=1;/*
 * @version    1.4.0
 * @date       2015-10-26
 * @stability  3 - Stable
 * @author     Lauri Rooden (https://github.com/litejs/natural-compare-lite)
 * @license    MIT License
 */var e=function(r,n){var o,a,i=1,s=0,l=0,c=String.alphabet;function u(d,h,p){if(p){for(o=h;p=u(d,o),p<76&&p>65;)++o;return+d.slice(h-1,o)}return p=c&&c.indexOf(d.charAt(h)),p>-1?p+76:(p=d.charCodeAt(h)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,s++),i=u(n,l++),a<76&&i<76&&a>66&&i>66&&(a=u(r,s,s),i=u(n,l,s=o),l=o),a!=i)return a<i?-1:1}return 0};try{R$.exports=e}catch{String.naturalCompare=e}return R$.exports}cyt();let Tb=class{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};Tb.prototype.normal={},Tb.prototype.property={},Tb.prototype.space=void 0;function sue(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new Tb(n,o,r)}function Ab(e){return e.toLowerCase()}let da=class{constructor(e,r){this.attribute=r,this.property=e}};da.prototype.attribute="",da.prototype.booleanish=!1,da.prototype.boolean=!1,da.prototype.commaOrSpaceSeparated=!1,da.prototype.commaSeparated=!1,da.prototype.defined=!1,da.prototype.mustUseProperty=!1,da.prototype.number=!1,da.prototype.overloadedBoolean=!1,da.prototype.property="",da.prototype.spaceSeparated=!1,da.prototype.space=void 0;let uyt=0;const It=Hh(),An=Hh(),lue=Hh(),Ve=Hh(),Sr=Hh(),pg=Hh(),Ia=Hh();function Hh(){return 2**++uyt}const $$=Object.freeze(Object.defineProperty({__proto__:null,boolean:It,booleanish:An,commaOrSpaceSeparated:Ia,commaSeparated:pg,number:Ve,overloadedBoolean:lue,spaceSeparated:Sr},Symbol.toStringTag,{value:"Module"})),P$=Object.keys($$);let M$=class extends da{constructor(e,r,n,o){let a=-1;if(super(e,r),cue(this,"space",o),typeof n=="number")for(;++a<P$.length;){const i=P$[a];cue(this,P$[a],(n&$$[i])===$$[i])}}};M$.prototype.defined=!0;function cue(e,r,n){n&&(e[r]=n)}function mg(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new M$(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[Ab(o)]=o,n[Ab(i.attribute)]=o}return new Tb(r,n,e.space)}const uue=mg({properties:{ariaActiveDescendant:null,ariaAtomic:An,ariaAutoComplete:null,ariaBusy:An,ariaChecked:An,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:Sr,ariaCurrent:null,ariaDescribedBy:Sr,ariaDetails:null,ariaDisabled:An,ariaDropEffect:Sr,ariaErrorMessage:null,ariaExpanded:An,ariaFlowTo:Sr,ariaGrabbed:An,ariaHasPopup:null,ariaHidden:An,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Sr,ariaLevel:Ve,ariaLive:null,ariaModal:An,ariaMultiLine:An,ariaMultiSelectable:An,ariaOrientation:null,ariaOwns:Sr,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:An,ariaReadOnly:An,ariaRelevant:null,ariaRequired:An,ariaRoleDescription:Sr,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:An,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function due(e,r){return r in e?e[r]:r}function hue(e,r){return due(e,r.toLowerCase())}const dyt=mg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pg,acceptCharset:Sr,accessKey:Sr,action:null,allow:null,allowFullScreen:It,allowPaymentRequest:It,allowUserMedia:It,alt:null,as:null,async:It,autoCapitalize:null,autoComplete:Sr,autoFocus:It,autoPlay:It,blocking:Sr,capture:null,charSet:null,checked:It,cite:null,className:Sr,cols:Ve,colSpan:null,content:null,contentEditable:An,controls:It,controlsList:Sr,coords:Ve|pg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:It,defer:It,dir:null,dirName:null,disabled:It,download:lue,draggable:An,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:It,formTarget:null,headers:Sr,height:Ve,hidden:It,high:Ve,href:null,hrefLang:null,htmlFor:Sr,httpEquiv:Sr,id:null,imageSizes:null,imageSrcSet:null,inert:It,inputMode:null,integrity:null,is:null,isMap:It,itemId:null,itemProp:Sr,itemRef:Sr,itemScope:It,itemType:Sr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:It,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:It,muted:It,name:null,nonce:null,noModule:It,noValidate:It,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:It,optimum:Ve,pattern:null,ping:Sr,placeholder:null,playsInline:It,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:It,referrerPolicy:null,rel:Sr,required:It,reversed:It,rows:Ve,rowSpan:Ve,sandbox:Sr,scope:null,scoped:It,seamless:It,selected:It,shadowRootClonable:It,shadowRootDelegatesFocus:It,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:An,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:It,useMap:null,value:An,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Sr,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:It,declare:It,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:It,noHref:It,noShade:It,noWrap:It,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:An,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:It,disableRemotePlayback:It,prefix:null,property:null,results:Ve,security:null,unselectable:null},space:"html",transform:hue}),hyt=mg({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ia,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:Sr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:It,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pg,g2:pg,glyphName:pg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:Ia,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Sr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ia,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ia,rev:Ia,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ia,requiredFeatures:Ia,requiredFonts:Ia,requiredFormats:Ia,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:Ia,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ia,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ia,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:due}),fue=mg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),pue=mg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hue}),mue=mg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),fyt=/[A-Z]/g,gue=/-[a-z]/g,pyt=/^data[-\w.:]+$/i;function yue(e,r){const n=Ab(r);let o=r,a=da;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pyt.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(gue,gyt);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!gue.test(i)){let s=i.replace(fyt,myt);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=M$}return new a(o,r)}function myt(e){return"-"+e.toLowerCase()}function gyt(e){return e.charAt(1).toUpperCase()}const yyt=sue([uue,dyt,fue,pue,mue],"html"),bue=sue([uue,hyt,fue,pue,mue],"svg");function vue(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const s=n.slice(a,o).trim();(s||!i)&&r.push(s),a=o+1,o=n.indexOf(",",a)}return r}function xue(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const wue=/[#.]/g;function byt(e,r){const n=e||"",o={};let a=0,i,s;for(;a<n.length;){wue.lastIndex=a;const l=wue.exec(n),c=n.slice(a,l?l.index:n.length);c&&(i?i==="#"?o.id=c:Array.isArray(o.className)?o.className.push(c):o.className=[c]:s=c,a+=c.length),l&&(i=l[0],a++)}return{type:"element",tagName:s||r||"div",properties:o,children:[]}}function kue(e){const r=String(e||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function _ue(e){return e.join(" ").trim()}function Eue(e,r,n){const o=n?kyt(n):void 0;function a(i,s,...l){let c;if(i==null){c={type:"root",children:[]};const u=s;l.unshift(u)}else{c=byt(i,r);const u=c.tagName.toLowerCase(),d=o?o.get(u):void 0;if(c.tagName=d||u,vyt(s))l.unshift(s);else for(const[h,p]of Object.entries(s))xyt(e,c.properties,h,p)}for(const u of l)O$(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function vyt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const r=e,n=Object.keys(e);for(const o of n){const a=r[o];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function xyt(e,r,n,o){const a=yue(e,n);let i;if(o!=null){if(typeof o=="number"){if(Number.isNaN(o))return;i=o}else typeof o=="boolean"?i=o:typeof o=="string"?a.spaceSeparated?i=kue(o):a.commaSeparated?i=vue(o):a.commaOrSpaceSeparated?i=kue(vue(o).join(" ")):i=Sue(a,a.property,o):Array.isArray(o)?i=[...o]:i=a.property==="style"?wyt(o):String(o);if(Array.isArray(i)){const s=[];for(const l of i)s.push(Sue(a,a.property,l));i=s}a.property==="className"&&Array.isArray(r.className)&&(i=r.className.concat(i)),r[a.property]=i}}function O$(e,r){if(r!=null)if(typeof r=="number"||typeof r=="string")e.push({type:"text",value:String(r)});else if(Array.isArray(r))for(const n of r)O$(e,n);else if(typeof r=="object"&&"type"in r)r.type==="root"?O$(e,r.children):e.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function Sue(e,r,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ab(n)===Ab(r)))return!0}return n}function wyt(e){const r=[];for(const[n,o]of Object.entries(e))r.push([n,o].join(": "));return r.join("; ")}function kyt(e){const r=new Map;for(const n of e)r.set(n.toLowerCase(),n);return r}const _yt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];Eue(yyt,"div"),Eue(bue,"g",_yt);const Cue={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};class Nb{constructor(r,n,o){this.property=r,this.normal=n,o&&(this.space=o)}}Nb.prototype.property={},Nb.prototype.normal={},Nb.prototype.space=null;function Tue(e,r){const n={},o={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(o,e[a].normal);return new Nb(n,o,r)}function D$(e){return e.toLowerCase()}class Ci{constructor(r,n){this.property=r,this.attribute=n}}Ci.prototype.space=null,Ci.prototype.boolean=!1,Ci.prototype.booleanish=!1,Ci.prototype.overloadedBoolean=!1,Ci.prototype.number=!1,Ci.prototype.commaSeparated=!1,Ci.prototype.spaceSeparated=!1,Ci.prototype.commaOrSpaceSeparated=!1,Ci.prototype.mustUseProperty=!1,Ci.prototype.defined=!1;let Eyt=0;const zt=Uh(),Nn=Uh(),Aue=Uh(),qe=Uh(),Cr=Uh(),gg=Uh(),za=Uh();function Uh(){return 2**++Eyt}const L$=Object.freeze(Object.defineProperty({__proto__:null,boolean:zt,booleanish:Nn,commaOrSpaceSeparated:za,commaSeparated:gg,number:qe,overloadedBoolean:Aue,spaceSeparated:Cr},Symbol.toStringTag,{value:"Module"})),I$=Object.keys(L$);class z$ extends Ci{constructor(r,n,o,a){let i=-1;if(super(r,n),Nue(this,"space",a),typeof o=="number")for(;++i<I$.length;){const s=I$[i];Nue(this,I$[i],(o&L$[s])===L$[s])}}}z$.prototype.defined=!0;function Nue(e,r,n){n&&(e[r]=n)}const Syt={}.hasOwnProperty;function yg(e){const r={},n={};let o;for(o in e.properties)if(Syt.call(e.properties,o)){const a=e.properties[o],i=new z$(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[D$(o)]=o,n[D$(i.attribute)]=o}return new Nb(r,n,e.space)}const Rue=yg({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$ue=yg({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pue(e,r){return r in e?e[r]:r}function Mue(e,r){return Pue(e,r.toLowerCase())}const Oue=yg({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Mue,properties:{xmlns:null,xmlnsXLink:null}}),Due=yg({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Nn,ariaAutoComplete:null,ariaBusy:Nn,ariaChecked:Nn,ariaColCount:qe,ariaColIndex:qe,ariaColSpan:qe,ariaControls:Cr,ariaCurrent:null,ariaDescribedBy:Cr,ariaDetails:null,ariaDisabled:Nn,ariaDropEffect:Cr,ariaErrorMessage:null,ariaExpanded:Nn,ariaFlowTo:Cr,ariaGrabbed:Nn,ariaHasPopup:null,ariaHidden:Nn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cr,ariaLevel:qe,ariaLive:null,ariaModal:Nn,ariaMultiLine:Nn,ariaMultiSelectable:Nn,ariaOrientation:null,ariaOwns:Cr,ariaPlaceholder:null,ariaPosInSet:qe,ariaPressed:Nn,ariaReadOnly:Nn,ariaRelevant:null,ariaRequired:Nn,ariaRoleDescription:Cr,ariaRowCount:qe,ariaRowIndex:qe,ariaRowSpan:qe,ariaSelected:Nn,ariaSetSize:qe,ariaSort:null,ariaValueMax:qe,ariaValueMin:qe,ariaValueNow:qe,ariaValueText:null,role:null}}),Cyt=yg({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Mue,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gg,acceptCharset:Cr,accessKey:Cr,action:null,allow:null,allowFullScreen:zt,allowPaymentRequest:zt,allowUserMedia:zt,alt:null,as:null,async:zt,autoCapitalize:null,autoComplete:Cr,autoFocus:zt,autoPlay:zt,blocking:Cr,capture:null,charSet:null,checked:zt,cite:null,className:Cr,cols:qe,colSpan:null,content:null,contentEditable:Nn,controls:zt,controlsList:Cr,coords:qe|gg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:zt,defer:zt,dir:null,dirName:null,disabled:zt,download:Aue,draggable:Nn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:zt,formTarget:null,headers:Cr,height:qe,hidden:zt,high:qe,href:null,hrefLang:null,htmlFor:Cr,httpEquiv:Cr,id:null,imageSizes:null,imageSrcSet:null,inert:zt,inputMode:null,integrity:null,is:null,isMap:zt,itemId:null,itemProp:Cr,itemRef:Cr,itemScope:zt,itemType:Cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:zt,low:qe,manifest:null,max:null,maxLength:qe,media:null,method:null,min:null,minLength:qe,multiple:zt,muted:zt,name:null,nonce:null,noModule:zt,noValidate:zt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:zt,optimum:qe,pattern:null,ping:Cr,placeholder:null,playsInline:zt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:zt,referrerPolicy:null,rel:Cr,required:zt,reversed:zt,rows:qe,rowSpan:qe,sandbox:Cr,scope:null,scoped:zt,seamless:zt,selected:zt,shadowRootClonable:zt,shadowRootDelegatesFocus:zt,shadowRootMode:null,shape:null,size:qe,sizes:null,slot:null,span:qe,spellCheck:Nn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:qe,step:null,style:null,tabIndex:qe,target:null,title:null,translate:null,type:null,typeMustMatch:zt,useMap:null,value:Nn,width:qe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Cr,axis:null,background:null,bgColor:null,border:qe,borderColor:null,bottomMargin:qe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:zt,declare:zt,event:null,face:null,frame:null,frameBorder:null,hSpace:qe,leftMargin:qe,link:null,longDesc:null,lowSrc:null,marginHeight:qe,marginWidth:qe,noResize:zt,noHref:zt,noShade:zt,noWrap:zt,object:null,profile:null,prompt:null,rev:null,rightMargin:qe,rules:null,scheme:null,scrolling:Nn,standby:null,summary:null,text:null,topMargin:qe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:qe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:zt,disableRemotePlayback:zt,prefix:null,property:null,results:qe,security:null,unselectable:null}}),Tyt=yg({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Pue,properties:{about:za,accentHeight:qe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:qe,amplitude:qe,arabicForm:null,ascent:qe,attributeName:null,attributeType:null,azimuth:qe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:qe,by:null,calcMode:null,capHeight:qe,className:Cr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:qe,diffuseConstant:qe,direction:null,display:null,dur:null,divisor:qe,dominantBaseline:null,download:zt,dx:null,dy:null,edgeMode:null,editable:null,elevation:qe,enableBackground:null,end:null,event:null,exponent:qe,externalResourcesRequired:null,fill:null,fillOpacity:qe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gg,g2:gg,glyphName:gg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:qe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:qe,horizOriginX:qe,horizOriginY:qe,id:null,ideographic:qe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:qe,k:qe,k1:qe,k2:qe,k3:qe,k4:qe,kernelMatrix:za,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:qe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:qe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:qe,overlineThickness:qe,paintOrder:null,panose1:null,path:null,pathLength:qe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:qe,pointsAtY:qe,pointsAtZ:qe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:za,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:za,rev:za,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:za,requiredFeatures:za,requiredFonts:za,requiredFormats:za,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:qe,specularExponent:qe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:qe,strikethroughThickness:qe,string:null,stroke:null,strokeDashArray:za,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:qe,strokeOpacity:qe,strokeWidth:null,style:null,surfaceScale:qe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:za,tabIndex:qe,tableValues:null,target:null,targetX:qe,targetY:qe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:za,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:qe,underlineThickness:qe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:qe,values:null,vAlphabetic:qe,vMathematical:qe,vectorEffect:null,vHanging:qe,vIdeographic:qe,version:null,vertAdvY:qe,vertOriginX:qe,vertOriginY:qe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:qe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ayt=/^data[-\w.:]+$/i,Lue=/-[a-z]/g,Nyt=/[A-Z]/g;function Ryt(e,r){const n=D$(r);let o=r,a=Ci;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ayt.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(Lue,Pyt);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!Lue.test(i)){let s=i.replace(Nyt,$yt);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=z$}return new a(o,r)}function $yt(e){return"-"+e.toLowerCase()}function Pyt(e){return e.charAt(1).toUpperCase()}Tue([$ue,Rue,Oue,Due,Cyt],"html");const Myt=Tue([$ue,Rue,Oue,Due,Tyt],"svg"),Iue={}.hasOwnProperty;function zue(e,r){const n=r||{};function o(a,...i){let s=o.invalid;const l=o.handlers;if(a&&Iue.call(a,e)){const c=String(a[e]);s=Iue.call(l,c)?l[c]:o.unknown}if(s)return s.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Oyt={}.hasOwnProperty,Dyt=zue("type",{handlers:{root:Lyt,element:Fyt,text:jyt,comment:Byt,doctype:zyt}});function Lyt(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=j$(e.children,n,r),bg(e,n),n}function Iyt(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=j$(e.children,n,r),bg(e,n),n}function zyt(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return bg(e,r),r}function jyt(e){const r={nodeName:"#text",value:e.value,parentNode:null};return bg(e,r),r}function Byt(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return bg(e,r),r}function Fyt(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=Myt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Oyt.call(e.properties,i)){const c=Hyt(o,i,e.properties[i]);c&&a.push(c)}}const s=o.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Cue[s],childNodes:[],parentNode:null};return l.childNodes=j$(e.children,l,o),bg(e,l),e.tagName==="template"&&e.content&&(l.content=Iyt(e.content,o)),l}function Hyt(e,r,n){const o=Ryt(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?xue(n):_ue(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=Cue[o.space]}return a}function j$(e,r,n){let o=-1;const a=[];if(e)for(;++o<e.length;){const i=Dyt(e[o],n);i.parentNode=r,a.push(i)}return a}function bg(e,r){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,r.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var jue;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(jue||(jue={}));var Bue;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Bue||(Bue={}));var Fue;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Fue||(Fue={}));const Uyt=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Vyt=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var B$;const qyt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Yyt=(B$=String.fromCodePoint)!==null&&B$!==void 0?B$:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Wyt(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=qyt.get(e))!==null&&r!==void 0?r:e}var to;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(to||(to={}));const Xyt=32;var Bu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Bu||(Bu={}));function F$(e){return e>=to.ZERO&&e<=to.NINE}function Gyt(e){return e>=to.UPPER_A&&e<=to.UPPER_F||e>=to.LOWER_A&&e<=to.LOWER_F}function Kyt(e){return e>=to.UPPER_A&&e<=to.UPPER_Z||e>=to.LOWER_A&&e<=to.LOWER_Z||F$(e)}function Zyt(e){return e===to.EQUALS||Kyt(e)}var ro;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ro||(ro={}));var Vh;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vh||(Vh={}));class Qyt{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=ro.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vh.Strict}startEntity(r){this.decodeMode=r,this.state=ro.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case ro.EntityStart:return r.charCodeAt(n)===to.NUM?(this.state=ro.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=ro.NamedEntity,this.stateNamedEntity(r,n));case ro.NumericStart:return this.stateNumericStart(r,n);case ro.NumericDecimal:return this.stateNumericDecimal(r,n);case ro.NumericHex:return this.stateNumericHex(r,n);case ro.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Xyt)===to.LOWER_X?(this.state=ro.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=ro.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(F$(a)||Gyt(a))n+=1;else return this.addToNumericResult(r,o,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(r,o,n,16),-1}stateNumericDecimal(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(F$(a))n+=1;else return this.addToNumericResult(r,o,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(r,o,n,10),-1}emitNumericEntity(r,n){var o;if(this.consumed<=n)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(r===to.SEMI)this.consumed+=1;else if(this.decodeMode===Vh.Strict)return 0;return this.emitCodePoint(Wyt(this.result),this.consumed),this.errors&&(r!==to.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,n){const{decodeTree:o}=this;let a=o[this.treeIndex],i=(a&Bu.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const s=r.charCodeAt(n);if(this.treeIndex=Jyt(o,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Vh.Attribute&&(i===0||Zyt(s))?0:this.emitNotTerminatedNamedEntity();if(a=o[this.treeIndex],i=(a&Bu.VALUE_LENGTH)>>14,i!==0){if(s===to.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Vh.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&Bu.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~Bu.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case ro.NamedEntity:return this.result!==0&&(this.decodeMode!==Vh.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ro.NumericDecimal:return this.emitNumericEntity(0,2);case ro.NumericHex:return this.emitNumericEntity(0,3);case ro.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ro.EntityStart:return 0}}}function Hue(e){let r="";const n=new Qyt(e,o=>r+=Yyt(o));return function(o,a){let i=0,s=0;for(;(s=o.indexOf("&",s))>=0;){r+=o.slice(i,s),n.startEntity(a);const c=n.write(o,s+1);if(c<0){i=s+n.end();break}i=s+c,s=c===0?i+1:i}const l=r+o.slice(i);return r="",l}}function Jyt(e,r,n,o){const a=(r&Bu.BRANCH_LENGTH)>>7,i=r&Bu.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let s=n,l=s+a-1;for(;s<=l;){const c=s+l>>>1,u=e[c];if(u<o)s=c+1;else if(u>o)l=c-1;else return e[c+a]}return-1}Hue(Uyt),Hue(Vyt);var jn;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(jn||(jn={}));var Uue;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Uue||(Uue={}));var Vue;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Vue||(Vue={}));var xe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(xe||(xe={}));var ie;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(ie||(ie={})),xe.A,ie.A,xe.ADDRESS,ie.ADDRESS,xe.ANNOTATION_XML,ie.ANNOTATION_XML,xe.APPLET,ie.APPLET,xe.AREA,ie.AREA,xe.ARTICLE,ie.ARTICLE,xe.ASIDE,ie.ASIDE,xe.B,ie.B,xe.BASE,ie.BASE,xe.BASEFONT,ie.BASEFONT,xe.BGSOUND,ie.BGSOUND,xe.BIG,ie.BIG,xe.BLOCKQUOTE,ie.BLOCKQUOTE,xe.BODY,ie.BODY,xe.BR,ie.BR,xe.BUTTON,ie.BUTTON,xe.CAPTION,ie.CAPTION,xe.CENTER,ie.CENTER,xe.CODE,ie.CODE,xe.COL,ie.COL,xe.COLGROUP,ie.COLGROUP,xe.DD,ie.DD,xe.DESC,ie.DESC,xe.DETAILS,ie.DETAILS,xe.DIALOG,ie.DIALOG,xe.DIR,ie.DIR,xe.DIV,ie.DIV,xe.DL,ie.DL,xe.DT,ie.DT,xe.EM,ie.EM,xe.EMBED,ie.EMBED,xe.FIELDSET,ie.FIELDSET,xe.FIGCAPTION,ie.FIGCAPTION,xe.FIGURE,ie.FIGURE,xe.FONT,ie.FONT,xe.FOOTER,ie.FOOTER,xe.FOREIGN_OBJECT,ie.FOREIGN_OBJECT,xe.FORM,ie.FORM,xe.FRAME,ie.FRAME,xe.FRAMESET,ie.FRAMESET,xe.H1,ie.H1,xe.H2,ie.H2,xe.H3,ie.H3,xe.H4,ie.H4,xe.H5,ie.H5,xe.H6,ie.H6,xe.HEAD,ie.HEAD,xe.HEADER,ie.HEADER,xe.HGROUP,ie.HGROUP,xe.HR,ie.HR,xe.HTML,ie.HTML,xe.I,ie.I,xe.IMG,ie.IMG,xe.IMAGE,ie.IMAGE,xe.INPUT,ie.INPUT,xe.IFRAME,ie.IFRAME,xe.KEYGEN,ie.KEYGEN,xe.LABEL,ie.LABEL,xe.LI,ie.LI,xe.LINK,ie.LINK,xe.LISTING,ie.LISTING,xe.MAIN,ie.MAIN,xe.MALIGNMARK,ie.MALIGNMARK,xe.MARQUEE,ie.MARQUEE,xe.MATH,ie.MATH,xe.MENU,ie.MENU,xe.META,ie.META,xe.MGLYPH,ie.MGLYPH,xe.MI,ie.MI,xe.MO,ie.MO,xe.MN,ie.MN,xe.MS,ie.MS,xe.MTEXT,ie.MTEXT,xe.NAV,ie.NAV,xe.NOBR,ie.NOBR,xe.NOFRAMES,ie.NOFRAMES,xe.NOEMBED,ie.NOEMBED,xe.NOSCRIPT,ie.NOSCRIPT,xe.OBJECT,ie.OBJECT,xe.OL,ie.OL,xe.OPTGROUP,ie.OPTGROUP,xe.OPTION,ie.OPTION,xe.P,ie.P,xe.PARAM,ie.PARAM,xe.PLAINTEXT,ie.PLAINTEXT,xe.PRE,ie.PRE,xe.RB,ie.RB,xe.RP,ie.RP,xe.RT,ie.RT,xe.RTC,ie.RTC,xe.RUBY,ie.RUBY,xe.S,ie.S,xe.SCRIPT,ie.SCRIPT,xe.SEARCH,ie.SEARCH,xe.SECTION,ie.SECTION,xe.SELECT,ie.SELECT,xe.SOURCE,ie.SOURCE,xe.SMALL,ie.SMALL,xe.SPAN,ie.SPAN,xe.STRIKE,ie.STRIKE,xe.STRONG,ie.STRONG,xe.STYLE,ie.STYLE,xe.SUB,ie.SUB,xe.SUMMARY,ie.SUMMARY,xe.SUP,ie.SUP,xe.TABLE,ie.TABLE,xe.TBODY,ie.TBODY,xe.TEMPLATE,ie.TEMPLATE,xe.TEXTAREA,ie.TEXTAREA,xe.TFOOT,ie.TFOOT,xe.TD,ie.TD,xe.TH,ie.TH,xe.THEAD,ie.THEAD,xe.TITLE,ie.TITLE,xe.TR,ie.TR,xe.TRACK,ie.TRACK,xe.TT,ie.TT,xe.U,ie.U,xe.UL,ie.UL,xe.SVG,ie.SVG,xe.VAR,ie.VAR,xe.WBR,ie.WBR,xe.XMP,ie.XMP;const Ie=ie;jn.HTML+"",Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP,jn.MATHML+"",Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML,jn.SVG+"",Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC,jn.XLINK+"",jn.XML+"",jn.XMLNS+"",Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,xe.STYLE,xe.SCRIPT,xe.XMP,xe.IFRAME,xe.NOEMBED,xe.NOFRAMES,xe.PLAINTEXT;var Fu;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Fu||(Fu={})),Fu.DATA,Fu.RCDATA,Fu.RAWTEXT,Fu.SCRIPT_DATA,Fu.PLAINTEXT,Fu.CDATA_SECTION,[...new Set([ie.DD,ie.DT,ie.LI,ie.OPTGROUP,ie.OPTION,ie.P,ie.RB,ie.RP,ie.RT,ie.RTC]),ie.CAPTION,ie.COLGROUP,ie.TBODY,ie.TD,ie.TFOOT,ie.TH,ie.THEAD,ie.TR];const que=new Set([ie.APPLET,ie.CAPTION,ie.HTML,ie.MARQUEE,ie.OBJECT,ie.TABLE,ie.TD,ie.TEMPLATE,ie.TH]);[...que,ie.OL,ie.UL],[...que,ie.BUTTON],ie.ANNOTATION_XML,ie.MI,ie.MN,ie.MO,ie.MS,ie.MTEXT,ie.DESC,ie.FOREIGN_OBJECT,ie.TITLE,ie.TR,ie.TEMPLATE,ie.HTML,ie.TBODY,ie.TFOOT,ie.THEAD,ie.TEMPLATE,ie.HTML,ie.TABLE,ie.TEMPLATE,ie.HTML,ie.TD,ie.TH;var H$;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(H$||(H$={})),H$.Marker,new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),jn.XLINK,jn.XLINK,jn.XLINK,jn.XLINK,jn.XLINK,jn.XLINK,jn.XLINK,jn.XML,jn.XML,jn.XMLNS,jn.XMLNS,new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),ie.B,ie.BIG,ie.BLOCKQUOTE,ie.BODY,ie.BR,ie.CENTER,ie.CODE,ie.DD,ie.DIV,ie.DL,ie.DT,ie.EM,ie.EMBED,ie.H1,ie.H2,ie.H3,ie.H4,ie.H5,ie.H6,ie.HEAD,ie.HR,ie.I,ie.IMG,ie.LI,ie.LISTING,ie.MENU,ie.META,ie.NOBR,ie.OL,ie.P,ie.PRE,ie.RUBY,ie.S,ie.SMALL,ie.SPAN,ie.STRONG,ie.STRIKE,ie.SUB,ie.SUP,ie.TABLE,ie.TT,ie.U,ie.UL,ie.VAR;var Yue;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Yue||(Yue={})),ie.TABLE,ie.TBODY,ie.TFOOT,ie.THEAD,ie.TR,ie.CAPTION,ie.COL,ie.COLGROUP,ie.TBODY,ie.TD,ie.TFOOT,ie.TH,ie.THEAD,ie.TR,xe.AREA,xe.BASE,xe.BASEFONT,xe.BGSOUND,xe.BR,xe.COL,xe.EMBED,xe.FRAME,xe.HR,xe.IMG,xe.INPUT,xe.KEYGEN,xe.LINK,xe.META,xe.PARAM,xe.SOURCE,xe.TRACK,xe.WBR;const Wue=(function(e){if(e==null)return nbt;if(typeof e=="function")return y5(e);if(typeof e=="object")return Array.isArray(e)?ebt(e):tbt(e);if(typeof e=="string")return rbt(e);throw new Error("Expected function, string, or object as test")});function ebt(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=Wue(e[n]);return y5(o);function o(...a){let i=-1;for(;++i<r.length;)if(r[i].apply(this,a))return!0;return!1}}function tbt(e){const r=e;return y5(n);function n(o){const a=o;let i;for(i in e)if(a[i]!==r[i])return!1;return!0}}function rbt(e){return y5(r);function r(n){return n&&n.type===e}}function y5(e){return r;function r(n,o,a){return!!(obt(n)&&e.call(this,n,typeof o=="number"?o:void 0,a||void 0))}}function nbt(){return!0}function obt(e){return e!==null&&typeof e=="object"&&"type"in e}const abt=/["&'<>`]/g,ibt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sbt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,lbt=/[|\\{}()[\]^$+*?.]/g,Xue=new WeakMap;function cbt(e,r){if(e=e.replace(r.subset?ubt(r.subset):abt,o),r.subset||r.escapeOnly)return e;return e.replace(ibt,n).replace(sbt,o);function n(a,i,s){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),r)}function o(a,i,s){return r.format(a.charCodeAt(0),s.charCodeAt(i+1),r)}}function ubt(e){let r=Xue.get(e);return r||(r=dbt(e),Xue.set(e,r)),r}function dbt(e){const r=[];let n=-1;for(;++n<e.length;)r.push(e[n].replace(lbt,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}const hbt=/[\dA-Fa-f]/;function fbt(e,r,n){const o="&#x"+e.toString(16).toUpperCase();return n&&r&&!hbt.test(String.fromCharCode(r))?o:o+";"}const pbt=/\d/;function mbt(e,r,n){const o="&#"+String(e);return n&&r&&!pbt.test(String.fromCharCode(r))?o:o+";"}const gbt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],U$={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ybt=["cent","copy","divide","gt","lt","not","para","times"],Gue={}.hasOwnProperty,V$={};let b5;for(b5 in U$)Gue.call(U$,b5)&&(V$[U$[b5]]=b5);const bbt=/[^\dA-Za-z]/;function vbt(e,r,n,o){const a=String.fromCharCode(e);if(Gue.call(V$,a)){const i=V$[a],s="&"+i;return n&&gbt.includes(i)&&!ybt.includes(i)&&(!o||r&&r!==61&&bbt.test(String.fromCharCode(r)))?s:s+";"}return""}function xbt(e,r,n){let o=fbt(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=vbt(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=mbt(e,r,n.omitOptionalSemicolons);i.length<o.length&&(o=i)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function vg(e,r){return cbt(e,Object.assign({format:xbt},r))}const wbt=/^>|^->|<!--|-->|--!>|<!-$/g,kbt=[">"],_bt=["<",">"];function Ebt(e,r,n,o){return o.settings.bogusComments?"<?"+vg(e.value,Object.assign({},o.settings.characterReferences,{subset:kbt}))+">":"<!--"+e.value.replace(wbt,a)+"-->";function a(i){return vg(i,Object.assign({},o.settings.characterReferences,{subset:_bt}))}}function Sbt(e,r,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Kue(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const Cbt=/[ \t\n\f\r]/g;function q$(e){return typeof e=="object"?e.type==="text"?Zue(e.value):!1:Zue(e)}function Zue(e){return e.replace(Cbt,"")===""}const Bn=Jue(1),Que=Jue(-1),Tbt=[];function Jue(e){return r;function r(n,o,a){const i=n?n.children:Tbt;let s=(o||0)+e,l=i[s];if(!a)for(;l&&q$(l);)s+=e,l=i[s];return l}}const Abt={}.hasOwnProperty;function ede(e){return r;function r(n,o,a){return Abt.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const Y$=ede({body:Rbt,caption:W$,colgroup:W$,dd:Obt,dt:Mbt,head:W$,html:Nbt,li:Pbt,optgroup:Dbt,option:Lbt,p:$bt,rp:tde,rt:tde,tbody:zbt,td:rde,tfoot:jbt,th:rde,thead:Ibt,tr:Bbt});function W$(e,r,n){const o=Bn(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&q$(o.value.charAt(0)))}function Nbt(e,r,n){const o=Bn(n,r);return!o||o.type!=="comment"}function Rbt(e,r,n){const o=Bn(n,r);return!o||o.type!=="comment"}function $bt(e,r,n){const o=Bn(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Pbt(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&o.tagName==="li"}function Mbt(e,r,n){const o=Bn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Obt(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function tde(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Dbt(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Lbt(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Ibt(e,r,n){const o=Bn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function zbt(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function jbt(e,r,n){return!Bn(n,r)}function Bbt(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function rde(e,r,n){const o=Bn(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Fbt=ede({body:Vbt,colgroup:qbt,head:Ubt,html:Hbt,tbody:Ybt});function Hbt(e){const r=Bn(e,-1);return!r||r.type!=="comment"}function Ubt(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function Vbt(e){const r=Bn(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&q$(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function qbt(e,r,n){const o=Que(n,r),a=Bn(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&Y$(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Ybt(e,r,n){const o=Que(n,r),a=Bn(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Y$(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const v5={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Wbt(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let s=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=bue);const u=Xbt(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(s=!1),(u||!i||!Fbt(e,r,n))&&(l.push("<",e.tagName,u?" "+u:""),s&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!s&&(!i||!Y$(e,r,n))&&l.push("</"+e.tagName+">"),l.join("")}function Xbt(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=Gbt(e,a,r[a]);i&&n.push(i)}}for(;++o<n.length;){const i=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&i!=='"'&&i!=="'"&&(n[o]+=" ")}return n.join("")}function Gbt(e,r,n){const o=yue(e.schema,r),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let s=e.quote,l;if(o.overloadedBoolean&&(n===o.attribute||n==="")?n=!0:(o.boolean||o.overloadedBoolean)&&(typeof n!="string"||n===o.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=vg(o.attribute,Object.assign({},e.settings.characterReferences,{subset:v5.name[a][i]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?xue:_ue)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=vg(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:v5.unquoted[a][i]}))),l!==n&&(e.settings.quoteSmart&&Kue(n,s)>Kue(n,e.alternative)&&(s=e.alternative),l=s+vg(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?v5.single:v5.double)[a][i],attribute:!0}))+s),c+(l&&"="+l))}const Kbt=["<","&"];function nde(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:vg(e.value,Object.assign({},o.settings.characterReferences,{subset:Kbt}))}function Zbt(e,r,n,o){return o.settings.allowDangerousHtml?e.value:nde(e,r,n,o)}function Qbt(e,r,n,o){return o.all(e)}zue("type",{invalid:Jbt,unknown:evt,handlers:{comment:Ebt,doctype:Sbt,element:Wbt,raw:Zbt,root:Qbt,text:nde}});function Jbt(e){throw new Error("Expected node, not `"+e+"`")}function evt(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Rb=x5(/[A-Za-z]/),X$=x5(/[\dA-Za-z]/);function tvt(e){return e!==null&&(e<32||e===127)}function xg(e){return e!==null&&(e<0||e===32)}const ode=x5(new RegExp("\\p{P}|\\p{S}","u")),$b=x5(/\s/);function x5(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}Wue(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rvt(e,r,n,o){const a=e.length;let i=0,s;if(r<0?r=-r>a?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)s=Array.from(o),s.unshift(r,n),e.splice(...s);else for(n&&e.splice(r,n);i<o.length;)s=o.slice(i,i+1e4),s.unshift(r,0),e.splice(...s),i+=1e4,r+=1e4}const nvt={tokenize:lvt,partial:!0},ade={tokenize:cvt,partial:!0},ide={tokenize:uvt,partial:!0},sde={tokenize:dvt,partial:!0},ovt={tokenize:hvt,partial:!0},lde={name:"wwwAutolink",tokenize:ivt,previous:ude},cde={name:"protocolAutolink",tokenize:svt,previous:dde},_c={name:"emailAutolink",tokenize:avt,previous:hde},Ec={};let qh=48;for(;qh<123;)Ec[qh]=_c,qh++,qh===58?qh=65:qh===91&&(qh=97);Ec[43]=_c,Ec[45]=_c,Ec[46]=_c,Ec[95]=_c,Ec[72]=[_c,cde],Ec[104]=[_c,cde],Ec[87]=[_c,lde],Ec[119]=[_c,lde];function avt(e,r,n){const o=this;let a,i;return s;function s(h){return!G$(h)||!hde.call(o,o.previous)||K$(o.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return G$(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(ovt,d,u)(h):h===45||h===95||X$(h)?(i=!0,e.consume(h),c):d(h)}function u(h){return e.consume(h),a=!0,c}function d(h){return i&&a&&Rb(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(h)):n(h)}}function ivt(e,r,n){const o=this;return a;function a(s){return s!==87&&s!==119||!ude.call(o,o.previous)||K$(o.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nvt,e.attempt(ade,e.attempt(ide,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(s)}}function svt(e,r,n){const o=this;let a="",i=!1;return s;function s(h){return(h===72||h===104)&&dde.call(o,o.previous)&&!K$(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(Rb(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),i?u:(i=!0,c)):n(h)}function u(h){return h===null||tvt(h)||xg(h)||$b(h)||ode(h)?n(h):e.attempt(ade,e.attempt(ide,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(h)}}function lvt(e,r,n){let o=0;return a;function a(s){return(s===87||s===119)&&o<3?(o++,e.consume(s),a):s===46&&o===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):r(s)}}function cvt(e,r,n){let o,a,i;return s;function s(u){return u===46||u===95?e.check(sde,c,l)(u):u===null||xg(u)||$b(u)||u!==45&&ode(u)?c(u):(i=!0,e.consume(u),s)}function l(u){return u===95?o=!0:(a=o,o=void 0),e.consume(u),s}function c(u){return a||o||!i?n(u):r(u)}}function uvt(e,r){let n=0,o=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&o<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(sde,r,i)(s):s===null||xg(s)||$b(s)?r(s):(e.consume(s),a)}function i(s){return s===41&&o++,e.consume(s),a}}function dvt(e,r,n){return o;function o(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),o):l===38?(e.consume(l),i):l===93?(e.consume(l),a):l===60||l===null||xg(l)||$b(l)?r(l):n(l)}function a(l){return l===null||l===40||l===91||xg(l)||$b(l)?r(l):o(l)}function i(l){return Rb(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),o):Rb(l)?(e.consume(l),s):n(l)}}function hvt(e,r,n){return o;function o(i){return e.consume(i),a}function a(i){return X$(i)?n(i):r(i)}}function ude(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xg(e)}function dde(e){return!Rb(e)}function hde(e){return!(e===47||G$(e))}function G$(e){return e===43||e===45||e===46||e===95||X$(e)}function K$(e){let r=e.length,n=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const fde={resolveAll:fvt};function fvt(e){let r=-1;const n=[];for(;++r<e.length;){const o=e[r][1];if(n.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const a=o.type==="labelImage"?4:2;o.type="data",r+=a}}return e.length!==n.length&&rvt(e,0,e.length,n),e}fde.resolveAll,fde.resolveAll;function pvt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pde(e.position):"start"in e||"end"in e?pde(e):"line"in e||"column"in e?Z$(e):""}function Z$(e){return mde(e&&e.line)+":"+mde(e&&e.column)}function pde(e){return Z$(e&&e.start)+"-"+Z$(e&&e.end)}function mde(e){return e&&typeof e=="number"?e:1}function gde(e){if(e)throw e}var Q$,yde;function mvt(){if(yde)return Q$;yde=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):r.call(c)==="[object Array]"},i=function(c){if(!c||r.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!d)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},s=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},l=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(o)return o(c,u).value}else return;return c[u]};return Q$=function c(){var u,d,h,p,g,y,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<k;++w)if(u=arguments[w],u!=null)for(d in u)h=l(x,d),p=l(u,d),x!==p&&(C&&p&&(i(p)||(g=a(p)))?(g?(g=!1,y=h&&a(h)?h:[]):y=h&&i(h)?h:{},s(x,{name:d,newValue:c(C,y,p)})):typeof p<"u"&&s(x,{name:d,newValue:p}));return x},Q$}var gvt=mvt();const J$=lae(gvt);function eP(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yvt(){const e=[],r={run:n,use:o};return r;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...a);function l(c,...u){const d=e[++i];let h=-1;if(c){s(c);return}for(;++h<a.length;)(u[h]===null||u[h]===void 0)&&(u[h]=a[h]);a=u,d?bvt(d,l)(...u):s(null,...u)}}function o(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),r}}function bvt(e,r){let n;return o;function o(...s){const l=e.length>s.length;let c;l&&s.push(a);try{c=e.apply(this,s)}catch(u){const d=u;if(l&&n)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(s,...l){n||(n=!0,r(s,...l))}function i(s){a(null,s)}}class ha extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(s=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=pvt(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ha.prototype.file="",ha.prototype.name="",ha.prototype.reason="",ha.prototype.message="",ha.prototype.stack="",ha.prototype.column=void 0,ha.prototype.line=void 0,ha.prototype.ancestors=void 0,ha.prototype.cause=void 0,ha.prototype.fatal=void 0,ha.prototype.place=void 0,ha.prototype.ruleId=void 0,ha.prototype.source=void 0;const wl={basename:vvt,dirname:xvt,extname:wvt,join:kvt,sep:"/"};function vvt(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Pb(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let s=-1,l=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),l>-1&&(e.codePointAt(a)===r.codePointAt(l--)?l<0&&(o=a):(l=-1,o=s));return n===o?o=s:o<0&&(o=e.length),e.slice(n,o)}function xvt(e){if(Pb(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function wvt(e){Pb(e);let r=e.length,n=-1,o=0,a=-1,i=0,s;for(;r--;){const l=e.codePointAt(r);if(l===47){if(s){o=r+1;break}continue}n<0&&(s=!0,n=r+1),l===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function kvt(...e){let r=-1,n;for(;++r<e.length;)Pb(e[r]),e[r]&&(n=n===void 0?e[r]:n+"/"+e[r]);return n===void 0?".":_vt(n)}function _vt(e){Pb(e);const r=e.codePointAt(0)===47;let n=Evt(e,!r);return n.length===0&&!r&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function Evt(e,r){let n="",o=0,a=-1,i=0,s=-1,l,c;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",o=0,a=s,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),o=s-a-1;a=s,i=0}else l===46&&i>-1?i++:i=-1}return n}function Pb(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Svt={cwd:Cvt};function Cvt(){return"/"}function tP(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Tvt(e){if(typeof e=="string")e=new URL(e);else if(!tP(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return Avt(e)}function Avt(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n<r.length;)if(r.codePointAt(n)===37&&r.codePointAt(n+1)===50){const o=r.codePointAt(n+2);if(o===70||o===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(r)}const rP=["history","path","basename","stem","extname","dirname"];class Nvt{constructor(r){let n;r?tP(r)?n={path:r}:typeof r=="string"||Rvt(r)?n={value:r}:n=r:n={},this.cwd="cwd"in n?"":Svt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<rP.length;){const i=rP[o];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)rP.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?wl.basename(this.path):void 0}set basename(r){oP(r,"basename"),nP(r,"basename"),this.path=wl.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?wl.dirname(this.path):void 0}set dirname(r){bde(this.basename,"dirname"),this.path=wl.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?wl.extname(this.path):void 0}set extname(r){if(nP(r,"extname"),bde(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wl.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){tP(r)&&(r=Tvt(r)),oP(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?wl.basename(this.path,this.extname):void 0}set stem(r){oP(r,"stem"),nP(r,"stem"),this.path=wl.join(this.dirname||"",r+(this.extname||""))}fail(r,n,o){const a=this.message(r,n,o);throw a.fatal=!0,a}info(r,n,o){const a=this.message(r,n,o);return a.fatal=void 0,a}message(r,n,o){const a=new ha(r,n,o);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function nP(e,r){if(e&&e.includes(wl.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+wl.sep+"`")}function oP(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function bde(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Rvt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $vt=(function(e){const r=this.constructor.prototype,n=r[e],o=function(){return n.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Pvt={}.hasOwnProperty;class aP extends $vt{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=yvt()}copy(){const r=new aP;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];r.use(...o)}return r.data(J$(!0,{},this.namespace)),r}data(r,n){return typeof r=="string"?arguments.length===2?(lP("data",this.frozen),this.namespace[r]=n,this):Pvt.call(this.namespace,r)&&this.namespace[r]||void 0:r?(lP("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const a=n.call(r,...o);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const n=w5(r),o=this.parser||this.Parser;return iP("parse",o),o(String(n),n)}process(r,n){const o=this;return this.freeze(),iP("process",this.parser||this.Parser),sP("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const l=w5(r),c=o.parse(l);o.run(c,l,function(d,h,p){if(d||!h||!p)return u(d);const g=h,y=o.stringify(g,p);Ovt(y)?p.value=y:p.result=y,u(d,p)});function u(d,h){d||!h?s(d):i?i(h):n(void 0,h)}}}processSync(r){let n=!1,o;return this.freeze(),iP("processSync",this.parser||this.Parser),sP("processSync",this.compiler||this.Compiler),this.process(r,a),xde("processSync","process",n),o;function a(i,s){n=!0,gde(i),o=s}}run(r,n,o){vde(r),this.freeze();const a=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?i(void 0,o):new Promise(i);function i(s,l){const c=w5(n);a.run(r,c,u);function u(d,h,p){const g=h||r;d?l(d):s?s(g):o(void 0,g,p)}}}runSync(r,n){let o=!1,a;return this.run(r,n,i),xde("runSync","run",o),a;function i(s,l){gde(s),a=l,o=!0}}stringify(r,n){this.freeze();const o=w5(n),a=this.compiler||this.Compiler;return sP("stringify",a),vde(r),a(r,o)}use(r,...n){const o=this.attachers,a=this.namespace;if(lP("use",this.frozen),r!=null)if(typeof r=="function")c(r,n);else if(typeof r=="object")Array.isArray(r)?l(r):s(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;c(d,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(a.settings=J$(!0,a.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];i(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let h=-1,p=-1;for(;++h<o.length;)if(o[h][0]===u){p=h;break}if(p===-1)o.push([u,...d]);else if(d.length>0){let[g,...y]=d;const x=o[p][1];eP(x)&&eP(g)&&(g=J$(!0,x,g)),o[p]=[u,g,...y]}}}}new aP().freeze();function iP(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function sP(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lP(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vde(e){if(!eP(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xde(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function w5(e){return Mvt(e)?e:new Nvt(e)}function Mvt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ovt(e){return typeof e=="string"||Dvt(e)}function Dvt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}E.createContext({});const wde=(e,r,n)=>n>r?r:n<e?e:n,Lvt=e=>e,k5={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kde={...k5,transform:e=>wde(0,1,e)};({...k5});const Mb=e=>Math.round(e*1e5)/1e5,_de=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ivt(e){return e==null}const zvt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cP=(e,r)=>n=>!!(typeof n=="string"&&zvt.test(n)&&n.startsWith(e)||r&&!Ivt(n)&&Object.prototype.hasOwnProperty.call(n,r)),Ede=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,s,l]=o.match(_de);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},jvt=e=>wde(0,255,e),uP={...k5,transform:e=>Math.round(jvt(e))},Ob={test:cP("rgb","red"),parse:Ede("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+uP.transform(e)+", "+uP.transform(r)+", "+uP.transform(n)+", "+Mb(kde.transform(o))+")"};function Bvt(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const Sde={test:cP("#"),parse:Bvt,transform:Ob.transform},Fvt=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),dP=Fvt("%");({...dP});const _5={test:cP("hsl","hue"),parse:Ede("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+dP.transform(Mb(r))+", "+dP.transform(Mb(n))+", "+Mb(kde.transform(o))+")"},Yh={test:e=>Ob.test(e)||Sde.test(e)||_5.test(e),parse:e=>Ob.test(e)?Ob.parse(e):_5.test(e)?_5.parse(e):Sde.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ob.transform(e):_5.transform(e),getAnimatableNone:e=>{const r=Yh.parse(e);return r.alpha=0,Yh.transform(r)}},Hvt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uvt(e){return isNaN(e)&&typeof e=="string"&&(e.match(_de)?.length||0)+(e.match(Hvt)?.length||0)>0}const Cde="number",Tde="color",Vvt="var",qvt="var(",Ade="${}",Yvt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Nde(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const s=r.replace(Yvt,l=>(Yh.test(l)?(o.color.push(i),a.push(Tde),n.push(Yh.parse(l))):l.startsWith(qvt)?(o.var.push(i),a.push(Vvt),n.push(l)):(o.number.push(i),a.push(Cde),n.push(parseFloat(l))),++i,Ade)).split(Ade);return{values:n,split:s,indexes:o,types:a}}function Rde(e){return Nde(e).values}function $de(e){const{split:r,types:n}=Nde(e),o=r.length;return a=>{let i="";for(let s=0;s<o;s++)if(i+=r[s],a[s]!==void 0){const l=n[s];l===Cde?i+=Mb(a[s]):l===Tde?i+=Yh.transform(a[s]):i+=a[s]}return i}}const Wvt=e=>typeof e=="number"?0:Yh.test(e)?Yh.getAnimatableNone(e):e;function Xvt(e){const r=Rde(e);return $de(e)(r.map(Wvt))}const Gvt={test:Uvt,parse:Rde,createTransformer:$de,getAnimatableNone:Xvt},Pde=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];new Set(Pde);const Kvt=new Set(["x","y","z"]);Pde.filter(e=>!Kvt.has(e)),{...Gvt},{...k5},E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),E.createContext(null),E.createContext({strict:!1});function $2t(e){}try{(void 0).default}catch{}""+(e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase())("framerAppearId"),E.createContext({});const Mde=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e);Mde("applewebkit/")&&Mde("chrome/"),E.createContext(null);var hP,Ode;function fP(){if(Ode)return hP;Ode=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(d){d&&(this._isDirected=Object.hasOwn(d,"directed")?d.directed:!0,this._isMultigraph=Object.hasOwn(d,"multigraph")?d.multigraph:!1,this._isCompound=Object.hasOwn(d,"compound")?d.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(d){return this._label=d,this}graph(){return this._label}setDefaultNodeLabel(d){return this._defaultNodeLabelFn=d,typeof d!="function"&&(this._defaultNodeLabelFn=()=>d),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var d=this;return this.nodes().filter(h=>Object.keys(d._in[h]).length===0)}sinks(){var d=this;return this.nodes().filter(h=>Object.keys(d._out[h]).length===0)}setNodes(d,h){var p=arguments,g=this;return d.forEach(function(y){p.length>1?g.setNode(y,h):g.setNode(y)}),this}setNode(d,h){return Object.hasOwn(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=h),this):(this._nodes[d]=arguments.length>1?h:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]=r,this._children[d]={},this._children[r][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)}node(d){return this._nodes[d]}hasNode(d){return Object.hasOwn(this._nodes,d)}removeNode(d){var h=this;if(Object.hasOwn(this._nodes,d)){var p=g=>h.removeEdge(h._edgeObjs[g]);delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],this.children(d).forEach(function(g){h.setParent(g)}),delete this._children[d]),Object.keys(this._in[d]).forEach(p),delete this._in[d],delete this._preds[d],Object.keys(this._out[d]).forEach(p),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this}setParent(d,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h===void 0)h=r;else{h+="";for(var p=h;p!==void 0;p=this.parent(p))if(p===d)throw new Error("Setting "+h+" as parent of "+d+" would create a cycle");this.setNode(h)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=h,this._children[h][d]=!0,this}_removeFromParentsChildList(d){delete this._children[this._parent[d]][d]}parent(d){if(this._isCompound){var h=this._parent[d];if(h!==r)return h}}children(d=r){if(this._isCompound){var h=this._children[d];if(h)return Object.keys(h)}else{if(d===r)return this.nodes();if(this.hasNode(d))return[]}}predecessors(d){var h=this._preds[d];if(h)return Object.keys(h)}successors(d){var h=this._sucs[d];if(h)return Object.keys(h)}neighbors(d){var h=this.predecessors(d);if(h){const g=new Set(h);for(var p of this.successors(d))g.add(p);return Array.from(g.values())}}isLeaf(d){var h;return this.isDirected()?h=this.successors(d):h=this.neighbors(d),h.length===0}filterNodes(d){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var p=this;Object.entries(this._nodes).forEach(function([x,w]){d(x)&&h.setNode(x,w)}),Object.values(this._edgeObjs).forEach(function(x){h.hasNode(x.v)&&h.hasNode(x.w)&&h.setEdge(x,p.edge(x))});var g={};function y(x){var w=p.parent(x);return w===void 0||h.hasNode(w)?(g[x]=w,w):w in g?g[w]:y(w)}return this._isCompound&&h.nodes().forEach(x=>h.setParent(x,y(x))),h}setDefaultEdgeLabel(d){return this._defaultEdgeLabelFn=d,typeof d!="function"&&(this._defaultEdgeLabelFn=()=>d),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(d,h){var p=this,g=arguments;return d.reduce(function(y,x){return g.length>1?p.setEdge(y,x,h):p.setEdge(y,x),x}),this}setEdge(){var d,h,p,g,y=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(d=x.v,h=x.w,p=x.name,arguments.length===2&&(g=arguments[1],y=!0)):(d=x,h=arguments[1],p=arguments[3],arguments.length>2&&(g=arguments[2],y=!0)),d=""+d,h=""+h,p!==void 0&&(p=""+p);var w=s(this._isDirected,d,h,p);if(Object.hasOwn(this._edgeLabels,w))return y&&(this._edgeLabels[w]=g),this;if(p!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(h),this._edgeLabels[w]=y?g:this._defaultEdgeLabelFn(d,h,p);var k=l(this._isDirected,d,h,p);return d=k.v,h=k.w,Object.freeze(k),this._edgeObjs[w]=k,a(this._preds[h],d),a(this._sucs[d],h),this._in[h][w]=k,this._out[d][w]=k,this._edgeCount++,this}edge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p);return this._edgeLabels[g]}edgeAsObj(){const d=this.edge(...arguments);return typeof d!="object"?{label:d}:d}hasEdge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p);return Object.hasOwn(this._edgeLabels,g)}removeEdge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p),y=this._edgeObjs[g];return y&&(d=y.v,h=y.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[h],d),i(this._sucs[d],h),delete this._in[h][g],delete this._out[d][g],this._edgeCount--),this}inEdges(d,h){var p=this._in[d];if(p){var g=Object.values(p);return h?g.filter(y=>y.v===h):g}}outEdges(d,h){var p=this._out[d];if(p){var g=Object.values(p);return h?g.filter(y=>y.w===h):g}}nodeEdges(d,h){var p=this.inEdges(d,h);if(p)return p.concat(this.outEdges(d,h))}}function a(u,d){u[d]?u[d]++:u[d]=1}function i(u,d){--u[d]||delete u[d]}function s(u,d,h,p){var g=""+d,y=""+h;if(!u&&g>y){var x=g;g=y,y=x}return g+n+y+n+(p===void 0?e:p)}function l(u,d,h,p){var g=""+d,y=""+h;if(!u&&g>y){var x=g;g=y,y=x}var w={v:g,w:y};return p&&(w.name=p),w}function c(u,d){return s(u,d.v,d.w,d.name)}return hP=o,hP}var Dde,Lde;function Zvt(){return Lde||(Lde=1,Dde="2.2.4"),Dde}var Ide,zde;function Qvt(){return zde||(zde=1,Ide={Graph:fP(),version:Zvt()}),Ide}var pP,jde;function Jvt(){if(jde)return pP;jde=1;var e=fP();pP={write:r,read:a};function r(i){var s={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(s.value=structuredClone(i.graph())),s}function n(i){return i.nodes().map(function(s){var l=i.node(s),c=i.parent(s),u={v:s};return l!==void 0&&(u.value=l),c!==void 0&&(u.parent=c),u})}function o(i){return i.edges().map(function(s){var l=i.edge(s),c={v:s.v,w:s.w};return s.name!==void 0&&(c.name=s.name),l!==void 0&&(c.value=l),c})}function a(i){var s=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(l){s.setNode(l.v,l.value),l.parent&&s.setParent(l.v,l.parent)}),i.edges.forEach(function(l){s.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),s}return pP}var mP,Bde;function ext(){if(Bde)return mP;Bde=1,mP=e;function e(r){var n={},o=[],a;function i(s){Object.hasOwn(n,s)||(n[s]=!0,a.push(s),r.successors(s).forEach(i),r.predecessors(s).forEach(i))}return r.nodes().forEach(function(s){a=[],i(s),a.length&&o.push(a)}),o}return mP}var gP,Fde;function Hde(){if(Fde)return gP;Fde=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,s=i.length;return a[n]=s,i.push({key:n,priority:o}),this._decrease(s),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,s=n;a<o.length&&(s=o[a].priority<o[s].priority?a:s,i<o.length&&(s=o[i].priority<o[s].priority?i:s),s!==n&&(this._swap(n,s),this._heapify(s)))}_decrease(n){for(var o=this._arr,a=o[n].priority,i;n!==0&&(i=n>>1,!(o[i].priority<a));)this._swap(n,i),n=i}_swap(n,o){var a=this._arr,i=this._keyIndices,s=a[n],l=a[o];a[n]=l,a[o]=s,i[l.key]=n,i[s.key]=o}}return gP=e,gP}var yP,Ude;function Vde(){if(Ude)return yP;Ude=1;var e=Hde();yP=n;var r=()=>1;function n(a,i,s,l){return o(a,String(i),s||r,l||function(c){return a.outEdges(c)})}function o(a,i,s,l){var c={},u=new e,d,h,p=function(g){var y=g.v!==d?g.v:g.w,x=c[y],w=s(g),k=h.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+w);k<x.distance&&(x.distance=k,x.predecessor=d,u.decrease(y,k))};for(a.nodes().forEach(function(g){var y=g===i?0:Number.POSITIVE_INFINITY;c[g]={distance:y},u.add(g,y)});u.size()>0&&(d=u.removeMin(),h=c[d],h.distance!==Number.POSITIVE_INFINITY);)l(d).forEach(p);return c}return yP}var bP,qde;function txt(){if(qde)return bP;qde=1;var e=Vde();bP=r;function r(n,o,a){return n.nodes().reduce(function(i,s){return i[s]=e(n,s,o,a),i},{})}return bP}var vP,Yde;function Wde(){if(Yde)return vP;Yde=1,vP=e;function e(r){var n=0,o=[],a={},i=[];function s(l){var c=a[l]={onStack:!0,lowlink:n,index:n++};if(o.push(l),r.successors(l).forEach(function(h){Object.hasOwn(a,h)?a[h].onStack&&(c.lowlink=Math.min(c.lowlink,a[h].index)):(s(h),c.lowlink=Math.min(c.lowlink,a[h].lowlink))}),c.lowlink===c.index){var u=[],d;do d=o.pop(),a[d].onStack=!1,u.push(d);while(l!==d);i.push(u)}}return r.nodes().forEach(function(l){Object.hasOwn(a,l)||s(l)}),i}return vP}var xP,Xde;function rxt(){if(Xde)return xP;Xde=1;var e=Wde();xP=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return xP}var wP,Gde;function nxt(){if(Gde)return wP;Gde=1,wP=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(s){return o.outEdges(s)})}function n(o,a,i){var s={},l=o.nodes();return l.forEach(function(c){s[c]={},s[c][c]={distance:0},l.forEach(function(u){c!==u&&(s[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var d=u.v===c?u.w:u.v,h=a(u);s[c][d]={distance:h,predecessor:c}})}),l.forEach(function(c){var u=s[c];l.forEach(function(d){var h=s[d];l.forEach(function(p){var g=h[c],y=u[p],x=h[p],w=g.distance+y.distance;w<x.distance&&(x.distance=w,x.predecessor=y.predecessor)})})}),s}return wP}var kP,Kde;function Zde(){if(Kde)return kP;Kde=1;function e(n){var o={},a={},i=[];function s(l){if(Object.hasOwn(a,l))throw new r;Object.hasOwn(o,l)||(a[l]=!0,o[l]=!0,n.predecessors(l).forEach(s),delete a[l],i.push(l))}if(n.sinks().forEach(s),Object.keys(o).length!==n.nodeCount())throw new r;return i}class r extends Error{constructor(){super(...arguments)}}return kP=e,e.CycleException=r,kP}var _P,Qde;function oxt(){if(Qde)return _P;Qde=1;var e=Zde();_P=r;function r(n){try{e(n)}catch(o){if(o instanceof e.CycleException)return!1;throw o}return!0}return _P}var EP,Jde;function ehe(){if(Jde)return EP;Jde=1,EP=e;function e(a,i,s){Array.isArray(i)||(i=[i]);var l=a.isDirected()?h=>a.successors(h):h=>a.neighbors(h),c=s==="post"?r:n,u=[],d={};return i.forEach(h=>{if(!a.hasNode(h))throw new Error("Graph does not have node: "+h);c(h,l,d,u)}),u}function r(a,i,s,l){for(var c=[[a,!1]];c.length>0;){var u=c.pop();u[1]?l.push(u[0]):Object.hasOwn(s,u[0])||(s[u[0]]=!0,c.push([u[0],!0]),o(i(u[0]),d=>c.push([d,!1])))}}function n(a,i,s,l){for(var c=[a];c.length>0;){var u=c.pop();Object.hasOwn(s,u)||(s[u]=!0,l.push(u),o(i(u),d=>c.push(d)))}}function o(a,i){for(var s=a.length;s--;)i(a[s],s,a);return a}return EP}var SP,the;function axt(){if(the)return SP;the=1;var e=ehe();SP=r;function r(n,o){return e(n,o,"post")}return SP}var CP,rhe;function ixt(){if(rhe)return CP;rhe=1;var e=ehe();CP=r;function r(n,o){return e(n,o,"pre")}return CP}var TP,nhe;function sxt(){if(nhe)return TP;nhe=1;var e=fP(),r=Hde();TP=n;function n(o,a){var i=new e,s={},l=new r,c;function u(h){var p=h.v===c?h.w:h.v,g=l.priority(p);if(g!==void 0){var y=a(h);y<g&&(s[p]=c,l.decrease(p,y))}}if(o.nodeCount()===0)return i;o.nodes().forEach(function(h){l.add(h,Number.POSITIVE_INFINITY),i.setNode(h)}),l.decrease(o.nodes()[0],0);for(var d=!1;l.size()>0;){if(c=l.removeMin(),Object.hasOwn(s,c))i.setEdge(c,s[c]);else{if(d)throw new Error("Input graph is not connected: "+o);d=!0}o.nodeEdges(c).forEach(u)}return i}return TP}var ohe,ahe;function lxt(){return ahe||(ahe=1,ohe={components:ext(),dijkstra:Vde(),dijkstraAll:txt(),findCycles:rxt(),floydWarshall:nxt(),isAcyclic:oxt(),postorder:axt(),preorder:ixt(),prim:sxt(),tarjan:Wde(),topsort:Zde()}),ohe}var AP,ihe;function Is(){if(ihe)return AP;ihe=1;var e=Qvt();return AP={Graph:e.Graph,json:Jvt(),alg:lxt(),version:e.version},AP}var NP,she;function cxt(){if(she)return NP;she=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,s=i._prev;for(;s!==i;)a.push(JSON.stringify(s,n)),s=s._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return NP=e,NP}var RP,lhe;function uxt(){if(lhe)return RP;lhe=1;let e=Is().Graph,r=cxt();RP=o;let n=()=>1;function o(u,d){if(u.nodeCount()<=1)return[];let h=s(u,d||n);return a(h.graph,h.buckets,h.zeroIdx).flatMap(p=>u.outEdges(p.v,p.w))}function a(u,d,h){let p=[],g=d[d.length-1],y=d[0],x;for(;u.nodeCount();){for(;x=y.dequeue();)i(u,d,h,x);for(;x=g.dequeue();)i(u,d,h,x);if(u.nodeCount()){for(let w=d.length-2;w>0;--w)if(x=d[w].dequeue(),x){p=p.concat(i(u,d,h,x,!0));break}}}return p}function i(u,d,h,p,g){let y=g?[]:void 0;return u.inEdges(p.v).forEach(x=>{let w=u.edge(x),k=u.node(x.v);g&&y.push({v:x.v,w:x.w}),k.out-=w,l(d,h,k)}),u.outEdges(p.v).forEach(x=>{let w=u.edge(x),k=x.w,C=u.node(k);C.in-=w,l(d,h,C)}),u.removeNode(p.v),y}function s(u,d){let h=new e,p=0,g=0;u.nodes().forEach(w=>{h.setNode(w,{v:w,in:0,out:0})}),u.edges().forEach(w=>{let k=h.edge(w.v,w.w)||0,C=d(w),_=k+C;h.setEdge(w.v,w.w,_),g=Math.max(g,h.node(w.v).out+=C),p=Math.max(p,h.node(w.w).in+=C)});let y=c(g+p+3).map(()=>new r),x=p+1;return h.nodes().forEach(w=>{l(y,x,h.node(w))}),{graph:h,buckets:y,zeroIdx:x}}function l(u,d,h){h.out?h.in?u[h.out-h.in+d].enqueue(h):u[u.length-1].enqueue(h):u[0].enqueue(h)}function c(u){const d=[];for(let h=0;h<u;h++)d.push(h);return d}return RP}var $P,che;function Rn(){if(che)return $P;che=1;let e=Is().Graph;$P={addBorderNode:d,addDummyNode:r,applyWithChunking:g,asNonCompoundGraph:o,buildLayerMatrix:l,intersectRect:s,mapValues:N,maxRank:y,normalizeRanks:c,notime:k,partition:x,pick:A,predecessorWeights:i,range:T,removeEmptyRanks:u,simplify:n,successorWeights:a,time:w,uniqueId:_,zipObject:$};function r(R,M,O,B){for(var I=B;R.hasNode(I);)I=_(B);return O.dummy=M,R.setNode(I,O),I}function n(R){let M=new e().setGraph(R.graph());return R.nodes().forEach(O=>M.setNode(O,R.node(O))),R.edges().forEach(O=>{let B=M.edge(O.v,O.w)||{weight:0,minlen:1},I=R.edge(O);M.setEdge(O.v,O.w,{weight:B.weight+I.weight,minlen:Math.max(B.minlen,I.minlen)})}),M}function o(R){let M=new e({multigraph:R.isMultigraph()}).setGraph(R.graph());return R.nodes().forEach(O=>{R.children(O).length||M.setNode(O,R.node(O))}),R.edges().forEach(O=>{M.setEdge(O,R.edge(O))}),M}function a(R){let M=R.nodes().map(O=>{let B={};return R.outEdges(O).forEach(I=>{B[I.w]=(B[I.w]||0)+R.edge(I).weight}),B});return $(R.nodes(),M)}function i(R){let M=R.nodes().map(O=>{let B={};return R.inEdges(O).forEach(I=>{B[I.v]=(B[I.v]||0)+R.edge(I).weight}),B});return $(R.nodes(),M)}function s(R,M){let O=R.x,B=R.y,I=M.x-O,Y=M.y-B,D=R.width/2,V=R.height/2;if(!I&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let L,U;return Math.abs(Y)*D>Math.abs(I)*V?(Y<0&&(V=-V),L=V*I/Y,U=V):(I<0&&(D=-D),L=D,U=D*Y/I),{x:O+L,y:B+U}}function l(R){let M=T(y(R)+1).map(()=>[]);return R.nodes().forEach(O=>{let B=R.node(O),I=B.rank;I!==void 0&&(M[I][B.order]=O)}),M}function c(R){let M=R.nodes().map(B=>{let I=R.node(B).rank;return I===void 0?Number.MAX_VALUE:I}),O=g(Math.min,M);R.nodes().forEach(B=>{let I=R.node(B);Object.hasOwn(I,"rank")&&(I.rank-=O)})}function u(R){let M=R.nodes().map(D=>R.node(D).rank),O=g(Math.min,M),B=[];R.nodes().forEach(D=>{let V=R.node(D).rank-O;B[V]||(B[V]=[]),B[V].push(D)});let I=0,Y=R.graph().nodeRankFactor;Array.from(B).forEach((D,V)=>{D===void 0&&V%Y!==0?--I:D!==void 0&&I&&D.forEach(L=>R.node(L).rank+=I)})}function d(R,M,O,B){let I={width:0,height:0};return arguments.length>=4&&(I.rank=O,I.order=B),r(R,"border",I,M)}function h(R,M=p){const O=[];for(let B=0;B<R.length;B+=M){const I=R.slice(B,B+M);O.push(I)}return O}const p=65535;function g(R,M){if(M.length>p){const O=h(M);return R.apply(null,O.map(B=>R.apply(null,B)))}else return R.apply(null,M)}function y(R){const M=R.nodes().map(O=>{let B=R.node(O).rank;return B===void 0?Number.MIN_VALUE:B});return g(Math.max,M)}function x(R,M){let O={lhs:[],rhs:[]};return R.forEach(B=>{M(B)?O.lhs.push(B):O.rhs.push(B)}),O}function w(R,M){let O=Date.now();try{return M()}finally{console.log(R+" time: "+(Date.now()-O)+"ms")}}function k(R,M){return M()}let C=0;function _(R){var M=++C;return R+(""+M)}function T(R,M,O=1){M==null&&(M=R,R=0);let B=Y=>Y<M;O<0&&(B=Y=>M<Y);const I=[];for(let Y=R;B(Y);Y+=O)I.push(Y);return I}function A(R,M){const O={};for(const B of M)R[B]!==void 0&&(O[B]=R[B]);return O}function N(R,M){let O=M;return typeof M=="string"&&(O=B=>B[M]),Object.entries(R).reduce((B,[I,Y])=>(B[I]=O(Y,I),B),{})}function $(R,M){return R.reduce((O,B,I)=>(O[B]=M[I],O),{})}return $P}var PP,uhe;function dxt(){if(uhe)return PP;uhe=1;let e=uxt(),r=Rn().uniqueId;PP={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,s(i)):o(i)).forEach(l=>{let c=i.edge(l);i.removeEdge(l),c.forwardName=l.name,c.reversed=!0,i.setEdge(l.w,l.v,c,r("rev"))});function s(l){return c=>l.edge(c).weight}}function o(i){let s=[],l={},c={};function u(d){Object.hasOwn(c,d)||(c[d]=!0,l[d]=!0,i.outEdges(d).forEach(h=>{Object.hasOwn(l,h.w)?s.push(h):u(h.w)}),delete l[d])}return i.nodes().forEach(u),s}function a(i){i.edges().forEach(s=>{let l=i.edge(s);if(l.reversed){i.removeEdge(s);let c=l.forwardName;delete l.reversed,delete l.forwardName,i.setEdge(s.w,s.v,l,c)}})}return PP}var MP,dhe;function hxt(){if(dhe)return MP;dhe=1;let e=Rn();MP={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let s=i.v,l=a.node(s).rank,c=i.w,u=a.node(c).rank,d=i.name,h=a.edge(i),p=h.labelRank;if(u===l+1)return;a.removeEdge(i);let g,y,x;for(x=0,++l;l<u;++x,++l)h.points=[],y={width:0,height:0,edgeLabel:h,edgeObj:i,rank:l},g=e.addDummyNode(a,"edge",y,"_d"),l===p&&(y.width=h.width,y.height=h.height,y.dummy="edge-label",y.labelpos=h.labelpos),a.setEdge(s,g,{weight:h.weight},d),x===0&&a.graph().dummyChains.push(g),s=g;a.setEdge(s,c,{weight:h.weight},d)}function o(a){a.graph().dummyChains.forEach(i=>{let s=a.node(i),l=s.edgeLabel,c;for(a.setEdge(s.edgeObj,l);s.dummy;)c=a.successors(i)[0],a.removeNode(i),l.points.push({x:s.x,y:s.y}),s.dummy==="edge-label"&&(l.x=s.x,l.y=s.y,l.width=s.width,l.height=s.height),i=c,s=a.node(i)})}return MP}var OP,hhe;function E5(){if(hhe)return OP;hhe=1;const{applyWithChunking:e}=Rn();OP={longestPath:r,slack:n};function r(o){var a={};function i(s){var l=o.node(s);if(Object.hasOwn(a,s))return l.rank;a[s]=!0;let c=o.outEdges(s).map(d=>d==null?Number.POSITIVE_INFINITY:i(d.w)-o.edge(d).minlen);var u=e(Math.min,c);return u===Number.POSITIVE_INFINITY&&(u=0),l.rank=u}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return OP}var DP,fhe;function phe(){if(fhe)return DP;fhe=1;var e=Is().Graph,r=E5().slack;DP=n;function n(s){var l=new e({directed:!1}),c=s.nodes()[0],u=s.nodeCount();l.setNode(c,{});for(var d,h;o(l,s)<u;)d=a(l,s),h=l.hasNode(d.v)?r(s,d):-r(s,d),i(l,s,h);return l}function o(s,l){function c(u){l.nodeEdges(u).forEach(d=>{var h=d.v,p=u===h?d.w:h;!s.hasNode(p)&&!r(l,d)&&(s.setNode(p,{}),s.setEdge(u,p,{}),c(p))})}return s.nodes().forEach(c),s.nodeCount()}function a(s,l){return l.edges().reduce((c,u)=>{let d=Number.POSITIVE_INFINITY;return s.hasNode(u.v)!==s.hasNode(u.w)&&(d=r(l,u)),d<c[0]?[d,u]:c},[Number.POSITIVE_INFINITY,null])[1]}function i(s,l,c){s.nodes().forEach(u=>l.node(u).rank+=c)}return DP}var LP,mhe;function fxt(){if(mhe)return LP;mhe=1;var e=phe(),r=E5().slack,n=E5().longestPath,o=Is().alg.preorder,a=Is().alg.postorder,i=Rn().simplify;LP=s,s.initLowLimValues=d,s.initCutValues=l,s.calcCutValue=u,s.leaveEdge=p,s.enterEdge=g,s.exchangeEdges=y;function s(C){C=i(C),n(C);var _=e(C);d(_),l(_,C);for(var T,A;T=p(_);)A=g(_,C,T),y(_,C,T,A)}function l(C,_){var T=a(C,C.nodes());T=T.slice(0,T.length-1),T.forEach(A=>c(C,_,A))}function c(C,_,T){var A=C.node(T),N=A.parent;C.edge(T,N).cutvalue=u(C,_,T)}function u(C,_,T){var A=C.node(T),N=A.parent,$=!0,R=_.edge(T,N),M=0;return R||($=!1,R=_.edge(N,T)),M=R.weight,_.nodeEdges(T).forEach(O=>{var B=O.v===T,I=B?O.w:O.v;if(I!==N){var Y=B===$,D=_.edge(O).weight;if(M+=Y?D:-D,w(C,T,I)){var V=C.edge(T,I).cutvalue;M+=Y?-V:V}}}),M}function d(C,_){arguments.length<2&&(_=C.nodes()[0]),h(C,{},1,_)}function h(C,_,T,A,N){var $=T,R=C.node(A);return _[A]=!0,C.neighbors(A).forEach(M=>{Object.hasOwn(_,M)||(T=h(C,_,T,M,A))}),R.low=$,R.lim=T++,N?R.parent=N:delete R.parent,T}function p(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,T){var A=T.v,N=T.w;_.hasEdge(A,N)||(A=T.w,N=T.v);var $=C.node(A),R=C.node(N),M=$,O=!1;$.lim>R.lim&&(M=R,O=!0);var B=_.edges().filter(I=>O===k(C,C.node(I.v),M)&&O!==k(C,C.node(I.w),M));return B.reduce((I,Y)=>r(_,Y)<r(_,I)?Y:I)}function y(C,_,T,A){var N=T.v,$=T.w;C.removeEdge(N,$),C.setEdge(A.v,A.w,{}),d(C),l(C,_),x(C,_)}function x(C,_){var T=C.nodes().find(N=>!_.node(N).parent),A=o(C,T);A=A.slice(1),A.forEach(N=>{var $=C.node(N).parent,R=_.edge(N,$),M=!1;R||(R=_.edge($,N),M=!0),_.node(N).rank=_.node($).rank+(M?R.minlen:-R.minlen)})}function w(C,_,T){return C.hasEdge(_,T)}function k(C,_,T){return T.low<=_.lim&&_.lim<=T.lim}return LP}var IP,ghe;function pxt(){if(ghe)return IP;ghe=1;var e=E5(),r=e.longestPath,n=phe(),o=fxt();IP=a;function a(c){var u=c.graph().ranker;if(u instanceof Function)return u(c);switch(c.graph().ranker){case"network-simplex":l(c);break;case"tight-tree":s(c);break;case"longest-path":i(c);break;case"none":break;default:l(c)}}var i=r;function s(c){r(c),n(c)}function l(c){o(c)}return IP}var zP,yhe;function mxt(){if(yhe)return zP;yhe=1,zP=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let s=o.node(i),l=s.edgeObj,c=r(o,a,l.v,l.w),u=c.path,d=c.lca,h=0,p=u[h],g=!0;for(;i!==l.w;){if(s=o.node(i),g){for(;(p=u[h])!==d&&o.node(p).maxRank<s.rank;)h++;p===d&&(g=!1)}if(!g){for(;h<u.length-1&&o.node(p=u[h+1]).minRank<=s.rank;)h++;p=u[h]}o.setParent(i,p),i=o.successors(i)[0]}})}function r(o,a,i,s){let l=[],c=[],u=Math.min(a[i].low,a[s].low),d=Math.max(a[i].lim,a[s].lim),h,p;h=i;do h=o.parent(h),l.push(h);while(h&&(a[h].low>u||d>a[h].lim));for(p=h,h=s;(h=o.parent(h))!==p;)c.push(h);return{path:l.concat(c.reverse()),lca:p}}function n(o){let a={},i=0;function s(l){let c=i;o.children(l).forEach(s),a[l]={low:c,lim:i++}}return o.children().forEach(s),a}return zP}var jP,bhe;function gxt(){if(bhe)return jP;bhe=1;let e=Rn();jP={run:r,cleanup:i};function r(s){let l=e.addDummyNode(s,"root",{},"_root"),c=o(s),u=Object.values(c),d=e.applyWithChunking(Math.max,u)-1,h=2*d+1;s.graph().nestingRoot=l,s.edges().forEach(g=>s.edge(g).minlen*=h);let p=a(s)+1;s.children().forEach(g=>n(s,l,h,p,d,c,g)),s.graph().nodeRankFactor=h}function n(s,l,c,u,d,h,p){let g=s.children(p);if(!g.length){p!==l&&s.setEdge(l,p,{weight:0,minlen:c});return}let y=e.addBorderNode(s,"_bt"),x=e.addBorderNode(s,"_bb"),w=s.node(p);s.setParent(y,p),w.borderTop=y,s.setParent(x,p),w.borderBottom=x,g.forEach(k=>{n(s,l,c,u,d,h,k);let C=s.node(k),_=C.borderTop?C.borderTop:k,T=C.borderBottom?C.borderBottom:k,A=C.borderTop?u:2*u,N=_!==T?1:d-h[p]+1;s.setEdge(y,_,{weight:A,minlen:N,nestingEdge:!0}),s.setEdge(T,x,{weight:A,minlen:N,nestingEdge:!0})}),s.parent(p)||s.setEdge(l,y,{weight:0,minlen:d+h[p]})}function o(s){var l={};function c(u,d){var h=s.children(u);h&&h.length&&h.forEach(p=>c(p,d+1)),l[u]=d}return s.children().forEach(u=>c(u,1)),l}function a(s){return s.edges().reduce((l,c)=>l+s.edge(c).weight,0)}function i(s){var l=s.graph();s.removeNode(l.nestingRoot),delete l.nestingRoot,s.edges().forEach(c=>{var u=s.edge(c);u.nestingEdge&&s.removeEdge(c)})}return jP}var BP,vhe;function yxt(){if(vhe)return BP;vhe=1;let e=Rn();BP=r;function r(o){function a(i){let s=o.children(i),l=o.node(i);if(s.length&&s.forEach(a),Object.hasOwn(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(let c=l.minRank,u=l.maxRank+1;c<u;++c)n(o,"borderLeft","_bl",i,l,c),n(o,"borderRight","_br",i,l,c)}}o.children().forEach(a)}function n(o,a,i,s,l,c){let u={width:0,height:0,rank:c,borderType:a},d=l[a][c-1],h=e.addDummyNode(o,"border",u,i);l[a][c]=h,o.setParent(h,s),d&&o.setEdge(d,h,{weight:1})}return BP}var FP,xhe;function bxt(){if(xhe)return FP;xhe=1,FP={adjust:e,undo:r};function e(c){let u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&n(c)}function r(c){let u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&a(c),(u==="lr"||u==="rl")&&(s(c),n(c))}function n(c){c.nodes().forEach(u=>o(c.node(u))),c.edges().forEach(u=>o(c.edge(u)))}function o(c){let u=c.width;c.width=c.height,c.height=u}function a(c){c.nodes().forEach(u=>i(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(i),Object.hasOwn(d,"y")&&i(d)})}function i(c){c.y=-c.y}function s(c){c.nodes().forEach(u=>l(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(l),Object.hasOwn(d,"x")&&l(d)})}function l(c){let u=c.x;c.x=c.y,c.y=u}return FP}var HP,whe;function vxt(){if(whe)return HP;whe=1;let e=Rn();HP=r;function r(n){let o={},a=n.nodes().filter(u=>!n.children(u).length),i=a.map(u=>n.node(u).rank),s=e.applyWithChunking(Math.max,i),l=e.range(s+1).map(()=>[]);function c(u){if(o[u])return;o[u]=!0;let d=n.node(u);l[d.rank].push(u),n.successors(u).forEach(c)}return a.sort((u,d)=>n.node(u).rank-n.node(d).rank).forEach(c),l}return HP}var UP,khe;function xxt(){if(khe)return UP;khe=1;let e=Rn().zipObject;UP=r;function r(o,a){let i=0;for(let s=1;s<a.length;++s)i+=n(o,a[s-1],a[s]);return i}function n(o,a,i){let s=e(i,i.map((p,g)=>g)),l=a.flatMap(p=>o.outEdges(p).map(g=>({pos:s[g.w],weight:o.edge(g).weight})).sort((g,y)=>g.pos-y.pos)),c=1;for(;c<i.length;)c<<=1;let u=2*c-1;c-=1;let d=new Array(u).fill(0),h=0;return l.forEach(p=>{let g=p.pos+c;d[g]+=p.weight;let y=0;for(;g>0;)g%2&&(y+=d[g+1]),g=g-1>>1,d[g]+=p.weight;h+=p.weight*y}),h}return UP}var VP,_he;function wxt(){if(_he)return VP;_he=1,VP=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((s,l)=>{let c=r.edge(l),u=r.node(l.v);return{sum:s.sum+c.weight*u.order,weight:s.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return VP}var qP,Ehe;function kxt(){if(Ehe)return qP;Ehe=1;let e=Rn();qP=r;function r(a,i){let s={};a.forEach((c,u)=>{let d=s[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:u};c.barycenter!==void 0&&(d.barycenter=c.barycenter,d.weight=c.weight)}),i.edges().forEach(c=>{let u=s[c.v],d=s[c.w];u!==void 0&&d!==void 0&&(d.indegree++,u.out.push(s[c.w]))});let l=Object.values(s).filter(c=>!c.indegree);return n(l)}function n(a){let i=[];function s(c){return u=>{u.merged||(u.barycenter===void 0||c.barycenter===void 0||u.barycenter>=c.barycenter)&&o(c,u)}}function l(c){return u=>{u.in.push(c),--u.indegree===0&&a.push(u)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(s(c)),c.out.forEach(l(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let s=0,l=0;a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),i.weight&&(s+=i.barycenter*i.weight,l+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=s/l,a.weight=l,a.i=Math.min(i.i,a.i),i.merged=!0}return qP}var YP,She;function _xt(){if(She)return YP;She=1;let e=Rn();YP=r;function r(a,i){let s=e.partition(a,y=>Object.hasOwn(y,"barycenter")),l=s.lhs,c=s.rhs.sort((y,x)=>x.i-y.i),u=[],d=0,h=0,p=0;l.sort(o(!!i)),p=n(u,c,p),l.forEach(y=>{p+=y.vs.length,u.push(y.vs),d+=y.barycenter*y.weight,h+=y.weight,p=n(u,c,p)});let g={vs:u.flat(!0)};return h&&(g.barycenter=d/h,g.weight=h),g}function n(a,i,s){let l;for(;i.length&&(l=i[i.length-1]).i<=s;)i.pop(),a.push(l.vs),s++;return s}function o(a){return(i,s)=>i.barycenter<s.barycenter?-1:i.barycenter>s.barycenter?1:a?s.i-i.i:i.i-s.i}return YP}var WP,Che;function Ext(){if(Che)return WP;Che=1;let e=wxt(),r=kxt(),n=_xt();WP=o;function o(s,l,c,u){let d=s.children(l),h=s.node(l),p=h?h.borderLeft:void 0,g=h?h.borderRight:void 0,y={};p&&(d=d.filter(C=>C!==p&&C!==g));let x=e(s,d);x.forEach(C=>{if(s.children(C.v).length){let _=o(s,C.v,c,u);y[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let w=r(x,c);a(w,y);let k=n(w,u);if(p&&(k.vs=[p,k.vs,g].flat(!0),s.predecessors(p).length)){let C=s.node(s.predecessors(p)[0]),_=s.node(s.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(s,l){s.forEach(c=>{c.vs=c.vs.flatMap(u=>l[u]?l[u].vs:u)})}function i(s,l){s.barycenter!==void 0?(s.barycenter=(s.barycenter*s.weight+l.barycenter*l.weight)/(s.weight+l.weight),s.weight+=l.weight):(s.barycenter=l.barycenter,s.weight=l.weight)}return WP}var XP,The;function Sxt(){if(The)return XP;The=1;let e=Is().Graph,r=Rn();XP=n;function n(a,i,s){let l=o(a),c=new e({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(u=>a.node(u));return a.nodes().forEach(u=>{let d=a.node(u),h=a.parent(u);(d.rank===i||d.minRank<=i&&i<=d.maxRank)&&(c.setNode(u),c.setParent(u,h||l),a[s](u).forEach(p=>{let g=p.v===u?p.w:p.v,y=c.edge(g,u),x=y!==void 0?y.weight:0;c.setEdge(g,u,{weight:a.edge(p).weight+x})}),Object.hasOwn(d,"minRank")&&c.setNode(u,{borderLeft:d.borderLeft[i],borderRight:d.borderRight[i]}))}),c}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return XP}var GP,Ahe;function Cxt(){if(Ahe)return GP;Ahe=1,GP=e;function e(r,n,o){let a={},i;o.forEach(s=>{let l=r.parent(s),c,u;for(;l;){if(c=r.parent(l),c?(u=a[c],a[c]=l):(u=i,i=l),u&&u!==l){n.setEdge(u,l);return}l=c}})}return GP}var KP,Nhe;function Txt(){if(Nhe)return KP;Nhe=1;let e=vxt(),r=xxt(),n=Ext(),o=Sxt(),a=Cxt(),i=Is().Graph,s=Rn();KP=l;function l(h,p){if(p&&typeof p.customOrder=="function"){p.customOrder(h,l);return}let g=s.maxRank(h),y=c(h,s.range(1,g+1),"inEdges"),x=c(h,s.range(g-1,-1,-1),"outEdges"),w=e(h);if(d(h,w),p&&p.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,T=0;T<4;++_,++T){u(_%2?y:x,_%4>=2),w=s.buildLayerMatrix(h);let A=r(h,w);A<k&&(T=0,C=Object.assign({},w),k=A)}d(h,C)}function c(h,p,g){return p.map(function(y){return o(h,y,g)})}function u(h,p){let g=new i;h.forEach(function(y){let x=y.graph().root,w=n(y,x,g,p);w.vs.forEach((k,C)=>y.node(k).order=C),a(y,g,w.vs)})}function d(h,p){Object.values(p).forEach(g=>g.forEach((y,x)=>h.node(y).order=x))}return KP}var ZP,Rhe;function Axt(){if(Rhe)return ZP;Rhe=1;let e=Is().Graph,r=Rn();ZP={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:s,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:d,balance:p};function n(w,k){let C={};function _(T,A){let N=0,$=0,R=T.length,M=A[A.length-1];return A.forEach((O,B)=>{let I=a(w,O),Y=I?w.node(I).order:R;(I||O===M)&&(A.slice($,B+1).forEach(D=>{w.predecessors(D).forEach(V=>{let L=w.node(V),U=L.order;(U<N||Y<U)&&!(L.dummy&&w.node(D).dummy)&&i(C,V,D)})}),$=B+1,N=Y)}),A}return k.length&&k.reduce(_),C}function o(w,k){let C={};function _(A,N,$,R,M){let O;r.range(N,$).forEach(B=>{O=A[B],w.node(O).dummy&&w.predecessors(O).forEach(I=>{let Y=w.node(I);Y.dummy&&(Y.order<R||Y.order>M)&&i(C,I,O)})})}function T(A,N){let $=-1,R,M=0;return N.forEach((O,B)=>{if(w.node(O).dummy==="border"){let I=w.predecessors(O);I.length&&(R=w.node(I[0]).order,_(N,M,B,$,R),M=B,$=R)}_(N,M,N.length,R,A.length)}),N}return k.length&&k.reduce(T),C}function a(w,k){if(w.node(k).dummy)return w.predecessors(k).find(C=>w.node(C).dummy)}function i(w,k,C){if(k>C){let T=k;k=C,C=T}let _=w[k];_||(w[k]=_={}),_[C]=!0}function s(w,k,C){if(k>C){let _=k;k=C,C=_}return!!w[k]&&Object.hasOwn(w[k],C)}function l(w,k,C,_){let T={},A={},N={};return k.forEach($=>{$.forEach((R,M)=>{T[R]=R,A[R]=R,N[R]=M})}),k.forEach($=>{let R=-1;$.forEach(M=>{let O=_(M);if(O.length){O=O.sort((I,Y)=>N[I]-N[Y]);let B=(O.length-1)/2;for(let I=Math.floor(B),Y=Math.ceil(B);I<=Y;++I){let D=O[I];A[M]===M&&R<N[D]&&!s(C,M,D)&&(A[D]=M,A[M]=T[M]=T[D],R=N[D])}}})}),{root:T,align:A}}function c(w,k,C,_,T){let A={},N=u(w,k,C,T),$=T?"borderLeft":"borderRight";function R(B,I){let Y=N.nodes(),D=Y.pop(),V={};for(;D;)V[D]?B(D):(V[D]=!0,Y.push(D),Y=Y.concat(I(D))),D=Y.pop()}function M(B){A[B]=N.inEdges(B).reduce((I,Y)=>Math.max(I,A[Y.v]+N.edge(Y)),0)}function O(B){let I=N.outEdges(B).reduce((D,V)=>Math.min(D,A[V.w]-N.edge(V)),Number.POSITIVE_INFINITY),Y=w.node(B);I!==Number.POSITIVE_INFINITY&&Y.borderType!==$&&(A[B]=Math.max(A[B],I))}return R(M,N.predecessors.bind(N)),R(O,N.successors.bind(N)),Object.keys(_).forEach(B=>A[B]=A[C[B]]),A}function u(w,k,C,_){let T=new e,A=w.graph(),N=y(A.nodesep,A.edgesep,_);return k.forEach($=>{let R;$.forEach(M=>{let O=C[M];if(T.setNode(O),R){var B=C[R],I=T.edge(B,O);T.setEdge(B,O,Math.max(N(w,M,R),I||0))}R=M})}),T}function d(w,k){return Object.values(k).reduce((C,_)=>{let T=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([$,R])=>{let M=x(w,$)/2;T=Math.max(R+M,T),A=Math.min(R-M,A)});const N=T-A;return N<C[0]&&(C=[N,_]),C},[Number.POSITIVE_INFINITY,null])[1]}function h(w,k){let C=Object.values(k),_=r.applyWithChunking(Math.min,C),T=r.applyWithChunking(Math.max,C);["u","d"].forEach(A=>{["l","r"].forEach(N=>{let $=A+N,R=w[$];if(R===k)return;let M=Object.values(R),O=_-r.applyWithChunking(Math.min,M);N!=="l"&&(O=T-r.applyWithChunking(Math.max,M)),O&&(w[$]=r.mapValues(R,B=>B+O))})})}function p(w,k){return r.mapValues(w.ul,(C,_)=>{if(k)return w[k.toLowerCase()][_];{let T=Object.values(w).map(A=>A[_]).sort((A,N)=>A-N);return(T[1]+T[2])/2}})}function g(w){let k=r.buildLayerMatrix(w),C=Object.assign(n(w,k),o(w,k)),_={},T;["u","d"].forEach(N=>{T=N==="u"?k:Object.values(k).reverse(),["l","r"].forEach($=>{$==="r"&&(T=T.map(B=>Object.values(B).reverse()));let R=(N==="u"?w.predecessors:w.successors).bind(w),M=l(w,T,C,R),O=c(w,T,M.root,M.align,$==="r");$==="r"&&(O=r.mapValues(O,B=>-B)),_[N+$]=O})});let A=d(w,_);return h(_,A),p(_,w.graph().align)}function y(w,k,C){return(_,T,A)=>{let N=_.node(T),$=_.node(A),R=0,M;if(R+=N.width/2,Object.hasOwn(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":M=-N.width/2;break;case"r":M=N.width/2;break}if(M&&(R+=C?M:-M),M=0,R+=(N.dummy?k:w)/2,R+=($.dummy?k:w)/2,R+=$.width/2,Object.hasOwn($,"labelpos"))switch($.labelpos.toLowerCase()){case"l":M=$.width/2;break;case"r":M=-$.width/2;break}return M&&(R+=C?M:-M),M=0,R}}function x(w,k){return w.node(k).width}return ZP}var QP,$he;function Nxt(){if($he)return QP;$he=1;let e=Rn(),r=Axt().positionX;QP=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,s])=>a.node(i).x=s)}function o(a){let i=e.buildLayerMatrix(a),s=a.graph().ranksep,l=0;i.forEach(c=>{const u=c.reduce((d,h)=>{const p=a.node(h).height;return d>p?d:p},0);c.forEach(d=>a.node(d).y=l+u/2),l+=u+s})}return QP}var JP,Phe;function Rxt(){if(Phe)return JP;Phe=1;let e=dxt(),r=hxt(),n=pxt(),o=Rn().normalizeRanks,a=mxt(),i=Rn().removeEmptyRanks,s=gxt(),l=yxt(),c=bxt(),u=Txt(),d=Nxt(),h=Rn(),p=Is().Graph;JP=g;function g(z,W){let G=W&&W.debugTiming?h.time:h.notime;G("layout",()=>{let Z=G("  buildLayoutGraph",()=>R(z));G("  runLayout",()=>y(Z,G,W)),G("  updateInputGraph",()=>x(z,Z))})}function y(z,W,G){W("    makeSpaceForEdgeLabels",()=>M(z)),W("    removeSelfEdges",()=>q(z)),W("    acyclic",()=>e.run(z)),W("    nestingGraph.run",()=>s.run(z)),W("    rank",()=>n(h.asNonCompoundGraph(z))),W("    injectEdgeLabelProxies",()=>O(z)),W("    removeEmptyRanks",()=>i(z)),W("    nestingGraph.cleanup",()=>s.cleanup(z)),W("    normalizeRanks",()=>o(z)),W("    assignRankMinMax",()=>B(z)),W("    removeEdgeLabelProxies",()=>I(z)),W("    normalize.run",()=>r.run(z)),W("    parentDummyChains",()=>a(z)),W("    addBorderSegments",()=>l(z)),W("    order",()=>u(z,G)),W("    insertSelfEdges",()=>X(z)),W("    adjustCoordinateSystem",()=>c.adjust(z)),W("    position",()=>d(z)),W("    positionSelfEdges",()=>F(z)),W("    removeBorderNodes",()=>U(z)),W("    normalize.undo",()=>r.undo(z)),W("    fixupEdgeLabelCoords",()=>V(z)),W("    undoCoordinateSystem",()=>c.undo(z)),W("    translateGraph",()=>Y(z)),W("    assignNodeIntersects",()=>D(z)),W("    reversePoints",()=>L(z)),W("    acyclic.undo",()=>e.undo(z))}function x(z,W){z.nodes().forEach(G=>{let Z=z.node(G),oe=W.node(G);Z&&(Z.x=oe.x,Z.y=oe.y,Z.rank=oe.rank,W.children(G).length&&(Z.width=oe.width,Z.height=oe.height))}),z.edges().forEach(G=>{let Z=z.edge(G),oe=W.edge(G);Z.points=oe.points,Object.hasOwn(oe,"x")&&(Z.x=oe.x,Z.y=oe.y)}),z.graph().width=W.graph().width,z.graph().height=W.graph().height}let w=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],T={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],N={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},$=["labelpos"];function R(z){let W=new p({multigraph:!0,compound:!0}),G=Q(z.graph());return W.setGraph(Object.assign({},k,J(G,w),h.pick(G,C))),z.nodes().forEach(Z=>{let oe=Q(z.node(Z));const ee=J(oe,_);Object.keys(T).forEach(re=>{ee[re]===void 0&&(ee[re]=T[re])}),W.setNode(Z,ee),W.setParent(Z,z.parent(Z))}),z.edges().forEach(Z=>{let oe=Q(z.edge(Z));W.setEdge(Z,Object.assign({},N,J(oe,A),h.pick(oe,$)))}),W}function M(z){let W=z.graph();W.ranksep/=2,z.edges().forEach(G=>{let Z=z.edge(G);Z.minlen*=2,Z.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Z.width+=Z.labeloffset:Z.height+=Z.labeloffset)})}function O(z){z.edges().forEach(W=>{let G=z.edge(W);if(G.width&&G.height){let Z=z.node(W.v),oe={rank:(z.node(W.w).rank-Z.rank)/2+Z.rank,e:W};h.addDummyNode(z,"edge-proxy",oe,"_ep")}})}function B(z){let W=0;z.nodes().forEach(G=>{let Z=z.node(G);Z.borderTop&&(Z.minRank=z.node(Z.borderTop).rank,Z.maxRank=z.node(Z.borderBottom).rank,W=Math.max(W,Z.maxRank))}),z.graph().maxRank=W}function I(z){z.nodes().forEach(W=>{let G=z.node(W);G.dummy==="edge-proxy"&&(z.edge(G.e).labelRank=G.rank,z.removeNode(W))})}function Y(z){let W=Number.POSITIVE_INFINITY,G=0,Z=Number.POSITIVE_INFINITY,oe=0,ee=z.graph(),re=ee.marginx||0,he=ee.marginy||0;function Ce(ce){let de=ce.x,be=ce.y,De=ce.width,Ge=ce.height;W=Math.min(W,de-De/2),G=Math.max(G,de+De/2),Z=Math.min(Z,be-Ge/2),oe=Math.max(oe,be+Ge/2)}z.nodes().forEach(ce=>Ce(z.node(ce))),z.edges().forEach(ce=>{let de=z.edge(ce);Object.hasOwn(de,"x")&&Ce(de)}),W-=re,Z-=he,z.nodes().forEach(ce=>{let de=z.node(ce);de.x-=W,de.y-=Z}),z.edges().forEach(ce=>{let de=z.edge(ce);de.points.forEach(be=>{be.x-=W,be.y-=Z}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=Z)}),ee.width=G-W+re,ee.height=oe-Z+he}function D(z){z.edges().forEach(W=>{let G=z.edge(W),Z=z.node(W.v),oe=z.node(W.w),ee,re;G.points?(ee=G.points[0],re=G.points[G.points.length-1]):(G.points=[],ee=oe,re=Z),G.points.unshift(h.intersectRect(Z,ee)),G.points.push(h.intersectRect(oe,re))})}function V(z){z.edges().forEach(W=>{let G=z.edge(W);if(Object.hasOwn(G,"x"))switch((G.labelpos==="l"||G.labelpos==="r")&&(G.width-=G.labeloffset),G.labelpos){case"l":G.x-=G.width/2+G.labeloffset;break;case"r":G.x+=G.width/2+G.labeloffset;break}})}function L(z){z.edges().forEach(W=>{let G=z.edge(W);G.reversed&&G.points.reverse()})}function U(z){z.nodes().forEach(W=>{if(z.children(W).length){let G=z.node(W),Z=z.node(G.borderTop),oe=z.node(G.borderBottom),ee=z.node(G.borderLeft[G.borderLeft.length-1]),re=z.node(G.borderRight[G.borderRight.length-1]);G.width=Math.abs(re.x-ee.x),G.height=Math.abs(oe.y-Z.y),G.x=ee.x+G.width/2,G.y=Z.y+G.height/2}}),z.nodes().forEach(W=>{z.node(W).dummy==="border"&&z.removeNode(W)})}function q(z){z.edges().forEach(W=>{if(W.v===W.w){var G=z.node(W.v);G.selfEdges||(G.selfEdges=[]),G.selfEdges.push({e:W,label:z.edge(W)}),z.removeEdge(W)}})}function X(z){var W=h.buildLayerMatrix(z);W.forEach(G=>{var Z=0;G.forEach((oe,ee)=>{var re=z.node(oe);re.order=ee+Z,(re.selfEdges||[]).forEach(he=>{h.addDummyNode(z,"selfedge",{width:he.label.width,height:he.label.height,rank:re.rank,order:ee+ ++Z,e:he.e,label:he.label},"_se")}),delete re.selfEdges})})}function F(z){z.nodes().forEach(W=>{var G=z.node(W);if(G.dummy==="selfedge"){var Z=z.node(G.e.v),oe=Z.x+Z.width/2,ee=Z.y,re=G.x-oe,he=Z.height/2;z.setEdge(G.e,G.label),z.removeNode(W),G.label.points=[{x:oe+2*re/3,y:ee-he},{x:oe+5*re/6,y:ee-he},{x:oe+re,y:ee},{x:oe+5*re/6,y:ee+he},{x:oe+2*re/3,y:ee+he}],G.label.x=G.x,G.label.y=G.y}})}function J(z,W){return h.mapValues(h.pick(z,W),Number)}function Q(z){var W={};return z&&Object.entries(z).forEach(([G,Z])=>{typeof G=="string"&&(G=G.toLowerCase()),W[G]=Z}),W}return JP}var eM,Mhe;function $xt(){if(Mhe)return eM;Mhe=1;let e=Rn(),r=Is().Graph;eM={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(s=>{i.setNode(s,{label:s}),i.setParent(s,"layer"+o.node(s).rank)}),o.edges().forEach(s=>i.setEdge(s.v,s.w,{},s.name)),a.forEach((s,l)=>{let c="layer"+l;i.setNode(c,{rank:"same"}),s.reduce((u,d)=>(i.setEdge(u,d,{style:"invis"}),d))}),i}return eM}var Ohe,Dhe;function Pxt(){return Dhe||(Dhe=1,Ohe="1.1.5"),Ohe}var Lhe,Ihe;function Mxt(){return Ihe||(Ihe=1,Lhe={graphlib:Is(),layout:Rxt(),debug:$xt(),util:{time:Rn().time,notime:Rn().notime},version:Pxt()}),Lhe}Mxt();const zhe=1e-12;function tM(e,r,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-r),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function rM(e,r){this._context=e,this._k=(1-r)/6}rM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tM(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2,this._x1=e,this._y1=r;break;case 2:this._point=3;default:tM(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new rM(o,r)}return n.tension=function(o){return e(+o)},n})(0);function nM(e,r){this._context=e,this._k=(1-r)/6}nM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tM(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new nM(o,r)}return n.tension=function(o){return e(+o)},n})(0);function jhe(e,r,n){var o=e._x1,a=e._y1,i=e._x2,s=e._y2;if(e._l01_a>zhe){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>zhe){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-r*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(o,a,i,s,e._x2,e._y2)}function Bhe(e,r){this._context=e,this._alpha=r}Bhe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:jhe(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new Bhe(o,r):new rM(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function Fhe(e,r){this._context=e,this._alpha=r}Fhe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:jhe(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new Fhe(o,r):new nM(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);const Oxt={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},Dxt={unit:Oxt};for(let e=0;e<=255;e++)Dxt.unit.dec2hex(e);const Lxt=typeof window<"u",oM=E.createContext(null);oM.displayName="PanelGroupContext";const ja={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandleId:"data-panel-resize-handle-id"},aM=10,wg=Lxt?E.useLayoutEffect:()=>{},Hhe=E.useId,Ixt=typeof Hhe=="function"?Hhe:()=>null;let zxt=0;function Uhe(e=null){const r=Ixt(),n=E.useRef(e||r||null);return n.current===null&&(n.current=""+zxt++),e??n.current}function Vhe({children:e,className:r="",collapsedSize:n,collapsible:o,defaultSize:a,forwardedRef:i,id:s,maxSize:l,minSize:c,onCollapse:u,onExpand:d,onResize:h,order:p,style:g,tagName:y="div",...x}){const w=E.useContext(oM);if(w===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:k,expandPanel:C,getPanelSize:_,getPanelStyle:T,groupId:A,isPanelCollapsed:N,reevaluatePanelConstraints:$,registerPanel:R,resizePanel:M,unregisterPanel:O}=w,B=Uhe(s),I=E.useRef({callbacks:{onCollapse:u,onExpand:d,onResize:h},constraints:{collapsedSize:n,collapsible:o,defaultSize:a,maxSize:l,minSize:c},id:B,idIsFromProps:s!==void 0,order:p});E.useRef({didLogMissingDefaultSizeWarning:!1}),wg(()=>{const{callbacks:D,constraints:V}=I.current,L={...V};I.current.id=B,I.current.idIsFromProps=s!==void 0,I.current.order=p,D.onCollapse=u,D.onExpand=d,D.onResize=h,V.collapsedSize=n,V.collapsible=o,V.defaultSize=a,V.maxSize=l,V.minSize=c,(L.collapsedSize!==V.collapsedSize||L.collapsible!==V.collapsible||L.maxSize!==V.maxSize||L.minSize!==V.minSize)&&$(I.current,L)}),wg(()=>{const D=I.current;return R(D),()=>{O(D)}},[p,B,R,O]),E.useImperativeHandle(i,()=>({collapse:()=>{k(I.current)},expand:D=>{C(I.current,D)},getId(){return B},getSize(){return _(I.current)},isCollapsed(){return N(I.current)},isExpanded(){return!N(I.current)},resize:D=>{M(I.current,D)}}),[k,C,_,N,B,M]);const Y=T(I.current,a);return E.createElement(y,{...x,children:e,className:r,id:B,style:{...Y,...g},[ja.groupId]:A,[ja.panel]:"",[ja.panelCollapsible]:o||void 0,[ja.panelId]:B,[ja.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const jxt=E.forwardRef((e,r)=>E.createElement(Vhe,{...e,forwardedRef:r}));Vhe.displayName="Panel",jxt.displayName="forwardRef(Panel)";function qhe(e){return e.type==="keydown"}function Yhe(e){return e.type.startsWith("pointer")}function Whe(e){return e.type.startsWith("mouse")}function Bxt(e){if(Yhe(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Whe(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Fxt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const Hxt=1,Uxt=2,Vxt=4,qxt=8;Fxt();let Yxt=new Map;function iM(e,r){Yxt.set(e,r)}function Wxt(){const[e,r]=E.useState(0);return E.useCallback(()=>r(n=>n+1),[])}function nr(e,r){if(!e)throw console.error(r),Error(r)}function Wh(e,r,n=aM){return e.toFixed(n)===r.toFixed(n)?0:e>r?1:-1}function Sc(e,r,n=aM){return Wh(e,r,n)===0}function Ba(e,r,n){return Wh(e,r,n)===0}function Xxt(e,r,n){if(e.length!==r.length)return!1;for(let o=0;o<e.length;o++){const a=e[o],i=r[o];if(!Ba(a,i,n))return!1}return!0}function kg({panelConstraints:e,panelIndex:r,size:n}){const o=e[r];nr(o!=null,`Panel constraints not found for index ${r}`);let{collapsedSize:a=0,collapsible:i,maxSize:s=100,minSize:l=0}=o;if(Wh(n,l)<0)if(i){const c=(a+l)/2;Wh(n,c)<0?n=a:n=l}else n=l;return n=Math.min(s,n),n=parseFloat(n.toFixed(aM)),n}function Db({delta:e,initialLayout:r,panelConstraints:n,pivotIndices:o,prevLayout:a,trigger:i}){if(Ba(e,0))return r;const s=[...r],[l,c]=o;nr(l!=null,"Invalid first pivot index"),nr(c!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const h=e<0?c:l,p=n[h];nr(p,`Panel constraints not found for index ${h}`);const{collapsedSize:g=0,collapsible:y,minSize:x=0}=p;if(y){const w=r[h];if(nr(w!=null,`Previous layout not found for panel index ${h}`),Ba(w,g)){const k=x-w;Wh(k,Math.abs(e))>0&&(e=e<0?0-k:k)}}}{const h=e<0?l:c,p=n[h];nr(p,`No panel constraints found for index ${h}`);const{collapsedSize:g=0,collapsible:y,minSize:x=0}=p;if(y){const w=r[h];if(nr(w!=null,`Previous layout not found for panel index ${h}`),Ba(w,x)){const k=w-g;Wh(k,Math.abs(e))>0&&(e=e<0?0-k:k)}}}}{const h=e<0?1:-1;let p=e<0?c:l,g=0;for(;;){const x=r[p];nr(x!=null,`Previous layout not found for panel index ${p}`);const w=kg({panelConstraints:n,panelIndex:p,size:100})-x;if(g+=w,p+=h,p<0||p>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(g));e=e<0?0-y:y}{let h=e<0?l:c;for(;h>=0&&h<n.length;){const p=Math.abs(e)-Math.abs(u),g=r[h];nr(g!=null,`Previous layout not found for panel index ${h}`);const y=g-p,x=kg({panelConstraints:n,panelIndex:h,size:y});if(!Ba(g,x)&&(u+=g-x,s[h]=x,u.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?h--:h++}}if(Xxt(a,s))return a;{const h=e<0?c:l,p=r[h];nr(p!=null,`Previous layout not found for panel index ${h}`);const g=p+u,y=kg({panelConstraints:n,panelIndex:h,size:g});if(s[h]=y,!Ba(y,g)){let x=g-y,w=e<0?c:l;for(;w>=0&&w<n.length;){const k=s[w];nr(k!=null,`Previous layout not found for panel index ${w}`);const C=k+x,_=kg({panelConstraints:n,panelIndex:w,size:C});if(Ba(k,_)||(x-=_-k,s[w]=_),Ba(x,0))break;e>0?w--:w++}}}const d=s.reduce((h,p)=>p+h,0);return Ba(d,100)?s:a}function Gxt({layout:e,panelsArray:r,pivotIndices:n}){let o=0,a=100,i=0,s=0;const l=n[0];nr(l!=null,"No pivot index found"),r.forEach((h,p)=>{const{constraints:g}=h,{maxSize:y=100,minSize:x=0}=g;p===l?(o=x,a=y):(i+=x,s+=y)});const c=Math.min(a,100-i),u=Math.max(o,100-s),d=e[l];return{valueMax:c,valueMin:u,valueNow:d}}function S5(e,r=document){return Array.from(r.querySelectorAll(`[${ja.resizeHandleId}][data-panel-group-id="${e}"]`))}function Kxt(e,r,n=document){return S5(e,n).findIndex(a=>a.getAttribute(ja.resizeHandleId)===r)??null}function Xhe(e,r,n){const o=Kxt(e,r,n);return o!=null?[o,o+1]:[-1,-1]}function Zxt(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Ghe(e,r=document){return Zxt(r)&&r.dataset.panelGroupId==e?r:r.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function sM(e,r=document){return r.querySelector(`[${ja.resizeHandleId}="${e}"]`)||null}function Qxt(e,r,n,o=document){var a,i,s,l;const c=sM(r,o),u=S5(e,o),d=c?u.indexOf(c):-1,h=(a=(i=n[d])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null,p=(s=(l=n[d+1])===null||l===void 0?void 0:l.id)!==null&&s!==void 0?s:null;return[h,p]}function Jxt({committedValuesRef:e,eagerValuesRef:r,groupId:n,layout:o,panelDataArray:a,panelGroupElement:i,setLayout:s}){E.useRef({didWarnAboutMissingResizeHandle:!1}),wg(()=>{if(!i)return;const l=S5(n,i);for(let c=0;c<a.length-1;c++){const{valueMax:u,valueMin:d,valueNow:h}=Gxt({layout:o,panelsArray:a,pivotIndices:[c,c+1]}),p=l[c];if(p!=null){const g=a[c];nr(g,`No panel data found for index "${c}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",h!=null?""+Math.round(h):"")}}return()=>{l.forEach((c,u)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,o,a,i]),E.useEffect(()=>{if(!i)return;const l=r.current;nr(l,"Eager values not found");const{panelDataArray:c}=l,u=Ghe(n,i);nr(u!=null,`No group found for id "${n}"`);const d=S5(n,i);nr(d,`No resize handles found for group id "${n}"`);const h=d.map(p=>{const g=p.getAttribute(ja.resizeHandleId);nr(g,"Resize handle element has no handle id attribute");const[y,x]=Qxt(n,g,c,i);if(y==null||x==null)return()=>{};const w=k=>{if(!k.defaultPrevented)switch(k.key){case"Enter":{k.preventDefault();const C=c.findIndex(_=>_.id===y);if(C>=0){const _=c[C];nr(_,`No panel data found for index ${C}`);const T=o[C],{collapsedSize:A=0,collapsible:N,minSize:$=0}=_.constraints;if(T!=null&&N){const R=Db({delta:Ba(T,A)?$-A:A-T,initialLayout:o,panelConstraints:c.map(M=>M.constraints),pivotIndices:Xhe(n,g,i),prevLayout:o,trigger:"keyboard"});o!==R&&s(R)}}break}}};return p.addEventListener("keydown",w),()=>{p.removeEventListener("keydown",w)}});return()=>{h.forEach(p=>p())}},[i,e,r,n,o,a,s])}function Khe(e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0}function Zhe(e,r){const n=e==="horizontal",{x:o,y:a}=Bxt(r);return n?o:a}function ewt(e,r,n,o,a){const i=n==="horizontal",s=sM(r,a);nr(s,`No resize handle element found for id "${r}"`);const l=s.getAttribute(ja.groupId);nr(l,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=o;const u=Zhe(n,e),d=Ghe(l,a);nr(d,`No group element found for id "${l}"`);const h=d.getBoundingClientRect(),p=i?h.width:h.height;return(u-c)/p*100}function twt(e,r,n,o,a,i){if(qhe(e)){const s=n==="horizontal";let l=0;e.shiftKey?l=100:a!=null?l=a:l=10;let c=0;switch(e.key){case"ArrowDown":c=s?0:l;break;case"ArrowLeft":c=s?-l:0;break;case"ArrowRight":c=s?l:0;break;case"ArrowUp":c=s?0:-l;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return o==null?0:ewt(e,r,n,o,i)}function rwt({panelDataArray:e}){const r=Array(e.length),n=e.map(i=>i.constraints);let o=0,a=100;for(let i=0;i<e.length;i++){const s=n[i];nr(s,`Panel constraints not found for index ${i}`);const{defaultSize:l}=s;l!=null&&(o++,r[i]=l,a-=l)}for(let i=0;i<e.length;i++){const s=n[i];nr(s,`Panel constraints not found for index ${i}`);const{defaultSize:l}=s;if(l!=null)continue;const c=e.length-o,u=a/c;o++,r[i]=u,a-=u}return r}function _g(e,r,n){r.forEach((o,a)=>{const i=e[a];nr(i,`Panel data not found for index ${a}`);const{callbacks:s,constraints:l,id:c}=i,{collapsedSize:u=0,collapsible:d}=l,h=n[c];if(h==null||o!==h){n[c]=o;const{onCollapse:p,onExpand:g,onResize:y}=s;y&&y(o,h),d&&(p||g)&&(g&&(h==null||Sc(h,u))&&!Sc(o,u)&&g(),p&&(h==null||!Sc(h,u))&&Sc(o,u)&&p())}})}function C5(e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=r[n])return!1;return!0}function nwt({defaultSize:e,dragState:r,layout:n,panelData:o,panelIndex:a,precision:i=3}){const s=n[a];let l;return s==null?l=e!=null?e.toFixed(i):"1":o.length===1?l="1":l=s.toFixed(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:r!==null?"none":void 0}}function owt(e,r=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},r)}}function Qhe(e){try{if(typeof localStorage<"u")e.getItem=r=>localStorage.getItem(r),e.setItem=(r,n)=>{localStorage.setItem(r,n)};else throw new Error("localStorage not supported in this environment")}catch(r){console.error(r),e.getItem=()=>null,e.setItem=()=>{}}}function Jhe(e){return`react-resizable-panels:${e}`}function efe(e){return e.map(r=>{const{constraints:n,id:o,idIsFromProps:a,order:i}=r;return a?o:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((r,n)=>r.localeCompare(n)).join(",")}function tfe(e,r){try{const n=Jhe(e),o=r.getItem(n);if(o){const a=JSON.parse(o);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function awt(e,r,n){var o,a;const i=(o=tfe(e,n))!==null&&o!==void 0?o:{},s=efe(r);return(a=i[s])!==null&&a!==void 0?a:null}function iwt(e,r,n,o,a){var i;const s=Jhe(e),l=efe(r),c=(i=tfe(e,a))!==null&&i!==void 0?i:{};c[l]={expandToSizes:Object.fromEntries(n.entries()),layout:o};try{a.setItem(s,JSON.stringify(c))}catch(u){console.error(u)}}function rfe({layout:e,panelConstraints:r}){const n=[...e],o=n.reduce((i,s)=>i+s,0);if(n.length!==r.length)throw Error(`Invalid ${r.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!Ba(o,100)&&n.length>0)for(let i=0;i<r.length;i++){const s=n[i];nr(s!=null,`No layout data found for index ${i}`);const l=100/o*s;n[i]=l}let a=0;for(let i=0;i<r.length;i++){const s=n[i];nr(s!=null,`No layout data found for index ${i}`);const l=kg({panelConstraints:r,panelIndex:i,size:s});s!=l&&(a+=s-l,n[i]=l)}if(!Ba(a,0))for(let i=0;i<r.length;i++){const s=n[i];nr(s!=null,`No layout data found for index ${i}`);const l=s+a,c=kg({panelConstraints:r,panelIndex:i,size:l});if(s!==c&&(a-=c-s,n[i]=c,Ba(a,0)))break}return n}const swt=100,Lb={getItem:e=>(Qhe(Lb),Lb.getItem(e)),setItem:(e,r)=>{Qhe(Lb),Lb.setItem(e,r)}},nfe={};function ofe({autoSaveId:e=null,children:r,className:n="",direction:o,forwardedRef:a,id:i=null,onLayout:s=null,keyboardResizeBy:l=null,storage:c=Lb,style:u,tagName:d="div",...h}){const p=Uhe(i),g=E.useRef(null),[y,x]=E.useState(null),[w,k]=E.useState([]),C=Wxt(),_=E.useRef({}),T=E.useRef(new Map),A=E.useRef(0),N=E.useRef({autoSaveId:e,direction:o,dragState:y,id:p,keyboardResizeBy:l,onLayout:s,storage:c}),$=E.useRef({layout:w,panelDataArray:[],panelDataArrayChanged:!1});E.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),E.useImperativeHandle(a,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:z}=$.current;return z},setLayout:z=>{const{onLayout:W}=N.current,{layout:G,panelDataArray:Z}=$.current,oe=rfe({layout:z,panelConstraints:Z.map(ee=>ee.constraints)});Khe(G,oe)||(k(oe),$.current.layout=oe,W&&W(oe),_g(Z,oe,_.current))}}),[]),wg(()=>{N.current.autoSaveId=e,N.current.direction=o,N.current.dragState=y,N.current.id=p,N.current.onLayout=s,N.current.storage=c}),Jxt({committedValuesRef:N,eagerValuesRef:$,groupId:p,layout:w,panelDataArray:$.current.panelDataArray,setLayout:k,panelGroupElement:g.current}),E.useEffect(()=>{const{panelDataArray:z}=$.current;if(e){if(w.length===0||w.length!==z.length)return;let W=nfe[e];W==null&&(W=owt(iwt,swt),nfe[e]=W);const G=[...z],Z=new Map(T.current);W(e,G,Z,w,c)}},[e,w,c]),E.useEffect(()=>{});const R=E.useCallback(z=>{const{onLayout:W}=N.current,{layout:G,panelDataArray:Z}=$.current;if(z.constraints.collapsible){const oe=Z.map(Ce=>Ce.constraints),{collapsedSize:ee=0,panelSize:re,pivotIndices:he}=Xh(Z,z,G);if(nr(re!=null,`Panel size not found for panel "${z.id}"`),!Sc(re,ee)){T.current.set(z.id,re);const Ce=Eg(Z,z)===Z.length-1?re-ee:ee-re,ce=Db({delta:Ce,initialLayout:G,panelConstraints:oe,pivotIndices:he,prevLayout:G,trigger:"imperative-api"});C5(G,ce)||(k(ce),$.current.layout=ce,W&&W(ce),_g(Z,ce,_.current))}}},[]),M=E.useCallback((z,W)=>{const{onLayout:G}=N.current,{layout:Z,panelDataArray:oe}=$.current;if(z.constraints.collapsible){const ee=oe.map(be=>be.constraints),{collapsedSize:re=0,panelSize:he=0,minSize:Ce=0,pivotIndices:ce}=Xh(oe,z,Z),de=W??Ce;if(Sc(he,re)){const be=T.current.get(z.id),De=be!=null&&be>=de?be:de,Ge=Eg(oe,z)===oe.length-1?he-De:De-he,Xe=Db({delta:Ge,initialLayout:Z,panelConstraints:ee,pivotIndices:ce,prevLayout:Z,trigger:"imperative-api"});C5(Z,Xe)||(k(Xe),$.current.layout=Xe,G&&G(Xe),_g(oe,Xe,_.current))}}},[]),O=E.useCallback(z=>{const{layout:W,panelDataArray:G}=$.current,{panelSize:Z}=Xh(G,z,W);return nr(Z!=null,`Panel size not found for panel "${z.id}"`),Z},[]),B=E.useCallback((z,W)=>{const{panelDataArray:G}=$.current,Z=Eg(G,z);return nwt({defaultSize:W,dragState:y,layout:w,panelData:G,panelIndex:Z})},[y,w]),I=E.useCallback(z=>{const{layout:W,panelDataArray:G}=$.current,{collapsedSize:Z=0,collapsible:oe,panelSize:ee}=Xh(G,z,W);return nr(ee!=null,`Panel size not found for panel "${z.id}"`),oe===!0&&Sc(ee,Z)},[]),Y=E.useCallback(z=>{const{layout:W,panelDataArray:G}=$.current,{collapsedSize:Z=0,collapsible:oe,panelSize:ee}=Xh(G,z,W);return nr(ee!=null,`Panel size not found for panel "${z.id}"`),!oe||Wh(ee,Z)>0},[]),D=E.useCallback(z=>{const{panelDataArray:W}=$.current;W.push(z),W.sort((G,Z)=>{const oe=G.order,ee=Z.order;return oe==null&&ee==null?0:oe==null?-1:ee==null?1:oe-ee}),$.current.panelDataArrayChanged=!0,C()},[C]);wg(()=>{if($.current.panelDataArrayChanged){$.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:W,storage:G}=N.current,{layout:Z,panelDataArray:oe}=$.current;let ee=null;if(z){const he=awt(z,oe,G);he&&(T.current=new Map(Object.entries(he.expandToSizes)),ee=he.layout)}ee==null&&(ee=rwt({panelDataArray:oe}));const re=rfe({layout:ee,panelConstraints:oe.map(he=>he.constraints)});Khe(Z,re)||(k(re),$.current.layout=re,W&&W(re),_g(oe,re,_.current))}}),wg(()=>{const z=$.current;return()=>{z.layout=[]}},[]);const V=E.useCallback(z=>{let W=!1;const G=g.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(W=!0),function(Z){Z.preventDefault();const oe=g.current;if(!oe)return()=>null;const{direction:ee,dragState:re,id:he,keyboardResizeBy:Ce,onLayout:ce}=N.current,{layout:de,panelDataArray:be}=$.current,{initialLayout:De}=re??{},Ge=Xhe(he,z,oe);let Xe=twt(Z,z,ee,re,Ce,oe);const _t=ee==="horizontal";_t&&W&&(Xe=-Xe);const Qe=be.map(We=>We.constraints),St=Db({delta:Xe,initialLayout:De??de,panelConstraints:Qe,pivotIndices:Ge,prevLayout:de,trigger:qhe(Z)?"keyboard":"mouse-or-touch"}),Ke=!C5(de,St);(Yhe(Z)||Whe(Z))&&A.current!=Xe&&(A.current=Xe,!Ke&&Xe!==0?_t?iM(z,Xe<0?Hxt:Uxt):iM(z,Xe<0?Vxt:qxt):iM(z,0)),Ke&&(k(St),$.current.layout=St,ce&&ce(St),_g(be,St,_.current))}},[]),L=E.useCallback((z,W)=>{const{onLayout:G}=N.current,{layout:Z,panelDataArray:oe}=$.current,ee=oe.map(de=>de.constraints),{panelSize:re,pivotIndices:he}=Xh(oe,z,Z);nr(re!=null,`Panel size not found for panel "${z.id}"`);const Ce=Eg(oe,z)===oe.length-1?re-W:W-re,ce=Db({delta:Ce,initialLayout:Z,panelConstraints:ee,pivotIndices:he,prevLayout:Z,trigger:"imperative-api"});C5(Z,ce)||(k(ce),$.current.layout=ce,G&&G(ce),_g(oe,ce,_.current))},[]),U=E.useCallback((z,W)=>{const{layout:G,panelDataArray:Z}=$.current,{collapsedSize:oe=0,collapsible:ee}=W,{collapsedSize:re=0,collapsible:he,maxSize:Ce=100,minSize:ce=0}=z.constraints,{panelSize:de}=Xh(Z,z,G);de!=null&&(ee&&he&&Sc(de,oe)?Sc(oe,re)||L(z,re):de<ce?L(z,ce):de>Ce&&L(z,Ce))},[L]),q=E.useCallback((z,W)=>{const{direction:G}=N.current,{layout:Z}=$.current;if(!g.current)return;const oe=sM(z,g.current);nr(oe,`Drag handle element not found for id "${z}"`);const ee=Zhe(G,W);x({dragHandleId:z,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:ee,initialLayout:Z})},[]),X=E.useCallback(()=>{x(null)},[]),F=E.useCallback(z=>{const{panelDataArray:W}=$.current,G=Eg(W,z);G>=0&&(W.splice(G,1),delete _.current[z.id],$.current.panelDataArrayChanged=!0,C())},[C]),J=E.useMemo(()=>({collapsePanel:R,direction:o,dragState:y,expandPanel:M,getPanelSize:O,getPanelStyle:B,groupId:p,isPanelCollapsed:I,isPanelExpanded:Y,reevaluatePanelConstraints:U,registerPanel:D,registerResizeHandle:V,resizePanel:L,startDragging:q,stopDragging:X,unregisterPanel:F,panelGroupElement:g.current}),[R,y,o,M,O,B,p,I,Y,U,D,V,L,q,X,F]),Q={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return E.createElement(oM.Provider,{value:J},E.createElement(d,{...h,children:r,className:n,id:i,ref:g,style:{...Q,...u},[ja.group]:"",[ja.groupDirection]:o,[ja.groupId]:p}))}const lwt=E.forwardRef((e,r)=>E.createElement(ofe,{...e,forwardedRef:r}));ofe.displayName="PanelGroup",lwt.displayName="forwardRef(PanelGroup)";function Eg(e,r){return e.findIndex(n=>n===r||n.id===r.id)}function Xh(e,r,n){const o=Eg(e,r),a=o===e.length-1?[o-1,o]:[o,o+1],i=n[o];return{...r.constraints,panelSize:i,pivotIndices:a}}function Pe(e,r,n){function o(l,c){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),r(l,c);for(const d in s.prototype)d in l||Object.defineProperty(l,d,{value:s.prototype[d].bind(l)});l._zod.constr=s,l._zod.def=c}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function s(l){var c;const u=n?.Parent?new i:this;o(u,l),(c=u._zod).deferred??(c.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class Ib extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const afe={};function Gh(e){return afe}function cwt(e){const r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function uwt(e,r){return typeof r=="bigint"?r.toString():r}function ife(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function lM(e){return e==null}function cM(e){const r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function jr(e,r,n){Object.defineProperty(e,r,{get(){{const o=n();return e[r]=o,o}},set(o){Object.defineProperty(e,r,{value:o})},configurable:!0})}function uM(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function zb(e){return JSON.stringify(e)}const sfe=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function dM(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const dwt=ife(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function hM(e){if(dM(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const n=r.prototype;return!(dM(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const hwt=new Set(["string","number","symbol"]);function jb(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Kh(e,r,n){const o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function kt(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function fwt(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}function pwt(e,r){const n={},o=e._zod.def;for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(n[a]=o.shape[a])}return Kh(e,{...e._zod.def,shape:n,checks:[]})}function mwt(e,r){const n={...e._zod.def.shape},o=e._zod.def;for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete n[a]}return Kh(e,{...e._zod.def,shape:n,checks:[]})}function gwt(e,r){if(!hM(r))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const o={...e._zod.def.shape,...r};return uM(this,"shape",o),o},checks:[]};return Kh(e,n)}function ywt(e,r){return Kh(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...r._zod.def.shape};return uM(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function bwt(e,r,n){const o=r._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)a[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return Kh(r,{...r._zod.def,shape:a,checks:[]})}function vwt(e,r,n){const o=r._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return Kh(r,{...r._zod.def,shape:a,checks:[]})}function Bb(e,r=0){for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function fM(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function T5(e){return typeof e=="string"?e:e?.message}function Zh(e,r,n){const o={...e,path:e.path??[]};if(!e.message){const a=T5(e.inst?._zod.def?.error?.(e))??T5(r?.error?.(e))??T5(n.customError?.(e))??T5(n.localeError?.(e))??"Invalid input";o.message=a}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function pM(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Fb(...e){const[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}const lfe=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(r,uwt,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},cfe=Pe("$ZodError",lfe),ufe=Pe("$ZodError",lfe,{Parent:Error});function xwt(e,r=n=>n.message){const n={},o=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(r(a))):o.push(r(a));return{formErrors:o,fieldErrors:n}}function dfe(e,r){const n=r||function(i){return i.message},o={_errors:[]},a=i=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>a({issues:l}));else if(s.code==="invalid_key")a({issues:s.issues});else if(s.code==="invalid_element")a({issues:s.issues});else if(s.path.length===0)o._errors.push(n(s));else{let l=o,c=0;for(;c<s.path.length;){const u=s.path[c];c===s.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(s))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return a(e),o}const wwt=e=>(r,n,o,a)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Ib;if(s.issues.length){const l=new(a?.Err??e)(s.issues.map(c=>Zh(c,i,Gh())));throw sfe(l,a?.callee),l}return s.value},kwt=e=>async(r,n,o,a)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const l=new(a?.Err??e)(s.issues.map(c=>Zh(c,i,Gh())));throw sfe(l,a?.callee),l}return s.value},hfe=e=>(r,n,o)=>{const a=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Ib;return i.issues.length?{success:!1,error:new(e??cfe)(i.issues.map(s=>Zh(s,a,Gh())))}:{success:!0,data:i.value}},_wt=hfe(ufe),ffe=e=>async(r,n,o)=>{const a=o?Object.assign(o,{async:!0}):{async:!0};let i=r._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Zh(s,a,Gh())))}:{success:!0,data:i.value}},Ewt=ffe(ufe),Swt=/^[cC][^\s-]{8,}$/,Cwt=/^[0-9a-z]+$/,Twt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Awt=/^[0-9a-vA-V]{20}$/,Nwt=/^[A-Za-z0-9]{27}$/,Rwt=/^[a-zA-Z0-9_-]{21}$/,$wt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Pwt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pfe=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Mwt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Owt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dwt(){return new RegExp(Owt,"u")}const Lwt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Iwt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,zwt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,jwt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Bwt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mfe=/^[A-Za-z0-9_-]*$/,Fwt=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Hwt=/^\+(?:[0-9]){6,14}[0-9]$/,gfe="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Uwt=new RegExp(`^${gfe}$`);function yfe(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vwt(e){return new RegExp(`^${yfe(e)}$`)}function qwt(e){const r=yfe({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const o=`${r}(?:${n.join("|")})`;return new RegExp(`^${gfe}T(?:${o})$`)}const Ywt=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Wwt=/true|false/i,Xwt=/^[^A-Z]*$/,Gwt=/^[^a-z]*$/,kl=Pe("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Kwt=Pe("$ZodCheckMaxLength",(e,r)=>{var n;kl.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!lM(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<a&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{const a=o.value;if(a.length<=r.maximum)return;const i=pM(a);o.issues.push({origin:i,code:"too_big",maximum:r.maximum,inclusive:!0,input:a,inst:e,continue:!r.abort})}}),Zwt=Pe("$ZodCheckMinLength",(e,r)=>{var n;kl.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!lM(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>a&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{const a=o.value;if(a.length>=r.minimum)return;const i=pM(a);o.issues.push({origin:i,code:"too_small",minimum:r.minimum,inclusive:!0,input:a,inst:e,continue:!r.abort})}}),Qwt=Pe("$ZodCheckLengthEquals",(e,r)=>{var n;kl.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!lM(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag;a.minimum=r.length,a.maximum=r.length,a.length=r.length}),e._zod.check=o=>{const a=o.value,i=a.length;if(i===r.length)return;const s=pM(a),l=i>r.length;o.issues.push({origin:s,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),A5=Pe("$ZodCheckStringFormat",(e,r)=>{var n,o;kl.init(e,r),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=a=>{r.pattern.lastIndex=0,!r.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:r.format,input:a.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),Jwt=Pe("$ZodCheckRegex",(e,r)=>{A5.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),e3t=Pe("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Xwt),A5.init(e,r)}),t3t=Pe("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Gwt),A5.init(e,r)}),r3t=Pe("$ZodCheckIncludes",(e,r)=>{kl.init(e,r);const n=jb(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.includes(r.includes,r.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:a.value,inst:e,continue:!r.abort})}}),n3t=Pe("$ZodCheckStartsWith",(e,r)=>{kl.init(e,r);const n=new RegExp(`^${jb(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),o3t=Pe("$ZodCheckEndsWith",(e,r)=>{kl.init(e,r);const n=new RegExp(`.*${jb(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}}),a3t=Pe("$ZodCheckOverwrite",(e,r)=>{kl.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});class i3t{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const n=r.split(`
`).filter(i=>i),o=Math.min(...n.map(i=>i.length-i.trimStart().length)),a=n.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const r=Function,n=this?.args,o=[...(this?.content??[""]).map(a=>`  ${a}`)];return new r(...n,o.join(`
`))}}const s3t={major:4,minor:0,patch:0},en=Pe("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=s3t;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const a of o)for(const i of a._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(i,s,l)=>{let c=Bb(i),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(c)continue;const h=i.issues.length,p=d._zod.check(i);if(p instanceof Promise&&l?.async===!1)throw new Ib;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,i.issues.length!==h&&(c||(c=Bb(i,h)))});else{if(i.issues.length===h)continue;c||(c=Bb(i,h))}}return u?u.then(()=>i):i};e._zod.run=(i,s)=>{const l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new Ib;return l.then(c=>a(c,o,s))}return a(l,o,s)}}e["~standard"]={validate:a=>{try{const i=_wt(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Ewt(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),N5=Pe("$ZodString",(e,r)=>{en.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ywt(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Br=Pe("$ZodStringFormat",(e,r)=>{A5.init(e,r),N5.init(e,r)}),l3t=Pe("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Pwt),Br.init(e,r)}),c3t=Pe("$ZodUUID",(e,r)=>{if(r.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=pfe(n))}else r.pattern??(r.pattern=pfe());Br.init(e,r)}),u3t=Pe("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Mwt),Br.init(e,r)}),d3t=Pe("$ZodURL",(e,r)=>{Br.init(e,r),e._zod.check=n=>{try{const o=n.value,a=new URL(o),i=a.href;r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Fwt.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),!o.endsWith("/")&&i.endsWith("/")?n.value=i.slice(0,-1):n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),h3t=Pe("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Dwt()),Br.init(e,r)}),f3t=Pe("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Rwt),Br.init(e,r)}),p3t=Pe("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Swt),Br.init(e,r)}),m3t=Pe("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Cwt),Br.init(e,r)}),g3t=Pe("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Twt),Br.init(e,r)}),y3t=Pe("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Awt),Br.init(e,r)}),b3t=Pe("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Nwt),Br.init(e,r)}),v3t=Pe("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=qwt(r)),Br.init(e,r)}),x3t=Pe("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Uwt),Br.init(e,r)}),w3t=Pe("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Vwt(r)),Br.init(e,r)}),k3t=Pe("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=$wt),Br.init(e,r)}),_3t=Pe("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Lwt),Br.init(e,r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv4"})}),E3t=Pe("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Iwt),Br.init(e,r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),S3t=Pe("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=zwt),Br.init(e,r)}),C3t=Pe("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=jwt),Br.init(e,r),e._zod.check=n=>{const[o,a]=n.value.split("/");try{if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function bfe(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const T3t=Pe("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Bwt),Br.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{bfe(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function A3t(e){if(!mfe.test(e))return!1;const r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return bfe(n)}const N3t=Pe("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=mfe),Br.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{A3t(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),R3t=Pe("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Hwt),Br.init(e,r)});function $3t(e,r=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const a=JSON.parse(atob(o));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||r&&(!("alg"in a)||a.alg!==r))}catch{return!1}}const P3t=Pe("$ZodJWT",(e,r)=>{Br.init(e,r),e._zod.check=n=>{$3t(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),vfe=Pe("$ZodBoolean",(e,r)=>{en.init(e,r),e._zod.pattern=Wwt,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),M3t=Pe("$ZodUnknown",(e,r)=>{en.init(e,r),e._zod.parse=n=>n}),O3t=Pe("$ZodNever",(e,r)=>{en.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function xfe(e,r,n){e.issues.length&&r.issues.push(...fM(n,e.issues)),r.value[n]=e.value}const D3t=Pe("$ZodArray",(e,r)=>{en.init(e,r),e._zod.parse=(n,o)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let s=0;s<a.length;s++){const l=a[s],c=r.element._zod.run({value:l,issues:[]},o);c instanceof Promise?i.push(c.then(u=>xfe(u,n,s))):xfe(c,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function R5(e,r,n){e.issues.length&&r.issues.push(...fM(n,e.issues)),r.value[n]=e.value}function wfe(e,r,n,o){e.issues.length?o[n]===void 0?n in o?r.value[n]=void 0:r.value[n]=e.value:r.issues.push(...fM(n,e.issues)):e.value===void 0?n in o&&(r.value[n]=void 0):r.value[n]=e.value}const L3t=Pe("$ZodObject",(e,r)=>{en.init(e,r);const n=ife(()=>{const d=Object.keys(r.shape);for(const p of d)if(!(r.shape[p]instanceof en))throw new Error(`Invalid element at key "${p}": expected a Zod schema`);const h=fwt(r.shape);return{shape:r.shape,keys:d,keySet:new Set(d),numKeys:d.length,optionalKeys:new Set(h)}});jr(e._zod,"propValues",()=>{const d=r.shape,h={};for(const p in d){const g=d[p]._zod;if(g.values){h[p]??(h[p]=new Set);for(const y of g.values)h[p].add(y)}}return h});const o=d=>{const h=new i3t(["shape","payload","ctx"]),p=n.value,g=k=>{const C=zb(k);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};h.write("const input = payload.value;");const y=Object.create(null);let x=0;for(const k of p.keys)y[k]=`key_${x++}`;h.write("const newResult = {}");for(const k of p.keys)if(p.optionalKeys.has(k)){const C=y[k];h.write(`const ${C} = ${g(k)};`);const _=zb(k);h.write(`
        if (${C}.issues.length) {
          if (input[${_}] === undefined) {
            if (${_} in input) {
              newResult[${_}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${C}.issues.map((iss) => ({
                ...iss,
                path: iss.path ? [${_}, ...iss.path] : [${_}],
              }))
            );
          }
        } else if (${C}.value === undefined) {
          if (${_} in input) newResult[${_}] = undefined;
        } else {
          newResult[${_}] = ${C}.value;
        }
        `)}else{const C=y[k];h.write(`const ${C} = ${g(k)};`),h.write(`
          if (${C}.issues.length) payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${zb(k)}, ...iss.path] : [${zb(k)}]
          })));`),h.write(`newResult[${zb(k)}] = ${C}.value`)}h.write("payload.value = newResult;"),h.write("return payload;");const w=h.compile();return(k,C)=>w(d,k,C)};let a;const i=dM,s=!afe.jitless,l=s&&dwt.value,c=r.catchall;let u;e._zod.parse=(d,h)=>{u??(u=n.value);const p=d.value;if(!i(p))return d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d;const g=[];if(s&&l&&h?.async===!1&&h.jitless!==!0)a||(a=o(r.shape)),d=a(d,h);else{d.value={};const C=u.shape;for(const _ of u.keys){const T=C[_],A=T._zod.run({value:p[_],issues:[]},h),N=T._zod.optin==="optional"&&T._zod.optout==="optional";A instanceof Promise?g.push(A.then($=>N?wfe($,d,_,p):R5($,d,_))):N?wfe(A,d,_,p):R5(A,d,_)}}if(!c)return g.length?Promise.all(g).then(()=>d):d;const y=[],x=u.keySet,w=c._zod,k=w.def.type;for(const C of Object.keys(p)){if(x.has(C))continue;if(k==="never"){y.push(C);continue}const _=w.run({value:p[C],issues:[]},h);_ instanceof Promise?g.push(_.then(T=>R5(T,d,C))):R5(_,d,C)}return y.length&&d.issues.push({code:"unrecognized_keys",keys:y,input:p,inst:e}),g.length?Promise.all(g).then(()=>d):d}});function kfe(e,r,n,o){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;return r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(a=>a.issues.map(i=>Zh(i,o,Gh())))}),r}const I3t=Pe("$ZodUnion",(e,r)=>{en.init(e,r),jr(e._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),jr(e._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),jr(e._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),jr(e._zod,"pattern",()=>{if(r.options.every(n=>n._zod.pattern)){const n=r.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>cM(o.source)).join("|")})$`)}}),e._zod.parse=(n,o)=>{let a=!1;const i=[];for(const s of r.options){const l=s._zod.run({value:n.value,issues:[]},o);if(l instanceof Promise)i.push(l),a=!0;else{if(l.issues.length===0)return l;i.push(l)}}return a?Promise.all(i).then(s=>kfe(s,n,e,o)):kfe(i,n,e,o)}}),z3t=Pe("$ZodIntersection",(e,r)=>{en.init(e,r),e._zod.parse=(n,o)=>{const a=n.value,i=r.left._zod.run({value:a,issues:[]},o),s=r.right._zod.run({value:a,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>_fe(n,l,c)):_fe(n,i,s)}});function mM(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(hM(e)&&hM(r)){const n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...r};for(const i of o){const s=mM(e[i],r[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};a[i]=s.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const a=e[o],i=r[o],s=mM(a,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _fe(e,r,n){if(r.issues.length&&e.issues.push(...r.issues),n.issues.length&&e.issues.push(...n.issues),Bb(e))return e;const o=mM(r.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const j3t=Pe("$ZodEnum",(e,r)=>{en.init(e,r);const n=cwt(r.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(o=>hwt.has(typeof o)).map(o=>typeof o=="string"?jb(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return e._zod.values.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),B3t=Pe("$ZodLiteral",(e,r)=>{en.init(e,r),e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?jb(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,o)=>{const a=n.value;return e._zod.values.has(a)||n.issues.push({code:"invalid_value",values:r.values,input:a,inst:e}),n}}),Efe=Pe("$ZodTransform",(e,r)=>{en.init(e,r),e._zod.parse=(n,o)=>{const a=r.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n));if(a instanceof Promise)throw new Ib;return n.value=a,n}}),F3t=Pe("$ZodOptional",(e,r)=>{en.init(e,r),e._zod.optin="optional",e._zod.optout="optional",jr(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),jr(e._zod,"pattern",()=>{const n=r.innerType._zod.pattern;return n?new RegExp(`^(${cM(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>r.innerType._zod.optin==="optional"?r.innerType._zod.run(n,o):n.value===void 0?n:r.innerType._zod.run(n,o)}),H3t=Pe("$ZodNullable",(e,r)=>{en.init(e,r),jr(e._zod,"optin",()=>r.innerType._zod.optin),jr(e._zod,"optout",()=>r.innerType._zod.optout),jr(e._zod,"pattern",()=>{const n=r.innerType._zod.pattern;return n?new RegExp(`^(${cM(n.source)}|null)$`):void 0}),jr(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),U3t=Pe("$ZodDefault",(e,r)=>{en.init(e,r),e._zod.optin="optional",jr(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(n.value===void 0)return n.value=r.defaultValue,n;const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>Sfe(i,r)):Sfe(a,r)}});function Sfe(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const V3t=Pe("$ZodPrefault",(e,r)=>{en.init(e,r),e._zod.optin="optional",jr(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),q3t=Pe("$ZodNonOptional",(e,r)=>{en.init(e,r),jr(e._zod,"values",()=>{const n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>Cfe(i,e)):Cfe(a,e)}});function Cfe(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const Y3t=Pe("$ZodCatch",(e,r)=>{en.init(e,r),e._zod.optin="optional",jr(e._zod,"optout",()=>r.innerType._zod.optout),jr(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(s=>Zh(s,o,Gh()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=r.catchValue({...n,error:{issues:a.issues.map(i=>Zh(i,o,Gh()))},input:n.value}),n.issues=[]),n)}}),Tfe=Pe("$ZodPipe",(e,r)=>{en.init(e,r),jr(e._zod,"values",()=>r.in._zod.values),jr(e._zod,"optin",()=>r.in._zod.optin),jr(e._zod,"optout",()=>r.out._zod.optout),e._zod.parse=(n,o)=>{const a=r.in._zod.run(n,o);return a instanceof Promise?a.then(i=>Afe(i,r,o)):Afe(a,r,o)}});function Afe(e,r,n){return Bb(e)?e:r.out._zod.run({value:e.value,issues:e.issues},n)}const W3t=Pe("$ZodReadonly",(e,r)=>{en.init(e,r),jr(e._zod,"propValues",()=>r.innerType._zod.propValues),jr(e._zod,"values",()=>r.innerType._zod.values),jr(e._zod,"optin",()=>r.innerType._zod.optin),jr(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(n,o)=>{const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(Nfe):Nfe(a)}});function Nfe(e){return e.value=Object.freeze(e.value),e}const X3t=Pe("$ZodCustom",(e,r)=>{kl.init(e,r),en.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,a=r.fn(o);if(a instanceof Promise)return a.then(i=>Rfe(i,n,o,e));Rfe(a,n,o,e)}});function Rfe(e,r,n,o){if(!e){const a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),r.issues.push(Fb(a))}}class G3t{constructor(){this._map=new Map,this._idmap=new Map}add(r,...n){const o=n[0];if(this._map.set(r,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){const n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){const n=r._zod.parent;if(n){const o={...this.get(n)??{}};return delete o.id,{...o,...this._map.get(r)}}return this._map.get(r)}has(r){return this._map.has(r)}}function K3t(){return new G3t}const $5=K3t();function Z3t(e,r){return new e({type:"string",...kt(r)})}function Q3t(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...kt(r)})}function $fe(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...kt(r)})}function J3t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...kt(r)})}function ekt(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...kt(r)})}function tkt(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...kt(r)})}function rkt(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...kt(r)})}function nkt(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...kt(r)})}function okt(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...kt(r)})}function akt(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...kt(r)})}function ikt(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...kt(r)})}function skt(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...kt(r)})}function lkt(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...kt(r)})}function ckt(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...kt(r)})}function ukt(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...kt(r)})}function dkt(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...kt(r)})}function hkt(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...kt(r)})}function fkt(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...kt(r)})}function pkt(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...kt(r)})}function mkt(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...kt(r)})}function gkt(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...kt(r)})}function ykt(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...kt(r)})}function bkt(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...kt(r)})}function vkt(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...kt(r)})}function xkt(e,r){return new e({type:"string",format:"date",check:"string_format",...kt(r)})}function wkt(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...kt(r)})}function kkt(e,r){return new e({type:"string",format:"duration",check:"string_format",...kt(r)})}function _kt(e){return new e({type:"unknown"})}function Ekt(e,r){return new e({type:"never",...kt(r)})}function Pfe(e,r){return new Kwt({check:"max_length",...kt(r),maximum:e})}function P5(e,r){return new Zwt({check:"min_length",...kt(r),minimum:e})}function Mfe(e,r){return new Qwt({check:"length_equals",...kt(r),length:e})}function Skt(e,r){return new Jwt({check:"string_format",format:"regex",...kt(r),pattern:e})}function Ckt(e){return new e3t({check:"string_format",format:"lowercase",...kt(e)})}function Tkt(e){return new t3t({check:"string_format",format:"uppercase",...kt(e)})}function Akt(e,r){return new r3t({check:"string_format",format:"includes",...kt(r),includes:e})}function Nkt(e,r){return new n3t({check:"string_format",format:"starts_with",...kt(r),prefix:e})}function Rkt(e,r){return new o3t({check:"string_format",format:"ends_with",...kt(r),suffix:e})}function Hb(e){return new a3t({check:"overwrite",tx:e})}function $kt(e){return Hb(r=>r.normalize(e))}function Pkt(){return Hb(e=>e.trim())}function Mkt(){return Hb(e=>e.toLowerCase())}function Okt(){return Hb(e=>e.toUpperCase())}function Dkt(e,r,n){return new e({type:"array",element:r,...kt(n)})}function Lkt(e,r,n){return new e({type:"custom",check:"custom",fn:r,...kt(n)})}function Ikt(e,r){const n=kt(r);let o=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),a=a.map(g=>typeof g=="string"?g.toLowerCase():g));const i=new Set(o),s=new Set(a),l=e.Pipe??Tfe,c=e.Boolean??vfe,u=e.String??N5,d=e.Transform??Efe,h=new d({type:"transform",transform:(g,y)=>{let x=g;return n.case!=="sensitive"&&(x=x.toLowerCase()),i.has(x)?!0:s.has(x)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:y.value,inst:h}),{})},error:n.error}),p=new l({type:"pipe",in:new u({type:"string",error:n.error}),out:h,error:n.error});return new l({type:"pipe",in:p,out:new c({type:"boolean",error:n.error}),error:n.error})}const zkt=Pe("ZodISODateTime",(e,r)=>{v3t.init(e,r),Yr.init(e,r)});function jkt(e){return vkt(zkt,e)}const Bkt=Pe("ZodISODate",(e,r)=>{x3t.init(e,r),Yr.init(e,r)});function Fkt(e){return xkt(Bkt,e)}const Hkt=Pe("ZodISOTime",(e,r)=>{w3t.init(e,r),Yr.init(e,r)});function Ukt(e){return wkt(Hkt,e)}const Vkt=Pe("ZodISODuration",(e,r)=>{k3t.init(e,r),Yr.init(e,r)});function qkt(e){return kkt(Vkt,e)}const Ykt=(e,r)=>{cfe.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>dfe(e,n)},flatten:{value:n=>xwt(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},M5=Pe("ZodError",Ykt,{Parent:Error}),Wkt=wwt(M5),Xkt=kwt(M5),Gkt=hfe(M5),Kkt=ffe(M5),$n=Pe("ZodType",(e,r)=>(en.init(e,r),e.def=r,Object.defineProperty(e,"_def",{value:r}),e.check=(...n)=>e.clone({...r,checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),e.clone=(n,o)=>Kh(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Wkt(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Gkt(e,n,o),e.parseAsync=async(n,o)=>Xkt(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Kkt(e,n,o),e.spa=e.safeParseAsync,e.refine=(n,o)=>e.check(U_t(n,o)),e.superRefine=n=>e.check(V_t(n)),e.overwrite=n=>e.check(Hb(n)),e.optional=()=>Bfe(e),e.nullable=()=>Ffe(e),e.nullish=()=>Bfe(Ffe(e)),e.nonoptional=n=>L_t(e,n),e.array=()=>x_t(e),e.or=n=>E_t([e,n]),e.and=n=>C_t(e,n),e.transform=n=>Vfe(e,R_t(n)),e.default=n=>M_t(e,n),e.prefault=n=>D_t(e,n),e.catch=n=>z_t(e,n),e.pipe=n=>Vfe(e,n),e.readonly=()=>B_t(e),e.describe=n=>{const o=e.clone();return $5.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return $5.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return $5.get(e);const o=e.clone();return $5.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ofe=Pe("_ZodString",(e,r)=>{N5.init(e,r),$n.init(e,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Skt(...o)),e.includes=(...o)=>e.check(Akt(...o)),e.startsWith=(...o)=>e.check(Nkt(...o)),e.endsWith=(...o)=>e.check(Rkt(...o)),e.min=(...o)=>e.check(P5(...o)),e.max=(...o)=>e.check(Pfe(...o)),e.length=(...o)=>e.check(Mfe(...o)),e.nonempty=(...o)=>e.check(P5(1,...o)),e.lowercase=o=>e.check(Ckt(o)),e.uppercase=o=>e.check(Tkt(o)),e.trim=()=>e.check(Pkt()),e.normalize=(...o)=>e.check($kt(...o)),e.toLowerCase=()=>e.check(Mkt()),e.toUpperCase=()=>e.check(Okt())}),Dfe=Pe("ZodString",(e,r)=>{N5.init(e,r),Ofe.init(e,r),e.email=n=>e.check(Q3t(Qkt,n)),e.url=n=>e.check(nkt(Jkt,n)),e.jwt=n=>e.check(bkt(p_t,n)),e.emoji=n=>e.check(okt(e_t,n)),e.guid=n=>e.check($fe(Lfe,n)),e.uuid=n=>e.check(J3t(O5,n)),e.uuidv4=n=>e.check(ekt(O5,n)),e.uuidv6=n=>e.check(tkt(O5,n)),e.uuidv7=n=>e.check(rkt(O5,n)),e.nanoid=n=>e.check(akt(t_t,n)),e.guid=n=>e.check($fe(Lfe,n)),e.cuid=n=>e.check(ikt(r_t,n)),e.cuid2=n=>e.check(skt(n_t,n)),e.ulid=n=>e.check(lkt(o_t,n)),e.base64=n=>e.check(mkt(d_t,n)),e.base64url=n=>e.check(gkt(h_t,n)),e.xid=n=>e.check(ckt(a_t,n)),e.ksuid=n=>e.check(ukt(i_t,n)),e.ipv4=n=>e.check(dkt(s_t,n)),e.ipv6=n=>e.check(hkt(l_t,n)),e.cidrv4=n=>e.check(fkt(c_t,n)),e.cidrv6=n=>e.check(pkt(u_t,n)),e.e164=n=>e.check(ykt(f_t,n)),e.datetime=n=>e.check(jkt(n)),e.date=n=>e.check(Fkt(n)),e.time=n=>e.check(Ukt(n)),e.duration=n=>e.check(qkt(n))});function Zkt(e){return Z3t(Dfe,e)}const Yr=Pe("ZodStringFormat",(e,r)=>{Br.init(e,r),Ofe.init(e,r)}),Qkt=Pe("ZodEmail",(e,r)=>{u3t.init(e,r),Yr.init(e,r)}),Lfe=Pe("ZodGUID",(e,r)=>{l3t.init(e,r),Yr.init(e,r)}),O5=Pe("ZodUUID",(e,r)=>{c3t.init(e,r),Yr.init(e,r)}),Jkt=Pe("ZodURL",(e,r)=>{d3t.init(e,r),Yr.init(e,r)}),e_t=Pe("ZodEmoji",(e,r)=>{h3t.init(e,r),Yr.init(e,r)}),t_t=Pe("ZodNanoID",(e,r)=>{f3t.init(e,r),Yr.init(e,r)}),r_t=Pe("ZodCUID",(e,r)=>{p3t.init(e,r),Yr.init(e,r)}),n_t=Pe("ZodCUID2",(e,r)=>{m3t.init(e,r),Yr.init(e,r)}),o_t=Pe("ZodULID",(e,r)=>{g3t.init(e,r),Yr.init(e,r)}),a_t=Pe("ZodXID",(e,r)=>{y3t.init(e,r),Yr.init(e,r)}),i_t=Pe("ZodKSUID",(e,r)=>{b3t.init(e,r),Yr.init(e,r)}),s_t=Pe("ZodIPv4",(e,r)=>{_3t.init(e,r),Yr.init(e,r)}),l_t=Pe("ZodIPv6",(e,r)=>{E3t.init(e,r),Yr.init(e,r)}),c_t=Pe("ZodCIDRv4",(e,r)=>{S3t.init(e,r),Yr.init(e,r)}),u_t=Pe("ZodCIDRv6",(e,r)=>{C3t.init(e,r),Yr.init(e,r)}),d_t=Pe("ZodBase64",(e,r)=>{T3t.init(e,r),Yr.init(e,r)}),h_t=Pe("ZodBase64URL",(e,r)=>{N3t.init(e,r),Yr.init(e,r)}),f_t=Pe("ZodE164",(e,r)=>{R3t.init(e,r),Yr.init(e,r)}),p_t=Pe("ZodJWT",(e,r)=>{P3t.init(e,r),Yr.init(e,r)}),m_t=Pe("ZodBoolean",(e,r)=>{vfe.init(e,r),$n.init(e,r)}),g_t=Pe("ZodUnknown",(e,r)=>{M3t.init(e,r),$n.init(e,r)});function Ife(){return _kt(g_t)}const y_t=Pe("ZodNever",(e,r)=>{O3t.init(e,r),$n.init(e,r)});function b_t(e){return Ekt(y_t,e)}const v_t=Pe("ZodArray",(e,r)=>{D3t.init(e,r),$n.init(e,r),e.element=r.element,e.min=(n,o)=>e.check(P5(n,o)),e.nonempty=n=>e.check(P5(1,n)),e.max=(n,o)=>e.check(Pfe(n,o)),e.length=(n,o)=>e.check(Mfe(n,o)),e.unwrap=()=>e.element});function x_t(e,r){return Dkt(v_t,e,r)}const w_t=Pe("ZodObject",(e,r)=>{L3t.init(e,r),$n.init(e,r),jr(e,"shape",()=>r.shape),e.keyof=()=>T_t(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ife()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ife()}),e.strict=()=>e.clone({...e._zod.def,catchall:b_t()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>gwt(e,n),e.merge=n=>ywt(e,n),e.pick=n=>pwt(e,n),e.omit=n=>mwt(e,n),e.partial=(...n)=>bwt(jfe,e,n[0]),e.required=(...n)=>vwt(Hfe,e,n[0])});function k_t(e,r){const n={type:"object",get shape(){return uM(this,"shape",{...e}),this.shape},...kt(r)};return new w_t(n)}const __t=Pe("ZodUnion",(e,r)=>{I3t.init(e,r),$n.init(e,r),e.options=r.options});function E_t(e,r){return new __t({type:"union",options:e,...kt(r)})}const S_t=Pe("ZodIntersection",(e,r)=>{z3t.init(e,r),$n.init(e,r)});function C_t(e,r){return new S_t({type:"intersection",left:e,right:r})}const gM=Pe("ZodEnum",(e,r)=>{j3t.init(e,r),$n.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const n=new Set(Object.keys(r.entries));e.extract=(o,a)=>{const i={};for(const s of o)if(n.has(s))i[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new gM({...r,checks:[],...kt(a),entries:i})},e.exclude=(o,a)=>{const i={...r.entries};for(const s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new gM({...r,checks:[],...kt(a),entries:i})}});function T_t(e,r){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new gM({type:"enum",entries:n,...kt(r)})}const A_t=Pe("ZodLiteral",(e,r)=>{B3t.init(e,r),$n.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function N_t(e,r){return new A_t({type:"literal",values:Array.isArray(e)?e:[e],...kt(r)})}const zfe=Pe("ZodTransform",(e,r)=>{Efe.init(e,r),$n.init(e,r),e._zod.parse=(n,o)=>{n.addIssue=i=>{if(typeof i=="string")n.issues.push(Fb(i,n.value,r));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),s.continue??(s.continue=!0),n.issues.push(Fb(s))}};const a=r.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n)):(n.value=a,n)}});function R_t(e){return new zfe({type:"transform",transform:e})}const jfe=Pe("ZodOptional",(e,r)=>{F3t.init(e,r),$n.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Bfe(e){return new jfe({type:"optional",innerType:e})}const $_t=Pe("ZodNullable",(e,r)=>{H3t.init(e,r),$n.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Ffe(e){return new $_t({type:"nullable",innerType:e})}const P_t=Pe("ZodDefault",(e,r)=>{U3t.init(e,r),$n.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function M_t(e,r){return new P_t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}const O_t=Pe("ZodPrefault",(e,r)=>{V3t.init(e,r),$n.init(e,r),e.unwrap=()=>e._zod.def.innerType});function D_t(e,r){return new O_t({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}const Hfe=Pe("ZodNonOptional",(e,r)=>{q3t.init(e,r),$n.init(e,r),e.unwrap=()=>e._zod.def.innerType});function L_t(e,r){return new Hfe({type:"nonoptional",innerType:e,...kt(r)})}const I_t=Pe("ZodCatch",(e,r)=>{Y3t.init(e,r),$n.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function z_t(e,r){return new I_t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Ufe=Pe("ZodPipe",(e,r)=>{Tfe.init(e,r),$n.init(e,r),e.in=r.in,e.out=r.out});function Vfe(e,r){return new Ufe({type:"pipe",in:e,out:r})}const j_t=Pe("ZodReadonly",(e,r)=>{W3t.init(e,r),$n.init(e,r)});function B_t(e){return new j_t({type:"readonly",innerType:e})}const F_t=Pe("ZodCustom",(e,r)=>{X3t.init(e,r),$n.init(e,r)});function H_t(e){const r=new kl({check:"custom"});return r._zod.check=e,r}function U_t(e,r={}){return Lkt(F_t,e,r)}function V_t(e){const r=H_t(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Fb(o,n.value,r._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=r),a.continue??(a.continue=!r._zod.def.abort),n.issues.push(Fb(a))}},e(n.value,n)));return r}const q_t=(...e)=>Ikt({Pipe:Ufe,Boolean:m_t,String:Dfe,Transform:zfe},...e),Y_t=k_t({viewId:Zkt().default("index"),browser:q_t().default(!0),dynamicViewVariant:N_t(["diagram","sequence"]).optional()});class qfe extends HTMLElement{shadow;root;hostCss;lastHostCss="";constructor(){super(),this.shadow=this.attachShadow({mode:"open",delegatesFocus:!0})}updateHostCss(){const r=`
    :host {
      display: block;
      position: relative;
      background-color: transparent;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      overflow: hidden;
      border: 0px solid transparent;
      padding: 0;
    }`;r!==this.lastHostCss&&(this.hostCss?.replaceSync(r),this.lastHostCss=r)}connectedCallback(){this.lastHostCss="",this.hostCss=new CSSStyleSheet,this.updateHostCss(),this.shadow.adoptedStyleSheets=[this.hostCss],this.render()}disconnectedCallback(){this.root?.unmount(),this.root=void 0,this.shadow.adoptedStyleSheets.length=0,this.hostCss=void 0}static observedAttributes=["view-id","browser","dynamic-variant"];getProps(){const r=Y_t.safeParse({viewId:this.getAttribute("view-id"),browser:this.getAttribute("browser")??void 0,dynamicViewVariant:this.getAttribute("dynamic-variant")??void 0});return r.success?r.data:(console.error("Invalid props",dfe(r.error)),{viewId:"index"})}render(){const r=this.getProps();this.updateHostCss(),this.root??=_tt.createRoot(this.shadow),this.root.render(b.jsx(btt,{...r}))}attributeChangedCallback(r){this.root&&this.render()}}return customElements.define(Ett.View,qfe),F2.LikeC4View=qfe,Object.defineProperty(F2,Symbol.toStringTag,{value:"Module"}),F2})({});


/* prettier-ignore-end */

