@ansible/ansible-ui-framework 2.4.347 → 2.4.349
Sign up to get free protection for your applications and to get access to all the features.
package/index.umd.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
var Kat=Object.defineProperty;var Gat=(he,T,
|
1
|
+
var Kat=Object.defineProperty;var Gat=(he,T,P)=>T in he?Kat(he,T,{enumerable:!0,configurable:!0,writable:!0,value:P}):he[T]=P;var c3=(he,T,P)=>(Gat(he,typeof T!="symbol"?T+"":T,P),P),hie=(he,T,P)=>{if(!T.has(he))throw TypeError("Cannot "+P)};var Vd=(he,T,P)=>(hie(he,T,"read from private field"),P?P.call(he):T.get(he)),dk=(he,T,P)=>{if(T.has(he))throw TypeError("Cannot add the same private member more than once");T instanceof WeakSet?T.add(he):T.set(he,P)},lu=(he,T,P,yt)=>(hie(he,T,"write to private field"),yt?yt.call(he,P):T.set(he,P),P);var u3=(he,T,P,yt)=>({set _(Qf){lu(he,T,Qf,P)},get _(){return Vd(he,T,yt)}});(function(he,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("@patternfly/react-core"),require("@patternfly/react-icons"),require("react-router-dom"),require("@patternfly/react-table"),require("react-dom"),require("monaco-editor")):typeof define=="function"&&define.amd?define(["exports","react","@patternfly/react-core","@patternfly/react-icons","react-router-dom","@patternfly/react-table","react-dom","monaco-editor"],T):(he=typeof globalThis<"u"?globalThis:he||self,T(he["@ansible/ansible-ui-framework"]={},he.React,he.PatternflyReactCore,he.PatternflyReactIcons,he.ReactRouterDom,he.PatternflyReactTable,he.ReactDOM,he.MonacoEditor))})(this,function(he,T,P,yt,Qf,Ht,gie,mie){var Gl,zf,Uf;"use strict";function fk(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const ae=fk(T),g3=fk(gie),na=fk(mie);var qi=(n=>(n[n.Button=0]="Button",n[n.Link=1]="Link",n[n.Switch=2]="Switch",n[n.Dropdown=3]="Dropdown",n[n.Seperator=4]="Seperator",n))(qi||{}),ei=(n=>(n[n.None=0]="None",n[n.Single=1]="Single",n[n.Multiple=2]="Multiple",n))(ei||{}),o0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function St(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gk={exports:{}},a0={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -18,7 +18,7 @@ var Kat=Object.defineProperty;var Gat=(he,T,R)=>T in he?Kat(he,T,{enumerable:!0,
|
|
18
18
|
`+xe+K}}var Ce=!1,Se;{var pe=typeof WeakMap=="function"?WeakMap:Map;Se=new pe}function Q(K,Ee){if(!K||Ce)return"";{var Be=Se.get(K);if(Be!==void 0)return Be}var rt;Ce=!0;var $t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gn;gn=te.current,te.current=null,ce();try{if(Ee){var Gt=function(){throw Error()};if(Object.defineProperty(Gt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Gt,[])}catch(au){rt=au}Reflect.construct(K,[],Gt)}else{try{Gt.call()}catch(au){rt=au}K.call(Gt.prototype)}}else{try{throw Error()}catch(au){rt=au}K()}}catch(au){if(au&&rt&&typeof au.stack=="string"){for(var Kt=au.stack.split(`
|
19
19
|
`),Zr=rt.stack.split(`
|
20
20
|
`),Ai=Kt.length-1,zi=Zr.length-1;Ai>=1&&zi>=0&&Kt[Ai]!==Zr[zi];)zi--;for(;Ai>=1&&zi>=0;Ai--,zi--)if(Kt[Ai]!==Zr[zi]){if(Ai!==1||zi!==1)do if(Ai--,zi--,zi<0||Kt[Ai]!==Zr[zi]){var Qo=`
|
21
|
-
`+Kt[Ai].replace(" at new "," at ");return K.displayName&&Qo.includes("<anonymous>")&&(Qo=Qo.replace("<anonymous>",K.displayName)),typeof K=="function"&&Se.set(K,Qo),Qo}while(Ai>=1&&zi>=0);break}}}finally{Ce=!1,te.current=gn,De(),Error.prepareStackTrace=$t}var i0=K?K.displayName||K.name:"",die=i0?ge(i0):"";return typeof K=="function"&&Se.set(K,die),die}function Xe(K,Ee,Be){return Q(K,!1)}function et(K){var Ee=K.prototype;return!!(Ee&&Ee.isReactComponent)}function Fe(K,Ee,Be){if(K==null)return"";if(typeof K=="function")return Q(K,et(K));if(typeof K=="string")return ge(K);switch(K){case c:return ge("Suspense");case u:return ge("SuspenseList")}if(typeof K=="object")switch(K.$$typeof){case l:return Xe(K.render);case d:return Fe(K.type,Ee,Be);case h:{var rt=K,$t=rt._payload,gn=rt._init;try{return Fe(gn($t),Ee,Be)}catch{}}}return""}var j=Object.prototype.hasOwnProperty,le={},be=v.ReactDebugCurrentFrame;function $e(K){if(K){var Ee=K._owner,Be=Fe(K.type,K._source,Ee?Ee.type:null);be.setExtraStackFrame(Be)}else be.setExtraStackFrame(null)}function Y(K,Ee,Be,rt,$t){{var gn=Function.call.bind(j);for(var Gt in K)if(gn(K,Gt)){var Kt=void 0;try{if(typeof K[Gt]!="function"){var Zr=Error((rt||"React class")+": "+Be+" type `"+Gt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[Gt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Zr.name="Invariant Violation",Zr}Kt=K[Gt](Ee,Gt,rt,Be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ai){Kt=Ai}Kt&&!(Kt instanceof Error)&&($e($t),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",rt||"React class",Be,Gt,typeof Kt),$e(null)),Kt instanceof Error&&!(Kt.message in le)&&(le[Kt.message]=!0,$e($t),_("Failed %s type: %s",Be,Kt.message),$e(null))}}}var H=Array.isArray;function q(K){return H(K)}function
|
21
|
+
`+Kt[Ai].replace(" at new "," at ");return K.displayName&&Qo.includes("<anonymous>")&&(Qo=Qo.replace("<anonymous>",K.displayName)),typeof K=="function"&&Se.set(K,Qo),Qo}while(Ai>=1&&zi>=0);break}}}finally{Ce=!1,te.current=gn,De(),Error.prepareStackTrace=$t}var i0=K?K.displayName||K.name:"",die=i0?ge(i0):"";return typeof K=="function"&&Se.set(K,die),die}function Xe(K,Ee,Be){return Q(K,!1)}function et(K){var Ee=K.prototype;return!!(Ee&&Ee.isReactComponent)}function Fe(K,Ee,Be){if(K==null)return"";if(typeof K=="function")return Q(K,et(K));if(typeof K=="string")return ge(K);switch(K){case c:return ge("Suspense");case u:return ge("SuspenseList")}if(typeof K=="object")switch(K.$$typeof){case l:return Xe(K.render);case d:return Fe(K.type,Ee,Be);case h:{var rt=K,$t=rt._payload,gn=rt._init;try{return Fe(gn($t),Ee,Be)}catch{}}}return""}var j=Object.prototype.hasOwnProperty,le={},be=v.ReactDebugCurrentFrame;function $e(K){if(K){var Ee=K._owner,Be=Fe(K.type,K._source,Ee?Ee.type:null);be.setExtraStackFrame(Be)}else be.setExtraStackFrame(null)}function Y(K,Ee,Be,rt,$t){{var gn=Function.call.bind(j);for(var Gt in K)if(gn(K,Gt)){var Kt=void 0;try{if(typeof K[Gt]!="function"){var Zr=Error((rt||"React class")+": "+Be+" type `"+Gt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[Gt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Zr.name="Invariant Violation",Zr}Kt=K[Gt](Ee,Gt,rt,Be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ai){Kt=Ai}Kt&&!(Kt instanceof Error)&&($e($t),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",rt||"React class",Be,Gt,typeof Kt),$e(null)),Kt instanceof Error&&!(Kt.message in le)&&(le[Kt.message]=!0,$e($t),_("Failed %s type: %s",Be,Kt.message),$e(null))}}}var H=Array.isArray;function q(K){return H(K)}function R(K){{var Ee=typeof Symbol=="function"&&Symbol.toStringTag,Be=Ee&&K[Symbol.toStringTag]||K.constructor.name||"Object";return Be}}function F(K){try{return z(K),!1}catch{return!0}}function z(K){return""+K}function U(K){if(F(K))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",R(K)),z(K)}var fe=v.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},Ie,Pe,Ze;Ze={};function Ye(K){if(j.call(K,"ref")){var Ee=Object.getOwnPropertyDescriptor(K,"ref").get;if(Ee&&Ee.isReactWarning)return!1}return K.ref!==void 0}function Vt(K){if(j.call(K,"key")){var Ee=Object.getOwnPropertyDescriptor(K,"key").get;if(Ee&&Ee.isReactWarning)return!1}return K.key!==void 0}function Et(K,Ee){if(typeof K.ref=="string"&&fe.current&&Ee&&fe.current.stateNode!==Ee){var Be=M(fe.current.type);Ze[Be]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(fe.current.type),K.ref),Ze[Be]=!0)}}function Me(K,Ee){{var Be=function(){Ie||(Ie=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ee))};Be.isReactWarning=!0,Object.defineProperty(K,"key",{get:Be,configurable:!0})}}function Mt(K,Ee){{var Be=function(){Pe||(Pe=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ee))};Be.isReactWarning=!0,Object.defineProperty(K,"ref",{get:Be,configurable:!0})}}var Ut=function(K,Ee,Be,rt,$t,gn,Gt){var Kt={$$typeof:e,type:K,key:Ee,ref:Be,props:Gt,_owner:gn};return Kt._store={},Object.defineProperty(Kt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Kt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:rt}),Object.defineProperty(Kt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:$t}),Object.freeze&&(Object.freeze(Kt.props),Object.freeze(Kt)),Kt};function zn(K,Ee,Be,rt,$t){{var gn,Gt={},Kt=null,Zr=null;Be!==void 0&&(U(Be),Kt=""+Be),Vt(Ee)&&(U(Ee.key),Kt=""+Ee.key),Ye(Ee)&&(Zr=Ee.ref,Et(Ee,$t));for(gn in Ee)j.call(Ee,gn)&&!ke.hasOwnProperty(gn)&&(Gt[gn]=Ee[gn]);if(K&&K.defaultProps){var Ai=K.defaultProps;for(gn in Ai)Gt[gn]===void 0&&(Gt[gn]=Ai[gn])}if(Kt||Zr){var zi=typeof K=="function"?K.displayName||K.name||"Unknown":K;Kt&&Me(Gt,zi),Zr&&Mt(Gt,zi)}return Ut(K,Kt,Zr,$t,rt,fe.current,Gt)}}var Qt=v.ReactCurrentOwner,An=v.ReactDebugCurrentFrame;function js(K){if(K){var Ee=K._owner,Be=Fe(K.type,K._source,Ee?Ee.type:null);An.setExtraStackFrame(Be)}else An.setExtraStackFrame(null)}var vr;vr=!1;function zs(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function za(){{if(Qt.current){var K=M(Qt.current.type);if(K)return`
|
22
22
|
|
23
23
|
Check the render method of \``+K+"`."}return""}}function su(K){{if(K!==void 0){var Ee=K.fileName.replace(/^.*[\\\/]/,""),Be=K.lineNumber;return`
|
24
24
|
|
@@ -38,7 +38,7 @@ Check the top-level render call using <`+Be+">.")}return Ee}}function Yr(K,Ee){{
|
|
38
38
|
*
|
39
39
|
* This source code is licensed under the MIT license found in the
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
41
|
-
*/var b3;function Lie(){return b3||(b3=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,u=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,p=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function b(Q){return typeof Q=="string"||typeof Q=="function"||Q===i||Q===c||Q===s||Q===r||Q===d||Q===h||typeof Q=="object"&&Q!==null&&(Q.$$typeof===g||Q.$$typeof===f||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===p||Q.$$typeof===v||Q.$$typeof===_||Q.$$typeof===m)}function y(Q){if(typeof Q=="object"&&Q!==null){var Xe=Q.$$typeof;switch(Xe){case e:var et=Q.type;switch(et){case l:case c:case i:case s:case r:case d:return et;default:var Fe=et&&et.$$typeof;switch(Fe){case a:case u:case g:case f:case o:return Fe;default:return Xe}}case t:return Xe}}}var w=l,k=c,L=a,D=o,E=e,N=u,O=i,I=g,M=f,B=t,V=s,ee=r,re=d,se=!1;function ie(Q){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),J(Q)||y(Q)===l}function J(Q){return y(Q)===c}function ue(Q){return y(Q)===a}function Z(Q){return y(Q)===o}function X(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function ce(Q){return y(Q)===u}function De(Q){return y(Q)===i}function te(Q){return y(Q)===g}function xe(Q){return y(Q)===f}function ge(Q){return y(Q)===t}function Ce(Q){return y(Q)===s}function Se(Q){return y(Q)===r}function pe(Q){return y(Q)===d}yn.AsyncMode=w,yn.ConcurrentMode=k,yn.ContextConsumer=L,yn.ContextProvider=D,yn.Element=E,yn.ForwardRef=N,yn.Fragment=O,yn.Lazy=I,yn.Memo=M,yn.Portal=B,yn.Profiler=V,yn.StrictMode=ee,yn.Suspense=re,yn.isAsyncMode=ie,yn.isConcurrentMode=J,yn.isContextConsumer=ue,yn.isContextProvider=Z,yn.isElement=X,yn.isForwardRef=ce,yn.isFragment=De,yn.isLazy=te,yn.isMemo=xe,yn.isPortal=ge,yn.isProfiler=Ce,yn.isStrictMode=Se,yn.isSuspense=pe,yn.isValidElementType=b,yn.typeOf=y}()),yn}process.env.NODE_ENV==="production"?mk.exports=xie():mk.exports=Lie();var Jf=mk.exports;function kie(n){function e(Z,X,ce,De,te){for(var xe=0,ge=0,Ce=0,Se=0,pe,Q,Xe=0,et=0,Fe,j=Fe=pe=0,le=0,be=0,$e=0,Y=0,H=ce.length,q=H-1,P,F="",z="",U="",fe="",ke;le<H;){if(Q=ce.charCodeAt(le),le===q&&ge+Se+Ce+xe!==0&&(ge!==0&&(Q=ge===47?10:47),Se=Ce=xe=0,H++,q++),ge+Se+Ce+xe===0){if(le===q&&(0<be&&(F=F.replace(h,"")),0<F.trim().length)){switch(Q){case 32:case 9:case 59:case 13:case 10:break;default:F+=ce.charAt(le)}Q=59}switch(Q){case 123:for(F=F.trim(),pe=F.charCodeAt(0),Fe=1,Y=++le;le<H;){switch(Q=ce.charCodeAt(le)){case 123:Fe++;break;case 125:Fe--;break;case 47:switch(Q=ce.charCodeAt(le+1)){case 42:case 47:e:{for(j=le+1;j<q;++j)switch(ce.charCodeAt(j)){case 47:if(Q===42&&ce.charCodeAt(j-1)===42&&le+2!==j){le=j+1;break e}break;case 10:if(Q===47){le=j+1;break e}}le=j}}break;case 91:Q++;case 40:Q++;case 34:case 39:for(;le++<q&&ce.charCodeAt(le)!==Q;);}if(Fe===0)break;le++}switch(Fe=ce.substring(Y,le),pe===0&&(pe=(F=F.replace(d,"").trim()).charCodeAt(0)),pe){case 64:switch(0<be&&(F=F.replace(h,"")),Q=F.charCodeAt(1),Q){case 100:case 109:case 115:case 45:be=X;break;default:be=ee}if(Fe=e(X,be,Fe,Q,te+1),Y=Fe.length,0<se&&(be=t(ee,F,$e),ke=a(3,Fe,be,X,M,I,Y,Q,te,De),F=be.join(""),ke!==void 0&&(Y=(Fe=ke.trim()).length)===0&&(Q=0,Fe="")),0<Y)switch(Q){case 115:F=F.replace(k,o);case 100:case 109:case 45:Fe=F+"{"+Fe+"}";break;case 107:F=F.replace(_,"$1 $2"),Fe=F+"{"+Fe+"}",Fe=V===1||V===2&&s("@"+Fe,3)?"@-webkit-"+Fe+"@"+Fe:"@"+Fe;break;default:Fe=F+Fe,De===112&&(Fe=(z+=Fe,""))}else Fe="";break;default:Fe=e(X,t(X,F,$e),Fe,De,te+1)}U+=Fe,Fe=$e=be=j=pe=0,F="",Q=ce.charCodeAt(++le);break;case 125:case 59:if(F=(0<be?F.replace(h,""):F).trim(),1<(Y=F.length))switch(j===0&&(pe=F.charCodeAt(0),pe===45||96<pe&&123>pe)&&(Y=(F=F.replace(" ",":")).length),0<se&&(ke=a(1,F,X,Z,M,I,z.length,De,te,De))!==void 0&&(Y=(F=ke.trim()).length)===0&&(F="\0\0"),pe=F.charCodeAt(0),Q=F.charCodeAt(1),pe){case 0:break;case 64:if(Q===105||Q===99){fe+=F+ce.charAt(le);break}default:F.charCodeAt(Y-1)!==58&&(z+=r(F,pe,Q,F.charCodeAt(2)))}$e=be=j=pe=0,F="",Q=ce.charCodeAt(++le)}}switch(Q){case 13:case 10:ge===47?ge=0:1+pe===0&&De!==107&&0<F.length&&(be=1,F+="\0"),0<se*J&&a(0,F,X,Z,M,I,z.length,De,te,De),I=1,M++;break;case 59:case 125:if(ge+Se+Ce+xe===0){I++;break}default:switch(I++,P=ce.charAt(le),Q){case 9:case 32:if(Se+xe+ge===0)switch(Xe){case 44:case 58:case 9:case 32:P="";break;default:Q!==32&&(P=" ")}break;case 0:P="\\0";break;case 12:P="\\f";break;case 11:P="\\v";break;case 38:Se+ge+xe===0&&(be=$e=1,P="\f"+P);break;case 108:if(Se+ge+xe+B===0&&0<j)switch(le-j){case 2:Xe===112&&ce.charCodeAt(le-3)===58&&(B=Xe);case 8:et===111&&(B=et)}break;case 58:Se+ge+xe===0&&(j=le);break;case 44:ge+Ce+Se+xe===0&&(be=1,P+="\r");break;case 34:case 39:ge===0&&(Se=Se===Q?0:Se===0?Q:Se);break;case 91:Se+ge+Ce===0&&xe++;break;case 93:Se+ge+Ce===0&&xe--;break;case 41:Se+ge+xe===0&&Ce--;break;case 40:if(Se+ge+xe===0){if(pe===0)switch(2*Xe+3*et){case 533:break;default:pe=1}Ce++}break;case 64:ge+Ce+Se+xe+j+Fe===0&&(Fe=1);break;case 42:case 47:if(!(0<Se+xe+Ce))switch(ge){case 0:switch(2*Q+3*ce.charCodeAt(le+1)){case 235:ge=47;break;case 220:Y=le,ge=42}break;case 42:Q===47&&Xe===42&&Y+2!==le&&(ce.charCodeAt(Y+2)===33&&(z+=ce.substring(Y,le+1)),P="",ge=0)}}ge===0&&(F+=P)}et=Xe,Xe=Q,le++}if(Y=z.length,0<Y){if(be=X,0<se&&(ke=a(2,z,be,Z,M,I,Y,De,te,De),ke!==void 0&&(z=ke).length===0))return fe+z+U;if(z=be.join(",")+"{"+z+"}",V*B!==0){switch(V!==2||s(z,2)||(B=0),B){case 111:z=z.replace(y,":-moz-$1")+z;break;case 112:z=z.replace(b,"::-webkit-input-$1")+z.replace(b,"::-moz-$1")+z.replace(b,":-ms-input-$1")+z}B=0}}return fe+z+U}function t(Z,X,ce){var De=X.trim().split(p);X=De;var te=De.length,xe=Z.length;switch(xe){case 0:case 1:var ge=0;for(Z=xe===0?"":Z[0]+" ";ge<te;++ge)X[ge]=i(Z,X[ge],ce).trim();break;default:var Ce=ge=0;for(X=[];ge<te;++ge)for(var Se=0;Se<xe;++Se)X[Ce++]=i(Z[Se]+" ",De[ge],ce).trim()}return X}function i(Z,X,ce){var De=X.charCodeAt(0);switch(33>De&&(De=(X=X.trim()).charCodeAt(0)),De){case 38:return X.replace(v,"$1"+Z.trim());case 58:return Z.trim()+X.replace(v,"$1"+Z.trim());default:if(0<1*ce&&0<X.indexOf("\f"))return X.replace(v,(Z.charCodeAt(0)===58?"":"$1")+Z.trim())}return Z+X}function r(Z,X,ce,De){var te=Z+";",xe=2*X+3*ce+4*De;if(xe===944){Z=te.indexOf(":",9)+1;var ge=te.substring(Z,te.length-1).trim();return ge=te.substring(0,Z).trim()+ge+";",V===1||V===2&&s(ge,1)?"-webkit-"+ge+ge:ge}if(V===0||V===2&&!s(te,1))return te;switch(xe){case 1015:return te.charCodeAt(10)===97?"-webkit-"+te+te:te;case 951:return te.charCodeAt(3)===116?"-webkit-"+te+te:te;case 963:return te.charCodeAt(5)===110?"-webkit-"+te+te:te;case 1009:if(te.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+te+te;case 978:return"-webkit-"+te+"-moz-"+te+te;case 1019:case 983:return"-webkit-"+te+"-moz-"+te+"-ms-"+te+te;case 883:if(te.charCodeAt(8)===45)return"-webkit-"+te+te;if(0<te.indexOf("image-set(",11))return te.replace(O,"$1-webkit-$2")+te;break;case 932:if(te.charCodeAt(4)===45)switch(te.charCodeAt(5)){case 103:return"-webkit-box-"+te.replace("-grow","")+"-webkit-"+te+"-ms-"+te.replace("grow","positive")+te;case 115:return"-webkit-"+te+"-ms-"+te.replace("shrink","negative")+te;case 98:return"-webkit-"+te+"-ms-"+te.replace("basis","preferred-size")+te}return"-webkit-"+te+"-ms-"+te+te;case 964:return"-webkit-"+te+"-ms-flex-"+te+te;case 1023:if(te.charCodeAt(8)!==99)break;return ge=te.substring(te.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ge+"-webkit-"+te+"-ms-flex-pack"+ge+te;case 1005:return g.test(te)?te.replace(f,":-webkit-")+te.replace(f,":-moz-")+te:te;case 1e3:switch(ge=te.substring(13).trim(),X=ge.indexOf("-")+1,ge.charCodeAt(0)+ge.charCodeAt(X)){case 226:ge=te.replace(w,"tb");break;case 232:ge=te.replace(w,"tb-rl");break;case 220:ge=te.replace(w,"lr");break;default:return te}return"-webkit-"+te+"-ms-"+ge+te;case 1017:if(te.indexOf("sticky",9)===-1)break;case 975:switch(X=(te=Z).length-10,ge=(te.charCodeAt(X)===33?te.substring(0,X):te).substring(Z.indexOf(":",7)+1).trim(),xe=ge.charCodeAt(0)+(ge.charCodeAt(7)|0)){case 203:if(111>ge.charCodeAt(8))break;case 115:te=te.replace(ge,"-webkit-"+ge)+";"+te;break;case 207:case 102:te=te.replace(ge,"-webkit-"+(102<xe?"inline-":"")+"box")+";"+te.replace(ge,"-webkit-"+ge)+";"+te.replace(ge,"-ms-"+ge+"box")+";"+te}return te+";";case 938:if(te.charCodeAt(5)===45)switch(te.charCodeAt(6)){case 105:return ge=te.replace("-items",""),"-webkit-"+te+"-webkit-box-"+ge+"-ms-flex-"+ge+te;case 115:return"-webkit-"+te+"-ms-flex-item-"+te.replace(D,"")+te;default:return"-webkit-"+te+"-ms-flex-line-pack"+te.replace("align-content","").replace(D,"")+te}break;case 973:case 989:if(te.charCodeAt(3)!==45||te.charCodeAt(4)===122)break;case 931:case 953:if(N.test(Z)===!0)return(ge=Z.substring(Z.indexOf(":")+1)).charCodeAt(0)===115?r(Z.replace("stretch","fill-available"),X,ce,De).replace(":fill-available",":stretch"):te.replace(ge,"-webkit-"+ge)+te.replace(ge,"-moz-"+ge.replace("fill-",""))+te;break;case 962:if(te="-webkit-"+te+(te.charCodeAt(5)===102?"-ms-"+te:"")+te,ce+De===211&&te.charCodeAt(13)===105&&0<te.indexOf("transform",10))return te.substring(0,te.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+te}return te}function s(Z,X){var ce=Z.indexOf(X===1?":":"{"),De=Z.substring(0,X!==3?ce:10);return ce=Z.substring(ce+1,Z.length-1),ie(X!==2?De:De.replace(E,"$1"),ce,X)}function o(Z,X){var ce=r(X,X.charCodeAt(0),X.charCodeAt(1),X.charCodeAt(2));return ce!==X+";"?ce.replace(L," or ($1)").substring(4):"("+X+")"}function a(Z,X,ce,De,te,xe,ge,Ce,Se,pe){for(var Q=0,Xe=X,et;Q<se;++Q)switch(et=re[Q].call(u,Z,Xe,ce,De,te,xe,ge,Ce,Se,pe)){case void 0:case!1:case!0:case null:break;default:Xe=et}if(Xe!==X)return Xe}function l(Z){switch(Z){case void 0:case null:se=re.length=0;break;default:if(typeof Z=="function")re[se++]=Z;else if(typeof Z=="object")for(var X=0,ce=Z.length;X<ce;++X)l(Z[X]);else J=!!Z|0}return l}function c(Z){return Z=Z.prefix,Z!==void 0&&(ie=null,Z?typeof Z!="function"?V=1:(V=2,ie=Z):V=0),c}function u(Z,X){var ce=Z;if(33>ce.charCodeAt(0)&&(ce=ce.trim()),ue=ce,ce=[ue],0<se){var De=a(-1,X,ce,ce,M,I,0,0,0,0);De!==void 0&&typeof De=="string"&&(X=De)}var te=e(ee,ce,X,0,0);return 0<se&&(De=a(-2,te,ce,ce,M,I,te.length,0,0,0),De!==void 0&&(te=De)),ue="",B=0,I=M=1,te}var d=/^\0+/g,h=/[\0\r\f]/g,f=/: */g,g=/zoo|gra/,m=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,L=/([\s\S]*?);/g,D=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,I=1,M=1,B=0,V=1,ee=[],re=[],se=0,ie=null,J=0,ue="";return u.use=l,u.set=c,n!==void 0&&c(n),u}var Die={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Eie(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Tie=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,y3=Eie(function(n){return Tie.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),pk=Jf,Iie={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Aie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Oie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_k={};_k[pk.ForwardRef]=Oie,_k[pk.Memo]=C3;function w3(n){return pk.isMemo(n)?C3:_k[n.$$typeof]||Iie}var Nie=Object.defineProperty,Mie=Object.getOwnPropertyNames,S3=Object.getOwnPropertySymbols,Pie=Object.getOwnPropertyDescriptor,Rie=Object.getPrototypeOf,x3=Object.prototype;function L3(n,e,t){if(typeof e!="string"){if(x3){var i=Rie(e);i&&i!==x3&&L3(n,i,t)}var r=Mie(e);S3&&(r=r.concat(S3(e)));for(var s=w3(n),o=w3(e),a=0;a<r.length;++a){var l=r[a];if(!Aie[l]&&!(t&&t[l])&&!(o&&o[l])&&!(s&&s[l])){var c=Pie(e,l);try{Nie(n,l,c)}catch{}}}}return n}var Fie=L3;const Ss=St(Fie);function Zl(){return(Zl=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}).apply(this,arguments)}var k3=function(n,e){for(var t=[n[0]],i=0,r=e.length;i<r;i+=1)t.push(e[i],n[i+1]);return t},vk=function(n){return n!==null&&typeof n=="object"&&(n.toString?n.toString():Object.prototype.toString.call(n))==="[object Object]"&&!Jf.typeOf(n)},B1=Object.freeze([]),uu=Object.freeze({});function c0(n){return typeof n=="function"}function bk(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function yk(n){return n&&typeof n.styledComponentId=="string"}var eg=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ck=typeof window<"u"&&"HTMLElement"in window,Bie=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),Wie=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
41
|
+
*/var b3;function Lie(){return b3||(b3=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,u=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,p=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function b(Q){return typeof Q=="string"||typeof Q=="function"||Q===i||Q===c||Q===s||Q===r||Q===d||Q===h||typeof Q=="object"&&Q!==null&&(Q.$$typeof===g||Q.$$typeof===f||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===p||Q.$$typeof===v||Q.$$typeof===_||Q.$$typeof===m)}function y(Q){if(typeof Q=="object"&&Q!==null){var Xe=Q.$$typeof;switch(Xe){case e:var et=Q.type;switch(et){case l:case c:case i:case s:case r:case d:return et;default:var Fe=et&&et.$$typeof;switch(Fe){case a:case u:case g:case f:case o:return Fe;default:return Xe}}case t:return Xe}}}var w=l,k=c,L=a,D=o,E=e,N=u,O=i,I=g,M=f,B=t,V=s,ee=r,re=d,se=!1;function ie(Q){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),J(Q)||y(Q)===l}function J(Q){return y(Q)===c}function ue(Q){return y(Q)===a}function Z(Q){return y(Q)===o}function X(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function ce(Q){return y(Q)===u}function De(Q){return y(Q)===i}function te(Q){return y(Q)===g}function xe(Q){return y(Q)===f}function ge(Q){return y(Q)===t}function Ce(Q){return y(Q)===s}function Se(Q){return y(Q)===r}function pe(Q){return y(Q)===d}yn.AsyncMode=w,yn.ConcurrentMode=k,yn.ContextConsumer=L,yn.ContextProvider=D,yn.Element=E,yn.ForwardRef=N,yn.Fragment=O,yn.Lazy=I,yn.Memo=M,yn.Portal=B,yn.Profiler=V,yn.StrictMode=ee,yn.Suspense=re,yn.isAsyncMode=ie,yn.isConcurrentMode=J,yn.isContextConsumer=ue,yn.isContextProvider=Z,yn.isElement=X,yn.isForwardRef=ce,yn.isFragment=De,yn.isLazy=te,yn.isMemo=xe,yn.isPortal=ge,yn.isProfiler=Ce,yn.isStrictMode=Se,yn.isSuspense=pe,yn.isValidElementType=b,yn.typeOf=y}()),yn}process.env.NODE_ENV==="production"?mk.exports=xie():mk.exports=Lie();var Jf=mk.exports;function kie(n){function e(Z,X,ce,De,te){for(var xe=0,ge=0,Ce=0,Se=0,pe,Q,Xe=0,et=0,Fe,j=Fe=pe=0,le=0,be=0,$e=0,Y=0,H=ce.length,q=H-1,R,F="",z="",U="",fe="",ke;le<H;){if(Q=ce.charCodeAt(le),le===q&&ge+Se+Ce+xe!==0&&(ge!==0&&(Q=ge===47?10:47),Se=Ce=xe=0,H++,q++),ge+Se+Ce+xe===0){if(le===q&&(0<be&&(F=F.replace(h,"")),0<F.trim().length)){switch(Q){case 32:case 9:case 59:case 13:case 10:break;default:F+=ce.charAt(le)}Q=59}switch(Q){case 123:for(F=F.trim(),pe=F.charCodeAt(0),Fe=1,Y=++le;le<H;){switch(Q=ce.charCodeAt(le)){case 123:Fe++;break;case 125:Fe--;break;case 47:switch(Q=ce.charCodeAt(le+1)){case 42:case 47:e:{for(j=le+1;j<q;++j)switch(ce.charCodeAt(j)){case 47:if(Q===42&&ce.charCodeAt(j-1)===42&&le+2!==j){le=j+1;break e}break;case 10:if(Q===47){le=j+1;break e}}le=j}}break;case 91:Q++;case 40:Q++;case 34:case 39:for(;le++<q&&ce.charCodeAt(le)!==Q;);}if(Fe===0)break;le++}switch(Fe=ce.substring(Y,le),pe===0&&(pe=(F=F.replace(d,"").trim()).charCodeAt(0)),pe){case 64:switch(0<be&&(F=F.replace(h,"")),Q=F.charCodeAt(1),Q){case 100:case 109:case 115:case 45:be=X;break;default:be=ee}if(Fe=e(X,be,Fe,Q,te+1),Y=Fe.length,0<se&&(be=t(ee,F,$e),ke=a(3,Fe,be,X,M,I,Y,Q,te,De),F=be.join(""),ke!==void 0&&(Y=(Fe=ke.trim()).length)===0&&(Q=0,Fe="")),0<Y)switch(Q){case 115:F=F.replace(k,o);case 100:case 109:case 45:Fe=F+"{"+Fe+"}";break;case 107:F=F.replace(_,"$1 $2"),Fe=F+"{"+Fe+"}",Fe=V===1||V===2&&s("@"+Fe,3)?"@-webkit-"+Fe+"@"+Fe:"@"+Fe;break;default:Fe=F+Fe,De===112&&(Fe=(z+=Fe,""))}else Fe="";break;default:Fe=e(X,t(X,F,$e),Fe,De,te+1)}U+=Fe,Fe=$e=be=j=pe=0,F="",Q=ce.charCodeAt(++le);break;case 125:case 59:if(F=(0<be?F.replace(h,""):F).trim(),1<(Y=F.length))switch(j===0&&(pe=F.charCodeAt(0),pe===45||96<pe&&123>pe)&&(Y=(F=F.replace(" ",":")).length),0<se&&(ke=a(1,F,X,Z,M,I,z.length,De,te,De))!==void 0&&(Y=(F=ke.trim()).length)===0&&(F="\0\0"),pe=F.charCodeAt(0),Q=F.charCodeAt(1),pe){case 0:break;case 64:if(Q===105||Q===99){fe+=F+ce.charAt(le);break}default:F.charCodeAt(Y-1)!==58&&(z+=r(F,pe,Q,F.charCodeAt(2)))}$e=be=j=pe=0,F="",Q=ce.charCodeAt(++le)}}switch(Q){case 13:case 10:ge===47?ge=0:1+pe===0&&De!==107&&0<F.length&&(be=1,F+="\0"),0<se*J&&a(0,F,X,Z,M,I,z.length,De,te,De),I=1,M++;break;case 59:case 125:if(ge+Se+Ce+xe===0){I++;break}default:switch(I++,R=ce.charAt(le),Q){case 9:case 32:if(Se+xe+ge===0)switch(Xe){case 44:case 58:case 9:case 32:R="";break;default:Q!==32&&(R=" ")}break;case 0:R="\\0";break;case 12:R="\\f";break;case 11:R="\\v";break;case 38:Se+ge+xe===0&&(be=$e=1,R="\f"+R);break;case 108:if(Se+ge+xe+B===0&&0<j)switch(le-j){case 2:Xe===112&&ce.charCodeAt(le-3)===58&&(B=Xe);case 8:et===111&&(B=et)}break;case 58:Se+ge+xe===0&&(j=le);break;case 44:ge+Ce+Se+xe===0&&(be=1,R+="\r");break;case 34:case 39:ge===0&&(Se=Se===Q?0:Se===0?Q:Se);break;case 91:Se+ge+Ce===0&&xe++;break;case 93:Se+ge+Ce===0&&xe--;break;case 41:Se+ge+xe===0&&Ce--;break;case 40:if(Se+ge+xe===0){if(pe===0)switch(2*Xe+3*et){case 533:break;default:pe=1}Ce++}break;case 64:ge+Ce+Se+xe+j+Fe===0&&(Fe=1);break;case 42:case 47:if(!(0<Se+xe+Ce))switch(ge){case 0:switch(2*Q+3*ce.charCodeAt(le+1)){case 235:ge=47;break;case 220:Y=le,ge=42}break;case 42:Q===47&&Xe===42&&Y+2!==le&&(ce.charCodeAt(Y+2)===33&&(z+=ce.substring(Y,le+1)),R="",ge=0)}}ge===0&&(F+=R)}et=Xe,Xe=Q,le++}if(Y=z.length,0<Y){if(be=X,0<se&&(ke=a(2,z,be,Z,M,I,Y,De,te,De),ke!==void 0&&(z=ke).length===0))return fe+z+U;if(z=be.join(",")+"{"+z+"}",V*B!==0){switch(V!==2||s(z,2)||(B=0),B){case 111:z=z.replace(y,":-moz-$1")+z;break;case 112:z=z.replace(b,"::-webkit-input-$1")+z.replace(b,"::-moz-$1")+z.replace(b,":-ms-input-$1")+z}B=0}}return fe+z+U}function t(Z,X,ce){var De=X.trim().split(p);X=De;var te=De.length,xe=Z.length;switch(xe){case 0:case 1:var ge=0;for(Z=xe===0?"":Z[0]+" ";ge<te;++ge)X[ge]=i(Z,X[ge],ce).trim();break;default:var Ce=ge=0;for(X=[];ge<te;++ge)for(var Se=0;Se<xe;++Se)X[Ce++]=i(Z[Se]+" ",De[ge],ce).trim()}return X}function i(Z,X,ce){var De=X.charCodeAt(0);switch(33>De&&(De=(X=X.trim()).charCodeAt(0)),De){case 38:return X.replace(v,"$1"+Z.trim());case 58:return Z.trim()+X.replace(v,"$1"+Z.trim());default:if(0<1*ce&&0<X.indexOf("\f"))return X.replace(v,(Z.charCodeAt(0)===58?"":"$1")+Z.trim())}return Z+X}function r(Z,X,ce,De){var te=Z+";",xe=2*X+3*ce+4*De;if(xe===944){Z=te.indexOf(":",9)+1;var ge=te.substring(Z,te.length-1).trim();return ge=te.substring(0,Z).trim()+ge+";",V===1||V===2&&s(ge,1)?"-webkit-"+ge+ge:ge}if(V===0||V===2&&!s(te,1))return te;switch(xe){case 1015:return te.charCodeAt(10)===97?"-webkit-"+te+te:te;case 951:return te.charCodeAt(3)===116?"-webkit-"+te+te:te;case 963:return te.charCodeAt(5)===110?"-webkit-"+te+te:te;case 1009:if(te.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+te+te;case 978:return"-webkit-"+te+"-moz-"+te+te;case 1019:case 983:return"-webkit-"+te+"-moz-"+te+"-ms-"+te+te;case 883:if(te.charCodeAt(8)===45)return"-webkit-"+te+te;if(0<te.indexOf("image-set(",11))return te.replace(O,"$1-webkit-$2")+te;break;case 932:if(te.charCodeAt(4)===45)switch(te.charCodeAt(5)){case 103:return"-webkit-box-"+te.replace("-grow","")+"-webkit-"+te+"-ms-"+te.replace("grow","positive")+te;case 115:return"-webkit-"+te+"-ms-"+te.replace("shrink","negative")+te;case 98:return"-webkit-"+te+"-ms-"+te.replace("basis","preferred-size")+te}return"-webkit-"+te+"-ms-"+te+te;case 964:return"-webkit-"+te+"-ms-flex-"+te+te;case 1023:if(te.charCodeAt(8)!==99)break;return ge=te.substring(te.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ge+"-webkit-"+te+"-ms-flex-pack"+ge+te;case 1005:return g.test(te)?te.replace(f,":-webkit-")+te.replace(f,":-moz-")+te:te;case 1e3:switch(ge=te.substring(13).trim(),X=ge.indexOf("-")+1,ge.charCodeAt(0)+ge.charCodeAt(X)){case 226:ge=te.replace(w,"tb");break;case 232:ge=te.replace(w,"tb-rl");break;case 220:ge=te.replace(w,"lr");break;default:return te}return"-webkit-"+te+"-ms-"+ge+te;case 1017:if(te.indexOf("sticky",9)===-1)break;case 975:switch(X=(te=Z).length-10,ge=(te.charCodeAt(X)===33?te.substring(0,X):te).substring(Z.indexOf(":",7)+1).trim(),xe=ge.charCodeAt(0)+(ge.charCodeAt(7)|0)){case 203:if(111>ge.charCodeAt(8))break;case 115:te=te.replace(ge,"-webkit-"+ge)+";"+te;break;case 207:case 102:te=te.replace(ge,"-webkit-"+(102<xe?"inline-":"")+"box")+";"+te.replace(ge,"-webkit-"+ge)+";"+te.replace(ge,"-ms-"+ge+"box")+";"+te}return te+";";case 938:if(te.charCodeAt(5)===45)switch(te.charCodeAt(6)){case 105:return ge=te.replace("-items",""),"-webkit-"+te+"-webkit-box-"+ge+"-ms-flex-"+ge+te;case 115:return"-webkit-"+te+"-ms-flex-item-"+te.replace(D,"")+te;default:return"-webkit-"+te+"-ms-flex-line-pack"+te.replace("align-content","").replace(D,"")+te}break;case 973:case 989:if(te.charCodeAt(3)!==45||te.charCodeAt(4)===122)break;case 931:case 953:if(N.test(Z)===!0)return(ge=Z.substring(Z.indexOf(":")+1)).charCodeAt(0)===115?r(Z.replace("stretch","fill-available"),X,ce,De).replace(":fill-available",":stretch"):te.replace(ge,"-webkit-"+ge)+te.replace(ge,"-moz-"+ge.replace("fill-",""))+te;break;case 962:if(te="-webkit-"+te+(te.charCodeAt(5)===102?"-ms-"+te:"")+te,ce+De===211&&te.charCodeAt(13)===105&&0<te.indexOf("transform",10))return te.substring(0,te.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+te}return te}function s(Z,X){var ce=Z.indexOf(X===1?":":"{"),De=Z.substring(0,X!==3?ce:10);return ce=Z.substring(ce+1,Z.length-1),ie(X!==2?De:De.replace(E,"$1"),ce,X)}function o(Z,X){var ce=r(X,X.charCodeAt(0),X.charCodeAt(1),X.charCodeAt(2));return ce!==X+";"?ce.replace(L," or ($1)").substring(4):"("+X+")"}function a(Z,X,ce,De,te,xe,ge,Ce,Se,pe){for(var Q=0,Xe=X,et;Q<se;++Q)switch(et=re[Q].call(u,Z,Xe,ce,De,te,xe,ge,Ce,Se,pe)){case void 0:case!1:case!0:case null:break;default:Xe=et}if(Xe!==X)return Xe}function l(Z){switch(Z){case void 0:case null:se=re.length=0;break;default:if(typeof Z=="function")re[se++]=Z;else if(typeof Z=="object")for(var X=0,ce=Z.length;X<ce;++X)l(Z[X]);else J=!!Z|0}return l}function c(Z){return Z=Z.prefix,Z!==void 0&&(ie=null,Z?typeof Z!="function"?V=1:(V=2,ie=Z):V=0),c}function u(Z,X){var ce=Z;if(33>ce.charCodeAt(0)&&(ce=ce.trim()),ue=ce,ce=[ue],0<se){var De=a(-1,X,ce,ce,M,I,0,0,0,0);De!==void 0&&typeof De=="string"&&(X=De)}var te=e(ee,ce,X,0,0);return 0<se&&(De=a(-2,te,ce,ce,M,I,te.length,0,0,0),De!==void 0&&(te=De)),ue="",B=0,I=M=1,te}var d=/^\0+/g,h=/[\0\r\f]/g,f=/: */g,g=/zoo|gra/,m=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,L=/([\s\S]*?);/g,D=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,I=1,M=1,B=0,V=1,ee=[],re=[],se=0,ie=null,J=0,ue="";return u.use=l,u.set=c,n!==void 0&&c(n),u}var Die={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Eie(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Tie=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,y3=Eie(function(n){return Tie.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),pk=Jf,Iie={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Aie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Oie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_k={};_k[pk.ForwardRef]=Oie,_k[pk.Memo]=C3;function w3(n){return pk.isMemo(n)?C3:_k[n.$$typeof]||Iie}var Nie=Object.defineProperty,Mie=Object.getOwnPropertyNames,S3=Object.getOwnPropertySymbols,Pie=Object.getOwnPropertyDescriptor,Rie=Object.getPrototypeOf,x3=Object.prototype;function L3(n,e,t){if(typeof e!="string"){if(x3){var i=Rie(e);i&&i!==x3&&L3(n,i,t)}var r=Mie(e);S3&&(r=r.concat(S3(e)));for(var s=w3(n),o=w3(e),a=0;a<r.length;++a){var l=r[a];if(!Aie[l]&&!(t&&t[l])&&!(o&&o[l])&&!(s&&s[l])){var c=Pie(e,l);try{Nie(n,l,c)}catch{}}}}return n}var Fie=L3;const Ss=St(Fie);function Zl(){return(Zl=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}).apply(this,arguments)}var k3=function(n,e){for(var t=[n[0]],i=0,r=e.length;i<r;i+=1)t.push(e[i],n[i+1]);return t},vk=function(n){return n!==null&&typeof n=="object"&&(n.toString?n.toString():Object.prototype.toString.call(n))==="[object Object]"&&!Jf.typeOf(n)},B1=Object.freeze([]),uu=Object.freeze({});function c0(n){return typeof n=="function"}function bk(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function yk(n){return n&&typeof n.styledComponentId=="string"}var eg=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ck=typeof window<"u"&&"HTMLElement"in window,Bie=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),Wie=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
42
42
|
|
43
43
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
44
44
|
|
@@ -97,7 +97,7 @@ Example:
|
|
97
97
|
Perhaps you're looking to import 'styled-components/native'?
|
98
98
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
99
99
|
|
100
|
-
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const un=Dk,z3={by:"by",cancelText:"Cancel",canceledText:"Canceled",cardView:"Card view",clearAllFilters:"Clear all filters",clickToRefresh:"Click to refresh",closeText:"Close",confirmText:"Confirm",countMore:"{count} more",documentation:"Documentation",errorText:"Error",filter:"Filter",listView:"List view",manageColumns:"Manage columns",moreInformation:"More information",noItemsFound:"No items found",noResultsFound:"No results found",noResultsMatchCriteria:"No results match this filter criteria. Clear all filters and try again.",noSelection:"No selection",noSelections:"No selections",ofText:"of",pendingText:"Pending",pleaseFixValidationErrors:"Please fix validation errors.",processingText:"Processing",selectNone:"Select none",selectedText:"Selected",showLess:"Show less",sort:"Sort",submitText:"Submit",submittingText:"Submitting",successText:"Success",tableView:"Table view",unknownError:"Unknown error",validating:"Validating..."},U3=T.createContext([z3,()=>alert("Use FrameworkTranslationsProvider")]);function q3(n){const e=T.useState(z3);return x.jsx(U3.Provider,{value:e,children:n.children})}function yi(){return T.useContext(U3)}function K3(n,e){if("selection"in n)switch(n.selection){case ei.None:if(n.isHidden)return n.isHidden();break;case ei.Single:if(n.isHidden)return e?n.isHidden(e):!0;break}return!1}function d0(){const[n]=yi();return T.useCallback((e,t,i)=>{if("selection"in e)switch(e.selection){case ei.None:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return e.isDisabled();break;case ei.Single:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return t?e.isDisabled(t):n.noSelection;break;case ei.Multiple:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return i?e.isDisabled(i):n.noSelections;break}},[n.noSelection,n.noSelections])}function G3(n){const{action:e,wrapper:t,selectedItem:i,iconOnly:r}=n,o=d0()(e,i),a=t??T.Fragment,l=i?e.isSwitchOn(i):!1,c=o||(e.tooltip?e.tooltip:r?l?e.label:e.labelOff??e.label:void 0),u=T.useId();let d=e.label;r&&e.showPinnedLabel!==!0&&(d=void 0);let h=e.labelOff;return r&&e.showPinnedLabel!==!0&&(h=void 0),x.jsx(a,{children:x.jsx("div",{style:{marginLeft:r?16:void 0,marginRight:r?16:void 0},children:x.jsx(
|
100
|
+
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const un=Dk,z3={by:"by",cancelText:"Cancel",canceledText:"Canceled",cardView:"Card view",clearAllFilters:"Clear all filters",clickToRefresh:"Click to refresh",closeText:"Close",confirmText:"Confirm",countMore:"{count} more",documentation:"Documentation",errorText:"Error",filter:"Filter",listView:"List view",manageColumns:"Manage columns",moreInformation:"More information",noItemsFound:"No items found",noResultsFound:"No results found",noResultsMatchCriteria:"No results match this filter criteria. Clear all filters and try again.",noSelection:"No selection",noSelections:"No selections",ofText:"of",pendingText:"Pending",pleaseFixValidationErrors:"Please fix validation errors.",processingText:"Processing",selectNone:"Select none",selectedText:"Selected",showLess:"Show less",sort:"Sort",submitText:"Submit",submittingText:"Submitting",successText:"Success",tableView:"Table view",unknownError:"Unknown error",validating:"Validating..."},U3=T.createContext([z3,()=>alert("Use FrameworkTranslationsProvider")]);function q3(n){const e=T.useState(z3);return x.jsx(U3.Provider,{value:e,children:n.children})}function yi(){return T.useContext(U3)}function K3(n,e){if("selection"in n)switch(n.selection){case ei.None:if(n.isHidden)return n.isHidden();break;case ei.Single:if(n.isHidden)return e?n.isHidden(e):!0;break}return!1}function d0(){const[n]=yi();return T.useCallback((e,t,i)=>{if("selection"in e)switch(e.selection){case ei.None:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return e.isDisabled();break;case ei.Single:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return t?e.isDisabled(t):n.noSelection;break;case ei.Multiple:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return i?e.isDisabled(i):n.noSelections;break}},[n.noSelection,n.noSelections])}function G3(n){const{action:e,wrapper:t,selectedItem:i,iconOnly:r}=n,o=d0()(e,i),a=t??T.Fragment,l=i?e.isSwitchOn(i):!1,c=o||(e.tooltip?e.tooltip:r?l?e.label:e.labelOff??e.label:void 0),u=T.useId();let d=e.label;r&&e.showPinnedLabel!==!0&&(d=void 0);let h=e.labelOff;return r&&e.showPinnedLabel!==!0&&(h=void 0),x.jsx(a,{children:x.jsx("div",{style:{marginLeft:r?16:void 0,marginRight:r?16:void 0},children:x.jsx(P.Tooltip,{content:c,trigger:c?void 0:"manual",children:x.jsx(P.Switch,{id:u,"aria-label":e.ariaLabel(l),label:d,labelOff:h,isChecked:l,hasCheckIcon:!0,isDisabled:!!o,onChange:()=>{switch(e.selection){case ei.None:e.onToggle(!l);break;case ei.Single:i&&e.onToggle(i,!l);break}},isReversed:r})})})})}const yre=un.span`
|
101
101
|
padding-right: 4px;
|
102
102
|
`,Cre=un.div`
|
103
103
|
--pf-c-dropdown__menu-item-icon--Width: ${({hasSwitches:n})=>n?"40px":void 0};
|
@@ -107,15 +107,15 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
107
107
|
margin-left: 16px;
|
108
108
|
margin-right: 16px;
|
109
109
|
margin-bottom: 16px;
|
110
|
-
`;function Ek(n){const{icon:e,iconOnly:t,isDisabled:i,label:r,onOpen:s,position:o,selectedItem:a,selectedItems:l,tooltip:c,variant:u}=n;let{actions:d}=n;d=d.filter(L=>!K3(L,a)),d=xre(d);const[h,f]=T.useState(!1),g=T.useMemo(()=>!d.every(L=>!("selection"in L)||L.selection!==ei.Multiple),[d]),m=T.useMemo(()=>d.find(L=>L.type!==qi.Seperator&&L.icon!==void 0)!==void 0,[d]),p=T.useMemo(()=>d.find(L=>L.type!==qi.Seperator&&L.type===qi.Switch)!==void 0,[d]);if(T.useEffect(()=>{s==null||s(r??"default",h)},[h,r,s,n]),d.length===0)return x.jsx(x.Fragment,{});const v=e,_=v?x.jsx(v,{}):r,b=u===
|
110
|
+
`;function Ek(n){const{icon:e,iconOnly:t,isDisabled:i,label:r,onOpen:s,position:o,selectedItem:a,selectedItems:l,tooltip:c,variant:u}=n;let{actions:d}=n;d=d.filter(L=>!K3(L,a)),d=xre(d);const[h,f]=T.useState(!1),g=T.useMemo(()=>!d.every(L=>!("selection"in L)||L.selection!==ei.Multiple),[d]),m=T.useMemo(()=>d.find(L=>L.type!==qi.Seperator&&L.icon!==void 0)!==void 0,[d]),p=T.useMemo(()=>d.find(L=>L.type!==qi.Seperator&&L.type===qi.Switch)!==void 0,[d]);if(T.useEffect(()=>{s==null||s(r??"default",h)},[h,r,s,n]),d.length===0)return x.jsx(x.Fragment,{});const v=e,_=v?x.jsx(v,{}):r,b=u===P.ButtonVariant.primary||g&&!!(l!=null&&l.length),y=u===P.ButtonVariant.primary&&!g&&!!(l!=null&&l.length),w=r||v?x.jsx(P.DropdownToggle,{id:"toggle-dropdown",isDisabled:!!i,onToggle:()=>f(!h),toggleVariant:y?"secondary":b?"primary":void 0,toggleIndicator:v&&t?null:void 0,style:b&&!r?{color:"var(--pf-global--Color--light-100)"}:{},icon:v?x.jsx("div",{children:x.jsx(v,{})}):void 0,children:t?void 0:r}):x.jsx(P.KebabToggle,{className:"toggle-kebab",isDisabled:!!i,onToggle:()=>f(!h),toggleVariant:b?"primary":void 0,style:b&&!r?{color:"var(--pf-global--Color--light-100)"}:{},children:_}),k=x.jsx(P.Dropdown,{onSelect:()=>f(!1),toggle:w,isOpen:h,isPlain:!r||t,dropdownItems:d.map((L,D)=>x.jsx(Sre,{action:L,selectedItems:l??[],selectedItem:a,hasIcons:m,hasSwitches:p,index:D},"label"in L?L.label:`action-${D}`)),position:o,style:{zIndex:h?400:void 0}});return c&&(t||i)?x.jsx(P.Tooltip,{content:c,trigger:c?void 0:"manual",children:k}):{...k}}function Sre(n){const{action:e,selectedItems:t,selectedItem:i,hasIcons:r,hasSwitches:s,index:o}=n,l=d0()(e,i,t);switch(e.type){case qi.Button:{let c=e.icon;!c&&r&&(c=Y3);let u=l??e.tooltip,d=!!l;return e.selection===ei.Multiple&&!t.length&&(u="No selections",d=!0),x.jsx(P.Tooltip,{content:u,trigger:u?void 0:"manual",children:x.jsx(Cre,{hasSwitches:s,isDanger:!!e.isDanger,children:x.jsx(P.DropdownItem,{icon:c?x.jsx(yre,{children:x.jsx(c,{})}):void 0,onClick:()=>{switch(e.selection){case ei.None:e.onClick();break;case ei.Single:i&&e.onClick(i);break;case ei.Multiple:t&&e.onClick(t);break}},isAriaDisabled:d,children:e.label})})},e.label)}case qi.Link:{let c=e.icon;!c&&r&&(c=Y3);const u=l||e.tooltip;let d;switch(e.selection){case ei.None:d=e.href;break;case ei.Single:i?d=e.href(i):d="";break;default:d="";break}return x.jsx(P.Tooltip,{content:u,trigger:u?void 0:"manual",children:x.jsx(Qf.Link,{...n,to:d,children:x.jsx(P.DropdownItem,{isAriaDisabled:!!l,icon:c?x.jsx("span",{style:{paddingRight:4},children:x.jsx(c,{})}):void 0,style:{color:e.isDanger&&!l?"var(--pf-global--danger-color--100)":void 0},children:e.label})})},e.label)}case qi.Switch:return x.jsx(wre,{children:x.jsx(G3,{action:e,selectedItem:i})});case qi.Dropdown:{const c=e.label;return x.jsx(Ek,{label:e.label,actions:e.actions,selectedItem:i,selectedItems:t,isDisabled:l,tooltip:c},e.label)}case qi.Seperator:return x.jsx(P.DropdownSeparator,{},`separator-${o}`)}}const Y3=()=>x.jsx(yt.CircleIcon,{style:{opacity:0}});function xre(n){let e=[...n];for(;e.length>0&&e[0].type===qi.Seperator;)e.shift();for(;e.length>0&&e[e.length-1].type===qi.Seperator;)e.pop();return e=Lre(e),e}function Lre(n){const e=[];let t;for(const i of n)i.type===qi.Seperator?(!t||t.type!==qi.Seperator)&&e.push(i):e.push(i),t=i;return e}const kre=un.span`
|
111
111
|
padding-right: 4px;
|
112
|
-
`;function Dre(n){const{action:e,isSecondary:t,wrapper:i,iconOnly:r,selectedItem:s,selectedItems:o}=n,l=d0()(e,s,o),c=i??T.Fragment,u=e.icon,d=l||(e.tooltip?e.tooltip:r?e.label:void 0);let h=e.variant??
|
112
|
+
`;function Dre(n){const{action:e,isSecondary:t,wrapper:i,iconOnly:r,selectedItem:s,selectedItems:o}=n,l=d0()(e,s,o),c=i??T.Fragment,u=e.icon,d=l||(e.tooltip?e.tooltip:r?e.label:void 0);let h=e.variant??P.ButtonVariant.secondary;t&&[P.ButtonVariant.primary,P.ButtonVariant.danger].includes(h)&&(h=P.ButtonVariant.secondary),h===P.ButtonVariant.primary&&e.isDanger&&(h=P.ButtonVariant.danger),r&&(h=P.ButtonVariant.plain);const f=e.label.toLowerCase().split(" ").join("-"),g=r&&u?x.jsx(u,{}):e.label;return x.jsx(c,{children:x.jsx(P.Tooltip,{content:d,trigger:d?void 0:"manual",children:x.jsx(P.Button,{id:f,variant:h,isDanger:e.isDanger,icon:u?x.jsx(kre,{children:x.jsx(u,{})}):void 0,isAriaDisabled:!!l,onClick:()=>{switch(e.selection){case ei.None:e.onClick();break;case ei.Single:s&&e.onClick(s);break;case ei.Multiple:o&&e.onClick(o);break}},"aria-label":r?e.label:"",children:g})})})}const Ere=un.span`
|
113
113
|
padding-right: 4px;
|
114
|
-
`;function Tre(n){const{action:e,wrapper:t,iconOnly:i,selectedItem:r,selectedItems:s}=n,a=d0()(e,r,s),l=t??T.Fragment,c=e.icon,u=a||(e.tooltip?e.tooltip:i?e.label:void 0),d=e.label.toLowerCase().split(" ").join("-"),h=i&&c?x.jsx(c,{}):e.label;let f;switch(e.selection){case ei.None:f=e.href;break;case ei.Single:r?f=e.href(r):f="";break;default:f="";break}return x.jsx(l,{children:x.jsx(
|
114
|
+
`;function Tre(n){const{action:e,wrapper:t,iconOnly:i,selectedItem:r,selectedItems:s}=n,a=d0()(e,r,s),l=t??T.Fragment,c=e.icon,u=a||(e.tooltip?e.tooltip:i?e.label:void 0),d=e.label.toLowerCase().split(" ").join("-"),h=i&&c?x.jsx(c,{}):e.label;let f;switch(e.selection){case ei.None:f=e.href;break;case ei.Single:r?f=e.href(r):f="";break;default:f="";break}return x.jsx(l,{children:x.jsx(P.Button,{id:d,isDanger:e.isDanger,icon:c?x.jsx(Ere,{children:x.jsx(c,{})}):void 0,isAriaDisabled:!!a,component:g=>x.jsx(P.Tooltip,{content:u,trigger:u?void 0:"manual",children:x.jsx(Qf.Link,{...g,to:f})}),variant:i?"plain":void 0,children:i&&c?x.jsx(c,{}):h})})}function Ire(n){const{actions:e,selectedItems:t,selectedItem:i,wrapper:r,iconOnly:s,onOpen:o}=n;return e.length===0?x.jsx(x.Fragment,{}):x.jsx(P.Split,{hasGutter:!s,style:{alignItems:"baseline"},children:e.map((a,l)=>x.jsx(Are,{action:a,selectedItem:i,selectedItems:t,wrapper:r,iconOnly:s,onOpen:o},l))})}function Are(n){const{action:e,selectedItems:t,selectedItem:i,wrapper:r,onOpen:s}=n,o=d0();switch(e.type){case qi.Seperator:return x.jsx(x.Fragment,{});case qi.Button:return x.jsx(Dre,{action:e,selectedItem:i,selectedItems:t,iconOnly:n.iconOnly,wrapper:r});case qi.Link:return x.jsx(Tre,{action:e,selectedItem:i,selectedItems:t,iconOnly:n.iconOnly,wrapper:r});case qi.Switch:return x.jsx(G3,{action:e,selectedItem:i,wrapper:r,iconOnly:n.iconOnly});case qi.Dropdown:{const a=o(e,i,t),l=a||(e.tooltip?e.tooltip:e.label);return x.jsx(Ek,{icon:e.icon,label:e.label,actions:e.actions,selectedItem:i,selectedItems:t,iconOnly:n.iconOnly,position:P.DropdownPosition.right,tooltip:l,isDisabled:a,variant:e.variant,onOpen:s})}}}function ig(n){const{actions:e,selectedItem:t,iconOnly:i,onOpen:r}=n,s=ws(n.collapse!=="never"&&n.collapse!=="always"?n.collapse??"lg":"lg"),o=n.collapse!=="never"&&(n.collapse==="always"||!s),a=T.useMemo(()=>e.filter(f=>!K3(f,t)),[e,t]),l=T.useMemo(()=>o?[]:a==null?void 0:a.filter(Z3),[o,a]),c=T.useMemo(()=>o?a:(a==null?void 0:a.filter(f=>!Z3(f)))??[],[o,a]),[u,d]=T.useState({});T.useEffect(()=>{Object.values(u).find(f=>f)?r==null||r(!0):r==null||r(!1)},[r,u]);const h=T.useCallback((f,g)=>{d(m=>(m[f]!==g&&(m={...m},m[f]=g),m))},[]);return x.jsxs(P.Flex,{flexWrap:{default:"nowrap"},spaceItems:{default:i?"spaceItemsNone":"spaceItemsMd"},justifyContent:{default:"justifyContentFlexEnd"},children:[l!==void 0&&l.length>0&&x.jsx(P.FlexItem,{children:x.jsx(Ire,{...n,actions:l,onOpen:h})}),c.length>0&&x.jsx(P.FlexItem,{children:x.jsx(Ek,{...n,actions:c,onOpen:h})})]})}function Z3(n){return"isPinned"in n&&n.isPinned}const Tk=T.createContext({addAlert:()=>null,removeAlert:()=>null,replaceAlert:()=>null,removeAlerts:()=>null});function X3(){return T.useContext(Tk)}function Q3(n){const[e,t]=T.useState([]),[i]=T.useState(()=>{function r(l){t(c=>l?c.filter(l):[])}function s(l){t(c=>c.filter(u=>u!==l))}function o(l){Number.isInteger(l.timeout)&&(setTimeout(()=>s(l),l.timeout),delete l.timeout),t(c=>{const u=c.findIndex(d=>d===l);if(u!==-1){const d=[...c];return d[u]=l,d}else return[...c,l]})}function a(l,c){t(u=>{const d=u.findIndex(h=>h===l);if(d!==-1){Number.isInteger(c.timeout)&&(setTimeout(()=>s(c),c.timeout),delete c.timeout);const h=[...u];return h[d]=c,h}return u})}return{addAlert:o,removeAlert:s,removeAlerts:r,replaceAlert:a}});return x.jsxs(Tk.Provider,{value:i,children:[x.jsx(P.AlertGroup,{isToast:!0,isLiveRegion:!0,children:e.map((r,s)=>T.createElement(P.Alert,{...r,key:r.key??r.id??s,actionClose:x.jsx(P.AlertActionCloseButton,{onClose:()=>i.removeAlert(r)})}))}),n.children]})}function Ore(n){return n instanceof Error?{title:n.message,variant:"danger",timeout:2e3}:{title:"Unknown",variant:"danger",timeout:2e3}}class J3 extends T.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?x.jsx("h1",{children:this.props.message}):this.props.children}}function Ik(n){const e=ws("xxl")&&n.disablePadding!==!0,[t]=yi();return x.jsx(J3,{message:t.errorText,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",overflow:"hidden",backgroundColor:"var(--pf-c-page__main-section--BackgroundColor)",...n.style},children:x.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",margin:e?24:0,overflow:"hidden",border:e?"thin solid var(--pf-global--BorderColor--100)":void 0,backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:n.children})})})}function Nre(n){const{bytes:e}=n;if(!+e)return x.jsx(x.Fragment,{});const t=1024,i=n.decimals?n.decimals:0,r=i<0?0:i,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(t));return x.jsx(x.Fragment,{children:`${parseFloat((e/Math.pow(t,o)).toFixed(r))} ${s[o]}`})}const Mre=T.createContext(void 0),Pre=T.createContext(()=>null),e7=T.createContext([void 0,()=>alert("Use PageDialogProvider")]);function t7(n){const e=T.useState();return x.jsxs(e7.Provider,{value:e,children:[e[0]!==void 0&&e[0],n.children]})}function qa(){return T.useContext(e7)}function rg(n){const{help:e,title:t,docLink:i}=n,[r]=yi();return e?x.jsx(P.Popover,{headerContent:t,bodyContent:x.jsxs(P.Stack,{hasGutter:!0,children:[Array.isArray(e)?e.map((s,o)=>x.jsx(P.StackItem,{children:s},o)):x.jsx(P.StackItem,{children:e}),i&&x.jsx(P.StackItem,{children:x.jsx(P.Button,{icon:x.jsx(yt.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(i,"_blank"),isInline:!0,children:r.documentation})})]}),removeFindDomNode:!0,children:x.jsx(P.Button,{variant:"plain",style:{padding:0,marginLeft:"8px",verticalAlign:"middle"},children:x.jsx(yt.OutlinedQuestionCircleIcon,{})})}):x.jsx(x.Fragment,{})}function z1(n){const{children:e,helperText:t,helperTextInvalid:i,isRequired:r,labelHelp:s,labelHelpTitle:o,label:a}=n;return x.jsx(P.FormGroup,{id:`${n.id??""}-form-group`,fieldId:n.id,label:a,helperText:t,helperTextInvalid:i,validated:i?"error":void 0,isRequired:r,labelInfo:n.additionalControls,labelIcon:s?x.jsx(rg,{title:o,help:s}):void 0,children:e})}function sg(n){const{value:e,onSelect:t,children:i,helperTextInvalid:r,labelHelpTitle:s,labelHelp:o,helperText:a,isRequired:l,isReadOnly:c,additionalControls:u,placeholderText:d,...h}=n,[f,g]=T.useState(!1),m=T.useCallback(()=>g(_=>!_),[]),p=T.useCallback((_,b)=>{typeof b=="string"?t==null||t(_,b):t==null||t(_,b.value??""),g(!1)},[t]),v={value:e,toString:()=>{let _;return T.Children.toArray(i).forEach(b=>{T.isValidElement(b)&&b.type===P.SelectOption&&b.props.value===e&&(_=b.props.children)}),x.jsxs(P.Flex,{spaceItems:{default:"spaceItemsSm"},flexWrap:{default:"nowrap"},children:[n.selectedIcon&&x.jsx(P.FlexItem,{children:n.selectedIcon}),x.jsx(P.FlexItem,{children:_??e??""})]})},compareTo:_=>typeof _=="string"?e===_:e===_.value};return x.jsx(z1,{...n,children:x.jsx(P.Select,{...h,label:void 0,placeholderText:d,variant:P.SelectVariant.single,"aria-describedby":n.id?`${n.id}-form-group`:void 0,selections:v,onSelect:p,isOpen:f,onToggle:m,maxHeight:280,validated:r?"error":void 0,isDisabled:n.isDisabled||c,hasPlaceholderStyle:!0,style:{zIndex:f?9999:void 0},children:i})})}const Rre=un.div`
|
115
115
|
padding: var(--pf-global--spacer--lg);
|
116
|
-
`,og=T.createContext([{},()=>null]);function ag(){const[n]=T.useContext(og);return n}function n7(n){const[e,t]=T.useState(()=>{const r=localStorage.getItem("theme"),s=r!=="dark"&&r!=="light"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":r;let o="comfortable";switch(localStorage.getItem("tableLayout")){case"compact":o="compact";break;case"comfortable":o="comfortable";break}let a="multiple";switch(localStorage.getItem("formColumns")){case"single":a="single";break;case"multiple":a="multiple";break}let l="vertical";switch(localStorage.getItem("formLayout")){case"vertical":l="vertical";break;case"horizontal":l="horizontal";break}const c={theme:r,activeTheme:s,tableLayout:o,formColumns:a,formLayout:l};return s==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark"),c}),i=T.useCallback(r=>{localStorage.setItem("theme",r.theme??"system"),localStorage.setItem("tableLayout",r.tableLayout??"comfortable"),localStorage.setItem("formColumns",r.formColumns??"multiple"),localStorage.setItem("formLayout",r.formLayout??"vertical");const s=r.theme!=="light"&&r.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":r.theme;r.activeTheme=s,t(r),s==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark")},[]);return x.jsx(og.Provider,{value:[e,i],children:n.children})}function Fre(n){const[e,t]=T.useState(!1),i=T.useCallback(()=>t(!0),[]),[r,s]=qa();return T.useEffect(()=>{s(e?x.jsx(i7,{open:e,setOpen:t}):void 0)},[e,s,n]),i}function i7(n){const e=()=>n.setOpen(!1),[t,i]=T.useContext(og),[r]=yi();return x.jsx(R.Modal,{title:"Settings","aria-label":"Settings",isOpen:n.open,onClose:e,variant:R.ModalVariant.medium,tabIndex:0,actions:[x.jsx(R.Button,{variant:"primary",onClick:e,children:r.closeText},"close")],hasNoBodyWrapper:!0,children:x.jsx(Rre,{children:x.jsxs(R.Form,{isHorizontal:t.formLayout==="horizontal",children:[x.jsxs(sg,{id:"theme",label:"Theme",value:t.theme??"system",onSelect:(s,o)=>i({...t,theme:o}),placeholderText:"Select theme",children:[x.jsx(R.SelectOption,{value:"system",children:"System default"}),x.jsx(R.SelectOption,{value:"light",children:"Light"}),x.jsx(R.SelectOption,{value:"dark",children:"Dark"})]}),x.jsxs(sg,{id:"table-layout",label:"Table Layout",value:t.tableLayout??"comfortable",onSelect:(s,o)=>i({...t,tableLayout:o}),placeholderText:"Select table layout",children:[x.jsx(R.SelectOption,{value:"comfortable",children:"Comfortable"}),x.jsx(R.SelectOption,{value:"compact",children:"Compact"})]}),x.jsxs(sg,{id:"form-columns",label:"Form Columns",value:t.formColumns??"multiple",onSelect:(s,o)=>i({...t,formColumns:o}),placeholderText:"Select form columns",children:[x.jsx(R.SelectOption,{value:"multiple",children:"Multiple columns"}),x.jsx(R.SelectOption,{value:"single",children:"Single column"})]}),x.jsxs(sg,{id:"form-layout",label:"Form Layout",value:t.formLayout??"vertical",onSelect:(s,o)=>i({...t,formLayout:o}),placeholderText:"Select form layout",children:[x.jsx(R.SelectOption,{value:"vertical",children:"Vertical labels"}),x.jsx(R.SelectOption,{value:"horizontal",children:"Horizontal labels"})]})]})})})}function Bre(n){const[e]=yi(),t=ag(),i=n.used/n.capacity;if(n.capacity===0)return x.jsx(x.Fragment,{});const r=i>=.8?"var(--pf-global--palette--red":i>=.5?"var(--pf-global--palette--gold":"var(--pf-global--palette--green",s=t.activeTheme==="light"?`${r}-100)`:`${r}-600)`,o=t.activeTheme==="light"?`${r}-400)`:`${r}-200)`,a=t.activeTheme==="light"?"#0002":"#fff2";return x.jsxs(R.Flex,{alignItems:{default:"alignItemsBaseline"},spaceItems:{default:"spaceItemsSm"},children:[n.capacity>0&&x.jsx(R.FlexItem,{children:x.jsx("div",{style:{width:18,height:25,background:s,marginBottom:-9,paddingTop:Math.max(0,Math.min(25,25*(n.capacity-n.used)/n.capacity)),borderRadius:2,border:`thin solid ${a}`},children:x.jsx("div",{style:{width:"100%",height:"100%",background:o,borderRadius:2}})})}),n.format?x.jsx(R.FlexItem,{children:n.format.replace("{used}",n.used.toString()).replace("{capacity}",n.capacity.toString())}):x.jsxs(R.FlexItem,{children:[n.used,` ${e.ofText} `,n.capacity]})]})}function Wre(n){return n.text?x.jsx(R.ClipboardCopy,{hoverTip:"Copy",clickTip:"Copied",variant:"inline-compact",style:{display:"flex",flexWrap:"nowrap",borderRadius:4},onCopy:()=>{navigator.clipboard.writeText(n.text??"")},children:x.jsx(R.Truncate,{content:n.text,style:{minWidth:n.minWidth}})}):x.jsx(x.Fragment,{})}class Hd extends Error{}class Vre extends Hd{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $re extends Hd{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Hre extends Hd{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class h0 extends Hd{}class r7 extends Hd{constructor(e){super(`Invalid unit ${e}`)}}class wo extends Hd{}class du extends Hd{constructor(){super("Zone is an abstract class")}}const Ke="numeric",ia="short",Us="long",U1={year:Ke,month:Ke,day:Ke},s7={year:Ke,month:ia,day:Ke},jre={year:Ke,month:ia,day:Ke,weekday:ia},o7={year:Ke,month:Us,day:Ke},a7={year:Ke,month:Us,day:Ke,weekday:Us},l7={hour:Ke,minute:Ke},c7={hour:Ke,minute:Ke,second:Ke},u7={hour:Ke,minute:Ke,second:Ke,timeZoneName:ia},d7={hour:Ke,minute:Ke,second:Ke,timeZoneName:Us},h7={hour:Ke,minute:Ke,hourCycle:"h23"},f7={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23"},g7={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23",timeZoneName:ia},m7={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23",timeZoneName:Us},p7={year:Ke,month:Ke,day:Ke,hour:Ke,minute:Ke},_7={year:Ke,month:Ke,day:Ke,hour:Ke,minute:Ke,second:Ke},v7={year:Ke,month:ia,day:Ke,hour:Ke,minute:Ke},b7={year:Ke,month:ia,day:Ke,hour:Ke,minute:Ke,second:Ke},zre={year:Ke,month:ia,day:Ke,weekday:ia,hour:Ke,minute:Ke},y7={year:Ke,month:Us,day:Ke,hour:Ke,minute:Ke,timeZoneName:ia},C7={year:Ke,month:Us,day:Ke,hour:Ke,minute:Ke,second:Ke,timeZoneName:ia},w7={year:Ke,month:Us,day:Ke,weekday:Us,hour:Ke,minute:Ke,timeZoneName:Us},S7={year:Ke,month:Us,day:Ke,weekday:Us,hour:Ke,minute:Ke,second:Ke,timeZoneName:Us};class f0{get type(){throw new du}get name(){throw new du}get ianaName(){return this.name}get isUniversal(){throw new du}offsetName(e,t){throw new du}formatOffset(e,t){throw new du}offset(e){throw new du}equals(e){throw new du}get isValid(){throw new du}}let Ak=null;class q1 extends f0{static get instance(){return Ak===null&&(Ak=new q1),Ak}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return M7(e,t,i)}formatOffset(e,t){return _0(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let K1={};function Ure(n){return K1[n]||(K1[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),K1[n]}const qre={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Kre(n,e){const t=n.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,r,s,o,a,l,c,u]=i;return[o,r,s,a,l,c,u]}function Gre(n,e){const t=n.formatToParts(e),i=[];for(let r=0;r<t.length;r++){const{type:s,value:o}=t[r],a=qre[s];s==="era"?i[a]=o:nn(a)||(i[a]=parseInt(o,10))}return i}let G1={};class Xl extends f0{static create(e){return G1[e]||(G1[e]=new Xl(e)),G1[e]}static resetCache(){G1={},K1={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Xl.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return M7(e,t,i,this.name)}formatOffset(e,t){return _0(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const i=Ure(this.name);let[r,s,o,a,l,c,u]=i.formatToParts?Gre(i,t):Kre(i,t);a==="BC"&&(r=-Math.abs(r)+1);const h=Q1({year:r,month:s,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let f=+t;const g=f%1e3;return f-=g>=0?g:1e3+g,(h-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let x7={};function Yre(n,e={}){const t=JSON.stringify([n,e]);let i=x7[t];return i||(i=new Intl.ListFormat(n,e),x7[t]=i),i}let Ok={};function Nk(n,e={}){const t=JSON.stringify([n,e]);let i=Ok[t];return i||(i=new Intl.DateTimeFormat(n,e),Ok[t]=i),i}let Mk={};function Zre(n,e={}){const t=JSON.stringify([n,e]);let i=Mk[t];return i||(i=new Intl.NumberFormat(n,e),Mk[t]=i),i}let Pk={};function Xre(n,e={}){const{base:t,...i}=e,r=JSON.stringify([n,i]);let s=Pk[r];return s||(s=new Intl.RelativeTimeFormat(n,e),Pk[r]=s),s}let g0=null;function Qre(){return g0||(g0=new Intl.DateTimeFormat().resolvedOptions().locale,g0)}function Jre(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const t=n.indexOf("-u-");if(t===-1)return[n];{let i,r;try{i=Nk(n).resolvedOptions(),r=n}catch{const l=n.substring(0,t);i=Nk(l).resolvedOptions(),r=l}const{numberingSystem:s,calendar:o}=i;return[r,s,o]}}function ese(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function tse(n){const e=[];for(let t=1;t<=12;t++){const i=xt.utc(2009,t,1);e.push(n(i))}return e}function nse(n){const e=[];for(let t=1;t<=7;t++){const i=xt.utc(2016,11,13+t);e.push(n(i))}return e}function Y1(n,e,t,i){const r=n.listingMode();return r==="error"?null:r==="en"?t(e):i(e)}function ise(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class rse{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:r,floor:s,...o}=i;if(!t||Object.keys(o).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=Zre(e,a)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):Bk(e,3);return Mi(t,this.padTo)}}}class sse{constructor(e,t,i){this.opts=i,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Xl.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=Nk(t,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:i}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ose{constructor(e,t,i){this.opts={style:"long",...i},!t&&O7()&&(this.rtf=Xre(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):Sse(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Un{static fromOpts(e){return Un.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,i,r=!1){const s=e||Ni.defaultLocale,o=s||(r?"en-US":Qre()),a=t||Ni.defaultNumberingSystem,l=i||Ni.defaultOutputCalendar;return new Un(o,a,l,s)}static resetCache(){g0=null,Ok={},Mk={},Pk={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i}={}){return Un.create(e,t,i)}constructor(e,t,i,r){const[s,o,a]=Jre(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=i||a||null,this.intl=ese(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ise(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Un.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Y1(this,e,F7,()=>{const i=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=tse(s=>this.extract(s,i,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1){return Y1(this,e,V7,()=>{const i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=nse(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Y1(this,void 0,()=>$7,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[xt.utc(2016,11,13,9),xt.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Y1(this,e,H7,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[xt.utc(-40,1,1),xt.utc(2017,1,1)].map(i=>this.extract(i,t,"era"))),this.eraCache[e]})}extract(e,t,i){const r=this.dtFormatter(e,t),s=r.formatToParts(),o=s.find(a=>a.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new rse(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new sse(e,this.intl,t)}relFormatter(e={}){return new ose(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Yre(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Rk=null;class Xr extends f0{static get utcInstance(){return Rk===null&&(Rk=new Xr(0)),Rk}static instance(e){return e===0?Xr.utcInstance:new Xr(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Xr(ey(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${_0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${_0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return _0(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ase extends f0{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function hu(n,e){if(nn(n)||n===null)return e;if(n instanceof f0)return n;if(lse(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?q1.instance:t==="utc"||t==="gmt"?Xr.utcInstance:Xr.parseSpecifier(t)||Xl.create(n)}else return jd(n)?Xr.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new ase(n)}let L7=()=>Date.now(),k7="system",D7=null,E7=null,T7=null,I7=60,A7,Ni=class{static get now(){return L7}static set now(e){L7=e}static set defaultZone(e){k7=e}static get defaultZone(){return hu(k7,q1.instance)}static get defaultLocale(){return D7}static set defaultLocale(e){D7=e}static get defaultNumberingSystem(){return E7}static set defaultNumberingSystem(e){E7=e}static get defaultOutputCalendar(){return T7}static set defaultOutputCalendar(e){T7=e}static get twoDigitCutoffYear(){return I7}static set twoDigitCutoffYear(e){I7=e%100}static get throwOnInvalid(){return A7}static set throwOnInvalid(e){A7=e}static resetCaches(){Un.resetCache(),Xl.resetCache()}};function nn(n){return typeof n>"u"}function jd(n){return typeof n=="number"}function Z1(n){return typeof n=="number"&&n%1===0}function lse(n){return typeof n=="string"}function cse(n){return Object.prototype.toString.call(n)==="[object Date]"}function O7(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function use(n){return Array.isArray(n)?n:[n]}function N7(n,e,t){if(n.length!==0)return n.reduce((i,r)=>{const s=[e(r),r];return i&&t(i[0],s[0])===i[0]?i:s},null)[1]}function dse(n,e){return e.reduce((t,i)=>(t[i]=n[i],t),{})}function lg(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function Ql(n,e,t){return Z1(n)&&n>=e&&n<=t}function hse(n,e){return n-e*Math.floor(n/e)}function Mi(n,e=2){const t=n<0;let i;return t?i="-"+(""+-n).padStart(e,"0"):i=(""+n).padStart(e,"0"),i}function fu(n){if(!(nn(n)||n===null||n===""))return parseInt(n,10)}function zd(n){if(!(nn(n)||n===null||n===""))return parseFloat(n)}function Fk(n){if(!(nn(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Bk(n,e,t=!1){const i=10**e;return(t?Math.trunc:Math.round)(n*i)/i}function m0(n){return n%4===0&&(n%100!==0||n%400===0)}function p0(n){return m0(n)?366:365}function X1(n,e){const t=hse(e-1,12)+1,i=n+(e-t)/12;return t===2?m0(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Q1(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function J1(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,t=n-1,i=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return e===4||i===3?53:52}function Wk(n){return n>99?n:n>Ni.twoDigitCutoffYear?1900+n:2e3+n}function M7(n,e,t,i=null){const r=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const o={timeZoneName:e,...s},a=new Intl.DateTimeFormat(t,o).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function ey(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const i=parseInt(e,10)||0,r=t<0||Object.is(t,-0)?-i:i;return t*60+r}function P7(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new wo(`Invalid unit value ${n}`);return e}function ty(n,e){const t={};for(const i in n)if(lg(n,i)){const r=n[i];if(r==null)continue;t[e(i)]=P7(r)}return t}function _0(n,e){const t=Math.trunc(Math.abs(n/60)),i=Math.trunc(Math.abs(n%60)),r=n>=0?"+":"-";switch(e){case"short":return`${r}${Mi(t,2)}:${Mi(i,2)}`;case"narrow":return`${r}${t}${i>0?`:${i}`:""}`;case"techie":return`${r}${Mi(t,2)}${Mi(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ny(n){return dse(n,["hour","minute","second","millisecond"])}const fse=["January","February","March","April","May","June","July","August","September","October","November","December"],R7=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gse=["J","F","M","A","M","J","J","A","S","O","N","D"];function F7(n){switch(n){case"narrow":return[...gse];case"short":return[...R7];case"long":return[...fse];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const B7=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],W7=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mse=["M","T","W","T","F","S","S"];function V7(n){switch(n){case"narrow":return[...mse];case"short":return[...W7];case"long":return[...B7];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const $7=["AM","PM"],pse=["Before Christ","Anno Domini"],_se=["BC","AD"],vse=["B","A"];function H7(n){switch(n){case"narrow":return[...vse];case"short":return[..._se];case"long":return[...pse];default:return null}}function bse(n){return $7[n.hour<12?0:1]}function yse(n,e){return V7(e)[n.weekday-1]}function Cse(n,e){return F7(e)[n.month-1]}function wse(n,e){return H7(e)[n.year<0?0:1]}function Sse(n,e,t="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(n)===-1;if(t==="auto"&&s){const d=n==="days";switch(e){case 1:return d?"tomorrow":`next ${r[n][0]}`;case-1:return d?"yesterday":`last ${r[n][0]}`;case 0:return d?"today":`this ${r[n][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=r[n],u=i?l?c[1]:c[2]||c[1]:l?r[n][0]:n;return o?`${a} ${u} ago`:`in ${a} ${u}`}function j7(n,e){let t="";for(const i of n)i.literal?t+=i.val:t+=e(i.val);return t}const xse={D:U1,DD:s7,DDD:o7,DDDD:a7,t:l7,tt:c7,ttt:u7,tttt:d7,T:h7,TT:f7,TTT:g7,TTTT:m7,f:p7,ff:v7,fff:y7,ffff:w7,F:_7,FF:b7,FFF:C7,FFFF:S7};class Pr{static create(e,t={}){return new Pr(e,t)}static parseFormat(e){let t=null,i="",r=!1;const s=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),t=null,i="",r=!r):r||a===t?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,t=a)}return i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return xse[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Mi(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(f,g)=>this.loc.extract(e,f,g),o=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",a=()=>i?bse(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(f,g)=>i?Cse(e,f):s(g?{month:f}:{month:f,day:"numeric"},"month"),c=(f,g)=>i?yse(e,f):s(g?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),u=f=>{const g=Pr.macroTokenToFormatOpts(f);return g?this.formatWithSystemDefault(e,g):f},d=f=>i?wse(e,f):s({era:f},"era"),h=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(f)}};return j7(Pr.parseFormat(t),h)}formatDurationFromString(e,t){const i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{const u=i(c);return u?this.num(l.get(u),c.length):c},s=Pr.parseFormat(t),o=s.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=e.shiftTo(...o.map(i).filter(l=>l));return j7(s,r(a))}}class ra{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const z7=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function cg(...n){const e=n.reduce((t,i)=>t+i.source,"");return RegExp(`^${e}$`)}function ug(...n){return e=>n.reduce(([t,i,r],s)=>{const[o,a,l]=s(e,r);return[{...t,...o},a||i,l]},[{},null,1]).slice(0,2)}function dg(n,...e){if(n==null)return[null,null];for(const[t,i]of e){const r=t.exec(n);if(r)return i(r)}return[null,null]}function U7(...n){return(e,t)=>{const i={};let r;for(r=0;r<n.length;r++)i[n[r]]=fu(e[t+r]);return[i,null,t+r]}}const q7=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Lse=`(?:${q7.source}?(?:\\[(${z7.source})\\])?)?`,Vk=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,K7=RegExp(`${Vk.source}${Lse}`),$k=RegExp(`(?:T${K7.source})?`),kse=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Dse=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ese=/(\d{4})-?(\d{3})/,Tse=U7("weekYear","weekNumber","weekDay"),Ise=U7("year","ordinal"),Ase=/(\d{4})-(\d\d)-(\d\d)/,G7=RegExp(`${Vk.source} ?(?:${q7.source}|(${z7.source}))?`),Ose=RegExp(`(?: ${G7.source})?`);function hg(n,e,t){const i=n[e];return nn(i)?t:fu(i)}function Nse(n,e){return[{year:hg(n,e),month:hg(n,e+1,1),day:hg(n,e+2,1)},null,e+3]}function fg(n,e){return[{hours:hg(n,e,0),minutes:hg(n,e+1,0),seconds:hg(n,e+2,0),milliseconds:Fk(n[e+3])},null,e+4]}function v0(n,e){const t=!n[e]&&!n[e+1],i=ey(n[e+1],n[e+2]),r=t?null:Xr.instance(i);return[{},r,e+3]}function b0(n,e){const t=n[e]?Xl.create(n[e]):null;return[{},t,e+1]}const Mse=RegExp(`^T?${Vk.source}$`),Pse=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Rse(n){const[e,t,i,r,s,o,a,l,c]=n,u=e[0]==="-",d=l&&l[0]==="-",h=(f,g=!1)=>f!==void 0&&(g||f&&u)?-f:f;return[{years:h(zd(t)),months:h(zd(i)),weeks:h(zd(r)),days:h(zd(s)),hours:h(zd(o)),minutes:h(zd(a)),seconds:h(zd(l),l==="-0"),milliseconds:h(Fk(c),d)}]}const Fse={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Hk(n,e,t,i,r,s,o){const a={year:e.length===2?Wk(fu(e)):fu(e),month:R7.indexOf(t)+1,day:fu(i),hour:fu(r),minute:fu(s)};return o&&(a.second=fu(o)),n&&(a.weekday=n.length>3?B7.indexOf(n)+1:W7.indexOf(n)+1),a}const Bse=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Wse(n){const[,e,t,i,r,s,o,a,l,c,u,d]=n,h=Hk(e,r,i,t,s,o,a);let f;return l?f=Fse[l]:c?f=0:f=ey(u,d),[h,new Xr(f)]}function Vse(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const $se=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Hse=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jse=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Y7(n){const[,e,t,i,r,s,o,a]=n;return[Hk(e,r,i,t,s,o,a),Xr.utcInstance]}function zse(n){const[,e,t,i,r,s,o,a]=n;return[Hk(e,a,t,i,r,s,o),Xr.utcInstance]}const Use=cg(kse,$k),qse=cg(Dse,$k),Kse=cg(Ese,$k),Gse=cg(K7),Z7=ug(Nse,fg,v0,b0),Yse=ug(Tse,fg,v0,b0),Zse=ug(Ise,fg,v0,b0),Xse=ug(fg,v0,b0);function Qse(n){return dg(n,[Use,Z7],[qse,Yse],[Kse,Zse],[Gse,Xse])}function Jse(n){return dg(Vse(n),[Bse,Wse])}function eoe(n){return dg(n,[$se,Y7],[Hse,Y7],[jse,zse])}function toe(n){return dg(n,[Pse,Rse])}const noe=ug(fg);function ioe(n){return dg(n,[Mse,noe])}const roe=cg(Ase,Ose),soe=cg(G7),ooe=ug(fg,v0,b0);function aoe(n){return dg(n,[roe,Z7],[soe,ooe])}const loe="Invalid Duration",X7={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},coe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...X7},So=146097/400,gg=146097/4800,uoe={years:{quarters:4,months:12,weeks:So/7,days:So,hours:So*24,minutes:So*24*60,seconds:So*24*60*60,milliseconds:So*24*60*60*1e3},quarters:{months:3,weeks:So/28,days:So/4,hours:So*24/4,minutes:So*24*60/4,seconds:So*24*60*60/4,milliseconds:So*24*60*60*1e3/4},months:{weeks:gg/7,days:gg,hours:gg*24,minutes:gg*24*60,seconds:gg*24*60*60,milliseconds:gg*24*60*60*1e3},...X7},Ud=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Q7=Ud.slice(0).reverse();function gu(n,e,t=!1){const i={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new dn(i)}function J7(n){return Math.trunc(n*1e3)/1e3}function eR(n,e,t,i,r){const s=n[r][t],o=e[t]/s,a=Math.floor(o);i[r]=J7(i[r]+a),e[t]=J7(e[t]-a*s)}function doe(n,e){Q7.reduce((t,i)=>nn(e[i])?t:(t&&eR(n,e,t,e,i),i),null)}function hoe(n){const e={};for(const[t,i]of Object.entries(n))i!==0&&(e[t]=i);return e}class dn{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let i=t?uoe:coe;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Un.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,t){return dn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new wo(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new dn({values:ty(e,dn.normalizeUnit),loc:Un.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(jd(e))return dn.fromMillis(e);if(dn.isDuration(e))return e;if(typeof e=="object")return dn.fromObject(e);throw new wo(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=toe(e);return i?dn.fromObject(i,t):dn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=ioe(e);return i?dn.fromObject(i,t):dn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the Duration is invalid");const i=e instanceof ra?e:new ra(e,t);if(Ni.throwOnInvalid)throw new Hre(i);return new dn({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new r7(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?Pr.create(this.loc,i).formatDurationFromString(this,e):loe}toHuman(e={}){const t=Ud.map(i=>{const r=this.values[i];return nn(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(r)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Bk(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},xt.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var t;let e=this.values.milliseconds??0;for(let i of Q7.slice(1))(t=this.values)!=null&&t[i]&&(e+=this.values[i]*this.matrix[i].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e),i={};for(const r of Ud)(lg(t.values,r)||lg(this.values,r))&&(i[r]=t.get(r)+this.get(r));return gu(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=P7(e(this.values[i],i));return gu(this,{values:t},!0)}get(e){return this[dn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...ty(e,dn.normalizeUnit)};return gu(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:i};return gu(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(doe(this.matrix,e),gu(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=hoe(this.normalize().shiftToAll().toObject());return gu(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>dn.normalizeUnit(o));const t={},i={},r=this.toObject();let s;for(const o of Ud)if(e.indexOf(o)>=0){s=o;let a=0;for(const c in i)a+=this.matrix[c][o]*i[c],i[c]=0;jd(r[o])&&(a+=r[o]);const l=Math.trunc(a);t[o]=l,i[o]=(a*1e3-l*1e3)/1e3;for(const c in r)Ud.indexOf(c)>Ud.indexOf(o)&&eR(this.matrix,r,c,t,o)}else jd(r[o])&&(i[o]=r[o]);for(const o in i)i[o]!==0&&(t[s]+=o===s?i[o]:i[o]/this.matrix[s][o]);return gu(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return gu(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(i,r){return i===void 0||i===0?r===void 0||r===0:i===r}for(const i of Ud)if(!t(this.values[i],e.values[i]))return!1;return!0}}const mg="Invalid Interval";function foe(n,e){return!n||!n.isValid?di.invalid("missing or invalid start"):!e||!e.isValid?di.invalid("missing or invalid end"):e<n?di.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class di{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the Interval is invalid");const i=e instanceof ra?e:new ra(e,t);if(Ni.throwOnInvalid)throw new $re(i);return new di({invalid:i})}static fromDateTimes(e,t){const i=C0(e),r=C0(t),s=foe(i,r);return s??new di({start:i,end:r})}static after(e,t){const i=dn.fromDurationLike(t),r=C0(e);return di.fromDateTimes(r,r.plus(i))}static before(e,t){const i=dn.fromDurationLike(t),r=C0(e);return di.fromDateTimes(r.minus(i),r)}static fromISO(e,t){const[i,r]=(e||"").split("/",2);if(i&&r){let s,o;try{s=xt.fromISO(i,t),o=s.isValid}catch{o=!1}let a,l;try{a=xt.fromISO(r,t),l=a.isValid}catch{l=!1}if(o&&l)return di.fromDateTimes(s,a);if(o){const c=dn.fromISO(r,t);if(c.isValid)return di.after(s,c)}else if(l){const c=dn.fromISO(i,t);if(c.isValid)return di.before(a,c)}}return di.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const t=this.start.startOf(e),i=this.end.startOf(e);return Math.floor(i.diff(t,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?di.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(C0).filter(o=>this.contains(o)).sort(),i=[];let{s:r}=this,s=0;for(;r<this.e;){const o=t[s]||this.e,a=+o>+this.e?this.e:o;i.push(di.fromDateTimes(r,a)),r=a,s+=1}return i}splitBy(e){const t=dn.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:i}=this,r=1,s;const o=[];for(;i<this.e;){const a=this.start.plus(t.mapUnits(l=>l*r));s=+a>+this.e?this.e:a,o.push(di.fromDateTimes(i,s)),i=s,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return t>=i?null:di.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return di.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort((r,s)=>r.s-s.s).reduce(([r,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[r,s.union(o)]:[r.concat([s]),o]:[r,o],[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const r=[],s=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((l,c)=>l.time-c.time);for(const l of a)i+=l.type==="s"?1:-1,i===1?t=l.time:(t&&+t!=+l.time&&r.push(di.fromDateTimes(t,l.time)),t=null);return di.merge(r)}difference(...e){return di.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:mg}toLocaleString(e=U1,t={}){return this.isValid?Pr.create(this.s.loc.clone(t),e).formatInterval(this):mg}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:mg}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mg}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:mg}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:mg}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):dn.invalid(this.invalidReason)}mapEndpoints(e){return di.fromDateTimes(e(this.s),e(this.e))}}class iy{static hasDST(e=Ni.defaultZone){const t=xt.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Xl.isValidZone(e)}static normalizeZone(e){return hu(e,Ni.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Un.create(t,i,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Un.create(t,i,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null}={}){return(r||Un.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null}={}){return(r||Un.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Un.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Un.create(t,null,"gregory").eras(e)}static features(){return{relative:O7()}}}function tR(n,e){const t=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=t(e)-t(n);return Math.floor(dn.fromMillis(i).as("days"))}function goe(n,e,t){const i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=tR(l,c);return(u-u%7)/7}],["days",tR]],r={},s=n;let o,a;for(const[l,c]of i)t.indexOf(l)>=0&&(o=l,r[l]=c(n,e),a=s.plus(r),a>e?(r[l]--,n=s.plus(r),n>e&&(a=n,r[l]--,n=s.plus(r))):n=a);return[n,r,a,o]}function moe(n,e,t,i){let[r,s,o,a]=goe(n,e,t);const l=e-r,c=t.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(s[a]=(s[a]||0)+l/(o-r)));const u=dn.fromObject(s,i);return c.length>0?dn.fromMillis(l,i).shiftTo(...c).plus(u):u}const jk={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},nR={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},poe=jk.hanidec.replace(/[\[|\]]/g,"").split("");function _oe(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t<n.length;t++){const i=n.charCodeAt(t);if(n[t].search(jk.hanidec)!==-1)e+=poe.indexOf(n[t]);else for(const r in nR){const[s,o]=nR[r];i>=s&&i<=o&&(e+=i-s)}}return parseInt(e,10)}else return e}function sa({numberingSystem:n},e=""){return new RegExp(`${jk[n||"latn"]}${e}`)}const voe="missing Intl.DateTimeFormat.formatToParts support";function _n(n,e=t=>t){return{regex:n,deser:([t])=>e(_oe(t))}}const iR=`[ ${String.fromCharCode(160)}]`,rR=new RegExp(iR,"g");function boe(n){return n.replace(/\./g,"\\.?").replace(rR,iR)}function sR(n){return n.replace(/\./g,"").replace(rR," ").toLowerCase()}function oa(n,e){return n===null?null:{regex:RegExp(n.map(boe).join("|")),deser:([t])=>n.findIndex(i=>sR(t)===sR(i))+e}}function oR(n,e){return{regex:n,deser:([,t,i])=>ey(t,i),groups:e}}function ry(n){return{regex:n,deser:([e])=>e}}function yoe(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Coe(n,e){const t=sa(e),i=sa(e,"{2}"),r=sa(e,"{3}"),s=sa(e,"{4}"),o=sa(e,"{6}"),a=sa(e,"{1,2}"),l=sa(e,"{1,3}"),c=sa(e,"{1,6}"),u=sa(e,"{1,9}"),d=sa(e,"{2,4}"),h=sa(e,"{4,6}"),f=p=>({regex:RegExp(yoe(p.val)),deser:([v])=>v,literal:!0}),m=(p=>{if(n.literal)return f(p);switch(p.val){case"G":return oa(e.eras("short"),0);case"GG":return oa(e.eras("long"),0);case"y":return _n(c);case"yy":return _n(d,Wk);case"yyyy":return _n(s);case"yyyyy":return _n(h);case"yyyyyy":return _n(o);case"M":return _n(a);case"MM":return _n(i);case"MMM":return oa(e.months("short",!0),1);case"MMMM":return oa(e.months("long",!0),1);case"L":return _n(a);case"LL":return _n(i);case"LLL":return oa(e.months("short",!1),1);case"LLLL":return oa(e.months("long",!1),1);case"d":return _n(a);case"dd":return _n(i);case"o":return _n(l);case"ooo":return _n(r);case"HH":return _n(i);case"H":return _n(a);case"hh":return _n(i);case"h":return _n(a);case"mm":return _n(i);case"m":return _n(a);case"q":return _n(a);case"qq":return _n(i);case"s":return _n(a);case"ss":return _n(i);case"S":return _n(l);case"SSS":return _n(r);case"u":return ry(u);case"uu":return ry(a);case"uuu":return _n(t);case"a":return oa(e.meridiems(),0);case"kkkk":return _n(s);case"kk":return _n(d,Wk);case"W":return _n(a);case"WW":return _n(i);case"E":case"c":return _n(t);case"EEE":return oa(e.weekdays("short",!1),1);case"EEEE":return oa(e.weekdays("long",!1),1);case"ccc":return oa(e.weekdays("short",!0),1);case"cccc":return oa(e.weekdays("long",!0),1);case"Z":case"ZZ":return oR(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return oR(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return ry(/[a-z_+-/]{1,256}?/i);case" ":return ry(/[^\S\n\r]/);default:return f(p)}})(n)||{invalidReason:voe};return m.token=n,m}const woe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Soe(n,e,t){const{type:i,value:r}=n;if(i==="literal"){const l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}const s=e[i];let o=i;i==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=t.hour12?"hour12":"hour24");let a=woe[o];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function xoe(n){return[`^${n.map(t=>t.regex).reduce((t,i)=>`${t}(${i.source})`,"")}$`,n]}function Loe(n,e,t){const i=n.match(e);if(i){const r={};let s=1;for(const o in t)if(lg(t,o)){const a=t[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(s,s+l))),s+=l}return[i,r]}else return[i,{}]}function koe(n){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,i;return nn(n.z)||(t=Xl.create(n.z)),nn(n.Z)||(t||(t=new Xr(n.Z)),i=n.Z),nn(n.q)||(n.M=(n.q-1)*3+1),nn(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),nn(n.u)||(n.S=Fk(n.u)),[Object.keys(n).reduce((s,o)=>{const a=e(o);return a&&(s[a]=n[o]),s},{}),t,i]}let zk=null;function Doe(){return zk||(zk=xt.fromMillis(1555555555555)),zk}function Eoe(n,e){if(n.literal)return n;const t=Pr.macroTokenToFormatOpts(n.val),i=cR(t,e);return i==null||i.includes(void 0)?n:i}function aR(n,e){return Array.prototype.concat(...n.map(t=>Eoe(t,e)))}function lR(n,e,t){const i=aR(Pr.parseFormat(t),n),r=i.map(o=>Coe(o,n)),s=r.find(o=>o.invalidReason);if(s)return{input:e,tokens:i,invalidReason:s.invalidReason};{const[o,a]=xoe(r),l=RegExp(o,"i"),[c,u]=Loe(e,l,a),[d,h,f]=u?koe(u):[null,null,void 0];if(lg(u,"a")&&lg(u,"H"))throw new h0("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:l,rawMatches:c,matches:u,result:d,zone:h,specificOffset:f}}}function Toe(n,e,t){const{result:i,zone:r,specificOffset:s,invalidReason:o}=lR(n,e,t);return[i,r,s,o]}function cR(n,e){if(!n)return null;const i=Pr.create(e,n).dtFormatter(Doe()),r=i.formatToParts(),s=i.resolvedOptions();return r.map(o=>Soe(o,n,s))}const uR=[0,31,59,90,120,151,181,212,243,273,304,334],dR=[0,31,60,91,121,152,182,213,244,274,305,335];function xo(n,e){return new ra("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function hR(n,e,t){const i=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return r===0?7:r}function fR(n,e,t){return t+(m0(n)?dR:uR)[e-1]}function gR(n,e){const t=m0(n)?dR:uR,i=t.findIndex(s=>s<e),r=e-t[i];return{month:i+1,day:r}}function Uk(n){const{year:e,month:t,day:i}=n,r=fR(e,t,i),s=hR(e,t,i);let o=Math.floor((r-s+10)/7),a;return o<1?(a=e-1,o=J1(a)):o>J1(e)?(a=e+1,o=1):a=e,{weekYear:a,weekNumber:o,weekday:s,...ny(n)}}function mR(n){const{weekYear:e,weekNumber:t,weekday:i}=n,r=hR(e,1,4),s=p0(e);let o=t*7+i-r-3,a;o<1?(a=e-1,o+=p0(a)):o>s?(a=e+1,o-=p0(e)):a=e;const{month:l,day:c}=gR(a,o);return{year:a,month:l,day:c,...ny(n)}}function qk(n){const{year:e,month:t,day:i}=n,r=fR(e,t,i);return{year:e,ordinal:r,...ny(n)}}function pR(n){const{year:e,ordinal:t}=n,{month:i,day:r}=gR(e,t);return{year:e,month:i,day:r,...ny(n)}}function Ioe(n){const e=Z1(n.weekYear),t=Ql(n.weekNumber,1,J1(n.weekYear)),i=Ql(n.weekday,1,7);return e?t?i?!1:xo("weekday",n.weekday):xo("week",n.week):xo("weekYear",n.weekYear)}function Aoe(n){const e=Z1(n.year),t=Ql(n.ordinal,1,p0(n.year));return e?t?!1:xo("ordinal",n.ordinal):xo("year",n.year)}function _R(n){const e=Z1(n.year),t=Ql(n.month,1,12),i=Ql(n.day,1,X1(n.year,n.month));return e?t?i?!1:xo("day",n.day):xo("month",n.month):xo("year",n.year)}function vR(n){const{hour:e,minute:t,second:i,millisecond:r}=n,s=Ql(e,0,23)||e===24&&t===0&&i===0&&r===0,o=Ql(t,0,59),a=Ql(i,0,59),l=Ql(r,0,999);return s?o?a?l?!1:xo("millisecond",r):xo("second",i):xo("minute",t):xo("hour",e)}const Kk="Invalid DateTime",bR=864e13;function sy(n){return new ra("unsupported zone",`the zone "${n.name}" is not supported`)}function Gk(n){return n.weekData===null&&(n.weekData=Uk(n.c)),n.weekData}function qd(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new xt({...t,...e,old:t})}function yR(n,e,t){let i=n-e*60*1e3;const r=t.offset(i);if(e===r)return[i,e];i-=(r-e)*60*1e3;const s=t.offset(i);return r===s?[i,r]:[n-Math.min(r,s)*60*1e3,Math.max(r,s)]}function oy(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function ay(n,e,t){return yR(Q1(n),e,t)}function CR(n,e){const t=n.o,i=n.c.year+Math.trunc(e.years),r=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...n.c,year:i,month:r,day:Math.min(n.c.day,X1(i,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=dn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Q1(s);let[l,c]=yR(a,t,n.zone);return o!==0&&(l+=o,c=n.zone.offset(l)),{ts:l,o:c}}function y0(n,e,t,i,r,s){const{setZone:o,zone:a}=t;if(n&&Object.keys(n).length!==0||e){const l=e||a,c=xt.fromObject(n,{...t,zone:l,specificOffset:s});return o?c:c.setZone(a)}else return xt.invalid(new ra("unparsable",`the input "${r}" can't be parsed as ${i}`))}function ly(n,e,t=!0){return n.isValid?Pr.create(Un.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function Yk(n,e){const t=n.c.year>9999||n.c.year<0;let i="";return t&&n.c.year>=0&&(i+="+"),i+=Mi(n.c.year,t?6:4),e?(i+="-",i+=Mi(n.c.month),i+="-",i+=Mi(n.c.day)):(i+=Mi(n.c.month),i+=Mi(n.c.day)),i}function wR(n,e,t,i,r,s){let o=Mi(n.c.hour);return e?(o+=":",o+=Mi(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(o+=":")):o+=Mi(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(o+=Mi(n.c.second),(n.c.millisecond!==0||!i)&&(o+=".",o+=Mi(n.c.millisecond,3))),r&&(n.isOffsetFixed&&n.offset===0&&!s?o+="Z":n.o<0?(o+="-",o+=Mi(Math.trunc(-n.o/60)),o+=":",o+=Mi(Math.trunc(-n.o%60))):(o+="+",o+=Mi(Math.trunc(n.o/60)),o+=":",o+=Mi(Math.trunc(n.o%60)))),s&&(o+="["+n.zone.ianaName+"]"),o}const SR={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ooe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Noe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},xR=["year","month","day","hour","minute","second","millisecond"],Moe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Poe=["year","ordinal","hour","minute","second","millisecond"];function LR(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new r7(n);return e}function kR(n,e){const t=hu(e.zone,Ni.defaultZone),i=Un.fromObject(e),r=Ni.now();let s,o;if(nn(n.year))s=r;else{for(const c of xR)nn(n[c])&&(n[c]=SR[c]);const a=_R(n)||vR(n);if(a)return xt.invalid(a);const l=t.offset(r);[s,o]=ay(n,l,t)}return new xt({ts:s,zone:t,loc:i,o})}function DR(n,e,t){const i=nn(t.round)?!0:t.round,r=(o,a)=>(o=Bk(o,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(o,a)),s=o=>t.calendary?e.hasSame(n,o)?0:e.startOf(o).diff(n.startOf(o),o).get(o):e.diff(n,o).get(o);if(t.unit)return r(s(t.unit),t.unit);for(const o of t.units){const a=s(o);if(Math.abs(a)>=1)return r(a,o)}return r(n>e?-0:0,t.units[t.units.length-1])}function ER(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}class xt{constructor(e){const t=e.zone||Ni.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new ra("invalid input"):null)||(t.isValid?null:sy(t));this.ts=nn(e.ts)?Ni.now():e.ts;let r=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const a=t.offset(this.ts);r=oy(this.ts,a),i=Number.isNaN(r.year)?new ra("invalid input"):null,r=i?null:r,s=i?null:a}this._zone=t,this.loc=e.loc||Un.create(),this.invalid=i,this.weekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new xt({})}static local(){const[e,t]=ER(arguments),[i,r,s,o,a,l,c]=t;return kR({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},e)}static utc(){const[e,t]=ER(arguments),[i,r,s,o,a,l,c]=t;return e.zone=Xr.utcInstance,kR({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,t={}){const i=cse(e)?e.valueOf():NaN;if(Number.isNaN(i))return xt.invalid("invalid input");const r=hu(t.zone,Ni.defaultZone);return r.isValid?new xt({ts:i,zone:r,loc:Un.fromObject(t)}):xt.invalid(sy(r))}static fromMillis(e,t={}){if(jd(e))return e<-bR||e>bR?xt.invalid("Timestamp out of range"):new xt({ts:e,zone:hu(t.zone,Ni.defaultZone),loc:Un.fromObject(t)});throw new wo(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(jd(e))return new xt({ts:e*1e3,zone:hu(t.zone,Ni.defaultZone),loc:Un.fromObject(t)});throw new wo("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=hu(t.zone,Ni.defaultZone);if(!i.isValid)return xt.invalid(sy(i));const r=Ni.now(),s=nn(t.specificOffset)?i.offset(r):t.specificOffset,o=ty(e,LR),a=!nn(o.ordinal),l=!nn(o.year),c=!nn(o.month)||!nn(o.day),u=l||c,d=o.weekYear||o.weekNumber,h=Un.fromObject(t);if((u||a)&&d)throw new h0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new h0("Can't mix ordinal dates with month/day");const f=d||o.weekday&&!u;let g,m,p=oy(r,s);f?(g=Moe,m=Ooe,p=Uk(p)):a?(g=Poe,m=Noe,p=qk(p)):(g=xR,m=SR);let v=!1;for(const D of g){const E=o[D];nn(E)?v?o[D]=m[D]:o[D]=p[D]:v=!0}const _=f?Ioe(o):a?Aoe(o):_R(o),b=_||vR(o);if(b)return xt.invalid(b);const y=f?mR(o):a?pR(o):o,[w,k]=ay(y,s,i),L=new xt({ts:w,zone:i,o:k,loc:h});return o.weekday&&u&&e.weekday!==L.weekday?xt.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${L.toISO()}`):L}static fromISO(e,t={}){const[i,r]=Qse(e);return y0(i,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,r]=Jse(e);return y0(i,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,r]=eoe(e);return y0(i,r,t,"HTTP",t)}static fromFormat(e,t,i={}){if(nn(e)||nn(t))throw new wo("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=i,o=Un.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=Toe(o,e,t);return u?xt.invalid(u):y0(a,l,i,`format ${t}`,e,c)}static fromString(e,t,i={}){return xt.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,r]=aoe(e);return y0(i,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the DateTime is invalid");const i=e instanceof ra?e:new ra(e,t);if(Ni.throwOnInvalid)throw new Vre(i);return new xt({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=cR(e,Un.fromObject(t));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(e,t={}){return aR(Pr.parseFormat(e),Un.fromObject(t)).map(r=>r.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Gk(this).weekYear:NaN}get weekNumber(){return this.isValid?Gk(this).weekNumber:NaN}get weekday(){return this.isValid?Gk(this).weekday:NaN}get ordinal(){return this.isValid?qk(this.c).ordinal:NaN}get monthShort(){return this.isValid?iy.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?iy.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?iy.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?iy.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=Q1(this.c),r=this.zone.offset(i-e),s=this.zone.offset(i+e),o=this.zone.offset(i-r*t),a=this.zone.offset(i-s*t);if(o===a)return[this];const l=i-o*t,c=i-a*t,u=oy(l,o),d=oy(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[qd(this,{ts:l}),qd(this,{ts:c})]:[this]}get isInLeapYear(){return m0(this.year)}get daysInMonth(){return X1(this.year,this.month)}get daysInYear(){return this.isValid?p0(this.year):NaN}get weeksInWeekYear(){return this.isValid?J1(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:r}=Pr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Xr.instance(e),t)}toLocal(){return this.setZone(Ni.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=hu(e,Ni.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||i){const s=e.offset(this.ts),o=this.toObject();[r]=ay(o,s,e)}return qd(this,{ts:r,zone:e})}else return xt.invalid(sy(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){const r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return qd(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ty(e,LR),i=!nn(t.weekYear)||!nn(t.weekNumber)||!nn(t.weekday),r=!nn(t.ordinal),s=!nn(t.year),o=!nn(t.month)||!nn(t.day),a=s||o,l=t.weekYear||t.weekNumber;if((a||r)&&l)throw new h0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new h0("Can't mix ordinal dates with month/day");let c;i?c=mR({...Uk(this.c),...t}):nn(t.ordinal)?(c={...this.toObject(),...t},nn(t.day)&&(c.day=Math.min(X1(c.year,c.month),c.day))):c=pR({...qk(this.c),...t});const[u,d]=ay(c,this.o,this.zone);return qd(this,{ts:u,o:d})}plus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e);return qd(this,CR(this,t))}minus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e).negate();return qd(this,CR(this,t))}startOf(e){if(!this.isValid)return this;const t={},i=dn.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break}if(i==="weeks"&&(t.weekday=1),i==="quarters"){const r=Math.ceil(this.month/3);t.month=(r-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Pr.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Kk}toLocaleString(e=U1,t={}){return this.isValid?Pr.create(this.loc.clone(t),e).formatDateTime(this):Kk}toLocaleParts(e={}){return this.isValid?Pr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=Yk(this,o);return a+="T",a+=wR(this,o,t,i,r,s),a}toISODate({format:e="extended"}={}){return this.isValid?Yk(this,e==="extended"):null}toISOWeekDate(){return ly(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:s=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+wR(this,o==="extended",t,e,i,s):null}toRFC2822(){return ly(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ly(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Yk(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(i&&(r+=" "),t?r+="z":e&&(r+="ZZ")),ly(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Kk}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return dn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...i},s=use(t).map(dn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,l=o?e:this,c=moe(a,l,s,r);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(xt.now(),e,t)}until(e){return this.isValid?di.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=i&&i<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||xt.fromObject({},{zone:this.zone}),i=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(r=e.unit,s=void 0),DR(t,this.plus(i),{...e,numeric:"always",units:r,unit:s})}toRelativeCalendar(e={}){return this.isValid?DR(e.base||xt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(xt.isDateTime))throw new wo("min requires all arguments be DateTimes");return N7(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(xt.isDateTime))throw new wo("max requires all arguments be DateTimes");return N7(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:r=null,numberingSystem:s=null}=i,o=Un.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return lR(o,e,t)}static fromStringExplain(e,t,i={}){return xt.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return U1}static get DATE_MED(){return s7}static get DATE_MED_WITH_WEEKDAY(){return jre}static get DATE_FULL(){return o7}static get DATE_HUGE(){return a7}static get TIME_SIMPLE(){return l7}static get TIME_WITH_SECONDS(){return c7}static get TIME_WITH_SHORT_OFFSET(){return u7}static get TIME_WITH_LONG_OFFSET(){return d7}static get TIME_24_SIMPLE(){return h7}static get TIME_24_WITH_SECONDS(){return f7}static get TIME_24_WITH_SHORT_OFFSET(){return g7}static get TIME_24_WITH_LONG_OFFSET(){return m7}static get DATETIME_SHORT(){return p7}static get DATETIME_SHORT_WITH_SECONDS(){return _7}static get DATETIME_MED(){return v7}static get DATETIME_MED_WITH_SECONDS(){return b7}static get DATETIME_MED_WITH_WEEKDAY(){return zre}static get DATETIME_FULL(){return y7}static get DATETIME_FULL_WITH_SECONDS(){return C7}static get DATETIME_HUGE(){return w7}static get DATETIME_HUGE_WITH_SECONDS(){return S7}}function C0(n){if(xt.isDateTime(n))return n;if(n&&n.valueOf&&jd(n.valueOf()))return xt.fromJSDate(n);if(n&&typeof n=="object")return xt.fromObject(n);throw new wo(`Unknown datetime argument: ${n}, of type ${typeof n}`)}function Roe(n){return typeof n=="string"&&(n=new Date(n)),n.toLocaleString()}function Foe(n){const e=new Date(n.value);return x.jsxs(R.Split,{hasGutter:!0,children:[x.jsx(R.SplitItem,{children:e.toLocaleDateString()}),x.jsx(R.SplitItem,{children:e.toLocaleTimeString()})]})}const Boe=un.span`
|
116
|
+
`,og=T.createContext([{},()=>null]);function ag(){const[n]=T.useContext(og);return n}function n7(n){const[e,t]=T.useState(()=>{const r=localStorage.getItem("theme"),s=r!=="dark"&&r!=="light"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":r;let o="comfortable";switch(localStorage.getItem("tableLayout")){case"compact":o="compact";break;case"comfortable":o="comfortable";break}let a="multiple";switch(localStorage.getItem("formColumns")){case"single":a="single";break;case"multiple":a="multiple";break}let l="vertical";switch(localStorage.getItem("formLayout")){case"vertical":l="vertical";break;case"horizontal":l="horizontal";break}const c={theme:r,activeTheme:s,tableLayout:o,formColumns:a,formLayout:l};return s==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark"),c}),i=T.useCallback(r=>{localStorage.setItem("theme",r.theme??"system"),localStorage.setItem("tableLayout",r.tableLayout??"comfortable"),localStorage.setItem("formColumns",r.formColumns??"multiple"),localStorage.setItem("formLayout",r.formLayout??"vertical");const s=r.theme!=="light"&&r.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":r.theme;r.activeTheme=s,t(r),s==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark")},[]);return x.jsx(og.Provider,{value:[e,i],children:n.children})}function Fre(n){const[e,t]=T.useState(!1),i=T.useCallback(()=>t(!0),[]),[r,s]=qa();return T.useEffect(()=>{s(e?x.jsx(i7,{open:e,setOpen:t}):void 0)},[e,s,n]),i}function i7(n){const e=()=>n.setOpen(!1),[t,i]=T.useContext(og),[r]=yi();return x.jsx(P.Modal,{title:"Settings","aria-label":"Settings",isOpen:n.open,onClose:e,variant:P.ModalVariant.medium,tabIndex:0,actions:[x.jsx(P.Button,{variant:"primary",onClick:e,children:r.closeText},"close")],hasNoBodyWrapper:!0,children:x.jsx(Rre,{children:x.jsxs(P.Form,{isHorizontal:t.formLayout==="horizontal",children:[x.jsxs(sg,{id:"theme",label:"Theme",value:t.theme??"system",onSelect:(s,o)=>i({...t,theme:o}),placeholderText:"Select theme",children:[x.jsx(P.SelectOption,{value:"system",children:"System default"}),x.jsx(P.SelectOption,{value:"light",children:"Light"}),x.jsx(P.SelectOption,{value:"dark",children:"Dark"})]}),x.jsxs(sg,{id:"table-layout",label:"Table Layout",value:t.tableLayout??"comfortable",onSelect:(s,o)=>i({...t,tableLayout:o}),placeholderText:"Select table layout",children:[x.jsx(P.SelectOption,{value:"comfortable",children:"Comfortable"}),x.jsx(P.SelectOption,{value:"compact",children:"Compact"})]}),x.jsxs(sg,{id:"form-columns",label:"Form Columns",value:t.formColumns??"multiple",onSelect:(s,o)=>i({...t,formColumns:o}),placeholderText:"Select form columns",children:[x.jsx(P.SelectOption,{value:"multiple",children:"Multiple columns"}),x.jsx(P.SelectOption,{value:"single",children:"Single column"})]}),x.jsxs(sg,{id:"form-layout",label:"Form Layout",value:t.formLayout??"vertical",onSelect:(s,o)=>i({...t,formLayout:o}),placeholderText:"Select form layout",children:[x.jsx(P.SelectOption,{value:"vertical",children:"Vertical labels"}),x.jsx(P.SelectOption,{value:"horizontal",children:"Horizontal labels"})]})]})})})}function Bre(n){const[e]=yi(),t=ag(),i=n.used/n.capacity;if(n.capacity===0)return x.jsx(x.Fragment,{});const r=i>=.8?"var(--pf-global--palette--red":i>=.5?"var(--pf-global--palette--gold":"var(--pf-global--palette--green",s=t.activeTheme==="light"?`${r}-100)`:`${r}-600)`,o=t.activeTheme==="light"?`${r}-400)`:`${r}-200)`,a=t.activeTheme==="light"?"#0002":"#fff2";return x.jsxs(P.Flex,{alignItems:{default:"alignItemsBaseline"},spaceItems:{default:"spaceItemsSm"},children:[n.capacity>0&&x.jsx(P.FlexItem,{children:x.jsx("div",{style:{width:18,height:25,background:s,marginBottom:-9,paddingTop:Math.max(0,Math.min(25,25*(n.capacity-n.used)/n.capacity)),borderRadius:2,border:`thin solid ${a}`},children:x.jsx("div",{style:{width:"100%",height:"100%",background:o,borderRadius:2}})})}),n.format?x.jsx(P.FlexItem,{children:n.format.replace("{used}",n.used.toString()).replace("{capacity}",n.capacity.toString())}):x.jsxs(P.FlexItem,{children:[n.used,` ${e.ofText} `,n.capacity]})]})}function Wre(n){return n.text?x.jsx(P.ClipboardCopy,{hoverTip:"Copy",clickTip:"Copied",variant:"inline-compact",style:{display:"flex",flexWrap:"nowrap",borderRadius:4},onCopy:()=>{navigator.clipboard.writeText(n.text??"")},children:x.jsx(P.Truncate,{content:n.text,style:{minWidth:n.minWidth}})}):x.jsx(x.Fragment,{})}class Hd extends Error{}class Vre extends Hd{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $re extends Hd{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Hre extends Hd{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class h0 extends Hd{}class r7 extends Hd{constructor(e){super(`Invalid unit ${e}`)}}class wo extends Hd{}class du extends Hd{constructor(){super("Zone is an abstract class")}}const Ke="numeric",ia="short",Us="long",U1={year:Ke,month:Ke,day:Ke},s7={year:Ke,month:ia,day:Ke},jre={year:Ke,month:ia,day:Ke,weekday:ia},o7={year:Ke,month:Us,day:Ke},a7={year:Ke,month:Us,day:Ke,weekday:Us},l7={hour:Ke,minute:Ke},c7={hour:Ke,minute:Ke,second:Ke},u7={hour:Ke,minute:Ke,second:Ke,timeZoneName:ia},d7={hour:Ke,minute:Ke,second:Ke,timeZoneName:Us},h7={hour:Ke,minute:Ke,hourCycle:"h23"},f7={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23"},g7={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23",timeZoneName:ia},m7={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23",timeZoneName:Us},p7={year:Ke,month:Ke,day:Ke,hour:Ke,minute:Ke},_7={year:Ke,month:Ke,day:Ke,hour:Ke,minute:Ke,second:Ke},v7={year:Ke,month:ia,day:Ke,hour:Ke,minute:Ke},b7={year:Ke,month:ia,day:Ke,hour:Ke,minute:Ke,second:Ke},zre={year:Ke,month:ia,day:Ke,weekday:ia,hour:Ke,minute:Ke},y7={year:Ke,month:Us,day:Ke,hour:Ke,minute:Ke,timeZoneName:ia},C7={year:Ke,month:Us,day:Ke,hour:Ke,minute:Ke,second:Ke,timeZoneName:ia},w7={year:Ke,month:Us,day:Ke,weekday:Us,hour:Ke,minute:Ke,timeZoneName:Us},S7={year:Ke,month:Us,day:Ke,weekday:Us,hour:Ke,minute:Ke,second:Ke,timeZoneName:Us};class f0{get type(){throw new du}get name(){throw new du}get ianaName(){return this.name}get isUniversal(){throw new du}offsetName(e,t){throw new du}formatOffset(e,t){throw new du}offset(e){throw new du}equals(e){throw new du}get isValid(){throw new du}}let Ak=null;class q1 extends f0{static get instance(){return Ak===null&&(Ak=new q1),Ak}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return M7(e,t,i)}formatOffset(e,t){return _0(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let K1={};function Ure(n){return K1[n]||(K1[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),K1[n]}const qre={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Kre(n,e){const t=n.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,r,s,o,a,l,c,u]=i;return[o,r,s,a,l,c,u]}function Gre(n,e){const t=n.formatToParts(e),i=[];for(let r=0;r<t.length;r++){const{type:s,value:o}=t[r],a=qre[s];s==="era"?i[a]=o:nn(a)||(i[a]=parseInt(o,10))}return i}let G1={};class Xl extends f0{static create(e){return G1[e]||(G1[e]=new Xl(e)),G1[e]}static resetCache(){G1={},K1={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Xl.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return M7(e,t,i,this.name)}formatOffset(e,t){return _0(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const i=Ure(this.name);let[r,s,o,a,l,c,u]=i.formatToParts?Gre(i,t):Kre(i,t);a==="BC"&&(r=-Math.abs(r)+1);const h=Q1({year:r,month:s,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let f=+t;const g=f%1e3;return f-=g>=0?g:1e3+g,(h-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let x7={};function Yre(n,e={}){const t=JSON.stringify([n,e]);let i=x7[t];return i||(i=new Intl.ListFormat(n,e),x7[t]=i),i}let Ok={};function Nk(n,e={}){const t=JSON.stringify([n,e]);let i=Ok[t];return i||(i=new Intl.DateTimeFormat(n,e),Ok[t]=i),i}let Mk={};function Zre(n,e={}){const t=JSON.stringify([n,e]);let i=Mk[t];return i||(i=new Intl.NumberFormat(n,e),Mk[t]=i),i}let Pk={};function Xre(n,e={}){const{base:t,...i}=e,r=JSON.stringify([n,i]);let s=Pk[r];return s||(s=new Intl.RelativeTimeFormat(n,e),Pk[r]=s),s}let g0=null;function Qre(){return g0||(g0=new Intl.DateTimeFormat().resolvedOptions().locale,g0)}function Jre(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const t=n.indexOf("-u-");if(t===-1)return[n];{let i,r;try{i=Nk(n).resolvedOptions(),r=n}catch{const l=n.substring(0,t);i=Nk(l).resolvedOptions(),r=l}const{numberingSystem:s,calendar:o}=i;return[r,s,o]}}function ese(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function tse(n){const e=[];for(let t=1;t<=12;t++){const i=xt.utc(2009,t,1);e.push(n(i))}return e}function nse(n){const e=[];for(let t=1;t<=7;t++){const i=xt.utc(2016,11,13+t);e.push(n(i))}return e}function Y1(n,e,t,i){const r=n.listingMode();return r==="error"?null:r==="en"?t(e):i(e)}function ise(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class rse{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:r,floor:s,...o}=i;if(!t||Object.keys(o).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=Zre(e,a)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):Bk(e,3);return Mi(t,this.padTo)}}}class sse{constructor(e,t,i){this.opts=i,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Xl.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=Nk(t,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:i}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ose{constructor(e,t,i){this.opts={style:"long",...i},!t&&O7()&&(this.rtf=Xre(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):Sse(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Un{static fromOpts(e){return Un.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,i,r=!1){const s=e||Ni.defaultLocale,o=s||(r?"en-US":Qre()),a=t||Ni.defaultNumberingSystem,l=i||Ni.defaultOutputCalendar;return new Un(o,a,l,s)}static resetCache(){g0=null,Ok={},Mk={},Pk={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i}={}){return Un.create(e,t,i)}constructor(e,t,i,r){const[s,o,a]=Jre(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=i||a||null,this.intl=ese(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ise(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Un.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Y1(this,e,F7,()=>{const i=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=tse(s=>this.extract(s,i,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1){return Y1(this,e,V7,()=>{const i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=nse(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Y1(this,void 0,()=>$7,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[xt.utc(2016,11,13,9),xt.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Y1(this,e,H7,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[xt.utc(-40,1,1),xt.utc(2017,1,1)].map(i=>this.extract(i,t,"era"))),this.eraCache[e]})}extract(e,t,i){const r=this.dtFormatter(e,t),s=r.formatToParts(),o=s.find(a=>a.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new rse(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new sse(e,this.intl,t)}relFormatter(e={}){return new ose(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Yre(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Rk=null;class Xr extends f0{static get utcInstance(){return Rk===null&&(Rk=new Xr(0)),Rk}static instance(e){return e===0?Xr.utcInstance:new Xr(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Xr(ey(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${_0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${_0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return _0(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ase extends f0{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function hu(n,e){if(nn(n)||n===null)return e;if(n instanceof f0)return n;if(lse(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?q1.instance:t==="utc"||t==="gmt"?Xr.utcInstance:Xr.parseSpecifier(t)||Xl.create(n)}else return jd(n)?Xr.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new ase(n)}let L7=()=>Date.now(),k7="system",D7=null,E7=null,T7=null,I7=60,A7,Ni=class{static get now(){return L7}static set now(e){L7=e}static set defaultZone(e){k7=e}static get defaultZone(){return hu(k7,q1.instance)}static get defaultLocale(){return D7}static set defaultLocale(e){D7=e}static get defaultNumberingSystem(){return E7}static set defaultNumberingSystem(e){E7=e}static get defaultOutputCalendar(){return T7}static set defaultOutputCalendar(e){T7=e}static get twoDigitCutoffYear(){return I7}static set twoDigitCutoffYear(e){I7=e%100}static get throwOnInvalid(){return A7}static set throwOnInvalid(e){A7=e}static resetCaches(){Un.resetCache(),Xl.resetCache()}};function nn(n){return typeof n>"u"}function jd(n){return typeof n=="number"}function Z1(n){return typeof n=="number"&&n%1===0}function lse(n){return typeof n=="string"}function cse(n){return Object.prototype.toString.call(n)==="[object Date]"}function O7(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function use(n){return Array.isArray(n)?n:[n]}function N7(n,e,t){if(n.length!==0)return n.reduce((i,r)=>{const s=[e(r),r];return i&&t(i[0],s[0])===i[0]?i:s},null)[1]}function dse(n,e){return e.reduce((t,i)=>(t[i]=n[i],t),{})}function lg(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function Ql(n,e,t){return Z1(n)&&n>=e&&n<=t}function hse(n,e){return n-e*Math.floor(n/e)}function Mi(n,e=2){const t=n<0;let i;return t?i="-"+(""+-n).padStart(e,"0"):i=(""+n).padStart(e,"0"),i}function fu(n){if(!(nn(n)||n===null||n===""))return parseInt(n,10)}function zd(n){if(!(nn(n)||n===null||n===""))return parseFloat(n)}function Fk(n){if(!(nn(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Bk(n,e,t=!1){const i=10**e;return(t?Math.trunc:Math.round)(n*i)/i}function m0(n){return n%4===0&&(n%100!==0||n%400===0)}function p0(n){return m0(n)?366:365}function X1(n,e){const t=hse(e-1,12)+1,i=n+(e-t)/12;return t===2?m0(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Q1(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function J1(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,t=n-1,i=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return e===4||i===3?53:52}function Wk(n){return n>99?n:n>Ni.twoDigitCutoffYear?1900+n:2e3+n}function M7(n,e,t,i=null){const r=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const o={timeZoneName:e,...s},a=new Intl.DateTimeFormat(t,o).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function ey(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const i=parseInt(e,10)||0,r=t<0||Object.is(t,-0)?-i:i;return t*60+r}function P7(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new wo(`Invalid unit value ${n}`);return e}function ty(n,e){const t={};for(const i in n)if(lg(n,i)){const r=n[i];if(r==null)continue;t[e(i)]=P7(r)}return t}function _0(n,e){const t=Math.trunc(Math.abs(n/60)),i=Math.trunc(Math.abs(n%60)),r=n>=0?"+":"-";switch(e){case"short":return`${r}${Mi(t,2)}:${Mi(i,2)}`;case"narrow":return`${r}${t}${i>0?`:${i}`:""}`;case"techie":return`${r}${Mi(t,2)}${Mi(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ny(n){return dse(n,["hour","minute","second","millisecond"])}const fse=["January","February","March","April","May","June","July","August","September","October","November","December"],R7=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gse=["J","F","M","A","M","J","J","A","S","O","N","D"];function F7(n){switch(n){case"narrow":return[...gse];case"short":return[...R7];case"long":return[...fse];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const B7=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],W7=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mse=["M","T","W","T","F","S","S"];function V7(n){switch(n){case"narrow":return[...mse];case"short":return[...W7];case"long":return[...B7];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const $7=["AM","PM"],pse=["Before Christ","Anno Domini"],_se=["BC","AD"],vse=["B","A"];function H7(n){switch(n){case"narrow":return[...vse];case"short":return[..._se];case"long":return[...pse];default:return null}}function bse(n){return $7[n.hour<12?0:1]}function yse(n,e){return V7(e)[n.weekday-1]}function Cse(n,e){return F7(e)[n.month-1]}function wse(n,e){return H7(e)[n.year<0?0:1]}function Sse(n,e,t="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(n)===-1;if(t==="auto"&&s){const d=n==="days";switch(e){case 1:return d?"tomorrow":`next ${r[n][0]}`;case-1:return d?"yesterday":`last ${r[n][0]}`;case 0:return d?"today":`this ${r[n][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=r[n],u=i?l?c[1]:c[2]||c[1]:l?r[n][0]:n;return o?`${a} ${u} ago`:`in ${a} ${u}`}function j7(n,e){let t="";for(const i of n)i.literal?t+=i.val:t+=e(i.val);return t}const xse={D:U1,DD:s7,DDD:o7,DDDD:a7,t:l7,tt:c7,ttt:u7,tttt:d7,T:h7,TT:f7,TTT:g7,TTTT:m7,f:p7,ff:v7,fff:y7,ffff:w7,F:_7,FF:b7,FFF:C7,FFFF:S7};class Pr{static create(e,t={}){return new Pr(e,t)}static parseFormat(e){let t=null,i="",r=!1;const s=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),t=null,i="",r=!r):r||a===t?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,t=a)}return i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return xse[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Mi(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(f,g)=>this.loc.extract(e,f,g),o=f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"",a=()=>i?bse(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(f,g)=>i?Cse(e,f):s(g?{month:f}:{month:f,day:"numeric"},"month"),c=(f,g)=>i?yse(e,f):s(g?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),u=f=>{const g=Pr.macroTokenToFormatOpts(f);return g?this.formatWithSystemDefault(e,g):f},d=f=>i?wse(e,f):s({era:f},"era"),h=f=>{switch(f){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(f)}};return j7(Pr.parseFormat(t),h)}formatDurationFromString(e,t){const i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{const u=i(c);return u?this.num(l.get(u),c.length):c},s=Pr.parseFormat(t),o=s.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=e.shiftTo(...o.map(i).filter(l=>l));return j7(s,r(a))}}class ra{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const z7=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function cg(...n){const e=n.reduce((t,i)=>t+i.source,"");return RegExp(`^${e}$`)}function ug(...n){return e=>n.reduce(([t,i,r],s)=>{const[o,a,l]=s(e,r);return[{...t,...o},a||i,l]},[{},null,1]).slice(0,2)}function dg(n,...e){if(n==null)return[null,null];for(const[t,i]of e){const r=t.exec(n);if(r)return i(r)}return[null,null]}function U7(...n){return(e,t)=>{const i={};let r;for(r=0;r<n.length;r++)i[n[r]]=fu(e[t+r]);return[i,null,t+r]}}const q7=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Lse=`(?:${q7.source}?(?:\\[(${z7.source})\\])?)?`,Vk=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,K7=RegExp(`${Vk.source}${Lse}`),$k=RegExp(`(?:T${K7.source})?`),kse=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Dse=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ese=/(\d{4})-?(\d{3})/,Tse=U7("weekYear","weekNumber","weekDay"),Ise=U7("year","ordinal"),Ase=/(\d{4})-(\d\d)-(\d\d)/,G7=RegExp(`${Vk.source} ?(?:${q7.source}|(${z7.source}))?`),Ose=RegExp(`(?: ${G7.source})?`);function hg(n,e,t){const i=n[e];return nn(i)?t:fu(i)}function Nse(n,e){return[{year:hg(n,e),month:hg(n,e+1,1),day:hg(n,e+2,1)},null,e+3]}function fg(n,e){return[{hours:hg(n,e,0),minutes:hg(n,e+1,0),seconds:hg(n,e+2,0),milliseconds:Fk(n[e+3])},null,e+4]}function v0(n,e){const t=!n[e]&&!n[e+1],i=ey(n[e+1],n[e+2]),r=t?null:Xr.instance(i);return[{},r,e+3]}function b0(n,e){const t=n[e]?Xl.create(n[e]):null;return[{},t,e+1]}const Mse=RegExp(`^T?${Vk.source}$`),Pse=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Rse(n){const[e,t,i,r,s,o,a,l,c]=n,u=e[0]==="-",d=l&&l[0]==="-",h=(f,g=!1)=>f!==void 0&&(g||f&&u)?-f:f;return[{years:h(zd(t)),months:h(zd(i)),weeks:h(zd(r)),days:h(zd(s)),hours:h(zd(o)),minutes:h(zd(a)),seconds:h(zd(l),l==="-0"),milliseconds:h(Fk(c),d)}]}const Fse={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Hk(n,e,t,i,r,s,o){const a={year:e.length===2?Wk(fu(e)):fu(e),month:R7.indexOf(t)+1,day:fu(i),hour:fu(r),minute:fu(s)};return o&&(a.second=fu(o)),n&&(a.weekday=n.length>3?B7.indexOf(n)+1:W7.indexOf(n)+1),a}const Bse=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Wse(n){const[,e,t,i,r,s,o,a,l,c,u,d]=n,h=Hk(e,r,i,t,s,o,a);let f;return l?f=Fse[l]:c?f=0:f=ey(u,d),[h,new Xr(f)]}function Vse(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const $se=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Hse=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jse=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Y7(n){const[,e,t,i,r,s,o,a]=n;return[Hk(e,r,i,t,s,o,a),Xr.utcInstance]}function zse(n){const[,e,t,i,r,s,o,a]=n;return[Hk(e,a,t,i,r,s,o),Xr.utcInstance]}const Use=cg(kse,$k),qse=cg(Dse,$k),Kse=cg(Ese,$k),Gse=cg(K7),Z7=ug(Nse,fg,v0,b0),Yse=ug(Tse,fg,v0,b0),Zse=ug(Ise,fg,v0,b0),Xse=ug(fg,v0,b0);function Qse(n){return dg(n,[Use,Z7],[qse,Yse],[Kse,Zse],[Gse,Xse])}function Jse(n){return dg(Vse(n),[Bse,Wse])}function eoe(n){return dg(n,[$se,Y7],[Hse,Y7],[jse,zse])}function toe(n){return dg(n,[Pse,Rse])}const noe=ug(fg);function ioe(n){return dg(n,[Mse,noe])}const roe=cg(Ase,Ose),soe=cg(G7),ooe=ug(fg,v0,b0);function aoe(n){return dg(n,[roe,Z7],[soe,ooe])}const loe="Invalid Duration",X7={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},coe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...X7},So=146097/400,gg=146097/4800,uoe={years:{quarters:4,months:12,weeks:So/7,days:So,hours:So*24,minutes:So*24*60,seconds:So*24*60*60,milliseconds:So*24*60*60*1e3},quarters:{months:3,weeks:So/28,days:So/4,hours:So*24/4,minutes:So*24*60/4,seconds:So*24*60*60/4,milliseconds:So*24*60*60*1e3/4},months:{weeks:gg/7,days:gg,hours:gg*24,minutes:gg*24*60,seconds:gg*24*60*60,milliseconds:gg*24*60*60*1e3},...X7},Ud=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Q7=Ud.slice(0).reverse();function gu(n,e,t=!1){const i={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new dn(i)}function J7(n){return Math.trunc(n*1e3)/1e3}function eR(n,e,t,i,r){const s=n[r][t],o=e[t]/s,a=Math.floor(o);i[r]=J7(i[r]+a),e[t]=J7(e[t]-a*s)}function doe(n,e){Q7.reduce((t,i)=>nn(e[i])?t:(t&&eR(n,e,t,e,i),i),null)}function hoe(n){const e={};for(const[t,i]of Object.entries(n))i!==0&&(e[t]=i);return e}class dn{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let i=t?uoe:coe;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Un.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,t){return dn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new wo(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new dn({values:ty(e,dn.normalizeUnit),loc:Un.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(jd(e))return dn.fromMillis(e);if(dn.isDuration(e))return e;if(typeof e=="object")return dn.fromObject(e);throw new wo(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=toe(e);return i?dn.fromObject(i,t):dn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=ioe(e);return i?dn.fromObject(i,t):dn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the Duration is invalid");const i=e instanceof ra?e:new ra(e,t);if(Ni.throwOnInvalid)throw new Hre(i);return new dn({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new r7(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?Pr.create(this.loc,i).formatDurationFromString(this,e):loe}toHuman(e={}){const t=Ud.map(i=>{const r=this.values[i];return nn(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(r)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Bk(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},xt.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var t;let e=this.values.milliseconds??0;for(let i of Q7.slice(1))(t=this.values)!=null&&t[i]&&(e+=this.values[i]*this.matrix[i].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e),i={};for(const r of Ud)(lg(t.values,r)||lg(this.values,r))&&(i[r]=t.get(r)+this.get(r));return gu(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=P7(e(this.values[i],i));return gu(this,{values:t},!0)}get(e){return this[dn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...ty(e,dn.normalizeUnit)};return gu(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:i};return gu(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(doe(this.matrix,e),gu(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=hoe(this.normalize().shiftToAll().toObject());return gu(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>dn.normalizeUnit(o));const t={},i={},r=this.toObject();let s;for(const o of Ud)if(e.indexOf(o)>=0){s=o;let a=0;for(const c in i)a+=this.matrix[c][o]*i[c],i[c]=0;jd(r[o])&&(a+=r[o]);const l=Math.trunc(a);t[o]=l,i[o]=(a*1e3-l*1e3)/1e3;for(const c in r)Ud.indexOf(c)>Ud.indexOf(o)&&eR(this.matrix,r,c,t,o)}else jd(r[o])&&(i[o]=r[o]);for(const o in i)i[o]!==0&&(t[s]+=o===s?i[o]:i[o]/this.matrix[s][o]);return gu(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return gu(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(i,r){return i===void 0||i===0?r===void 0||r===0:i===r}for(const i of Ud)if(!t(this.values[i],e.values[i]))return!1;return!0}}const mg="Invalid Interval";function foe(n,e){return!n||!n.isValid?di.invalid("missing or invalid start"):!e||!e.isValid?di.invalid("missing or invalid end"):e<n?di.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class di{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the Interval is invalid");const i=e instanceof ra?e:new ra(e,t);if(Ni.throwOnInvalid)throw new $re(i);return new di({invalid:i})}static fromDateTimes(e,t){const i=C0(e),r=C0(t),s=foe(i,r);return s??new di({start:i,end:r})}static after(e,t){const i=dn.fromDurationLike(t),r=C0(e);return di.fromDateTimes(r,r.plus(i))}static before(e,t){const i=dn.fromDurationLike(t),r=C0(e);return di.fromDateTimes(r.minus(i),r)}static fromISO(e,t){const[i,r]=(e||"").split("/",2);if(i&&r){let s,o;try{s=xt.fromISO(i,t),o=s.isValid}catch{o=!1}let a,l;try{a=xt.fromISO(r,t),l=a.isValid}catch{l=!1}if(o&&l)return di.fromDateTimes(s,a);if(o){const c=dn.fromISO(r,t);if(c.isValid)return di.after(s,c)}else if(l){const c=dn.fromISO(i,t);if(c.isValid)return di.before(a,c)}}return di.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const t=this.start.startOf(e),i=this.end.startOf(e);return Math.floor(i.diff(t,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?di.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(C0).filter(o=>this.contains(o)).sort(),i=[];let{s:r}=this,s=0;for(;r<this.e;){const o=t[s]||this.e,a=+o>+this.e?this.e:o;i.push(di.fromDateTimes(r,a)),r=a,s+=1}return i}splitBy(e){const t=dn.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:i}=this,r=1,s;const o=[];for(;i<this.e;){const a=this.start.plus(t.mapUnits(l=>l*r));s=+a>+this.e?this.e:a,o.push(di.fromDateTimes(i,s)),i=s,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return t>=i?null:di.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return di.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort((r,s)=>r.s-s.s).reduce(([r,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[r,s.union(o)]:[r.concat([s]),o]:[r,o],[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const r=[],s=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((l,c)=>l.time-c.time);for(const l of a)i+=l.type==="s"?1:-1,i===1?t=l.time:(t&&+t!=+l.time&&r.push(di.fromDateTimes(t,l.time)),t=null);return di.merge(r)}difference(...e){return di.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:mg}toLocaleString(e=U1,t={}){return this.isValid?Pr.create(this.s.loc.clone(t),e).formatInterval(this):mg}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:mg}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mg}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:mg}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:mg}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):dn.invalid(this.invalidReason)}mapEndpoints(e){return di.fromDateTimes(e(this.s),e(this.e))}}class iy{static hasDST(e=Ni.defaultZone){const t=xt.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Xl.isValidZone(e)}static normalizeZone(e){return hu(e,Ni.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Un.create(t,i,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Un.create(t,i,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null}={}){return(r||Un.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:r=null}={}){return(r||Un.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Un.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Un.create(t,null,"gregory").eras(e)}static features(){return{relative:O7()}}}function tR(n,e){const t=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=t(e)-t(n);return Math.floor(dn.fromMillis(i).as("days"))}function goe(n,e,t){const i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=tR(l,c);return(u-u%7)/7}],["days",tR]],r={},s=n;let o,a;for(const[l,c]of i)t.indexOf(l)>=0&&(o=l,r[l]=c(n,e),a=s.plus(r),a>e?(r[l]--,n=s.plus(r),n>e&&(a=n,r[l]--,n=s.plus(r))):n=a);return[n,r,a,o]}function moe(n,e,t,i){let[r,s,o,a]=goe(n,e,t);const l=e-r,c=t.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(s[a]=(s[a]||0)+l/(o-r)));const u=dn.fromObject(s,i);return c.length>0?dn.fromMillis(l,i).shiftTo(...c).plus(u):u}const jk={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},nR={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},poe=jk.hanidec.replace(/[\[|\]]/g,"").split("");function _oe(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t<n.length;t++){const i=n.charCodeAt(t);if(n[t].search(jk.hanidec)!==-1)e+=poe.indexOf(n[t]);else for(const r in nR){const[s,o]=nR[r];i>=s&&i<=o&&(e+=i-s)}}return parseInt(e,10)}else return e}function sa({numberingSystem:n},e=""){return new RegExp(`${jk[n||"latn"]}${e}`)}const voe="missing Intl.DateTimeFormat.formatToParts support";function _n(n,e=t=>t){return{regex:n,deser:([t])=>e(_oe(t))}}const iR=`[ ${String.fromCharCode(160)}]`,rR=new RegExp(iR,"g");function boe(n){return n.replace(/\./g,"\\.?").replace(rR,iR)}function sR(n){return n.replace(/\./g,"").replace(rR," ").toLowerCase()}function oa(n,e){return n===null?null:{regex:RegExp(n.map(boe).join("|")),deser:([t])=>n.findIndex(i=>sR(t)===sR(i))+e}}function oR(n,e){return{regex:n,deser:([,t,i])=>ey(t,i),groups:e}}function ry(n){return{regex:n,deser:([e])=>e}}function yoe(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Coe(n,e){const t=sa(e),i=sa(e,"{2}"),r=sa(e,"{3}"),s=sa(e,"{4}"),o=sa(e,"{6}"),a=sa(e,"{1,2}"),l=sa(e,"{1,3}"),c=sa(e,"{1,6}"),u=sa(e,"{1,9}"),d=sa(e,"{2,4}"),h=sa(e,"{4,6}"),f=p=>({regex:RegExp(yoe(p.val)),deser:([v])=>v,literal:!0}),m=(p=>{if(n.literal)return f(p);switch(p.val){case"G":return oa(e.eras("short"),0);case"GG":return oa(e.eras("long"),0);case"y":return _n(c);case"yy":return _n(d,Wk);case"yyyy":return _n(s);case"yyyyy":return _n(h);case"yyyyyy":return _n(o);case"M":return _n(a);case"MM":return _n(i);case"MMM":return oa(e.months("short",!0),1);case"MMMM":return oa(e.months("long",!0),1);case"L":return _n(a);case"LL":return _n(i);case"LLL":return oa(e.months("short",!1),1);case"LLLL":return oa(e.months("long",!1),1);case"d":return _n(a);case"dd":return _n(i);case"o":return _n(l);case"ooo":return _n(r);case"HH":return _n(i);case"H":return _n(a);case"hh":return _n(i);case"h":return _n(a);case"mm":return _n(i);case"m":return _n(a);case"q":return _n(a);case"qq":return _n(i);case"s":return _n(a);case"ss":return _n(i);case"S":return _n(l);case"SSS":return _n(r);case"u":return ry(u);case"uu":return ry(a);case"uuu":return _n(t);case"a":return oa(e.meridiems(),0);case"kkkk":return _n(s);case"kk":return _n(d,Wk);case"W":return _n(a);case"WW":return _n(i);case"E":case"c":return _n(t);case"EEE":return oa(e.weekdays("short",!1),1);case"EEEE":return oa(e.weekdays("long",!1),1);case"ccc":return oa(e.weekdays("short",!0),1);case"cccc":return oa(e.weekdays("long",!0),1);case"Z":case"ZZ":return oR(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return oR(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return ry(/[a-z_+-/]{1,256}?/i);case" ":return ry(/[^\S\n\r]/);default:return f(p)}})(n)||{invalidReason:voe};return m.token=n,m}const woe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Soe(n,e,t){const{type:i,value:r}=n;if(i==="literal"){const l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}const s=e[i];let o=i;i==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=t.hour12?"hour12":"hour24");let a=woe[o];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function xoe(n){return[`^${n.map(t=>t.regex).reduce((t,i)=>`${t}(${i.source})`,"")}$`,n]}function Loe(n,e,t){const i=n.match(e);if(i){const r={};let s=1;for(const o in t)if(lg(t,o)){const a=t[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(s,s+l))),s+=l}return[i,r]}else return[i,{}]}function koe(n){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,i;return nn(n.z)||(t=Xl.create(n.z)),nn(n.Z)||(t||(t=new Xr(n.Z)),i=n.Z),nn(n.q)||(n.M=(n.q-1)*3+1),nn(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),nn(n.u)||(n.S=Fk(n.u)),[Object.keys(n).reduce((s,o)=>{const a=e(o);return a&&(s[a]=n[o]),s},{}),t,i]}let zk=null;function Doe(){return zk||(zk=xt.fromMillis(1555555555555)),zk}function Eoe(n,e){if(n.literal)return n;const t=Pr.macroTokenToFormatOpts(n.val),i=cR(t,e);return i==null||i.includes(void 0)?n:i}function aR(n,e){return Array.prototype.concat(...n.map(t=>Eoe(t,e)))}function lR(n,e,t){const i=aR(Pr.parseFormat(t),n),r=i.map(o=>Coe(o,n)),s=r.find(o=>o.invalidReason);if(s)return{input:e,tokens:i,invalidReason:s.invalidReason};{const[o,a]=xoe(r),l=RegExp(o,"i"),[c,u]=Loe(e,l,a),[d,h,f]=u?koe(u):[null,null,void 0];if(lg(u,"a")&&lg(u,"H"))throw new h0("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:l,rawMatches:c,matches:u,result:d,zone:h,specificOffset:f}}}function Toe(n,e,t){const{result:i,zone:r,specificOffset:s,invalidReason:o}=lR(n,e,t);return[i,r,s,o]}function cR(n,e){if(!n)return null;const i=Pr.create(e,n).dtFormatter(Doe()),r=i.formatToParts(),s=i.resolvedOptions();return r.map(o=>Soe(o,n,s))}const uR=[0,31,59,90,120,151,181,212,243,273,304,334],dR=[0,31,60,91,121,152,182,213,244,274,305,335];function xo(n,e){return new ra("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function hR(n,e,t){const i=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return r===0?7:r}function fR(n,e,t){return t+(m0(n)?dR:uR)[e-1]}function gR(n,e){const t=m0(n)?dR:uR,i=t.findIndex(s=>s<e),r=e-t[i];return{month:i+1,day:r}}function Uk(n){const{year:e,month:t,day:i}=n,r=fR(e,t,i),s=hR(e,t,i);let o=Math.floor((r-s+10)/7),a;return o<1?(a=e-1,o=J1(a)):o>J1(e)?(a=e+1,o=1):a=e,{weekYear:a,weekNumber:o,weekday:s,...ny(n)}}function mR(n){const{weekYear:e,weekNumber:t,weekday:i}=n,r=hR(e,1,4),s=p0(e);let o=t*7+i-r-3,a;o<1?(a=e-1,o+=p0(a)):o>s?(a=e+1,o-=p0(e)):a=e;const{month:l,day:c}=gR(a,o);return{year:a,month:l,day:c,...ny(n)}}function qk(n){const{year:e,month:t,day:i}=n,r=fR(e,t,i);return{year:e,ordinal:r,...ny(n)}}function pR(n){const{year:e,ordinal:t}=n,{month:i,day:r}=gR(e,t);return{year:e,month:i,day:r,...ny(n)}}function Ioe(n){const e=Z1(n.weekYear),t=Ql(n.weekNumber,1,J1(n.weekYear)),i=Ql(n.weekday,1,7);return e?t?i?!1:xo("weekday",n.weekday):xo("week",n.week):xo("weekYear",n.weekYear)}function Aoe(n){const e=Z1(n.year),t=Ql(n.ordinal,1,p0(n.year));return e?t?!1:xo("ordinal",n.ordinal):xo("year",n.year)}function _R(n){const e=Z1(n.year),t=Ql(n.month,1,12),i=Ql(n.day,1,X1(n.year,n.month));return e?t?i?!1:xo("day",n.day):xo("month",n.month):xo("year",n.year)}function vR(n){const{hour:e,minute:t,second:i,millisecond:r}=n,s=Ql(e,0,23)||e===24&&t===0&&i===0&&r===0,o=Ql(t,0,59),a=Ql(i,0,59),l=Ql(r,0,999);return s?o?a?l?!1:xo("millisecond",r):xo("second",i):xo("minute",t):xo("hour",e)}const Kk="Invalid DateTime",bR=864e13;function sy(n){return new ra("unsupported zone",`the zone "${n.name}" is not supported`)}function Gk(n){return n.weekData===null&&(n.weekData=Uk(n.c)),n.weekData}function qd(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new xt({...t,...e,old:t})}function yR(n,e,t){let i=n-e*60*1e3;const r=t.offset(i);if(e===r)return[i,e];i-=(r-e)*60*1e3;const s=t.offset(i);return r===s?[i,r]:[n-Math.min(r,s)*60*1e3,Math.max(r,s)]}function oy(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function ay(n,e,t){return yR(Q1(n),e,t)}function CR(n,e){const t=n.o,i=n.c.year+Math.trunc(e.years),r=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...n.c,year:i,month:r,day:Math.min(n.c.day,X1(i,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=dn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Q1(s);let[l,c]=yR(a,t,n.zone);return o!==0&&(l+=o,c=n.zone.offset(l)),{ts:l,o:c}}function y0(n,e,t,i,r,s){const{setZone:o,zone:a}=t;if(n&&Object.keys(n).length!==0||e){const l=e||a,c=xt.fromObject(n,{...t,zone:l,specificOffset:s});return o?c:c.setZone(a)}else return xt.invalid(new ra("unparsable",`the input "${r}" can't be parsed as ${i}`))}function ly(n,e,t=!0){return n.isValid?Pr.create(Un.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function Yk(n,e){const t=n.c.year>9999||n.c.year<0;let i="";return t&&n.c.year>=0&&(i+="+"),i+=Mi(n.c.year,t?6:4),e?(i+="-",i+=Mi(n.c.month),i+="-",i+=Mi(n.c.day)):(i+=Mi(n.c.month),i+=Mi(n.c.day)),i}function wR(n,e,t,i,r,s){let o=Mi(n.c.hour);return e?(o+=":",o+=Mi(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(o+=":")):o+=Mi(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(o+=Mi(n.c.second),(n.c.millisecond!==0||!i)&&(o+=".",o+=Mi(n.c.millisecond,3))),r&&(n.isOffsetFixed&&n.offset===0&&!s?o+="Z":n.o<0?(o+="-",o+=Mi(Math.trunc(-n.o/60)),o+=":",o+=Mi(Math.trunc(-n.o%60))):(o+="+",o+=Mi(Math.trunc(n.o/60)),o+=":",o+=Mi(Math.trunc(n.o%60)))),s&&(o+="["+n.zone.ianaName+"]"),o}const SR={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ooe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Noe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},xR=["year","month","day","hour","minute","second","millisecond"],Moe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Poe=["year","ordinal","hour","minute","second","millisecond"];function LR(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new r7(n);return e}function kR(n,e){const t=hu(e.zone,Ni.defaultZone),i=Un.fromObject(e),r=Ni.now();let s,o;if(nn(n.year))s=r;else{for(const c of xR)nn(n[c])&&(n[c]=SR[c]);const a=_R(n)||vR(n);if(a)return xt.invalid(a);const l=t.offset(r);[s,o]=ay(n,l,t)}return new xt({ts:s,zone:t,loc:i,o})}function DR(n,e,t){const i=nn(t.round)?!0:t.round,r=(o,a)=>(o=Bk(o,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(o,a)),s=o=>t.calendary?e.hasSame(n,o)?0:e.startOf(o).diff(n.startOf(o),o).get(o):e.diff(n,o).get(o);if(t.unit)return r(s(t.unit),t.unit);for(const o of t.units){const a=s(o);if(Math.abs(a)>=1)return r(a,o)}return r(n>e?-0:0,t.units[t.units.length-1])}function ER(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}class xt{constructor(e){const t=e.zone||Ni.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new ra("invalid input"):null)||(t.isValid?null:sy(t));this.ts=nn(e.ts)?Ni.now():e.ts;let r=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const a=t.offset(this.ts);r=oy(this.ts,a),i=Number.isNaN(r.year)?new ra("invalid input"):null,r=i?null:r,s=i?null:a}this._zone=t,this.loc=e.loc||Un.create(),this.invalid=i,this.weekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new xt({})}static local(){const[e,t]=ER(arguments),[i,r,s,o,a,l,c]=t;return kR({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},e)}static utc(){const[e,t]=ER(arguments),[i,r,s,o,a,l,c]=t;return e.zone=Xr.utcInstance,kR({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,t={}){const i=cse(e)?e.valueOf():NaN;if(Number.isNaN(i))return xt.invalid("invalid input");const r=hu(t.zone,Ni.defaultZone);return r.isValid?new xt({ts:i,zone:r,loc:Un.fromObject(t)}):xt.invalid(sy(r))}static fromMillis(e,t={}){if(jd(e))return e<-bR||e>bR?xt.invalid("Timestamp out of range"):new xt({ts:e,zone:hu(t.zone,Ni.defaultZone),loc:Un.fromObject(t)});throw new wo(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(jd(e))return new xt({ts:e*1e3,zone:hu(t.zone,Ni.defaultZone),loc:Un.fromObject(t)});throw new wo("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=hu(t.zone,Ni.defaultZone);if(!i.isValid)return xt.invalid(sy(i));const r=Ni.now(),s=nn(t.specificOffset)?i.offset(r):t.specificOffset,o=ty(e,LR),a=!nn(o.ordinal),l=!nn(o.year),c=!nn(o.month)||!nn(o.day),u=l||c,d=o.weekYear||o.weekNumber,h=Un.fromObject(t);if((u||a)&&d)throw new h0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new h0("Can't mix ordinal dates with month/day");const f=d||o.weekday&&!u;let g,m,p=oy(r,s);f?(g=Moe,m=Ooe,p=Uk(p)):a?(g=Poe,m=Noe,p=qk(p)):(g=xR,m=SR);let v=!1;for(const D of g){const E=o[D];nn(E)?v?o[D]=m[D]:o[D]=p[D]:v=!0}const _=f?Ioe(o):a?Aoe(o):_R(o),b=_||vR(o);if(b)return xt.invalid(b);const y=f?mR(o):a?pR(o):o,[w,k]=ay(y,s,i),L=new xt({ts:w,zone:i,o:k,loc:h});return o.weekday&&u&&e.weekday!==L.weekday?xt.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${L.toISO()}`):L}static fromISO(e,t={}){const[i,r]=Qse(e);return y0(i,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,r]=Jse(e);return y0(i,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,r]=eoe(e);return y0(i,r,t,"HTTP",t)}static fromFormat(e,t,i={}){if(nn(e)||nn(t))throw new wo("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=i,o=Un.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=Toe(o,e,t);return u?xt.invalid(u):y0(a,l,i,`format ${t}`,e,c)}static fromString(e,t,i={}){return xt.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,r]=aoe(e);return y0(i,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new wo("need to specify a reason the DateTime is invalid");const i=e instanceof ra?e:new ra(e,t);if(Ni.throwOnInvalid)throw new Vre(i);return new xt({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=cR(e,Un.fromObject(t));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(e,t={}){return aR(Pr.parseFormat(e),Un.fromObject(t)).map(r=>r.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Gk(this).weekYear:NaN}get weekNumber(){return this.isValid?Gk(this).weekNumber:NaN}get weekday(){return this.isValid?Gk(this).weekday:NaN}get ordinal(){return this.isValid?qk(this.c).ordinal:NaN}get monthShort(){return this.isValid?iy.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?iy.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?iy.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?iy.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=Q1(this.c),r=this.zone.offset(i-e),s=this.zone.offset(i+e),o=this.zone.offset(i-r*t),a=this.zone.offset(i-s*t);if(o===a)return[this];const l=i-o*t,c=i-a*t,u=oy(l,o),d=oy(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[qd(this,{ts:l}),qd(this,{ts:c})]:[this]}get isInLeapYear(){return m0(this.year)}get daysInMonth(){return X1(this.year,this.month)}get daysInYear(){return this.isValid?p0(this.year):NaN}get weeksInWeekYear(){return this.isValid?J1(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:r}=Pr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Xr.instance(e),t)}toLocal(){return this.setZone(Ni.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=hu(e,Ni.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||i){const s=e.offset(this.ts),o=this.toObject();[r]=ay(o,s,e)}return qd(this,{ts:r,zone:e})}else return xt.invalid(sy(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){const r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return qd(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ty(e,LR),i=!nn(t.weekYear)||!nn(t.weekNumber)||!nn(t.weekday),r=!nn(t.ordinal),s=!nn(t.year),o=!nn(t.month)||!nn(t.day),a=s||o,l=t.weekYear||t.weekNumber;if((a||r)&&l)throw new h0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new h0("Can't mix ordinal dates with month/day");let c;i?c=mR({...Uk(this.c),...t}):nn(t.ordinal)?(c={...this.toObject(),...t},nn(t.day)&&(c.day=Math.min(X1(c.year,c.month),c.day))):c=pR({...qk(this.c),...t});const[u,d]=ay(c,this.o,this.zone);return qd(this,{ts:u,o:d})}plus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e);return qd(this,CR(this,t))}minus(e){if(!this.isValid)return this;const t=dn.fromDurationLike(e).negate();return qd(this,CR(this,t))}startOf(e){if(!this.isValid)return this;const t={},i=dn.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break}if(i==="weeks"&&(t.weekday=1),i==="quarters"){const r=Math.ceil(this.month/3);t.month=(r-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Pr.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Kk}toLocaleString(e=U1,t={}){return this.isValid?Pr.create(this.loc.clone(t),e).formatDateTime(this):Kk}toLocaleParts(e={}){return this.isValid?Pr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=Yk(this,o);return a+="T",a+=wR(this,o,t,i,r,s),a}toISODate({format:e="extended"}={}){return this.isValid?Yk(this,e==="extended"):null}toISOWeekDate(){return ly(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:s=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+wR(this,o==="extended",t,e,i,s):null}toRFC2822(){return ly(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ly(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Yk(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(i&&(r+=" "),t?r+="z":e&&(r+="ZZ")),ly(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Kk}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return dn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...i},s=use(t).map(dn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,l=o?e:this,c=moe(a,l,s,r);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(xt.now(),e,t)}until(e){return this.isValid?di.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=i&&i<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||xt.fromObject({},{zone:this.zone}),i=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(r=e.unit,s=void 0),DR(t,this.plus(i),{...e,numeric:"always",units:r,unit:s})}toRelativeCalendar(e={}){return this.isValid?DR(e.base||xt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(xt.isDateTime))throw new wo("min requires all arguments be DateTimes");return N7(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(xt.isDateTime))throw new wo("max requires all arguments be DateTimes");return N7(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:r=null,numberingSystem:s=null}=i,o=Un.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return lR(o,e,t)}static fromStringExplain(e,t,i={}){return xt.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return U1}static get DATE_MED(){return s7}static get DATE_MED_WITH_WEEKDAY(){return jre}static get DATE_FULL(){return o7}static get DATE_HUGE(){return a7}static get TIME_SIMPLE(){return l7}static get TIME_WITH_SECONDS(){return c7}static get TIME_WITH_SHORT_OFFSET(){return u7}static get TIME_WITH_LONG_OFFSET(){return d7}static get TIME_24_SIMPLE(){return h7}static get TIME_24_WITH_SECONDS(){return f7}static get TIME_24_WITH_SHORT_OFFSET(){return g7}static get TIME_24_WITH_LONG_OFFSET(){return m7}static get DATETIME_SHORT(){return p7}static get DATETIME_SHORT_WITH_SECONDS(){return _7}static get DATETIME_MED(){return v7}static get DATETIME_MED_WITH_SECONDS(){return b7}static get DATETIME_MED_WITH_WEEKDAY(){return zre}static get DATETIME_FULL(){return y7}static get DATETIME_FULL_WITH_SECONDS(){return C7}static get DATETIME_HUGE(){return w7}static get DATETIME_HUGE_WITH_SECONDS(){return S7}}function C0(n){if(xt.isDateTime(n))return n;if(n&&n.valueOf&&jd(n.valueOf()))return xt.fromJSDate(n);if(n&&typeof n=="object")return xt.fromObject(n);throw new wo(`Unknown datetime argument: ${n}, of type ${typeof n}`)}function Roe(n){return typeof n=="string"&&(n=new Date(n)),n.toLocaleString()}function Foe(n){const e=new Date(n.value);return x.jsxs(P.Split,{hasGutter:!0,children:[x.jsx(P.SplitItem,{children:e.toLocaleDateString()}),x.jsx(P.SplitItem,{children:e.toLocaleTimeString()})]})}const Boe=un.span`
|
117
117
|
white-space: nowrap;
|
118
|
-
`;function TR(n){const[e]=yi(),{author:t,onClick:i}=n,[r,s]=T.useState(null);return T.useEffect(()=>{if(n.format==="date-time"&&typeof n.value=="string"){s(Roe(n.value));return}else{typeof n.value=="number"?s(xt.fromMillis(n.value).toRelative()):n.value&&s(xt.fromISO(n.value).toRelative());const o=setInterval(()=>{typeof n.value=="number"?s(xt.fromMillis(n.value).toRelative()):n.value&&s(xt.fromISO(n.value).toRelative())},1e3);return()=>clearTimeout(o)}},[n.format,n.value]),n.value===void 0?x.jsx(x.Fragment,{}):x.jsxs(Boe,{className:"date-time",children:[r,t&&x.jsxs("span",{children:[" ",e.by," "]}),i?x.jsx(R.Button,{variant:"link",isInline:!0,onClick:i,children:t}):x.jsx("span",{children:t})]})}function Woe(n){const e=T.useMemo(()=>new Date(n.start??0).valueOf(),[n.start]),t=T.useMemo(()=>new Date(n.finish??0).valueOf(),[n.finish]),[i,r]=T.useState(Math.max(0,t-e.valueOf()));T.useEffect(()=>{const u=setInterval(()=>{e&&(n.finish?r(Math.max(0,t-e)):r(Math.max(0,Date.now()-e)))},1e3);return()=>clearTimeout(u)},[e,t,n.finish]);const s=Math.floor(i/1e3),o=Math.floor(s%60),a=Math.floor(s/60%60),l=Math.floor(s/60/60%24),c=Math.floor(s/60/60/24);return e?x.jsxs(R.Split,{children:[c!==0&&x.jsxs(R.SplitItem,{children:[c,"d"," "]}),l!==0&&x.jsxs(R.SplitItem,{children:[l,"h"," "]}),a!==0&&x.jsxs(R.SplitItem,{children:[a,"m"," "]}),x.jsxs(R.SplitItem,{children:[o,"s"]})]}):x.jsx(x.Fragment,{})}function IR(n){return x.jsx(R.LabelGroup,{numLabels:999,style:{flexWrap:"nowrap"},children:n.labels.map(e=>x.jsx(R.Label,{children:e},e))})}var AR=(n=>(n.Default="default",n.Green="green",n.Success="success",n.Blue="blue",n.Info="info",n.Red="red",n.Danger="danger",n.Yellow="yellow",n.Orange="orange",n.Warning="warning",n.Grey="grey",n.Disabled="disabled",n))(AR||{});function cy(n){switch(n){case"default":return;case"green":case"success":return Zk;case"red":case"danger":return Xk;case"yellow":case"orange":case"warning":return OR;case"blue":case"info":return Qk;case"grey":case"disabled":return Jk}}const Zk="var(--pf-global--success-color--100)",Xk="var(--pf-global--danger-color--100)",OR="var(--pf-global--warning-color--100)",Qk="var(--pf-global--info-color--100)",Jk="var(--pf-global--disabled-color--100)",Voe="var(--pf-global--link--Color)";var NR=(n=>(n.blue="blue",n.cyan="cyan",n.green="green",n.orange="orange",n.purple="purple",n.red="red",n.grey="grey",n))(NR||{});function w0(n){const e={};n.color&&(e.color=cy(n.color)),n.size&&(e.size=n.size);let t=0;if(n.padRight)switch(n.size){case"sm":t=6;break;case"md":t=6;break;case"lg":t=8;break;case"xl":t=12;break}let i=0;if(n.padLeft)switch(n.size){case"sm":i=6;break;case"md":i=6;break;case"lg":i=8;break;case"xl":i=12;break}const r=T.Children.toArray(n.children).map(s=>T.isValidElement(s)?T.cloneElement(s,e):s);return x.jsx("div",{style:{paddingRight:t,paddingLeft:i},children:r})}const MR=T.createContext(void 0);function $oe(){return T.useContext(MR)}function PR(n){return x.jsx(MR.Provider,{value:n.callback,children:n.children})}function uy(){const n=$oe();return T.useCallback(t=>{t!=null&&t.startsWith("http")?open(t,"_blank"):n?n(t??""):open(t,"_self")},[n])}function eD(n){const e=uy();return x.jsxs(R.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[n.icon&&((n==null?void 0:n.iconAlign)===void 0||n.iconAlign&&n.iconAlign!=="right")&&x.jsx(R.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:x.jsx(w0,{size:n.iconSize??"sm",color:n.iconColor??n.color,padRight:!0,children:n.icon})}),n.text&&x.jsx(R.FlexItem,{style:{maxWidth:"100%"},children:x.jsx("div",{style:{maxWidth:n.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:n.color?cy(n.color):void 0},children:!n.disableLinks&&(n.to||n.onClick)?x.jsx("a",{style:{color:n.color?cy(n.color):void 0},href:n.to,onClick:t=>{t.preventDefault(),n.onClick?n.onClick():e(n.to)},children:n.text}):x.jsx(x.Fragment,{children:n.text})})}),n.icon&&n.iconAlign==="right"&&x.jsx(R.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:x.jsx(w0,{size:n.iconSize??"sm",padLeft:!0,color:n.iconColor??n.color,children:n.icon})})]})}var Kd=[],Hoe=function(){return Kd.some(function(n){return n.activeTargets.length>0})},joe=function(){return Kd.some(function(n){return n.skippedTargets.length>0})},RR="ResizeObserver loop completed with undelivered notifications.",zoe=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:RR}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=RR),window.dispatchEvent(n)},S0;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(S0||(S0={}));var Gd=function(n){return Object.freeze(n)},Uoe=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,Gd(this)}return n}(),FR=function(){function n(e,t,i,r){return this.x=e,this.y=t,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Gd(this)}return n.prototype.toJSON=function(){var e=this,t=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,l=e.width,c=e.height;return{x:t,y:i,top:r,right:s,bottom:o,left:a,width:l,height:c}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),tD=function(n){return n instanceof SVGElement&&"getBBox"in n},BR=function(n){if(tD(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var r=n,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||n.getClientRects().length)},WR=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},qoe=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},x0=typeof window<"u"?window:{},dy=new WeakMap,VR=/auto|scroll/,Koe=/^tb|vertical/,Goe=/msie|trident/i.test(x0.navigator&&x0.navigator.userAgent),Ka=function(n){return parseFloat(n||"0")},pg=function(n,e,t){return n===void 0&&(n=0),e===void 0&&(e=0),t===void 0&&(t=!1),new Uoe((t?e:n)||0,(t?n:e)||0)},$R=Gd({devicePixelContentBoxSize:pg(),borderBoxSize:pg(),contentBoxSize:pg(),contentRect:new FR(0,0,0,0)}),HR=function(n,e){if(e===void 0&&(e=!1),dy.has(n)&&!e)return dy.get(n);if(BR(n))return dy.set(n,$R),$R;var t=getComputedStyle(n),i=tD(n)&&n.ownerSVGElement&&n.getBBox(),r=!Goe&&t.boxSizing==="border-box",s=Koe.test(t.writingMode||""),o=!i&&VR.test(t.overflowY||""),a=!i&&VR.test(t.overflowX||""),l=i?0:Ka(t.paddingTop),c=i?0:Ka(t.paddingRight),u=i?0:Ka(t.paddingBottom),d=i?0:Ka(t.paddingLeft),h=i?0:Ka(t.borderTopWidth),f=i?0:Ka(t.borderRightWidth),g=i?0:Ka(t.borderBottomWidth),m=i?0:Ka(t.borderLeftWidth),p=d+c,v=l+u,_=m+f,b=h+g,y=a?n.offsetHeight-b-n.clientHeight:0,w=o?n.offsetWidth-_-n.clientWidth:0,k=r?p+_:0,L=r?v+b:0,D=i?i.width:Ka(t.width)-k-w,E=i?i.height:Ka(t.height)-L-y,N=D+p+w+_,O=E+v+y+b,I=Gd({devicePixelContentBoxSize:pg(Math.round(D*devicePixelRatio),Math.round(E*devicePixelRatio),s),borderBoxSize:pg(N,O,s),contentBoxSize:pg(D,E,s),contentRect:new FR(d,l,D,E)});return dy.set(n,I),I},jR=function(n,e,t){var i=HR(n,t),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case S0.DEVICE_PIXEL_CONTENT_BOX:return o;case S0.BORDER_BOX:return r;default:return s}},Yoe=function(){function n(e){var t=HR(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Gd([t.borderBoxSize]),this.contentBoxSize=Gd([t.contentBoxSize]),this.devicePixelContentBoxSize=Gd([t.devicePixelContentBoxSize])}return n}(),zR=function(n){if(BR(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},Zoe=function(){var n=1/0,e=[];Kd.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(c){var u=new Yoe(c.target),d=zR(c.target);a.push(u),c.lastReportedSize=jR(c.target,c.observedBox),d<n&&(n=d)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var r=i[t];r()}return n},UR=function(n){Kd.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(zR(r.target)>n?t.activeTargets.push(r):t.skippedTargets.push(r))})})},Xoe=function(){var n=0;for(UR(n);Hoe();)n=Zoe(),UR(n);return joe()&&zoe(),n>0},nD,qR=[],Qoe=function(){return qR.splice(0).forEach(function(n){return n()})},Joe=function(n){if(!nD){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Qoe()}).observe(t,i),nD=function(){t.textContent="".concat(e?e--:e++)}}qR.push(n),nD()},eae=function(n){Joe(function(){requestAnimationFrame(n)})},hy=0,tae=function(){return!!hy},nae=250,iae={attributes:!0,characterData:!0,childList:!0,subtree:!0},KR=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],GR=function(n){return n===void 0&&(n=0),Date.now()+n},iD=!1,rae=function(){function n(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return n.prototype.run=function(e){var t=this;if(e===void 0&&(e=nae),!iD){iD=!0;var i=GR(e);eae(function(){var r=!1;try{r=Xoe()}finally{if(iD=!1,e=i-GR(),!tae())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,iae)};document.body?t():x0.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),KR.forEach(function(t){return x0.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),KR.forEach(function(t){return x0.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),rD=new rae,YR=function(n){!hy&&n>0&&rD.start(),hy+=n,!hy&&rD.stop()},sae=function(n){return!tD(n)&&!qoe(n)&&getComputedStyle(n).display==="inline"},oae=function(){function n(e,t){this.target=e,this.observedBox=t||S0.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=jR(this.target,this.observedBox,!0);return sae(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),aae=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),fy=new WeakMap,ZR=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},gy=function(){function n(){}return n.connect=function(e,t){var i=new aae(e,t);fy.set(e,i)},n.observe=function(e,t,i){var r=fy.get(e),s=r.observationTargets.length===0;ZR(r.observationTargets,t)<0&&(s&&Kd.push(r),r.observationTargets.push(new oae(t,i&&i.box)),YR(1),rD.schedule())},n.unobserve=function(e,t){var i=fy.get(e),r=ZR(i.observationTargets,t),s=i.observationTargets.length===1;r>=0&&(s&&Kd.splice(Kd.indexOf(i),1),i.observationTargets.splice(r,1),YR(-1))},n.disconnect=function(e){var t=this,i=fy.get(e);i.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),lae=function(){function n(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");gy.connect(this,e)}return n.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!WR(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gy.observe(this,e,t)},n.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!WR(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gy.unobserve(this,e)},n.prototype.disconnect=function(){gy.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const cae=T[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],uae=n=>{const e=ae.useRef(n);return ae.useEffect(()=>{e.current=n}),e},dae=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:lae;function hae(){}function _g(n,e){const t=gae(),i=uae(e);return cae(()=>{let r=!1;const s=n&&"current"in n?n.current:n;if(!s)return hae;function o(a,l){r||i.current(a,l)}return t.subscribe(s,o),()=>{r=!0,t.unsubscribe(s,o)}},[n,t,i]),t.observer}function fae(){let n=!1,e=[];const t=new Map,i=new dae((r,s)=>{e=e.concat(r);function o(){const a=new Set;for(let l=0;l<e.length;l++){if(a.has(e[l].target))continue;a.add(e[l].target);const c=t.get(e[l].target);c==null||c.forEach(u=>u(e[l],s))}e=[],n=!1}n||window.requestAnimationFrame(o),n=!0});return{observer:i,subscribe(r,s){var o;i.observe(r);const a=(o=t.get(r))!==null&&o!==void 0?o:[];a.push(s),t.set(r,a)},unsubscribe(r,s){var o;const a=(o=t.get(r))!==null&&o!==void 0?o:[];if(a.length===1){i.unobserve(r),t.delete(r);return}const l=a.indexOf(s);l!==-1&&a.splice(l,1),t.set(r,a)}}}let sD;const gae=()=>sD||(sD=fae()),mae=un.div`
|
118
|
+
`;function TR(n){const[e]=yi(),{author:t,onClick:i}=n,[r,s]=T.useState(null);return T.useEffect(()=>{if(n.format==="date-time"&&typeof n.value=="string"){s(Roe(n.value));return}else{typeof n.value=="number"?s(xt.fromMillis(n.value).toRelative()):n.value&&s(xt.fromISO(n.value).toRelative());const o=setInterval(()=>{typeof n.value=="number"?s(xt.fromMillis(n.value).toRelative()):n.value&&s(xt.fromISO(n.value).toRelative())},1e3);return()=>clearTimeout(o)}},[n.format,n.value]),n.value===void 0?x.jsx(x.Fragment,{}):x.jsxs(Boe,{className:"date-time",children:[r,t&&x.jsxs("span",{children:[" ",e.by," "]}),i?x.jsx(P.Button,{variant:"link",isInline:!0,onClick:i,children:t}):x.jsx("span",{children:t})]})}function Woe(n){const e=T.useMemo(()=>new Date(n.start??0).valueOf(),[n.start]),t=T.useMemo(()=>new Date(n.finish??0).valueOf(),[n.finish]),[i,r]=T.useState(Math.max(0,t-e.valueOf()));T.useEffect(()=>{const u=setInterval(()=>{e&&(n.finish?r(Math.max(0,t-e)):r(Math.max(0,Date.now()-e)))},1e3);return()=>clearTimeout(u)},[e,t,n.finish]);const s=Math.floor(i/1e3),o=Math.floor(s%60),a=Math.floor(s/60%60),l=Math.floor(s/60/60%24),c=Math.floor(s/60/60/24);return e?x.jsxs(P.Split,{children:[c!==0&&x.jsxs(P.SplitItem,{children:[c,"d"," "]}),l!==0&&x.jsxs(P.SplitItem,{children:[l,"h"," "]}),a!==0&&x.jsxs(P.SplitItem,{children:[a,"m"," "]}),x.jsxs(P.SplitItem,{children:[o,"s"]})]}):x.jsx(x.Fragment,{})}function IR(n){return x.jsx(P.LabelGroup,{numLabels:999,style:{flexWrap:"nowrap"},children:n.labels.map(e=>x.jsx(P.Label,{children:e},e))})}var AR=(n=>(n.Default="default",n.Green="green",n.Success="success",n.Blue="blue",n.Info="info",n.Red="red",n.Danger="danger",n.Yellow="yellow",n.Orange="orange",n.Warning="warning",n.Grey="grey",n.Disabled="disabled",n))(AR||{});function cy(n){switch(n){case"default":return;case"green":case"success":return Zk;case"red":case"danger":return Xk;case"yellow":case"orange":case"warning":return OR;case"blue":case"info":return Qk;case"grey":case"disabled":return Jk}}const Zk="var(--pf-global--success-color--100)",Xk="var(--pf-global--danger-color--100)",OR="var(--pf-global--warning-color--100)",Qk="var(--pf-global--info-color--100)",Jk="var(--pf-global--disabled-color--100)",Voe="var(--pf-global--link--Color)";var NR=(n=>(n.blue="blue",n.cyan="cyan",n.green="green",n.orange="orange",n.purple="purple",n.red="red",n.grey="grey",n))(NR||{});function w0(n){const e={};n.color&&(e.color=cy(n.color)),n.size&&(e.size=n.size);let t=0;if(n.padRight)switch(n.size){case"sm":t=6;break;case"md":t=6;break;case"lg":t=8;break;case"xl":t=12;break}let i=0;if(n.padLeft)switch(n.size){case"sm":i=6;break;case"md":i=6;break;case"lg":i=8;break;case"xl":i=12;break}const r=T.Children.toArray(n.children).map(s=>T.isValidElement(s)?T.cloneElement(s,e):s);return x.jsx("div",{style:{paddingRight:t,paddingLeft:i},children:r})}const MR=T.createContext(void 0);function $oe(){return T.useContext(MR)}function PR(n){return x.jsx(MR.Provider,{value:n.callback,children:n.children})}function uy(){const n=$oe();return T.useCallback(t=>{t!=null&&t.startsWith("http")?open(t,"_blank"):n?n(t??""):open(t,"_self")},[n])}function eD(n){const e=uy();return x.jsxs(P.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[n.icon&&((n==null?void 0:n.iconAlign)===void 0||n.iconAlign&&n.iconAlign!=="right")&&x.jsx(P.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:x.jsx(w0,{size:n.iconSize??"sm",color:n.iconColor??n.color,padRight:!0,children:n.icon})}),n.text&&x.jsx(P.FlexItem,{style:{maxWidth:"100%"},children:x.jsx("div",{style:{maxWidth:n.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:n.color?cy(n.color):void 0},children:!n.disableLinks&&(n.to||n.onClick)?x.jsx("a",{style:{color:n.color?cy(n.color):void 0},href:n.to,onClick:t=>{t.preventDefault(),n.onClick?n.onClick():e(n.to)},children:n.text}):x.jsx(x.Fragment,{children:n.text})})}),n.icon&&n.iconAlign==="right"&&x.jsx(P.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:x.jsx(w0,{size:n.iconSize??"sm",padLeft:!0,color:n.iconColor??n.color,children:n.icon})})]})}var Kd=[],Hoe=function(){return Kd.some(function(n){return n.activeTargets.length>0})},joe=function(){return Kd.some(function(n){return n.skippedTargets.length>0})},RR="ResizeObserver loop completed with undelivered notifications.",zoe=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:RR}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=RR),window.dispatchEvent(n)},S0;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(S0||(S0={}));var Gd=function(n){return Object.freeze(n)},Uoe=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,Gd(this)}return n}(),FR=function(){function n(e,t,i,r){return this.x=e,this.y=t,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Gd(this)}return n.prototype.toJSON=function(){var e=this,t=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,l=e.width,c=e.height;return{x:t,y:i,top:r,right:s,bottom:o,left:a,width:l,height:c}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),tD=function(n){return n instanceof SVGElement&&"getBBox"in n},BR=function(n){if(tD(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var r=n,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||n.getClientRects().length)},WR=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},qoe=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},x0=typeof window<"u"?window:{},dy=new WeakMap,VR=/auto|scroll/,Koe=/^tb|vertical/,Goe=/msie|trident/i.test(x0.navigator&&x0.navigator.userAgent),Ka=function(n){return parseFloat(n||"0")},pg=function(n,e,t){return n===void 0&&(n=0),e===void 0&&(e=0),t===void 0&&(t=!1),new Uoe((t?e:n)||0,(t?n:e)||0)},$R=Gd({devicePixelContentBoxSize:pg(),borderBoxSize:pg(),contentBoxSize:pg(),contentRect:new FR(0,0,0,0)}),HR=function(n,e){if(e===void 0&&(e=!1),dy.has(n)&&!e)return dy.get(n);if(BR(n))return dy.set(n,$R),$R;var t=getComputedStyle(n),i=tD(n)&&n.ownerSVGElement&&n.getBBox(),r=!Goe&&t.boxSizing==="border-box",s=Koe.test(t.writingMode||""),o=!i&&VR.test(t.overflowY||""),a=!i&&VR.test(t.overflowX||""),l=i?0:Ka(t.paddingTop),c=i?0:Ka(t.paddingRight),u=i?0:Ka(t.paddingBottom),d=i?0:Ka(t.paddingLeft),h=i?0:Ka(t.borderTopWidth),f=i?0:Ka(t.borderRightWidth),g=i?0:Ka(t.borderBottomWidth),m=i?0:Ka(t.borderLeftWidth),p=d+c,v=l+u,_=m+f,b=h+g,y=a?n.offsetHeight-b-n.clientHeight:0,w=o?n.offsetWidth-_-n.clientWidth:0,k=r?p+_:0,L=r?v+b:0,D=i?i.width:Ka(t.width)-k-w,E=i?i.height:Ka(t.height)-L-y,N=D+p+w+_,O=E+v+y+b,I=Gd({devicePixelContentBoxSize:pg(Math.round(D*devicePixelRatio),Math.round(E*devicePixelRatio),s),borderBoxSize:pg(N,O,s),contentBoxSize:pg(D,E,s),contentRect:new FR(d,l,D,E)});return dy.set(n,I),I},jR=function(n,e,t){var i=HR(n,t),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case S0.DEVICE_PIXEL_CONTENT_BOX:return o;case S0.BORDER_BOX:return r;default:return s}},Yoe=function(){function n(e){var t=HR(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Gd([t.borderBoxSize]),this.contentBoxSize=Gd([t.contentBoxSize]),this.devicePixelContentBoxSize=Gd([t.devicePixelContentBoxSize])}return n}(),zR=function(n){if(BR(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},Zoe=function(){var n=1/0,e=[];Kd.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(c){var u=new Yoe(c.target),d=zR(c.target);a.push(u),c.lastReportedSize=jR(c.target,c.observedBox),d<n&&(n=d)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var r=i[t];r()}return n},UR=function(n){Kd.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(zR(r.target)>n?t.activeTargets.push(r):t.skippedTargets.push(r))})})},Xoe=function(){var n=0;for(UR(n);Hoe();)n=Zoe(),UR(n);return joe()&&zoe(),n>0},nD,qR=[],Qoe=function(){return qR.splice(0).forEach(function(n){return n()})},Joe=function(n){if(!nD){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Qoe()}).observe(t,i),nD=function(){t.textContent="".concat(e?e--:e++)}}qR.push(n),nD()},eae=function(n){Joe(function(){requestAnimationFrame(n)})},hy=0,tae=function(){return!!hy},nae=250,iae={attributes:!0,characterData:!0,childList:!0,subtree:!0},KR=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],GR=function(n){return n===void 0&&(n=0),Date.now()+n},iD=!1,rae=function(){function n(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return n.prototype.run=function(e){var t=this;if(e===void 0&&(e=nae),!iD){iD=!0;var i=GR(e);eae(function(){var r=!1;try{r=Xoe()}finally{if(iD=!1,e=i-GR(),!tae())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,iae)};document.body?t():x0.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),KR.forEach(function(t){return x0.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),KR.forEach(function(t){return x0.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),rD=new rae,YR=function(n){!hy&&n>0&&rD.start(),hy+=n,!hy&&rD.stop()},sae=function(n){return!tD(n)&&!qoe(n)&&getComputedStyle(n).display==="inline"},oae=function(){function n(e,t){this.target=e,this.observedBox=t||S0.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=jR(this.target,this.observedBox,!0);return sae(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),aae=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),fy=new WeakMap,ZR=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},gy=function(){function n(){}return n.connect=function(e,t){var i=new aae(e,t);fy.set(e,i)},n.observe=function(e,t,i){var r=fy.get(e),s=r.observationTargets.length===0;ZR(r.observationTargets,t)<0&&(s&&Kd.push(r),r.observationTargets.push(new oae(t,i&&i.box)),YR(1),rD.schedule())},n.unobserve=function(e,t){var i=fy.get(e),r=ZR(i.observationTargets,t),s=i.observationTargets.length===1;r>=0&&(s&&Kd.splice(Kd.indexOf(i),1),i.observationTargets.splice(r,1),YR(-1))},n.disconnect=function(e){var t=this,i=fy.get(e);i.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),lae=function(){function n(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");gy.connect(this,e)}return n.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!WR(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gy.observe(this,e,t)},n.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!WR(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gy.unobserve(this,e)},n.prototype.disconnect=function(){gy.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const cae=T[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],uae=n=>{const e=ae.useRef(n);return ae.useEffect(()=>{e.current=n}),e},dae=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:lae;function hae(){}function _g(n,e){const t=gae(),i=uae(e);return cae(()=>{let r=!1;const s=n&&"current"in n?n.current:n;if(!s)return hae;function o(a,l){r||i.current(a,l)}return t.subscribe(s,o),()=>{r=!0,t.unsubscribe(s,o)}},[n,t,i]),t.observer}function fae(){let n=!1,e=[];const t=new Map,i=new dae((r,s)=>{e=e.concat(r);function o(){const a=new Set;for(let l=0;l<e.length;l++){if(a.has(e[l].target))continue;a.add(e[l].target);const c=t.get(e[l].target);c==null||c.forEach(u=>u(e[l],s))}e=[],n=!1}n||window.requestAnimationFrame(o),n=!0});return{observer:i,subscribe(r,s){var o;i.observe(r);const a=(o=t.get(r))!==null&&o!==void 0?o:[];a.push(s),t.set(r,a)},unsubscribe(r,s){var o;const a=(o=t.get(r))!==null&&o!==void 0?o:[];if(a.length===1){i.unobserve(r),t.delete(r);return}const l=a.indexOf(s);l!==-1&&a.splice(l,1),t.set(r,a)}}}let sD;const gae=()=>sD||(sD=fae()),mae=un.div`
|
119
119
|
width: 100%;
|
120
120
|
height: 100%;
|
121
121
|
flex-grow: 1;
|
@@ -124,7 +124,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
124
124
|
position: relative;
|
125
125
|
`,pae=un.div`
|
126
126
|
position: absolute;
|
127
|
-
`;function my(n){var s,o;const e=T.useRef(null),[t,i]=T.useState({width:((s=e.current)==null?void 0:s.clientWidth)??0,height:((o=e.current)==null?void 0:o.clientWidth)??0}),r=T.useCallback(()=>i(a=>{var c,u;const l={width:((c=e.current)==null?void 0:c.clientWidth)??0,height:((u=e.current)==null?void 0:u.clientHeight)??0};return l.width!==a.width||l.height!==a.height?l:a}),[]);return T.useEffect(()=>r(),[e,r]),_g(e,()=>r()),x.jsx(mae,{ref:e,className:n.className,children:x.jsx(pae,{children:n.children(t)})})}function py(n){const e=T.useRef(null),[t,i]=T.useState(0),[r,s]=T.useState(0),o=T.useCallback(()=>{if(e.current){i(Math.min(1,e.current.scrollTop/8));const d=e.current.scrollHeight-e.current.scrollTop-e.current.clientHeight-1;s(Math.max(0,Math.min(1,d/8)))}},[]);T.useEffect(()=>o(),[o,n.children]),_g(e,()=>{o()});const a=.2*t,l=.2*r,c=n.borderTop?"thin solid var(--pf-global--BorderColor--100)":"",u=n.borderBottom?"thin solid var(--pf-global--BorderColor--100)":"";return x.jsxs("div",{style:{...n.style,display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden",position:"relative"},children:[x.jsx("div",{ref:e,style:{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"auto",borderTop:c,borderBottom:u},onScroll:o,children:n.children}),a>0&&x.jsx("div",{style:{position:"absolute",top:0,height:"10px",width:"100%",background:`linear-gradient(rgba(0,0,0,${a}), rgba(0,0,0,0))`}}),l>0&&x.jsx("div",{style:{position:"absolute",bottom:0,height:"10px",width:"100%",background:`linear-gradient(rgba(0,0,0,0), rgba(0,0,0,${l}))`}})]})}const oD=T.createContext({columns:1}),XR=1662/24;function _ae(n){const e=T.useRef(null),[t,i]=T.useState(1);return T.useLayoutEffect(()=>{var r;i(Math.max(1,Math.floor((((r=e.current)==null?void 0:r.clientWidth)??0)/XR)))},[]),_g(e,r=>{i(Math.max(1,Math.floor((r.contentRect.width??0)/XR)))}),x.jsx(oD.Provider,{value:{columns:t},children:x.jsx(py,{children:x.jsx(R.PageSection,{isWidthLimited:!0,children:x.jsx("div",{ref:e,style:{display:"grid",gap:16,gridTemplateColumns:`repeat(${t}, 1fr)`},children:n.children})})})})}const QR=90;function _y(n){const e=T.useContext(oD);let t=8;switch(n.width){case"xxs":t=3;break;case"xs":t=4;break;case"sm":t=6;break;case"md":t=8;break;case"lg":t=12;break;case"xl":t=16;break;case"xxl":t=24;break}t>e.columns&&(t=e.columns);let i;switch(n.maxHeight){case"xs":i=2;break;case"sm":i=3;break;case"md":i=4;break;case"lg":i=6;break;case"xl":i=8;break;case"xxl":i=12;break}const r=i?QR*i+16*(i-1):void 0;let s=i;switch(n.height){case"xs":s=2;break;case"sm":s=3;break;case"md":s=4;break;case"lg":s=6;break;case"xl":s=8;break;case"xxl":s=12;break}const o=s?QR*s+16*(s-1):void 0;return x.jsxs(R.Card,{isFlat:!0,isRounded:!0,style:{transition:"box-shadow 0.25s",gridColumn:`span ${t}`,gridRow:s?`span ${s}`:void 0,minHeight:o,maxHeight:r,maxWidth:"100%",...n.style},isCompact:n.isCompact,children:[(n.title||n.linkText)&&x.jsx(R.CardHeader,{children:x.jsxs(R.Stack,{style:{width:"100%"},children:[x.jsxs(R.Flex,{fullWidth:{default:"fullWidth"},spaceItems:{default:"spaceItemsNone"},alignItems:{default:"alignItemsFlexStart"},justifyContent:{default:"justifyContentFlexEnd"},style:{columnGap:24,rowGap:8},children:[x.jsx(R.FlexItem,{grow:{default:"grow"},children:x.jsx(R.Flex,{spaceItems:{default:"spaceItemsNone"},children:x.jsx(R.FlexItem,{children:x.jsxs(R.Stack,{children:[n.supertitle&&x.jsx(R.Text,{component:"small",style:{opacity:.8},children:n.supertitle}),x.jsxs(R.Flex,{spaceItems:{default:"spaceItemsNone"},children:[x.jsx(R.Title,{headingLevel:"h3",size:"xl",children:n.title}),x.jsx(R.FlexItem,{alignSelf:{default:"alignSelfFlexStart"},children:x.jsx(rg,{help:n.help,title:n.helpTitle,docLink:n.helpDocLink})})]}),n.subtitle&&x.jsx(R.Text,{component:"small",style:{opacity:.8},children:n.subtitle})]})})})}),n.headerControls&&x.jsx(R.FlexItem,{children:n.headerControls}),x.jsx(R.FlexItem,{children:x.jsx(R.Text,{component:"small",children:n.linkText&&x.jsx(Qf.Link,{to:n.to,children:n.linkText})})})]}),n.description&&x.jsx("span",{style:{opacity:.8,paddingTop:6},children:n.description})]})}),n.children]})}function wn(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t}typeof SuppressedError=="function"&&SuppressedError;const JR={name:"--pf-chart-legend--Margin",value:16,var:"var(--pf-chart-legend--Margin, 16)"};var vae=Object.prototype;function bae(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||vae;return n===t}var L0=bae;function yae(n,e){return function(t){return n(e(t))}}var e8=yae,Cae=e8,wae=Cae(Object.keys,Object),Sae=wae,xae=L0,Lae=Sae,kae=Object.prototype,Dae=kae.hasOwnProperty;function Eae(n){if(!xae(n))return Lae(n);var e=[];for(var t in Object(n))Dae.call(n,t)&&t!="constructor"&&e.push(t);return e}var t8=Eae,Tae=typeof o0=="object"&&o0&&o0.Object===Object&&o0,n8=Tae,Iae=n8,Aae=typeof self=="object"&&self&&self.Object===Object&&self,Oae=Iae||Aae||Function("return this")(),aa=Oae,Nae=aa,Mae=Nae.Symbol,vg=Mae,i8=vg,r8=Object.prototype,Pae=r8.hasOwnProperty,Rae=r8.toString,k0=i8?i8.toStringTag:void 0;function Fae(n){var e=Pae.call(n,k0),t=n[k0];try{n[k0]=void 0;var i=!0}catch{}var r=Rae.call(n);return i&&(e?n[k0]=t:delete n[k0]),r}var Bae=Fae,Wae=Object.prototype,Vae=Wae.toString;function $ae(n){return Vae.call(n)}var Hae=$ae,s8=vg,jae=Bae,zae=Hae,Uae="[object Null]",qae="[object Undefined]",o8=s8?s8.toStringTag:void 0;function Kae(n){return n==null?n===void 0?qae:Uae:o8&&o8 in Object(n)?jae(n):zae(n)}var Jl=Kae;function Gae(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var qs=Gae;const D0=St(qs);var Yae=Jl,Zae=qs,Xae="[object AsyncFunction]",Qae="[object Function]",Jae="[object GeneratorFunction]",ele="[object Proxy]";function tle(n){if(!Zae(n))return!1;var e=Yae(n);return e==Qae||e==Jae||e==Xae||e==ele}var vy=tle;const zt=St(vy);var nle=aa,ile=nle["__core-js_shared__"],rle=ile,aD=rle,a8=function(){var n=/[^.]+$/.exec(aD&&aD.keys&&aD.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function sle(n){return!!a8&&a8 in n}var ole=sle,ale=Function.prototype,lle=ale.toString;function cle(n){if(n!=null){try{return lle.call(n)}catch{}try{return n+""}catch{}}return""}var l8=cle,ule=vy,dle=ole,hle=qs,fle=l8,gle=/[\\^$.*+?()[\]{}|]/g,mle=/^\[object .+?Constructor\]$/,ple=Function.prototype,_le=Object.prototype,vle=ple.toString,ble=_le.hasOwnProperty,yle=RegExp("^"+vle.call(ble).replace(gle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cle(n){if(!hle(n)||dle(n))return!1;var e=ule(n)?yle:mle;return e.test(fle(n))}var wle=Cle;function Sle(n,e){return n==null?void 0:n[e]}var xle=Sle,Lle=wle,kle=xle;function Dle(n,e){var t=kle(n,e);return Lle(t)?t:void 0}var Yd=Dle,Ele=Yd,Tle=aa,Ile=Ele(Tle,"DataView"),Ale=Ile,Ole=Yd,Nle=aa,Mle=Ole(Nle,"Map"),lD=Mle,Ple=Yd,Rle=aa,Fle=Ple(Rle,"Promise"),Ble=Fle,Wle=Yd,Vle=aa,$le=Wle(Vle,"Set"),c8=$le,Hle=Yd,jle=aa,zle=Hle(jle,"WeakMap"),Ule=zle,cD=Ale,uD=lD,dD=Ble,hD=c8,fD=Ule,u8=Jl,bg=l8,d8="[object Map]",qle="[object Object]",h8="[object Promise]",f8="[object Set]",g8="[object WeakMap]",m8="[object DataView]",Kle=bg(cD),Gle=bg(uD),Yle=bg(dD),Zle=bg(hD),Xle=bg(fD),Zd=u8;(cD&&Zd(new cD(new ArrayBuffer(1)))!=m8||uD&&Zd(new uD)!=d8||dD&&Zd(dD.resolve())!=h8||hD&&Zd(new hD)!=f8||fD&&Zd(new fD)!=g8)&&(Zd=function(n){var e=u8(n),t=e==qle?n.constructor:void 0,i=t?bg(t):"";if(i)switch(i){case Kle:return m8;case Gle:return d8;case Yle:return h8;case Zle:return f8;case Xle:return g8}return e});var p8=Zd;function Qle(n){return n!=null&&typeof n=="object"}var Ga=Qle,Jle=Jl,ece=Ga,tce="[object Arguments]";function nce(n){return ece(n)&&Jle(n)==tce}var ice=nce,_8=ice,rce=Ga,v8=Object.prototype,sce=v8.hasOwnProperty,oce=v8.propertyIsEnumerable,ace=_8(function(){return arguments}())?_8:function(n){return rce(n)&&sce.call(n,"callee")&&!oce.call(n,"callee")},E0=ace,lce=Array.isArray,Rr=lce,cce=9007199254740991;function uce(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=cce}var gD=uce,dce=vy,hce=gD;function fce(n){return n!=null&&hce(n.length)&&!dce(n)}var Ya=fce,by={exports:{}};function gce(){return!1}var mce=gce;by.exports,function(n,e){var t=aa,i=mce,r=e&&!e.nodeType&&e,s=r&&!0&&n&&!n.nodeType&&n,o=s&&s.exports===r,a=o?t.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||i;n.exports=c}(by,by.exports);var yy=by.exports,pce=Jl,_ce=gD,vce=Ga,bce="[object Arguments]",yce="[object Array]",Cce="[object Boolean]",wce="[object Date]",Sce="[object Error]",xce="[object Function]",Lce="[object Map]",kce="[object Number]",Dce="[object Object]",Ece="[object RegExp]",Tce="[object Set]",Ice="[object String]",Ace="[object WeakMap]",Oce="[object ArrayBuffer]",Nce="[object DataView]",Mce="[object Float32Array]",Pce="[object Float64Array]",Rce="[object Int8Array]",Fce="[object Int16Array]",Bce="[object Int32Array]",Wce="[object Uint8Array]",Vce="[object Uint8ClampedArray]",$ce="[object Uint16Array]",Hce="[object Uint32Array]",qn={};qn[Mce]=qn[Pce]=qn[Rce]=qn[Fce]=qn[Bce]=qn[Wce]=qn[Vce]=qn[$ce]=qn[Hce]=!0,qn[bce]=qn[yce]=qn[Oce]=qn[Cce]=qn[Nce]=qn[wce]=qn[Sce]=qn[xce]=qn[Lce]=qn[kce]=qn[Dce]=qn[Ece]=qn[Tce]=qn[Ice]=qn[Ace]=!1;function jce(n){return vce(n)&&_ce(n.length)&&!!qn[pce(n)]}var zce=jce;function Uce(n){return function(e){return n(e)}}var T0=Uce,Cy={exports:{}};Cy.exports,function(n,e){var t=n8,i=e&&!e.nodeType&&e,r=i&&!0&&n&&!n.nodeType&&n,s=r&&r.exports===i,o=s&&t.process,a=function(){try{var l=r&&r.require&&r.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=a}(Cy,Cy.exports);var I0=Cy.exports,qce=zce,Kce=T0,b8=I0,y8=b8&&b8.isTypedArray,Gce=y8?Kce(y8):qce,wy=Gce,Yce=t8,Zce=p8,Xce=E0,Qce=Rr,Jce=Ya,eue=yy,tue=L0,nue=wy,iue="[object Map]",rue="[object Set]",sue=Object.prototype,oue=sue.hasOwnProperty;function aue(n){if(n==null)return!0;if(Jce(n)&&(Qce(n)||typeof n=="string"||typeof n.splice=="function"||eue(n)||nue(n)||Xce(n)))return!n.length;var e=Zce(n);if(e==iue||e==rue)return!n.size;if(tue(n))return!Yce(n).length;for(var t in n)if(oue.call(n,t))return!1;return!0}var lue=aue;const ti=St(lue);var cue=Yd,uue=function(){try{var n=cue(Object,"defineProperty");return n({},"",{}),n}catch{}}(),C8=uue,w8=C8;function due(n,e,t){e=="__proto__"&&w8?w8(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var Sy=due;function hue(n,e){return n===e||n!==n&&e!==e}var Xd=hue,fue=Sy,gue=Xd,mue=Object.prototype,pue=mue.hasOwnProperty;function _ue(n,e,t){var i=n[e];(!(pue.call(n,e)&&gue(i,t))||t===void 0&&!(e in n))&&fue(n,e,t)}var mD=_ue,vue=mD,bue=Sy;function yue(n,e,t,i){var r=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=i?i(t[a],n[a],a,t,n):void 0;l===void 0&&(l=n[a]),r?bue(t,a,l):vue(t,a,l)}return t}var S8=yue;function Cue(n){return n}var Qd=Cue;const Jd=St(Qd);function wue(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var Sue=wue,xue=Sue,x8=Math.max;function Lue(n,e,t){return e=x8(e===void 0?n.length-1:e,0),function(){for(var i=arguments,r=-1,s=x8(i.length-e,0),o=Array(s);++r<s;)o[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=t(o),xue(n,this,a)}}var L8=Lue;function kue(n){return function(){return n}}var k8=kue,Due=k8,D8=C8,Eue=Qd,Tue=D8?function(n,e){return D8(n,"toString",{configurable:!0,enumerable:!1,value:Due(e),writable:!0})}:Eue,Iue=Tue,Aue=800,Oue=16,Nue=Date.now;function Mue(n){var e=0,t=0;return function(){var i=Nue(),r=Oue-(i-t);if(t=i,r>0){if(++e>=Aue)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Pue=Mue,Rue=Iue,Fue=Pue,Bue=Fue(Rue),E8=Bue,Wue=Qd,Vue=L8,$ue=E8;function Hue(n,e){return $ue(Vue(n,e,Wue),n+"")}var xy=Hue,jue=9007199254740991,zue=/^(?:0|[1-9]\d*)$/;function Uue(n,e){var t=typeof n;return e=e??jue,!!e&&(t=="number"||t!="symbol"&&zue.test(n))&&n>-1&&n%1==0&&n<e}var Ly=Uue,que=Xd,Kue=Ya,Gue=Ly,Yue=qs;function Zue(n,e,t){if(!Yue(t))return!1;var i=typeof e;return(i=="number"?Kue(t)&&Gue(e,t.length):i=="string"&&e in t)?que(t[e],n):!1}var ky=Zue,Xue=xy,Que=ky;function Jue(n){return Xue(function(e,t){var i=-1,r=t.length,s=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(s=n.length>3&&typeof s=="function"?(r--,s):void 0,o&&Que(t[0],t[1],o)&&(s=r<3?void 0:s,r=1),e=Object(e);++i<r;){var a=t[i];a&&n(e,a,i,s)}return e})}var T8=Jue;function ede(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var tde=ede,nde=tde,ide=E0,rde=Rr,sde=yy,ode=Ly,ade=wy,lde=Object.prototype,cde=lde.hasOwnProperty;function ude(n,e){var t=rde(n),i=!t&&ide(n),r=!t&&!i&&sde(n),s=!t&&!i&&!r&&ade(n),o=t||i||r||s,a=o?nde(n.length,String):[],l=a.length;for(var c in n)(e||cde.call(n,c))&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ode(c,l)))&&a.push(c);return a}var I8=ude,dde=I8,hde=t8,fde=Ya;function gde(n){return fde(n)?dde(n):hde(n)}var eh=gde;const Vn=St(eh);var mde=mD,pde=S8,_de=T8,vde=Ya,bde=L0,yde=eh,Cde=Object.prototype,wde=Cde.hasOwnProperty,Sde=_de(function(n,e){if(bde(e)||vde(e)){pde(e,yde(e),n);return}for(var t in e)wde.call(e,t)&&mde(n,t,e[t])}),xde=Sde;const oe=St(xde);function Lde(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var kde=Lde,Dde=qs,Ede=L0,Tde=kde,Ide=Object.prototype,Ade=Ide.hasOwnProperty;function Ode(n){if(!Dde(n))return Tde(n);var e=Ede(n),t=[];for(var i in n)i=="constructor"&&(e||!Ade.call(n,i))||t.push(i);return t}var Nde=Ode,Mde=I8,Pde=Nde,Rde=Ya;function Fde(n){return Rde(n)?Mde(n,!0):Pde(n)}var Dy=Fde,Bde=xy,Wde=Xd,Vde=ky,$de=Dy,A8=Object.prototype,Hde=A8.hasOwnProperty,jde=Bde(function(n,e){n=Object(n);var t=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&Vde(e[0],e[1],r)&&(i=1);++t<i;)for(var s=e[t],o=$de(s),a=-1,l=o.length;++a<l;){var c=o[a],u=n[c];(u===void 0||Wde(u,A8[c])&&!Hde.call(n,c))&&(n[c]=s[c])}return n}),zde=jde;const Ve=St(zde);var pD={exports:{}};/*
|
127
|
+
`;function my(n){var s,o;const e=T.useRef(null),[t,i]=T.useState({width:((s=e.current)==null?void 0:s.clientWidth)??0,height:((o=e.current)==null?void 0:o.clientWidth)??0}),r=T.useCallback(()=>i(a=>{var c,u;const l={width:((c=e.current)==null?void 0:c.clientWidth)??0,height:((u=e.current)==null?void 0:u.clientHeight)??0};return l.width!==a.width||l.height!==a.height?l:a}),[]);return T.useEffect(()=>r(),[e,r]),_g(e,()=>r()),x.jsx(mae,{ref:e,className:n.className,children:x.jsx(pae,{children:n.children(t)})})}function py(n){const e=T.useRef(null),[t,i]=T.useState(0),[r,s]=T.useState(0),o=T.useCallback(()=>{if(e.current){i(Math.min(1,e.current.scrollTop/8));const d=e.current.scrollHeight-e.current.scrollTop-e.current.clientHeight-1;s(Math.max(0,Math.min(1,d/8)))}},[]);T.useEffect(()=>o(),[o,n.children]),_g(e,()=>{o()});const a=.2*t,l=.2*r,c=n.borderTop?"thin solid var(--pf-global--BorderColor--100)":"",u=n.borderBottom?"thin solid var(--pf-global--BorderColor--100)":"";return x.jsxs("div",{style:{...n.style,display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden",position:"relative"},children:[x.jsx("div",{ref:e,style:{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"auto",borderTop:c,borderBottom:u},onScroll:o,children:n.children}),a>0&&x.jsx("div",{style:{position:"absolute",top:0,height:"10px",width:"100%",background:`linear-gradient(rgba(0,0,0,${a}), rgba(0,0,0,0))`}}),l>0&&x.jsx("div",{style:{position:"absolute",bottom:0,height:"10px",width:"100%",background:`linear-gradient(rgba(0,0,0,0), rgba(0,0,0,${l}))`}})]})}const oD=T.createContext({columns:1}),XR=1662/24;function _ae(n){const e=T.useRef(null),[t,i]=T.useState(1);return T.useLayoutEffect(()=>{var r;i(Math.max(1,Math.floor((((r=e.current)==null?void 0:r.clientWidth)??0)/XR)))},[]),_g(e,r=>{i(Math.max(1,Math.floor((r.contentRect.width??0)/XR)))}),x.jsx(oD.Provider,{value:{columns:t},children:x.jsx(py,{children:x.jsx(P.PageSection,{isWidthLimited:!0,children:x.jsx("div",{ref:e,style:{display:"grid",gap:16,gridTemplateColumns:`repeat(${t}, 1fr)`},children:n.children})})})})}const QR=90;function _y(n){const e=T.useContext(oD);let t=8;switch(n.width){case"xxs":t=3;break;case"xs":t=4;break;case"sm":t=6;break;case"md":t=8;break;case"lg":t=12;break;case"xl":t=16;break;case"xxl":t=24;break}t>e.columns&&(t=e.columns);let i;switch(n.maxHeight){case"xs":i=2;break;case"sm":i=3;break;case"md":i=4;break;case"lg":i=6;break;case"xl":i=8;break;case"xxl":i=12;break}const r=i?QR*i+16*(i-1):void 0;let s=i;switch(n.height){case"xs":s=2;break;case"sm":s=3;break;case"md":s=4;break;case"lg":s=6;break;case"xl":s=8;break;case"xxl":s=12;break}const o=s?QR*s+16*(s-1):void 0;return x.jsxs(P.Card,{isFlat:!0,isRounded:!0,style:{transition:"box-shadow 0.25s",gridColumn:`span ${t}`,gridRow:s?`span ${s}`:void 0,minHeight:o,maxHeight:r,maxWidth:"100%",...n.style},isCompact:n.isCompact,children:[(n.title||n.linkText)&&x.jsx(P.CardHeader,{children:x.jsxs(P.Stack,{style:{width:"100%"},children:[x.jsxs(P.Flex,{fullWidth:{default:"fullWidth"},spaceItems:{default:"spaceItemsNone"},alignItems:{default:"alignItemsFlexStart"},justifyContent:{default:"justifyContentFlexEnd"},style:{columnGap:24,rowGap:8},children:[x.jsx(P.FlexItem,{grow:{default:"grow"},children:x.jsx(P.Flex,{spaceItems:{default:"spaceItemsNone"},children:x.jsx(P.FlexItem,{children:x.jsxs(P.Stack,{children:[n.supertitle&&x.jsx(P.Text,{component:"small",style:{opacity:.8},children:n.supertitle}),x.jsxs(P.Flex,{spaceItems:{default:"spaceItemsNone"},children:[x.jsx(P.Title,{headingLevel:"h3",size:"xl",children:n.title}),x.jsx(P.FlexItem,{alignSelf:{default:"alignSelfFlexStart"},children:x.jsx(rg,{help:n.help,title:n.helpTitle,docLink:n.helpDocLink})})]}),n.subtitle&&x.jsx(P.Text,{component:"small",style:{opacity:.8},children:n.subtitle})]})})})}),n.headerControls&&x.jsx(P.FlexItem,{children:n.headerControls}),x.jsx(P.FlexItem,{children:x.jsx(P.Text,{component:"small",children:n.linkText&&x.jsx(Qf.Link,{to:n.to,children:n.linkText})})})]}),n.description&&x.jsx("span",{style:{opacity:.8,paddingTop:6},children:n.description})]})}),n.children]})}function wn(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t}typeof SuppressedError=="function"&&SuppressedError;const JR={name:"--pf-chart-legend--Margin",value:16,var:"var(--pf-chart-legend--Margin, 16)"};var vae=Object.prototype;function bae(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||vae;return n===t}var L0=bae;function yae(n,e){return function(t){return n(e(t))}}var e8=yae,Cae=e8,wae=Cae(Object.keys,Object),Sae=wae,xae=L0,Lae=Sae,kae=Object.prototype,Dae=kae.hasOwnProperty;function Eae(n){if(!xae(n))return Lae(n);var e=[];for(var t in Object(n))Dae.call(n,t)&&t!="constructor"&&e.push(t);return e}var t8=Eae,Tae=typeof o0=="object"&&o0&&o0.Object===Object&&o0,n8=Tae,Iae=n8,Aae=typeof self=="object"&&self&&self.Object===Object&&self,Oae=Iae||Aae||Function("return this")(),aa=Oae,Nae=aa,Mae=Nae.Symbol,vg=Mae,i8=vg,r8=Object.prototype,Pae=r8.hasOwnProperty,Rae=r8.toString,k0=i8?i8.toStringTag:void 0;function Fae(n){var e=Pae.call(n,k0),t=n[k0];try{n[k0]=void 0;var i=!0}catch{}var r=Rae.call(n);return i&&(e?n[k0]=t:delete n[k0]),r}var Bae=Fae,Wae=Object.prototype,Vae=Wae.toString;function $ae(n){return Vae.call(n)}var Hae=$ae,s8=vg,jae=Bae,zae=Hae,Uae="[object Null]",qae="[object Undefined]",o8=s8?s8.toStringTag:void 0;function Kae(n){return n==null?n===void 0?qae:Uae:o8&&o8 in Object(n)?jae(n):zae(n)}var Jl=Kae;function Gae(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var qs=Gae;const D0=St(qs);var Yae=Jl,Zae=qs,Xae="[object AsyncFunction]",Qae="[object Function]",Jae="[object GeneratorFunction]",ele="[object Proxy]";function tle(n){if(!Zae(n))return!1;var e=Yae(n);return e==Qae||e==Jae||e==Xae||e==ele}var vy=tle;const zt=St(vy);var nle=aa,ile=nle["__core-js_shared__"],rle=ile,aD=rle,a8=function(){var n=/[^.]+$/.exec(aD&&aD.keys&&aD.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function sle(n){return!!a8&&a8 in n}var ole=sle,ale=Function.prototype,lle=ale.toString;function cle(n){if(n!=null){try{return lle.call(n)}catch{}try{return n+""}catch{}}return""}var l8=cle,ule=vy,dle=ole,hle=qs,fle=l8,gle=/[\\^$.*+?()[\]{}|]/g,mle=/^\[object .+?Constructor\]$/,ple=Function.prototype,_le=Object.prototype,vle=ple.toString,ble=_le.hasOwnProperty,yle=RegExp("^"+vle.call(ble).replace(gle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cle(n){if(!hle(n)||dle(n))return!1;var e=ule(n)?yle:mle;return e.test(fle(n))}var wle=Cle;function Sle(n,e){return n==null?void 0:n[e]}var xle=Sle,Lle=wle,kle=xle;function Dle(n,e){var t=kle(n,e);return Lle(t)?t:void 0}var Yd=Dle,Ele=Yd,Tle=aa,Ile=Ele(Tle,"DataView"),Ale=Ile,Ole=Yd,Nle=aa,Mle=Ole(Nle,"Map"),lD=Mle,Ple=Yd,Rle=aa,Fle=Ple(Rle,"Promise"),Ble=Fle,Wle=Yd,Vle=aa,$le=Wle(Vle,"Set"),c8=$le,Hle=Yd,jle=aa,zle=Hle(jle,"WeakMap"),Ule=zle,cD=Ale,uD=lD,dD=Ble,hD=c8,fD=Ule,u8=Jl,bg=l8,d8="[object Map]",qle="[object Object]",h8="[object Promise]",f8="[object Set]",g8="[object WeakMap]",m8="[object DataView]",Kle=bg(cD),Gle=bg(uD),Yle=bg(dD),Zle=bg(hD),Xle=bg(fD),Zd=u8;(cD&&Zd(new cD(new ArrayBuffer(1)))!=m8||uD&&Zd(new uD)!=d8||dD&&Zd(dD.resolve())!=h8||hD&&Zd(new hD)!=f8||fD&&Zd(new fD)!=g8)&&(Zd=function(n){var e=u8(n),t=e==qle?n.constructor:void 0,i=t?bg(t):"";if(i)switch(i){case Kle:return m8;case Gle:return d8;case Yle:return h8;case Zle:return f8;case Xle:return g8}return e});var p8=Zd;function Qle(n){return n!=null&&typeof n=="object"}var Ga=Qle,Jle=Jl,ece=Ga,tce="[object Arguments]";function nce(n){return ece(n)&&Jle(n)==tce}var ice=nce,_8=ice,rce=Ga,v8=Object.prototype,sce=v8.hasOwnProperty,oce=v8.propertyIsEnumerable,ace=_8(function(){return arguments}())?_8:function(n){return rce(n)&&sce.call(n,"callee")&&!oce.call(n,"callee")},E0=ace,lce=Array.isArray,Rr=lce,cce=9007199254740991;function uce(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=cce}var gD=uce,dce=vy,hce=gD;function fce(n){return n!=null&&hce(n.length)&&!dce(n)}var Ya=fce,by={exports:{}};function gce(){return!1}var mce=gce;by.exports,function(n,e){var t=aa,i=mce,r=e&&!e.nodeType&&e,s=r&&!0&&n&&!n.nodeType&&n,o=s&&s.exports===r,a=o?t.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||i;n.exports=c}(by,by.exports);var yy=by.exports,pce=Jl,_ce=gD,vce=Ga,bce="[object Arguments]",yce="[object Array]",Cce="[object Boolean]",wce="[object Date]",Sce="[object Error]",xce="[object Function]",Lce="[object Map]",kce="[object Number]",Dce="[object Object]",Ece="[object RegExp]",Tce="[object Set]",Ice="[object String]",Ace="[object WeakMap]",Oce="[object ArrayBuffer]",Nce="[object DataView]",Mce="[object Float32Array]",Pce="[object Float64Array]",Rce="[object Int8Array]",Fce="[object Int16Array]",Bce="[object Int32Array]",Wce="[object Uint8Array]",Vce="[object Uint8ClampedArray]",$ce="[object Uint16Array]",Hce="[object Uint32Array]",qn={};qn[Mce]=qn[Pce]=qn[Rce]=qn[Fce]=qn[Bce]=qn[Wce]=qn[Vce]=qn[$ce]=qn[Hce]=!0,qn[bce]=qn[yce]=qn[Oce]=qn[Cce]=qn[Nce]=qn[wce]=qn[Sce]=qn[xce]=qn[Lce]=qn[kce]=qn[Dce]=qn[Ece]=qn[Tce]=qn[Ice]=qn[Ace]=!1;function jce(n){return vce(n)&&_ce(n.length)&&!!qn[pce(n)]}var zce=jce;function Uce(n){return function(e){return n(e)}}var T0=Uce,Cy={exports:{}};Cy.exports,function(n,e){var t=n8,i=e&&!e.nodeType&&e,r=i&&!0&&n&&!n.nodeType&&n,s=r&&r.exports===i,o=s&&t.process,a=function(){try{var l=r&&r.require&&r.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=a}(Cy,Cy.exports);var I0=Cy.exports,qce=zce,Kce=T0,b8=I0,y8=b8&&b8.isTypedArray,Gce=y8?Kce(y8):qce,wy=Gce,Yce=t8,Zce=p8,Xce=E0,Qce=Rr,Jce=Ya,eue=yy,tue=L0,nue=wy,iue="[object Map]",rue="[object Set]",sue=Object.prototype,oue=sue.hasOwnProperty;function aue(n){if(n==null)return!0;if(Jce(n)&&(Qce(n)||typeof n=="string"||typeof n.splice=="function"||eue(n)||nue(n)||Xce(n)))return!n.length;var e=Zce(n);if(e==iue||e==rue)return!n.size;if(tue(n))return!Yce(n).length;for(var t in n)if(oue.call(n,t))return!1;return!0}var lue=aue;const ti=St(lue);var cue=Yd,uue=function(){try{var n=cue(Object,"defineProperty");return n({},"",{}),n}catch{}}(),C8=uue,w8=C8;function due(n,e,t){e=="__proto__"&&w8?w8(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var Sy=due;function hue(n,e){return n===e||n!==n&&e!==e}var Xd=hue,fue=Sy,gue=Xd,mue=Object.prototype,pue=mue.hasOwnProperty;function _ue(n,e,t){var i=n[e];(!(pue.call(n,e)&&gue(i,t))||t===void 0&&!(e in n))&&fue(n,e,t)}var mD=_ue,vue=mD,bue=Sy;function yue(n,e,t,i){var r=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=i?i(t[a],n[a],a,t,n):void 0;l===void 0&&(l=n[a]),r?bue(t,a,l):vue(t,a,l)}return t}var S8=yue;function Cue(n){return n}var Qd=Cue;const Jd=St(Qd);function wue(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var Sue=wue,xue=Sue,x8=Math.max;function Lue(n,e,t){return e=x8(e===void 0?n.length-1:e,0),function(){for(var i=arguments,r=-1,s=x8(i.length-e,0),o=Array(s);++r<s;)o[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=t(o),xue(n,this,a)}}var L8=Lue;function kue(n){return function(){return n}}var k8=kue,Due=k8,D8=C8,Eue=Qd,Tue=D8?function(n,e){return D8(n,"toString",{configurable:!0,enumerable:!1,value:Due(e),writable:!0})}:Eue,Iue=Tue,Aue=800,Oue=16,Nue=Date.now;function Mue(n){var e=0,t=0;return function(){var i=Nue(),r=Oue-(i-t);if(t=i,r>0){if(++e>=Aue)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Pue=Mue,Rue=Iue,Fue=Pue,Bue=Fue(Rue),E8=Bue,Wue=Qd,Vue=L8,$ue=E8;function Hue(n,e){return $ue(Vue(n,e,Wue),n+"")}var xy=Hue,jue=9007199254740991,zue=/^(?:0|[1-9]\d*)$/;function Uue(n,e){var t=typeof n;return e=e??jue,!!e&&(t=="number"||t!="symbol"&&zue.test(n))&&n>-1&&n%1==0&&n<e}var Ly=Uue,que=Xd,Kue=Ya,Gue=Ly,Yue=qs;function Zue(n,e,t){if(!Yue(t))return!1;var i=typeof e;return(i=="number"?Kue(t)&&Gue(e,t.length):i=="string"&&e in t)?que(t[e],n):!1}var ky=Zue,Xue=xy,Que=ky;function Jue(n){return Xue(function(e,t){var i=-1,r=t.length,s=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(s=n.length>3&&typeof s=="function"?(r--,s):void 0,o&&Que(t[0],t[1],o)&&(s=r<3?void 0:s,r=1),e=Object(e);++i<r;){var a=t[i];a&&n(e,a,i,s)}return e})}var T8=Jue;function ede(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var tde=ede,nde=tde,ide=E0,rde=Rr,sde=yy,ode=Ly,ade=wy,lde=Object.prototype,cde=lde.hasOwnProperty;function ude(n,e){var t=rde(n),i=!t&&ide(n),r=!t&&!i&&sde(n),s=!t&&!i&&!r&&ade(n),o=t||i||r||s,a=o?nde(n.length,String):[],l=a.length;for(var c in n)(e||cde.call(n,c))&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ode(c,l)))&&a.push(c);return a}var I8=ude,dde=I8,hde=t8,fde=Ya;function gde(n){return fde(n)?dde(n):hde(n)}var eh=gde;const Vn=St(eh);var mde=mD,pde=S8,_de=T8,vde=Ya,bde=L0,yde=eh,Cde=Object.prototype,wde=Cde.hasOwnProperty,Sde=_de(function(n,e){if(bde(e)||vde(e)){pde(e,yde(e),n);return}for(var t in e)wde.call(e,t)&&mde(n,t,e[t])}),xde=Sde;const oe=St(xde);function Lde(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var kde=Lde,Dde=qs,Ede=L0,Tde=kde,Ide=Object.prototype,Ade=Ide.hasOwnProperty;function Ode(n){if(!Dde(n))return Tde(n);var e=Ede(n),t=[];for(var i in n)i=="constructor"&&(e||!Ade.call(n,i))||t.push(i);return t}var Nde=Ode,Mde=I8,Pde=Nde,Rde=Ya;function Fde(n){return Rde(n)?Mde(n,!0):Pde(n)}var Dy=Fde,Bde=xy,Wde=Xd,Vde=ky,$de=Dy,A8=Object.prototype,Hde=A8.hasOwnProperty,jde=Bde(function(n,e){n=Object(n);var t=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&Vde(e[0],e[1],r)&&(i=1);++t<i;)for(var s=e[t],o=$de(s),a=-1,l=o.length;++a<l;){var c=o[a],u=n[c];(u===void 0||Wde(u,A8[c])&&!Hde.call(n,c))&&(n[c]=s[c])}return n}),zde=jde;const Ve=St(zde);var pD={exports:{}};/*
|
128
128
|
object-assign
|
129
129
|
(c) Sindre Sorhus
|
130
130
|
@license MIT
|
@@ -222,7 +222,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
222
222
|
L `).concat(h+a*t,", ").concat(m,`
|
223
223
|
A `).concat(_," ").concat(h,", ").concat(m+t,`
|
224
224
|
z`)},$Te=function(n){var e=n.orientation||"top";return e==="left"||e==="right"?VTe(n):WTe(n)},HTe=function(n){var e=je(n.id,n),t=$n(n.style,n);return oe({},n,{id:e,style:t})},pT=function(n){n=HTe(n);var e=da(n);return T.cloneElement(n.pathComponent,f_(f_(f_({},n.events),e),{},{style:n.style,d:$Te(n),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath}))};pT.propTypes=f_(f_({},yr.primitiveProps),{},{center:S.shape({x:S.number,y:S.number}),cornerRadius:S.number,datum:S.object,dx:S.number,dy:S.number,height:S.number,orientation:S.oneOf(["top","bottom","left","right"]),pathComponent:S.element,pointerLength:S.number,pointerWidth:S.number,width:S.number,x:S.number,y:S.number}),pT.defaultProps={pathComponent:T.createElement(dh,null),role:"presentation",shapeRendering:"auto"};const jTe=pT;function zTe(n){return GTe(n)||KTe(n)||qTe(n)||UTe()}function UTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
225
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qTe(n,e){if(n){if(typeof n=="string")return _T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _T(n,e)}}function KTe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function GTe(n){if(Array.isArray(n))return _T(n)}function _T(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function YTe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Y$(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function ZTe(n,e,t){return e&&Y$(n.prototype,e),t&&Y$(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function XTe(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&vT(n,e)}function vT(n,e){return vT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},vT(n,e)}function QTe(n){var e=tIe();return function(){var i=mw(n),r;if(e){var s=mw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return JTe(this,r)}}function JTe(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eIe(n)}function eIe(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function tIe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mw(n){return mw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mw(n)}var nIe={cornerRadius:5,pointerLength:10,pointerWidth:10},xu=function(n){XTe(t,n);var e=QTe(t);function t(i){var r;return YTe(this,t),r=e.call(this,i),r.id=i.id===void 0?Zy("tooltip-"):i.id,r}return ZTe(t,[{key:"getDefaultOrientation",value:function(r){var s=r.datum,o=r.horizontal,a=r.polar;if(!a){var l=o?"right":"top",c=o?"left":"bottom";return s&&s.y<0?c:l}return this.getPolarOrientation(r,s)}},{key:"getPolarOrientation",value:function(r,s){var o=n_(r,s),a=r.labelPlacement||"vertical";return a===" vertical"?this.getVerticalOrientations(o):a==="parallel"?o<90||o>270?"right":"left":o>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(r){return r<45||r>315?"right":r>=45&&r<=135?"top":r>135&&r<225?"left":"bottom"}},{key:"getStyles",value:function(r){var s=r.theme||hc.grayscale,o=s&&s.tooltip&&s.tooltip.style?s.tooltip.style:{},a=Array.isArray(r.style)?r.style.map(function(h){return Ve({},h,o)}):Ve({},r.style,o),l=s&&s.tooltip&&s.tooltip.flyoutStyle?s.tooltip.flyoutStyle:{},c=r.flyoutStyle?Ve({},r.flyoutStyle,l):l,u=Array.isArray(a)?a.map(function(h){return $n(h,r)}):$n(a,r),d=$n(c,oe({},r,{style:u}));return{style:u,flyoutStyle:d}}},{key:"getEvaluatedProps",value:function(r){var s=r.cornerRadius,o=r.centerOffset,a=r.dx,l=r.dy,c=je(r.active,r),u=je(r.text,oe({},r,{active:c})),d=this.getStyles(oe({},r,{active:c,text:u})),h=d.style,f=d.flyoutStyle,g=je(r.orientation,oe({},r,{active:c,text:u,style:h,flyoutStyle:f}))||this.getDefaultOrientation(r),m=je(r.flyoutPadding,oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g}))||this.getLabelPadding(h),p=Ci({padding:m}),v=je(r.pointerWidth,oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g})),_=je(r.pointerLength,oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g})),b=ch(u,h),y=this.getDimensions(oe({},r,{style:h,flyoutStyle:f,active:c,text:u,orientation:g,flyoutPadding:p,pointerWidth:v,pointerLength:_}),b),w=y.flyoutHeight,k=y.flyoutWidth,L=oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g,flyoutHeight:w,flyoutWidth:k,flyoutPadding:p,pointerWidth:v,pointerLength:_}),D=hi(o)&&o.x!==void 0?je(o.x,L):0,E=hi(o)&&o.y!==void 0?je(o.y,L):0;return oe({},L,{centerOffset:{x:D,y:E},dx:a!==void 0?je(a,L):0,dy:l!==void 0?je(l,L):0,cornerRadius:je(s,L)})}},{key:"getCalculatedValues",value:function(r){var s=r.style,o=r.text,a=r.flyoutStyle,l=r.flyoutHeight,c=r.flyoutWidth,u=ch(o,s),d={height:l,width:c},h=this.getFlyoutCenter(r,d),f=this.getTransform(r);return{style:s,flyoutStyle:a,labelSize:u,flyoutDimensions:d,flyoutCenter:h,transform:f}}},{key:"getTransform",value:function(r){var s=r.x,o=r.y,a=r.style,l=a||{},c=l.angle||r.angle||this.getDefaultAngle(r);return c?"rotate(".concat(c," ").concat(s," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(r){var s=r.polar,o=r.labelPlacement,a=r.orientation,l=r.datum;if(!s||!o||o==="vertical")return 0;var c=n_(r,l),u=c>90&&c<180||c>270?1:-1,d=o==="perpendicular"?0:90,h;return c===0||c===180?h=a==="top"&&c===180?270:90:c>0&&c<180?h=90-c:c>180&&c<360&&(h=270-c),h+u*d}},{key:"constrainTooltip",value:function(r,s,o){var a=r.x,l=r.y,c=o.width,u=o.height,d={x:[0,s.width],y:[0,s.height]},h={x:[a-c/2,a+c/2],y:[l-u/2,l+u/2]},f={x:[h.x[0]<d.x[0]?d.x[0]-h.x[0]:0,h.x[1]>d.x[1]?h.x[1]-d.x[1]:0],y:[h.y[0]<d.y[0]?d.y[0]-h.y[0]:0,h.y[1]>d.y[1]?h.y[1]-d.y[1]:0]};return{x:Math.round(a+f.x[0]-f.x[1]),y:Math.round(l+f.y[0]-f.y[1])}}},{key:"getFlyoutCenter",value:function(r,s){var o=r.x,a=r.y,l=r.dx,c=r.dy,u=r.pointerLength,d=r.orientation,h=r.constrainToVisibleArea,f=r.centerOffset,g=s.height,m=s.width,p=d==="left"?-1:1,v=d==="bottom"?-1:1,_={x:d==="left"||d==="right"?o+p*(u+m/2+p*l):o+l,y:d==="top"||d==="bottom"?a-v*(u+g/2-v*c):a+c},b={x:hi(r.center)&&r.center.x!==void 0?r.center.x:_.x,y:hi(r.center)&&r.center.y!==void 0?r.center.y:_.y},y={x:b.x+f.x,y:b.y+f.y};return h?this.constrainTooltip(y,r,s):y}},{key:"getLabelPadding",value:function(r){if(!r)return 0;var s=Array.isArray(r)?r.map(function(o){return o.padding}):[r.padding];return Math.max.apply(Math,zTe(s).concat([0]))}},{key:"getDimensions",value:function(r,s){var o=r.orientation,a=r.pointerLength,l=r.pointerWidth,c=r.flyoutHeight,u=r.flyoutWidth,d=r.flyoutPadding,h=je(r.cornerRadius,r),f=function(){var m=s.height+d.top+d.bottom,p=o==="top"||o==="bottom"?2*h:2*h+l;return Math.max(p,m)},g=function(){var m=s.width+d.left+d.right,p=o==="left"||o==="right"?2*h+a:2*h;return Math.max(p,m)};return{flyoutHeight:c?je(c,r):f(),flyoutWidth:u?je(u,r):g()}}},{key:"getLabelProps",value:function(r,s){var o=s.flyoutCenter,a=s.style,l=s.labelSize,c=s.dy,u=c===void 0?0:c,d=s.dx,h=d===void 0?0:d,f=r.text,g=r.datum,m=r.activePoints,p=r.labelComponent,v=r.index,_=r.flyoutPadding,b=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle",y=function(){if(!b||b==="middle")return o.x;var w=b==="end"?-1:1;return o.x-w*(l.width/2)};return Ve({},p.props,{key:"".concat(this.id,"-label-").concat(v),text:f,datum:g,activePoints:m,textAnchor:b,dy:u,dx:h,style:a,x:y()+(_.left-_.right)/2,y:o.y+(_.top-_.bottom)/2,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(r,s,o){var a={bottom:s.y+o.height/2,top:s.y-o.height/2,left:s.x-o.width/2,right:s.x+o.width/2},l=[{side:"top",val:a.top>r.y?a.top-r.y:-1},{side:"bottom",val:a.bottom<r.y?r.y-a.bottom:-1},{side:"right",val:a.right<r.x?r.x-a.right:-1},{side:"left",val:a.left>r.x?a.left-r.x:-1}];return Lg(l,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(r,s){var o=s.flyoutDimensions,a=s.flyoutStyle,l=s.flyoutCenter,c=r.x,u=r.y,d=r.dx,h=r.dy,f=r.datum,g=r.activePoints,m=r.index,p=r.pointerLength,v=r.pointerWidth,_=r.cornerRadius,b=r.events,y=r.flyoutComponent,w=je(r.pointerOrientation,r);return Ve({},y.props,{x:c,y:u,dx:d,dy:h,datum:f,activePoints:g,index:m,pointerLength:p,pointerWidth:v,cornerRadius:_,events:b,orientation:w||this.getPointerOrientation({x:c,y:u},l,o),key:"".concat(this.id,"-tooltip-").concat(m),width:o.width,height:o.height,style:a,center:l})}},{key:"renderTooltip",value:function(r){var s=je(r.active,r),o=r.renderInPortal;if(!s)return o?T.createElement(uc,null,null):null;var a=this.getEvaluatedProps(r),l=a.flyoutComponent,c=a.labelComponent,u=a.groupComponent,d=this.getCalculatedValues(a),h=[T.cloneElement(l,this.getFlyoutProps(a,d)),T.cloneElement(c,this.getLabelProps(a,d))],f=T.cloneElement(u,{role:"presentation",transform:d.transform},h);return o?T.createElement(uc,null,f):f}},{key:"render",value:function(){var r=lr(this.props,nIe,"tooltip");return this.renderTooltip(r)}}]),t}(T.Component);xu.displayName="VictoryTooltip",xu.role="tooltip",xu.propTypes={activateData:S.bool,active:S.oneOfType([S.bool,S.func]),activePoints:S.array,angle:S.number,center:S.shape({x:it,y:it}),centerOffset:S.shape({x:S.oneOfType([S.number,S.func]),y:S.oneOfType([S.number,S.func])}),constrainToVisibleArea:S.bool,cornerRadius:S.oneOfType([it,S.func]),data:S.array,datum:S.object,dx:S.oneOfType([S.number,S.func]),dy:S.oneOfType([S.number,S.func]),events:S.object,flyoutComponent:S.element,flyoutHeight:S.oneOfType([it,S.func]),flyoutPadding:S.oneOfType([S.func,S.number,S.shape({top:S.number,bottom:S.number,left:S.number,right:S.number})]),flyoutStyle:S.object,flyoutWidth:S.oneOfType([it,S.func]),groupComponent:S.element,height:S.number,horizontal:S.bool,id:S.oneOfType([S.number,S.string]),index:S.oneOfType([S.number,S.string]),labelComponent:S.element,orientation:S.oneOfType([S.oneOf(["top","bottom","left","right"]),S.func]),pointerLength:S.oneOfType([it,S.func]),pointerOrientation:S.oneOfType([S.oneOf(["top","bottom","left","right"]),S.func]),pointerWidth:S.oneOfType([it,S.func]),polar:S.bool,renderInPortal:S.bool,scale:S.shape({x:el,y:el}),style:S.oneOfType([S.object,S.array]),text:S.oneOfType([S.string,S.number,S.func,S.array]),theme:S.object,width:S.number,x:S.number,y:S.number},xu.defaultProps={active:!1,renderInPortal:!0,labelComponent:T.createElement(br,null),flyoutComponent:T.createElement(jTe,null),groupComponent:T.createElement("g",null)},xu.defaultEvents=function(n){var e=n.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],t=n.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return t},onBlur:function(){return t},onTouchEnd:function(){return t}}}]};var iIe=aa,rIe=function(){return iIe.Date.now()},sIe=rIe,oIe=qs,bT=sIe,Z$=uF,aIe="Expected a function",lIe=Math.max,cIe=Math.min;function uIe(n,e,t){var i,r,s,o,a,l,c=0,u=!1,d=!1,h=!0;if(typeof n!="function")throw new TypeError(aIe);e=Z$(e)||0,oIe(t)&&(u=!!t.leading,d="maxWait"in t,s=d?lIe(Z$(t.maxWait)||0,e):s,h="trailing"in t?!!t.trailing:h);function f(k){var L=i,D=r;return i=r=void 0,c=k,o=n.apply(D,L),o}function g(k){return c=k,a=setTimeout(v,e),u?f(k):o}function m(k){var L=k-l,D=k-c,E=e-L;return d?cIe(E,s-D):E}function p(k){var L=k-l,D=k-c;return l===void 0||L>=e||L<0||d&&D>=s}function v(){var k=bT();if(p(k))return _(k);a=setTimeout(v,m(k))}function _(k){return a=void 0,h&&i?f(k):(i=r=void 0,o)}function b(){a!==void 0&&clearTimeout(a),c=0,i=l=r=a=void 0}function y(){return a===void 0?o:_(bT())}function w(){var k=bT(),L=p(k);if(i=arguments,r=this,l=k,L){if(a===void 0)return g(l);if(d)return clearTimeout(a),a=setTimeout(v,e),f(l)}return a===void 0&&(a=setTimeout(v,e)),o}return w.cancel=b,w.flush=y,w}var dIe=uIe,hIe=dIe,fIe=qs,gIe="Expected a function";function mIe(n,e,t){var i=!0,r=!0;if(typeof n!="function")throw new TypeError(gIe);return fIe(t)&&(i="leading"in t?!!t.leading:i,r="trailing"in t?!!t.trailing:r),hIe(n,e,{leading:i,maxWait:e,trailing:r})}var pIe=mIe;const _Ie=St(pIe);var X$={},Q$={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(o0,function(){var t=Math.pow(2,-52),i=new Uint32Array(512),r=function(v){var _=v.length>>1;if(_>0&&typeof v[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=v;var b=Math.max(2*_-5,0);this._triangles=new Uint32Array(b*3),this._halfedges=new Int32Array(b*3),this._hashSize=Math.ceil(Math.sqrt(_)),this._hullPrev=new Uint32Array(_),this._hullNext=new Uint32Array(_),this._hullTri=new Uint32Array(_),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(_),this._dists=new Float64Array(_),this.update()};r.from=function(v,_,b){_===void 0&&(_=g),b===void 0&&(b=m);for(var y=v.length,w=new Float64Array(y*2),k=0;k<y;k++){var L=v[k];w[2*k]=_(L),w[2*k+1]=b(L)}return new r(w)},r.prototype.update=function(){for(var v=this,_=v.coords,b=v._hullPrev,y=v._hullNext,w=v._hullTri,k=v._hullHash,L=_.length>>1,D=1/0,E=1/0,N=-1/0,O=-1/0,I=0;I<L;I++){var M=_[2*I],B=_[2*I+1];M<D&&(D=M),B<E&&(E=B),M>N&&(N=M),B>O&&(O=B),this._ids[I]=I}for(var V=(D+N)/2,ee=(E+O)/2,re=1/0,se,ie,J,ue=0;ue<L;ue++){var Z=o(V,ee,_[2*ue],_[2*ue+1]);Z<re&&(se=ue,re=Z)}var X=_[2*se],ce=_[2*se+1];re=1/0;for(var De=0;De<L;De++)if(De!==se){var te=o(X,ce,_[2*De],_[2*De+1]);te<re&&te>0&&(ie=De,re=te)}for(var xe=_[2*ie],ge=_[2*ie+1],Ce=1/0,Se=0;Se<L;Se++)if(!(Se===se||Se===ie)){var pe=u(X,ce,xe,ge,_[2*Se],_[2*Se+1]);pe<Ce&&(J=Se,Ce=pe)}var Q=_[2*J],Xe=_[2*J+1];if(Ce===1/0){for(var et=0;et<L;et++)this._dists[et]=_[2*et]-_[0]||_[2*et+1]-_[1];h(this._ids,this._dists,0,L-1);for(var Fe=new Uint32Array(L),j=0,le=0,be=-1/0;le<L;le++){var $e=this._ids[le];this._dists[$e]>be&&(Fe[j++]=$e,be=this._dists[$e])}this.hull=Fe.subarray(0,j),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(l(X,ce,xe,ge,Q,Xe)){var Y=ie,H=xe,q=ge;ie=J,xe=Q,ge=Xe,J=Y,Q=H,Xe=q}var P=d(X,ce,xe,ge,Q,Xe);this._cx=P.x,this._cy=P.y;for(var F=0;F<L;F++)this._dists[F]=o(_[2*F],_[2*F+1],P.x,P.y);h(this._ids,this._dists,0,L-1),this._hullStart=se;var z=3;y[se]=b[J]=ie,y[ie]=b[se]=J,y[J]=b[ie]=se,w[se]=0,w[ie]=1,w[J]=2,k.fill(-1),k[this._hashKey(X,ce)]=se,k[this._hashKey(xe,ge)]=ie,k[this._hashKey(Q,Xe)]=J,this.trianglesLen=0,this._addTriangle(se,ie,J,-1,-1,-1);for(var U=0,fe=void 0,ke=void 0;U<this._ids.length;U++){var Ie=this._ids[U],Pe=_[2*Ie],Ze=_[2*Ie+1];if(!(U>0&&Math.abs(Pe-fe)<=t&&Math.abs(Ze-ke)<=t)&&(fe=Pe,ke=Ze,!(Ie===se||Ie===ie||Ie===J))){for(var Ye=0,Vt=0,Et=this._hashKey(Pe,Ze);Vt<this._hashSize&&(Ye=k[(Et+Vt)%this._hashSize],!(Ye!==-1&&Ye!==y[Ye]));Vt++);Ye=b[Ye];for(var Me=Ye,Mt=void 0;Mt=y[Me],!l(Pe,Ze,_[2*Me],_[2*Me+1],_[2*Mt],_[2*Mt+1]);)if(Me=Mt,Me===Ye){Me=-1;break}if(Me!==-1){var Ut=this._addTriangle(Me,Ie,y[Me],-1,-1,w[Me]);w[Ie]=this._legalize(Ut+2),w[Me]=Ut,z++;for(var zn=y[Me];Mt=y[zn],l(Pe,Ze,_[2*zn],_[2*zn+1],_[2*Mt],_[2*Mt+1]);)Ut=this._addTriangle(zn,Ie,Mt,w[Ie],-1,w[zn]),w[Ie]=this._legalize(Ut+2),y[zn]=zn,z--,zn=Mt;if(Me===Ye)for(;Mt=b[Me],l(Pe,Ze,_[2*Mt],_[2*Mt+1],_[2*Me],_[2*Me+1]);)Ut=this._addTriangle(Mt,Ie,Me,-1,w[Me],w[Mt]),this._legalize(Ut+2),w[Mt]=Ut,y[Me]=Me,z--,Me=Mt;this._hullStart=b[Ie]=Me,y[Me]=b[zn]=Ie,y[Ie]=zn,k[this._hashKey(Pe,Ze)]=Ie,k[this._hashKey(_[2*Me],_[2*Me+1])]=Me}}}this.hull=new Uint32Array(z);for(var Qt=0,An=this._hullStart;Qt<z;Qt++)this.hull[Qt]=An,An=y[An];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},r.prototype._hashKey=function(v,_){return Math.floor(s(v-this._cx,_-this._cy)*this._hashSize)%this._hashSize},r.prototype._legalize=function(v){for(var _=this,b=_._triangles,y=_._halfedges,w=_.coords,k=0,L=0;;){var D=y[v],E=v-v%3;if(L=E+(v+2)%3,D===-1){if(k===0)break;v=i[--k];continue}var N=D-D%3,O=E+(v+1)%3,I=N+(D+2)%3,M=b[L],B=b[v],V=b[O],ee=b[I],re=c(w[2*M],w[2*M+1],w[2*B],w[2*B+1],w[2*V],w[2*V+1],w[2*ee],w[2*ee+1]);if(re){b[v]=ee,b[D]=M;var se=y[I];if(se===-1){var ie=this._hullStart;do{if(this._hullTri[ie]===I){this._hullTri[ie]=v;break}ie=this._hullPrev[ie]}while(ie!==this._hullStart)}this._link(v,se),this._link(D,y[L]),this._link(L,I);var J=N+(D+1)%3;k<i.length&&(i[k++]=J)}else{if(k===0)break;v=i[--k]}}return L},r.prototype._link=function(v,_){this._halfedges[v]=_,_!==-1&&(this._halfedges[_]=v)},r.prototype._addTriangle=function(v,_,b,y,w,k){var L=this.trianglesLen;return this._triangles[L]=v,this._triangles[L+1]=_,this._triangles[L+2]=b,this._link(L,y),this._link(L+1,w),this._link(L+2,k),this.trianglesLen+=3,L};function s(p,v){var _=p/(Math.abs(p)+Math.abs(v));return(v>0?3-_:1+_)/4}function o(p,v,_,b){var y=p-_,w=v-b;return y*y+w*w}function a(p,v,_,b,y,w){var k=(b-v)*(y-p),L=(_-p)*(w-v);return Math.abs(k-L)>=33306690738754716e-32*Math.abs(k+L)?k-L:0}function l(p,v,_,b,y,w){var k=a(y,w,p,v,_,b)||a(p,v,_,b,y,w)||a(_,b,y,w,p,v);return k<0}function c(p,v,_,b,y,w,k,L){var D=p-k,E=v-L,N=_-k,O=b-L,I=y-k,M=w-L,B=D*D+E*E,V=N*N+O*O,ee=I*I+M*M;return D*(O*ee-V*M)-E*(N*ee-V*I)+B*(N*M-O*I)<0}function u(p,v,_,b,y,w){var k=_-p,L=b-v,D=y-p,E=w-v,N=k*k+L*L,O=D*D+E*E,I=.5/(k*E-L*D),M=(E*N-L*O)*I,B=(k*O-D*N)*I;return M*M+B*B}function d(p,v,_,b,y,w){var k=_-p,L=b-v,D=y-p,E=w-v,N=k*k+L*L,O=D*D+E*E,I=.5/(k*E-L*D),M=p+(E*N-L*O)*I,B=v+(k*O-D*N)*I;return{x:M,y:B}}function h(p,v,_,b){if(b-_<=20)for(var y=_+1;y<=b;y++){for(var w=p[y],k=v[w],L=y-1;L>=_&&v[p[L]]>k;)p[L+1]=p[L--];p[L+1]=w}else{var D=_+b>>1,E=_+1,N=b;f(p,D,E),v[p[_]]>v[p[b]]&&f(p,_,b),v[p[E]]>v[p[b]]&&f(p,E,b),v[p[_]]>v[p[E]]&&f(p,_,E);for(var O=p[E],I=v[O];;){do E++;while(v[p[E]]<I);do N--;while(v[p[N]]>I);if(N<E)break;f(p,E,N)}p[_+1]=p[N],p[N]=O,b-E+1>=N-_?(h(p,v,E,b),h(p,v,_,N-1)):(h(p,v,_,N-1),h(p,v,E,b))}}function f(p,v,_){var b=p[v];p[v]=p[_],p[_]=b}function g(p){return p[0]}function m(p){return p[1]}return r})})(Q$);var vIe=Q$.exports;(function(n){n.__esModule=!0,n.default=void 0;var e=t(vIe);function t(c){return c&&c.__esModule?c:{default:c}}function i(c){return c[0]}function r(c){return c[1]}function s(c){for(var u=c.triangles,d=c.coords,h=0;h<u.length;h+=3){var f=2*u[h],g=2*u[h+1],m=2*u[h+2],p=(d[m]-d[f])*(d[g+1]-d[f+1])-(d[g]-d[f])*(d[m+1]-d[f+1]);if(p>1e-10)return!1}return!0}function o(c,u,d){return[c+Math.sin(c+u)*d,u+Math.cos(c-u)*d]}function a(c,u,d,h){for(var f=c.length,g=new Float64Array(f*2),m=0;m<f;++m){var p=c[m];g[m*2]=u.call(h,p,m,c),g[m*2+1]=d.call(h,p,m,c)}return g}var l=function(){function c(d){var h=new e.default(d);this.inedges=new Int32Array(d.length/2),this._hullIndex=new Int32Array(d.length/2),this.points=h.coords,this._init(h)}var u=c.prototype;return u._init=function(h){var f=h,g=this.points;if(f.hull&&f.hull.length>2&&s(f)){this.collinear=Int32Array.from({length:g.length/2},function(ee,re){return re}).sort(function(ee,re){return g[2*ee]-g[2*re]||g[2*ee+1]-g[2*re+1]});for(var m=this.collinear[0],p=this.collinear[this.collinear.length-1],v=[g[2*m],g[2*m+1],g[2*p],g[2*p+1]],_=1e-8*Math.sqrt(Math.pow(v[3]-v[1],2)+Math.pow(v[2]-v[0],2)),b=0,y=g.length/2;b<y;++b){var w=o(g[2*b],g[2*b+1],_);g[2*b]=w[0],g[2*b+1]=w[1]}h=new e.default(g)}for(var k=this.halfedges=h.halfedges,L=this.hull=h.hull,D=this.triangles=h.triangles,E=this.inedges.fill(-1),N=this._hullIndex.fill(-1),O=0,I=k.length;O<I;++O){var M=D[O%3===2?O-2:O+1];(k[O]===-1||E[M]===-1)&&(E[M]=O)}for(var B=0,V=L.length;B<V;++B)N[L[B]]=B;L.length<=2&&L.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=L[0],this.triangles[1]=L[1],this.triangles[2]=L[1],E[L[0]]=1,L.length===2&&(E[L[1]]=0))},u.neighbors=function(h){var f=[],g=this.inedges,m=this.hull,p=this._hullIndex,v=this.halfedges,_=this.triangles,b=g[h];if(b===-1)return f;var y=b,w=-1;do{if(w=_[y],f.push(w),y=y%3===2?y-2:y+1,_[y]!==h)break;if(y=v[y],y===-1){var k=m[(p[h]+1)%m.length];k!==w&&f.push(k);break}}while(y!==b);return f},u.find=function(h,f,g){if(g===void 0&&(g=0),h=+h,h!==h||(f=+f,f!==f))return-1;for(var m=g,p;(p=this._step(g,h,f))>=0&&p!==g&&p!==m;)g=p;return p},u._step=function(h,f,g){var m=this.inedges,p=this.points;if(m[h]===-1||!p.length)return(h+1)%(p.length>>1);for(var v=h,_=Math.pow(f-p[h*2],2)+Math.pow(g-p[h*2+1],2),w=this.neighbors(h),b=Array.isArray(w),y=0,w=b?w:w[Symbol.iterator]();;){var k;if(b){if(y>=w.length)break;k=w[y++]}else{if(y=w.next(),y.done)break;k=y.value}var L=k,D=Math.pow(f-p[L*2],2)+Math.pow(g-p[L*2+1],2);D<_&&(_=D,v=L)}return v},c}();n.default=l,l.from=function(c,u,d,h){return u===void 0&&(u=i),d===void 0&&(d=r),new l(a(c,u,d,h))}})(X$);const bIe=St(X$);function g_(n){return SIe(n)||wIe(n)||CIe(n)||yIe()}function yIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
225
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qTe(n,e){if(n){if(typeof n=="string")return _T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _T(n,e)}}function KTe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function GTe(n){if(Array.isArray(n))return _T(n)}function _T(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function YTe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Y$(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function ZTe(n,e,t){return e&&Y$(n.prototype,e),t&&Y$(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function XTe(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&vT(n,e)}function vT(n,e){return vT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},vT(n,e)}function QTe(n){var e=tIe();return function(){var i=mw(n),r;if(e){var s=mw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return JTe(this,r)}}function JTe(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eIe(n)}function eIe(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function tIe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mw(n){return mw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mw(n)}var nIe={cornerRadius:5,pointerLength:10,pointerWidth:10},xu=function(n){XTe(t,n);var e=QTe(t);function t(i){var r;return YTe(this,t),r=e.call(this,i),r.id=i.id===void 0?Zy("tooltip-"):i.id,r}return ZTe(t,[{key:"getDefaultOrientation",value:function(r){var s=r.datum,o=r.horizontal,a=r.polar;if(!a){var l=o?"right":"top",c=o?"left":"bottom";return s&&s.y<0?c:l}return this.getPolarOrientation(r,s)}},{key:"getPolarOrientation",value:function(r,s){var o=n_(r,s),a=r.labelPlacement||"vertical";return a===" vertical"?this.getVerticalOrientations(o):a==="parallel"?o<90||o>270?"right":"left":o>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(r){return r<45||r>315?"right":r>=45&&r<=135?"top":r>135&&r<225?"left":"bottom"}},{key:"getStyles",value:function(r){var s=r.theme||hc.grayscale,o=s&&s.tooltip&&s.tooltip.style?s.tooltip.style:{},a=Array.isArray(r.style)?r.style.map(function(h){return Ve({},h,o)}):Ve({},r.style,o),l=s&&s.tooltip&&s.tooltip.flyoutStyle?s.tooltip.flyoutStyle:{},c=r.flyoutStyle?Ve({},r.flyoutStyle,l):l,u=Array.isArray(a)?a.map(function(h){return $n(h,r)}):$n(a,r),d=$n(c,oe({},r,{style:u}));return{style:u,flyoutStyle:d}}},{key:"getEvaluatedProps",value:function(r){var s=r.cornerRadius,o=r.centerOffset,a=r.dx,l=r.dy,c=je(r.active,r),u=je(r.text,oe({},r,{active:c})),d=this.getStyles(oe({},r,{active:c,text:u})),h=d.style,f=d.flyoutStyle,g=je(r.orientation,oe({},r,{active:c,text:u,style:h,flyoutStyle:f}))||this.getDefaultOrientation(r),m=je(r.flyoutPadding,oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g}))||this.getLabelPadding(h),p=Ci({padding:m}),v=je(r.pointerWidth,oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g})),_=je(r.pointerLength,oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g})),b=ch(u,h),y=this.getDimensions(oe({},r,{style:h,flyoutStyle:f,active:c,text:u,orientation:g,flyoutPadding:p,pointerWidth:v,pointerLength:_}),b),w=y.flyoutHeight,k=y.flyoutWidth,L=oe({},r,{active:c,text:u,style:h,flyoutStyle:f,orientation:g,flyoutHeight:w,flyoutWidth:k,flyoutPadding:p,pointerWidth:v,pointerLength:_}),D=hi(o)&&o.x!==void 0?je(o.x,L):0,E=hi(o)&&o.y!==void 0?je(o.y,L):0;return oe({},L,{centerOffset:{x:D,y:E},dx:a!==void 0?je(a,L):0,dy:l!==void 0?je(l,L):0,cornerRadius:je(s,L)})}},{key:"getCalculatedValues",value:function(r){var s=r.style,o=r.text,a=r.flyoutStyle,l=r.flyoutHeight,c=r.flyoutWidth,u=ch(o,s),d={height:l,width:c},h=this.getFlyoutCenter(r,d),f=this.getTransform(r);return{style:s,flyoutStyle:a,labelSize:u,flyoutDimensions:d,flyoutCenter:h,transform:f}}},{key:"getTransform",value:function(r){var s=r.x,o=r.y,a=r.style,l=a||{},c=l.angle||r.angle||this.getDefaultAngle(r);return c?"rotate(".concat(c," ").concat(s," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(r){var s=r.polar,o=r.labelPlacement,a=r.orientation,l=r.datum;if(!s||!o||o==="vertical")return 0;var c=n_(r,l),u=c>90&&c<180||c>270?1:-1,d=o==="perpendicular"?0:90,h;return c===0||c===180?h=a==="top"&&c===180?270:90:c>0&&c<180?h=90-c:c>180&&c<360&&(h=270-c),h+u*d}},{key:"constrainTooltip",value:function(r,s,o){var a=r.x,l=r.y,c=o.width,u=o.height,d={x:[0,s.width],y:[0,s.height]},h={x:[a-c/2,a+c/2],y:[l-u/2,l+u/2]},f={x:[h.x[0]<d.x[0]?d.x[0]-h.x[0]:0,h.x[1]>d.x[1]?h.x[1]-d.x[1]:0],y:[h.y[0]<d.y[0]?d.y[0]-h.y[0]:0,h.y[1]>d.y[1]?h.y[1]-d.y[1]:0]};return{x:Math.round(a+f.x[0]-f.x[1]),y:Math.round(l+f.y[0]-f.y[1])}}},{key:"getFlyoutCenter",value:function(r,s){var o=r.x,a=r.y,l=r.dx,c=r.dy,u=r.pointerLength,d=r.orientation,h=r.constrainToVisibleArea,f=r.centerOffset,g=s.height,m=s.width,p=d==="left"?-1:1,v=d==="bottom"?-1:1,_={x:d==="left"||d==="right"?o+p*(u+m/2+p*l):o+l,y:d==="top"||d==="bottom"?a-v*(u+g/2-v*c):a+c},b={x:hi(r.center)&&r.center.x!==void 0?r.center.x:_.x,y:hi(r.center)&&r.center.y!==void 0?r.center.y:_.y},y={x:b.x+f.x,y:b.y+f.y};return h?this.constrainTooltip(y,r,s):y}},{key:"getLabelPadding",value:function(r){if(!r)return 0;var s=Array.isArray(r)?r.map(function(o){return o.padding}):[r.padding];return Math.max.apply(Math,zTe(s).concat([0]))}},{key:"getDimensions",value:function(r,s){var o=r.orientation,a=r.pointerLength,l=r.pointerWidth,c=r.flyoutHeight,u=r.flyoutWidth,d=r.flyoutPadding,h=je(r.cornerRadius,r),f=function(){var m=s.height+d.top+d.bottom,p=o==="top"||o==="bottom"?2*h:2*h+l;return Math.max(p,m)},g=function(){var m=s.width+d.left+d.right,p=o==="left"||o==="right"?2*h+a:2*h;return Math.max(p,m)};return{flyoutHeight:c?je(c,r):f(),flyoutWidth:u?je(u,r):g()}}},{key:"getLabelProps",value:function(r,s){var o=s.flyoutCenter,a=s.style,l=s.labelSize,c=s.dy,u=c===void 0?0:c,d=s.dx,h=d===void 0?0:d,f=r.text,g=r.datum,m=r.activePoints,p=r.labelComponent,v=r.index,_=r.flyoutPadding,b=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle",y=function(){if(!b||b==="middle")return o.x;var w=b==="end"?-1:1;return o.x-w*(l.width/2)};return Ve({},p.props,{key:"".concat(this.id,"-label-").concat(v),text:f,datum:g,activePoints:m,textAnchor:b,dy:u,dx:h,style:a,x:y()+(_.left-_.right)/2,y:o.y+(_.top-_.bottom)/2,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(r,s,o){var a={bottom:s.y+o.height/2,top:s.y-o.height/2,left:s.x-o.width/2,right:s.x+o.width/2},l=[{side:"top",val:a.top>r.y?a.top-r.y:-1},{side:"bottom",val:a.bottom<r.y?r.y-a.bottom:-1},{side:"right",val:a.right<r.x?r.x-a.right:-1},{side:"left",val:a.left>r.x?a.left-r.x:-1}];return Lg(l,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(r,s){var o=s.flyoutDimensions,a=s.flyoutStyle,l=s.flyoutCenter,c=r.x,u=r.y,d=r.dx,h=r.dy,f=r.datum,g=r.activePoints,m=r.index,p=r.pointerLength,v=r.pointerWidth,_=r.cornerRadius,b=r.events,y=r.flyoutComponent,w=je(r.pointerOrientation,r);return Ve({},y.props,{x:c,y:u,dx:d,dy:h,datum:f,activePoints:g,index:m,pointerLength:p,pointerWidth:v,cornerRadius:_,events:b,orientation:w||this.getPointerOrientation({x:c,y:u},l,o),key:"".concat(this.id,"-tooltip-").concat(m),width:o.width,height:o.height,style:a,center:l})}},{key:"renderTooltip",value:function(r){var s=je(r.active,r),o=r.renderInPortal;if(!s)return o?T.createElement(uc,null,null):null;var a=this.getEvaluatedProps(r),l=a.flyoutComponent,c=a.labelComponent,u=a.groupComponent,d=this.getCalculatedValues(a),h=[T.cloneElement(l,this.getFlyoutProps(a,d)),T.cloneElement(c,this.getLabelProps(a,d))],f=T.cloneElement(u,{role:"presentation",transform:d.transform},h);return o?T.createElement(uc,null,f):f}},{key:"render",value:function(){var r=lr(this.props,nIe,"tooltip");return this.renderTooltip(r)}}]),t}(T.Component);xu.displayName="VictoryTooltip",xu.role="tooltip",xu.propTypes={activateData:S.bool,active:S.oneOfType([S.bool,S.func]),activePoints:S.array,angle:S.number,center:S.shape({x:it,y:it}),centerOffset:S.shape({x:S.oneOfType([S.number,S.func]),y:S.oneOfType([S.number,S.func])}),constrainToVisibleArea:S.bool,cornerRadius:S.oneOfType([it,S.func]),data:S.array,datum:S.object,dx:S.oneOfType([S.number,S.func]),dy:S.oneOfType([S.number,S.func]),events:S.object,flyoutComponent:S.element,flyoutHeight:S.oneOfType([it,S.func]),flyoutPadding:S.oneOfType([S.func,S.number,S.shape({top:S.number,bottom:S.number,left:S.number,right:S.number})]),flyoutStyle:S.object,flyoutWidth:S.oneOfType([it,S.func]),groupComponent:S.element,height:S.number,horizontal:S.bool,id:S.oneOfType([S.number,S.string]),index:S.oneOfType([S.number,S.string]),labelComponent:S.element,orientation:S.oneOfType([S.oneOf(["top","bottom","left","right"]),S.func]),pointerLength:S.oneOfType([it,S.func]),pointerOrientation:S.oneOfType([S.oneOf(["top","bottom","left","right"]),S.func]),pointerWidth:S.oneOfType([it,S.func]),polar:S.bool,renderInPortal:S.bool,scale:S.shape({x:el,y:el}),style:S.oneOfType([S.object,S.array]),text:S.oneOfType([S.string,S.number,S.func,S.array]),theme:S.object,width:S.number,x:S.number,y:S.number},xu.defaultProps={active:!1,renderInPortal:!0,labelComponent:T.createElement(br,null),flyoutComponent:T.createElement(jTe,null),groupComponent:T.createElement("g",null)},xu.defaultEvents=function(n){var e=n.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],t=n.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return t},onBlur:function(){return t},onTouchEnd:function(){return t}}}]};var iIe=aa,rIe=function(){return iIe.Date.now()},sIe=rIe,oIe=qs,bT=sIe,Z$=uF,aIe="Expected a function",lIe=Math.max,cIe=Math.min;function uIe(n,e,t){var i,r,s,o,a,l,c=0,u=!1,d=!1,h=!0;if(typeof n!="function")throw new TypeError(aIe);e=Z$(e)||0,oIe(t)&&(u=!!t.leading,d="maxWait"in t,s=d?lIe(Z$(t.maxWait)||0,e):s,h="trailing"in t?!!t.trailing:h);function f(k){var L=i,D=r;return i=r=void 0,c=k,o=n.apply(D,L),o}function g(k){return c=k,a=setTimeout(v,e),u?f(k):o}function m(k){var L=k-l,D=k-c,E=e-L;return d?cIe(E,s-D):E}function p(k){var L=k-l,D=k-c;return l===void 0||L>=e||L<0||d&&D>=s}function v(){var k=bT();if(p(k))return _(k);a=setTimeout(v,m(k))}function _(k){return a=void 0,h&&i?f(k):(i=r=void 0,o)}function b(){a!==void 0&&clearTimeout(a),c=0,i=l=r=a=void 0}function y(){return a===void 0?o:_(bT())}function w(){var k=bT(),L=p(k);if(i=arguments,r=this,l=k,L){if(a===void 0)return g(l);if(d)return clearTimeout(a),a=setTimeout(v,e),f(l)}return a===void 0&&(a=setTimeout(v,e)),o}return w.cancel=b,w.flush=y,w}var dIe=uIe,hIe=dIe,fIe=qs,gIe="Expected a function";function mIe(n,e,t){var i=!0,r=!0;if(typeof n!="function")throw new TypeError(gIe);return fIe(t)&&(i="leading"in t?!!t.leading:i,r="trailing"in t?!!t.trailing:r),hIe(n,e,{leading:i,maxWait:e,trailing:r})}var pIe=mIe;const _Ie=St(pIe);var X$={},Q$={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(o0,function(){var t=Math.pow(2,-52),i=new Uint32Array(512),r=function(v){var _=v.length>>1;if(_>0&&typeof v[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=v;var b=Math.max(2*_-5,0);this._triangles=new Uint32Array(b*3),this._halfedges=new Int32Array(b*3),this._hashSize=Math.ceil(Math.sqrt(_)),this._hullPrev=new Uint32Array(_),this._hullNext=new Uint32Array(_),this._hullTri=new Uint32Array(_),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(_),this._dists=new Float64Array(_),this.update()};r.from=function(v,_,b){_===void 0&&(_=g),b===void 0&&(b=m);for(var y=v.length,w=new Float64Array(y*2),k=0;k<y;k++){var L=v[k];w[2*k]=_(L),w[2*k+1]=b(L)}return new r(w)},r.prototype.update=function(){for(var v=this,_=v.coords,b=v._hullPrev,y=v._hullNext,w=v._hullTri,k=v._hullHash,L=_.length>>1,D=1/0,E=1/0,N=-1/0,O=-1/0,I=0;I<L;I++){var M=_[2*I],B=_[2*I+1];M<D&&(D=M),B<E&&(E=B),M>N&&(N=M),B>O&&(O=B),this._ids[I]=I}for(var V=(D+N)/2,ee=(E+O)/2,re=1/0,se,ie,J,ue=0;ue<L;ue++){var Z=o(V,ee,_[2*ue],_[2*ue+1]);Z<re&&(se=ue,re=Z)}var X=_[2*se],ce=_[2*se+1];re=1/0;for(var De=0;De<L;De++)if(De!==se){var te=o(X,ce,_[2*De],_[2*De+1]);te<re&&te>0&&(ie=De,re=te)}for(var xe=_[2*ie],ge=_[2*ie+1],Ce=1/0,Se=0;Se<L;Se++)if(!(Se===se||Se===ie)){var pe=u(X,ce,xe,ge,_[2*Se],_[2*Se+1]);pe<Ce&&(J=Se,Ce=pe)}var Q=_[2*J],Xe=_[2*J+1];if(Ce===1/0){for(var et=0;et<L;et++)this._dists[et]=_[2*et]-_[0]||_[2*et+1]-_[1];h(this._ids,this._dists,0,L-1);for(var Fe=new Uint32Array(L),j=0,le=0,be=-1/0;le<L;le++){var $e=this._ids[le];this._dists[$e]>be&&(Fe[j++]=$e,be=this._dists[$e])}this.hull=Fe.subarray(0,j),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(l(X,ce,xe,ge,Q,Xe)){var Y=ie,H=xe,q=ge;ie=J,xe=Q,ge=Xe,J=Y,Q=H,Xe=q}var R=d(X,ce,xe,ge,Q,Xe);this._cx=R.x,this._cy=R.y;for(var F=0;F<L;F++)this._dists[F]=o(_[2*F],_[2*F+1],R.x,R.y);h(this._ids,this._dists,0,L-1),this._hullStart=se;var z=3;y[se]=b[J]=ie,y[ie]=b[se]=J,y[J]=b[ie]=se,w[se]=0,w[ie]=1,w[J]=2,k.fill(-1),k[this._hashKey(X,ce)]=se,k[this._hashKey(xe,ge)]=ie,k[this._hashKey(Q,Xe)]=J,this.trianglesLen=0,this._addTriangle(se,ie,J,-1,-1,-1);for(var U=0,fe=void 0,ke=void 0;U<this._ids.length;U++){var Ie=this._ids[U],Pe=_[2*Ie],Ze=_[2*Ie+1];if(!(U>0&&Math.abs(Pe-fe)<=t&&Math.abs(Ze-ke)<=t)&&(fe=Pe,ke=Ze,!(Ie===se||Ie===ie||Ie===J))){for(var Ye=0,Vt=0,Et=this._hashKey(Pe,Ze);Vt<this._hashSize&&(Ye=k[(Et+Vt)%this._hashSize],!(Ye!==-1&&Ye!==y[Ye]));Vt++);Ye=b[Ye];for(var Me=Ye,Mt=void 0;Mt=y[Me],!l(Pe,Ze,_[2*Me],_[2*Me+1],_[2*Mt],_[2*Mt+1]);)if(Me=Mt,Me===Ye){Me=-1;break}if(Me!==-1){var Ut=this._addTriangle(Me,Ie,y[Me],-1,-1,w[Me]);w[Ie]=this._legalize(Ut+2),w[Me]=Ut,z++;for(var zn=y[Me];Mt=y[zn],l(Pe,Ze,_[2*zn],_[2*zn+1],_[2*Mt],_[2*Mt+1]);)Ut=this._addTriangle(zn,Ie,Mt,w[Ie],-1,w[zn]),w[Ie]=this._legalize(Ut+2),y[zn]=zn,z--,zn=Mt;if(Me===Ye)for(;Mt=b[Me],l(Pe,Ze,_[2*Mt],_[2*Mt+1],_[2*Me],_[2*Me+1]);)Ut=this._addTriangle(Mt,Ie,Me,-1,w[Me],w[Mt]),this._legalize(Ut+2),w[Mt]=Ut,y[Me]=Me,z--,Me=Mt;this._hullStart=b[Ie]=Me,y[Me]=b[zn]=Ie,y[Ie]=zn,k[this._hashKey(Pe,Ze)]=Ie,k[this._hashKey(_[2*Me],_[2*Me+1])]=Me}}}this.hull=new Uint32Array(z);for(var Qt=0,An=this._hullStart;Qt<z;Qt++)this.hull[Qt]=An,An=y[An];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},r.prototype._hashKey=function(v,_){return Math.floor(s(v-this._cx,_-this._cy)*this._hashSize)%this._hashSize},r.prototype._legalize=function(v){for(var _=this,b=_._triangles,y=_._halfedges,w=_.coords,k=0,L=0;;){var D=y[v],E=v-v%3;if(L=E+(v+2)%3,D===-1){if(k===0)break;v=i[--k];continue}var N=D-D%3,O=E+(v+1)%3,I=N+(D+2)%3,M=b[L],B=b[v],V=b[O],ee=b[I],re=c(w[2*M],w[2*M+1],w[2*B],w[2*B+1],w[2*V],w[2*V+1],w[2*ee],w[2*ee+1]);if(re){b[v]=ee,b[D]=M;var se=y[I];if(se===-1){var ie=this._hullStart;do{if(this._hullTri[ie]===I){this._hullTri[ie]=v;break}ie=this._hullPrev[ie]}while(ie!==this._hullStart)}this._link(v,se),this._link(D,y[L]),this._link(L,I);var J=N+(D+1)%3;k<i.length&&(i[k++]=J)}else{if(k===0)break;v=i[--k]}}return L},r.prototype._link=function(v,_){this._halfedges[v]=_,_!==-1&&(this._halfedges[_]=v)},r.prototype._addTriangle=function(v,_,b,y,w,k){var L=this.trianglesLen;return this._triangles[L]=v,this._triangles[L+1]=_,this._triangles[L+2]=b,this._link(L,y),this._link(L+1,w),this._link(L+2,k),this.trianglesLen+=3,L};function s(p,v){var _=p/(Math.abs(p)+Math.abs(v));return(v>0?3-_:1+_)/4}function o(p,v,_,b){var y=p-_,w=v-b;return y*y+w*w}function a(p,v,_,b,y,w){var k=(b-v)*(y-p),L=(_-p)*(w-v);return Math.abs(k-L)>=33306690738754716e-32*Math.abs(k+L)?k-L:0}function l(p,v,_,b,y,w){var k=a(y,w,p,v,_,b)||a(p,v,_,b,y,w)||a(_,b,y,w,p,v);return k<0}function c(p,v,_,b,y,w,k,L){var D=p-k,E=v-L,N=_-k,O=b-L,I=y-k,M=w-L,B=D*D+E*E,V=N*N+O*O,ee=I*I+M*M;return D*(O*ee-V*M)-E*(N*ee-V*I)+B*(N*M-O*I)<0}function u(p,v,_,b,y,w){var k=_-p,L=b-v,D=y-p,E=w-v,N=k*k+L*L,O=D*D+E*E,I=.5/(k*E-L*D),M=(E*N-L*O)*I,B=(k*O-D*N)*I;return M*M+B*B}function d(p,v,_,b,y,w){var k=_-p,L=b-v,D=y-p,E=w-v,N=k*k+L*L,O=D*D+E*E,I=.5/(k*E-L*D),M=p+(E*N-L*O)*I,B=v+(k*O-D*N)*I;return{x:M,y:B}}function h(p,v,_,b){if(b-_<=20)for(var y=_+1;y<=b;y++){for(var w=p[y],k=v[w],L=y-1;L>=_&&v[p[L]]>k;)p[L+1]=p[L--];p[L+1]=w}else{var D=_+b>>1,E=_+1,N=b;f(p,D,E),v[p[_]]>v[p[b]]&&f(p,_,b),v[p[E]]>v[p[b]]&&f(p,E,b),v[p[_]]>v[p[E]]&&f(p,_,E);for(var O=p[E],I=v[O];;){do E++;while(v[p[E]]<I);do N--;while(v[p[N]]>I);if(N<E)break;f(p,E,N)}p[_+1]=p[N],p[N]=O,b-E+1>=N-_?(h(p,v,E,b),h(p,v,_,N-1)):(h(p,v,_,N-1),h(p,v,E,b))}}function f(p,v,_){var b=p[v];p[v]=p[_],p[_]=b}function g(p){return p[0]}function m(p){return p[1]}return r})})(Q$);var vIe=Q$.exports;(function(n){n.__esModule=!0,n.default=void 0;var e=t(vIe);function t(c){return c&&c.__esModule?c:{default:c}}function i(c){return c[0]}function r(c){return c[1]}function s(c){for(var u=c.triangles,d=c.coords,h=0;h<u.length;h+=3){var f=2*u[h],g=2*u[h+1],m=2*u[h+2],p=(d[m]-d[f])*(d[g+1]-d[f+1])-(d[g]-d[f])*(d[m+1]-d[f+1]);if(p>1e-10)return!1}return!0}function o(c,u,d){return[c+Math.sin(c+u)*d,u+Math.cos(c-u)*d]}function a(c,u,d,h){for(var f=c.length,g=new Float64Array(f*2),m=0;m<f;++m){var p=c[m];g[m*2]=u.call(h,p,m,c),g[m*2+1]=d.call(h,p,m,c)}return g}var l=function(){function c(d){var h=new e.default(d);this.inedges=new Int32Array(d.length/2),this._hullIndex=new Int32Array(d.length/2),this.points=h.coords,this._init(h)}var u=c.prototype;return u._init=function(h){var f=h,g=this.points;if(f.hull&&f.hull.length>2&&s(f)){this.collinear=Int32Array.from({length:g.length/2},function(ee,re){return re}).sort(function(ee,re){return g[2*ee]-g[2*re]||g[2*ee+1]-g[2*re+1]});for(var m=this.collinear[0],p=this.collinear[this.collinear.length-1],v=[g[2*m],g[2*m+1],g[2*p],g[2*p+1]],_=1e-8*Math.sqrt(Math.pow(v[3]-v[1],2)+Math.pow(v[2]-v[0],2)),b=0,y=g.length/2;b<y;++b){var w=o(g[2*b],g[2*b+1],_);g[2*b]=w[0],g[2*b+1]=w[1]}h=new e.default(g)}for(var k=this.halfedges=h.halfedges,L=this.hull=h.hull,D=this.triangles=h.triangles,E=this.inedges.fill(-1),N=this._hullIndex.fill(-1),O=0,I=k.length;O<I;++O){var M=D[O%3===2?O-2:O+1];(k[O]===-1||E[M]===-1)&&(E[M]=O)}for(var B=0,V=L.length;B<V;++B)N[L[B]]=B;L.length<=2&&L.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=L[0],this.triangles[1]=L[1],this.triangles[2]=L[1],E[L[0]]=1,L.length===2&&(E[L[1]]=0))},u.neighbors=function(h){var f=[],g=this.inedges,m=this.hull,p=this._hullIndex,v=this.halfedges,_=this.triangles,b=g[h];if(b===-1)return f;var y=b,w=-1;do{if(w=_[y],f.push(w),y=y%3===2?y-2:y+1,_[y]!==h)break;if(y=v[y],y===-1){var k=m[(p[h]+1)%m.length];k!==w&&f.push(k);break}}while(y!==b);return f},u.find=function(h,f,g){if(g===void 0&&(g=0),h=+h,h!==h||(f=+f,f!==f))return-1;for(var m=g,p;(p=this._step(g,h,f))>=0&&p!==g&&p!==m;)g=p;return p},u._step=function(h,f,g){var m=this.inedges,p=this.points;if(m[h]===-1||!p.length)return(h+1)%(p.length>>1);for(var v=h,_=Math.pow(f-p[h*2],2)+Math.pow(g-p[h*2+1],2),w=this.neighbors(h),b=Array.isArray(w),y=0,w=b?w:w[Symbol.iterator]();;){var k;if(b){if(y>=w.length)break;k=w[y++]}else{if(y=w.next(),y.done)break;k=y.value}var L=k,D=Math.pow(f-p[L*2],2)+Math.pow(g-p[L*2+1],2);D<_&&(_=D,v=L)}return v},c}();n.default=l,l.from=function(c,u,d,h){return u===void 0&&(u=i),d===void 0&&(d=r),new l(a(c,u,d,h))}})(X$);const bIe=St(X$);function g_(n){return SIe(n)||wIe(n)||CIe(n)||yIe()}function yIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
226
226
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CIe(n,e){if(n){if(typeof n=="string")return yT(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yT(n,e)}}function wIe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function SIe(n){if(Array.isArray(n))return yT(n)}function yT(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}var pw={withinBounds:function(n,e){var t=n.width,i=n.height,r=n.polar,s=n.origin,o=n.scale,a=Ci(n,"voronoiPadding"),l=e.x,c=e.y;if(r){var u=Math.pow(l-s.x,2)+Math.pow(c-s.y,2),d=Math.max.apply(Math,g_(o.y.range()));return u<Math.pow(d,2)}return l>=a.left&&l<=t-a.right&&c>=a.top&&c<=i-a.bottom},getDatasets:function(n){var e={x:ua(n.domain.x),y:ua(n.domain.y)},t=T.Children.toArray(n.children),i=function(o,a,l){var c=l&&l.type&&l.type.continuous,u=l?l.props&&l.props.style:n.style;return o.map(function(d,h){var f=t5(d),g=f.x,m=f.y,p=f.y0,v=f.x0,_=(Number(g)+Number(v))/2,b=(Number(m)+Number(p))/2;return oe({_voronoiX:n.voronoiDimension==="y"?e.x:_,_voronoiY:n.voronoiDimension==="x"?e.y:b,eventKey:h,childName:a,continuous:c,style:u},d)})};if(n.data)return i(n.data);var r=function(o){var a=Gs(o);return Array.isArray(a)&&a.length>0?a:void 0},s=function(o,a){var l=o.props||{},c=l.name||a,u=n.voronoiBlacklist||[],d=u.filter(bbe),h=u.filter(oF),f=h.some(function(p){return p.test(c)});if(!kE(o)||rh(d,c)||f)return null;var g=o.type&&zt(o.type.getData)?o.type.getData:r,m=g(o.props);return m?i(m,c,o):null};return sh(t,s,n)},findPoints:function(n,e){return n.filter(function(t){return e._voronoiX===t._voronoiX&&e._voronoiY===t._voronoiY})},withinRadius:function(n,e,t){if(!n)return!1;if(!t)return!0;var i=e.x,r=e.y,s=Math.pow(i-n[0],2)+Math.pow(r-n[1],2);return s<Math.pow(t,2)},getVoronoiPoints:function(n,e){var t=this.getDatasets(n),i=t.map(function(l){var c=Qy(n,l),u=c.x,d=c.y;return[u,d]}),r=bIe.from(i),s=r.find(e.x,e.y),o=this.withinRadius(i[s],e,n.radius),a=o?this.findPoints(t,t[s]):[];return{points:a,index:s}},getActiveMutations:function(n,e){var t=e.childName,i=e.continuous,r=n.activateData,s=n.activateLabels,o=n.labels;if(!r&&!s)return[];var a=r?["data"]:[],l=o&&!s?a:a.concat("labels");return ti(l)?[]:l.map(function(c){var u=i===!0&&c==="data"?"all":e.eventKey;return{childName:t,eventKey:u,target:c,mutation:function(){return{active:!0}}}})},getInactiveMutations:function(n,e){var t=e.childName,i=e.continuous,r=n.activateData,s=n.activateLabels,o=n.labels;if(!r&&!s)return[];var a=r?["data"]:[],l=o&&!s?a:a.concat("labels");return ti(l)?[]:l.map(function(c){var u=i&&c==="data"?"all":e.eventKey;return{childName:t,eventKey:u,target:c,mutation:function(){return null}}})},getParentMutation:function(n,e,t,i){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:n,mousePosition:e,parentSVG:t,vIndex:i}}}]},onActivated:function(n,e){zt(n.onActivated)&&n.onActivated(e,n)},onDeactivated:function(n,e){zt(n.onDeactivated)&&n.onDeactivated(e,n)},onMouseLeave:function(n,e){var t=this,i,r=e.activePoints||[];this.onDeactivated(e,r);var s=r.length?r.map(function(o){return t.getInactiveMutations(e,o)}):[];return(i=this.getParentMutation([])).concat.apply(i,g_(s))},onMouseMove:function(n,e){var t=this,i=e.activePoints||[],r=e.parentSVG||p$(n),s=l5e(n,r);if(!this.withinBounds(e,s)){var o;this.onDeactivated(e,i);var a=i.length?i.map(function(m){return t.getInactiveMutations(e,m)}):[];return(o=this.getParentMutation([],s,r)).concat.apply(o,g_(a))}var l=this.getVoronoiPoints(e,s),c=l.points,u=c===void 0?[]:c,d=l.index,h=this.getParentMutation(u,s,r,d);if(i.length&&ca(u,i))return h;this.onActivated(e,u),this.onDeactivated(e,i);var f=u.length?u.map(function(m){return t.getActiveMutations(e,m)}):[],g=i.length?i.map(function(m){return t.getInactiveMutations(e,m)}):[];return h.concat.apply(h,g_(g).concat(g_(f)))}};const _w={onMouseLeave:pw.onMouseLeave.bind(pw),onMouseMove:_Ie(pw.onMouseMove.bind(pw),32,{leading:!0,trailing:!1})};var xIe=["childName","eventKey","style","continuous"];function LIe(n){return TIe(n)||EIe(n)||DIe(n)||kIe()}function kIe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
227
227
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DIe(n,e){if(n){if(typeof n=="string")return CT(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return CT(n,e)}}function EIe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function TIe(n){if(Array.isArray(n))return CT(n)}function CT(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function IIe(n,e){if(n==null)return{};var t=AIe(n,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function AIe(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function J$(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Ug(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?J$(Object(t),!0).forEach(function(i){OIe(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):J$(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function OIe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function NIe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function eH(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function MIe(n,e,t){return e&&eH(n.prototype,e),t&&eH(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function PIe(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&wT(n,e)}function wT(n,e){return wT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},wT(n,e)}function RIe(n){var e=WIe();return function(){var i=vw(n),r;if(e){var s=vw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return FIe(this,r)}}function FIe(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BIe(n)}function BIe(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function WIe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vw(n){return vw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vw(n)}var VIe=function(n){var e;return e=function(t){PIe(r,t);var i=RIe(r);function r(){return NIe(this,r),i.apply(this,arguments)}return MIe(r,[{key:"getDimension",value:function(o){var a=o.horizontal,l=o.voronoiDimension;return!a||!l?l:l==="x"?"y":"x"}},{key:"getPoint",value:function(o){var a=["_x","_x1","_x0","_y","_y1","_y0"];return U0(o,a)}},{key:"getLabelPosition",value:function(o,a,l){var c=o.mousePosition,u=o.mouseFollowTooltips,d=this.getDimension(o),h=this.getPoint(l[0]),f=Qy(o,h),g=u?c:void 0;if(!d||l.length<2)return Ug(Ug({},f),{},{center:Ve({},a.center,g)});var m=d==="y"?c.x:f.x,p=d==="x"?c.y:f.y;return g=u?c:{x:m,y:p},{x:m,y:p,center:Ve({},a.center,g)}}},{key:"getStyle",value:function(o,a,l){var c=o.labels,u=o.labelComponent,d=o.theme,h=u.props||{},f=d&&d.voronoi&&d.voronoi.style?d.voronoi.style:{},g=l==="flyout"?h.flyoutStyle:h.style;return a.reduce(function(m,p,v){var _=Ve({},h,{datum:p,active:!0}),b=zt(c)?c(_):void 0,y=b!==void 0?"".concat(b).split(`
|
228
228
|
`):[],w=p.style&&p.style[l]||{},k=Array.isArray(g)?g[v]:g,L=$n(Ve({},k,w,f[l]),_),D=y.length?y.map(function(){return L}):[L];return m=m.concat(D),m},[])}},{key:"getDefaultLabelProps",value:function(o,a){var l=o.voronoiDimension,c=o.horizontal,u=o.mouseFollowTooltips,d=this.getPoint(a[0]),h=l&&a.length>1,f=d._y1!==void 0?d._y1:d._y,g=f<0?"left":"right",m=f<0?"bottom":"top",p=c?g:m,v=u?void 0:p;return{orientation:v,pointerLength:h?0:void 0,constrainToVisibleArea:h||u?!0:void 0}}},{key:"getLabelProps",value:function(o,a){var l=o.labels,c=o.scale,u=o.labelComponent,d=o.theme,h=o.width,f=o.height,g=u.props||{},m=a.reduce(function(L,D){var E=Ve({},g,{datum:D,active:!0}),N=zt(l)?l(E):null;return N==null||(L=L.concat("".concat(N).split(`
|
@@ -294,27 +294,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
294
294
|
L ${s}, ${a}
|
295
295
|
L ${n}, ${o}
|
296
296
|
z`}},i6e=n=>{const{x:e,y:t}=n,i=je(n.size,n);if(n.getPath)return n.getPath(e,t,i);const r={circle:Xs.circle,square:Xs.square,diamond:Xs.diamond,eyeSlash:Xs.eyeSlash,triangleDown:Xs.triangleDown,triangleLeft:Xs.triangleLeft,triangleRight:Xs.triangleRight,triangleUp:Xs.triangleUp,plus:Xs.plus,minus:Xs.minus,star:Xs.star,dash:Xs.dash,threshold:Xs.threshold},o=je(n.symbol,n);return(typeof r[o]=="function"?r[o]:r.square)(e,t,i)},VH=n=>{var{active:e,className:t,clipPath:i,datum:r,desc:s,events:o,pathComponent:a=ae.createElement(dh,null),role:l="presentation",shapeRendering:c="auto",tabIndex:u,transform:d}=n,h=wn(n,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const f=Object.assign({active:e,className:t,clipPath:i,datum:r,desc:s,events:o,role:l,shapeRendering:c,tabIndex:u,transform:d},h);return ae.cloneElement(a,Object.assign(Object.assign({className:t,clipPath:i,d:i6e(f),desc:je(s,f)},o),{role:l,shapeRendering:c,style:$n(h.style,f),tabIndex:je(u,f),transform:d}))};VH.displayName="ChartPoint";var $H;(function(n){n.horizontal="horizontal",n.vertical="vertical"})($H||($H={}));var Dw;(function(n){n.bottom="bottom",n.bottomLeft="bottom-left",n.right="right"})(Dw||(Dw={}));var HH;(function(n){n.bottom="bottom",n.top="top"})(HH||(HH={}));const Kg=n=>{var{colorScale:e,containerComponent:t=ae.createElement(ga,null),dataComponent:i=ae.createElement(VH,null),labelComponent:r=ae.createElement(nl,null),name:s,patternScale:o,responsive:a=!0,style:l,themeColor:c,themeVariant:u,titleComponent:d=ae.createElement(nl,null),theme:h=Oo(c)}=n,f=wn(n,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","themeVariant","titleComponent","theme"]);const g=()=>{if(!o)return l;const _=l?Object.assign({},l):{};return _.data=Object.assign({fill:({index:b})=>{const y=h&&h.legend&&h.legend.colorScale?h.legend.colorScale[b%h.legend.colorScale.length]:void 0,w=e?e[b%e.length]:y,k=o[b%o.length];return k||w}},_.data),_},m=ae.cloneElement(t,Object.assign({responsive:a,theme:h},t.props)),p=()=>ae.cloneElement(r,Object.assign(Object.assign({},s&&{id:_=>`${s}-${r.type.displayName}-${_.index}`}),r.props)),v=()=>ae.cloneElement(d,Object.assign(Object.assign({},s&&{id:()=>`${s}-${d.type.displayName}`}),d.props));return ae.createElement(Lw,Object.assign({colorScale:e,containerComponent:m,dataComponent:i,labelComponent:p(),name:s,style:g(),theme:h,titleComponent:v()},f))};Kg.displayName="ChartLegend",Ss(Kg,Lw,{getBaseProps:!0}),Kg.getBaseProps=n=>{const e=Oo(null);return Lw.getBaseProps(Object.assign({titleComponent:ae.createElement(nl,null)},n),{height:e.chart.height,orientation:e.legend.orientation,titleOrientation:e.legend.titleOrientation,x:0,y:0,width:e.chart.width})};const MT=n=>{var{ariaDesc:e,ariaTitle:t,children:i,colorScale:r,hasPatterns:s,legendAllowWrap:o=!1,legendComponent:a=ae.createElement(Kg,null),legendData:l,legendPosition:c=dr.legend.position,name:u,padding:d,patternScale:h,showAxis:f=!0,themeColor:g,themeVariant:m,theme:p=JPe(g,f),containerComponent:v=ae.createElement(ga,null),legendOrientation:_=p.legend.orientation,height:b=p.chart.height,width:y=p.chart.width}=n,w=wn(n,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","padding","patternScale","showAxis","themeColor","themeVariant","theme","containerComponent","legendOrientation","height","width"]);const k={bottom:Zs("bottom",d,p.chart.padding),left:Zs("left",d,p.chart.padding),right:Zs("right",d,p.chart.padding),top:Zs("top",d,p.chart.padding)},{defaultColorScale:L,defaultPatternScale:D,isPatternDefs:E,patternId:N}=OT({colorScale:r,patternScale:h,hasPatterns:s,themeColorScale:p.chart.colorScale});let O;v.props.labelComponent&&v.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(O=ae.cloneElement(v.props.labelComponent,Object.assign(Object.assign({theme:p},D&&{patternScale:D}),v.props.labelComponent.props)));const I=ae.cloneElement(v,Object.assign(Object.assign(Object.assign({desc:e,title:t,theme:p},v.props),{className:yw({className:v.props.className})}),O&&{labelComponent:O})),M=ae.cloneElement(a,Object.assign(Object.assign(Object.assign({data:l},u&&{name:`${u}-${a.type.displayName}`}),{orientation:_,theme:p}),a.props)),B=()=>{if(!M.props.data)return null;let ee=0,re=0,se=0,ie=M.props.title?10:0;return ae.Children.toArray(i).map(J=>{J.type.role==="axis"&&J.props.label&&!J.props.dependentAxis&&(se=lNe({text:J.props.label,theme:p}).height+10,ie=0)}),c===Dw.bottom?re+=se+ie:c===Dw.bottomLeft&&(re+=se+ie,ee=-10),f||(re-=JR.value),xH(Object.assign({allowWrap:o,chartType:"chart",colorScale:r,dx:ee,dy:re,height:b,legendComponent:M,padding:k,position:c,theme:p,width:y},D&&{patternScale:D}))},V=()=>ae.Children.toArray(i).map((ee,re)=>{if(ae.isValidElement(ee)){const se=wn(ee.props,[]);return ae.cloneElement(ee,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:r},D&&{patternScale:D}),u&&typeof ee.name!==void 0&&{name:`${u}-${ee.type.displayName}-${re}`}),{theme:p}),se),ee.type.displayName==="ChartPie"&&{data:t4e(se.data,D)}))}return ee});return ae.createElement(gw,Object.assign({colorScale:r,containerComponent:I,height:b,name:u,padding:k,theme:p,width:y},w),V(),B(),E&&AT({patternId:N,colorScale:L}))};MT.displayName="Chart",Ss(MT,gw);var r6e=function(n,e){var t=Gs(n);t.length<2&&(t=[]);var i=function(r){var s=MB(e[r])==="log"?1/Number.MAX_SAFE_INTEGER:0,o=e[r].domain(),a=ua(o),l=nc(o),c=s;return a<0&&l<=0?c=l:a>=0&&l>0&&(c=a),tc(o)?new Date(c):c};return t.map(function(r){var s=r._y1!==void 0?r._y1:r._y,o=r._y0!==void 0?r._y0:i("y"),a=r._x1!==void 0?r._x1:r._x,l=r._x0!==void 0?r._x0:i("x");return oe({},r,{_y0:o,_y1:s,_x0:l,_x1:a})})},s6e=function(n){var e=n.polar,t=i5(n,"area"),i=Jy(n.style,t),r={x:ar(n,"x"),y:ar(n,"y")},s={x:OE(n,"x"),y:OE(n,"y")},o={x:Ja(n,"x").domain(s.x).range(n.horizontal?r.y:r.x),y:Ja(n,"y").domain(s.y).range(n.horizontal?r.x:r.y)},a=e?n.origin||eC(n):void 0,l=r6e(n,o);return{style:i,data:l,scale:o,domain:s,origin:a}},o6e=function(n,e){var t=lr(n,e,"area");n=oe({},t,s6e(t));var i=n,r=i.data,s=i.domain,o=i.events,a=i.groupComponent,l=i.height,c=i.horizontal,u=i.interpolation,d=i.origin,h=i.padding,f=i.polar,g=i.scale,m=i.sharedEvents,p=i.standalone,v=i.style,_=i.theme,b=i.width,y=i.labels,w=i.name,k=i.disableInlineStyles,L={parent:{style:v.parent,width:b,height:l,scale:g,data:r,domain:s,standalone:p,theme:_,polar:f,origin:d,padding:h,name:w,horizontal:c},all:{data:{horizontal:c,polar:f,origin:d,scale:g,data:r,interpolation:u,groupComponent:a,style:k?{}:v.data,disableInlineStyles:k}}};return r.reduce(function(D,E,N){var O=q5(n,E,N);if(O!=null||y&&(o||m)){var I=Fg(E.eventKey)?N:E.eventKey;D[I]={labels:YB(n,N)}}return D},L)};function jH(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Ew(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jH(Object(t),!0).forEach(function(i){a6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):jH(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function a6e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var PT=function(n){var e=n._y1!==void 0?n._y1:n._y;return e!=null&&n._y0!==null},zH=function(n){return function(e){return n.x(e._x1!==void 0?e._x1:e._x)}},RT=function(n){return function(e){return n.y(e._y1!==void 0?e._y1:e._y)}},FT=function(n){return function(e){return n.y(e._y0)}},l6e=function(n){return function(e){var t=n.x(e._x1!==void 0?e._x1:e._x);return-1*t+Math.PI/2}},c6e=function(n){var e=n.horizontal,t=n.scale,i=ow(n);return e?QC().defined(PT).curve(i).x0(FT(t)).x1(RT(t)).y(zH(t)):QC().defined(PT).curve(i).x(zH(t)).y1(RT(t)).y0(FT(t))},u6e=function(n){var e=n.polar,t=n.scale,i=ow(n);return e?jE().defined(PT).curve(i).angle(l6e(t)).outerRadius(RT(t)).innerRadius(FT(t)):c6e(n)},d6e=function(n){var e=je(n.ariaLabel,n),t=je(n.desc,n),i=je(n.id,n),r=$n(oe({fill:"black"},n.style),n),s=je(n.tabIndex,n);return oe({},n,{ariaLabel:e,desc:t,id:i,style:r,tabIndex:s})},BT=function(n){n=d6e(n);var e=n,t=e.ariaLabel,i=e.role,r=e.shapeRendering,s=e.className,o=e.polar,a=e.origin,l=e.data,c=e.pathComponent,u=e.events,d=e.groupComponent,h=e.clipPath,f=e.id,g=e.style,m=e.desc,p=e.tabIndex,v=da(n),_=o&&a?"translate(".concat(a.x,", ").concat(a.y,")"):void 0,b=n.transform||_,y=g.stroke&&g.stroke!=="none"&&g.stroke!=="transparent",w=u6e(n),k=y&&f$(n),L=g.stroke?"none":g.fill,D=Ew(Ew({"aria-label":t,className:s,role:i,shapeRendering:r,transform:b},u),{},{clipPath:h,tabIndex:p}),E=T.cloneElement(c,oe({key:"".concat(f,"-area"),style:oe({},g,{stroke:L}),d:w(l),desc:m,tabIndex:p},D,v)),N=y?T.cloneElement(c,oe({key:"".concat(f,"-area-stroke"),style:oe({},g,{fill:"none"}),d:k(l)},D)):null;return y?T.cloneElement(d,v,[E,N]):E};BT.propTypes=Ew(Ew({},yr.primitiveProps),{},{groupComponent:S.element,interpolation:S.oneOfType([S.string,S.func]),pathComponent:S.element}),BT.defaultProps={groupComponent:T.createElement("g",null),pathComponent:T.createElement(dh,null),role:"presentation",shapeRendering:"auto"};function UH(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function WT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?UH(Object(t),!0).forEach(function(i){h6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):UH(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function h6e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function f6e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function qH(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function g6e(n,e,t){return e&&qH(n.prototype,e),t&&qH(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function m6e(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&VT(n,e)}function VT(n,e){return VT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},VT(n,e)}function p6e(n){var e=b6e();return function(){var i=Tw(n),r;if(e){var s=Tw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return _6e(this,r)}}function _6e(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v6e(n)}function v6e(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function b6e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tw(n){return Tw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tw(n)}var KH={width:450,height:300,padding:50,interpolation:"linear"},y6e={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Qs=function(n){m6e(t,n);var e=p6e(t);function t(){return f6e(this,t),e.apply(this,arguments)}return g6e(t,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var r=t.animationWhitelist,s=t.role,o=lr(this.props,KH,s);if(this.shouldAnimate())return this.animateComponent(o,r);var a=this.renderContinuousData(o),l=o.standalone?this.renderContainer(o.containerComponent,a):a;return H5(l,o)}}]),t}(T.Component);Qs.animationWhitelist=["data","domain","height","padding","style","width"],Qs.propTypes=WT(WT(WT({},yr.baseProps),yr.dataProps),{},{interpolation:S.oneOfType([S.oneOf(["basis","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),S.func]),label:FB(S.string,"Use `labels` instead for individual data labels")}),Qs.defaultProps={containerComponent:T.createElement(ur,null),dataComponent:T.createElement(BT,null),groupComponent:T.createElement(Pg,null),labelComponent:T.createElement(br,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:hc.grayscale},Qs.displayName="VictoryArea",Qs.role="area",Qs.continuous=!0,Qs.defaultTransitions=fV(),Qs.defaultPolarTransitions=gV(),Qs.getDomain=OE,Qs.getData=Gs,Qs.getBaseProps=function(n){return o6e(n,KH)},Qs.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var GH=Bg(Qs,y6e),YH;(function(n){n.ascending="ascending",n.descending="descending"})(YH||(YH={}));const $T=n=>{var{containerComponent:e=ae.createElement(ga,null),themeColor:t,themeVariant:i,theme:r=Oo(t)}=n,s=wn(n,["containerComponent","themeColor","themeVariant","theme"]);const o=ae.cloneElement(e,Object.assign({theme:r},e.props));return ae.createElement(GH,Object.assign({containerComponent:o,theme:r},s))};$T.displayName="ChartArea",Ss($T,GH);const Iw=n=>{var{axisLabelComponent:e=ae.createElement(nl,null),containerComponent:t=ae.createElement(ga,null),name:i,showGrid:r=!1,themeColor:s,themeVariant:o,tickLabelComponent:a=ae.createElement(nl,null),theme:l=Oo(s)}=n,c=wn(n,["axisLabelComponent","containerComponent","name","showGrid","themeColor","themeVariant","tickLabelComponent","theme"]);const u=ae.cloneElement(t,Object.assign({theme:l},t.props)),d=()=>ae.cloneElement(e,Object.assign(Object.assign({},i&&{id:()=>`${i}-${e.type.displayName}`}),e.props)),h=()=>ae.cloneElement(a,Object.assign(Object.assign({},i&&{id:f=>`${i}-${a.type.displayName}-${f.index}`}),a.props));return ae.createElement(h_,Object.assign({axisLabelComponent:d(),containerComponent:u,name:i,theme:r?QPe(s):l,tickLabelComponent:h()},c))};Iw.displayName="ChartAxis",Ss(Iw,h_);function ZH(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Aw(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ZH(Object(t),!0).forEach(function(i){C6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ZH(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function C6e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var w6e=function(n){var e=n.slice,t=n.radius,i=n.innerRadius,r=n.cornerRadius;if(zt(n.pathFunction))return n.pathFunction(e);var s=ni(n.padAngle),o=ni(n.sliceStartAngle),a=ni(n.sliceEndAngle),l=BE().cornerRadius(r).outerRadius(t).innerRadius(i||0);return l(Ve({startAngle:o,endAngle:a,padAngle:s},e))},S6e=function(n){var e=$n(n.style,n),t=je(n.radius,oe({},n,{style:e})),i=je(n.innerRadius,oe({},n,{style:e,radius:t})),r=je(n.ariaLabel,n),s=je(n.id,n),o=je(n.cornerRadius,n),a=je(n.padAngle,n),l=je(n.sliceStartAngle,n),c=je(n.sliceEndAngle,n),u=je(n.tabIndex,n);return oe({},n,{ariaLabel:r,style:e,radius:t,innerRadius:i,id:s,cornerRadius:o,padAngle:a,sliceStartAngle:l,sliceEndAngle:c,tabIndex:u})},HT=function(n){n=S6e(n);var e=n.origin?"translate(".concat(n.origin.x,", ").concat(n.origin.y,")"):void 0;return T.cloneElement(n.pathComponent,Aw(Aw({},n.events),{},{"aria-label":n.ariaLabel,d:w6e(n),style:n.style,transform:n.transform||e,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex}))};HT.propTypes=Aw(Aw({},yr.primitiveProps),{},{cornerRadius:S.oneOfType([S.number,S.func]),datum:S.object,innerRadius:S.oneOfType([S.number,S.func]),padAngle:S.oneOfType([S.number,S.func]),pathComponent:S.element,pathFunction:S.func,radius:S.oneOfType([S.number,S.func]),slice:S.object,sliceEndAngle:S.oneOfType([S.number,S.func]),sliceStartAngle:S.oneOfType([S.number,S.func])}),HT.defaultProps={pathComponent:T.createElement(dh,null),role:"presentation",shapeRendering:"auto"};const x6e=HT;var L6e=function(n){return n==null||zt(n)?n:"".concat(n)},k6e=function(n,e,t){return n&&n.data&&n.data.fill?n.data.fill:e&&e[t%e.length]},D6e=function(n,e){return typeof n.radius=="number"?n.radius:Math.min(n.width-e.left-e.right,n.height-e.top-e.bottom)/2},E6e=function(n,e){var t=n.width,i=n.height,r=hi(n.origin)?n.origin:{};return{x:r.x!==void 0?r.x:(e.left-e.right+t)/2,y:r.y!==void 0?r.y:(e.top-e.bottom+i)/2}},T6e=function(n,e){var t=zt(n.padAngle)?0:n.padAngle,i=kV().sort(null).startAngle(ni(n.startAngle)).endAngle(ni(n.endAngle)).padAngle(ni(t)).value(function(r){return r._y});return i(e)},I6e=function(n){var e=n.colorScale,t=i5(n,"pie"),i=Jy(n.style,t),r=Array.isArray(e)?e:Z5(e),s=Ci(n),o=D6e(n,s),a=E6e(n,s),l=Gs(n),c=T6e(n,l);return oe({},n,{style:i,colors:r,padding:s,defaultRadius:o,data:l,slices:c,origin:a})},A6e=function(n,e){var t=e.style,i=e.colors,r=k6e(t,i,n);return oe({fill:r},t.data)},O6e=function(n,e,t){var i;return e.label?i=e.label:Array.isArray(n.labels)?i=n.labels[t]:i=zt(n.labels)?n.labels:e.xName||e._x,L6e(i)},N6e=function(n,e,t){var i=t&&t.padding||0,r=e||n+i;return BE().outerRadius(r).innerRadius(r)},M6e=function(n,e,t){var i={startAngle:t==="startAngle"?e.startAngle:e.endAngle,endAngle:t==="endAngle"?e.endAngle:e.startAngle},r=oe({},e,i);return n.centroid(r)},P6e=function(n,e){return e==="perpendicular"?n>90&&n<270?"bottom":"top":e==="parallel"?n>=0&&n<=180?"right":"left":n<45||n>315?"top":n>=45&&n<135?"right":n>=135&&n<225?"bottom":"left"},R6e=function(n){return n==="top"||n==="bottom"?"middle":n==="right"?"start":"end"},F6e=function(n){return n==="left"||n==="right"?"middle":n==="bottom"?"start":"end"},B6e=function(n,e,t){var i=0;e.angle!==void 0?i=t.angle:e==="centroid"?i=ec((n.startAngle+n.endAngle)/2):i=ec(e==="startAngle"?n.startAngle:n.endAngle);var r=i<0?360-i:i;return r%360},W6e=function(n,e){return e==="vertical"?0:e==="parallel"?n>180&&n<360?n+90:n-90:n>90&&n<270?n-180:n},V6e=function(n,e,t){var i=e.index,r=e.datum,s=e.data,o=e.slice,a=e.labelComponent,l=e.theme,c=t.style,u=t.defaultRadius,d=t.origin,h=t.width,f=t.height,g=je(t.labelRadius,oe({text:n},e)),m=je(t.labelPosition,oe({text:n},e))||"centroid",p=je(t.labelPlacement,oe({text:n},e))||"vertical",v=oe({padding:0},c.labels),_=$n(v,oe({labelRadius:g,text:n},e)),b=N6e(u,g,_),y=M6e(b,o,m),w=B6e(o,m,v),k=W6e(w,p),L=P6e(w,p),D=v.textAnchor||R6e(L),E=v.verticalAnchor||F6e(L),N={width:h,height:f,index:i,datum:r,data:s,slice:o,orientation:L,text:n,style:v,x:Math.round(y[0])+d.x,y:Math.round(y[1])+d.y,textAnchor:D,verticalAnchor:E,angle:k};if(!n5(a))return N;var O=l&&l.tooltip||{};return Ve({},N,Eg(O,["style"]))},$6e=function(n,e){n=lr(n,e,"pie");var t=I6e(n),i=t.slices,r=t.style,s=t.data,o=t.origin,a=t.defaultRadius,l=t.labels,c=t.events,u=t.sharedEvents,d=t.height,h=t.width,f=t.standalone,g=t.name,m=t.innerRadius,p=t.cornerRadius,v=t.padAngle,_=t.disableInlineStyles,b=n.radius||a,y={parent:{standalone:f,height:d,width:h,slices:i,name:g,style:r.parent}};return i.reduce(function(w,k,L){var D=Ve({},s[L],{startAngle:ec(k.startAngle),endAngle:ec(k.endAngle),padAngle:ec(k.padAngle)}),E=Fg(D.eventKey)?L:D.eventKey,N={index:L,slice:k,datum:D,data:s,origin:o,innerRadius:m,radius:b,cornerRadius:p,padAngle:v,style:_?{}:A6e(L,t),disableInlineStyles:_};w[E]={data:N};var O=O6e(n,D,L);if(O!=null||l&&(c||u)){var I=je(O,N);w[E].labels=V6e(I,oe({},n,N),t)}return w},y)};function H6e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function XH(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function j6e(n,e,t){return e&&XH(n.prototype,e),t&&XH(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function z6e(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&jT(n,e)}function jT(n,e){return jT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},jT(n,e)}function U6e(n){var e=G6e();return function(){var i=Ow(n),r;if(e){var s=Ow(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return q6e(this,r)}}function q6e(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K6e(n)}function K6e(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function G6e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ow(n){return Ow=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ow(n)}var QH={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid"},il=function(n){z6e(t,n);var e=U6e(t);function t(){return H6e(this,t),e.apply(this,arguments)}return j6e(t,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var r=t.animationWhitelist,s=t.role,o=lr(this.props,QH,s);if(this.shouldAnimate())return this.animateComponent(o,r);var a=this.renderData(o),l=o.standalone?this.renderContainer(o.containerComponent,a):a;return H5(l,o)}}]),t}(T.Component);il.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],il.displayName="VictoryPie",il.role="pie",il.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(n){return{y_:n._y,label:n.label}}}},il.propTypes={animate:S.oneOfType([S.bool,S.object]),colorScale:S.oneOfType([S.arrayOf(S.string),S.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:S.element,cornerRadius:S.oneOfType([it,S.func]),data:S.array,dataComponent:S.element,disableInlineStyes:S.bool,endAngle:S.number,eventKey:S.oneOfType([S.func,ai([ii,it]),S.string]),events:S.arrayOf(S.shape({target:S.oneOf(["data","labels","parent"]),eventKey:S.oneOfType([S.array,S.func,ai([ii,it]),S.string]),eventHandlers:S.object})),externalEventMutations:S.arrayOf(S.shape({callback:S.func,childName:S.oneOfType([S.string,S.array]),eventKey:S.oneOfType([S.array,ai([ii,it]),S.string]),mutation:S.func,target:S.oneOfType([S.string,S.array])})),groupComponent:S.element,height:it,innerRadius:S.oneOfType([it,S.func]),labelComponent:S.element,labelPlacement:S.oneOfType([S.func,S.oneOf(["parallel","perpendicular","vertical"])]),labelPosition:S.oneOfType([S.func,S.oneOf(["startAngle","centroid","endAngle"])]),labelRadius:S.oneOfType([it,S.func]),labels:S.oneOfType([S.func,S.array]),name:S.string,origin:S.shape({x:it,y:it}),padAngle:S.oneOfType([it,S.func]),padding:S.oneOfType([S.number,S.shape({top:S.number,bottom:S.number,left:S.number,right:S.number})]),radius:S.oneOfType([it,S.func]),sharedEvents:S.shape({events:S.array,getEventState:S.func}),sortKey:S.oneOfType([S.func,ai([ii,it]),S.string,S.arrayOf(S.string)]),sortOrder:S.oneOf(["ascending","descending"]),standalone:S.bool,startAngle:S.number,style:S.shape({parent:S.object,data:S.object,labels:S.object}),theme:S.object,width:it,x:S.oneOfType([S.func,ai([ii,it]),S.string,S.arrayOf(S.string)]),y:S.oneOfType([S.func,ai([ii,it]),S.string,S.arrayOf(S.string)])},il.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:T.createElement(x6e,null),labelComponent:T.createElement(br,null),containerComponent:T.createElement(ur,null),groupComponent:T.createElement("g",null),sortOrder:"ascending",theme:hc.grayscale},il.getBaseProps=function(n){return $6e(n,QH)},il.getData=Gs,il.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const Nw=Bg(il);var JH;(function(n){n.centroid="centroid",n.endAngle="endAngle",n.startAngle="startAngle"})(JH||(JH={}));var ej;(function(n){n.bottom="bottom",n.right="right"})(ej||(ej={}));var tj;(function(n){n.ascending="ascending",n.descending="descending"})(tj||(tj={}));const zT=n=>{var{allowTooltip:e=!0,ariaDesc:t,ariaTitle:i,colorScale:r,constrainToVisibleArea:s=!1,containerComponent:o=ae.createElement(ga,null),hasPatterns:a,legendAllowWrap:l=!1,legendComponent:c=ae.createElement(Kg,null),legendData:u,legendPosition:d=dr.legend.position,name:h,patternScale:f,patternUnshiftIndex:g,padding:m,radius:p,standalone:v=!0,style:_,themeColor:b,themeVariant:y,theme:w=Oo(b),labelComponent:k=e?ae.createElement(bw,{constrainToVisibleArea:s,theme:w}):void 0,legendOrientation:L=w.legend.orientation,height:D=w.pie.height,width:E=w.pie.width}=n,N=wn(n,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","themeVariant","theme","labelComponent","legendOrientation","height","width"]);const O={bottom:Zs("bottom",m,w.pie.padding),left:Zs("left",m,w.pie.padding),right:Zs("right",m,w.pie.padding),top:Zs("top",m,w.pie.padding)},{defaultColorScale:I,defaultPatternScale:M,isPatternDefs:B,patternId:V}=OT({colorScale:r,hasPatterns:a,patternScale:f,themeColorScale:w.pie.colorScale}),re=p||(()=>{const X=Qa({height:D,width:E,padding:O});return X>-1?X:void 0})(),se=()=>{if(!M)return _;const X=_?Object.assign({},_):{};return X.data=Object.assign({fill:({slice:ce})=>{const De=M[ce.index%M.length];return De||I[ce.index%I.length]}},X.data),X},ie=ae.createElement(Nw,Object.assign({colorScale:r,height:D,key:"pf-chart-pie",labelComponent:k,name:h,padding:m,radius:re,standalone:!1,style:se(),theme:w,width:E},N)),J=ae.cloneElement(c,Object.assign(Object.assign(Object.assign({colorScale:r,data:u},h&&{name:`${h}-${c.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:L,theme:w}),c.props)),ue=()=>J.props.data?xH(Object.assign({allowWrap:l,chartType:"pie",height:D,legendComponent:J,padding:O,position:d,theme:w,width:E},M&&{patternScale:M})):null,Z=v?ae.cloneElement(o,Object.assign({desc:t,height:D,title:i,width:E,theme:w},o.props),[ie,ue(),B&&AT({patternId:V,colorScale:I,patternUnshiftIndex:g})]):null;return v?ae.createElement(ae.Fragment,null,Z):ae.createElement(ae.Fragment,null,ie,ue(),B&&AT({patternId:V,colorScale:I,patternUnshiftIndex:g}))};zT.displayName="ChartPie",Ss(zT,Nw);var nj;(function(n){n.centroid="centroid",n.endAngle="endAngle",n.startAngle="startAngle"})(nj||(nj={}));var ij;(function(n){n.ascending="ascending",n.descending="descending"})(ij||(ij={}));var UT;(function(n){n.bottom="bottom",n.center="center",n.right="right"})(UT||(UT={}));const Mw=n=>{var{allowTooltip:e=!0,ariaDesc:t,ariaTitle:i,capHeight:r=1.1,containerComponent:s=ae.createElement(ga,null),innerRadius:o,legendAllowWrap:a,legendPosition:l=dr.legend.position,name:c,padAngle:u,padding:d,radius:h,standalone:f=!0,subTitle:g,subTitleComponent:m,subTitlePosition:p=m_.label.subTitlePosition,themeColor:v,themeVariant:_,title:b,titleComponent:y=ae.createElement(nl,null),theme:w=e6e(v),height:k=w.pie.height,width:L=w.pie.width}=n,D=wn(n,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendAllowWrap","legendPosition","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","themeVariant","title","titleComponent","theme","height","width"]);const E={bottom:Zs("bottom",d,w.pie.padding),left:Zs("left",d,w.pie.padding),right:Zs("right",d,w.pie.padding),top:Zs("top",d,w.pie.padding)},N=h||Qa({height:k,width:L,padding:E}),O=o||N-9,I=g&&p===UT.center,M=()=>!m&&I?ee({styles:[m_.label.title,m_.label.subTitle],titles:[b,g]}):ae.createElement(ae.Fragment,{key:"pf-chart-donut-titles"},ee({titles:b,dy:I?-8:0}),V({textComponent:m,dy:I?15:0})),B=({datum:ie})=>ie._y>0?w.pie.padAngle:0,V=({dy:ie=0,textComponent:J=ae.createElement(nl,null)})=>{if(!g)return null;const ue=J.props?J.props:{};return ae.cloneElement(J,Object.assign(Object.assign(Object.assign({},c&&{id:`${c}-${J.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:m_.label.subTitle,text:g,textAnchor:p==="right"?"start":"middle",verticalAnchor:"middle",x:dH({height:k,labelPosition:p,legendPosition:l,padding:E,width:L}),y:hH({dy:ie,height:k,labelPosition:p,padding:E,width:L})}),ue))},ee=({dy:ie=0,styles:J=m_.label.title,titles:ue=b})=>{if(!ue)return null;const Z=y?y.props:{};return ae.cloneElement(y,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(ue)&&{capHeight:r}),c&&{id:`${c}-${y.type.displayName}-title`}),{key:"pf-chart-donut-title",style:J,text:ue,textAnchor:"middle",verticalAnchor:"middle",x:dH({height:k,labelPosition:"center",legendPosition:l,padding:E,width:L}),y:hH({dy:ie,height:k,labelPosition:"center",padding:E,width:L})}),Z))},re=ae.createElement(zT,Object.assign({allowTooltip:e,height:k,innerRadius:O>0?O:0,key:"pf-chart-donut-pie",legendAllowWrap:a,legendPosition:l,name:c,padAngle:u!==void 0?u:B,padding:d,radius:N>0?N:0,standalone:!1,theme:w,width:L},D)),se=ae.cloneElement(s,Object.assign({desc:t,height:k,title:i,width:L,theme:w},s.props),[re,M()]);return f?ae.createElement(ae.Fragment,null,se):ae.createElement(ae.Fragment,null,re,M())};Mw.displayName="ChartDonut",Ss(Mw,Nw);var rj;(function(n){n.centroid="centroid",n.endAngle="endAngle",n.startAngle="startAngle"})(rj||(rj={}));var sj;(function(n){n.horizontal="horizontal",n.vertical="vertical"})(sj||(sj={}));var oj;(function(n){n.bottom="bottom",n.right="right"})(oj||(oj={}));var aj;(function(n){n.ascending="ascending",n.descending="descending"})(aj||(aj={}));var lj;(function(n){n.bottom="bottom",n.center="center",n.right="right"})(lj||(lj={}));const qT=n=>{var{allowTooltip:e=!0,ariaDesc:t,ariaTitle:i,colorScale:r,containerComponent:s=ae.createElement(ga,null),data:o,invert:a=!1,isStatic:l=!0,legendPosition:c=dr.legend.position,padding:u,standalone:d=!0,themeColor:h,themeVariant:f,thresholds:g,x:m,y:p,theme:v=t6e(h),height:_=v.pie.height,width:b=v.pie.width}=n,y=wn(n,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","padding","standalone","themeColor","themeVariant","thresholds","x","y","theme","height","width"]);const w=()=>{const O=k(),I=[{x:O[0]._x,y:O[0]._y||0}];return l&&I.push({y:O[0]._x?Math.abs(100-O[0]._y):100}),I},k=()=>{const O=[Object.assign({},o)];return xE(O,Object.assign({x:m,y:p},y),["x","y"]).sort((I,M)=>I._y-M._y)},L=()=>{const O=[];if(g){const I=Lg(g,"value",a?"desc":"asc"),M=lH.thresholds.colorScale.length;for(let B=0;B<I.length;B++)O.push({color:I[B].color?I[B].color:lH.thresholds.colorScale[B%M],value:I[B].value})}return O},D=()=>{const O=Object.assign({},v),I=k();if(I){const M=L(),B=V=>{O.pie.colorScale instanceof Array?O.pie.colorScale[0]=M[V].color:O.pie.colorScale=M[V].color,O.legend.colorScale instanceof Array?O.legend.colorScale[0]=M[V].color:O.legend.colorScale=M[V].color};for(let V=0;V<M.length;V++)a?I[0]._y<=M[V].value&&B(V):I[0]._y>=M[V].value&&B(V)}return O},E=ae.createElement(Mw,Object.assign({allowTooltip:e,colorScale:r,data:w(),height:_,key:"pf-chart-donut-utilization",legendPosition:c,padding:u,standalone:!1,theme:D(),width:b},y)),N=ae.cloneElement(s,Object.assign({desc:t,height:_,title:i,width:b,theme:v},s.props),[E]);return d?ae.createElement(ae.Fragment,null,N):ae.createElement(ae.Fragment,null,E)};qT.displayName="ChartDonutUtilization",Ss(qT,Nw);var Y6e=function(n){var e=Gs(n);e.length<2&&(e=[]);var t={x:ar(n,"x"),y:ar(n,"y")},i={x:zC(n,"x"),y:zC(n,"y")},r={x:Ja(n,"x").domain(i.x).range(n.horizontal?t.y:t.x),y:Ja(n,"y").domain(i.y).range(n.horizontal?t.x:t.y)},s=n.polar?n.origin||eC(n):void 0,o=i5(n,"line"),a=Jy(n.style,o);return{domain:i,data:e,scale:r,style:a,origin:s}},Z6e=function(n,e){var t=lr(n,e,"line");n=oe({},t,Y6e(t));var i=n,r=i.data,s=i.domain,o=i.events,a=i.groupComponent,l=i.height,c=i.horizontal,u=i.interpolation,d=i.origin,h=i.padding,f=i.polar,g=i.scale,m=i.sharedEvents,p=i.standalone,v=i.style,_=i.theme,b=i.width,y=i.labels,w=i.name,k=i.disableInlineStyles,L={parent:{style:v.parent,scale:g,data:r,height:l,width:b,name:w,domain:s,standalone:p,polar:f,origin:d,padding:h,horizontal:c},all:{data:{horizontal:c,polar:f,origin:d,scale:g,data:r,interpolation:u,groupComponent:a,style:k?{}:v.data,theme:_,disableInlineStyles:k}}};return r.reduce(function(D,E,N){var O=q5(n,E,N);if(O!=null||y&&(o||m)){var I=Fg(E.eventKey)?N:E.eventKey;D[I]={labels:YB(n,N)}}return D},L)};function cj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function p_(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?cj(Object(t),!0).forEach(function(i){X6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):cj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function X6e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Q6e=function(n){var e=je(n.ariaLabel,n),t=je(n.id,n),i=$n(oe({fill:"none",stroke:"black",pointerEvents:"stroke"},n.style),n),r=je(n.tabIndex,n);return oe({},n,{ariaLabel:e,id:t,style:i,tabIndex:r})},KT=function(n){n=Q6e(n);var e=da(n),t=n,i=t.polar,r=t.origin,s=f$(n),o=i&&r?"translate(".concat(r.x,", ").concat(r.y,")"):void 0,a=s(n.data);return T.cloneElement(n.pathComponent,p_(p_(p_({},n.events),e),{},{"aria-label":n.ariaLabel,d:a,style:n.style,transform:n.transform||o,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex}))};KT.propTypes=p_(p_({},yr.primitiveProps),{},{interpolation:S.oneOfType([S.string,S.func]),openCurve:S.bool,origin:S.shape({x:S.number.isRequired,y:S.number.isRequired}),pathComponent:S.element,polar:S.bool}),KT.defaultProps={pathComponent:T.createElement(dh,null),role:"presentation",shapeRendering:"auto"};function uj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function GT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?uj(Object(t),!0).forEach(function(i){J6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):uj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function J6e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function e3e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function dj(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function t3e(n,e,t){return e&&dj(n.prototype,e),t&&dj(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function n3e(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&YT(n,e)}function YT(n,e){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},YT(n,e)}function i3e(n){var e=o3e();return function(){var i=Pw(n),r;if(e){var s=Pw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return r3e(this,r)}}function r3e(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s3e(n)}function s3e(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function o3e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pw(n){return Pw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pw(n)}var hj={width:450,height:300,padding:50,interpolation:"linear"},a3e={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Js=function(n){n3e(t,n);var e=i3e(t);function t(i){return e3e(this,t),e.call(this,i)}return t3e(t,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var r=t.animationWhitelist,s=t.role,o=lr(this.props,hj,s);if(this.shouldAnimate())return this.animateComponent(o,r);var a=this.renderContinuousData(o),l=o.standalone?this.renderContainer(o.containerComponent,a):a;return H5(l,o)}}]),t}(T.Component);Js.animationWhitelist=["data","domain","height","padding","samples","style","width"],Js.displayName="VictoryLine",Js.role="line",Js.defaultTransitions=fV(),Js.defaultPolarTransitions=gV(),Js.continuous=!0,Js.propTypes=GT(GT(GT({},yr.baseProps),yr.dataProps),{},{interpolation:S.oneOfType([S.oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),S.func]),label:FB(S.string,"Use `labels` instead for individual data labels")}),Js.defaultProps={containerComponent:T.createElement(ur,null),dataComponent:T.createElement(KT,null),labelComponent:T.createElement(br,{renderInPortal:!0}),groupComponent:T.createElement(Pg,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:hc.grayscale},Js.getDomain=zC,Js.getData=Gs,Js.getBaseProps=function(n){return Z6e(n,hj)},Js.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var fj=Bg(Js,a3e),gj;(function(n){n.ascending="ascending",n.descending="descending"})(gj||(gj={}));const ZT=n=>{var{containerComponent:e=ae.createElement(ga,null),themeColor:t,themeVariant:i,theme:r=Oo(t)}=n,s=wn(n,["containerComponent","themeColor","themeVariant","theme"]);const o=ae.cloneElement(e,Object.assign({theme:r},e.props));return ae.createElement(fj,Object.assign({containerComponent:o,theme:r},s))};ZT.displayName="ChartLine",Ss(ZT,fj);function l3e(n,e){return h3e(n)||d3e(n,e)||u3e(n,e)||c3e()}function c3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
297
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u3e(n,e){if(n){if(typeof n=="string")return mj(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mj(n,e)}}function mj(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function d3e(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i=[],r=!0,s=!1,o,a;try{for(t=t.call(n);!(r=(o=t.next()).done)&&(i.push(o.value),!(e&&i.length===e));r=!0);}catch(l){s=!0,a=l}finally{try{!r&&t.return!=null&&t.return()}finally{if(s)throw a}}return i}}function h3e(n){if(Array.isArray(n))return n}function pj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function _j(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?pj(Object(t),!0).forEach(function(i){f3e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):pj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function f3e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var vj={width:450,height:300,padding:50};function g3e(n,e){var t=n.fillInMissingData,i=e.reduce(function(o,a){return a.forEach(function(l){o[l._x instanceof Date?l._x.getTime():l._x]=!0}),o},{}),r=Vn(i).map(function(o){return Number(o)}),s=Lg(r);return e.map(function(o){var a=0,l=o[0]&&o[0]._x instanceof Date,c=s.map(function(u,d){u=Number(u);var h=o[d-a];if(h){var f=l?h._x.getTime():h._x;if(f===u)return h;a++;var g=t?0:null;return u=l?new Date(u):u,{x:u,y:g,_x:u,_y:g}}var m=t?0:null;return u=l?new Date(u):u,{x:u,y:m,_x:u,_y:m}});return c})}function m3e(n,e,t){if(n.y0)return n.y0;var i=n._y,r=n._group,s=t[0].map(function(c){return c.y0}),o=t.slice(0,e),a=o.reduce(function(c,u){return c.concat(u.filter(function(d){return n._x instanceof Date?d._x.getTime()===n._x.getTime():d._x===n._x}).map(function(d){return d._y||0}))},[]),l=a.length&&a.reduce(function(c,u){var d=i<0&&u<0||i>=0&&u>=0;return d?Number(u)+c:c},s[r]||0);return a.some(function(c){return c instanceof Date})?new Date(l):l}function p3e(n,e,t){var i=n.xOffset||0;return e[t].map(function(r){var s=m3e(r,t,e)||0;return oe({},r,{_y0:r._y instanceof Date?s?new Date(s):r._y:s,_y1:r._y===null?null:r._y instanceof Date?new Date(Number(r._y)+Number(s)):r._y+s,_x1:r._x===null?null:r._x instanceof Date?new Date(Number(r._x)+Number(i)):r._x+i})})}function _3e(n,e){var t=R5e(n,e),i=t.map(function(s){return s.filter(function(o){return o._x!==null&&o._y!==null})}),r=g3e(n,i);return r.map(function(s,o){return p3e(n,r,o)})}function bj(n,e){e=e||T.Children.toArray(n.children);var t="stack";n=lr(n,vj,t);var i=V5e(n.theme,n.style,t),r=n.categories||x$(n,e),s=n.datasets||_3e(n,e),o=e.map(function(g,m){return T.cloneElement(g,{data:s[m]})}),a={x:eT(oe({},n,{categories:r}),"x",o),y:eT(oe({},n,{categories:r}),"y",o)},l=n.range||{x:ar(n,"x"),y:ar(n,"y")},c={x:t_(n,"x")||aw(n,"x"),y:t_(n,"y")||aw(n,"y")},u={x:c.x.domain(a.x).range(n.horizontal?l.y:l.x),y:c.y.domain(a.y).range(n.horizontal?l.x:l.y)},d=n,h=d.colorScale,f=d.horizontal;return{datasets:s,categories:r,range:l,domain:a,horizontal:f,scale:u,style:i,colorScale:h,role:t}}var v3e=function(n){var e=n.children,t=T.Children.toArray(e).map(function(i){var r=i;return _j(_j({},r),{},{props:Eg(r.props,["sharedEvents"])})});return n.children=t,n};function b3e(n){var e=v3e(n),t=T.useState(e),i=l3e(t,2),r=i[0],s=i[1];return T.useEffect(function(){ca(e,r)||s(e)},[r,s,e]),T.useMemo(function(){return bj(r,r.children)},[r])}function y3e(n,e,t){if(n.labels)return e.length===t+1?n.labels:void 0}function C3e(n,e){var t=e.categories,i=e.domain,r=e.range,s=e.scale,o=e.horizontal;return{height:n.height,width:n.width,padding:Ci(n),standalone:!1,theme:n.theme,categories:t,domain:i,range:r,scale:s,horizontal:o}}function w3e(n,e){var t=e.type&&e.type.role,i=e.props.colorScale||n.colorScale;if(!(t!=="group"&&t!=="stack"))return n.theme?i||n.theme.props.colorScale:i}function yj(n,e,t){n=lr(n,vj,"stack"),e=e||T.Children.toArray(n.children),t=t||bj(n,e);var i=t,r=i.datasets,s=C3e(n,t),o=n.name||"stack";return e.map(function(a,l){var c=a.type&&a.type.role,u=r[l],d=$5e(a,l,t),h=n.labels?y3e(n,r,l):a.props.labels,f=a.props.name||"".concat(o,"-").concat(c,"-").concat(l);return T.cloneElement(a,oe({key:"".concat(f,"-key-").concat(l),labels:h,name:f,domainPadding:a.props.domainPadding||n.domainPadding,theme:n.theme,labelComponent:n.labelComponent||a.props.labelComponent,style:d,colorScale:w3e(n,a),data:u,polar:n.polar},s))})}function Cj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function wj(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Cj(Object(t),!0).forEach(function(i){S3e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Cj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function S3e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var x3e={width:450,height:300,padding:50},XT=function(n){var e=Rw.role,t=yV(),i=t.setAnimationState,r=t.getAnimationProps,s=t.getProps,o=s(n),a=lr(o,x3e,e),l=a.eventKey,c=a.containerComponent,u=a.standalone,d=a.groupComponent,h=a.externalEventMutations,f=a.width,g=a.height,m=a.theme,p=a.polar,v=a.horizontal,_=a.name,b=T.Children.toArray(a.children),y=b3e(a),w=y.domain,k=y.scale,L=y.style,D=T.useMemo(function(){var B=yj(o,b,y),V=B.map(function(ee,re){var se=oe({animate:r(o,ee,re)},ee.props);return T.cloneElement(ee,se)});return V.reverse()},[o,b,y,r]),E=T.useMemo(function(){return u?{domain:w,scale:k,width:f,height:g,standalone:u,theme:m,style:L.parent,horizontal:v,polar:p,name:_}:{}},[u,w,k,f,g,m,L,v,p,_]),N=T.useMemo(function(){return da(n)},[n]),O=T.useMemo(function(){if(u){var B=Ve({},c.props,E,N);return T.cloneElement(c,B)}return T.cloneElement(d,N)},[d,u,c,E,N]),I=T.useMemo(function(){return C$(o)},[o]),M=mV(n);return T.useEffect(function(){return function(){n.animate&&i(M,n)}},[i,M,n]),ti(I)?T.cloneElement(O,O.props,D):T.createElement(ph,{container:O,eventKey:l,events:I,externalEventMutations:h},D)};XT.propTypes=wj(wj({},yr.baseProps),{},{bins:S.oneOfType([S.arrayOf(S.oneOfType([it,S.instanceOf(Date)])),it]),categories:S.oneOfType([S.arrayOf(S.string),S.shape({x:S.arrayOf(S.string),y:S.arrayOf(S.string)})]),children:S.oneOfType([S.arrayOf(S.node),S.node]),colorScale:S.oneOfType([S.arrayOf(S.string),S.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:S.bool,horizontal:S.bool,labelComponent:S.element,labels:S.oneOfType([S.func,S.array]),style:S.shape({parent:S.object,data:S.object,labels:S.object}),xOffset:S.number}),XT.defaultProps={containerComponent:T.createElement(ur,null),groupComponent:T.createElement("g",null),standalone:!0,theme:hc.grayscale,fillInMissingData:!0};var L3e={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:yj},Rw=Object.assign(T.memo(XT,ca),L3e);Rw.displayName="VictoryStack";const QT=n=>{var{ariaDesc:e,ariaTitle:t,children:i,colorScale:r,containerComponent:s=ae.createElement(ga,null),hasPatterns:o,patternScale:a,themeColor:l,themeVariant:c,theme:u=Oo(l)}=n,d=wn(n,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","themeVariant","theme"]);const h=ae.cloneElement(s,Object.assign(Object.assign({desc:e,title:t,theme:u},s.props),{className:yw({className:s.props.className})})),{defaultPatternScale:f}=OT({colorScale:r,hasPatterns:o,patternScale:a,themeColorScale:u.stack.colorScale});return ae.createElement(Rw,Object.assign({colorScale:r,containerComponent:h,theme:u},d),i4e({children:i,patternScale:f}))};QT.displayName="ChartStack",Ss(QT,Rw);var Sj;(function(n){n.x="x",n.y="y"})(Sj||(Sj={}));const Fw=n=>{var{className:e,constrainToVisibleArea:t=!1,themeColor:i,themeVariant:r,theme:s=Oo(i),labelComponent:o=ae.createElement(bw,null)}=n,a=wn(n,["className","constrainToVisibleArea","themeColor","themeVariant","theme","labelComponent"]);const l=yw({className:e}),c=ae.cloneElement(o,Object.assign({constrainToVisibleArea:t,theme:s},o.props));return ae.createElement(ST,Object.assign({className:l,labelComponent:c,theme:s},a))};Fw.displayName="ChartVoronoiContainer",Fw.defaultProps=ST.defaultProps,Ss(Fw,ST);const rht="";function k3e(n){let{groups:e}=n;const{allowZero:t,xLabel:i,yLabel:r,minDomain:s,onlyIntegerTicks:o,useLines:a}=n;e=t?e:e.filter(d=>{for(const h of d.values)if(h.value!==0)return!0;return!1});const l=e.filter(d=>!!d.label).map(d=>({name:d.label,symbol:{fill:d.color,type:"square"}}));let c=60;i?l.length>0?c+=40:c+=16:l&&(c+=12);const u=!e.find(d=>d.values.find(h=>h.value!==0));return x.jsx(my,{className:"page-chart",children:d=>x.jsxs(MT,{padding:{bottom:c,left:60+(r?19:0),right:40,top:16},colorScale:e.map(h=>h.color),height:d.height,width:d.width,minDomain:s,maxDomain:u?{y:5}:void 0,legendPosition:"bottom",legendComponent:l.length>0?x.jsx(Kg,{data:l,orientation:"horizontal"}):void 0,containerComponent:x.jsx(Fw,{labels:h=>{const f=h.datum;return`${f.x}: ${f.y}`}}),children:[x.jsx(Iw,{fixLabelOverlap:!0,label:i,style:{axisLabel:{fontSize:16}}}),x.jsx(Iw,{dependentAxis:!0,showGrid:!0,label:r,tickFormat:o?h=>Number.isInteger(h)?h:"":void 0,style:{axisLabel:{fontSize:16}}}),a?e.map((h,f)=>x.jsx(ZT,{style:{data:{strokeWidth:3,stroke:h.color}},data:h.values.map(g=>({x:g.label,y:g.value})),interpolation:"monotoneX"},f)):x.jsx(QT,{children:e.map((h,f)=>x.jsx($T,{data:h.values.map(g=>({x:g.label,y:g.value})),interpolation:"monotoneX"},f))})]})})}function D3e(n){const{title:e,...t}=n;return x.jsx(_y,{width:"xxs",height:"xs",...t,children:x.jsx(R.CardBody,{children:x.jsx(R.Bullseye,{children:x.jsxs(R.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm"},alignItems:{default:"alignItemsCenter"},children:[x.jsx("span",{style:{fontSize:"xxx-large",lineHeight:1},children:n.count}),x.jsx(R.Title,{headingLevel:"h3",size:"xl",children:e})]})})})})}function __(n){"@babel/helpers - typeof";return __=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},__(n)}function E3e(n,e){if(__(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(__(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function xj(n){var e=E3e(n,"string");return __(e)==="symbol"?e:String(e)}function T3e(n,e,t){return e=xj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function I3e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Lj(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,xj(i.key),i)}}function A3e(n,e,t){return e&&Lj(n.prototype,e),t&&Lj(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var O3e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,N3e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},M3e=function(e){return N3e[e]},P3e=function(e){return e.replace(O3e,M3e)},R3e={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:P3e},F3e,B3e=T.createContext();function W3e(){return R3e}var V3e=function(){function n(){I3e(this,n),this.usedNamespaces={}}return A3e(n,[{key:"addUsedNamespaces",value:function(t){var i=this;t.forEach(function(r){i.usedNamespaces[r]||(i.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),n}();function $3e(){return F3e}function H3e(){if(console&&console.warn){for(var n,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];typeof t[0]=="string"&&(t[0]="react-i18next:: ".concat(t[0])),(n=console).warn.apply(n,t)}}var kj={};function JT(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];typeof e[0]=="string"&&kj[e[0]]||(typeof e[0]=="string"&&(kj[e[0]]=new Date),H3e.apply(void 0,e))}function Dj(n,e,t){n.loadNamespaces(e,function(){if(n.isInitialized)t();else{var i=function r(){setTimeout(function(){n.off("initialized",r)},0),t()};n.on("initialized",i)}})}function j3e(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.languages[0],r=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var o=function(l,c){var u=e.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(i,n)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(i,n)&&(!r||o(s,n)))}function z3e(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return JT("i18n.languages were undefined or empty",e.languages),!0;var i=e.options.ignoreJSONStructure!==void 0;return i?e.hasLoadedNamespace(n,{precheck:function(s,o){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,n))return!1}}):j3e(n,e,t)}function U3e(n){if(Array.isArray(n))return n}function q3e(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=s.call(t)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}function Ej(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function K3e(n,e){if(n){if(typeof n=="string")return Ej(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ej(n,e)}}function G3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
298
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y3e(n,e){return U3e(n)||q3e(n,e)||K3e(n,e)||G3e()}function Tj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function eI(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tj(Object(t),!0).forEach(function(i){T3e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Tj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}var Z3e=function(e,t){var i=T.useRef();return T.useEffect(function(){i.current=t?i.current:e},[e,t]),i.current};function ts(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.i18n,i=T.useContext(B3e)||{},r=i.i18n,s=i.defaultNS,o=t||r||$3e();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new V3e),!o){JT("You will need to pass in an i18next instance by using initReactI18next");var a=function(E){return Array.isArray(E)?E[E.length-1]:E},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}o.options.react&&o.options.react.wait!==void 0&&JT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=eI(eI(eI({},W3e()),o.options.react),e),u=c.useSuspense,d=c.keyPrefix,h=n||s||o.options&&o.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(h);var f=(o.isInitialized||o.initializedStoreOnce)&&h.every(function(D){return z3e(D,o,c)});function g(){return o.getFixedT(null,c.nsMode==="fallback"?h:h[0],d)}var m=T.useState(g),p=Y3e(m,2),v=p[0],_=p[1],b=h.join(),y=Z3e(b),w=T.useRef(!0);T.useEffect(function(){var D=c.bindI18n,E=c.bindI18nStore;w.current=!0,!f&&!u&&Dj(o,h,function(){w.current&&_(g)}),f&&y&&y!==b&&w.current&&_(g);function N(){w.current&&_(g)}return D&&o&&o.on(D,N),E&&o&&o.store.on(E,N),function(){w.current=!1,D&&o&&D.split(" ").forEach(function(O){return o.off(O,N)}),E&&o&&E.split(" ").forEach(function(O){return o.store.off(O,N)})}},[o,b]);var k=T.useRef(!0);T.useEffect(function(){w.current&&!k.current&&_(g),k.current=!1},[o,d]);var L=[v,o,f];if(L.t=v,L.i18n=o,L.ready=f,f||!f&&!u)return L;throw new Promise(function(D){Dj(o,h,function(){D()})})}function X3e(n){const{t:e}=ts(),{steps:t}=n;return t.every(r=>r.isComplete)?x.jsx(x.Fragment,{}):x.jsx(_y,{title:e("Getting Started"),width:"xxl",children:x.jsx(
|
297
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u3e(n,e){if(n){if(typeof n=="string")return mj(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mj(n,e)}}function mj(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function d3e(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i=[],r=!0,s=!1,o,a;try{for(t=t.call(n);!(r=(o=t.next()).done)&&(i.push(o.value),!(e&&i.length===e));r=!0);}catch(l){s=!0,a=l}finally{try{!r&&t.return!=null&&t.return()}finally{if(s)throw a}}return i}}function h3e(n){if(Array.isArray(n))return n}function pj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function _j(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?pj(Object(t),!0).forEach(function(i){f3e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):pj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function f3e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var vj={width:450,height:300,padding:50};function g3e(n,e){var t=n.fillInMissingData,i=e.reduce(function(o,a){return a.forEach(function(l){o[l._x instanceof Date?l._x.getTime():l._x]=!0}),o},{}),r=Vn(i).map(function(o){return Number(o)}),s=Lg(r);return e.map(function(o){var a=0,l=o[0]&&o[0]._x instanceof Date,c=s.map(function(u,d){u=Number(u);var h=o[d-a];if(h){var f=l?h._x.getTime():h._x;if(f===u)return h;a++;var g=t?0:null;return u=l?new Date(u):u,{x:u,y:g,_x:u,_y:g}}var m=t?0:null;return u=l?new Date(u):u,{x:u,y:m,_x:u,_y:m}});return c})}function m3e(n,e,t){if(n.y0)return n.y0;var i=n._y,r=n._group,s=t[0].map(function(c){return c.y0}),o=t.slice(0,e),a=o.reduce(function(c,u){return c.concat(u.filter(function(d){return n._x instanceof Date?d._x.getTime()===n._x.getTime():d._x===n._x}).map(function(d){return d._y||0}))},[]),l=a.length&&a.reduce(function(c,u){var d=i<0&&u<0||i>=0&&u>=0;return d?Number(u)+c:c},s[r]||0);return a.some(function(c){return c instanceof Date})?new Date(l):l}function p3e(n,e,t){var i=n.xOffset||0;return e[t].map(function(r){var s=m3e(r,t,e)||0;return oe({},r,{_y0:r._y instanceof Date?s?new Date(s):r._y:s,_y1:r._y===null?null:r._y instanceof Date?new Date(Number(r._y)+Number(s)):r._y+s,_x1:r._x===null?null:r._x instanceof Date?new Date(Number(r._x)+Number(i)):r._x+i})})}function _3e(n,e){var t=R5e(n,e),i=t.map(function(s){return s.filter(function(o){return o._x!==null&&o._y!==null})}),r=g3e(n,i);return r.map(function(s,o){return p3e(n,r,o)})}function bj(n,e){e=e||T.Children.toArray(n.children);var t="stack";n=lr(n,vj,t);var i=V5e(n.theme,n.style,t),r=n.categories||x$(n,e),s=n.datasets||_3e(n,e),o=e.map(function(g,m){return T.cloneElement(g,{data:s[m]})}),a={x:eT(oe({},n,{categories:r}),"x",o),y:eT(oe({},n,{categories:r}),"y",o)},l=n.range||{x:ar(n,"x"),y:ar(n,"y")},c={x:t_(n,"x")||aw(n,"x"),y:t_(n,"y")||aw(n,"y")},u={x:c.x.domain(a.x).range(n.horizontal?l.y:l.x),y:c.y.domain(a.y).range(n.horizontal?l.x:l.y)},d=n,h=d.colorScale,f=d.horizontal;return{datasets:s,categories:r,range:l,domain:a,horizontal:f,scale:u,style:i,colorScale:h,role:t}}var v3e=function(n){var e=n.children,t=T.Children.toArray(e).map(function(i){var r=i;return _j(_j({},r),{},{props:Eg(r.props,["sharedEvents"])})});return n.children=t,n};function b3e(n){var e=v3e(n),t=T.useState(e),i=l3e(t,2),r=i[0],s=i[1];return T.useEffect(function(){ca(e,r)||s(e)},[r,s,e]),T.useMemo(function(){return bj(r,r.children)},[r])}function y3e(n,e,t){if(n.labels)return e.length===t+1?n.labels:void 0}function C3e(n,e){var t=e.categories,i=e.domain,r=e.range,s=e.scale,o=e.horizontal;return{height:n.height,width:n.width,padding:Ci(n),standalone:!1,theme:n.theme,categories:t,domain:i,range:r,scale:s,horizontal:o}}function w3e(n,e){var t=e.type&&e.type.role,i=e.props.colorScale||n.colorScale;if(!(t!=="group"&&t!=="stack"))return n.theme?i||n.theme.props.colorScale:i}function yj(n,e,t){n=lr(n,vj,"stack"),e=e||T.Children.toArray(n.children),t=t||bj(n,e);var i=t,r=i.datasets,s=C3e(n,t),o=n.name||"stack";return e.map(function(a,l){var c=a.type&&a.type.role,u=r[l],d=$5e(a,l,t),h=n.labels?y3e(n,r,l):a.props.labels,f=a.props.name||"".concat(o,"-").concat(c,"-").concat(l);return T.cloneElement(a,oe({key:"".concat(f,"-key-").concat(l),labels:h,name:f,domainPadding:a.props.domainPadding||n.domainPadding,theme:n.theme,labelComponent:n.labelComponent||a.props.labelComponent,style:d,colorScale:w3e(n,a),data:u,polar:n.polar},s))})}function Cj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function wj(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Cj(Object(t),!0).forEach(function(i){S3e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Cj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function S3e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var x3e={width:450,height:300,padding:50},XT=function(n){var e=Rw.role,t=yV(),i=t.setAnimationState,r=t.getAnimationProps,s=t.getProps,o=s(n),a=lr(o,x3e,e),l=a.eventKey,c=a.containerComponent,u=a.standalone,d=a.groupComponent,h=a.externalEventMutations,f=a.width,g=a.height,m=a.theme,p=a.polar,v=a.horizontal,_=a.name,b=T.Children.toArray(a.children),y=b3e(a),w=y.domain,k=y.scale,L=y.style,D=T.useMemo(function(){var B=yj(o,b,y),V=B.map(function(ee,re){var se=oe({animate:r(o,ee,re)},ee.props);return T.cloneElement(ee,se)});return V.reverse()},[o,b,y,r]),E=T.useMemo(function(){return u?{domain:w,scale:k,width:f,height:g,standalone:u,theme:m,style:L.parent,horizontal:v,polar:p,name:_}:{}},[u,w,k,f,g,m,L,v,p,_]),N=T.useMemo(function(){return da(n)},[n]),O=T.useMemo(function(){if(u){var B=Ve({},c.props,E,N);return T.cloneElement(c,B)}return T.cloneElement(d,N)},[d,u,c,E,N]),I=T.useMemo(function(){return C$(o)},[o]),M=mV(n);return T.useEffect(function(){return function(){n.animate&&i(M,n)}},[i,M,n]),ti(I)?T.cloneElement(O,O.props,D):T.createElement(ph,{container:O,eventKey:l,events:I,externalEventMutations:h},D)};XT.propTypes=wj(wj({},yr.baseProps),{},{bins:S.oneOfType([S.arrayOf(S.oneOfType([it,S.instanceOf(Date)])),it]),categories:S.oneOfType([S.arrayOf(S.string),S.shape({x:S.arrayOf(S.string),y:S.arrayOf(S.string)})]),children:S.oneOfType([S.arrayOf(S.node),S.node]),colorScale:S.oneOfType([S.arrayOf(S.string),S.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:S.bool,horizontal:S.bool,labelComponent:S.element,labels:S.oneOfType([S.func,S.array]),style:S.shape({parent:S.object,data:S.object,labels:S.object}),xOffset:S.number}),XT.defaultProps={containerComponent:T.createElement(ur,null),groupComponent:T.createElement("g",null),standalone:!0,theme:hc.grayscale,fillInMissingData:!0};var L3e={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:yj},Rw=Object.assign(T.memo(XT,ca),L3e);Rw.displayName="VictoryStack";const QT=n=>{var{ariaDesc:e,ariaTitle:t,children:i,colorScale:r,containerComponent:s=ae.createElement(ga,null),hasPatterns:o,patternScale:a,themeColor:l,themeVariant:c,theme:u=Oo(l)}=n,d=wn(n,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","themeVariant","theme"]);const h=ae.cloneElement(s,Object.assign(Object.assign({desc:e,title:t,theme:u},s.props),{className:yw({className:s.props.className})})),{defaultPatternScale:f}=OT({colorScale:r,hasPatterns:o,patternScale:a,themeColorScale:u.stack.colorScale});return ae.createElement(Rw,Object.assign({colorScale:r,containerComponent:h,theme:u},d),i4e({children:i,patternScale:f}))};QT.displayName="ChartStack",Ss(QT,Rw);var Sj;(function(n){n.x="x",n.y="y"})(Sj||(Sj={}));const Fw=n=>{var{className:e,constrainToVisibleArea:t=!1,themeColor:i,themeVariant:r,theme:s=Oo(i),labelComponent:o=ae.createElement(bw,null)}=n,a=wn(n,["className","constrainToVisibleArea","themeColor","themeVariant","theme","labelComponent"]);const l=yw({className:e}),c=ae.cloneElement(o,Object.assign({constrainToVisibleArea:t,theme:s},o.props));return ae.createElement(ST,Object.assign({className:l,labelComponent:c,theme:s},a))};Fw.displayName="ChartVoronoiContainer",Fw.defaultProps=ST.defaultProps,Ss(Fw,ST);const rht="";function k3e(n){let{groups:e}=n;const{allowZero:t,xLabel:i,yLabel:r,minDomain:s,onlyIntegerTicks:o,useLines:a}=n;e=t?e:e.filter(d=>{for(const h of d.values)if(h.value!==0)return!0;return!1});const l=e.filter(d=>!!d.label).map(d=>({name:d.label,symbol:{fill:d.color,type:"square"}}));let c=60;i?l.length>0?c+=40:c+=16:l&&(c+=12);const u=!e.find(d=>d.values.find(h=>h.value!==0));return x.jsx(my,{className:"page-chart",children:d=>x.jsxs(MT,{padding:{bottom:c,left:60+(r?19:0),right:40,top:16},colorScale:e.map(h=>h.color),height:d.height,width:d.width,minDomain:s,maxDomain:u?{y:5}:void 0,legendPosition:"bottom",legendComponent:l.length>0?x.jsx(Kg,{data:l,orientation:"horizontal"}):void 0,containerComponent:x.jsx(Fw,{labels:h=>{const f=h.datum;return`${f.x}: ${f.y}`}}),children:[x.jsx(Iw,{fixLabelOverlap:!0,label:i,style:{axisLabel:{fontSize:16}}}),x.jsx(Iw,{dependentAxis:!0,showGrid:!0,label:r,tickFormat:o?h=>Number.isInteger(h)?h:"":void 0,style:{axisLabel:{fontSize:16}}}),a?e.map((h,f)=>x.jsx(ZT,{style:{data:{strokeWidth:3,stroke:h.color}},data:h.values.map(g=>({x:g.label,y:g.value})),interpolation:"monotoneX"},f)):x.jsx(QT,{children:e.map((h,f)=>x.jsx($T,{data:h.values.map(g=>({x:g.label,y:g.value})),interpolation:"monotoneX"},f))})]})})}function D3e(n){const{title:e,...t}=n;return x.jsx(_y,{width:"xxs",height:"xs",...t,children:x.jsx(P.CardBody,{children:x.jsx(P.Bullseye,{children:x.jsxs(P.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm"},alignItems:{default:"alignItemsCenter"},children:[x.jsx("span",{style:{fontSize:"xxx-large",lineHeight:1},children:n.count}),x.jsx(P.Title,{headingLevel:"h3",size:"xl",children:e})]})})})})}function __(n){"@babel/helpers - typeof";return __=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},__(n)}function E3e(n,e){if(__(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(__(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function xj(n){var e=E3e(n,"string");return __(e)==="symbol"?e:String(e)}function T3e(n,e,t){return e=xj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function I3e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Lj(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,xj(i.key),i)}}function A3e(n,e,t){return e&&Lj(n.prototype,e),t&&Lj(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var O3e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,N3e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},M3e=function(e){return N3e[e]},P3e=function(e){return e.replace(O3e,M3e)},R3e={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:P3e},F3e,B3e=T.createContext();function W3e(){return R3e}var V3e=function(){function n(){I3e(this,n),this.usedNamespaces={}}return A3e(n,[{key:"addUsedNamespaces",value:function(t){var i=this;t.forEach(function(r){i.usedNamespaces[r]||(i.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),n}();function $3e(){return F3e}function H3e(){if(console&&console.warn){for(var n,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];typeof t[0]=="string"&&(t[0]="react-i18next:: ".concat(t[0])),(n=console).warn.apply(n,t)}}var kj={};function JT(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];typeof e[0]=="string"&&kj[e[0]]||(typeof e[0]=="string"&&(kj[e[0]]=new Date),H3e.apply(void 0,e))}function Dj(n,e,t){n.loadNamespaces(e,function(){if(n.isInitialized)t();else{var i=function r(){setTimeout(function(){n.off("initialized",r)},0),t()};n.on("initialized",i)}})}function j3e(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.languages[0],r=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var o=function(l,c){var u=e.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(i,n)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(i,n)&&(!r||o(s,n)))}function z3e(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return JT("i18n.languages were undefined or empty",e.languages),!0;var i=e.options.ignoreJSONStructure!==void 0;return i?e.hasLoadedNamespace(n,{precheck:function(s,o){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,n))return!1}}):j3e(n,e,t)}function U3e(n){if(Array.isArray(n))return n}function q3e(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=s.call(t)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}function Ej(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function K3e(n,e){if(n){if(typeof n=="string")return Ej(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ej(n,e)}}function G3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
298
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y3e(n,e){return U3e(n)||q3e(n,e)||K3e(n,e)||G3e()}function Tj(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function eI(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tj(Object(t),!0).forEach(function(i){T3e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Tj(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}var Z3e=function(e,t){var i=T.useRef();return T.useEffect(function(){i.current=t?i.current:e},[e,t]),i.current};function ts(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.i18n,i=T.useContext(B3e)||{},r=i.i18n,s=i.defaultNS,o=t||r||$3e();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new V3e),!o){JT("You will need to pass in an i18next instance by using initReactI18next");var a=function(E){return Array.isArray(E)?E[E.length-1]:E},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}o.options.react&&o.options.react.wait!==void 0&&JT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=eI(eI(eI({},W3e()),o.options.react),e),u=c.useSuspense,d=c.keyPrefix,h=n||s||o.options&&o.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(h);var f=(o.isInitialized||o.initializedStoreOnce)&&h.every(function(D){return z3e(D,o,c)});function g(){return o.getFixedT(null,c.nsMode==="fallback"?h:h[0],d)}var m=T.useState(g),p=Y3e(m,2),v=p[0],_=p[1],b=h.join(),y=Z3e(b),w=T.useRef(!0);T.useEffect(function(){var D=c.bindI18n,E=c.bindI18nStore;w.current=!0,!f&&!u&&Dj(o,h,function(){w.current&&_(g)}),f&&y&&y!==b&&w.current&&_(g);function N(){w.current&&_(g)}return D&&o&&o.on(D,N),E&&o&&o.store.on(E,N),function(){w.current=!1,D&&o&&D.split(" ").forEach(function(O){return o.off(O,N)}),E&&o&&E.split(" ").forEach(function(O){return o.store.off(O,N)})}},[o,b]);var k=T.useRef(!0);T.useEffect(function(){w.current&&!k.current&&_(g),k.current=!1},[o,d]);var L=[v,o,f];if(L.t=v,L.i18n=o,L.ready=f,f||!f&&!u)return L;throw new Promise(function(D){Dj(o,h,function(){D()})})}function X3e(n){const{t:e}=ts(),{steps:t}=n;return t.every(r=>r.isComplete)?x.jsx(x.Fragment,{}):x.jsx(_y,{title:e("Getting Started"),width:"xxl",children:x.jsx(P.CardBody,{children:x.jsxs(P.Stack,{hasGutter:!0,children:[x.jsx("div",{children:n.children}),x.jsx(P.ProgressStepper,{children:t.map((r,s)=>x.jsx(P.ProgressStep,{titleId:`${r.title}-${s}`,id:`${r.title}-${s}`,variant:r.isComplete?"success":"info",description:r.description,children:x.jsx(Qf.Link,{to:r.to,children:r.title})},s))})]})})})}const Q3e=un.div`
|
299
299
|
width: 12px;
|
300
300
|
height: 12px;
|
301
|
-
`;function Ij(n){const{t:e}=ts(),{total:t}=n;return t!==0?x.jsx(my,{children:i=>x.jsx(Mw,{...n,width:i.width,height:i.height})}):x.jsx(my,{children:i=>x.jsx(qT,{constrainToVisibleArea:!0,width:i.width,height:i.height,data:{x:e("Resource"),y:t},legendData:[{name:e(`Total: ${t}`)}],legendOrientation:"vertical",colorScale:[Jk],title:t.toString(),padding:{top:0,left:0,right:0,bottom:0}})})}function J3e(n){const{t:e}=ts(),{title:t,items:i,loading:r}=n,s=i.reduce((o,a)=>o+a.count,0);return x.jsx(_y,{title:t,width:"sm",height:"xs",linkText:n.linkText,to:n.to,children:x.jsx(
|
301
|
+
`;function Ij(n){const{t:e}=ts(),{total:t}=n;return t!==0?x.jsx(my,{children:i=>x.jsx(Mw,{...n,width:i.width,height:i.height})}):x.jsx(my,{children:i=>x.jsx(qT,{constrainToVisibleArea:!0,width:i.width,height:i.height,data:{x:e("Resource"),y:t},legendData:[{name:e(`Total: ${t}`)}],legendOrientation:"vertical",colorScale:[Jk],title:t.toString(),padding:{top:0,left:0,right:0,bottom:0}})})}function J3e(n){const{t:e}=ts(),{title:t,items:i,loading:r}=n,s=i.reduce((o,a)=>o+a.count,0);return x.jsx(_y,{title:t,width:"sm",height:"xs",linkText:n.linkText,to:n.to,children:x.jsx(P.CardBody,{children:r===!0?x.jsxs(P.Split,{hasGutter:!0,children:[x.jsx(P.SplitItem,{children:x.jsx(P.Skeleton,{shape:"circle",width:"100px"})}),x.jsx(P.SplitItem,{style:{marginTop:"auto",marginBottom:"auto"},children:x.jsx(P.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsMd"},children:i.map(o=>x.jsx(P.FlexItem,{children:x.jsxs(P.Flex,{spaceItems:{default:"spaceItemsSm"},children:[x.jsx(P.FlexItem,{children:x.jsx(Q3e,{children:x.jsx(P.Skeleton,{shape:"square",width:"12",height:"12"})})}),x.jsx(P.FlexItem,{grow:{default:"grow"},children:x.jsx(P.Skeleton,{shape:"square",width:"70px",height:"14px"})})]})},o.label))})})]}):x.jsx(Ij,{ariaDesc:e("Dashboard resource count"),ariaTitle:e("Dashboard resource count"),constrainToVisibleArea:!0,data:i.map(o=>({x:o.label,y:o.count})),title:s.toString(),colorScale:i.map(o=>o.color),padding:{top:0,left:0,right:0,bottom:0},legendData:i.map(o=>({name:`${o.label}: ${o.count}`})),legendOrientation:"vertical",legendPosition:"right",total:s})})})}const e7e=un.button`
|
302
302
|
padding: var(--pf-global--spacer--xs);
|
303
303
|
margin: -(var(--pf-global--spacer--xs));
|
304
304
|
font-size: var(--pf-global--FontSize--sm);
|
305
305
|
--pf-c-form__group-label-help--Color: var(--pf-global--Color--200);
|
306
306
|
--pf-c-form__group-label-help--hover--Color: var(--pf-global--Color--100);
|
307
|
-
`;function t7e(n){const{ariaLabel:e="",content:t,header:i,id:r="",maxWidth:s="",...o}=n,[a]=yi();return t?x.jsx(R.Popover,{bodyContent:t,headerContent:i,hideOnOutsideClick:!0,id:r,"data-cy":r,maxWidth:s,...o,children:x.jsx(e7e,{"aria-label":e??a.moreInformation,"aria-haspopup":"true",className:"pf-c-form__group-label-help",onClick:l=>l.preventDefault(),type:"button",children:x.jsx(yt.HelpIcon,{noVerticalAlign:!0})})}):null}function v_(n){const{label:e,children:t,helpText:i,isEmpty:r}=n;return t===null||typeof t>"u"||t===""?x.jsx(x.Fragment,{}):r?x.jsx(x.Fragment,{}):x.jsxs(R.DescriptionListGroup,{children:[e&&x.jsxs(R.DescriptionListTerm,{children:[e,i?x.jsx(t7e,{header:e,content:i}):null]}),x.jsx(R.DescriptionListDescription,{id:e==null?void 0:e.toLowerCase().split(" ").join("-"),children:t})]})}function Aj(n){const{disablePadding:e}=n,t=ag(),i=t.formLayout,r=n.numberOfColumns?n.numberOfColumns:t.formColumns,s=!1;return x.jsx(R.PageSection,{variant:"light",padding:{default:"noPadding"},className:"dark-1",children:x.jsx(R.DescriptionList,{orientation:{sm:i,md:i,lg:i,xl:i,"2xl":i},columnModifier:r==="multiple"?{default:"1Col",sm:"1Col",md:"2Col",lg:"2Col",xl:"3Col","2xl":"3Col"}:void 0,style:{maxWidth:1200,padding:e?void 0:24},isCompact:s,children:n.children})})}var Gn=(n=>(n.Table="table",n.List="list",n.Cards="cards",n))(Gn||{}),ku=(n=>(n.Description="description",n.Expanded="expanded",n.Hidden="hidden",n))(ku||{}),Oj=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n.Primary="primary",n.Secondary="secondary",n))(Oj||{}),Nj=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n))(Nj||{}),Mj=(n=>(n.Hidden="hidden",n))(Mj||{});function Wr(n){const{item:e,column:t}=n;if(!t)return x.jsx(x.Fragment,{});switch(t.type){case"text":return x.jsx(eD,{text:t.value(e)});case"description":return x.jsx(eD,{text:t.value(e)});case"datetime":return x.jsx(TR,{format:"since",value:t.value(e)});case"count":return x.jsx(x.Fragment,{children:t.value(e)??"-"});case"labels":return x.jsx(IR,{labels:t.value(e)??[]});default:return x.jsx(x.Fragment,{children:t.cell(e)})}}function tI(n){return T.useMemo(()=>n.filter(e=>!(e.table==="hidden"||e.table==="description"||e.table==="expanded")),[n])}function Pj(n){return T.useMemo(()=>n.filter(e=>e.list!=="hidden"),[n])}function Rj(n){return T.useMemo(()=>n.filter(e=>e.card!=="hidden"),[n])}function nI(n){return T.useMemo(()=>n.filter(e=>e.modal!=="hidden"),[n])}function n7e(n,e){const t=tI(n),i=Pj(n),r=Rj(n);switch(e){case Gn.Table:return t;case Gn.List:return i;case Gn.Cards:return r}}function Fj(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="description"),[n])}function Bj(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="expanded"),[n])}function i7e(n){return T.useMemo(()=>n.map(e=>({...e,sort:void 0})),[n])}function r7e(n){return T.useMemo(()=>n.map(e=>({...e,table:e.table==="expanded"?void 0:e.table})),[n])}function Wj(n){const{item:e,columns:t,disablePadding:i,numberOfColumns:r}=n;return e?x.jsx(Aj,{disablePadding:i,numberOfColumns:r,children:t.map(s=>"value"in s&&s.value&&!s.value(e)?x.jsx(T.Fragment,{},s.id??s.header):x.jsx(v_,{label:s.header,children:x.jsx(Wr,{column:s,item:e})},s.id??s.header))}):x.jsx(x.Fragment,{})}let s7e=class{constructor(e){c3(this,"value");c3(this,"next");this.value=e}};class o7e{constructor(){dk(this,Gl,void 0);dk(this,zf,void 0);dk(this,Uf,void 0);this.clear()}enqueue(e){const t=new s7e(e);Vd(this,Gl)?(Vd(this,zf).next=t,lu(this,zf,t)):(lu(this,Gl,t),lu(this,zf,t)),u3(this,Uf)._++}dequeue(){const e=Vd(this,Gl);if(e)return lu(this,Gl,Vd(this,Gl).next),u3(this,Uf)._--,e.value}clear(){lu(this,Gl,void 0),lu(this,zf,void 0),lu(this,Uf,0)}get size(){return Vd(this,Uf)}*[Symbol.iterator](){let e=Vd(this,Gl);for(;e;)yield e.value,e=e.next}}Gl=new WeakMap,zf=new WeakMap,Uf=new WeakMap;function a7e(n){if(!((Number.isInteger(n)||n===Number.POSITIVE_INFINITY)&&n>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new o7e;let t=0;const i=()=>{t--,e.size>0&&e.dequeue()()},r=async(a,l,c)=>{t++;const u=(async()=>a(...c))();l(u);try{await u}catch{}i()},s=(a,l,c)=>{e.enqueue(r.bind(void 0,a,l,c)),(async()=>(await Promise.resolve(),t<n&&e.size>0&&e.dequeue()()))()},o=(a,...l)=>new Promise(c=>{s(a,c,l)});return Object.defineProperties(o,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o}function Vj(n){const[e,t]=T.useState(!1),i=ws("sm"),[r]=yi(),{pageItems:s,selectedItems:o,selectItems:a,unselectAll:l}=n,c=n.itemCount!==void 0&&n.itemCount>0&&s&&s.length>0&&(s??[]).every(p=>o==null?void 0:o.includes(p)),u=T.useCallback(()=>{c?l==null||l():a==null||a(s??[])},[c,l,a,s]),d=T.useMemo(()=>i?o&&o.length>0?`${o.length} selected`:"":o&&o.length>0?`${o.length}`:"",[i,o]),h=T.useMemo(()=>{const p=o?o.length:0;return x.jsx(R.DropdownToggle,{splitButtonItems:[x.jsx(R.DropdownToggleCheckbox,{id:"select-all","aria-label":"Select all",isChecked:c?!0:p>0?null:!1,onChange:u,children:d},"select-all")],onToggle:v=>t(v)})},[o,c,u,d]),f=T.useMemo(()=>x.jsx(R.DropdownItem,{id:"select-none",onClick:()=>{l==null||l(),t(!1)},children:n.selectNoneText??r.selectNone},"select-none"),[n.selectNoneText,r.selectNone,l]),g=T.useMemo(()=>x.jsx(R.DropdownItem,{id:"select-page",onClick:()=>{a==null||a(s??[]),t(!1)},children:`Select ${(s==null?void 0:s.length)??0} page items`},"select-page"),[a,s]),m=T.useMemo(()=>[f,g],[f,g]);return x.jsx(R.Dropdown,{isOpen:e,toggle:h,dropdownItems:m,style:{zIndex:400}})}const sht="";function On(...n){const e=[],t={}.hasOwnProperty;return n.filter(Boolean).forEach(i=>{const r=typeof i;if(r==="string"||r==="number")e.push(i);else if(Array.isArray(i)&&i.length){const s=On(...i);s&&e.push(s)}else if(r==="object")for(const s in i)t.call(i,s)&&i[s]&&e.push(s)}),e.join(" ")}const oht="",rn={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let l7e=0;class iI extends ae.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${l7e++}`}render(){return this.props.children(this.id)}}iI.displayName="GenerateId",iI.defaultProps={prefix:"pf-random-id-"};const c7e="*";let u7e=0;const $j="OUIA-Generated-",rI={};function sI(n,e,t=!0){return{"data-ouia-component-type":`PF4/${n}`,"data-ouia-safe":t,"data-ouia-component-id":e}}function oI(n,e){try{let t;return typeof window<"u"?t=`${window.location.href}-${n}-${e||""}`:t=`${n}-${e||""}`,rI[t]||(rI[t]=0),`${$j}${n}-${e?`${e}-`:""}${++rI[t]}`}catch{return`${$j}${n}-${e?`${e}-`:""}${++u7e}`}}const Gg=!!(typeof window<"u"&&window.document&&window.document.createElement);function b_(n){const e=n.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function rl(n){if(n.toString()!=="[object Window]"){const e=n.ownerDocument;return e?e.defaultView:window}return n}function aI(n){const e=rl(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function y_(n){const e=rl(n).Element;return n instanceof e||n instanceof Element}function sl(n){const e=rl(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function d7e(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function h7e(n){return n===rl(n)||!sl(n)?aI(n):d7e(n)}function ma(n){return n?(n.nodeName||"").toLowerCase():null}function pc(n){return(y_(n)?n.ownerDocument:n.document).documentElement}function lI(n){return b_(pc(n)).left+aI(n).scrollLeft}function _c(n){return rl(n).getComputedStyle(n)}function cI(n){const{overflow:e,overflowX:t,overflowY:i}=_c(n);return/auto|scroll|overlay|hidden/.test(e+i+t)}function f7e(n,e,t=!1){const i=pc(e),r=b_(n),s=sl(e);let o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!t)&&((ma(e)!=="body"||cI(i))&&(o=h7e(e)),sl(e)?(a=b_(e),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=lI(i))),{x:r.left+o.scrollLeft-a.x,y:r.top+o.scrollTop-a.y,width:r.width,height:r.height}}function uI(n){return{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}}function Bw(n){return ma(n)==="html"?n:n.assignedSlot||n.parentNode||n.host||pc(n)}function Hj(n){return["html","body","#document"].indexOf(ma(n))>=0?n.ownerDocument.body:sl(n)&&cI(n)?n:Hj(Bw(n))}function C_(n,e=[]){const t=Hj(n),i=ma(t)==="body",r=rl(t),s=i?[r].concat(r.visualViewport||[],cI(t)?t:[]):t,o=e.concat(s);return i?o:o.concat(C_(Bw(s)))}function g7e(n){return["table","td","th"].indexOf(ma(n))>=0}function jj(n){if(!sl(n)||_c(n).position==="fixed")return null;const e=n.offsetParent;if(e){const t=pc(e);if(ma(e)==="body"&&_c(e).position==="static"&&_c(t).position!=="static")return t}return e}function m7e(n){let e=Bw(n);for(;sl(e)&&["html","body"].indexOf(ma(e))<0;){const t=_c(e);if(t.transform!=="none"||t.perspective!=="none"||t.willChange&&t.willChange!=="auto")return e;e=e.parentNode}return null}function w_(n){const e=rl(n);let t=jj(n);for(;t&&g7e(t)&&_c(t).position==="static";)t=jj(t);return t&&ma(t)==="body"&&_c(t).position==="static"?e:t||m7e(n)||e}const No="top",pa="bottom",_a="right",Mo="left",dI="auto",S_=[No,pa,_a,Mo],Yg="start",hI="end",p7e="clippingParents",zj="viewport",x_="popper",_7e="reference",Uj=S_.reduce((n,e)=>n.concat([`${e}-${Yg}`,`${e}-${hI}`]),[]),qj=[...S_,dI].reduce((n,e)=>n.concat([e,`${e}-${Yg}`,`${e}-${hI}`]),[]),v7e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b7e(n){const e=new Map,t=new Set,i=[];n.forEach(s=>{e.set(s.name,s)});function r(s){t.add(s.name),[...s.requires||[],...s.requiresIfExists||[]].forEach(a=>{if(!t.has(a)){const l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(s=>{t.has(s.name)||r(s)}),i}function y7e(n){const e=b7e(n);return v7e.reduce((t,i)=>t.concat(e.filter(r=>r.phase===i)),[])}function C7e(n){let e;return()=>(e||(e=new Promise(t=>{Promise.resolve().then(()=>{e=void 0,t(n())})})),e)}function ol(n){return n.split("-")[0]}function w7e(n){const e=n.reduce((t,i)=>{const r=t[i.name];return t[i.name]=r?Object.assign(Object.assign(Object.assign({},r),i),{options:Object.assign(Object.assign({},r.options),i.options),data:Object.assign(Object.assign({},r.data),i.data)}):i,t},{});return Object.keys(e).map(t=>e[t])}function S7e(n){const e=rl(n),t=pc(n),i=e.visualViewport;let r=t.clientWidth,s=t.clientHeight,o=0,a=0;return i&&(r=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:r,height:s,x:o+lI(n),y:a}}function x7e(n){const e=pc(n),t=aI(n),i=n.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let o=-t.scrollLeft+lI(n);const a=-t.scrollTop;return _c(i||e).direction==="rtl"&&(o+=Math.max(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:o,y:a}}function Kj(n,e){const t=!!(e.getRootNode&&e.getRootNode().host);if(n.contains(e))return!0;if(t){let i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function fI(n){return Object.assign(Object.assign({},n),{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function L7e(n){const e=b_(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Gj(n,e){return e===zj?fI(S7e(n)):sl(e)?L7e(e):fI(x7e(pc(n)))}function k7e(n){const e=C_(Bw(n)),i=["absolute","fixed"].indexOf(_c(n).position)>=0&&sl(n)?w_(n):n;return y_(i)?e.filter(r=>y_(r)&&Kj(r,i)&&ma(r)!=="body"):[]}function D7e(n,e,t){const r=[...e==="clippingParents"?k7e(n):[].concat(e),t],s=r[0],o=r.reduce((a,l)=>{const c=Gj(n,l);return a.top=Math.max(c.top,a.top),a.right=Math.min(c.right,a.right),a.bottom=Math.min(c.bottom,a.bottom),a.left=Math.max(c.left,a.left),a},Gj(n,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function L_(n){return n.split("-")[1]}function gI(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yj({reference:n,element:e,placement:t}){const i=t?ol(t):null,r=t?L_(t):null,s=n.x+n.width/2-e.width/2,o=n.y+n.height/2-e.height/2;let a;switch(i){case No:a={x:s,y:n.y-e.height};break;case pa:a={x:s,y:n.y+n.height};break;case _a:a={x:n.x+n.width,y:o};break;case Mo:a={x:n.x-e.width,y:o};break;default:a={x:n.x,y:n.y}}const l=i?gI(i):null;if(l!=null){const c=l==="y"?"height":"width";switch(r){case Yg:a[l]=Math.floor(a[l])-Math.floor(n[c]/2-e[c]/2);break;case hI:a[l]=Math.floor(a[l])+Math.ceil(n[c]/2-e[c]/2);break}}return a}function Zj(){return{top:0,right:0,bottom:0,left:0}}function Xj(n){return Object.assign(Object.assign({},Zj()),n)}function Qj(n,e){return e.reduce((t,i)=>(t[i]=n,t),{})}function k_(n,e={}){const{placement:t=n.placement,boundary:i=p7e,rootBoundary:r=zj,elementContext:s=x_,altBoundary:o=!1,padding:a=0}=e,l=Xj(typeof a!="number"?a:Qj(a,S_)),c=s===x_?_7e:x_,u=n.elements.reference,d=n.rects.popper,h=n.elements[o?c:s],f=D7e(y_(h)?h:h.contextElement||pc(n.elements.popper),i,r),g=b_(u),m=Yj({reference:g,element:d,strategy:"absolute",placement:t}),p=fI(Object.assign(Object.assign({},d),m)),v=s===x_?p:g,_={top:f.top-v.top+l.top,bottom:v.bottom-f.bottom+l.bottom,left:f.left-v.left+l.left,right:v.right-f.right+l.right},b=n.modifiersData.offset;if(s===x_&&b){const y=b[t];Object.keys(_).forEach(w=>{const k=[_a,pa].indexOf(w)>=0?1:-1,L=[No,pa].indexOf(w)>=0?"y":"x";_[w]+=y[L]*k})}return _}const Jj={placement:"bottom",modifiers:[],strategy:"absolute"};function ez(...n){return!n.some(e=>!(e&&typeof e.getBoundingClientRect=="function"))}function E7e(n={}){const{defaultModifiers:e=[],defaultOptions:t=Jj}=n;return function(r,s,o=t){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Jj),t),modifiersData:{},elements:{reference:r,popper:s},attributes:{},styles:{}},l=[],c=!1;const u={state:a,setOptions(f){h(),a.options=Object.assign(Object.assign(Object.assign({},t),a.options),f),a.scrollParents={reference:y_(r)?C_(r):r.contextElement?C_(r.contextElement):[],popper:C_(s)};const g=y7e(w7e([...e,...a.options.modifiers]));return a.orderedModifiers=g.filter(m=>m.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:f,popper:g}=a.elements;if(ez(f,g)){a.rects={reference:f7e(f,w_(g),a.options.strategy==="fixed"),popper:uI(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(m=>a.modifiersData[m.name]=Object.assign({},m.data));for(let m=0;m<a.orderedModifiers.length;m++){if(a.reset===!0){a.reset=!1,m=-1;continue}const{fn:p,options:v={},name:_}=a.orderedModifiers[m];typeof p=="function"&&(a=p({state:a,options:v,name:_,instance:u})||a)}}},update:C7e(()=>new Promise(f=>{u.forceUpdate(),f(a)})),destroy(){h(),c=!0}};if(!ez(r,s))return u;u.setOptions(o).then(f=>{!c&&o.onFirstUpdate&&o.onFirstUpdate(f)});function d(){a.orderedModifiers.forEach(({name:f,options:g={},effect:m})=>{if(typeof m=="function"){const p=m({state:a,name:f,instance:u,options:g}),v=()=>{};l.push(p||v)}})}function h(){l.forEach(f=>f()),l=[]}return u}}const Ww={passive:!0};function T7e({state:n,instance:e,options:t}){const{scroll:i=!0,resize:r=!0}=t,s=rl(n.elements.popper),o=[...n.scrollParents.reference,...n.scrollParents.popper];return i&&o.forEach(a=>{a.addEventListener("scroll",e.update,Ww)}),r&&s.addEventListener("resize",e.update,Ww),()=>{i&&o.forEach(a=>{a.removeEventListener("scroll",e.update,Ww)}),r&&s.removeEventListener("resize",e.update,Ww)}}const I7e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:T7e,data:{}};function A7e({state:n,name:e}){n.modifiersData[e]=Yj({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const O7e={name:"popperOffsets",enabled:!0,phase:"read",fn:A7e,data:{}},N7e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M7e({x:n,y:e}){const i=window.devicePixelRatio||1;return{x:Math.round(n*i)/i||0,y:Math.round(e*i)/i||0}}function tz({popper:n,popperRect:e,placement:t,offsets:i,position:r,gpuAcceleration:s,adaptive:o}){let{x:a,y:l}=M7e(i);const c=i.hasOwnProperty("x"),u=i.hasOwnProperty("y");let d=Mo,h=No;const f=window;if(o){let m=w_(n);m===rl(n)&&(m=pc(n)),t===No&&(h=pa,l-=m.clientHeight-e.height,l*=s?1:-1),t===Mo&&(d=_a,a-=m.clientWidth-e.width,a*=s?1:-1)}const g=Object.assign({position:r},o&&N7e);return s?Object.assign(Object.assign({},g),{[h]:u?"0":"",[d]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${a}px, ${l}px)`:`translate3d(${a}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[h]:u?`${l}px`:"",[d]:c?`${a}px`:"",transform:""})}function P7e({state:n,options:e}){const{gpuAcceleration:t=!0,adaptive:i=!0}=e,r={placement:ol(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:t};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign(Object.assign({},n.styles.popper),tz(Object.assign(Object.assign({},r),{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign(Object.assign({},n.styles.arrow),tz(Object.assign(Object.assign({},r),{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1})))),n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-placement":n.placement})}const R7e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:P7e,data:{}};function F7e({state:n}){Object.keys(n.elements).forEach(e=>{const t=n.styles[e]||{},i=n.attributes[e]||{},r=n.elements[e];!sl(r)||!ma(r)||(Object.assign(r.style,t),Object.keys(i).forEach(s=>{const o=i[s];o===!1?r.removeAttribute(s):r.setAttribute(s,o===!0?"":o)}))})}function B7e({state:n}){const e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),()=>{Object.keys(n.elements).forEach(t=>{const i=n.elements[t],r=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((a,l)=>(a[l]="",a),{});!sl(i)||!ma(i)||(Object.assign(i.style,o),Object.keys(r).forEach(a=>{i.removeAttribute(a)}))})}}const W7e={name:"applyStyles",enabled:!0,phase:"write",fn:F7e,effect:B7e,requires:["computeStyles"]};function V7e(n,e,t){const i=ol(n),r=[Mo,No].indexOf(i)>=0?-1:1;let[s,o]=typeof t=="function"?t(Object.assign(Object.assign({},e),{placement:n})):t;return s=s||0,o=(o||0)*r,[Mo,_a].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}function $7e({state:n,options:e,name:t}){const{offset:i=[0,0]}=e,r=qj.reduce((a,l)=>(a[l]=V7e(l,n.rects,i),a),{}),{x:s,y:o}=r[n.placement];n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=o),n.modifiersData[t]=r}const H7e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$7e},j7e={left:"right",right:"left",bottom:"top",top:"bottom"};function Vw(n){return n.replace(/left|right|bottom|top/g,e=>j7e[e])}const z7e={start:"end",end:"start"};function nz(n){return n.replace(/start|end/g,e=>z7e[e])}function U7e(n,e={}){const{placement:t,boundary:i,rootBoundary:r,padding:s,flipVariations:o,allowedAutoPlacements:a=qj}=e,l=L_(t),c=l?o?Uj:Uj.filter(h=>L_(h)===l):S_;let u=c.filter(h=>a.indexOf(h)>=0);u.length===0&&(u=c);const d=u.reduce((h,f)=>(h[f]=k_(n,{placement:f,boundary:i,rootBoundary:r,padding:s})[ol(f)],h),{});return Object.keys(d).sort((h,f)=>d[h]-d[f])}function q7e(n){if(ol(n)===dI)return[];const e=Vw(n);return[nz(n),e,nz(e)]}function K7e({state:n,options:e,name:t}){if(n.modifiersData[t]._skip)return;const{mainAxis:i=!0,altAxis:r=!0,fallbackPlacements:s,padding:o,boundary:a,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=e,h=n.options.placement,g=ol(h)===h,m=s||(g||!u?[Vw(h)]:q7e(h)),p=[h,...m].reduce((k,L)=>k.concat(ol(L)===dI?U7e(n,{placement:L,boundary:a,rootBoundary:l,padding:o,flipVariations:u,allowedAutoPlacements:d}):L),[]),v=n.rects.reference,_=n.rects.popper,b=new Map;let y=!0,w=p[0];for(let k=0;k<p.length;k++){const L=p[k],D=ol(L),E=L_(L)===Yg,N=[No,pa].indexOf(D)>=0,O=N?"width":"height",I=k_(n,{placement:L,boundary:a,rootBoundary:l,altBoundary:c,padding:o});let M=N?E?_a:Mo:E?pa:No;v[O]>_[O]&&(M=Vw(M));const B=Vw(M),V=[];if(i&&V.push(I[D]<=0),r&&V.push(I[M]<=0,I[B]<=0),V.every(ee=>ee)){w=L,y=!1;break}b.set(L,V)}if(y){const k=u?3:1;for(let L=k;L>0;L--){const D=p.find(E=>{const N=b.get(E);if(N)return N.slice(0,L).every(O=>O)});if(D){w=D;break}}}n.placement!==w&&(n.modifiersData[t]._skip=!0,n.placement=w,n.reset=!0)}const G7e={name:"flip",enabled:!0,phase:"main",fn:K7e,requiresIfExists:["offset"],data:{_skip:!1}};function Y7e(n){return n==="x"?"y":"x"}function $w(n,e,t){return Math.max(n,Math.min(e,t))}function Z7e({state:n,options:e,name:t}){const{mainAxis:i=!0,altAxis:r=!1,boundary:s,rootBoundary:o,altBoundary:a,padding:l,tether:c=!0,tetherOffset:u=0}=e,d=k_(n,{boundary:s,rootBoundary:o,padding:l,altBoundary:a}),h=ol(n.placement),f=L_(n.placement),g=!f,m=gI(h),p=Y7e(m),v=n.modifiersData.popperOffsets,_=n.rects.reference,b=n.rects.popper,y=typeof u=="function"?u(Object.assign(Object.assign({},n.rects),{placement:n.placement})):u,w={x:0,y:0};if(v){if(i){const k=m==="y"?No:Mo,L=m==="y"?pa:_a,D=m==="y"?"height":"width",E=v[m],N=v[m]+d[k],O=v[m]-d[L],I=c?-b[D]/2:0,M=f===Yg?_[D]:b[D],B=f===Yg?-b[D]:-_[D],V=n.elements.arrow,ee=c&&V?uI(V):{width:0,height:0},re=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Zj(),se=re[k],ie=re[L],J=$w(0,_[D],ee[D]),ue=g?_[D]/2-I-J-se-y:M-J-se-y,Z=g?-_[D]/2+I+J+ie+y:B+J+ie+y,X=n.elements.arrow&&w_(n.elements.arrow),ce=X?m==="y"?X.clientTop||0:X.clientLeft||0:0,De=n.modifiersData.offset?n.modifiersData.offset[n.placement][m]:0,te=v[m]+ue-De-ce,xe=v[m]+Z-De,ge=$w(c?Math.min(N,te):N,E,c?Math.max(O,xe):O);v[m]=ge,w[m]=ge-E}if(r){const k=m==="x"?No:Mo,L=m==="x"?pa:_a,D=v[p],E=D+d[k],N=D-d[L],O=$w(E,D,N);v[p]=O,w[p]=O-D}n.modifiersData[t]=w}}const X7e={name:"preventOverflow",enabled:!0,phase:"main",fn:Z7e,requiresIfExists:["offset"]};function Q7e({state:n,name:e}){const t=n.elements.arrow,i=n.modifiersData.popperOffsets,r=ol(n.placement),s=gI(r),a=[Mo,_a].indexOf(r)>=0?"height":"width";if(!t||!i)return;const l=n.modifiersData[`${e}#persistent`].padding,c=uI(t),u=s==="y"?No:Mo,d=s==="y"?pa:_a,h=n.rects.reference[a]+n.rects.reference[s]-i[s]-n.rects.popper[a],f=i[s]-n.rects.reference[s],g=w_(t),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,p=h/2-f/2,v=l[u],_=m-c[a]-l[d],b=m/2-c[a]/2+p,y=$w(v,b,_),w=s;n.modifiersData[e]={[w]:y,centerOffset:y-b}}function J7e({state:n,options:e,name:t}){let{element:i="[data-popper-arrow]",padding:r=0}=e;i!=null&&(typeof i=="string"&&(i=n.elements.popper.querySelector(i),!i)||Kj(n.elements.popper,i)&&(n.elements.arrow=i,n.modifiersData[`${t}#persistent`]={padding:Xj(typeof r!="number"?r:Qj(r,S_))}))}const eRe={name:"arrow",enabled:!0,phase:"main",fn:Q7e,effect:J7e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function iz(n,e,t={x:0,y:0}){return{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function rz(n){return[No,_a,pa,Mo].some(e=>n[e]>=0)}function tRe({state:n,name:e}){const t=n.rects.reference,i=n.rects.popper,r=n.modifiersData.preventOverflow,s=k_(n,{elementContext:"reference"}),o=k_(n,{altBoundary:!0}),a=iz(s,t),l=iz(o,i,r),c=rz(a),u=rz(l);n.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const nRe=E7e({defaultModifiers:[I7e,O7e,R7e,W7e,H7e,G7e,X7e,eRe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tRe}]}),mI=Gg?ae.useLayoutEffect:ae.useEffect,iRe=(n,e)=>JSON.stringify(n)===JSON.stringify(e),sz=n=>n.reduce((e,[t,i])=>(e[t]=i,e),{}),rRe=[],sRe=(n,e,t={})=>{const i=ae.useRef(null),r={onFirstUpdate:t.onFirstUpdate,placement:t.placement||"bottom",strategy:t.strategy||"absolute",modifiers:t.modifiers||rRe},[s,o]=ae.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"}},attributes:{}}),a=ae.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);o({styles:sz(d.map(h=>[h,u.styles[h]||{}])),attributes:sz(d.map(h=>[h,u.attributes[h]]))})},requires:["computeStyles"]}),[]),l=ae.useMemo(()=>{const u={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[...r.modifiers,a,{name:"applyStyles",enabled:!1}]};return iRe(i.current,u)?i.current||u:(i.current=u,u)},[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,a]),c=ae.useRef();return mI(()=>{c&&c.current&&c.current.setOptions(l)},[l]),mI(()=>{if(n==null||e==null)return;const d=(t.createPopper||nRe)(n,e,l);return c.current=d,()=>{d.destroy(),c.current=null}},[n,e,t.createPopper]),{state:c.current?c.current.state:null,styles:s.styles,attributes:s.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};class pI extends ae.Component{componentDidMount(){const e=g3.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}pI.displayName="FindRefWrapper";const vht="",oRe={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},aRe=n=>n.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,e=>oRe[e]),oz=({trigger:n,popper:e,popperMatchesTriggerWidth:t=!0,direction:i="down",position:r="left",placement:s,appendTo:o=()=>document.body,zIndex:a=9999,isVisible:l=!0,positionModifiers:c,distance:u=0,onMouseEnter:d,onMouseLeave:h,onFocus:f,onBlur:g,onDocumentClick:m,onTriggerClick:p,onTriggerEnter:v,onPopperClick:_,onPopperMouseEnter:b,onPopperMouseLeave:y,onDocumentKeyDown:w,enableFlip:k=!0,flipBehavior:L="flip",reference:D,removeFindDomNode:E=!1,popperRef:N})=>{const[O,I]=ae.useState(null),[M,B]=ae.useState(null),[V,ee]=ae.useState(null),[re,se]=ae.useState(!1),ie=M||O,J=ae.useCallback(j=>m(j,ie,V),[l,O,M,V,m]);ae.useEffect(()=>{se(!0)},[]),ae.useEffect(()=>{D&&(D.current?B(D.current):typeof D=="function"&&B(D()))},[D]),ae.useEffect(()=>{N&&(N.current?ee(N.current):typeof N=="function"&&ee(N()))},[l,N]);const ue=(j,le,be,$e=!1)=>{j&&le&&le.addEventListener(be,j,{capture:$e})},Z=(j,le,be,$e=!1)=>{j&&le&&le.removeEventListener(be,j,{capture:$e})};ae.useEffect(()=>{ue(d,ie,"mouseenter"),ue(h,ie,"mouseleave"),ue(f,ie,"focus"),ue(g,ie,"blur"),ue(p,ie,"click"),ue(v,ie,"keydown"),ue(_,V,"click"),ue(b,V,"mouseenter"),ue(y,V,"mouseleave"),m&&ue(J,document,"click",!0),ue(w,document,"keydown",!0);const j=new MutationObserver(()=>{Ce&&Ce()});return V&&j.observe(V,{attributes:!0,childList:!0,subtree:!0}),()=>{Z(d,ie,"mouseenter"),Z(h,ie,"mouseleave"),Z(f,ie,"focus"),Z(g,ie,"blur"),Z(p,ie,"click"),Z(v,ie,"keydown"),Z(_,V,"click"),Z(b,V,"mouseenter"),Z(y,V,"mouseleave"),m&&Z(J,document,"click",!0),Z(w,document,"keydown",!0),j.disconnect()}},[O,V,d,h,f,g,p,v,_,b,y,m,w,M]);const X=()=>{if(s)return s;let j=i==="up"?"top":"bottom";return r!=="center"&&(j=`${j}-${r==="right"?"end":"start"}`),j},ce=ae.useMemo(X,[i,r,s]),De=ae.useMemo(()=>aRe(X()),[i,r,s]),te=ae.useMemo(()=>({name:"sameWidth",enabled:t,phase:"beforeWrite",requires:["computeStyles"],fn:({state:j})=>{j.styles.popper.width=`${j.rects.reference.width}px`},effect:({state:j})=>(j.elements.popper.style.width=`${j.elements.reference.offsetWidth}px`,()=>{})}),[t]),{styles:xe,attributes:ge,update:Ce,forceUpdate:Se}=sRe(ie,V,{placement:ce,modifiers:[{name:"offset",options:{offset:[0,u]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:ce.startsWith("auto")||k,options:{fallbackPlacements:L==="flip"?[De]:L}},te]});ae.useEffect(()=>{Se&&Se()},[e]);const pe=()=>{if(ge&&ge.popper&&ge.popper["data-popper-placement"]){const j=ge.popper["data-popper-placement"];return c[j]}return c.top},Q=Object.assign({className:On(e.props&&e.props.className,c&&pe()),style:Object.assign(Object.assign(Object.assign({},e.props&&e.props.style||{}),xe.popper),{zIndex:a})},ge.popper),Xe=ae.cloneElement(e,Q),et=()=>typeof o=="function"?o():o;let Fe;return E?Fe=ae.createElement("div",{style:{display:"contents"},ref:j=>ee(j==null?void 0:j.firstElementChild)},Xe):N?Fe=Xe:Fe=ae.createElement(pI,{onFoundRef:j=>ee(j)},Xe),ae.createElement(ae.Fragment,null,!D&&n&&ae.isValidElement(n)&&!E&&ae.createElement(pI,{onFoundRef:j=>I(j)},n),!D&&n&&ae.isValidElement(n)&&E&&ae.createElement("div",{style:{display:"contents"},ref:j=>I(j==null?void 0:j.firstElementChild)},n),re&&l&&g3.createPortal(Fe,et()))};oz.displayName="Popper";const lRe=(n,e,t=c=>document.activeElement.contains(c),i=c=>c,r=["A","BUTTON","INPUT"],s=!1,o=!1,a=!0,l=!0)=>{const c=document.activeElement,u=n.key;let d=null;if(!s&&["ArrowUp","ArrowDown"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){let m=0;for(;!d&&m<e.length&&m*-1<e.length;)u==="ArrowUp"?m--:m++,h=g+m,h>=e.length&&(h=0),h<0&&(h=e.length-1),d=i(e[h])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){const m=e[g].querySelectorAll(r.join(","));if(!m.length||l){let p=c;for(;p;)if(p=u==="ArrowLeft"?p.previousElementSibling:p.nextElementSibling,p&&r.includes(p.tagName)){d=p;break}}else m.forEach((p,v)=>{n.target===p&&(h=v+(u==="ArrowLeft"?-1:1),h>=m.length&&(h=0),h<0&&(h=m.length-1),d=m[h])})}})}d&&(a&&(c.tabIndex=-1,d.tabIndex=0),d.focus())};class _I extends ae.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:i,getFocusableElement:r,noVerticalArrowHandling:s,noHorizontalArrowHandling:o,noEnterHandling:a,noSpaceHandling:l,updateTabIndex:c,validSiblingTags:u,additionalKeyHandler:d,createNavigableElements:h,onlyTraverseSiblings:f}=this.props;d&&d(e);const g=h();if(!g){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const m=e.key;a||m==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||m===" "&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),lRe(e,g,i,r,u,s,o,c,f)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Gg&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Gg&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}_I.displayName="KeyboardHandler",_I.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:n=>document.activeElement===n,getFocusableElement:n=>n,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const vh=ae.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),az=ae.createContext({itemId:null,isDisabled:!1});class Hw extends ae.Component{constructor(e){super(e),this.menuRef=ae.createRef(),this.activeMenu=null,this.state={ouiaStateId:oI(jw.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=t=>{const i=this.menuRef.current;if(!(!i||i!==t.target.closest(".pf-c-menu")&&!Array.from(i.getElementsByClassName("pf-c-menu")).includes(t.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const r=i.querySelector("#"+this.props.activeMenu)||i||null,s=Array.from(r.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||r.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:r.id});else return;const o=s.filter(a=>!(a.classList.contains("pf-m-disabled")||a.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=t=>{const i=this.props.containsDrilldown,r=document.activeElement;if(t.target.closest(".pf-c-menu")!==this.activeMenu&&!t.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=t.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),t.target.tagName==="INPUT")return;const s=this.activeMenu,o=t.key,a=r.classList.contains("pf-c-breadcrumb__link")||r.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(t.preventDefault(),i&&!a){if(r.closest("li").classList.contains("pf-m-current-path")&&s.parentElement.tagName==="LI")r.tabIndex=-1,s.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:s.parentElement.firstChild});else if(r.nextElementSibling&&r.nextElementSibling.classList.contains("pf-c-menu")){const c=Array.from(r.nextElementSibling.getElementsByTagName("UL")[0].children).filter(u=>!(u.classList.contains("pf-m-disabled")||u.classList.contains("pf-c-divider")));r.tabIndex=-1,c[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:c[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[],e.innerRef&&(this.menuRef=e.innerRef)}allowTabFirstItem(){const e=this.menuRef.current;if(e){const t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Gg&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Gg&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{"aria-label":t,id:i,children:r,className:s,onSelect:o,selected:a=null,onActionClick:l,ouiaId:c,ouiaSafe:u,containsFlyout:d,isNavFlyout:h,containsDrilldown:f,isMenuDrilledIn:g,isPlain:m,isScrollable:p,drilldownItemPath:v,drilledInMenus:_,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,parentMenu:k=null,activeItemId:L=null,innerRef:D,isRootMenu:E,activeMenu:N,role:O}=e,I=wn(e,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),M=g||_&&_.includes(i)||!1;return ae.createElement(vh.Provider,{value:{menuId:i,parentMenu:k||i,onSelect:o,onActionClick:l,activeItemId:L,selected:a,drilledInMenus:_,drilldownItemPath:v,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:B=>this.setState({flyoutRef:B}),disableHover:this.state.disableHover,role:O}},E&&ae.createElement(_I,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:B=>document.activeElement.closest("li")===B||document.activeElement.parentElement===B||document.activeElement.closest(".pf-c-menu__search")===B||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===B,getFocusableElement:B=>B.tagName==="DIV"&&B.querySelector("input")||B.firstChild.tagName==="LABEL"&&B.querySelector("input")||B.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),ae.createElement("div",Object.assign({id:i,className:On(rn.menu,m&&rn.modifiers.plain,p&&rn.modifiers.scrollable,d&&rn.modifiers.flyout,h&&rn.modifiers.nav,f&&rn.modifiers.drilldown,M&&rn.modifiers.drilledIn,s),"aria-label":t,ref:this.menuRef},sI(jw.displayName,c!==void 0?c:this.state.ouiaStateId,u),I),r))}}Hw.displayName="Menu",Hw.contextType=vh,Hw.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const jw=ae.forwardRef((n,e)=>ae.createElement(Hw,Object.assign({},n,{innerRef:e})));jw.displayName="Menu";const lz=ae.forwardRef((n,e)=>{const{getHeight:t,children:i,menuHeight:r,maxMenuHeight:s}=n,o=wn(n,["getHeight","children","menuHeight","maxMenuHeight"]),a=ae.createRef(),l=(c,u,d)=>{if(c){let h=c.clientHeight,f=null,g=c.closest(`.${rn.menuList}`);for(;g!==null&&g.nodeType===1;)g.classList.contains(rn.menuList)&&(f=g),g=g.parentElement;if(f){const m=getComputedStyle(f),p=parseFloat(m.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(m.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(f.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));h=h+p}d&&d(u,h),t&&t(h.toString())}return e||a};return ae.createElement(vh.Consumer,null,({menuId:c,onGetMenuHeight:u})=>ae.createElement("div",Object.assign({},o,{className:On(rn.menuContent,n.className),ref:d=>l(d,c,u),style:Object.assign(Object.assign({},r&&{"--pf-c-menu__content--Height":r}),s&&{"--pf-c-menu__content--MaxHeight":s})}),i))});lz.displayName="MenuContent";const cRe={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},uRe={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},dRe={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var bh;(function(n){n.sm="sm",n.md="md",n.lg="lg",n.xl="xl"})(bh||(bh={}));const hRe=n=>{switch(n){case bh.sm:return"1em";case bh.md:return"1.5em";case bh.lg:return"2em";case bh.xl:return"3em";default:return"1em"}};let fRe=0;function D_({name:n,xOffset:e=0,yOffset:t=0,width:i,height:r,svgPath:s}){var o;return o=class extends ae.Component{constructor(){super(...arguments),this.id=`icon-title-${fRe++}`}render(){const l=this.props,{size:c,color:u,title:d,noVerticalAlign:h}=l,f=wn(l,["size","color","title","noVerticalAlign"]),g=!!d,m=hRe(c),p=-.125*Number.parseFloat(m),v=h?null:{verticalAlign:`${p}em`},_=[e,t,i,r].join(" ");return ae.createElement("svg",Object.assign({style:v,fill:u,height:m,width:m,viewBox:_,"aria-labelledby":g?this.id:null,"aria-hidden":g?null:!0,role:"img"},f),g&&ae.createElement("title",{id:this.id},d),ae.createElement("path",{d:s}))}},o.displayName=n,o.defaultProps={color:"currentColor",size:bh.sm,noVerticalAlign:!1},o}const gRe=D_({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),mRe=D_({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),pRe=D_({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),_Re=D_({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),Iht="",Du={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},cz=()=>{};class Zg extends ae.Component{constructor(e){super(e),this.handleChange=t=>{this.props.onChange(t.currentTarget.checked,t)},this.state={ouiaStateId:oI(Zg.displayName)}}render(){const e=this.props,{"aria-label":t,className:i,onChange:r,isValid:s,isDisabled:o,isRequired:a,isChecked:l,label:c,checked:u,defaultChecked:d,description:h,body:f,ouiaId:g,ouiaSafe:m,component:p}=e,v=wn(e,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);v.id||console.error("Checkbox:","id is required to make input accessible");const _={};return([!0,!1].includes(u)||l===!0)&&(_.checked=u||l),r!==cz&&(_.checked=l),[!1,!0].includes(d)&&(_.defaultChecked=d),_.checked=_.checked===null?!1:_.checked,ae.createElement(p,{className:On(Du.check,!c&&Du.modifiers.standalone,i)},ae.createElement("input",Object.assign({},v,{className:On(Du.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":t,disabled:o,required:a,ref:b=>b&&(b.indeterminate=l===null)},_,sI(Zg.displayName,g!==void 0?g:this.state.ouiaStateId,m))),c&&ae.createElement("label",{className:On(Du.checkLabel,o&&Du.modifiers.disabled),htmlFor:v.id},c,a&&ae.createElement("span",{className:On(Du.checkLabelRequired),"aria-hidden":"true"},c7e)),h&&ae.createElement("span",{className:On(Du.checkDescription)},h),f&&ae.createElement("span",{className:On(Du.checkBody)},f))}}Zg.displayName="Checkbox",Zg.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:cz,ouiaSafe:!0,component:"div"};const vRe=D_({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),bRe=n=>{var{className:e="",icon:t,onClick:i,"aria-label":r,isFavorited:s=null,isDisabled:o,actionId:a,innerRef:l}=n,c=wn(n,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return ae.createElement(vh.Consumer,null,({onActionClick:u})=>ae.createElement(az.Consumer,null,({itemId:d,isDisabled:h})=>{const f=g=>{i&&i(g),u&&u(g,d,a)};return ae.createElement("button",Object.assign({className:On(rn.menuItemAction,s!==null&&rn.modifiers.favorite,s&&rn.modifiers.favorited,e),"aria-label":r,onClick:f},(o===!0||h===!0)&&{disabled:!0},{ref:l,tabIndex:-1},c),ae.createElement("span",{className:On(rn.menuItemActionIcon)},t==="favorites"||s!==null?ae.createElement(vRe,{"aria-hidden":!0}):t))}))},uz=ae.forwardRef((n,e)=>ae.createElement(bRe,Object.assign({},n,{innerRef:e})));uz.displayName="MenuItemAction";const dz=ae.createContext({direction:"right"}),yRe=n=>{var{children:e,className:t,itemId:i=null,to:r,hasCheck:s=!1,isActive:o=null,isFavorited:a=null,isLoadButton:l=!1,isLoading:c=!1,flyoutMenu:u,direction:d,description:h=null,onClick:f=()=>{},component:g="button",isDisabled:m=!1,isExternalLink:p=!1,isSelected:v=null,isFocused:_,isDanger:b=!1,icon:y,actions:w,onShowFlyout:k,drilldownMenu:L,isOnPath:D,innerRef:E}=n,N=wn(n,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:O,parentMenu:I,onSelect:M,onActionClick:B,activeItemId:V,selected:ee,drilldownItemPath:re,onDrillIn:se,onDrillOut:ie,flyoutRef:J,setFlyoutRef:ue,disableHover:Z,role:X}=ae.useContext(vh);let ce=r?"a":g;s&&!r&&(ce="label");const[De,te]=ae.useState(null),xe=ae.useContext(dz),[ge,Ce]=ae.useState(xe.direction),Se=ae.useRef(),pe=Se===J,Q=u!==void 0,Xe=P=>{!pe&&P?ue(Se):pe&&!P&&ue(null),k&&P&&k()};mI(()=>{if(Q&&Se.current&&Gg){const P=Se.current.lastElementChild;if(P&&P.classList.contains(rn.menu)){const F=Se.current.getClientRects()[0],z=P.getClientRects()[0];if(F&&z){const U=F.x-z.width,fe=window.innerWidth-F.x-F.width-z.width;let ke=ge;fe<0&&ke!=="left"?(Ce("left"),ke="left"):U<0&&ke!=="right"&&(Ce("right"),ke="right");let Ie=0;U<0&&fe<0&&(Ie=ke==="right"?-fe:-U),ke==="left"?(P.classList.add(rn.modifiers.left),P.style.setProperty(uRe.name,`-${Ie}px`)):P.style.setProperty(dRe.name,`-${Ie}px`);const Pe=window.innerHeight-F.y-z.height;window.innerHeight-z.height<0&&Pe<0||Pe<0&&P.style.setProperty(cRe.name,`${Pe}px`)}}}},[pe,u]),ae.useEffect(()=>{Ce(xe.direction)},[xe]),ae.useEffect(()=>{if(De)if(pe){const P=De.nextElementSibling;Array.from(P.getElementsByTagName("UL")[0].children).filter(z=>!(z.classList.contains("pf-m-disabled")||z.classList.contains("pf-c-divider")))[0].firstChild.focus()}else De.focus()},[pe,De]);const et=P=>{const F=P.key,z=P.target,U=P.type;(F===" "||F==="Enter"||F==="ArrowRight"||U==="click")&&(P.stopPropagation(),P.preventDefault(),pe||(Xe(!0),te(z))),(F==="Escape"||F==="ArrowLeft")&&pe&&(P.stopPropagation(),Xe(!1))},Fe=(P,F)=>{F&&F(P,i),f&&f(P)},j=D&&D||re&&re.includes(i)||!1;let le;d&&(d==="down"?le=P=>se&&se(P,O,typeof L=="function"?L().props.id:L.props.id,i):le=P=>ie&&ie(P,I,i));let be={};ce==="a"?be={href:r,"aria-disabled":m?!0:null,disabled:null}:ce==="button"&&(be={type:"button"}),D?be["aria-expanded"]=!0:Q&&(be["aria-haspopup"]="menu",be["aria-expanded"]=pe);const $e=()=>o!==null?o?"page":null:i!==null&&V!==null?i===V:null,Y=()=>v!==null?v:ee!==null&&i!==null?Array.isArray(ee)&&ee.includes(i)||i===ee:!1,H=()=>{Z||(Q?Xe(!0):ue(null))},q=X==="listbox";return ae.createElement("li",Object.assign({className:On(rn.menuListItem,m&&rn.modifiers.disabled,j&&rn.modifiers.currentPath,l&&rn.modifiers.load,c&&rn.modifiers.loading,_&&rn.modifiers.focus,b&&rn.modifiers.danger,t),onMouseOver:H},u&&{onKeyDown:et},{ref:Se,role:s?"menuitem":"none"},N),ae.createElement(iI,null,P=>ae.createElement(ce,Object.assign({tabIndex:-1,className:On(rn.menuItem,Y()&&!s&&rn.modifiers.selected,t),"aria-current":$e()},!s&&{disabled:m},!s&&!u&&{role:q?"option":"menuitem"},!s&&!u&&q&&{"aria-selected":Y()},{ref:E},!s&&{onClick:F=>{Fe(F,M),le&&le(F),u&&et(F)}},s&&{htmlFor:P},be),ae.createElement("span",{className:On(rn.menuItemMain)},d==="up"&&ae.createElement("span",{className:On(rn.menuItemToggleIcon)},ae.createElement(pRe,{"aria-hidden":!0})),y&&ae.createElement("span",{className:On(rn.menuItemIcon)},y),s&&ae.createElement("span",{className:On("pf-c-menu__item-check")},ae.createElement(Zg,{id:P,component:"span",isChecked:v||!1,onChange:F=>Fe(F,M),isDisabled:m})),ae.createElement("span",{className:On(rn.menuItemText)},e),p&&ae.createElement("span",{className:On(rn.menuItemExternalIcon)},ae.createElement(gRe,{"aria-hidden":!0})),(u||d==="down")&&ae.createElement("span",{className:On(rn.menuItemToggleIcon)},ae.createElement(mRe,{"aria-hidden":!0})),Y()&&ae.createElement("span",{className:On(rn.menuItemSelectIcon)},ae.createElement(_Re,{"aria-hidden":!0}))),h&&d!=="up"&&ae.createElement("span",{className:On(rn.menuItemDescription)},ae.createElement("span",null,h)))),pe&&ae.createElement(vh.Provider,{value:{disableHover:Z}},ae.createElement(dz.Provider,{value:{direction:ge}},u)),typeof L=="function"?L():L,ae.createElement(az.Provider,{value:{itemId:i,isDisabled:m}},w,a!==null&&ae.createElement(uz,{icon:"favorites",isFavorited:a,"aria-label":a?"starred":"not starred",onClick:P=>B(P,i),tabIndex:-1,actionId:"fav"})))},hz=ae.forwardRef((n,e)=>ae.createElement(yRe,Object.assign({},n,{innerRef:e})));hz.displayName="MenuItem";const fz=n=>{var{children:e=null,className:t,isAriaMultiselectable:i=!1}=n,r=wn(n,["children","className","isAriaMultiselectable"]);const{role:s}=ae.useContext(vh);return ae.createElement("ul",Object.assign({role:s},s==="listbox"&&{"aria-multiselectable":i},{className:On(rn.menuList,t)},r),e)};fz.displayName="MenuList";const CRe=n=>{var{children:e,className:t,onSelect:i,isOpen:r,selected:s,toggle:o,onOpenChange:a,isPlain:l,minWidth:c,innerRef:u,zIndex:d=9999,role:h="listbox"}=n,f=wn(n,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const g=T.useRef(),m=T.useRef(),p=T.useRef(),v=u||g;T.useEffect(()=>{const b=w=>{var k,L,D;(r&&a&&(!((k=v.current)===null||k===void 0)&&k.contains(w.target))||!((L=m.current)===null||L===void 0)&&L.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(a(!1),(D=m.current)===null||D===void 0||D.focus())},y=w=>{var k,L,D;r&&(!((k=m.current)===null||k===void 0)&&k.contains(w.target))&&w.detail===0&&setTimeout(()=>{var E;const N=(E=v==null?void 0:v.current)===null||E===void 0?void 0:E.querySelector("li button:not(:disabled),li input:not(:disabled)");N&&N.focus()},0),r&&a&&!(!((L=m==null?void 0:m.current)===null||L===void 0)&&L.contains(w.target))&&r&&!(!((D=v.current)===null||D===void 0)&&D.contains(w.target))&&a(!1)};return window.addEventListener("keydown",b),window.addEventListener("click",y),()=>{window.removeEventListener("keydown",b),window.removeEventListener("click",y)}},[r,v,a]);const _=T.createElement(jw,Object.assign({role:h,className:On(t),ref:v,onSelect:(b,y)=>i(b,y),isPlain:l,selected:s},c&&{style:{"--pf-c-menu--MinWidth":c}},sI(E_.displayName,f.ouiaId!==void 0?f.ouiaId:oI(E_.displayName),f.ouiaSafe!==void 0?f.ouiaSafe:!0),f),T.createElement(lz,null,e));return T.createElement("div",{ref:p},T.createElement(oz,{trigger:o(m),removeFindDomNode:!0,popper:_,appendTo:p.current||void 0,isVisible:r,zIndex:d}))},E_=T.forwardRef((n,e)=>T.createElement(CRe,Object.assign({innerRef:e},n)));E_.displayName="Select";const vI=n=>{var{children:e,className:t,isAriaMultiselectable:i=!1}=n,r=wn(n,["children","className","isAriaMultiselectable"]);return T.createElement(fz,Object.assign({isAriaMultiselectable:i,className:On(t)},r),e)};vI.displayName="SelectList";const bI=n=>{var{children:e,className:t}=n,i=wn(n,["children","className"]);return T.createElement(hz,Object.assign({className:On(t)},i),e)};bI.displayName="SelectOption";const Nht="",Mht="";function Eu(n){const{t:e}=ts(),{id:t,icon:i,value:r,onSelect:s,options:o,placeholder:a}=n,[l,c]=T.useState(!1),u=T.useMemo(()=>o.find(_=>r===_.value),[o,r]),d=_=>x.jsxs(R.MenuToggle,{id:t,ref:_,onClick:()=>c(b=>!b),isExpanded:l,onKeyDown:b=>{switch(b.key){default:c(!0);break}},children:[i&&x.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),u?u.label:x.jsx("span",{className:"page-select-placeholder",children:a})]}),h=T.useCallback((_,b)=>{const y=o.find(w=>w.key!==void 0?w.key===b:w.label===b);y&&(s(y.value),c(!1))},[s,o]),[f,g]=T.useState(""),m=T.useRef(null);T.useEffect(()=>{g(""),l&&m.current&&m.current.focus()},[l]),T.useEffect(()=>{n.isRequired&&!u&&o.length>0&&s(o[0].value)},[s,o,n.isRequired,u]);const p=T.useMemo(()=>o.filter(_=>f===""?!0:_.label.toLowerCase().includes(f.toLowerCase())),[o,f]),v=T.useMemo(()=>p.length>10||f,[f,p.length]);return x.jsx("div",{className:"page-single-select",children:x.jsxs(E_,{selected:u==null?void 0:u.label,onSelect:h,isOpen:l,onOpenChange:c,toggle:d,style:{zIndex:l?9999:void 0},children:[v&&x.jsx("div",{className:"page-select-header",children:x.jsx(R.SearchInput,{id:t?`${t}-search`:void 0,ref:m,value:f,onChange:(_,b)=>g(b),onClear:_=>{_.stopPropagation(),g("")}})}),p.length===0?x.jsx("div",{style:{margin:16},children:e("No results found")}):x.jsx(vI,{className:"page-select-list",children:p.map(_=>x.jsx(bI,{itemId:_.key!==void 0?_.key:_.label,description:_.description,children:_.label},_.key!==void 0?_.key:_.label))}),n.footer&&x.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function wRe(n){const{t:e}=ts(),[t,i]=T.useState(!1),[r,s]=T.useState(),[o,a]=T.useState(0),[l,c]=T.useState(),[u,d]=T.useState(1),h=T.useRef(new AbortController).current;T.useEffect(()=>()=>h.abort(),[h]);const f=T.useRef(n.onSelect).current,g=T.useRef(n.queryOptions).current,m=T.useCallback(v=>{i(_=>{if(_)return _;s(void 0),c(b=>{if(b)return b});try{g(v,h.signal).then(b=>{h.signal.aborted||(c(y=>{let w;return y?w=[...y,...b.options]:w=b.options,b.total===1&&f(w[0].value),w}),a(b.total))}).catch(b=>{h.signal.aborted||(b instanceof Error?s(b):s(new Error(e("Unknown error"))))}).finally(()=>{h.signal.aborted||i(!1)})}catch(b){b instanceof Error?s(b):s(new Error(e("Unknown error"))),i(!1)}return!0})},[h.signal,f,g,e]);T.useEffect(()=>m(u),[u,m]);const p=x.jsxs(R.Stack,{hasGutter:!0,children:[t?x.jsxs(R.Flex,{alignItems:{default:"alignItemsCenter"},spaceItems:{default:"spaceItemsMd"},children:[x.jsx(R.FlexItem,{children:x.jsx(R.Spinner,{size:"md"})}),x.jsx(R.FlexItem,{children:e("Loading...")})]}):x.jsxs(R.Split,{hasGutter:!0,children:[x.jsx(R.SplitItem,{isFilled:!0,children:(l==null?void 0:l.length)!==o&&x.jsx(R.Button,{variant:"link",isInline:!0,onClick:v=>{v.preventDefault(),v.stopPropagation(),d(_=>_+1)},isSmall:!0,children:e("Load more")})}),x.jsx(R.SplitItem,{children:e("{{count}} of {{total}}",{count:(l==null?void 0:l.length)??0,total:o})})]}),n.footer]});return l?x.jsx(Eu,{id:n.id,icon:n.icon,placeholder:n.placeholder,options:l??[],value:n.value,onSelect:n.onSelect,footer:p}):r?x.jsx(R.Button,{id:n.id,variant:"secondary",isDanger:!0,icon:x.jsx(yt.SyncAltIcon,{}),iconPosition:"right",onClick:v=>{d(_=>(_===1&&m(1),1))},children:typeof n.queryErrorText=="function"?n.queryErrorText(r):n.queryErrorText??e("Error loading options")}):x.jsx(R.Button,{id:n.id,variant:"control",isLoading:!0,children:n.queryPlaceholder??e("Loading options...")})}const Pht="";function SRe(n){const{t:e}=ts(),{id:t,icon:i,placeholder:r,values:s,onSelect:o,options:a,variant:l,disableClearSelection:c}=n,[u,d]=T.useState(!1),h=T.useMemo(()=>a.filter(w=>s==null?!1:s.includes(w.value)),[a,s]),f=w=>x.jsxs(R.MenuToggle,{isFullWidth:!0,id:t,ref:w,onClick:()=>d(k=>!k),isExpanded:u,onKeyDown:k=>{switch(k.key){default:d(!0);break}},children:[i&&x.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),h.length>0?x.jsx(x.Fragment,{children:l==="count"?x.jsx(R.Chip,{isReadOnly:c,onClick:()=>o(()=>[]),style:{marginTop:-2,marginBottom:-2},children:h.length}):x.jsxs(x.Fragment,{children:[x.jsx(R.ChipGroup,{children:h.map(k=>x.jsx(R.Chip,{isReadOnly:!0,style:{marginTop:-2,marginBottom:-2},children:k.label},k.label))}),!c&&x.jsx(yt.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>o(()=>[]),style:{verticalAlign:"middle",marginLeft:8},size:"sm"})]})}):x.jsx("span",{className:"page-select-placeholder",children:r})]}),g=T.useMemo(()=>h.map(w=>w.label),[h]),m=T.useCallback((w,k)=>{o(L=>{const D=a.find(E=>E.key!==void 0?E.key===k:E.label===k);return D&&((L==null?void 0:L.find(E=>E===D.value))!==void 0?L=L.filter(E=>E!==D.value):(L=L?[...L]:[],L.push(D.value))),L})},[o,a]),[p,v]=T.useState(""),_=T.useRef(null);T.useEffect(()=>{v(""),u&&_.current&&_.current.focus()},[u]);const b=T.useMemo(()=>a.filter(w=>p===""?!0:w.label.toLowerCase().includes(p.toLowerCase())),[a,p]),y=T.useMemo(()=>b.length>10||p,[p,b.length]);return x.jsx("div",{className:"page-multi-select",children:x.jsxs(E_,{selected:g,onSelect:m,isOpen:u,onOpenChange:d,toggle:f,style:{zIndex:u?9999:void 0},children:[y&&x.jsx("div",{className:"page-select-header",children:x.jsx(R.SearchInput,{id:t?`${t}-search`:void 0,ref:_,value:p,onChange:(w,k)=>v(k),onClear:w=>{w.stopPropagation(),v("")}})}),b.length===0?x.jsx("div",{style:{margin:16},children:e("No results found")}):x.jsx(vI,{className:"page-select-list",children:b.map(w=>x.jsx(bI,{itemId:w.key!==void 0?w.key:w.label,description:w.description?x.jsx("div",{style:{maxWidth:300},children:w.description}):void 0,hasCheck:!0,isSelected:h.includes(w),children:w.label},w.key!==void 0?w.key:w.label))}),n.footer&&x.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function xRe(n){const{filterValues:e,setFilterValues:t,placeholder:i,isRequired:r,defaultValue:s}=n,o=e&&e.length>0?e[0]:void 0,a=n.options.find(f=>f.value===o);r&&!a&&t(()=>[s??n.options[0].value]);function l(f){n.options.find(m=>m.value===f)&&t(()=>[f])}const[c,u]=T.useState(()=>{if(e&&e.length>1)return e[1]}),[d,h]=T.useState(()=>{if(e&&e.length>2)return e[2]});return T.useEffect(()=>{if(a&&a.isCustom){const f=[a.value];c&&(f.push(c),d&&f.push(d)),t(()=>f)}},[a,c,d,t]),x.jsxs(R.ToolbarItem,{children:[x.jsx(Eu,{value:(a==null?void 0:a.value)??"",onSelect:l,options:n.options,placeholder:i}),a&&a.isCustom&&x.jsx(LRe,{to:d,setTo:h,from:c,setFrom:u})]})}function LRe(n){const{to:e,setTo:t,from:i,setFrom:r}=n,{t:s}=ts(),o=(u,d)=>{r(d)},a=(u,d)=>{t(d)},l=i?new Date(i):void 0,c=u=>l?R.isValidDate(l)&&u>=l?"":s('The "to" date must be after the "from" date'):"";return x.jsxs(x.Fragment,{children:[x.jsx(R.DatePicker,{value:i,onChange:o,"aria-label":"Start date",placeholder:"YYYY-MM-DD"}),x.jsx("div",{style:{alignSelf:"baseline",padding:6},children:s("to")}),x.jsx(R.DatePicker,{value:e,onChange:a,isDisabled:!l||!R.isValidDate(l),rangeStart:l,validators:[c],"aria-label":"End date",placeholder:s("now"),invalidFormatText:s("Invalid date format")}),e!==void 0&&x.jsx(R.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>t(void 0),children:x.jsx(yt.TimesCircleIcon,{})})]})}function kRe(n){const{t:e}=ts(),[t,i]=T.useState("");let r=n.placeholder;if(!r)switch(n.comparison){case"contains":r=e("contains");break;case"startsWith":r=e("starts with");break;case"endsWith":r=e("ends with");break;case"equals":r=e("equals");break}return x.jsxs(R.InputGroup,{children:[x.jsxs(R.TextInputGroup,{style:{minWidth:220},children:[x.jsx(R.TextInputGroupMain,{id:n.id,value:t,onChange:(s,o)=>{i(typeof s=="string"?s:o)},onKeyUp:s=>{t&&s.key==="Enter"&&(n.addFilter(t),i(""))},placeholder:r}),t!==""&&x.jsx(R.TextInputGroupUtilities,{children:x.jsx(R.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>i(""),style:{opacity:t?void 0:0},tabIndex:-1,children:x.jsx(yt.TimesIcon,{})})})]}),x.jsx(R.Button,{variant:t?"primary":"control","aria-label":"apply filter",onClick:()=>{n.addFilter(t),i("")},tabIndex:-1,isDisabled:!t,children:x.jsx(yt.ArrowRightIcon,{})})]})}var gz=(n=>(n[n.Text=0]="Text",n[n.SingleSelect=1]="SingleSelect",n[n.MultiSelect=2]="MultiSelect",n[n.DateRange=3]="DateRange",n[n.AsyncSingleSelect=4]="AsyncSingleSelect",n))(gz||{});function mz(n){var l;const{toolbarFilters:e,filterState:t,setFilterState:i}=n,[r,s]=T.useState(()=>e&&(e==null?void 0:e.length)>0?e[0].key:""),o=e==null?void 0:e.find(c=>c.key===r);if(!o)return x.jsx(x.Fragment,{});if(!e)return x.jsx(x.Fragment,{});if(e.length===0)return x.jsx(x.Fragment,{});let a=e.length===1;return e.length>=1&&(e[0].type===2&&e[0].isPinned||e[0].type===1&&e[0].isPinned&&(t[e[0].key]==null||((l=t[e[0].key])==null?void 0:l.length)===0))&&(a=!1),x.jsx(x.Fragment,{children:e.length===1?x.jsxs(R.ToolbarItem,{children:[a&&x.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:e[0].label}),x.jsx(_z,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]}):x.jsxs(R.ToolbarItem,{children:[x.jsx(Eu,{id:"filter",value:r,onSelect:s,icon:x.jsx(yt.FilterIcon,{}),options:e.map(c=>({label:c.label,value:c.key})),placeholder:""}),x.jsx(_z,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]})})}function pz(n){const{toolbarFilters:e,setFilterState:t,filterState:i}=n,[r]=yi(),s=!ws("md");if(!e)return x.jsx(x.Fragment,{});if(e.length===0)return x.jsx(x.Fragment,{});const o=e.filter(l=>!l.isPinned),a=e.filter(l=>!!l.isPinned);return x.jsx(R.ToolbarToggleGroup,{toggleIcon:x.jsx(yt.FilterIcon,{}),breakpoint:"md",children:x.jsxs(R.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:16},children:[s&&x.jsx(R.ToolbarItem,{variant:"label",children:r.filter}),x.jsx(mz,{toolbarFilters:o,setFilterState:t,filterState:i}),a==null?void 0:a.map(l=>x.jsx(mz,{toolbarFilters:[l],setFilterState:t,filterState:i},l.key)),e==null?void 0:e.map(l=>{const c=(i==null?void 0:i[l.key])||[];return l.isPinned&&l.type===1?x.jsx(x.Fragment,{}):l.isPinned&&l.type===3?x.jsx(x.Fragment,{}):x.jsx(R.ToolbarFilter,{categoryName:l.label,chips:c.map(u=>{var d;switch(l.type){case 1:case 2:return((d=l.options.find(h=>h.value===u))==null?void 0:d.label)??u;default:return u}}),deleteChip:(u,d)=>{t==null||t(h=>{var m;const f={...h};switch(d=typeof d=="string"?d:d.key,l.type){case 1:case 2:d=((m=l.options.find(p=>p.value===d))==null?void 0:m.label)??d;break}let g=h[l.key];return g&&(g=g.filter(p=>p!==d),g.length===0?delete f[l.key]:f[l.key]=g),f})},deleteChipGroup:()=>{t==null||t(u=>{const d={...u};return delete d[l.key],d})},showToolbarItem:!1,children:x.jsx(x.Fragment,{})},l.label)})]})})}function _z(n){const{filter:e,filterState:t,setFilterState:i}=n,r=t==null?void 0:t[e.key],s=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=a(u),c})},[e.key,i]),o=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=[...u,a],c})},[e.key,i]);switch(e.type){case 0:return x.jsx(kRe,{id:n.id??e.key,addFilter:o,placeholder:e.placeholder,comparison:e.comparison});case 1:return x.jsx(Eu,{id:n.id??e.key,placeholder:e.placeholder,value:r&&(r==null?void 0:r.length)>0?r[0]:"",onSelect:a=>s(()=>[a]),options:e.options,isRequired:e.isRequired});case 4:return x.jsx(wRe,{id:n.id??e.key,value:r&&(r==null?void 0:r.length)>0?r[0]:"",onSelect:a=>s(()=>[a]),placeholder:e.placeholder||"",queryOptions:e.queryOptions,queryErrorText:e.queryErrorText,queryPlaceholder:e.queryPlaceholder,isRequired:e.isRequired});case 2:return x.jsx(SRe,{id:n.id??e.key,placeholder:e.placeholder,values:r,onSelect:s,options:e.options,variant:"count",disableClearSelection:!0});case 3:return x.jsx(xRe,{id:n.id??e.key,label:e.label,placeholder:e.placeholder??"",filterValues:r,setFilterValues:s,options:e.options,isRequired:e.isRequired,defaultValue:e.defaultValue})}}function DRe(n){const{sort:e,setSort:t,sortDirection:i,setSortDirection:r,sortOptions:s}=n,o=s==null?void 0:s.find(u=>u.value===e),a=o?o.type:void 0,[l]=yi(),c=T.useMemo(()=>{switch(a){case"text":switch(i){case"asc":return x.jsx(yt.SortAlphaUpIcon,{});case"desc":return x.jsx(yt.SortAlphaDownAltIcon,{})}break;case"number":switch(i){case"asc":return x.jsx(yt.SortNumericUpIcon,{});case"desc":return x.jsx(yt.SortNumericDownAltIcon,{})}break;default:switch(i){case"asc":return x.jsx(yt.SortAmountUpIcon,{});case"desc":return x.jsx(yt.SortAmountDownIcon,{})}break}return x.jsx(x.Fragment,{})},[i,a]);return!s||s.length<=0?x.jsx(x.Fragment,{}):x.jsx(R.ToolbarToggleGroup,{breakpoint:"md",toggleIcon:void 0,children:x.jsxs(R.ToolbarGroup,{variant:"filter-group",children:[x.jsx(R.ToolbarItem,{variant:"label",children:l.sort}),x.jsx(R.ToolbarItem,{children:x.jsxs(R.Split,{children:[x.jsx(ERe,{sortOptions:s,sort:e,setSort:t,setSortDirection:r}),x.jsx(R.Button,{variant:"control",icon:c,onClick:()=>{i==="asc"?r==null||r("desc"):r==null||r("asc")}})]})})]})})}function ERe(n){const{sortOptions:e,sort:t,setSort:i,setSortDirection:r}=n,s=T.useCallback(o=>{if(o){const a=e.find(l=>l.value===o);a&&t!==o&&a.defaultDirection&&(r==null||r(a.defaultDirection)),i==null||i(o)}},[e,i,r,t]);return x.jsx(Eu,{placeholder:"",value:t,onSelect:s,options:e.map(o=>({label:o.label,value:o.value}))})}function TRe(n){return T.useMemo(()=>{const t=[];for(const i of n)if(i.sort){if(i.defaultSort){t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});continue}switch(i.type){case"count":t.push({label:i.header,value:i.sort,type:"number",defaultDirection:i.defaultSortDirection});break;case"text":t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});break;default:t.push({label:i.header,value:i.sort,defaultDirection:i.defaultSortDirection});break}}return t},[n])}function IRe(n){const{viewType:e,setViewType:t,openColumnModal:i}=n,[r]=yi();let s=0;return n.disableTableView||s++,n.disableCardView||s++,n.disableListView||s++,x.jsxs(R.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:[i&&x.jsx(R.ToolbarItem,{children:x.jsx(R.Tooltip,{content:r.manageColumns,children:x.jsx(R.Button,{variant:"plain",icon:x.jsx(yt.ColumnsIcon,{}),onClick:i})})}),s>1&&x.jsx(R.ToolbarItem,{children:x.jsx(R.ToggleGroup,{"aria-label":"table view toggle",children:[!n.disableTableView&&Gn.Table,!n.disableListView&&Gn.List,!n.disableCardView&&Gn.Cards].filter(o=>o).map(o=>{switch(o){case Gn.Cards:return x.jsx(R.Tooltip,{content:r.cardView,position:"top-end",enableFlip:!1,children:x.jsx(R.ToggleGroupItem,{icon:x.jsx(yt.ThLargeIcon,{}),isSelected:e===Gn.Cards,onClick:()=>t==null?void 0:t(Gn.Cards),"aria-label":"card view"})},o);case Gn.List:return x.jsx(R.Tooltip,{content:r.listView,position:"top-end",enableFlip:!1,children:x.jsx(R.ToggleGroupItem,{icon:x.jsx(yt.ListIcon,{}),isSelected:e===Gn.List,onClick:()=>t==null?void 0:t(Gn.List),"aria-label":"list view"})},o);case Gn.Table:return x.jsx(R.Tooltip,{content:r.tableView,position:"top-end",enableFlip:!1,children:x.jsx(R.ToggleGroupItem,{icon:x.jsx(yt.TableIcon,{}),isSelected:e===Gn.Table,onClick:()=>t==null?void 0:t(Gn.Table),"aria-label":"table view"})},o)}})})})]})}const ARe=un.div`
|
307
|
+
`;function t7e(n){const{ariaLabel:e="",content:t,header:i,id:r="",maxWidth:s="",...o}=n,[a]=yi();return t?x.jsx(P.Popover,{bodyContent:t,headerContent:i,hideOnOutsideClick:!0,id:r,"data-cy":r,maxWidth:s,...o,children:x.jsx(e7e,{"aria-label":e??a.moreInformation,"aria-haspopup":"true",className:"pf-c-form__group-label-help",onClick:l=>l.preventDefault(),type:"button",children:x.jsx(yt.HelpIcon,{noVerticalAlign:!0})})}):null}function v_(n){const{label:e,children:t,helpText:i,isEmpty:r}=n;return t===null||typeof t>"u"||t===""?x.jsx(x.Fragment,{}):r?x.jsx(x.Fragment,{}):x.jsxs(P.DescriptionListGroup,{children:[e&&x.jsxs(P.DescriptionListTerm,{children:[e,i?x.jsx(t7e,{header:e,content:i}):null]}),x.jsx(P.DescriptionListDescription,{id:e==null?void 0:e.toLowerCase().split(" ").join("-"),children:t})]})}function Aj(n){const{disablePadding:e}=n,t=ag(),i=t.formLayout,r=n.numberOfColumns?n.numberOfColumns:t.formColumns,s=!1;return x.jsx(P.PageSection,{variant:"light",padding:{default:"noPadding"},className:"dark-1",children:x.jsx(P.DescriptionList,{orientation:{sm:i,md:i,lg:i,xl:i,"2xl":i},columnModifier:r==="multiple"?{default:"1Col",sm:"1Col",md:"2Col",lg:"2Col",xl:"3Col","2xl":"3Col"}:void 0,style:{maxWidth:1200,padding:e?void 0:24},isCompact:s,children:n.children})})}var Gn=(n=>(n.Table="table",n.List="list",n.Cards="cards",n))(Gn||{}),ku=(n=>(n.Description="description",n.Expanded="expanded",n.Hidden="hidden",n))(ku||{}),Oj=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n.Primary="primary",n.Secondary="secondary",n))(Oj||{}),Nj=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n))(Nj||{}),Mj=(n=>(n.Hidden="hidden",n))(Mj||{});function Wr(n){const{item:e,column:t}=n;if(!t)return x.jsx(x.Fragment,{});switch(t.type){case"text":return x.jsx(eD,{text:t.value(e)});case"description":return x.jsx(eD,{text:t.value(e)});case"datetime":return x.jsx(TR,{format:"since",value:t.value(e)});case"count":return x.jsx(x.Fragment,{children:t.value(e)??"-"});case"labels":return x.jsx(IR,{labels:t.value(e)??[]});default:return x.jsx(x.Fragment,{children:t.cell(e)})}}function tI(n){return T.useMemo(()=>n.filter(e=>!(e.table==="hidden"||e.table==="description"||e.table==="expanded")),[n])}function Pj(n){return T.useMemo(()=>n.filter(e=>e.list!=="hidden"),[n])}function Rj(n){return T.useMemo(()=>n.filter(e=>e.card!=="hidden"),[n])}function nI(n){return T.useMemo(()=>n.filter(e=>e.modal!=="hidden"),[n])}function n7e(n,e){const t=tI(n),i=Pj(n),r=Rj(n);switch(e){case Gn.Table:return t;case Gn.List:return i;case Gn.Cards:return r}}function Fj(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="description"),[n])}function Bj(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="expanded"),[n])}function i7e(n){return T.useMemo(()=>n.map(e=>({...e,sort:void 0})),[n])}function r7e(n){return T.useMemo(()=>n.map(e=>({...e,table:e.table==="expanded"?void 0:e.table})),[n])}function Wj(n){const{item:e,columns:t,disablePadding:i,numberOfColumns:r}=n;return e?x.jsx(Aj,{disablePadding:i,numberOfColumns:r,children:t.map(s=>"value"in s&&s.value&&!s.value(e)?x.jsx(T.Fragment,{},s.id??s.header):x.jsx(v_,{label:s.header,children:x.jsx(Wr,{column:s,item:e})},s.id??s.header))}):x.jsx(x.Fragment,{})}let s7e=class{constructor(e){c3(this,"value");c3(this,"next");this.value=e}};class o7e{constructor(){dk(this,Gl,void 0);dk(this,zf,void 0);dk(this,Uf,void 0);this.clear()}enqueue(e){const t=new s7e(e);Vd(this,Gl)?(Vd(this,zf).next=t,lu(this,zf,t)):(lu(this,Gl,t),lu(this,zf,t)),u3(this,Uf)._++}dequeue(){const e=Vd(this,Gl);if(e)return lu(this,Gl,Vd(this,Gl).next),u3(this,Uf)._--,e.value}clear(){lu(this,Gl,void 0),lu(this,zf,void 0),lu(this,Uf,0)}get size(){return Vd(this,Uf)}*[Symbol.iterator](){let e=Vd(this,Gl);for(;e;)yield e.value,e=e.next}}Gl=new WeakMap,zf=new WeakMap,Uf=new WeakMap;function a7e(n){if(!((Number.isInteger(n)||n===Number.POSITIVE_INFINITY)&&n>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new o7e;let t=0;const i=()=>{t--,e.size>0&&e.dequeue()()},r=async(a,l,c)=>{t++;const u=(async()=>a(...c))();l(u);try{await u}catch{}i()},s=(a,l,c)=>{e.enqueue(r.bind(void 0,a,l,c)),(async()=>(await Promise.resolve(),t<n&&e.size>0&&e.dequeue()()))()},o=(a,...l)=>new Promise(c=>{s(a,c,l)});return Object.defineProperties(o,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o}function Vj(n){const[e,t]=T.useState(!1),i=ws("sm"),[r]=yi(),{pageItems:s,selectedItems:o,selectItems:a,unselectAll:l}=n,c=n.itemCount!==void 0&&n.itemCount>0&&s&&s.length>0&&(s??[]).every(p=>o==null?void 0:o.includes(p)),u=T.useCallback(()=>{c?l==null||l():a==null||a(s??[])},[c,l,a,s]),d=T.useMemo(()=>i?o&&o.length>0?`${o.length} selected`:"":o&&o.length>0?`${o.length}`:"",[i,o]),h=T.useMemo(()=>{const p=o?o.length:0;return x.jsx(P.DropdownToggle,{splitButtonItems:[x.jsx(P.DropdownToggleCheckbox,{id:"select-all","aria-label":"Select all",isChecked:c?!0:p>0?null:!1,onChange:u,children:d},"select-all")],onToggle:v=>t(v)})},[o,c,u,d]),f=T.useMemo(()=>x.jsx(P.DropdownItem,{id:"select-none",onClick:()=>{l==null||l(),t(!1)},children:n.selectNoneText??r.selectNone},"select-none"),[n.selectNoneText,r.selectNone,l]),g=T.useMemo(()=>x.jsx(P.DropdownItem,{id:"select-page",onClick:()=>{a==null||a(s??[]),t(!1)},children:`Select ${(s==null?void 0:s.length)??0} page items`},"select-page"),[a,s]),m=T.useMemo(()=>[f,g],[f,g]);return x.jsx(P.Dropdown,{isOpen:e,toggle:h,dropdownItems:m,style:{zIndex:400}})}const sht="";function On(...n){const e=[],t={}.hasOwnProperty;return n.filter(Boolean).forEach(i=>{const r=typeof i;if(r==="string"||r==="number")e.push(i);else if(Array.isArray(i)&&i.length){const s=On(...i);s&&e.push(s)}else if(r==="object")for(const s in i)t.call(i,s)&&i[s]&&e.push(s)}),e.join(" ")}const oht="",rn={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let l7e=0;class iI extends ae.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${l7e++}`}render(){return this.props.children(this.id)}}iI.displayName="GenerateId",iI.defaultProps={prefix:"pf-random-id-"};const c7e="*";let u7e=0;const $j="OUIA-Generated-",rI={};function sI(n,e,t=!0){return{"data-ouia-component-type":`PF4/${n}`,"data-ouia-safe":t,"data-ouia-component-id":e}}function oI(n,e){try{let t;return typeof window<"u"?t=`${window.location.href}-${n}-${e||""}`:t=`${n}-${e||""}`,rI[t]||(rI[t]=0),`${$j}${n}-${e?`${e}-`:""}${++rI[t]}`}catch{return`${$j}${n}-${e?`${e}-`:""}${++u7e}`}}const Gg=!!(typeof window<"u"&&window.document&&window.document.createElement);function b_(n){const e=n.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function rl(n){if(n.toString()!=="[object Window]"){const e=n.ownerDocument;return e?e.defaultView:window}return n}function aI(n){const e=rl(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function y_(n){const e=rl(n).Element;return n instanceof e||n instanceof Element}function sl(n){const e=rl(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function d7e(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function h7e(n){return n===rl(n)||!sl(n)?aI(n):d7e(n)}function ma(n){return n?(n.nodeName||"").toLowerCase():null}function pc(n){return(y_(n)?n.ownerDocument:n.document).documentElement}function lI(n){return b_(pc(n)).left+aI(n).scrollLeft}function _c(n){return rl(n).getComputedStyle(n)}function cI(n){const{overflow:e,overflowX:t,overflowY:i}=_c(n);return/auto|scroll|overlay|hidden/.test(e+i+t)}function f7e(n,e,t=!1){const i=pc(e),r=b_(n),s=sl(e);let o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!t)&&((ma(e)!=="body"||cI(i))&&(o=h7e(e)),sl(e)?(a=b_(e),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=lI(i))),{x:r.left+o.scrollLeft-a.x,y:r.top+o.scrollTop-a.y,width:r.width,height:r.height}}function uI(n){return{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}}function Bw(n){return ma(n)==="html"?n:n.assignedSlot||n.parentNode||n.host||pc(n)}function Hj(n){return["html","body","#document"].indexOf(ma(n))>=0?n.ownerDocument.body:sl(n)&&cI(n)?n:Hj(Bw(n))}function C_(n,e=[]){const t=Hj(n),i=ma(t)==="body",r=rl(t),s=i?[r].concat(r.visualViewport||[],cI(t)?t:[]):t,o=e.concat(s);return i?o:o.concat(C_(Bw(s)))}function g7e(n){return["table","td","th"].indexOf(ma(n))>=0}function jj(n){if(!sl(n)||_c(n).position==="fixed")return null;const e=n.offsetParent;if(e){const t=pc(e);if(ma(e)==="body"&&_c(e).position==="static"&&_c(t).position!=="static")return t}return e}function m7e(n){let e=Bw(n);for(;sl(e)&&["html","body"].indexOf(ma(e))<0;){const t=_c(e);if(t.transform!=="none"||t.perspective!=="none"||t.willChange&&t.willChange!=="auto")return e;e=e.parentNode}return null}function w_(n){const e=rl(n);let t=jj(n);for(;t&&g7e(t)&&_c(t).position==="static";)t=jj(t);return t&&ma(t)==="body"&&_c(t).position==="static"?e:t||m7e(n)||e}const No="top",pa="bottom",_a="right",Mo="left",dI="auto",S_=[No,pa,_a,Mo],Yg="start",hI="end",p7e="clippingParents",zj="viewport",x_="popper",_7e="reference",Uj=S_.reduce((n,e)=>n.concat([`${e}-${Yg}`,`${e}-${hI}`]),[]),qj=[...S_,dI].reduce((n,e)=>n.concat([e,`${e}-${Yg}`,`${e}-${hI}`]),[]),v7e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b7e(n){const e=new Map,t=new Set,i=[];n.forEach(s=>{e.set(s.name,s)});function r(s){t.add(s.name),[...s.requires||[],...s.requiresIfExists||[]].forEach(a=>{if(!t.has(a)){const l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(s=>{t.has(s.name)||r(s)}),i}function y7e(n){const e=b7e(n);return v7e.reduce((t,i)=>t.concat(e.filter(r=>r.phase===i)),[])}function C7e(n){let e;return()=>(e||(e=new Promise(t=>{Promise.resolve().then(()=>{e=void 0,t(n())})})),e)}function ol(n){return n.split("-")[0]}function w7e(n){const e=n.reduce((t,i)=>{const r=t[i.name];return t[i.name]=r?Object.assign(Object.assign(Object.assign({},r),i),{options:Object.assign(Object.assign({},r.options),i.options),data:Object.assign(Object.assign({},r.data),i.data)}):i,t},{});return Object.keys(e).map(t=>e[t])}function S7e(n){const e=rl(n),t=pc(n),i=e.visualViewport;let r=t.clientWidth,s=t.clientHeight,o=0,a=0;return i&&(r=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:r,height:s,x:o+lI(n),y:a}}function x7e(n){const e=pc(n),t=aI(n),i=n.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let o=-t.scrollLeft+lI(n);const a=-t.scrollTop;return _c(i||e).direction==="rtl"&&(o+=Math.max(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:o,y:a}}function Kj(n,e){const t=!!(e.getRootNode&&e.getRootNode().host);if(n.contains(e))return!0;if(t){let i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function fI(n){return Object.assign(Object.assign({},n),{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function L7e(n){const e=b_(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Gj(n,e){return e===zj?fI(S7e(n)):sl(e)?L7e(e):fI(x7e(pc(n)))}function k7e(n){const e=C_(Bw(n)),i=["absolute","fixed"].indexOf(_c(n).position)>=0&&sl(n)?w_(n):n;return y_(i)?e.filter(r=>y_(r)&&Kj(r,i)&&ma(r)!=="body"):[]}function D7e(n,e,t){const r=[...e==="clippingParents"?k7e(n):[].concat(e),t],s=r[0],o=r.reduce((a,l)=>{const c=Gj(n,l);return a.top=Math.max(c.top,a.top),a.right=Math.min(c.right,a.right),a.bottom=Math.min(c.bottom,a.bottom),a.left=Math.max(c.left,a.left),a},Gj(n,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function L_(n){return n.split("-")[1]}function gI(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yj({reference:n,element:e,placement:t}){const i=t?ol(t):null,r=t?L_(t):null,s=n.x+n.width/2-e.width/2,o=n.y+n.height/2-e.height/2;let a;switch(i){case No:a={x:s,y:n.y-e.height};break;case pa:a={x:s,y:n.y+n.height};break;case _a:a={x:n.x+n.width,y:o};break;case Mo:a={x:n.x-e.width,y:o};break;default:a={x:n.x,y:n.y}}const l=i?gI(i):null;if(l!=null){const c=l==="y"?"height":"width";switch(r){case Yg:a[l]=Math.floor(a[l])-Math.floor(n[c]/2-e[c]/2);break;case hI:a[l]=Math.floor(a[l])+Math.ceil(n[c]/2-e[c]/2);break}}return a}function Zj(){return{top:0,right:0,bottom:0,left:0}}function Xj(n){return Object.assign(Object.assign({},Zj()),n)}function Qj(n,e){return e.reduce((t,i)=>(t[i]=n,t),{})}function k_(n,e={}){const{placement:t=n.placement,boundary:i=p7e,rootBoundary:r=zj,elementContext:s=x_,altBoundary:o=!1,padding:a=0}=e,l=Xj(typeof a!="number"?a:Qj(a,S_)),c=s===x_?_7e:x_,u=n.elements.reference,d=n.rects.popper,h=n.elements[o?c:s],f=D7e(y_(h)?h:h.contextElement||pc(n.elements.popper),i,r),g=b_(u),m=Yj({reference:g,element:d,strategy:"absolute",placement:t}),p=fI(Object.assign(Object.assign({},d),m)),v=s===x_?p:g,_={top:f.top-v.top+l.top,bottom:v.bottom-f.bottom+l.bottom,left:f.left-v.left+l.left,right:v.right-f.right+l.right},b=n.modifiersData.offset;if(s===x_&&b){const y=b[t];Object.keys(_).forEach(w=>{const k=[_a,pa].indexOf(w)>=0?1:-1,L=[No,pa].indexOf(w)>=0?"y":"x";_[w]+=y[L]*k})}return _}const Jj={placement:"bottom",modifiers:[],strategy:"absolute"};function ez(...n){return!n.some(e=>!(e&&typeof e.getBoundingClientRect=="function"))}function E7e(n={}){const{defaultModifiers:e=[],defaultOptions:t=Jj}=n;return function(r,s,o=t){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Jj),t),modifiersData:{},elements:{reference:r,popper:s},attributes:{},styles:{}},l=[],c=!1;const u={state:a,setOptions(f){h(),a.options=Object.assign(Object.assign(Object.assign({},t),a.options),f),a.scrollParents={reference:y_(r)?C_(r):r.contextElement?C_(r.contextElement):[],popper:C_(s)};const g=y7e(w7e([...e,...a.options.modifiers]));return a.orderedModifiers=g.filter(m=>m.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:f,popper:g}=a.elements;if(ez(f,g)){a.rects={reference:f7e(f,w_(g),a.options.strategy==="fixed"),popper:uI(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(m=>a.modifiersData[m.name]=Object.assign({},m.data));for(let m=0;m<a.orderedModifiers.length;m++){if(a.reset===!0){a.reset=!1,m=-1;continue}const{fn:p,options:v={},name:_}=a.orderedModifiers[m];typeof p=="function"&&(a=p({state:a,options:v,name:_,instance:u})||a)}}},update:C7e(()=>new Promise(f=>{u.forceUpdate(),f(a)})),destroy(){h(),c=!0}};if(!ez(r,s))return u;u.setOptions(o).then(f=>{!c&&o.onFirstUpdate&&o.onFirstUpdate(f)});function d(){a.orderedModifiers.forEach(({name:f,options:g={},effect:m})=>{if(typeof m=="function"){const p=m({state:a,name:f,instance:u,options:g}),v=()=>{};l.push(p||v)}})}function h(){l.forEach(f=>f()),l=[]}return u}}const Ww={passive:!0};function T7e({state:n,instance:e,options:t}){const{scroll:i=!0,resize:r=!0}=t,s=rl(n.elements.popper),o=[...n.scrollParents.reference,...n.scrollParents.popper];return i&&o.forEach(a=>{a.addEventListener("scroll",e.update,Ww)}),r&&s.addEventListener("resize",e.update,Ww),()=>{i&&o.forEach(a=>{a.removeEventListener("scroll",e.update,Ww)}),r&&s.removeEventListener("resize",e.update,Ww)}}const I7e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:T7e,data:{}};function A7e({state:n,name:e}){n.modifiersData[e]=Yj({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const O7e={name:"popperOffsets",enabled:!0,phase:"read",fn:A7e,data:{}},N7e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M7e({x:n,y:e}){const i=window.devicePixelRatio||1;return{x:Math.round(n*i)/i||0,y:Math.round(e*i)/i||0}}function tz({popper:n,popperRect:e,placement:t,offsets:i,position:r,gpuAcceleration:s,adaptive:o}){let{x:a,y:l}=M7e(i);const c=i.hasOwnProperty("x"),u=i.hasOwnProperty("y");let d=Mo,h=No;const f=window;if(o){let m=w_(n);m===rl(n)&&(m=pc(n)),t===No&&(h=pa,l-=m.clientHeight-e.height,l*=s?1:-1),t===Mo&&(d=_a,a-=m.clientWidth-e.width,a*=s?1:-1)}const g=Object.assign({position:r},o&&N7e);return s?Object.assign(Object.assign({},g),{[h]:u?"0":"",[d]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${a}px, ${l}px)`:`translate3d(${a}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[h]:u?`${l}px`:"",[d]:c?`${a}px`:"",transform:""})}function P7e({state:n,options:e}){const{gpuAcceleration:t=!0,adaptive:i=!0}=e,r={placement:ol(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:t};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign(Object.assign({},n.styles.popper),tz(Object.assign(Object.assign({},r),{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign(Object.assign({},n.styles.arrow),tz(Object.assign(Object.assign({},r),{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1})))),n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-placement":n.placement})}const R7e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:P7e,data:{}};function F7e({state:n}){Object.keys(n.elements).forEach(e=>{const t=n.styles[e]||{},i=n.attributes[e]||{},r=n.elements[e];!sl(r)||!ma(r)||(Object.assign(r.style,t),Object.keys(i).forEach(s=>{const o=i[s];o===!1?r.removeAttribute(s):r.setAttribute(s,o===!0?"":o)}))})}function B7e({state:n}){const e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),()=>{Object.keys(n.elements).forEach(t=>{const i=n.elements[t],r=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((a,l)=>(a[l]="",a),{});!sl(i)||!ma(i)||(Object.assign(i.style,o),Object.keys(r).forEach(a=>{i.removeAttribute(a)}))})}}const W7e={name:"applyStyles",enabled:!0,phase:"write",fn:F7e,effect:B7e,requires:["computeStyles"]};function V7e(n,e,t){const i=ol(n),r=[Mo,No].indexOf(i)>=0?-1:1;let[s,o]=typeof t=="function"?t(Object.assign(Object.assign({},e),{placement:n})):t;return s=s||0,o=(o||0)*r,[Mo,_a].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}function $7e({state:n,options:e,name:t}){const{offset:i=[0,0]}=e,r=qj.reduce((a,l)=>(a[l]=V7e(l,n.rects,i),a),{}),{x:s,y:o}=r[n.placement];n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=o),n.modifiersData[t]=r}const H7e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$7e},j7e={left:"right",right:"left",bottom:"top",top:"bottom"};function Vw(n){return n.replace(/left|right|bottom|top/g,e=>j7e[e])}const z7e={start:"end",end:"start"};function nz(n){return n.replace(/start|end/g,e=>z7e[e])}function U7e(n,e={}){const{placement:t,boundary:i,rootBoundary:r,padding:s,flipVariations:o,allowedAutoPlacements:a=qj}=e,l=L_(t),c=l?o?Uj:Uj.filter(h=>L_(h)===l):S_;let u=c.filter(h=>a.indexOf(h)>=0);u.length===0&&(u=c);const d=u.reduce((h,f)=>(h[f]=k_(n,{placement:f,boundary:i,rootBoundary:r,padding:s})[ol(f)],h),{});return Object.keys(d).sort((h,f)=>d[h]-d[f])}function q7e(n){if(ol(n)===dI)return[];const e=Vw(n);return[nz(n),e,nz(e)]}function K7e({state:n,options:e,name:t}){if(n.modifiersData[t]._skip)return;const{mainAxis:i=!0,altAxis:r=!0,fallbackPlacements:s,padding:o,boundary:a,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=e,h=n.options.placement,g=ol(h)===h,m=s||(g||!u?[Vw(h)]:q7e(h)),p=[h,...m].reduce((k,L)=>k.concat(ol(L)===dI?U7e(n,{placement:L,boundary:a,rootBoundary:l,padding:o,flipVariations:u,allowedAutoPlacements:d}):L),[]),v=n.rects.reference,_=n.rects.popper,b=new Map;let y=!0,w=p[0];for(let k=0;k<p.length;k++){const L=p[k],D=ol(L),E=L_(L)===Yg,N=[No,pa].indexOf(D)>=0,O=N?"width":"height",I=k_(n,{placement:L,boundary:a,rootBoundary:l,altBoundary:c,padding:o});let M=N?E?_a:Mo:E?pa:No;v[O]>_[O]&&(M=Vw(M));const B=Vw(M),V=[];if(i&&V.push(I[D]<=0),r&&V.push(I[M]<=0,I[B]<=0),V.every(ee=>ee)){w=L,y=!1;break}b.set(L,V)}if(y){const k=u?3:1;for(let L=k;L>0;L--){const D=p.find(E=>{const N=b.get(E);if(N)return N.slice(0,L).every(O=>O)});if(D){w=D;break}}}n.placement!==w&&(n.modifiersData[t]._skip=!0,n.placement=w,n.reset=!0)}const G7e={name:"flip",enabled:!0,phase:"main",fn:K7e,requiresIfExists:["offset"],data:{_skip:!1}};function Y7e(n){return n==="x"?"y":"x"}function $w(n,e,t){return Math.max(n,Math.min(e,t))}function Z7e({state:n,options:e,name:t}){const{mainAxis:i=!0,altAxis:r=!1,boundary:s,rootBoundary:o,altBoundary:a,padding:l,tether:c=!0,tetherOffset:u=0}=e,d=k_(n,{boundary:s,rootBoundary:o,padding:l,altBoundary:a}),h=ol(n.placement),f=L_(n.placement),g=!f,m=gI(h),p=Y7e(m),v=n.modifiersData.popperOffsets,_=n.rects.reference,b=n.rects.popper,y=typeof u=="function"?u(Object.assign(Object.assign({},n.rects),{placement:n.placement})):u,w={x:0,y:0};if(v){if(i){const k=m==="y"?No:Mo,L=m==="y"?pa:_a,D=m==="y"?"height":"width",E=v[m],N=v[m]+d[k],O=v[m]-d[L],I=c?-b[D]/2:0,M=f===Yg?_[D]:b[D],B=f===Yg?-b[D]:-_[D],V=n.elements.arrow,ee=c&&V?uI(V):{width:0,height:0},re=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Zj(),se=re[k],ie=re[L],J=$w(0,_[D],ee[D]),ue=g?_[D]/2-I-J-se-y:M-J-se-y,Z=g?-_[D]/2+I+J+ie+y:B+J+ie+y,X=n.elements.arrow&&w_(n.elements.arrow),ce=X?m==="y"?X.clientTop||0:X.clientLeft||0:0,De=n.modifiersData.offset?n.modifiersData.offset[n.placement][m]:0,te=v[m]+ue-De-ce,xe=v[m]+Z-De,ge=$w(c?Math.min(N,te):N,E,c?Math.max(O,xe):O);v[m]=ge,w[m]=ge-E}if(r){const k=m==="x"?No:Mo,L=m==="x"?pa:_a,D=v[p],E=D+d[k],N=D-d[L],O=$w(E,D,N);v[p]=O,w[p]=O-D}n.modifiersData[t]=w}}const X7e={name:"preventOverflow",enabled:!0,phase:"main",fn:Z7e,requiresIfExists:["offset"]};function Q7e({state:n,name:e}){const t=n.elements.arrow,i=n.modifiersData.popperOffsets,r=ol(n.placement),s=gI(r),a=[Mo,_a].indexOf(r)>=0?"height":"width";if(!t||!i)return;const l=n.modifiersData[`${e}#persistent`].padding,c=uI(t),u=s==="y"?No:Mo,d=s==="y"?pa:_a,h=n.rects.reference[a]+n.rects.reference[s]-i[s]-n.rects.popper[a],f=i[s]-n.rects.reference[s],g=w_(t),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,p=h/2-f/2,v=l[u],_=m-c[a]-l[d],b=m/2-c[a]/2+p,y=$w(v,b,_),w=s;n.modifiersData[e]={[w]:y,centerOffset:y-b}}function J7e({state:n,options:e,name:t}){let{element:i="[data-popper-arrow]",padding:r=0}=e;i!=null&&(typeof i=="string"&&(i=n.elements.popper.querySelector(i),!i)||Kj(n.elements.popper,i)&&(n.elements.arrow=i,n.modifiersData[`${t}#persistent`]={padding:Xj(typeof r!="number"?r:Qj(r,S_))}))}const eRe={name:"arrow",enabled:!0,phase:"main",fn:Q7e,effect:J7e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function iz(n,e,t={x:0,y:0}){return{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function rz(n){return[No,_a,pa,Mo].some(e=>n[e]>=0)}function tRe({state:n,name:e}){const t=n.rects.reference,i=n.rects.popper,r=n.modifiersData.preventOverflow,s=k_(n,{elementContext:"reference"}),o=k_(n,{altBoundary:!0}),a=iz(s,t),l=iz(o,i,r),c=rz(a),u=rz(l);n.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const nRe=E7e({defaultModifiers:[I7e,O7e,R7e,W7e,H7e,G7e,X7e,eRe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tRe}]}),mI=Gg?ae.useLayoutEffect:ae.useEffect,iRe=(n,e)=>JSON.stringify(n)===JSON.stringify(e),sz=n=>n.reduce((e,[t,i])=>(e[t]=i,e),{}),rRe=[],sRe=(n,e,t={})=>{const i=ae.useRef(null),r={onFirstUpdate:t.onFirstUpdate,placement:t.placement||"bottom",strategy:t.strategy||"absolute",modifiers:t.modifiers||rRe},[s,o]=ae.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"}},attributes:{}}),a=ae.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);o({styles:sz(d.map(h=>[h,u.styles[h]||{}])),attributes:sz(d.map(h=>[h,u.attributes[h]]))})},requires:["computeStyles"]}),[]),l=ae.useMemo(()=>{const u={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[...r.modifiers,a,{name:"applyStyles",enabled:!1}]};return iRe(i.current,u)?i.current||u:(i.current=u,u)},[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,a]),c=ae.useRef();return mI(()=>{c&&c.current&&c.current.setOptions(l)},[l]),mI(()=>{if(n==null||e==null)return;const d=(t.createPopper||nRe)(n,e,l);return c.current=d,()=>{d.destroy(),c.current=null}},[n,e,t.createPopper]),{state:c.current?c.current.state:null,styles:s.styles,attributes:s.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};class pI extends ae.Component{componentDidMount(){const e=g3.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}pI.displayName="FindRefWrapper";const vht="",oRe={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},aRe=n=>n.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,e=>oRe[e]),oz=({trigger:n,popper:e,popperMatchesTriggerWidth:t=!0,direction:i="down",position:r="left",placement:s,appendTo:o=()=>document.body,zIndex:a=9999,isVisible:l=!0,positionModifiers:c,distance:u=0,onMouseEnter:d,onMouseLeave:h,onFocus:f,onBlur:g,onDocumentClick:m,onTriggerClick:p,onTriggerEnter:v,onPopperClick:_,onPopperMouseEnter:b,onPopperMouseLeave:y,onDocumentKeyDown:w,enableFlip:k=!0,flipBehavior:L="flip",reference:D,removeFindDomNode:E=!1,popperRef:N})=>{const[O,I]=ae.useState(null),[M,B]=ae.useState(null),[V,ee]=ae.useState(null),[re,se]=ae.useState(!1),ie=M||O,J=ae.useCallback(j=>m(j,ie,V),[l,O,M,V,m]);ae.useEffect(()=>{se(!0)},[]),ae.useEffect(()=>{D&&(D.current?B(D.current):typeof D=="function"&&B(D()))},[D]),ae.useEffect(()=>{N&&(N.current?ee(N.current):typeof N=="function"&&ee(N()))},[l,N]);const ue=(j,le,be,$e=!1)=>{j&&le&&le.addEventListener(be,j,{capture:$e})},Z=(j,le,be,$e=!1)=>{j&&le&&le.removeEventListener(be,j,{capture:$e})};ae.useEffect(()=>{ue(d,ie,"mouseenter"),ue(h,ie,"mouseleave"),ue(f,ie,"focus"),ue(g,ie,"blur"),ue(p,ie,"click"),ue(v,ie,"keydown"),ue(_,V,"click"),ue(b,V,"mouseenter"),ue(y,V,"mouseleave"),m&&ue(J,document,"click",!0),ue(w,document,"keydown",!0);const j=new MutationObserver(()=>{Ce&&Ce()});return V&&j.observe(V,{attributes:!0,childList:!0,subtree:!0}),()=>{Z(d,ie,"mouseenter"),Z(h,ie,"mouseleave"),Z(f,ie,"focus"),Z(g,ie,"blur"),Z(p,ie,"click"),Z(v,ie,"keydown"),Z(_,V,"click"),Z(b,V,"mouseenter"),Z(y,V,"mouseleave"),m&&Z(J,document,"click",!0),Z(w,document,"keydown",!0),j.disconnect()}},[O,V,d,h,f,g,p,v,_,b,y,m,w,M]);const X=()=>{if(s)return s;let j=i==="up"?"top":"bottom";return r!=="center"&&(j=`${j}-${r==="right"?"end":"start"}`),j},ce=ae.useMemo(X,[i,r,s]),De=ae.useMemo(()=>aRe(X()),[i,r,s]),te=ae.useMemo(()=>({name:"sameWidth",enabled:t,phase:"beforeWrite",requires:["computeStyles"],fn:({state:j})=>{j.styles.popper.width=`${j.rects.reference.width}px`},effect:({state:j})=>(j.elements.popper.style.width=`${j.elements.reference.offsetWidth}px`,()=>{})}),[t]),{styles:xe,attributes:ge,update:Ce,forceUpdate:Se}=sRe(ie,V,{placement:ce,modifiers:[{name:"offset",options:{offset:[0,u]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:ce.startsWith("auto")||k,options:{fallbackPlacements:L==="flip"?[De]:L}},te]});ae.useEffect(()=>{Se&&Se()},[e]);const pe=()=>{if(ge&&ge.popper&&ge.popper["data-popper-placement"]){const j=ge.popper["data-popper-placement"];return c[j]}return c.top},Q=Object.assign({className:On(e.props&&e.props.className,c&&pe()),style:Object.assign(Object.assign(Object.assign({},e.props&&e.props.style||{}),xe.popper),{zIndex:a})},ge.popper),Xe=ae.cloneElement(e,Q),et=()=>typeof o=="function"?o():o;let Fe;return E?Fe=ae.createElement("div",{style:{display:"contents"},ref:j=>ee(j==null?void 0:j.firstElementChild)},Xe):N?Fe=Xe:Fe=ae.createElement(pI,{onFoundRef:j=>ee(j)},Xe),ae.createElement(ae.Fragment,null,!D&&n&&ae.isValidElement(n)&&!E&&ae.createElement(pI,{onFoundRef:j=>I(j)},n),!D&&n&&ae.isValidElement(n)&&E&&ae.createElement("div",{style:{display:"contents"},ref:j=>I(j==null?void 0:j.firstElementChild)},n),re&&l&&g3.createPortal(Fe,et()))};oz.displayName="Popper";const lRe=(n,e,t=c=>document.activeElement.contains(c),i=c=>c,r=["A","BUTTON","INPUT"],s=!1,o=!1,a=!0,l=!0)=>{const c=document.activeElement,u=n.key;let d=null;if(!s&&["ArrowUp","ArrowDown"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){let m=0;for(;!d&&m<e.length&&m*-1<e.length;)u==="ArrowUp"?m--:m++,h=g+m,h>=e.length&&(h=0),h<0&&(h=e.length-1),d=i(e[h])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){const m=e[g].querySelectorAll(r.join(","));if(!m.length||l){let p=c;for(;p;)if(p=u==="ArrowLeft"?p.previousElementSibling:p.nextElementSibling,p&&r.includes(p.tagName)){d=p;break}}else m.forEach((p,v)=>{n.target===p&&(h=v+(u==="ArrowLeft"?-1:1),h>=m.length&&(h=0),h<0&&(h=m.length-1),d=m[h])})}})}d&&(a&&(c.tabIndex=-1,d.tabIndex=0),d.focus())};class _I extends ae.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:i,getFocusableElement:r,noVerticalArrowHandling:s,noHorizontalArrowHandling:o,noEnterHandling:a,noSpaceHandling:l,updateTabIndex:c,validSiblingTags:u,additionalKeyHandler:d,createNavigableElements:h,onlyTraverseSiblings:f}=this.props;d&&d(e);const g=h();if(!g){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const m=e.key;a||m==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||m===" "&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),lRe(e,g,i,r,u,s,o,c,f)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Gg&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Gg&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}_I.displayName="KeyboardHandler",_I.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:n=>document.activeElement===n,getFocusableElement:n=>n,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const vh=ae.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),az=ae.createContext({itemId:null,isDisabled:!1});class Hw extends ae.Component{constructor(e){super(e),this.menuRef=ae.createRef(),this.activeMenu=null,this.state={ouiaStateId:oI(jw.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=t=>{const i=this.menuRef.current;if(!(!i||i!==t.target.closest(".pf-c-menu")&&!Array.from(i.getElementsByClassName("pf-c-menu")).includes(t.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const r=i.querySelector("#"+this.props.activeMenu)||i||null,s=Array.from(r.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||r.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:r.id});else return;const o=s.filter(a=>!(a.classList.contains("pf-m-disabled")||a.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=t=>{const i=this.props.containsDrilldown,r=document.activeElement;if(t.target.closest(".pf-c-menu")!==this.activeMenu&&!t.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=t.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),t.target.tagName==="INPUT")return;const s=this.activeMenu,o=t.key,a=r.classList.contains("pf-c-breadcrumb__link")||r.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(t.preventDefault(),i&&!a){if(r.closest("li").classList.contains("pf-m-current-path")&&s.parentElement.tagName==="LI")r.tabIndex=-1,s.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:s.parentElement.firstChild});else if(r.nextElementSibling&&r.nextElementSibling.classList.contains("pf-c-menu")){const c=Array.from(r.nextElementSibling.getElementsByTagName("UL")[0].children).filter(u=>!(u.classList.contains("pf-m-disabled")||u.classList.contains("pf-c-divider")));r.tabIndex=-1,c[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:c[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[],e.innerRef&&(this.menuRef=e.innerRef)}allowTabFirstItem(){const e=this.menuRef.current;if(e){const t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Gg&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Gg&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{"aria-label":t,id:i,children:r,className:s,onSelect:o,selected:a=null,onActionClick:l,ouiaId:c,ouiaSafe:u,containsFlyout:d,isNavFlyout:h,containsDrilldown:f,isMenuDrilledIn:g,isPlain:m,isScrollable:p,drilldownItemPath:v,drilledInMenus:_,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,parentMenu:k=null,activeItemId:L=null,innerRef:D,isRootMenu:E,activeMenu:N,role:O}=e,I=wn(e,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),M=g||_&&_.includes(i)||!1;return ae.createElement(vh.Provider,{value:{menuId:i,parentMenu:k||i,onSelect:o,onActionClick:l,activeItemId:L,selected:a,drilledInMenus:_,drilldownItemPath:v,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:B=>this.setState({flyoutRef:B}),disableHover:this.state.disableHover,role:O}},E&&ae.createElement(_I,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:B=>document.activeElement.closest("li")===B||document.activeElement.parentElement===B||document.activeElement.closest(".pf-c-menu__search")===B||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===B,getFocusableElement:B=>B.tagName==="DIV"&&B.querySelector("input")||B.firstChild.tagName==="LABEL"&&B.querySelector("input")||B.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),ae.createElement("div",Object.assign({id:i,className:On(rn.menu,m&&rn.modifiers.plain,p&&rn.modifiers.scrollable,d&&rn.modifiers.flyout,h&&rn.modifiers.nav,f&&rn.modifiers.drilldown,M&&rn.modifiers.drilledIn,s),"aria-label":t,ref:this.menuRef},sI(jw.displayName,c!==void 0?c:this.state.ouiaStateId,u),I),r))}}Hw.displayName="Menu",Hw.contextType=vh,Hw.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const jw=ae.forwardRef((n,e)=>ae.createElement(Hw,Object.assign({},n,{innerRef:e})));jw.displayName="Menu";const lz=ae.forwardRef((n,e)=>{const{getHeight:t,children:i,menuHeight:r,maxMenuHeight:s}=n,o=wn(n,["getHeight","children","menuHeight","maxMenuHeight"]),a=ae.createRef(),l=(c,u,d)=>{if(c){let h=c.clientHeight,f=null,g=c.closest(`.${rn.menuList}`);for(;g!==null&&g.nodeType===1;)g.classList.contains(rn.menuList)&&(f=g),g=g.parentElement;if(f){const m=getComputedStyle(f),p=parseFloat(m.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(m.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(f.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));h=h+p}d&&d(u,h),t&&t(h.toString())}return e||a};return ae.createElement(vh.Consumer,null,({menuId:c,onGetMenuHeight:u})=>ae.createElement("div",Object.assign({},o,{className:On(rn.menuContent,n.className),ref:d=>l(d,c,u),style:Object.assign(Object.assign({},r&&{"--pf-c-menu__content--Height":r}),s&&{"--pf-c-menu__content--MaxHeight":s})}),i))});lz.displayName="MenuContent";const cRe={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},uRe={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},dRe={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var bh;(function(n){n.sm="sm",n.md="md",n.lg="lg",n.xl="xl"})(bh||(bh={}));const hRe=n=>{switch(n){case bh.sm:return"1em";case bh.md:return"1.5em";case bh.lg:return"2em";case bh.xl:return"3em";default:return"1em"}};let fRe=0;function D_({name:n,xOffset:e=0,yOffset:t=0,width:i,height:r,svgPath:s}){var o;return o=class extends ae.Component{constructor(){super(...arguments),this.id=`icon-title-${fRe++}`}render(){const l=this.props,{size:c,color:u,title:d,noVerticalAlign:h}=l,f=wn(l,["size","color","title","noVerticalAlign"]),g=!!d,m=hRe(c),p=-.125*Number.parseFloat(m),v=h?null:{verticalAlign:`${p}em`},_=[e,t,i,r].join(" ");return ae.createElement("svg",Object.assign({style:v,fill:u,height:m,width:m,viewBox:_,"aria-labelledby":g?this.id:null,"aria-hidden":g?null:!0,role:"img"},f),g&&ae.createElement("title",{id:this.id},d),ae.createElement("path",{d:s}))}},o.displayName=n,o.defaultProps={color:"currentColor",size:bh.sm,noVerticalAlign:!1},o}const gRe=D_({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),mRe=D_({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),pRe=D_({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),_Re=D_({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),Iht="",Du={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},cz=()=>{};class Zg extends ae.Component{constructor(e){super(e),this.handleChange=t=>{this.props.onChange(t.currentTarget.checked,t)},this.state={ouiaStateId:oI(Zg.displayName)}}render(){const e=this.props,{"aria-label":t,className:i,onChange:r,isValid:s,isDisabled:o,isRequired:a,isChecked:l,label:c,checked:u,defaultChecked:d,description:h,body:f,ouiaId:g,ouiaSafe:m,component:p}=e,v=wn(e,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);v.id||console.error("Checkbox:","id is required to make input accessible");const _={};return([!0,!1].includes(u)||l===!0)&&(_.checked=u||l),r!==cz&&(_.checked=l),[!1,!0].includes(d)&&(_.defaultChecked=d),_.checked=_.checked===null?!1:_.checked,ae.createElement(p,{className:On(Du.check,!c&&Du.modifiers.standalone,i)},ae.createElement("input",Object.assign({},v,{className:On(Du.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":t,disabled:o,required:a,ref:b=>b&&(b.indeterminate=l===null)},_,sI(Zg.displayName,g!==void 0?g:this.state.ouiaStateId,m))),c&&ae.createElement("label",{className:On(Du.checkLabel,o&&Du.modifiers.disabled),htmlFor:v.id},c,a&&ae.createElement("span",{className:On(Du.checkLabelRequired),"aria-hidden":"true"},c7e)),h&&ae.createElement("span",{className:On(Du.checkDescription)},h),f&&ae.createElement("span",{className:On(Du.checkBody)},f))}}Zg.displayName="Checkbox",Zg.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:cz,ouiaSafe:!0,component:"div"};const vRe=D_({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),bRe=n=>{var{className:e="",icon:t,onClick:i,"aria-label":r,isFavorited:s=null,isDisabled:o,actionId:a,innerRef:l}=n,c=wn(n,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return ae.createElement(vh.Consumer,null,({onActionClick:u})=>ae.createElement(az.Consumer,null,({itemId:d,isDisabled:h})=>{const f=g=>{i&&i(g),u&&u(g,d,a)};return ae.createElement("button",Object.assign({className:On(rn.menuItemAction,s!==null&&rn.modifiers.favorite,s&&rn.modifiers.favorited,e),"aria-label":r,onClick:f},(o===!0||h===!0)&&{disabled:!0},{ref:l,tabIndex:-1},c),ae.createElement("span",{className:On(rn.menuItemActionIcon)},t==="favorites"||s!==null?ae.createElement(vRe,{"aria-hidden":!0}):t))}))},uz=ae.forwardRef((n,e)=>ae.createElement(bRe,Object.assign({},n,{innerRef:e})));uz.displayName="MenuItemAction";const dz=ae.createContext({direction:"right"}),yRe=n=>{var{children:e,className:t,itemId:i=null,to:r,hasCheck:s=!1,isActive:o=null,isFavorited:a=null,isLoadButton:l=!1,isLoading:c=!1,flyoutMenu:u,direction:d,description:h=null,onClick:f=()=>{},component:g="button",isDisabled:m=!1,isExternalLink:p=!1,isSelected:v=null,isFocused:_,isDanger:b=!1,icon:y,actions:w,onShowFlyout:k,drilldownMenu:L,isOnPath:D,innerRef:E}=n,N=wn(n,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:O,parentMenu:I,onSelect:M,onActionClick:B,activeItemId:V,selected:ee,drilldownItemPath:re,onDrillIn:se,onDrillOut:ie,flyoutRef:J,setFlyoutRef:ue,disableHover:Z,role:X}=ae.useContext(vh);let ce=r?"a":g;s&&!r&&(ce="label");const[De,te]=ae.useState(null),xe=ae.useContext(dz),[ge,Ce]=ae.useState(xe.direction),Se=ae.useRef(),pe=Se===J,Q=u!==void 0,Xe=R=>{!pe&&R?ue(Se):pe&&!R&&ue(null),k&&R&&k()};mI(()=>{if(Q&&Se.current&&Gg){const R=Se.current.lastElementChild;if(R&&R.classList.contains(rn.menu)){const F=Se.current.getClientRects()[0],z=R.getClientRects()[0];if(F&&z){const U=F.x-z.width,fe=window.innerWidth-F.x-F.width-z.width;let ke=ge;fe<0&&ke!=="left"?(Ce("left"),ke="left"):U<0&&ke!=="right"&&(Ce("right"),ke="right");let Ie=0;U<0&&fe<0&&(Ie=ke==="right"?-fe:-U),ke==="left"?(R.classList.add(rn.modifiers.left),R.style.setProperty(uRe.name,`-${Ie}px`)):R.style.setProperty(dRe.name,`-${Ie}px`);const Pe=window.innerHeight-F.y-z.height;window.innerHeight-z.height<0&&Pe<0||Pe<0&&R.style.setProperty(cRe.name,`${Pe}px`)}}}},[pe,u]),ae.useEffect(()=>{Ce(xe.direction)},[xe]),ae.useEffect(()=>{if(De)if(pe){const R=De.nextElementSibling;Array.from(R.getElementsByTagName("UL")[0].children).filter(z=>!(z.classList.contains("pf-m-disabled")||z.classList.contains("pf-c-divider")))[0].firstChild.focus()}else De.focus()},[pe,De]);const et=R=>{const F=R.key,z=R.target,U=R.type;(F===" "||F==="Enter"||F==="ArrowRight"||U==="click")&&(R.stopPropagation(),R.preventDefault(),pe||(Xe(!0),te(z))),(F==="Escape"||F==="ArrowLeft")&&pe&&(R.stopPropagation(),Xe(!1))},Fe=(R,F)=>{F&&F(R,i),f&&f(R)},j=D&&D||re&&re.includes(i)||!1;let le;d&&(d==="down"?le=R=>se&&se(R,O,typeof L=="function"?L().props.id:L.props.id,i):le=R=>ie&&ie(R,I,i));let be={};ce==="a"?be={href:r,"aria-disabled":m?!0:null,disabled:null}:ce==="button"&&(be={type:"button"}),D?be["aria-expanded"]=!0:Q&&(be["aria-haspopup"]="menu",be["aria-expanded"]=pe);const $e=()=>o!==null?o?"page":null:i!==null&&V!==null?i===V:null,Y=()=>v!==null?v:ee!==null&&i!==null?Array.isArray(ee)&&ee.includes(i)||i===ee:!1,H=()=>{Z||(Q?Xe(!0):ue(null))},q=X==="listbox";return ae.createElement("li",Object.assign({className:On(rn.menuListItem,m&&rn.modifiers.disabled,j&&rn.modifiers.currentPath,l&&rn.modifiers.load,c&&rn.modifiers.loading,_&&rn.modifiers.focus,b&&rn.modifiers.danger,t),onMouseOver:H},u&&{onKeyDown:et},{ref:Se,role:s?"menuitem":"none"},N),ae.createElement(iI,null,R=>ae.createElement(ce,Object.assign({tabIndex:-1,className:On(rn.menuItem,Y()&&!s&&rn.modifiers.selected,t),"aria-current":$e()},!s&&{disabled:m},!s&&!u&&{role:q?"option":"menuitem"},!s&&!u&&q&&{"aria-selected":Y()},{ref:E},!s&&{onClick:F=>{Fe(F,M),le&&le(F),u&&et(F)}},s&&{htmlFor:R},be),ae.createElement("span",{className:On(rn.menuItemMain)},d==="up"&&ae.createElement("span",{className:On(rn.menuItemToggleIcon)},ae.createElement(pRe,{"aria-hidden":!0})),y&&ae.createElement("span",{className:On(rn.menuItemIcon)},y),s&&ae.createElement("span",{className:On("pf-c-menu__item-check")},ae.createElement(Zg,{id:R,component:"span",isChecked:v||!1,onChange:F=>Fe(F,M),isDisabled:m})),ae.createElement("span",{className:On(rn.menuItemText)},e),p&&ae.createElement("span",{className:On(rn.menuItemExternalIcon)},ae.createElement(gRe,{"aria-hidden":!0})),(u||d==="down")&&ae.createElement("span",{className:On(rn.menuItemToggleIcon)},ae.createElement(mRe,{"aria-hidden":!0})),Y()&&ae.createElement("span",{className:On(rn.menuItemSelectIcon)},ae.createElement(_Re,{"aria-hidden":!0}))),h&&d!=="up"&&ae.createElement("span",{className:On(rn.menuItemDescription)},ae.createElement("span",null,h)))),pe&&ae.createElement(vh.Provider,{value:{disableHover:Z}},ae.createElement(dz.Provider,{value:{direction:ge}},u)),typeof L=="function"?L():L,ae.createElement(az.Provider,{value:{itemId:i,isDisabled:m}},w,a!==null&&ae.createElement(uz,{icon:"favorites",isFavorited:a,"aria-label":a?"starred":"not starred",onClick:R=>B(R,i),tabIndex:-1,actionId:"fav"})))},hz=ae.forwardRef((n,e)=>ae.createElement(yRe,Object.assign({},n,{innerRef:e})));hz.displayName="MenuItem";const fz=n=>{var{children:e=null,className:t,isAriaMultiselectable:i=!1}=n,r=wn(n,["children","className","isAriaMultiselectable"]);const{role:s}=ae.useContext(vh);return ae.createElement("ul",Object.assign({role:s},s==="listbox"&&{"aria-multiselectable":i},{className:On(rn.menuList,t)},r),e)};fz.displayName="MenuList";const CRe=n=>{var{children:e,className:t,onSelect:i,isOpen:r,selected:s,toggle:o,onOpenChange:a,isPlain:l,minWidth:c,innerRef:u,zIndex:d=9999,role:h="listbox"}=n,f=wn(n,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const g=T.useRef(),m=T.useRef(),p=T.useRef(),v=u||g;T.useEffect(()=>{const b=w=>{var k,L,D;(r&&a&&(!((k=v.current)===null||k===void 0)&&k.contains(w.target))||!((L=m.current)===null||L===void 0)&&L.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(a(!1),(D=m.current)===null||D===void 0||D.focus())},y=w=>{var k,L,D;r&&(!((k=m.current)===null||k===void 0)&&k.contains(w.target))&&w.detail===0&&setTimeout(()=>{var E;const N=(E=v==null?void 0:v.current)===null||E===void 0?void 0:E.querySelector("li button:not(:disabled),li input:not(:disabled)");N&&N.focus()},0),r&&a&&!(!((L=m==null?void 0:m.current)===null||L===void 0)&&L.contains(w.target))&&r&&!(!((D=v.current)===null||D===void 0)&&D.contains(w.target))&&a(!1)};return window.addEventListener("keydown",b),window.addEventListener("click",y),()=>{window.removeEventListener("keydown",b),window.removeEventListener("click",y)}},[r,v,a]);const _=T.createElement(jw,Object.assign({role:h,className:On(t),ref:v,onSelect:(b,y)=>i(b,y),isPlain:l,selected:s},c&&{style:{"--pf-c-menu--MinWidth":c}},sI(E_.displayName,f.ouiaId!==void 0?f.ouiaId:oI(E_.displayName),f.ouiaSafe!==void 0?f.ouiaSafe:!0),f),T.createElement(lz,null,e));return T.createElement("div",{ref:p},T.createElement(oz,{trigger:o(m),removeFindDomNode:!0,popper:_,appendTo:p.current||void 0,isVisible:r,zIndex:d}))},E_=T.forwardRef((n,e)=>T.createElement(CRe,Object.assign({innerRef:e},n)));E_.displayName="Select";const vI=n=>{var{children:e,className:t,isAriaMultiselectable:i=!1}=n,r=wn(n,["children","className","isAriaMultiselectable"]);return T.createElement(fz,Object.assign({isAriaMultiselectable:i,className:On(t)},r),e)};vI.displayName="SelectList";const bI=n=>{var{children:e,className:t}=n,i=wn(n,["children","className"]);return T.createElement(hz,Object.assign({className:On(t)},i),e)};bI.displayName="SelectOption";const Nht="",Mht="";function Eu(n){const{t:e}=ts(),{id:t,icon:i,value:r,onSelect:s,options:o,placeholder:a}=n,[l,c]=T.useState(!1),u=T.useMemo(()=>o.find(_=>r===_.value),[o,r]),d=_=>x.jsxs(P.MenuToggle,{id:t,ref:_,onClick:()=>c(b=>!b),isExpanded:l,onKeyDown:b=>{switch(b.key){default:c(!0);break}},children:[i&&x.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),u?u.label:x.jsx("span",{className:"page-select-placeholder",children:a})]}),h=T.useCallback((_,b)=>{const y=o.find(w=>w.key!==void 0?w.key===b:w.label===b);y&&(s(y.value),c(!1))},[s,o]),[f,g]=T.useState(""),m=T.useRef(null);T.useEffect(()=>{g(""),l&&m.current&&m.current.focus()},[l]),T.useEffect(()=>{n.isRequired&&!u&&o.length>0&&s(o[0].value)},[s,o,n.isRequired,u]);const p=T.useMemo(()=>o.filter(_=>f===""?!0:_.label.toLowerCase().includes(f.toLowerCase())),[o,f]),v=T.useMemo(()=>p.length>10||f,[f,p.length]);return x.jsx("div",{className:"page-single-select",children:x.jsxs(E_,{selected:u==null?void 0:u.label,onSelect:h,isOpen:l,onOpenChange:c,toggle:d,style:{zIndex:l?9999:void 0},children:[v&&x.jsx("div",{className:"page-select-header",children:x.jsx(P.SearchInput,{id:t?`${t}-search`:void 0,ref:m,value:f,onChange:(_,b)=>g(b),onClear:_=>{_.stopPropagation(),g("")}})}),p.length===0?x.jsx("div",{style:{margin:16},children:e("No results found")}):x.jsx(vI,{className:"page-select-list",children:p.map(_=>x.jsx(bI,{itemId:_.key!==void 0?_.key:_.label,description:_.description,children:_.label},_.key!==void 0?_.key:_.label))}),n.footer&&x.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function wRe(n){const{t:e}=ts(),[t,i]=T.useState(!1),[r,s]=T.useState(),[o,a]=T.useState(0),[l,c]=T.useState(),[u,d]=T.useState(1),h=T.useRef(new AbortController).current;T.useEffect(()=>()=>h.abort(),[h]);const f=T.useRef(n.onSelect).current,g=T.useRef(n.queryOptions).current,m=T.useCallback(v=>{i(_=>{if(_)return _;s(void 0),c(b=>{if(b)return b});try{g(v,h.signal).then(b=>{h.signal.aborted||(c(y=>{let w;return y?w=[...y,...b.options]:w=b.options,b.total===1&&f(w[0].value),w}),a(b.total))}).catch(b=>{h.signal.aborted||(b instanceof Error?s(b):s(new Error(e("Unknown error"))))}).finally(()=>{h.signal.aborted||i(!1)})}catch(b){b instanceof Error?s(b):s(new Error(e("Unknown error"))),i(!1)}return!0})},[h.signal,f,g,e]);T.useEffect(()=>m(u),[u,m]);const p=x.jsxs(P.Stack,{hasGutter:!0,children:[t?x.jsxs(P.Flex,{alignItems:{default:"alignItemsCenter"},spaceItems:{default:"spaceItemsMd"},children:[x.jsx(P.FlexItem,{children:x.jsx(P.Spinner,{size:"md"})}),x.jsx(P.FlexItem,{children:e("Loading...")})]}):x.jsxs(P.Split,{hasGutter:!0,children:[x.jsx(P.SplitItem,{isFilled:!0,children:(l==null?void 0:l.length)!==o&&x.jsx(P.Button,{variant:"link",isInline:!0,onClick:v=>{v.preventDefault(),v.stopPropagation(),d(_=>_+1)},isSmall:!0,children:e("Load more")})}),x.jsx(P.SplitItem,{children:e("{{count}} of {{total}}",{count:(l==null?void 0:l.length)??0,total:o})})]}),n.footer]});return l?x.jsx(Eu,{id:n.id,icon:n.icon,placeholder:n.placeholder,options:l??[],value:n.value,onSelect:n.onSelect,footer:p}):r?x.jsx(P.Button,{id:n.id,variant:"secondary",isDanger:!0,icon:x.jsx(yt.SyncAltIcon,{}),iconPosition:"right",onClick:v=>{d(_=>(_===1&&m(1),1))},children:typeof n.queryErrorText=="function"?n.queryErrorText(r):n.queryErrorText??e("Error loading options")}):x.jsx(P.Button,{id:n.id,variant:"control",isLoading:!0,children:n.queryPlaceholder??e("Loading options...")})}const Pht="";function SRe(n){const{t:e}=ts(),{id:t,icon:i,placeholder:r,values:s,onSelect:o,options:a,variant:l,disableClearSelection:c}=n,[u,d]=T.useState(!1),h=T.useMemo(()=>a.filter(w=>s==null?!1:s.includes(w.value)),[a,s]),f=w=>x.jsxs(P.MenuToggle,{isFullWidth:!0,id:t,ref:w,onClick:()=>d(k=>!k),isExpanded:u,onKeyDown:k=>{switch(k.key){default:d(!0);break}},children:[i&&x.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),h.length>0?x.jsx(x.Fragment,{children:l==="count"?x.jsx(P.Chip,{isReadOnly:c,onClick:()=>o(()=>[]),style:{marginTop:-2,marginBottom:-2},children:h.length}):x.jsxs(x.Fragment,{children:[x.jsx(P.ChipGroup,{children:h.map(k=>x.jsx(P.Chip,{isReadOnly:!0,style:{marginTop:-2,marginBottom:-2},children:k.label},k.label))}),!c&&x.jsx(yt.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>o(()=>[]),style:{verticalAlign:"middle",marginLeft:8},size:"sm"})]})}):x.jsx("span",{className:"page-select-placeholder",children:r})]}),g=T.useMemo(()=>h.map(w=>w.label),[h]),m=T.useCallback((w,k)=>{o(L=>{const D=a.find(E=>E.key!==void 0?E.key===k:E.label===k);return D&&((L==null?void 0:L.find(E=>E===D.value))!==void 0?L=L.filter(E=>E!==D.value):(L=L?[...L]:[],L.push(D.value))),L})},[o,a]),[p,v]=T.useState(""),_=T.useRef(null);T.useEffect(()=>{v(""),u&&_.current&&_.current.focus()},[u]);const b=T.useMemo(()=>a.filter(w=>p===""?!0:w.label.toLowerCase().includes(p.toLowerCase())),[a,p]),y=T.useMemo(()=>b.length>10||p,[p,b.length]);return x.jsx("div",{className:"page-multi-select",children:x.jsxs(E_,{selected:g,onSelect:m,isOpen:u,onOpenChange:d,toggle:f,style:{zIndex:u?9999:void 0},children:[y&&x.jsx("div",{className:"page-select-header",children:x.jsx(P.SearchInput,{id:t?`${t}-search`:void 0,ref:_,value:p,onChange:(w,k)=>v(k),onClear:w=>{w.stopPropagation(),v("")}})}),b.length===0?x.jsx("div",{style:{margin:16},children:e("No results found")}):x.jsx(vI,{className:"page-select-list",children:b.map(w=>x.jsx(bI,{itemId:w.key!==void 0?w.key:w.label,description:w.description?x.jsx("div",{style:{maxWidth:300},children:w.description}):void 0,hasCheck:!0,isSelected:h.includes(w),children:w.label},w.key!==void 0?w.key:w.label))}),n.footer&&x.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function xRe(n){const{filterValues:e,setFilterValues:t,placeholder:i,isRequired:r,defaultValue:s}=n,o=e&&e.length>0?e[0]:void 0,a=n.options.find(f=>f.value===o);r&&!a&&t(()=>[s??n.options[0].value]);function l(f){n.options.find(m=>m.value===f)&&t(()=>[f])}const[c,u]=T.useState(()=>{if(e&&e.length>1)return e[1]}),[d,h]=T.useState(()=>{if(e&&e.length>2)return e[2]});return T.useEffect(()=>{if(a&&a.isCustom){const f=[a.value];c&&(f.push(c),d&&f.push(d)),t(()=>f)}},[a,c,d,t]),x.jsxs(P.ToolbarItem,{children:[x.jsx(Eu,{value:(a==null?void 0:a.value)??"",onSelect:l,options:n.options,placeholder:i}),a&&a.isCustom&&x.jsx(LRe,{to:d,setTo:h,from:c,setFrom:u})]})}function LRe(n){const{to:e,setTo:t,from:i,setFrom:r}=n,{t:s}=ts(),o=(u,d)=>{r(d)},a=(u,d)=>{t(d)},l=i?new Date(i):void 0,c=u=>l?P.isValidDate(l)&&u>=l?"":s('The "to" date must be after the "from" date'):"";return x.jsxs(x.Fragment,{children:[x.jsx(P.DatePicker,{value:i,onChange:o,"aria-label":"Start date",placeholder:"YYYY-MM-DD"}),x.jsx("div",{style:{alignSelf:"baseline",padding:6},children:s("to")}),x.jsx(P.DatePicker,{value:e,onChange:a,isDisabled:!l||!P.isValidDate(l),rangeStart:l,validators:[c],"aria-label":"End date",placeholder:s("now"),invalidFormatText:s("Invalid date format")}),e!==void 0&&x.jsx(P.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>t(void 0),children:x.jsx(yt.TimesCircleIcon,{})})]})}function kRe(n){const{t:e}=ts(),[t,i]=T.useState("");let r=n.placeholder;if(!r)switch(n.comparison){case"contains":r=e("contains");break;case"startsWith":r=e("starts with");break;case"endsWith":r=e("ends with");break;case"equals":r=e("equals");break}return x.jsxs(P.InputGroup,{children:[x.jsxs(P.TextInputGroup,{style:{minWidth:220},children:[x.jsx(P.TextInputGroupMain,{id:n.id,value:t,onChange:(s,o)=>{i(typeof s=="string"?s:o)},onKeyUp:s=>{t&&s.key==="Enter"&&(n.addFilter(t),i(""))},placeholder:r}),t!==""&&x.jsx(P.TextInputGroupUtilities,{children:x.jsx(P.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>i(""),style:{opacity:t?void 0:0},tabIndex:-1,children:x.jsx(yt.TimesIcon,{})})})]}),x.jsx(P.Button,{variant:t?"primary":"control","aria-label":"apply filter",onClick:()=>{n.addFilter(t),i("")},tabIndex:-1,isDisabled:!t,children:x.jsx(yt.ArrowRightIcon,{})})]})}var gz=(n=>(n[n.Text=0]="Text",n[n.SingleSelect=1]="SingleSelect",n[n.MultiSelect=2]="MultiSelect",n[n.DateRange=3]="DateRange",n[n.AsyncSingleSelect=4]="AsyncSingleSelect",n))(gz||{});function mz(n){var l;const{toolbarFilters:e,filterState:t,setFilterState:i}=n,[r,s]=T.useState(()=>e&&(e==null?void 0:e.length)>0?e[0].key:""),o=e==null?void 0:e.find(c=>c.key===r);if(!o)return x.jsx(x.Fragment,{});if(!e)return x.jsx(x.Fragment,{});if(e.length===0)return x.jsx(x.Fragment,{});let a=e.length===1;return e.length>=1&&(e[0].type===2&&e[0].isPinned||e[0].type===1&&e[0].isPinned&&(t[e[0].key]==null||((l=t[e[0].key])==null?void 0:l.length)===0))&&(a=!1),x.jsx(x.Fragment,{children:e.length===1?x.jsxs(P.ToolbarItem,{children:[a&&x.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:e[0].label}),x.jsx(_z,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]}):x.jsxs(P.ToolbarItem,{children:[x.jsx(Eu,{id:"filter",value:r,onSelect:s,icon:x.jsx(yt.FilterIcon,{}),options:e.map(c=>({label:c.label,value:c.key})),placeholder:""}),x.jsx(_z,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]})})}function pz(n){const{toolbarFilters:e,setFilterState:t,filterState:i}=n,[r]=yi(),s=!ws("md");if(!e)return x.jsx(x.Fragment,{});if(e.length===0)return x.jsx(x.Fragment,{});const o=e.filter(l=>!l.isPinned),a=e.filter(l=>!!l.isPinned);return x.jsx(P.ToolbarToggleGroup,{toggleIcon:x.jsx(yt.FilterIcon,{}),breakpoint:"md",children:x.jsxs(P.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:16},children:[s&&x.jsx(P.ToolbarItem,{variant:"label",children:r.filter}),x.jsx(mz,{toolbarFilters:o,setFilterState:t,filterState:i}),a==null?void 0:a.map(l=>x.jsx(mz,{toolbarFilters:[l],setFilterState:t,filterState:i},l.key)),e==null?void 0:e.map(l=>{const c=(i==null?void 0:i[l.key])||[];return l.isPinned&&l.type===1?x.jsx(x.Fragment,{}):l.isPinned&&l.type===3?x.jsx(x.Fragment,{}):x.jsx(P.ToolbarFilter,{categoryName:l.label,chips:c.map(u=>{var d;switch(l.type){case 1:case 2:return((d=l.options.find(h=>h.value===u))==null?void 0:d.label)??u;default:return u}}),deleteChip:(u,d)=>{t==null||t(h=>{var m;const f={...h};switch(d=typeof d=="string"?d:d.key,l.type){case 1:case 2:d=((m=l.options.find(p=>p.value===d))==null?void 0:m.label)??d;break}let g=h[l.key];return g&&(g=g.filter(p=>p!==d),g.length===0?delete f[l.key]:f[l.key]=g),f})},deleteChipGroup:()=>{t==null||t(u=>{const d={...u};return delete d[l.key],d})},showToolbarItem:!1,children:x.jsx(x.Fragment,{})},l.label)})]})})}function _z(n){const{filter:e,filterState:t,setFilterState:i}=n,r=t==null?void 0:t[e.key],s=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=a(u),c})},[e.key,i]),o=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=[...u,a],c})},[e.key,i]);switch(e.type){case 0:return x.jsx(kRe,{id:n.id??e.key,addFilter:o,placeholder:e.placeholder,comparison:e.comparison});case 1:return x.jsx(Eu,{id:n.id??e.key,placeholder:e.placeholder,value:r&&(r==null?void 0:r.length)>0?r[0]:"",onSelect:a=>s(()=>[a]),options:e.options,isRequired:e.isRequired});case 4:return x.jsx(wRe,{id:n.id??e.key,value:r&&(r==null?void 0:r.length)>0?r[0]:"",onSelect:a=>s(()=>[a]),placeholder:e.placeholder||"",queryOptions:e.queryOptions,queryErrorText:e.queryErrorText,queryPlaceholder:e.queryPlaceholder,isRequired:e.isRequired,footer:e.openBrowse?x.jsx(P.Button,{variant:"link",onClick:()=>{var a;(a=e.openBrowse)==null||a.call(e,l=>s(()=>[l]),r&&r.length>0?r[0]:void 0)},children:"Browse"}):void 0});case 2:return x.jsx(SRe,{id:n.id??e.key,placeholder:e.placeholder,values:r,onSelect:s,options:e.options,variant:"count",disableClearSelection:!0});case 3:return x.jsx(xRe,{id:n.id??e.key,label:e.label,placeholder:e.placeholder??"",filterValues:r,setFilterValues:s,options:e.options,isRequired:e.isRequired,defaultValue:e.defaultValue})}}function DRe(n){const{sort:e,setSort:t,sortDirection:i,setSortDirection:r,sortOptions:s}=n,o=s==null?void 0:s.find(u=>u.value===e),a=o?o.type:void 0,[l]=yi(),c=T.useMemo(()=>{switch(a){case"text":switch(i){case"asc":return x.jsx(yt.SortAlphaUpIcon,{});case"desc":return x.jsx(yt.SortAlphaDownAltIcon,{})}break;case"number":switch(i){case"asc":return x.jsx(yt.SortNumericUpIcon,{});case"desc":return x.jsx(yt.SortNumericDownAltIcon,{})}break;default:switch(i){case"asc":return x.jsx(yt.SortAmountUpIcon,{});case"desc":return x.jsx(yt.SortAmountDownIcon,{})}break}return x.jsx(x.Fragment,{})},[i,a]);return!s||s.length<=0?x.jsx(x.Fragment,{}):x.jsx(P.ToolbarToggleGroup,{breakpoint:"md",toggleIcon:void 0,children:x.jsxs(P.ToolbarGroup,{variant:"filter-group",children:[x.jsx(P.ToolbarItem,{variant:"label",children:l.sort}),x.jsx(P.ToolbarItem,{children:x.jsxs(P.Split,{children:[x.jsx(ERe,{sortOptions:s,sort:e,setSort:t,setSortDirection:r}),x.jsx(P.Button,{variant:"control",icon:c,onClick:()=>{i==="asc"?r==null||r("desc"):r==null||r("asc")}})]})})]})})}function ERe(n){const{sortOptions:e,sort:t,setSort:i,setSortDirection:r}=n,s=T.useCallback(o=>{if(o){const a=e.find(l=>l.value===o);a&&t!==o&&a.defaultDirection&&(r==null||r(a.defaultDirection)),i==null||i(o)}},[e,i,r,t]);return x.jsx(Eu,{placeholder:"",value:t,onSelect:s,options:e.map(o=>({label:o.label,value:o.value}))})}function TRe(n){return T.useMemo(()=>{const t=[];for(const i of n)if(i.sort){if(i.defaultSort){t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});continue}switch(i.type){case"count":t.push({label:i.header,value:i.sort,type:"number",defaultDirection:i.defaultSortDirection});break;case"text":t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});break;default:t.push({label:i.header,value:i.sort,defaultDirection:i.defaultSortDirection});break}}return t},[n])}function IRe(n){const{viewType:e,setViewType:t,openColumnModal:i}=n,[r]=yi();let s=0;return n.disableTableView||s++,n.disableCardView||s++,n.disableListView||s++,x.jsxs(P.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:[i&&x.jsx(P.ToolbarItem,{children:x.jsx(P.Tooltip,{content:r.manageColumns,children:x.jsx(P.Button,{variant:"plain",icon:x.jsx(yt.ColumnsIcon,{}),onClick:i})})}),s>1&&x.jsx(P.ToolbarItem,{children:x.jsx(P.ToggleGroup,{"aria-label":"table view toggle",children:[!n.disableTableView&&Gn.Table,!n.disableListView&&Gn.List,!n.disableCardView&&Gn.Cards].filter(o=>o).map(o=>{switch(o){case Gn.Cards:return x.jsx(P.Tooltip,{content:r.cardView,position:"top-end",enableFlip:!1,children:x.jsx(P.ToggleGroupItem,{icon:x.jsx(yt.ThLargeIcon,{}),isSelected:e===Gn.Cards,onClick:()=>t==null?void 0:t(Gn.Cards),"aria-label":"card view"})},o);case Gn.List:return x.jsx(P.Tooltip,{content:r.listView,position:"top-end",enableFlip:!1,children:x.jsx(P.ToggleGroupItem,{icon:x.jsx(yt.ListIcon,{}),isSelected:e===Gn.List,onClick:()=>t==null?void 0:t(Gn.List),"aria-label":"list view"})},o);case Gn.Table:return x.jsx(P.Tooltip,{content:r.tableView,position:"top-end",enableFlip:!1,children:x.jsx(P.ToggleGroupItem,{icon:x.jsx(yt.TableIcon,{}),isSelected:e===Gn.Table,onClick:()=>t==null?void 0:t(Gn.Table),"aria-label":"table view"})},o)}})})})]})}const ARe=un.div`
|
308
308
|
display: flex;
|
309
309
|
flex-grow: 1;
|
310
310
|
justify-content: end;
|
311
311
|
flex-wrap: wrap;
|
312
|
-
`,vz=un(
|
312
|
+
`,vz=un(P.ToolbarContent)`
|
313
313
|
& > .pf-c-toolbar__content-section {
|
314
314
|
row-gap: 16px;
|
315
315
|
justify-content: end;
|
316
316
|
}
|
317
|
-
`;function bz(n){const{itemCount:e,page:t,perPage:i,setPage:r,setPerPage:s,toolbarFilters:o,selectedItems:a,filterState:l,setFilterState:c,openColumnModal:u,bottomBorder:d,sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p,clearAllFilters:v}=n,_=T.useCallback(()=>{v?v():c&&c({})},[c,v]),b=ws("md"),{viewType:y,setViewType:w}=n;let{toolbarActions:k}=n;k=k??[];const L=T.useCallback((M,B)=>r?r(B):null,[r]),D=T.useCallback((M,B)=>s?s(B):null,[s]),E=o!==void 0,N=k!==void 0&&k.length>0,O=n.showSelect===!0||a!==void 0&&k&&k.find(M=>"selection"in M&&M.selection===ei.Multiple);return O||E||N?e===void 0?x.jsx(R.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,zIndex:400},children:x.jsx(vz,{children:x.jsx(R.ToolbarItem,{style:{width:"100%"},children:x.jsx(R.Skeleton,{height:"36px"})})})}):x.jsx(R.Toolbar,{clearAllFilters:_,className:"dark-2 page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,borderBottom:d?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:x.jsxs(vz,{children:[O&&x.jsx(R.ToolbarGroup,{children:x.jsx(R.ToolbarItem,{variant:"bulk-select",children:x.jsx(Vj,{...n})})}),l&&c&&x.jsx(pz,{toolbarFilters:o,filterState:l,setFilterState:c}),x.jsx(R.ToolbarGroup,{variant:"button-group",children:x.jsx(ig,{actions:k,selectedItems:a,wrapper:R.ToolbarItem})}),x.jsxs(ARe,{children:[x.jsx(DRe,{sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p}),y&&w&&x.jsx(IRe,{disableTableView:n.disableTableView,disableListView:n.disableListView,disableCardView:n.disableCardView,viewType:y,setViewType:w,openColumnModal:u}),!n.disablePagination&&x.jsx(R.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24},children:x.jsx(R.Pagination,{variant:R.PaginationVariant.top,isCompact:!0,itemCount:e,perPage:i,page:t,onSetPage:L,onPerPageSelect:D,style:{marginTop:-8,marginBottom:-8}})})]})]})}):x.jsx(T.Fragment,{})}function ORe(n){const{t:e}=ts(),t=e("Something went wrong"),i=e("Please refresh the page by using the button below."),r=e("Refresh"),{titleProp:s,message:o}=n;return x.jsxs(R.EmptyState,{variant:R.EmptyStateVariant.small,style:{paddingTop:48},children:[x.jsx(R.EmptyStateIcon,{icon:yt.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),x.jsx(R.Title,{headingLevel:"h2",size:"lg",children:s||t}),x.jsx(R.EmptyStateBody,{children:o}),x.jsx(R.EmptyStateBody,{children:i}),x.jsx(R.Button,{variant:"primary",onClick:()=>window.location.reload(),children:r})]})}function NRe(n){const{title:e,description:t,icon:i,button:r,footNote:s,image:o,variant:a,style:l}=n;return x.jsxs(R.EmptyState,{variant:a||R.EmptyStateVariant.full,style:l,children:[i&&x.jsx(R.EmptyStateIcon,{icon:i}),x.jsx(R.Title,{headingLevel:"h4",size:"lg",children:e}),x.jsx(R.EmptyStateBody,{children:t}),r&&x.jsx(R.EmptyStatePrimary,{children:r}),o&&x.jsxs(x.Fragment,{children:[" ",x.jsx("br",{})," ",x.jsx(R.EmptyStateBody,{children:o})]}),s&&x.jsx(R.EmptyStateBody,{children:s})]})}function MRe(n){const{button:e,description:t,title:i,variant:r}=n;return x.jsx(NRe,{icon:e?yt.PlusCircleIcon:yt.CubesIcon,title:i,description:t,button:e,variant:r,style:{paddingTop:"48px"}})}function yI(n,e,t){var i,r,s,o,a;e==null&&(e=100);function l(){var u=Date.now()-o;u<e&&u>=0?i=setTimeout(l,e-u):(i=null,t||(a=n.apply(s,r),s=r=null))}var c=function(){s=this,r=arguments,o=Date.now();var u=t&&!i;return i||(i=setTimeout(l,e)),u&&(a=n.apply(s,r),s=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=n.apply(s,r),s=r=null,clearTimeout(i),i=null)},c}yI.debounce=yI;var PRe=yI;const RRe=St(PRe);function FRe(n,e,t){const{selectedItems:i,selectItem:r,unselectItem:s,isSelected:o,selectItems:a,unselectAll:l,allSelected:c}=CI(n,e),{sorted:u,sort:d,setSort:h}=wI(n),{filtered:f,setFilterFn:g}=SI(u,e),{searched:m,search:p,setSearch:v,setSearchFn:_}=BRe(f,e,t==null?void 0:t.search),{paged:b,page:y,setPage:w,perPage:k,setPerPage:L}=T_(m),D=T.useCallback(()=>a(b),[b,a]),E=T.useCallback(()=>a(m),[m,a]);return T.useMemo(()=>({allSelected:c,filtered:f,isSelected:o,page:y,paged:b,perPage:k,search:p,searched:m,selectAll:E,selectItem:r,selectPage:D,selectedItems:i,setFilterFn:g,setPage:w,setPerPage:L,setSearch:v,setSearchFn:_,setSort:h,sort:d,sorted:u,unselectAll:l,unselectItem:s}),[c,f,o,y,b,k,p,m,E,r,D,i,g,w,L,v,_,h,d,u,l,s])}function CI(n,e,t){const[i,r]=T.useState(()=>t?t.reduce((g,m)=>(g[e(m)]=m,g),{}):{});T.useEffect(()=>{r(g=>{let m=!1;return n.forEach(p=>{const v=e(p);g[v]&&g[v]!==p&&(m=!0,g[v]=p)}),m?{...g}:g})},[n,e]);const s=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]!==g&&(m={...m},m[p]=g),m})},[e]),o=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]&&(m={...m},delete m[p]),m})},[e]),a=T.useCallback(g=>{const m=e(g);return i[m]!==void 0},[e,i]),l=T.useCallback(g=>{r(m=>{m={...m};for(const p of g){const v=e(p);m[v]=p}return m})},[e]),c=T.useCallback(()=>l(n),[n,l]),u=T.useCallback(g=>{for(const m of g)o(m)},[o]),d=T.useCallback(()=>{r(g=>Object.keys(g).length>0?{}:g)},[]),h=T.useMemo(()=>Object.values(i),[i]),f=T.useMemo(()=>h.length===n.length,[n.length,h.length]);return T.useMemo(()=>({selectedItems:h,selectItem:s,unselectItem:o,isSelected:a,selectItems:l,selectAll:c,unselectAll:d,allSelected:f,keyFn:e,unselectItems:u}),[f,a,e,c,s,l,h,d,o,u])}function yz(n,e){const[t,i]=T.useState({});T.useEffect(()=>{i(f=>{let g=!1;const m=n?n.reduce((_,b)=>{const y=e(b);return _[y]=b,f[y]&&f[y]!==b&&(g=!0,f[y]=b),_},{}):{},p={};for(const _ in f)m[_]||(p[_]=!0);const v=Object.keys(p);if(v.length){g=!0;for(const _ of v)delete f[_]}return g?{...f}:f})},[n,e]);const r=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]!==f&&(g={...g},g[m]=f),g})},[e]),s=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]&&(g={...g},delete g[m]),g})},[e]),o=T.useCallback(f=>{for(const g of f)s(g)},[s]),a=T.useCallback(f=>{const g=e(f);return t[g]!==void 0},[e,t]),l=T.useCallback(f=>{i(g=>{g={...g};for(const m of f){const p=e(m);g[p]=m}return g})},[e]),c=T.useCallback(()=>{l(n??[])},[n,l]),u=T.useCallback(()=>{i(f=>Object.keys(f).length>0?{}:f)},[]),d=T.useMemo(()=>Object.values(t),[t]),h=T.useMemo(()=>d.length===(n==null?void 0:n.length),[n,d.length]);return T.useMemo(()=>({selectedItems:d,selectItem:r,unselectItem:s,isSelected:a,selectItems:l,selectAll:c,unselectAll:u,allSelected:h,keyFn:e,unselectItems:o}),[h,a,e,c,r,l,d,u,s,o])}function wI(n){const[e,t]=T.useState(),{direction:i,sortFn:r}=e??{},s=T.useMemo(()=>n?r?i==="asc"?[...n.sort(r)]:[...n.sort(r).reverse()]:n:[],[i,n,r]);return T.useMemo(()=>({sorted:s,sort:e,setSort:t}),[e,s])}function SI(n,e){const t=T.useRef({map:{}}),[i,r]=T.useState(),s=T.useCallback(c=>r(()=>c),[]),[o,a]=T.useState([]);T.useEffect(()=>{t.current.map={}},[i]);const l=T.useCallback(c=>{const u=e(c);let d=t.current.map[u];return d?d.item!==c&&(d.item=c,d.passes=i?i(c):!0):(d={item:c,passes:i?i(c):!0},t.current.map[u]=d),d.passes},[i,e]);return T.useEffect(()=>{a(i?n.filter(l):n)},[n,i,l]),T.useMemo(function(){return{filtered:o,setFilterFn:s}},[o,s])}function BRe(n,e,t){const i=T.useRef({map:{}}),[r,s]=T.useState(),o=T.useCallback(f=>s(()=>f),[]),[a,l]=T.useState([]),[c,u]=T.useState(t??""),d=T.useCallback(RRe(f=>u(f),200),[]);T.useEffect(()=>{i.current.map={}},[c,r]);const h=T.useCallback(f=>{const g=e(f);let m=i.current.map[g];return m?m.item!==f&&(m.item=f,m.score=r?r(f,c):0):(m={item:f,score:r?r(f,c):0},i.current.map[g]=m),m},[e,r,c]);return T.useEffect(()=>{l(r&&c?n.map(h).filter(f=>f.score<.5).sort((f,g)=>f.score-g.score).map(f=>f.item):n)},[c,n,r,h]),T.useMemo(function(){return{searched:a,search:c,setSearch:d,setSearchFn:o}},[a,c,d,o])}function T_(n){const[e,t]=T.useState([]),[i,r]=T.useState(1),[s,o]=T.useState(10);return T.useEffect(()=>{t(a=>{const l=n.slice((i-1)*s,i*s);if(a.length!==l.length)return l;let c=0;for(const u of l)if(a[c++]!==u)return l;return a})},[i,s,n]),T.useEffect(()=>{i>Math.ceil(n.length/s)&&r(1)},[i,s,n.length]),T.useMemo(()=>({paged:e,page:i,setPage:r,perPage:s,setPerPage:o}),[i,e,s])}const Rht="",xI={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function WRe(n){const{t:e}=ts(),{columns:t,keyFn:i,items:r,setItems:s,isSelected:o,selectItem:a,unselectItem:l,allSelected:c,selectAll:u,unselectAll:d,hideColumnHeaders:h,isSelectableWithCheckbox:f}=n,[g,m]=T.useState(null),[p,v]=T.useState(null),[_,b]=T.useState(!1),y=T.useRef(null),w=B=>{if(y.current){const V=y.current.getBoundingClientRect();return B.clientX>V.x&&B.clientX<V.x+V.width&&B.clientY>V.y&&B.clientY<V.y+V.height}return!1},k=B=>{w(B)||L()},L=()=>{y.current&&Array.from(y.current.children).forEach(B=>{B.classList.remove(xI.modifiers.ghostRow),B.setAttribute("aria-pressed","false")}),v(null),m(null),b(!1)},D=B=>{B.preventDefault();const V=B.target.closest("tr");if(!V||!(y.current&&y.current.contains(V))||V.id===p)return null;{const ee=V.id,re=Array.from(y.current.children).findIndex(se=>se.id===ee);if(re!==g&&p){const se=E([...r],p,re);s(se)}}return null},E=(B,V,ee)=>{const re=B.findIndex(ie=>i(ie)===V);if(re===ee)return B;const se=B.splice(re,1);return B.splice(ee,0,se[0]),B},N=B=>{w(B)||m(null)},O=B=>{const V=B.target;V.classList.remove(xI.modifiers.ghostRow),V.setAttribute("aria-pressed","false"),v(null),m(null),b(!1)},I=B=>{if(y.current){B.dataTransfer.effectAllowed="move";const V=B.currentTarget.id,ee=Array.from(y.current.children).findIndex(re=>re.id===B.currentTarget.id);B.currentTarget.setAttribute("aria-pressed","true"),v(V),m(ee)}},M=T.useCallback(B=>{const V=r.findIndex(re=>i(re)===i(B)),ee=[...r];ee[V]=B,s(ee)},[r,s,i]);return x.jsxs(Ht.TableComposable,{"aria-label":e("Table with draggable rows"),className:_?xI.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!h&&x.jsx(Ht.Thead,{children:x.jsxs(Ht.Tr,{children:[x.jsx(Ht.Th,{}),f&&x.jsx(Ht.Th,{select:{onSelect:(B,V)=>{V?u():d()},isSelected:c}}),t.map((B,V)=>x.jsx(Ht.Th,{children:B.header},V))]})}),x.jsx(Ht.Tbody,{ref:y,onDragOver:D,onDragLeave:N,children:r.map((B,V)=>{const ee=i(B);return x.jsxs(Ht.Tr,{id:ee.toString(),draggable:!0,onDrop:k,onDragEnd:O,onDragStart:I,children:[x.jsx(Ht.Td,{draggableRow:{id:`draggable-row-${ee.toString()}`}}),f&&x.jsx(Ht.Td,{select:{rowIndex:V,variant:"checkbox",onSelect:(re,se)=>{se?a(B):l(B)},isSelected:o(B)}}),t.map(re=>x.jsx(Ht.Td,{children:re.cell(B,M)},re.header))]},ee)})})]})}function VRe(n){const[e,t]=qa(),[i]=T.useState(()=>n.keyFn),[r]=T.useState(()=>n.saveFn),[s]=T.useState(()=>n.loadFn),[o,a]=T.useState(()=>{try{const h=localStorage.getItem(n.id);if(typeof h=="string"){const f=JSON.parse(h);if(Array.isArray(f)&&f.every(g=>typeof g=="object")&&f.every(g=>"key"in g&&"enabled"in g))return f}}catch{}}),l=T.useMemo(()=>o?n.items.map(h=>{if(s){const f=o.find(g=>g.key===i(h));f&&f.state&&s(h,f.state)}return h}).sort((h,f)=>{const g=o.findIndex(p=>p.key===i(h)),m=o.findIndex(p=>p.key===i(f));return g===-1&&m===-1?0:g===-1?1:m===-1?-1:g-m}):n.items,[o,i,s,n.items]),c=T.useMemo(()=>o?l.filter(h=>{const f=o.find(g=>g.key===i(h));return f?f.enabled:!0}):l,[l,o,i]),u=T.useCallback((h,f)=>{const g=h.map(m=>({key:i(m),enabled:f.includes(m),state:r?r(m):void 0}));a(g),localStorage.setItem(n.id,JSON.stringify(g))},[i,n.id,r]);return{openManageItems:()=>t(x.jsx($Re,{...n,keyFn:i,items:l,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function $Re(n){const{t:e}=ts(),{title:t,description:i,columns:r,onApplyChanges:s}=n,[o]=T.useState(()=>n.keyFn),[a,l]=qa(),c=()=>l(void 0),[u,d]=T.useState(()=>n.items),{selectedItems:h,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_}=CI(u,o,n.defaultSelectedItems),b=()=>{s(u,h),l(void 0)};return x.jsxs(R.Modal,{title:t,"aria-label":t,description:x.jsx("div",{style:{marginBottom:16},children:i}),variant:n.variant??R.ModalVariant.medium,isOpen:!0,onClose:c,actions:[x.jsx(R.Button,{variant:"primary",onClick:b,children:e`Apply`},"apply"),x.jsx(R.Button,{variant:"link",onClick:c,children:e`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[x.jsx(R.Divider,{}),x.jsx(R.ModalBoxBody,{style:{padding:0},children:x.jsx(WRe,{keyFn:o,items:u,setItems:d,columns:r,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_,hideColumnHeaders:n.hideColumnHeaders,isSelectableWithCheckbox:n.hideSelection!==!0})}),x.jsx(R.Divider,{})]})}function HRe(n,e,t,i,r){const{t:s}=ts(),o=T.useMemo(()=>{const d=[{header:s("Column Name"),cell:h=>h.header}];return t||d.push({header:s("Table View"),cell:(h,f)=>x.jsx(Eu,{value:h.table??"",onSelect:g=>{switch(g){case"":f({...h,table:void 0});break;case ku.Description:case ku.Expanded:case ku.Hidden:f({...h,table:g});break}},placeholder:s("Column"),options:[{value:"",label:s("Column"),description:s("Show the column in the table.")},{value:ku.Description,label:s("Description"),description:s("Show the column when the item is expanded as a full width description.")},{value:ku.Expanded,label:s("Expanded"),description:s("Show the column when the item is expandedas a detail.")},{value:ku.Hidden,label:s("Hidden"),description:s("Hide the column.")}]})}),i||d.push({header:s("List View"),cell:(h,f)=>x.jsx(Eu,{value:h.list??"",onSelect:g=>{switch(g){case"":f({...h,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":f({...h,list:g});break}},options:[{value:"name",label:s("Name"),description:s("Show the column as the name of the list item.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the list.")},{value:"description",label:s("Description"),description:s("Show the column as the list item description.")},{value:"",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"primary",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"secondary",label:s("Right side"),description:s("Show the column on the right side of the list.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the list.")}],placeholder:s("Left side")})}),r||d.push({header:s("Card View"),cell:(h,f)=>x.jsx(Eu,{value:h.card??"",onSelect:g=>{switch(g){case"":f({...h,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":f({...h,card:g});break}},placeholder:s("Detail"),options:[{value:"name",label:s("Name"),description:s("Show the column as the name on the card.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the card.")},{value:"description",label:s("Description"),description:s("Show the column as the card description.")},{value:"",label:s("Detail"),description:s("Show the column one of the details on the card.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the card.")}]})}),d},[r,i,t,s]),a=T.useCallback((d,h)=>{typeof h=="object"&&h!==null&&("table"in h&&typeof h.table=="string"?d.table=h.table:d.table=void 0,"list"in h&&typeof h.list=="string"?d.list=h.list:d.list=void 0,"card"in h&&typeof h.card=="string"?d.card=h.card:d.card=void 0)},[]),l=T.useCallback(d=>{const{table:h,list:f,card:g}=d;return{table:h,list:f,card:g}},[]),{openManageItems:c,managedItems:u}=VRe({id:n,title:s("Manage Columns"),description:s("Manage the order, placement, and format of columns."),items:e,keyFn:d=>d.id??d.header,columns:o,loadFn:a,saveFn:l,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}function jRe(n){const{setPage:e,setPerPage:t}=n,i=T.useCallback((o,a)=>e(a),[e]),r=T.useCallback((o,a)=>t(a),[t]),s=!ws("md");return x.jsx(R.Pagination,{variant:R.PaginationVariant.bottom,itemCount:n.itemCount,page:n.page,perPage:n.perPage,onSetPage:i,onPerPageSelect:r,style:{...n.style,boxShadow:"none",zIndex:400,paddingTop:s?4:6,paddingBottom:s?4:6,borderTop:n.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const Fht="";function zRe(n){const e=n.size??350,t=T.useRef(null),[i,r]=T.useState("1fr"),s=T.useCallback(a=>{let l=Math.min(n.maxColumns??12,Math.max(Math.floor(a/e),1));l<1&&(l=1),r(()=>new Array(l).fill("1fr").join(" "))},[n.maxColumns,e]);_g(t,a=>s(a.contentRect.width)),T.useLayoutEffect(()=>{var a;s(((a=t.current)==null?void 0:a.clientWidth)??0)},[s]);const o=16;return x.jsx("div",{ref:t,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:i,gap:o},children:n.children})}const URe=un.small`
|
317
|
+
`;function bz(n){const{itemCount:e,page:t,perPage:i,setPage:r,setPerPage:s,toolbarFilters:o,selectedItems:a,filterState:l,setFilterState:c,openColumnModal:u,bottomBorder:d,sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p,clearAllFilters:v}=n,_=T.useCallback(()=>{v?v():c&&c({})},[c,v]),b=ws("md"),{viewType:y,setViewType:w}=n;let{toolbarActions:k}=n;k=k??[];const L=T.useCallback((M,B)=>r?r(B):null,[r]),D=T.useCallback((M,B)=>s?s(B):null,[s]),E=o!==void 0,N=k!==void 0&&k.length>0,O=n.showSelect===!0||a!==void 0&&k&&k.find(M=>"selection"in M&&M.selection===ei.Multiple);return O||E||N?e===void 0?x.jsx(P.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,zIndex:400},children:x.jsx(vz,{children:x.jsx(P.ToolbarItem,{style:{width:"100%"},children:x.jsx(P.Skeleton,{height:"36px"})})})}):x.jsx(P.Toolbar,{clearAllFilters:_,className:"dark-2 page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,borderBottom:d?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:x.jsxs(vz,{children:[O&&x.jsx(P.ToolbarGroup,{children:x.jsx(P.ToolbarItem,{variant:"bulk-select",children:x.jsx(Vj,{...n})})}),l&&c&&x.jsx(pz,{toolbarFilters:o,filterState:l,setFilterState:c}),x.jsx(P.ToolbarGroup,{variant:"button-group",children:x.jsx(ig,{actions:k,selectedItems:a,wrapper:P.ToolbarItem})}),x.jsxs(ARe,{children:[x.jsx(DRe,{sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p}),y&&w&&x.jsx(IRe,{disableTableView:n.disableTableView,disableListView:n.disableListView,disableCardView:n.disableCardView,viewType:y,setViewType:w,openColumnModal:u}),!n.disablePagination&&x.jsx(P.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24},children:x.jsx(P.Pagination,{variant:P.PaginationVariant.top,isCompact:!0,itemCount:e,perPage:i,page:t,onSetPage:L,onPerPageSelect:D,style:{marginTop:-8,marginBottom:-8}})})]})]})}):x.jsx(T.Fragment,{})}function ORe(n){const{t:e}=ts(),t=e("Something went wrong"),i=e("Please refresh the page by using the button below."),r=e("Refresh"),{titleProp:s,message:o}=n;return x.jsxs(P.EmptyState,{variant:P.EmptyStateVariant.small,style:{paddingTop:48},children:[x.jsx(P.EmptyStateIcon,{icon:yt.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),x.jsx(P.Title,{headingLevel:"h2",size:"lg",children:s||t}),x.jsx(P.EmptyStateBody,{children:o}),x.jsx(P.EmptyStateBody,{children:i}),x.jsx(P.Button,{variant:"primary",onClick:()=>window.location.reload(),children:r})]})}function NRe(n){const{title:e,description:t,icon:i,button:r,footNote:s,image:o,variant:a,style:l}=n;return x.jsxs(P.EmptyState,{variant:a||P.EmptyStateVariant.full,style:l,children:[i&&x.jsx(P.EmptyStateIcon,{icon:i}),x.jsx(P.Title,{headingLevel:"h4",size:"lg",children:e}),x.jsx(P.EmptyStateBody,{children:t}),r&&x.jsx(P.EmptyStatePrimary,{children:r}),o&&x.jsxs(x.Fragment,{children:[" ",x.jsx("br",{})," ",x.jsx(P.EmptyStateBody,{children:o})]}),s&&x.jsx(P.EmptyStateBody,{children:s})]})}function MRe(n){const{button:e,description:t,title:i,variant:r}=n;return x.jsx(NRe,{icon:e?yt.PlusCircleIcon:yt.CubesIcon,title:i,description:t,button:e,variant:r,style:{paddingTop:"48px"}})}function yI(n,e,t){var i,r,s,o,a;e==null&&(e=100);function l(){var u=Date.now()-o;u<e&&u>=0?i=setTimeout(l,e-u):(i=null,t||(a=n.apply(s,r),s=r=null))}var c=function(){s=this,r=arguments,o=Date.now();var u=t&&!i;return i||(i=setTimeout(l,e)),u&&(a=n.apply(s,r),s=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=n.apply(s,r),s=r=null,clearTimeout(i),i=null)},c}yI.debounce=yI;var PRe=yI;const RRe=St(PRe);function FRe(n,e,t){const{selectedItems:i,selectItem:r,unselectItem:s,isSelected:o,selectItems:a,unselectAll:l,allSelected:c}=CI(n,e),{sorted:u,sort:d,setSort:h}=wI(n),{filtered:f,setFilterFn:g}=SI(u,e),{searched:m,search:p,setSearch:v,setSearchFn:_}=BRe(f,e,t==null?void 0:t.search),{paged:b,page:y,setPage:w,perPage:k,setPerPage:L}=T_(m),D=T.useCallback(()=>a(b),[b,a]),E=T.useCallback(()=>a(m),[m,a]);return T.useMemo(()=>({allSelected:c,filtered:f,isSelected:o,page:y,paged:b,perPage:k,search:p,searched:m,selectAll:E,selectItem:r,selectPage:D,selectedItems:i,setFilterFn:g,setPage:w,setPerPage:L,setSearch:v,setSearchFn:_,setSort:h,sort:d,sorted:u,unselectAll:l,unselectItem:s}),[c,f,o,y,b,k,p,m,E,r,D,i,g,w,L,v,_,h,d,u,l,s])}function CI(n,e,t){const[i,r]=T.useState(()=>t?t.reduce((g,m)=>(g[e(m)]=m,g),{}):{});T.useEffect(()=>{r(g=>{let m=!1;return n.forEach(p=>{const v=e(p);g[v]&&g[v]!==p&&(m=!0,g[v]=p)}),m?{...g}:g})},[n,e]);const s=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]!==g&&(m={...m},m[p]=g),m})},[e]),o=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]&&(m={...m},delete m[p]),m})},[e]),a=T.useCallback(g=>{const m=e(g);return i[m]!==void 0},[e,i]),l=T.useCallback(g=>{r(m=>{m={...m};for(const p of g){const v=e(p);m[v]=p}return m})},[e]),c=T.useCallback(()=>l(n),[n,l]),u=T.useCallback(g=>{for(const m of g)o(m)},[o]),d=T.useCallback(()=>{r(g=>Object.keys(g).length>0?{}:g)},[]),h=T.useMemo(()=>Object.values(i),[i]),f=T.useMemo(()=>h.length===n.length,[n.length,h.length]);return T.useMemo(()=>({selectedItems:h,selectItem:s,unselectItem:o,isSelected:a,selectItems:l,selectAll:c,unselectAll:d,allSelected:f,keyFn:e,unselectItems:u}),[f,a,e,c,s,l,h,d,o,u])}function yz(n,e){const[t,i]=T.useState({});T.useEffect(()=>{i(f=>{let g=!1;const m=n?n.reduce((_,b)=>{const y=e(b);return _[y]=b,f[y]&&f[y]!==b&&(g=!0,f[y]=b),_},{}):{},p={};for(const _ in f)m[_]||(p[_]=!0);const v=Object.keys(p);if(v.length){g=!0;for(const _ of v)delete f[_]}return g?{...f}:f})},[n,e]);const r=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]!==f&&(g={...g},g[m]=f),g})},[e]),s=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]&&(g={...g},delete g[m]),g})},[e]),o=T.useCallback(f=>{for(const g of f)s(g)},[s]),a=T.useCallback(f=>{const g=e(f);return t[g]!==void 0},[e,t]),l=T.useCallback(f=>{i(g=>{g={...g};for(const m of f){const p=e(m);g[p]=m}return g})},[e]),c=T.useCallback(()=>{l(n??[])},[n,l]),u=T.useCallback(()=>{i(f=>Object.keys(f).length>0?{}:f)},[]),d=T.useMemo(()=>Object.values(t),[t]),h=T.useMemo(()=>d.length===(n==null?void 0:n.length),[n,d.length]);return T.useMemo(()=>({selectedItems:d,selectItem:r,unselectItem:s,isSelected:a,selectItems:l,selectAll:c,unselectAll:u,allSelected:h,keyFn:e,unselectItems:o}),[h,a,e,c,r,l,d,u,s,o])}function wI(n){const[e,t]=T.useState(),{direction:i,sortFn:r}=e??{},s=T.useMemo(()=>n?r?i==="asc"?[...n.sort(r)]:[...n.sort(r).reverse()]:n:[],[i,n,r]);return T.useMemo(()=>({sorted:s,sort:e,setSort:t}),[e,s])}function SI(n,e){const t=T.useRef({map:{}}),[i,r]=T.useState(),s=T.useCallback(c=>r(()=>c),[]),[o,a]=T.useState([]);T.useEffect(()=>{t.current.map={}},[i]);const l=T.useCallback(c=>{const u=e(c);let d=t.current.map[u];return d?d.item!==c&&(d.item=c,d.passes=i?i(c):!0):(d={item:c,passes:i?i(c):!0},t.current.map[u]=d),d.passes},[i,e]);return T.useEffect(()=>{a(i?n.filter(l):n)},[n,i,l]),T.useMemo(function(){return{filtered:o,setFilterFn:s}},[o,s])}function BRe(n,e,t){const i=T.useRef({map:{}}),[r,s]=T.useState(),o=T.useCallback(f=>s(()=>f),[]),[a,l]=T.useState([]),[c,u]=T.useState(t??""),d=T.useCallback(RRe(f=>u(f),200),[]);T.useEffect(()=>{i.current.map={}},[c,r]);const h=T.useCallback(f=>{const g=e(f);let m=i.current.map[g];return m?m.item!==f&&(m.item=f,m.score=r?r(f,c):0):(m={item:f,score:r?r(f,c):0},i.current.map[g]=m),m},[e,r,c]);return T.useEffect(()=>{l(r&&c?n.map(h).filter(f=>f.score<.5).sort((f,g)=>f.score-g.score).map(f=>f.item):n)},[c,n,r,h]),T.useMemo(function(){return{searched:a,search:c,setSearch:d,setSearchFn:o}},[a,c,d,o])}function T_(n){const[e,t]=T.useState([]),[i,r]=T.useState(1),[s,o]=T.useState(10);return T.useEffect(()=>{t(a=>{const l=n.slice((i-1)*s,i*s);if(a.length!==l.length)return l;let c=0;for(const u of l)if(a[c++]!==u)return l;return a})},[i,s,n]),T.useEffect(()=>{i>Math.ceil(n.length/s)&&r(1)},[i,s,n.length]),T.useMemo(()=>({paged:e,page:i,setPage:r,perPage:s,setPerPage:o}),[i,e,s])}const Rht="",xI={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function WRe(n){const{t:e}=ts(),{columns:t,keyFn:i,items:r,setItems:s,isSelected:o,selectItem:a,unselectItem:l,allSelected:c,selectAll:u,unselectAll:d,hideColumnHeaders:h,isSelectableWithCheckbox:f}=n,[g,m]=T.useState(null),[p,v]=T.useState(null),[_,b]=T.useState(!1),y=T.useRef(null),w=B=>{if(y.current){const V=y.current.getBoundingClientRect();return B.clientX>V.x&&B.clientX<V.x+V.width&&B.clientY>V.y&&B.clientY<V.y+V.height}return!1},k=B=>{w(B)||L()},L=()=>{y.current&&Array.from(y.current.children).forEach(B=>{B.classList.remove(xI.modifiers.ghostRow),B.setAttribute("aria-pressed","false")}),v(null),m(null),b(!1)},D=B=>{B.preventDefault();const V=B.target.closest("tr");if(!V||!(y.current&&y.current.contains(V))||V.id===p)return null;{const ee=V.id,re=Array.from(y.current.children).findIndex(se=>se.id===ee);if(re!==g&&p){const se=E([...r],p,re);s(se)}}return null},E=(B,V,ee)=>{const re=B.findIndex(ie=>i(ie)===V);if(re===ee)return B;const se=B.splice(re,1);return B.splice(ee,0,se[0]),B},N=B=>{w(B)||m(null)},O=B=>{const V=B.target;V.classList.remove(xI.modifiers.ghostRow),V.setAttribute("aria-pressed","false"),v(null),m(null),b(!1)},I=B=>{if(y.current){B.dataTransfer.effectAllowed="move";const V=B.currentTarget.id,ee=Array.from(y.current.children).findIndex(re=>re.id===B.currentTarget.id);B.currentTarget.setAttribute("aria-pressed","true"),v(V),m(ee)}},M=T.useCallback(B=>{const V=r.findIndex(re=>i(re)===i(B)),ee=[...r];ee[V]=B,s(ee)},[r,s,i]);return x.jsxs(Ht.TableComposable,{"aria-label":e("Table with draggable rows"),className:_?xI.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!h&&x.jsx(Ht.Thead,{children:x.jsxs(Ht.Tr,{children:[x.jsx(Ht.Th,{}),f&&x.jsx(Ht.Th,{select:{onSelect:(B,V)=>{V?u():d()},isSelected:c}}),t.map((B,V)=>x.jsx(Ht.Th,{children:B.header},V))]})}),x.jsx(Ht.Tbody,{ref:y,onDragOver:D,onDragLeave:N,children:r.map((B,V)=>{const ee=i(B);return x.jsxs(Ht.Tr,{id:ee.toString(),draggable:!0,onDrop:k,onDragEnd:O,onDragStart:I,children:[x.jsx(Ht.Td,{draggableRow:{id:`draggable-row-${ee.toString()}`}}),f&&x.jsx(Ht.Td,{select:{rowIndex:V,variant:"checkbox",onSelect:(re,se)=>{se?a(B):l(B)},isSelected:o(B)}}),t.map(re=>x.jsx(Ht.Td,{children:re.cell(B,M)},re.header))]},ee)})})]})}function VRe(n){const[e,t]=qa(),[i]=T.useState(()=>n.keyFn),[r]=T.useState(()=>n.saveFn),[s]=T.useState(()=>n.loadFn),[o,a]=T.useState(()=>{try{const h=localStorage.getItem(n.id);if(typeof h=="string"){const f=JSON.parse(h);if(Array.isArray(f)&&f.every(g=>typeof g=="object")&&f.every(g=>"key"in g&&"enabled"in g))return f}}catch{}}),l=T.useMemo(()=>o?n.items.map(h=>{if(s){const f=o.find(g=>g.key===i(h));f&&f.state&&s(h,f.state)}return h}).sort((h,f)=>{const g=o.findIndex(p=>p.key===i(h)),m=o.findIndex(p=>p.key===i(f));return g===-1&&m===-1?0:g===-1?1:m===-1?-1:g-m}):n.items,[o,i,s,n.items]),c=T.useMemo(()=>o?l.filter(h=>{const f=o.find(g=>g.key===i(h));return f?f.enabled:!0}):l,[l,o,i]),u=T.useCallback((h,f)=>{const g=h.map(m=>({key:i(m),enabled:f.includes(m),state:r?r(m):void 0}));a(g),localStorage.setItem(n.id,JSON.stringify(g))},[i,n.id,r]);return{openManageItems:()=>t(x.jsx($Re,{...n,keyFn:i,items:l,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function $Re(n){const{t:e}=ts(),{title:t,description:i,columns:r,onApplyChanges:s}=n,[o]=T.useState(()=>n.keyFn),[a,l]=qa(),c=()=>l(void 0),[u,d]=T.useState(()=>n.items),{selectedItems:h,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_}=CI(u,o,n.defaultSelectedItems),b=()=>{s(u,h),l(void 0)};return x.jsxs(P.Modal,{title:t,"aria-label":t,description:x.jsx("div",{style:{marginBottom:16},children:i}),variant:n.variant??P.ModalVariant.medium,isOpen:!0,onClose:c,actions:[x.jsx(P.Button,{variant:"primary",onClick:b,children:e`Apply`},"apply"),x.jsx(P.Button,{variant:"link",onClick:c,children:e`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[x.jsx(P.Divider,{}),x.jsx(P.ModalBoxBody,{style:{padding:0},children:x.jsx(WRe,{keyFn:o,items:u,setItems:d,columns:r,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_,hideColumnHeaders:n.hideColumnHeaders,isSelectableWithCheckbox:n.hideSelection!==!0})}),x.jsx(P.Divider,{})]})}function HRe(n,e,t,i,r){const{t:s}=ts(),o=T.useMemo(()=>{const d=[{header:s("Column Name"),cell:h=>h.header}];return t||d.push({header:s("Table View"),cell:(h,f)=>x.jsx(Eu,{value:h.table??"",onSelect:g=>{switch(g){case"":f({...h,table:void 0});break;case ku.Description:case ku.Expanded:case ku.Hidden:f({...h,table:g});break}},placeholder:s("Column"),options:[{value:"",label:s("Column"),description:s("Show the column in the table.")},{value:ku.Description,label:s("Description"),description:s("Show the column when the item is expanded as a full width description.")},{value:ku.Expanded,label:s("Expanded"),description:s("Show the column when the item is expandedas a detail.")},{value:ku.Hidden,label:s("Hidden"),description:s("Hide the column.")}]})}),i||d.push({header:s("List View"),cell:(h,f)=>x.jsx(Eu,{value:h.list??"",onSelect:g=>{switch(g){case"":f({...h,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":f({...h,list:g});break}},options:[{value:"name",label:s("Name"),description:s("Show the column as the name of the list item.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the list.")},{value:"description",label:s("Description"),description:s("Show the column as the list item description.")},{value:"",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"primary",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"secondary",label:s("Right side"),description:s("Show the column on the right side of the list.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the list.")}],placeholder:s("Left side")})}),r||d.push({header:s("Card View"),cell:(h,f)=>x.jsx(Eu,{value:h.card??"",onSelect:g=>{switch(g){case"":f({...h,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":f({...h,card:g});break}},placeholder:s("Detail"),options:[{value:"name",label:s("Name"),description:s("Show the column as the name on the card.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the card.")},{value:"description",label:s("Description"),description:s("Show the column as the card description.")},{value:"",label:s("Detail"),description:s("Show the column one of the details on the card.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the card.")}]})}),d},[r,i,t,s]),a=T.useCallback((d,h)=>{typeof h=="object"&&h!==null&&("table"in h&&typeof h.table=="string"?d.table=h.table:d.table=void 0,"list"in h&&typeof h.list=="string"?d.list=h.list:d.list=void 0,"card"in h&&typeof h.card=="string"?d.card=h.card:d.card=void 0)},[]),l=T.useCallback(d=>{const{table:h,list:f,card:g}=d;return{table:h,list:f,card:g}},[]),{openManageItems:c,managedItems:u}=VRe({id:n,title:s("Manage Columns"),description:s("Manage the order, placement, and format of columns."),items:e,keyFn:d=>d.id??d.header,columns:o,loadFn:a,saveFn:l,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}function jRe(n){const{setPage:e,setPerPage:t}=n,i=T.useCallback((o,a)=>e(a),[e]),r=T.useCallback((o,a)=>t(a),[t]),s=!ws("md");return x.jsx(P.Pagination,{variant:P.PaginationVariant.bottom,itemCount:n.itemCount,page:n.page,perPage:n.perPage,onSetPage:i,onPerPageSelect:r,style:{...n.style,boxShadow:"none",zIndex:400,paddingTop:s?4:6,paddingBottom:s?4:6,borderTop:n.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const Fht="";function zRe(n){const e=n.size??350,t=T.useRef(null),[i,r]=T.useState("1fr"),s=T.useCallback(a=>{let l=Math.min(n.maxColumns??12,Math.max(Math.floor(a/e),1));l<1&&(l=1),r(()=>new Array(l).fill("1fr").join(" "))},[n.maxColumns,e]);_g(t,a=>s(a.contentRect.width)),T.useLayoutEffect(()=>{var a;s(((a=t.current)==null?void 0:a.clientWidth)??0)},[s]);const o=16;return x.jsx("div",{ref:t,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:i,gap:o},children:n.children})}const URe=un.small`
|
318
318
|
opacity: 0.7;
|
319
319
|
`,qRe=un.div`
|
320
320
|
display: flex;
|
@@ -346,7 +346,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
346
346
|
display: flex;
|
347
347
|
gap: 6px;
|
348
348
|
align-items: baseline;
|
349
|
-
`;function e8e(n){const{item:e,itemToCardFn:t,isSelected:i,selectItem:r,unselectItem:s,itemActions:o,showSelect:a,defaultCardSubtitle:l}=n,c=T.useMemo(()=>t(e),[e,t]),u=!!(i!=null&&i(e)),d=T.useCallback(()=>{i!=null&&i(e)?s==null||s(e):r==null||r(e)},[i,e,r,s]),h=o!==void 0&&o.length>0,f=a||h;return x.jsxs(
|
349
|
+
`;function e8e(n){const{item:e,itemToCardFn:t,isSelected:i,selectItem:r,unselectItem:s,itemActions:o,showSelect:a,defaultCardSubtitle:l}=n,c=T.useMemo(()=>t(e),[e,t]),u=!!(i!=null&&i(e)),d=T.useCallback(()=>{i!=null&&i(e)?s==null||s(e):r==null||r(e)},[i,e,r,s]),h=o!==void 0&&o.length>0,f=a||h;return x.jsxs(P.Card,{id:c.id,isFlat:!0,isLarge:!0,isRounded:!0,isSelectable:u,isSelected:u,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[x.jsxs(P.CardHeader,{style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:[x.jsxs(qRe,{children:[x.jsxs(GRe,{children:[c.iconAboveTitle?null:c.icon&&x.jsx(w0,{size:"xl",children:c.icon}),x.jsxs(YRe,{children:[c.iconAboveTitle?x.jsx(KRe,{children:c.icon&&x.jsx(w0,{size:"xl",children:c.icon})}):null,x.jsx(P.CardTitle,{children:x.jsx(P.Truncate,{content:c.title})}),c.subtitle?x.jsx(P.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):l&&x.jsx(P.Text,{component:"small",style:{opacity:.7},children:l})]})]}),c.badge&&c.badgeTooltip&&x.jsx(P.FlexItem,{children:x.jsx("div",{onClick:g=>g.stopPropagation(),children:x.jsx(P.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,removeFindDomNode:!0,children:x.jsx(P.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&x.jsx(P.FlexItem,{children:x.jsx(P.Label,{color:c.badgeColor,children:c.badge})})]}),f&&x.jsxs(P.CardActions,{children:[o&&o.length&&x.jsx(ig,{actions:o,position:P.DropdownPosition.right,selectedItem:e,iconOnly:!0,collapse:"always"}),a&&x.jsx(P.Checkbox,{isChecked:i==null?void 0:i(e),onChange:d,id:"check-1"})]})]}),c.cardBody,c.labels&&x.jsx(P.CardFooter,{children:x.jsx(ZRe,{children:x.jsx(XRe,{children:c.labels&&x.jsx(P.LabelGroup,{numLabels:999,children:c.labels.map(g=>x.jsx(P.Label,{color:g.color,icon:g.icon,variant:g.variant,children:x.jsx(P.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})})})}),c.alertTitle&&x.jsx(P.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function t8e(n,e){const t=T.useMemo(()=>{let c,u,d;const h=[];let f;const g=[];for(const m of n)if(m.card!=="hidden")switch(m.type){case"description":d||(d=m);break;case"labels":f||(f=m);break;case"count":h.push(m);break;default:switch(m.card){case"name":c=m;break;case"subtitle":u=m;break;case"description":d=m;break;default:g.push(m);break}break}return{nameColumn:c,subtitleColumn:u,descriptionColumn:d,countColumns:h,cardColumns:g,labelColumn:f}},[n]),{nameColumn:i,subtitleColumn:r,descriptionColumn:s,countColumns:o,cardColumns:a,labelColumn:l}=t;return T.useMemo(()=>c=>{var f,g;let u=!!s;s!=null&&s.value&&!s.value(c)&&(u=!1);const d=a.filter(m=>!m.value||m.value(c)),h={id:e(c),icon:(f=i==null?void 0:i.icon)==null?void 0:f.call(i,c),title:x.jsx(Wr,{column:i,item:c}),subtitle:r&&(!r.value||r.value(c))&&x.jsx(Wr,{column:r,item:c}),cardBody:x.jsx(P.CardBody,{children:x.jsxs(P.DescriptionList,{isCompact:!0,children:[u&&s&&x.jsx(v_,{children:s.type==="description"?x.jsx("div",{children:s.value(c)}):x.jsx(Wr,{column:s,item:c})},s.id??s.header),d.map(m=>x.jsx(v_,{label:m.header,children:x.jsx(Wr,{column:m,item:c})},m.id??m.header)),o.length>0&&x.jsx(v_,{children:x.jsx(QRe,{children:o.map((m,p)=>x.jsxs(JRe,{children:[x.jsx(Wr,{column:m,item:c}),x.jsx(URe,{children:m.header})]},p))})},"count-columns")]})}),labels:l&&((g=l.value(c))==null?void 0:g.map(m=>({label:m})))};return!u&&d.length===0&&o.length===0&&(h.cardBody=void 0),h},[a,o,s,l,i,r,e])}function Cz(n){const{keyFn:e,pageItems:t,tableColumns:i,isSelected:r,selectItem:s,unselectItem:o,rowActions:a,showSelect:l,defaultSubtitle:c}=n,u=t8e(i,e),d=T.useMemo(()=>x.jsx(zRe,{size:400,children:t==null?void 0:t.map(h=>x.jsx(e8e,{item:h,itemToCardFn:u,isSelected:r,selectItem:s,unselectItem:o,itemActions:a,showSelect:l,defaultCardSubtitle:c},e(h)))}),[t,e,u,r,s,o,a,l,c]);return x.jsx(P.PageSection,{style:{flexGrow:1},children:d})}function n8e(n){const{keyFn:e,pageItems:t,tableColumns:i,isSelected:r,selectItem:s,unselectItem:o,rowActions:a,defaultSubtitle:l,showSelect:c}=n,u=i8e(i,e,r,s,o,a,l,c);return x.jsx(P.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:t==null?void 0:t.map(u)})}function i8e(n,e,t,i,r,s,o,a){const l=T.useMemo(()=>{let v,_,b;const y=[];let w;const k=[],L=[];for(const D of n)if(D.list!=="hidden")switch(D.type){case"description":b||(b=D);break;case"labels":w||(w=D);break;case"count":y.push(D);break;default:switch(D.list){case"name":v=D;break;case"subtitle":_=D;break;case"description":b=D;break;case"secondary":L.push(D);break;default:k.push(D);break}break}return{nameColumn:v,subtitleColumn:_,descriptionColumn:b,countColumns:y,primaryColumns:k,secondaryColumns:L,labelColumn:w}},[n]),c=T.useCallback(v=>{t!=null&&t(v)?r==null||r(v):i==null||i(v)},[t,i,r]),{nameColumn:u,subtitleColumn:d,descriptionColumn:h,countColumns:f,primaryColumns:g,secondaryColumns:m,labelColumn:p}=l;return T.useCallback(v=>{const _=e(v),b=t==null?void 0:t(v);return x.jsx(P.DataListItem,{"aria-labelledby":`data-list-${_}`,isExpanded:b,children:x.jsxs(P.DataListItemRow,{children:[a&&x.jsx(P.DataListCheck,{"aria-labelledby":`data-list-check-${_}`,name:`data-list-check-${_}`,isChecked:t==null?void 0:t(v),onClick:()=>c(v)}),x.jsx(P.DataListItemCells,{dataListCells:[x.jsx(P.DataListCell,{width:5,children:x.jsx(P.Flex,{children:x.jsxs(P.Stack,{hasGutter:!0,children:[x.jsxs(P.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&x.jsx(w0,{size:"xl",children:u==null?void 0:u.icon(v)}),x.jsxs(P.Stack,{children:[x.jsx(P.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},children:x.jsx("span",{id:`data-list-${_}`,children:x.jsx(Wr,{column:u,item:v})})}),d?x.jsx(P.Text,{component:"small",style:{opacity:.7},children:x.jsx(Wr,{column:d,item:v})}):o&&x.jsx(P.Text,{component:"small",style:{opacity:.7},children:o})]})]}),(h||g.length>0||f.length>0||p)&&x.jsxs(P.DescriptionList,{isCompact:!0,children:[h&&(!h.value||h.value(v))&&x.jsx(P.DescriptionListGroup,{children:x.jsx(P.DescriptionListDescription,{children:x.jsx(Wr,{column:h,item:v})})},h.header),g.map(y=>y.value&&!y.value(v)?x.jsx(x.Fragment,{}):x.jsxs(P.DescriptionListGroup,{children:[x.jsx(P.DescriptionListTerm,{style:{whiteSpace:"nowrap"},children:y.header}),x.jsx(P.DescriptionListDescription,{children:x.jsx(Wr,{column:y,item:v})})]},y.header)),f.length>0&&x.jsx(P.DescriptionListGroup,{children:x.jsx(P.DescriptionListDescription,{children:x.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:f.map((y,w)=>x.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[x.jsx(Wr,{column:y,item:v}),x.jsx("small",{style:{opacity:.7},children:y.header})]},w))})})},"counts"),p&&x.jsx(P.DescriptionListGroup,{children:x.jsx(P.DescriptionListDescription,{children:x.jsx(Wr,{column:p,item:v})})},p.header)]})]})})},"primary"),m.length>0?x.jsx(P.DataListCell,{children:x.jsx(P.DescriptionList,{isCompact:!0,children:m.map(y=>y.value&&!y.value(v)?x.jsx(x.Fragment,{}):x.jsxs(P.DescriptionListGroup,{children:[x.jsx(P.DescriptionListTerm,{style:{whiteSpace:"nowrap"},children:y.header}),x.jsx(P.DescriptionListDescription,{children:x.jsx(Wr,{column:y,item:v})})]},y.header))})},"secondary"):null]}),s&&x.jsx(P.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",isPlainButtonAction:!0,style:{whiteSpace:"nowrap"},children:x.jsx(ig,{actions:s,position:P.DropdownPosition.right,selectedItem:v,iconOnly:!0})})]})},_)},[e,t,a,u,d,o,g,h,f,p,m,s,c])}const r8e=un.div`
|
350
350
|
height: 100%;
|
351
351
|
`,s8e=un.div`
|
352
352
|
height: 100%;
|
@@ -357,7 +357,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
357
357
|
`,a8e=un.div`
|
358
358
|
padding-top: 5px;
|
359
359
|
padding-bottom: 5px;
|
360
|
-
`;function I_(n){const{id:e,toolbarActions:t,filterState:i,error:r,itemCount:s,disableBodyPadding:o,pagination:a}=n,{openColumnManagement:l,managedColumns:c}=HRe((e??"")+"-columns",n.tableColumns,n.disableTableView,n.disableListView,n.disableCardView),u=n.showSelect||(t==null?void 0:t.find(b=>"selection"in b&&b.selection===ei.Multiple))!==void 0,d=!n.disableTableView,h=!n.disableListView,[f,g]=T.useState(()=>{switch(n.id?localStorage.getItem(n.id+"-view"):void 0){case"table":return Gn.Table;case"list":return Gn.List;case"cards":return Gn.Cards}return n.defaultTableView??(d?Gn.Table:h?Gn.List:Gn.Cards)}),m=T.useCallback(b=>{g(b),n.id&&localStorage.setItem(n.id+"-view",b)},[n.id]),p=ws("md")&&o!==!0,v=TRe(n.tableColumns),_=!n.disablePagination&&a;return r?x.jsx(s8e,{children:x.jsx(ORe,{titleProp:n.errorStateTitle,message:r.message})}):s===0&&Object.keys(i??{}).length===0?x.jsx(R.PageSection,{style:{backgroundColor:"transparent"},children:x.jsx(MRe,{title:n.emptyStateTitle,description:n.emptyStateDescription,button:n.emptyStateButtonClick&&x.jsx(R.Button,{variant:"primary",onClick:n.emptyStateButtonClick,icon:n.emptyStateButtonIcon?n.emptyStateButtonIcon:null,children:n.emptyStateButtonText})||n.emptyStateActions&&x.jsx(R.Flex,{justifyContent:{default:"justifyContentCenter"},children:x.jsx(ig,{actions:n.emptyStateActions})}),variant:R.EmptyStateVariant.large})}):s===void 0?x.jsx(R.PageSection,{isFilled:!0,variant:"light",children:x.jsx(R.Bullseye,{children:x.jsx(R.Spinner,{})})}):x.jsxs(x.Fragment,{children:[x.jsx(bz,{...n,openColumnModal:n.id?l:void 0,showSelect:u,viewType:f,setViewType:m,bottomBorder:!0,sortOptions:v}),f===Gn.Table&&x.jsx(Ik,{disablePadding:o,children:x.jsx(l8e,{...n,...a,tableColumns:c})}),f===Gn.List&&x.jsx(py,{children:x.jsx(R.PageSection,{padding:{default:"noPadding",md:"padding"},children:x.jsx("div",{style:{borderLeft:p?"thin solid var(--pf-global--BorderColor--100)":void 0,borderRight:p?"thin solid var(--pf-global--BorderColor--100)":void 0},children:x.jsx(n8e,{...n,showSelect:u,tableColumns:c})})})}),f===Gn.Cards&&x.jsx(py,{children:x.jsx(Cz,{...n,showSelect:u,tableColumns:c})}),_&&(!n.autoHidePagination||a.perPage&&(n.itemCount??0)>a.perPage)&&x.jsx(jRe,{...n,...a,topBorder:!0})]})}function l8e(n){const{pageItems:e,selectItem:t,unselectItem:i,isSelected:r,isSelectMultiple:s,keyFn:o,rowActions:a,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:d,unselectAll:h}=n,f=tI(n.tableColumns),g=Fj(n.tableColumns),m=Bj(n.tableColumns),p=T.useMemo(()=>{const E=[];if(g.length)for(const O of g)"value"in O?E.push(I=>{var B;const M=(B=O.value)==null?void 0:B.call(O,I);if(M)return x.jsx("div",{children:M},O.id??O.header)}):E.push(I=>O.cell(I));return m.length&&E.push(O=>x.jsx(Wj,{item:O,columns:m,disablePadding:!0,numberOfColumns:"multiple"},o(O))),n.expandedRow&&E.push(n.expandedRow),E.length===0?void 0:E.length===1?E[0]:O=>x.jsx(R.Stack,{hasGutter:!0,style:{gap:12},children:E.map(I=>I(O))})},[g,m,o,n.expandedRow]),[v]=yi(),_=n.showSelect||(l==null?void 0:l.find(E=>"selection"in E&&E.selection===ei.Multiple))!==void 0,b=T.useRef(null),[y,w]=T.useState({left:0,right:0,top:0,bottom:0}),k=T.useCallback(E=>{E&&w({top:E.scrollTop,bottom:E.scrollHeight-E.clientHeight-E.scrollTop,left:E.scrollLeft,right:E.scrollWidth-E.clientWidth-E.scrollLeft})},[]),L=T.useCallback(E=>k(E.currentTarget),[k]);_g(b,()=>k(b.current)),T.useEffect(()=>k(b.current),[k]);const D=ag();return x.jsxs(r8e,{className:"pf-c-scroll-inner-wrapper",ref:b,onScroll:L,children:[x.jsxs(Ht.TableComposable,{"aria-label":"Simple table",variant:n.compact||D.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[c===void 0?x.jsx(Ht.Thead,{children:x.jsx(Ht.Tr,{children:x.jsx(Ht.Th,{children:x.jsx(R.Skeleton,{})})})}):x.jsx(c8e,{...n,showSelect:_,scrollLeft:y.left>0,scrollRight:y.right>1,tableColumns:f,onSelect:d,expandedRow:p}),x.jsx(Ht.Tbody,{children:c===void 0?new Array(10).fill(0).map((E,N)=>x.jsx(Ht.Tr,{children:x.jsx(Ht.Td,{children:x.jsx(o8e,{children:x.jsx(R.Skeleton,{height:"27px"})})})},N)):e===void 0?new Array(Math.min(10,c)).fill(0).map((E,N)=>x.jsxs(Ht.Tr,{children:[_&&x.jsx(Ht.Td,{}),x.jsx(Ht.Td,{colSpan:f.length,children:x.jsx(a8e,{children:x.jsx(R.Skeleton,{height:"27px"})})})]},N)):e==null?void 0:e.map((E,N)=>x.jsx(u8e,{columns:f,item:E,isItemSelected:r==null?void 0:r(E),isSelectMultiple:s,selectItem:t,unselectItem:i,rowActions:a,rowIndex:N,showSelect:_,scrollLeft:y.left>0,scrollRight:y.right>1,unselectAll:h,onSelect:d,expandedRow:p,isLastRow:N===e.length-1,disableLastRowBorder:n.disableLastRowBorder},o?o(E):N))})]}),c===0&&x.jsxs(R.EmptyState,{style:{paddingTop:48},children:[x.jsx(R.EmptyStateIcon,{icon:yt.SearchIcon}),x.jsx(R.Title,{headingLevel:"h2",size:"lg",children:v.noResultsFound}),x.jsx(R.EmptyStateBody,{children:v.noResultsMatchCriteria}),u&&x.jsx(R.EmptyStateSecondaryActions,{children:x.jsx(R.Button,{variant:"primary",onClick:u,children:v.clearAllFilters})})]})]})}function c8e(n){const{tableColumns:e,rowActions:t,sort:i,setSort:r,sortDirection:s,setSortDirection:o,showSelect:a,onSelect:l,expandedRow:c}=n,u=T.useCallback((d,h)=>{if(h.sort)return{onSort:(f,g,m)=>{h.sort&&(r==null||r(h.sort),o==null||o(m))},sortBy:{index:h.sort===i?d:void 0,direction:h.sort===i?s:void 0,defaultDirection:h.defaultSortDirection},columnIndex:d}},[r,o,i,s]);return x.jsx(Ht.Thead,{children:x.jsxs(Ht.Tr,{className:"light dark-2",children:[c&&x.jsx(Ht.Th,{style:{padding:0,backgroundColor:"inherit"}}),(a||l)&&x.jsx(Ht.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft,style:{backgroundColor:"inherit"},children:" "}),e.map((d,h)=>x.jsx(Ht.Th,{sort:u(h,d),modifier:"nowrap",style:{minWidth:d.minWidth===0?"1%":d.minWidth!==void 0?d.minWidth:void 0,maxWidth:d.maxWidth!==void 0?d.maxWidth:void 0,backgroundColor:"inherit"},children:d.header},d.header)),t!==void 0&&x.jsx(Ht.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,backgroundColor:"inherit",zIndex:302},className:n.scrollRight?"pf-m-border-left":void 0,children:" "})]})})}function u8e(n){const{columns:e,unselectAll:t,selectItem:i,unselectItem:r,isItemSelected:s,isSelectMultiple:o,item:a,rowActions:l,rowIndex:c,showSelect:u,onSelect:d,expandedRow:h,disableLastRowBorder:f}=n,[g,m]=T.useState(!1),p=ag(),v=h==null?void 0:h(a);return x.jsxs(x.Fragment,{children:[x.jsxs(Ht.Tr,{isRowSelected:g,style:{boxShadow:"unset",borderBottom:g||n.isLastRow&&f?"unset":void 0},children:[h&&x.jsx(Ht.Td,{expand:v?{rowIndex:c,isExpanded:g,onToggle:()=>m(_=>!_)}:void 0,style:{paddingLeft:v?8:4}}),u&&x.jsx(Ht.Th,{select:s!==void 0?{onSelect:(_,b)=>{b?i==null||i(a):r==null||r(a)},isSelected:s}:void 0,isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),d&&x.jsx(Ht.Td,{select:{rowIndex:c,onSelect:()=>{o||t==null||t(),i==null||i(a),d==null||d(a)},isSelected:s??!1,variant:o?"checkbox":"radio"},isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),x.jsx(d8e,{columns:e,item:a,rowActions:l,scrollLeft:n.scrollLeft,scrollRight:n.scrollRight})]}),h&&g&&v&&x.jsxs(Ht.Tr,{isExpanded:g,style:{boxShadow:"unset"},children:[x.jsx(Ht.Td,{}),u&&x.jsx(Ht.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),d&&x.jsx(Ht.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),x.jsx(Ht.Td,{colSpan:e.length,style:{paddingBottom:p.tableLayout==="compact"?12:24,paddingTop:0},children:x.jsx(Ht.CollapseColumn,{children:v})}),l!==void 0&&l.length>0&&x.jsx(Ht.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:n.scrollRight?"pf-m-border-left":void 0,children:" "})]})]})}function d8e(n){const{columns:e,item:t,rowActions:i}=n,[r,s]=T.useState(!1);return x.jsxs(T.Fragment,{children:[e.map(o=>x.jsx(Ht.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},children:x.jsx(Wr,{item:t,column:o})},o.header)),i!==void 0&&i.length>0&&x.jsx(Ht.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:r?400:void 0},className:n.scrollRight?"pf-m-border-left":void 0,children:x.jsx(ig,{actions:i,selectedItem:t,position:R.DropdownPosition.right,iconOnly:!0,onOpen:s})})]})}function h8e(n){const{title:e,items:t,keyFn:i,actionColumns:r,actionFn:s,onComplete:o,onClose:a,processingText:l,isDanger:c}=n,[u]=yi(),[d,h]=T.useState(!0),[f,g]=T.useState(!1),[m,p]=T.useState(0),[v,_]=T.useState(""),[b,y]=T.useState(),[w]=T.useState(()=>new AbortController),[k,L]=qa(),D=T.useCallback(()=>{g(!0),w.abort(),h(!1),y(I=>{const M={...I};for(const B of t){const V=i(B);M[V]===void 0&&(M[V]="Cancelled")}return M})},[w,t,i]),E=T.useCallback(()=>{L(void 0),a==null||a()},[a,L]);T.useEffect(()=>{async function I(){const M=a7e(5);let B=0;const V=[];await Promise.all(t.map(ee=>M(async()=>{if(w.signal.aborted)return;const re=i(ee);try{await s(ee,w.signal),w.signal.aborted||y(se=>({...se??{},[re]:null})),V.push(ee)}catch(se){if(!w.signal.aborted){if(se instanceof Error){const ie=se.message;y(J=>({...J??{},[re]:ie}))}else y(ie=>({...ie??{},[re]:"Unknown error"}));_(u.errorText)}}finally{w.signal.aborted||p(++B)}}))),w.signal.aborted||h(!1),o==null||o(V)}I()},[w,s,t,i,o,u.errorText]);const N=T_(t),O=nI(r);return x.jsxs(R.Modal,{titleIconVariant:c?"warning":void 0,title:e,"aria-label":e,variant:R.ModalVariant.medium,isOpen:!0,onClose:()=>{D(),E()},actions:d?[x.jsx(R.Button,{variant:"link",onClick:D,children:u.cancelText},"cancel")]:[x.jsx(R.Button,{variant:"secondary",onClick:E,children:u.closeText},"close")],hasNoBodyWrapper:!0,children:[x.jsx(R.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:x.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-global--BorderColor--100)"},children:x.jsx(I_,{pageItems:[...N.paged],itemCount:t.length,tableColumns:[...O,{header:"Status",cell:I=>{const M=i(I),B=b==null?void 0:b[M];return B===void 0?x.jsxs("span",{style:{color:Qk},children:[x.jsx(yt.PendingIcon,{})," ",u.pendingText]}):B===null?x.jsxs("span",{style:{color:Zk},children:[x.jsx(yt.CheckCircleIcon,{})," ",u.successText]}):x.jsxs("span",{style:{color:Xk},children:[x.jsx(yt.ExclamationCircleIcon,{})," ",b==null?void 0:b[M]]})}}],keyFn:i,pagination:N,compact:!0,errorStateTitle:"",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0},"status")})}),x.jsx(R.ModalBoxBody,{style:{paddingTop:0},children:x.jsx(R.Progress,{value:m/t.length*100,title:w.signal.aborted?u.canceledText:v?u.errorText:d?l??u.processingText:u.successText,size:R.ProgressSize.lg,variant:v||f?R.ProgressVariant.danger:m===t.length?R.ProgressVariant.success:void 0})})]})}function wz(){const[n,e]=qa(),[t,i]=T.useState();return T.useEffect(()=>{if(t){const r=()=>{var s;i(void 0),(s=t.onClose)==null||s.call(t)};e(x.jsx(h8e,{...t,onClose:r}))}else e(void 0)},[t,e]),i}function Sz(n,e){if(n==null&&e==null)return 0;if(n==null)return 1;if(e==null)return-1;if(typeof n=="string"){if(typeof e=="string")return A_(n,e);if(typeof e=="number")return A_(n,e.toString())}else if(typeof n=="number"){if(typeof e=="number")return xz(n,e);if(typeof e=="string")return A_(n.toString(),e)}return 0}function A_(n,e){return n==null&&e==null?0:n==null?1:e==null||n<e?-1:n>e?1:0}function xz(n,e){return n==null&&e==null?0:n==null?1:e==null||n<e?-1:n>e?1:0}const f8e=un.div`
|
360
|
+
`;function I_(n){const{id:e,toolbarActions:t,filterState:i,error:r,itemCount:s,disableBodyPadding:o,pagination:a}=n,{openColumnManagement:l,managedColumns:c}=HRe((e??"")+"-columns",n.tableColumns,n.disableTableView,n.disableListView,n.disableCardView),u=n.showSelect||(t==null?void 0:t.find(b=>"selection"in b&&b.selection===ei.Multiple))!==void 0,d=!n.disableTableView,h=!n.disableListView,[f,g]=T.useState(()=>{switch(n.id?localStorage.getItem(n.id+"-view"):void 0){case"table":return Gn.Table;case"list":return Gn.List;case"cards":return Gn.Cards}return n.defaultTableView??(d?Gn.Table:h?Gn.List:Gn.Cards)}),m=T.useCallback(b=>{g(b),n.id&&localStorage.setItem(n.id+"-view",b)},[n.id]),p=ws("md")&&o!==!0,v=TRe(n.tableColumns),_=!n.disablePagination&&a;return r?x.jsx(s8e,{children:x.jsx(ORe,{titleProp:n.errorStateTitle,message:r.message})}):s===0&&Object.keys(i??{}).length===0?x.jsx(P.PageSection,{style:{backgroundColor:"transparent"},children:x.jsx(MRe,{title:n.emptyStateTitle,description:n.emptyStateDescription,button:n.emptyStateButtonClick&&x.jsx(P.Button,{variant:"primary",onClick:n.emptyStateButtonClick,icon:n.emptyStateButtonIcon?n.emptyStateButtonIcon:null,children:n.emptyStateButtonText})||n.emptyStateActions&&x.jsx(P.Flex,{justifyContent:{default:"justifyContentCenter"},children:x.jsx(ig,{actions:n.emptyStateActions})}),variant:P.EmptyStateVariant.large})}):s===void 0?x.jsx(P.PageSection,{isFilled:!0,variant:"light",children:x.jsx(P.Bullseye,{children:x.jsx(P.Spinner,{})})}):x.jsxs(x.Fragment,{children:[x.jsx(bz,{...n,openColumnModal:n.id?l:void 0,showSelect:u,viewType:f,setViewType:m,bottomBorder:!0,sortOptions:v}),f===Gn.Table&&x.jsx(Ik,{disablePadding:o,children:x.jsx(l8e,{...n,...a,tableColumns:c})}),f===Gn.List&&x.jsx(py,{children:x.jsx(P.PageSection,{padding:{default:"noPadding",md:"padding"},children:x.jsx("div",{style:{borderLeft:p?"thin solid var(--pf-global--BorderColor--100)":void 0,borderRight:p?"thin solid var(--pf-global--BorderColor--100)":void 0},children:x.jsx(n8e,{...n,showSelect:u,tableColumns:c})})})}),f===Gn.Cards&&x.jsx(py,{children:x.jsx(Cz,{...n,showSelect:u,tableColumns:c})}),_&&(!n.autoHidePagination||a.perPage&&(n.itemCount??0)>a.perPage)&&x.jsx(jRe,{...n,...a,topBorder:!0})]})}function l8e(n){const{pageItems:e,selectItem:t,unselectItem:i,isSelected:r,isSelectMultiple:s,keyFn:o,rowActions:a,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:d,unselectAll:h}=n,f=tI(n.tableColumns),g=Fj(n.tableColumns),m=Bj(n.tableColumns),p=T.useMemo(()=>{const E=[];if(g.length)for(const O of g)"value"in O?E.push(I=>{var B;const M=(B=O.value)==null?void 0:B.call(O,I);if(M)return x.jsx("div",{children:M},O.id??O.header)}):E.push(I=>O.cell(I));return m.length&&E.push(O=>x.jsx(Wj,{item:O,columns:m,disablePadding:!0,numberOfColumns:"multiple"},o(O))),n.expandedRow&&E.push(n.expandedRow),E.length===0?void 0:E.length===1?E[0]:O=>x.jsx(P.Stack,{hasGutter:!0,style:{gap:12},children:E.map(I=>I(O))})},[g,m,o,n.expandedRow]),[v]=yi(),_=n.showSelect||(l==null?void 0:l.find(E=>"selection"in E&&E.selection===ei.Multiple))!==void 0,b=T.useRef(null),[y,w]=T.useState({left:0,right:0,top:0,bottom:0}),k=T.useCallback(E=>{E&&w({top:E.scrollTop,bottom:E.scrollHeight-E.clientHeight-E.scrollTop,left:E.scrollLeft,right:E.scrollWidth-E.clientWidth-E.scrollLeft})},[]),L=T.useCallback(E=>k(E.currentTarget),[k]);_g(b,()=>k(b.current)),T.useEffect(()=>k(b.current),[k]);const D=ag();return x.jsxs(r8e,{className:"pf-c-scroll-inner-wrapper",ref:b,onScroll:L,children:[x.jsxs(Ht.TableComposable,{"aria-label":"Simple table",variant:n.compact||D.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[c===void 0?x.jsx(Ht.Thead,{children:x.jsx(Ht.Tr,{children:x.jsx(Ht.Th,{children:x.jsx(P.Skeleton,{})})})}):x.jsx(c8e,{...n,showSelect:_,scrollLeft:y.left>0,scrollRight:y.right>1,tableColumns:f,onSelect:d,expandedRow:p}),x.jsx(Ht.Tbody,{children:c===void 0?new Array(10).fill(0).map((E,N)=>x.jsx(Ht.Tr,{children:x.jsx(Ht.Td,{children:x.jsx(o8e,{children:x.jsx(P.Skeleton,{height:"27px"})})})},N)):e===void 0?new Array(Math.min(10,c)).fill(0).map((E,N)=>x.jsxs(Ht.Tr,{children:[_&&x.jsx(Ht.Td,{}),x.jsx(Ht.Td,{colSpan:f.length,children:x.jsx(a8e,{children:x.jsx(P.Skeleton,{height:"27px"})})})]},N)):e==null?void 0:e.map((E,N)=>x.jsx(u8e,{columns:f,item:E,isItemSelected:r==null?void 0:r(E),isSelectMultiple:s,selectItem:t,unselectItem:i,rowActions:a,rowIndex:N,showSelect:_,scrollLeft:y.left>0,scrollRight:y.right>1,unselectAll:h,onSelect:d,expandedRow:p,isLastRow:N===e.length-1,disableLastRowBorder:n.disableLastRowBorder},o?o(E):N))})]}),c===0&&x.jsxs(P.EmptyState,{style:{paddingTop:48},children:[x.jsx(P.EmptyStateIcon,{icon:yt.SearchIcon}),x.jsx(P.Title,{headingLevel:"h2",size:"lg",children:v.noResultsFound}),x.jsx(P.EmptyStateBody,{children:v.noResultsMatchCriteria}),u&&x.jsx(P.EmptyStateSecondaryActions,{children:x.jsx(P.Button,{variant:"primary",onClick:u,children:v.clearAllFilters})})]})]})}function c8e(n){const{tableColumns:e,rowActions:t,sort:i,setSort:r,sortDirection:s,setSortDirection:o,showSelect:a,onSelect:l,expandedRow:c}=n,u=T.useCallback((d,h)=>{if(h.sort)return{onSort:(f,g,m)=>{h.sort&&(r==null||r(h.sort),o==null||o(m))},sortBy:{index:h.sort===i?d:void 0,direction:h.sort===i?s:void 0,defaultDirection:h.defaultSortDirection},columnIndex:d}},[r,o,i,s]);return x.jsx(Ht.Thead,{children:x.jsxs(Ht.Tr,{className:"light dark-2",children:[c&&x.jsx(Ht.Th,{style:{padding:0,backgroundColor:"inherit"}}),(a||l)&&x.jsx(Ht.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft,style:{backgroundColor:"inherit"},children:" "}),e.map((d,h)=>x.jsx(Ht.Th,{sort:u(h,d),modifier:"nowrap",style:{minWidth:d.minWidth===0?"1%":d.minWidth!==void 0?d.minWidth:void 0,maxWidth:d.maxWidth!==void 0?d.maxWidth:void 0,backgroundColor:"inherit"},children:d.header},d.header)),t!==void 0&&x.jsx(Ht.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,backgroundColor:"inherit",zIndex:302},className:n.scrollRight?"pf-m-border-left":void 0,children:" "})]})})}function u8e(n){const{columns:e,unselectAll:t,selectItem:i,unselectItem:r,isItemSelected:s,isSelectMultiple:o,item:a,rowActions:l,rowIndex:c,showSelect:u,onSelect:d,expandedRow:h,disableLastRowBorder:f}=n,[g,m]=T.useState(!1),p=ag(),v=h==null?void 0:h(a);return x.jsxs(x.Fragment,{children:[x.jsxs(Ht.Tr,{isRowSelected:g,style:{boxShadow:"unset",borderBottom:g||n.isLastRow&&f?"unset":void 0},children:[h&&x.jsx(Ht.Td,{expand:v?{rowIndex:c,isExpanded:g,onToggle:()=>m(_=>!_)}:void 0,style:{paddingLeft:v?8:4}}),u&&x.jsx(Ht.Th,{select:s!==void 0?{onSelect:(_,b)=>{b?i==null||i(a):r==null||r(a)},isSelected:s}:void 0,isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),d&&x.jsx(Ht.Td,{select:{rowIndex:c,onSelect:()=>{o||t==null||t(),i==null||i(a),d==null||d(a)},isSelected:s??!1,variant:o?"checkbox":"radio"},isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),x.jsx(d8e,{columns:e,item:a,rowActions:l,scrollLeft:n.scrollLeft,scrollRight:n.scrollRight})]}),h&&g&&v&&x.jsxs(Ht.Tr,{isExpanded:g,style:{boxShadow:"unset"},children:[x.jsx(Ht.Td,{}),u&&x.jsx(Ht.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),d&&x.jsx(Ht.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:n.scrollLeft}),x.jsx(Ht.Td,{colSpan:e.length,style:{paddingBottom:p.tableLayout==="compact"?12:24,paddingTop:0},children:x.jsx(Ht.CollapseColumn,{children:v})}),l!==void 0&&l.length>0&&x.jsx(Ht.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:n.scrollRight?"pf-m-border-left":void 0,children:" "})]})]})}function d8e(n){const{columns:e,item:t,rowActions:i}=n,[r,s]=T.useState(!1);return x.jsxs(T.Fragment,{children:[e.map(o=>x.jsx(Ht.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},children:x.jsx(Wr,{item:t,column:o})},o.header)),i!==void 0&&i.length>0&&x.jsx(Ht.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:r?400:void 0},className:n.scrollRight?"pf-m-border-left":void 0,children:x.jsx(ig,{actions:i,selectedItem:t,position:P.DropdownPosition.right,iconOnly:!0,onOpen:s})})]})}function h8e(n){const{title:e,items:t,keyFn:i,actionColumns:r,actionFn:s,onComplete:o,onClose:a,processingText:l,isDanger:c}=n,[u]=yi(),[d,h]=T.useState(!0),[f,g]=T.useState(!1),[m,p]=T.useState(0),[v,_]=T.useState(""),[b,y]=T.useState(),[w]=T.useState(()=>new AbortController),[k,L]=qa(),D=T.useCallback(()=>{g(!0),w.abort(),h(!1),y(I=>{const M={...I};for(const B of t){const V=i(B);M[V]===void 0&&(M[V]="Cancelled")}return M})},[w,t,i]),E=T.useCallback(()=>{L(void 0),a==null||a()},[a,L]);T.useEffect(()=>{async function I(){const M=a7e(5);let B=0;const V=[];await Promise.all(t.map(ee=>M(async()=>{if(w.signal.aborted)return;const re=i(ee);try{await s(ee,w.signal),w.signal.aborted||y(se=>({...se??{},[re]:null})),V.push(ee)}catch(se){if(!w.signal.aborted){if(se instanceof Error){const ie=se.message;y(J=>({...J??{},[re]:ie}))}else y(ie=>({...ie??{},[re]:"Unknown error"}));_(u.errorText)}}finally{w.signal.aborted||p(++B)}}))),w.signal.aborted||h(!1),o==null||o(V)}I()},[w,s,t,i,o,u.errorText]);const N=T_(t),O=nI(r);return x.jsxs(P.Modal,{titleIconVariant:c?"warning":void 0,title:e,"aria-label":e,variant:P.ModalVariant.medium,isOpen:!0,onClose:()=>{D(),E()},actions:d?[x.jsx(P.Button,{variant:"link",onClick:D,children:u.cancelText},"cancel")]:[x.jsx(P.Button,{variant:"secondary",onClick:E,children:u.closeText},"close")],hasNoBodyWrapper:!0,children:[x.jsx(P.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:x.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-global--BorderColor--100)"},children:x.jsx(I_,{pageItems:[...N.paged],itemCount:t.length,tableColumns:[...O,{header:"Status",cell:I=>{const M=i(I),B=b==null?void 0:b[M];return B===void 0?x.jsxs("span",{style:{color:Qk},children:[x.jsx(yt.PendingIcon,{})," ",u.pendingText]}):B===null?x.jsxs("span",{style:{color:Zk},children:[x.jsx(yt.CheckCircleIcon,{})," ",u.successText]}):x.jsxs("span",{style:{color:Xk},children:[x.jsx(yt.ExclamationCircleIcon,{})," ",b==null?void 0:b[M]]})}}],keyFn:i,pagination:N,compact:!0,errorStateTitle:"",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0},"status")})}),x.jsx(P.ModalBoxBody,{style:{paddingTop:0},children:x.jsx(P.Progress,{value:m/t.length*100,title:w.signal.aborted?u.canceledText:v?u.errorText:d?l??u.processingText:u.successText,size:P.ProgressSize.lg,variant:v||f?P.ProgressVariant.danger:m===t.length?P.ProgressVariant.success:void 0})})]})}function wz(){const[n,e]=qa(),[t,i]=T.useState();return T.useEffect(()=>{if(t){const r=()=>{var s;i(void 0),(s=t.onClose)==null||s.call(t)};e(x.jsx(h8e,{...t,onClose:r}))}else e(void 0)},[t,e]),i}function Sz(n,e){if(n==null&&e==null)return 0;if(n==null)return 1;if(e==null)return-1;if(typeof n=="string"){if(typeof e=="string")return A_(n,e);if(typeof e=="number")return A_(n,e.toString())}else if(typeof n=="number"){if(typeof e=="number")return xz(n,e);if(typeof e=="string")return A_(n.toString(),e)}return 0}function A_(n,e){return n==null&&e==null?0:n==null?1:e==null||n<e?-1:n>e?1:0}function xz(n,e){return n==null&&e==null?0:n==null?1:e==null||n<e?-1:n>e?1:0}const f8e=un.div`
|
361
361
|
display: flex;
|
362
362
|
flex-direction: column;
|
363
363
|
max-height: 560px;
|
@@ -368,7 +368,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
368
368
|
height: 64px;
|
369
369
|
display: flex;
|
370
370
|
align-items: center;
|
371
|
-
`;function m8e(n){const{title:e,items:t,keyFn:i,prompt:r,alertPrompts:s,confirmationColumns:o,isItemNonActionable:a,onConfirm:l,onClose:c,confirmText:u,actionButtonText:d,isDanger:h}=n,[f,g]=qa(),[m]=yi(),p=T.useCallback(()=>{g(void 0),c==null||c()},[c,g]),v=T.useMemo(()=>a&&t.some(a)?t.sort((D,E)=>A_(a(D),a(E))):t,[t,a]),_=T_(v),[b,y]=T.useState(!u),w=T.useMemo(()=>a&&t.some(a)?[{header:"",cell:D=>a(D)?x.jsx(R.Tooltip,{content:a(D),trigger:a(D)?void 0:"manual",children:x.jsx(R.Icon,{status:"warning",children:x.jsx(yt.ExclamationTriangleIcon,{})})}):null},...o]:o,[o,a,t]),k=T.useMemo(()=>a?t.filter(D=>!a(D)):t,[a,t]),L=nI(w);return x.jsx(R.Modal,{titleIconVariant:h?"warning":void 0,title:e,"aria-label":e,description:r,variant:R.ModalVariant.medium,isOpen:!0,onClose:p,actions:[x.jsx(R.Button,{variant:h?"danger":"primary",onClick:()=>{p(),l()},isAriaDisabled:!b,children:d},"submit"),x.jsx(R.Button,{variant:"link",onClick:c,children:m.cancelText},"cancel")],hasNoBodyWrapper:!0,children:t.length>0&&x.jsxs(R.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[x.jsxs(f8e,{children:[s&&s.length>0&&s.map((D,E)=>x.jsx(R.Alert,{isInline:!0,title:D,variant:"warning"},E)),x.jsx(I_,{pageItems:_.paged,itemCount:t.length,tableColumns:L,keyFn:i,pagination:_,compact:!0,errorStateTitle:"Error",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0},"items")]}),u&&k.length>0&&x.jsx(g8e,{children:x.jsx(R.Checkbox,{id:"confirm",label:u,isChecked:b,onChange:y})})]})})}function p8e(){const[n,e]=qa(),[t,i]=T.useState();return T.useEffect(()=>{if(t){const r=()=>{var s;i(void 0),(s=t.onClose)==null||s.call(t)};e(x.jsx(m8e,{...t,onClose:r}))}else e(void 0)},[t,e]),i}function _8e(){const n=p8e(),e=wz();return T.useCallback(t=>{const i=Object.assign({},t);return t.isItemNonActionable&&t.isItemNonActionable!==void 0&&(i.items=t.items.filter(r=>t.isItemNonActionable!==void 0&&!t.isItemNonActionable(r))),n({...t,onConfirm:()=>e(i)})},[e,n])}function v8e(n){const{title:e,view:t,tableColumns:i,toolbarFilters:r,confirmText:s,cancelText:o,onSelect:a}=n,[l,c]=qa(),u=T.useCallback(()=>c(void 0),[c]),[d]=yi();return x.jsx(R.Modal,{title:e,"aria-label":e,isOpen:!0,onClose:u,variant:R.ModalVariant.medium,tabIndex:0,actions:[x.jsx(R.Button,{variant:"primary",id:"confirm",onClick:()=>{u(),a(t.selectedItems)},isAriaDisabled:t.selectedItems.length===0,children:s??d.confirmText},"confirm"),x.jsx(R.Button,{variant:"link",onClick:u,children:o??d.cancelText},"cancel")],hasNoBodyWrapper:!0,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:x.jsx(I_,{tableColumns:i,toolbarFilters:r,...t,emptyStateTitle:n.emptyStateTitle??d.noItemsFound,errorStateTitle:n.errorStateTitle??d.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})}const Bht="";function LI(n){let e="collapsed";return n.open&&(e+=" expanded"),x.jsx("div",{className:e,children:n.children})}function b8e(n){const{view:e,tableColumns:t,toolbarFilters:i,confirm:r,cancel:s,selected:o,isMultiple:a}=n,[l,c]=T.useState(""),[u,d]=T.useState(),h=T.useCallback((m,p)=>{c(p??""),d(()=>m)},[]),[f,g]=qa();return T.useEffect(()=>{u!==void 0?g(x.jsx(Lz,{title:l,open:!0,isMultiple:a,setOpen:()=>d(void 0),onSelect:u,view:e,tableColumns:t,toolbarFilters:i,confirm:r,cancel:s,selected:o,keyFn:e.keyFn})):(g(void 0),e.unselectAll())},[s,r,u,o,g,t,l,i,e,a]),h}function Lz(n){const{title:e,open:t,isMultiple:i=!1,setOpen:r,onSelect:s,view:o,tableColumns:a,toolbarFilters:l,confirm:c,cancel:u,selected:d}=n,h=()=>r(!1),{t:f}=ts();return x.jsxs(R.Modal,{title:e,"aria-label":e,isOpen:t,onClose:h,variant:R.ModalVariant.medium,tabIndex:0,actions:[x.jsx(R.Button,{variant:"primary",onClick:()=>{!i&&o.selectedItems.length>0?s(o.selectedItems[0]):i&&s(o.selectedItems),h()},isAriaDisabled:o.selectedItems.length===0,children:c},"confirm"),x.jsx(R.Button,{variant:"link",onClick:h,children:u},"cancel")],hasNoBodyWrapper:!0,children:[x.jsx(R.ModalBoxBody,{style:{overflow:"hidden"},children:x.jsxs(R.Split,{hasGutter:!0,children:[x.jsx(R.SplitItem,{style:{fontWeight:"bold"},children:d}),o.selectedItems.length>0?x.jsx(R.ChipGroup,{children:o.selectedItems.map((g,m)=>a&&a.length>0?x.jsx(R.Chip,{onClick:()=>o.unselectItem(g),children:x.jsx(Wr,{item:g,column:a.find(p=>p.card==="name"||p.list==="name")??a[0]})},m):x.jsx(x.Fragment,{}))}):x.jsx(R.SplitItem,{style:{fontStyle:"italic"},children:f`None - Please make a selection below.`})]})}),x.jsx(LI,{open:o.itemCount===void 0,children:x.jsx(R.Skeleton,{height:"80px"})}),x.jsx(LI,{open:o.itemCount!==void 0,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:x.jsx(I_,{tableColumns:a,toolbarFilters:l,emptyStateTitle:"No organizations found",errorStateTitle:"Error loading organizations",...o,isSelectMultiple:i,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function y8e(n){const{onSelect:e,value:t}=n,i=T.useCallback((l,c)=>{var u;e(l,(u=n.options.find(d=>d.label===c.toString()))==null?void 0:u.value)},[e,n.options]),{options:r}=n;r.sort((l,c)=>(l.group??"")<(c.group??"")?-1:(l.group??"")>(c.group??"")?1:l.label<c.label?-1:l.label>c.label?1:0);const s=r.reduce((l,c)=>{const u=c.group??"";let d=l[u];return d||(d=[],l[u]=d),d.push(c),l},{}),o=Object.keys(s).length>1||Object.keys(s).length===1&&Object.keys(s)[0]!=="",a=n.options.find(l=>l.value===t);return x.jsx(sg,{...n,value:a==null?void 0:a.label,onSelect:i,isGrouped:o,children:o?Object.keys(s).map(l=>x.jsx(R.SelectGroup,{label:l,children:s[l].map(c=>x.jsx(R.SelectOption,{value:c.label,label:c.label,description:c.description,children:c.label},c.label))},l)):r.map(l=>x.jsx(R.SelectOption,{value:l.label,label:l.label,description:l.description,children:l.label},l.label))})}function kz(n){const[e,t]=T.useState(!1),{helperTextInvalid:i,...r}=n;return x.jsx(z1,{...n,children:x.jsxs(R.InputGroup,{children:[x.jsx(R.TextArea,{...r,id:n.id,label:void 0,"aria-describedby":n.id?`${n.id}-form-group`:void 0,validated:n.helperTextInvalid?"error":void 0}),n.type==="password"&&x.jsx(R.Button,{variant:"control",onClick:()=>t(!e),isDisabled:n.isDisabled||n.isReadOnly,children:e?x.jsx(yt.EyeIcon,{}):x.jsx(yt.EyeSlashIcon,{})})]})})}function C8e(n){const[e,t]=T.useState(!1),{children:i,isReadOnly:r,placeholder:s,...o}=n,a=n.id?n.id:typeof n.label=="string"?n.label.toLowerCase().split(" ").join("-"):void 0;return x.jsx(z1,{...o,id:a,children:x.jsxs(R.InputGroup,{children:[x.jsx(R.TextInput,{autoComplete:n.autoComplete,placeholder:s,onChange:n.onChange,id:a,onBlur:n.onBlur,label:void 0,value:n.value,"aria-describedby":a?`${a}-form-group`:void 0,validated:n.helperTextInvalid?"error":void 0,type:n.type==="password"?e?"text":"password":n.type,readOnlyVariant:r?"default":void 0,isDisabled:n.isDisabled,min:n.min}),n.type==="password"&&x.jsx(R.Button,{variant:"control",onClick:()=>t(!e),isDisabled:n.isDisabled||n.isReadOnly,children:e?x.jsx(yt.EyeIcon,{}):x.jsx(yt.EyeSlashIcon,{})}),n.children]})})}var O_=n=>n.type==="checkbox",Xg=n=>n instanceof Date,ns=n=>n==null;const Dz=n=>typeof n=="object";var Zi=n=>!ns(n)&&!Array.isArray(n)&&Dz(n)&&!Xg(n),Ez=n=>Zi(n)&&n.target?O_(n.target)?n.target.checked:n.target.value:n,w8e=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,Tz=(n,e)=>n.has(w8e(e)),S8e=n=>{const e=n.constructor&&n.constructor.prototype;return Zi(e)&&e.hasOwnProperty("isPrototypeOf")},kI=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function al(n){let e;const t=Array.isArray(n);if(n instanceof Date)e=new Date(n);else if(n instanceof Set)e=new Set(n);else if(!(kI&&(n instanceof Blob||n instanceof FileList))&&(t||Zi(n)))if(e=t?[]:{},!t&&!S8e(n))e=n;else for(const i in n)n.hasOwnProperty(i)&&(e[i]=al(n[i]));else return n;return e}var N_=n=>Array.isArray(n)?n.filter(Boolean):[],wi=n=>n===void 0,Qe=(n,e,t)=>{if(!e||!Zi(n))return t;const i=N_(e.split(/[,[\].]+?/)).reduce((r,s)=>ns(r)?r:r[s],n);return wi(i)||i===n?wi(n[e])?t:n[e]:i};const zw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},va={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},vc={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Iz=T.createContext(null),bc=()=>T.useContext(Iz),x8e=n=>{const{children:e,...t}=n;return T.createElement(Iz.Provider,{value:t},e)};var Az=(n,e,t,i=!0)=>{const r={defaultValues:e._defaultValues};for(const s in n)Object.defineProperty(r,s,{get:()=>{const o=s;return e._proxyFormState[o]!==va.all&&(e._proxyFormState[o]=!i||va.all),t&&(t[o]=!0),n[o]}});return r},Po=n=>Zi(n)&&!Object.keys(n).length,Oz=(n,e,t,i)=>{t(n);const{name:r,...s}=n;return Po(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(o=>e[o]===(!i||va.all))},Uw=n=>Array.isArray(n)?n:[n],Nz=(n,e,t)=>t&&e?n===e:!n||!e||n===e||Uw(n).some(i=>i&&(i.startsWith(e)||e.startsWith(i)));function DI(n){const e=T.useRef(n);e.current=n,T.useEffect(()=>{const t=!n.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{t&&t.unsubscribe()}},[n.disabled])}function Mz(n){const e=bc(),{control:t=e.control,disabled:i,name:r,exact:s}=n||{},[o,a]=T.useState(t._formState),l=T.useRef(!0),c=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=T.useRef(r);return u.current=r,DI({disabled:i,next:d=>l.current&&Nz(u.current,d.name,s)&&Oz(d,c.current,t._updateFormState)&&a({...t._formState,...d}),subject:t._subjects.state}),T.useEffect(()=>(l.current=!0,c.current.isValid&&t._updateValid(!0),()=>{l.current=!1}),[t]),Az(o,t,c.current,!1)}var ll=n=>typeof n=="string",Pz=(n,e,t,i,r)=>ll(n)?(i&&e.watch.add(n),Qe(t,n,r)):Array.isArray(n)?n.map(s=>(i&&e.watch.add(s),Qe(t,s))):(i&&(e.watchAll=!0),t);function L8e(n){const e=bc(),{control:t=e.control,name:i,defaultValue:r,disabled:s,exact:o}=n||{},a=T.useRef(i);a.current=i,DI({disabled:s,subject:t._subjects.values,next:u=>{Nz(a.current,u.name,o)&&c(al(Pz(a.current,t._names,u.values||t._formValues,!1,r)))}});const[l,c]=T.useState(t._getWatch(i,r));return T.useEffect(()=>t._removeUnmounted()),l}var EI=n=>/^\w*$/.test(n),Rz=n=>N_(n.replace(/["|']|\]/g,"").split(/\.|\[/));function Hn(n,e,t){let i=-1;const r=EI(e)?[e]:Rz(e),s=r.length,o=s-1;for(;++i<s;){const a=r[i];let l=t;if(i!==o){const c=n[a];l=Zi(c)||Array.isArray(c)?c:isNaN(+r[i+1])?{}:[]}n[a]=l,n=n[a]}return n}function k8e(n){const e=bc(),{name:t,control:i=e.control,shouldUnregister:r}=n,s=Tz(i._names.array,t),o=L8e({control:i,name:t,defaultValue:Qe(i._formValues,t,Qe(i._defaultValues,t,n.defaultValue)),exact:!0}),a=Mz({control:i,name:t}),l=T.useRef(i.register(t,{...n.rules,value:o}));return l.current=i.register(t,n.rules),T.useEffect(()=>{const c=i._options.shouldUnregister||r,u=(d,h)=>{const f=Qe(i._fields,d);f&&(f._f.mount=h)};if(u(t,!0),c){const d=al(Qe(i._options.defaultValues,t));Hn(i._defaultValues,t,d),wi(Qe(i._formValues,t))&&Hn(i._formValues,t,d)}return()=>{(s?c&&!i._state.action:c)?i.unregister(t):u(t,!1)}},[t,i,s,r]),{field:{name:t,value:o,onChange:T.useCallback(c=>l.current.onChange({target:{value:Ez(c),name:t},type:zw.CHANGE}),[t]),onBlur:T.useCallback(()=>l.current.onBlur({target:{value:Qe(i._formValues,t),name:t},type:zw.BLUR}),[t,i]),ref:c=>{const u=Qe(i._fields,t);u&&c&&(u._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:a,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Qe(a.errors,t)},isDirty:{enumerable:!0,get:()=>!!Qe(a.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!Qe(a.touchedFields,t)},error:{enumerable:!0,get:()=>Qe(a.errors,t)}})}}const Qg=n=>n.render(k8e(n));var D8e=(n,e,t,i,r)=>e?{...t[n],types:{...t[n]&&t[n].types?t[n].types:{},[i]:r||!0}}:{};const TI=(n,e,t)=>{for(const i of t||Object.keys(n)){const r=Qe(n,i);if(r){const{_f:s,...o}=r;if(s&&e(s.name)){if(s.ref.focus){s.ref.focus();break}else if(s.refs&&s.refs[0].focus){s.refs[0].focus();break}}else Zi(o)&&TI(o,e)}}};var Fz=n=>({isOnSubmit:!n||n===va.onSubmit,isOnBlur:n===va.onBlur,isOnChange:n===va.onChange,isOnAll:n===va.all,isOnTouch:n===va.onTouched}),Bz=(n,e,t)=>!t&&(e.watchAll||e.watch.has(n)||[...e.watch].some(i=>n.startsWith(i)&&/^\.\w+/.test(n.slice(i.length)))),E8e=(n,e,t)=>{const i=N_(Qe(n,t));return Hn(i,"root",e[t]),Hn(n,t,i),n},Jg=n=>typeof n=="boolean",II=n=>n.type==="file",Tu=n=>typeof n=="function",qw=n=>{if(!kI)return!1;const e=n?n.ownerDocument:0;return n instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Kw=n=>ll(n),AI=n=>n.type==="radio",Gw=n=>n instanceof RegExp;const Wz={value:!1,isValid:!1},Vz={value:!0,isValid:!0};var $z=n=>{if(Array.isArray(n)){if(n.length>1){const e=n.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:e,isValid:!!e.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!wi(n[0].attributes.value)?wi(n[0].value)||n[0].value===""?Vz:{value:n[0].value,isValid:!0}:Vz:Wz}return Wz};const Hz={isValid:!1,value:null};var jz=n=>Array.isArray(n)?n.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Hz):Hz;function zz(n,e,t="validate"){if(Kw(n)||Array.isArray(n)&&n.every(Kw)||Jg(n)&&!n)return{type:t,message:Kw(n)?n:"",ref:e}}var em=n=>Zi(n)&&!Gw(n)?n:{value:n,message:""},Uz=async(n,e,t,i,r)=>{const{ref:s,refs:o,required:a,maxLength:l,minLength:c,min:u,max:d,pattern:h,validate:f,name:g,valueAsNumber:m,mount:p,disabled:v}=n._f,_=Qe(e,g);if(!p||v)return{};const b=o?o[0]:s,y=I=>{i&&b.reportValidity&&(b.setCustomValidity(Jg(I)?"":I||""),b.reportValidity())},w={},k=AI(s),L=O_(s),D=k||L,E=(m||II(s))&&wi(s.value)&&wi(_)||qw(s)&&s.value===""||_===""||Array.isArray(_)&&!_.length,N=D8e.bind(null,g,t,w),O=(I,M,B,V=vc.maxLength,ee=vc.minLength)=>{const re=I?M:B;w[g]={type:I?V:ee,message:re,ref:s,...N(I?V:ee,re)}};if(r?!Array.isArray(_)||!_.length:a&&(!D&&(E||ns(_))||Jg(_)&&!_||L&&!$z(o).isValid||k&&!jz(o).isValid)){const{value:I,message:M}=Kw(a)?{value:!!a,message:a}:em(a);if(I&&(w[g]={type:vc.required,message:M,ref:b,...N(vc.required,M)},!t))return y(M),w}if(!E&&(!ns(u)||!ns(d))){let I,M;const B=em(d),V=em(u);if(!ns(_)&&!isNaN(_)){const ee=s.valueAsNumber||_&&+_;ns(B.value)||(I=ee>B.value),ns(V.value)||(M=ee<V.value)}else{const ee=s.valueAsDate||new Date(_),re=J=>new Date(new Date().toDateString()+" "+J),se=s.type=="time",ie=s.type=="week";ll(B.value)&&_&&(I=se?re(_)>re(B.value):ie?_>B.value:ee>new Date(B.value)),ll(V.value)&&_&&(M=se?re(_)<re(V.value):ie?_<V.value:ee<new Date(V.value))}if((I||M)&&(O(!!I,B.message,V.message,vc.max,vc.min),!t))return y(w[g].message),w}if((l||c)&&!E&&(ll(_)||r&&Array.isArray(_))){const I=em(l),M=em(c),B=!ns(I.value)&&_.length>+I.value,V=!ns(M.value)&&_.length<+M.value;if((B||V)&&(O(B,I.message,M.message),!t))return y(w[g].message),w}if(h&&!E&&ll(_)){const{value:I,message:M}=em(h);if(Gw(I)&&!_.match(I)&&(w[g]={type:vc.pattern,message:M,ref:s,...N(vc.pattern,M)},!t))return y(M),w}if(f){if(Tu(f)){const I=await f(_,e),M=zz(I,b);if(M&&(w[g]={...M,...N(vc.validate,M.message)},!t))return y(M.message),w}else if(Zi(f)){let I={};for(const M in f){if(!Po(I)&&!t)break;const B=zz(await f[M](_,e),b,M);B&&(I={...B,...N(M,B.message)},y(B.message),t&&(w[g]=I))}if(!Po(I)&&(w[g]={ref:b,...I},!t))return w}}return y(!0),w};function T8e(n,e){const t=e.slice(0,-1).length;let i=0;for(;i<t;)n=wi(n)?i++:n[e[i++]];return n}function I8e(n){for(const e in n)if(n.hasOwnProperty(e)&&!wi(n[e]))return!1;return!0}function Cr(n,e){const t=Array.isArray(e)?e:EI(e)?[e]:Rz(e),i=t.length===1?n:T8e(n,t),r=t.length-1,s=t[r];return i&&delete i[s],r!==0&&(Zi(i)&&Po(i)||Array.isArray(i)&&I8e(i))&&Cr(n,t.slice(0,-1)),n}function OI(){let n=[];return{get observers(){return n},next:r=>{for(const s of n)s.next&&s.next(r)},subscribe:r=>(n.push(r),{unsubscribe:()=>{n=n.filter(s=>s!==r)}}),unsubscribe:()=>{n=[]}}}var Yw=n=>ns(n)||!Dz(n);function yh(n,e){if(Yw(n)||Yw(e))return n===e;if(Xg(n)&&Xg(e))return n.getTime()===e.getTime();const t=Object.keys(n),i=Object.keys(e);if(t.length!==i.length)return!1;for(const r of t){const s=n[r];if(!i.includes(r))return!1;if(r!=="ref"){const o=e[r];if(Xg(s)&&Xg(o)||Zi(s)&&Zi(o)||Array.isArray(s)&&Array.isArray(o)?!yh(s,o):s!==o)return!1}}return!0}var qz=n=>n.type==="select-multiple",A8e=n=>AI(n)||O_(n),NI=n=>qw(n)&&n.isConnected,Kz=n=>{for(const e in n)if(Tu(n[e]))return!0;return!1};function Zw(n,e={}){const t=Array.isArray(n);if(Zi(n)||t)for(const i in n)Array.isArray(n[i])||Zi(n[i])&&!Kz(n[i])?(e[i]=Array.isArray(n[i])?[]:{},Zw(n[i],e[i])):ns(n[i])||(e[i]=!0);return e}function Gz(n,e,t){const i=Array.isArray(n);if(Zi(n)||i)for(const r in n)Array.isArray(n[r])||Zi(n[r])&&!Kz(n[r])?wi(e)||Yw(t[r])?t[r]=Array.isArray(n[r])?Zw(n[r],[]):{...Zw(n[r])}:Gz(n[r],ns(e)?{}:e[r],t[r]):t[r]=!yh(n[r],e[r]);return t}var MI=(n,e)=>Gz(n,e,Zw(e)),Yz=(n,{valueAsNumber:e,valueAsDate:t,setValueAs:i})=>wi(n)?n:e?n===""?NaN:n&&+n:t&&ll(n)?new Date(n):i?i(n):n;function PI(n){const e=n.ref;if(!(n.refs?n.refs.every(t=>t.disabled):e.disabled))return II(e)?e.files:AI(e)?jz(n.refs).value:qz(e)?[...e.selectedOptions].map(({value:t})=>t):O_(e)?$z(n.refs).value:Yz(wi(e.value)?n.ref.value:e.value,n)}var O8e=(n,e,t,i)=>{const r={};for(const s of n){const o=Qe(e,s);o&&Hn(r,s,o._f)}return{criteriaMode:t,names:[...n],fields:r,shouldUseNativeValidation:i}},M_=n=>wi(n)?n:Gw(n)?n.source:Zi(n)?Gw(n.value)?n.value.source:n.value:n,N8e=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate);function Zz(n,e,t){const i=Qe(n,t);if(i||EI(t))return{error:i,name:t};const r=t.split(".");for(;r.length;){const s=r.join("."),o=Qe(e,s),a=Qe(n,s);if(o&&!Array.isArray(o)&&t!==s)return{name:t};if(a&&a.type)return{name:s,error:a};r.pop()}return{name:t}}var M8e=(n,e,t,i,r)=>r.isOnAll?!1:!t&&r.isOnTouch?!(e||n):(t?i.isOnBlur:r.isOnBlur)?!n:(t?i.isOnChange:r.isOnChange)?n:!0,P8e=(n,e)=>!N_(Qe(n,e)).length&&Cr(n,e);const R8e={mode:va.onSubmit,reValidateMode:va.onChange,shouldFocusError:!0};function F8e(n={},e){let t={...R8e,...n},i={submitCount:0,isDirty:!1,isLoading:Tu(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},r={},s=Zi(t.defaultValues)||Zi(t.values)?al(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:al(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:OI(),array:OI(),state:OI()},f=n.resetOptions&&n.resetOptions.keepDirtyValues,g=Fz(t.mode),m=Fz(t.reValidateMode),p=t.criteriaMode===va.all,v=j=>le=>{clearTimeout(u),u=setTimeout(j,le)},_=async j=>{if(d.isValid||j){const le=t.resolver?Po((await E()).errors):await O(r,!0);le!==i.isValid&&h.state.next({isValid:le})}},b=j=>d.isValidating&&h.state.next({isValidating:j}),y=(j,le=[],be,$e,Y=!0,H=!0)=>{if($e&&be){if(a.action=!0,H&&Array.isArray(Qe(r,j))){const q=be(Qe(r,j),$e.argA,$e.argB);Y&&Hn(r,j,q)}if(H&&Array.isArray(Qe(i.errors,j))){const q=be(Qe(i.errors,j),$e.argA,$e.argB);Y&&Hn(i.errors,j,q),P8e(i.errors,j)}if(d.touchedFields&&H&&Array.isArray(Qe(i.touchedFields,j))){const q=be(Qe(i.touchedFields,j),$e.argA,$e.argB);Y&&Hn(i.touchedFields,j,q)}d.dirtyFields&&(i.dirtyFields=MI(s,o)),h.state.next({name:j,isDirty:M(j,le),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else Hn(o,j,le)},w=(j,le)=>{Hn(i.errors,j,le),h.state.next({errors:i.errors})},k=(j,le,be,$e)=>{const Y=Qe(r,j);if(Y){const H=Qe(o,j,wi(be)?Qe(s,j):be);wi(H)||$e&&$e.defaultChecked||le?Hn(o,j,le?H:PI(Y._f)):ee(j,H),a.mount&&_()}},L=(j,le,be,$e,Y)=>{let H=!1,q=!1;const P={name:j};if(!be||$e){d.isDirty&&(q=i.isDirty,i.isDirty=P.isDirty=M(),H=q!==P.isDirty);const F=yh(Qe(s,j),le);q=Qe(i.dirtyFields,j),F?Cr(i.dirtyFields,j):Hn(i.dirtyFields,j,!0),P.dirtyFields=i.dirtyFields,H=H||d.dirtyFields&&q!==!F}if(be){const F=Qe(i.touchedFields,j);F||(Hn(i.touchedFields,j,be),P.touchedFields=i.touchedFields,H=H||d.touchedFields&&F!==be)}return H&&Y&&h.state.next(P),H?P:{}},D=(j,le,be,$e)=>{const Y=Qe(i.errors,j),H=d.isValid&&Jg(le)&&i.isValid!==le;if(n.delayError&&be?(c=v(()=>w(j,be)),c(n.delayError)):(clearTimeout(u),c=null,be?Hn(i.errors,j,be):Cr(i.errors,j)),(be?!yh(Y,be):Y)||!Po($e)||H){const q={...$e,...H&&Jg(le)?{isValid:le}:{},errors:i.errors,name:j};i={...i,...q},h.state.next(q)}b(!1)},E=async j=>t.resolver(o,t.context,O8e(j||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation)),N=async j=>{const{errors:le}=await E();if(j)for(const be of j){const $e=Qe(le,be);$e?Hn(i.errors,be,$e):Cr(i.errors,be)}else i.errors=le;return le},O=async(j,le,be={valid:!0})=>{for(const $e in j){const Y=j[$e];if(Y){const{_f:H,...q}=Y;if(H){const P=l.array.has(H.name),F=await Uz(Y,o,p,t.shouldUseNativeValidation&&!le,P);if(F[H.name]&&(be.valid=!1,le))break;!le&&(Qe(F,H.name)?P?E8e(i.errors,F,H.name):Hn(i.errors,H.name,F[H.name]):Cr(i.errors,H.name))}q&&await O(q,le,be)}}return be.valid},I=()=>{for(const j of l.unMount){const le=Qe(r,j);le&&(le._f.refs?le._f.refs.every(be=>!NI(be)):!NI(le._f.ref))&&te(j)}l.unMount=new Set},M=(j,le)=>(j&&le&&Hn(o,j,le),!yh(ue(),s)),B=(j,le,be)=>Pz(j,l,{...a.mount?o:wi(le)?s:ll(j)?{[j]:le}:le},be,le),V=j=>N_(Qe(a.mount?o:s,j,n.shouldUnregister?Qe(s,j,[]):[])),ee=(j,le,be={})=>{const $e=Qe(r,j);let Y=le;if($e){const H=$e._f;H&&(!H.disabled&&Hn(o,j,Yz(le,H)),Y=qw(H.ref)&&ns(le)?"":le,qz(H.ref)?[...H.ref.options].forEach(q=>q.selected=Y.includes(q.value)):H.refs?O_(H.ref)?H.refs.length>1?H.refs.forEach(q=>(!q.defaultChecked||!q.disabled)&&(q.checked=Array.isArray(Y)?!!Y.find(P=>P===q.value):Y===q.value)):H.refs[0]&&(H.refs[0].checked=!!Y):H.refs.forEach(q=>q.checked=q.value===Y):II(H.ref)?H.ref.value="":(H.ref.value=Y,H.ref.type||h.values.next({name:j,values:{...o}})))}(be.shouldDirty||be.shouldTouch)&&L(j,Y,be.shouldTouch,be.shouldDirty,!0),be.shouldValidate&&J(j)},re=(j,le,be)=>{for(const $e in le){const Y=le[$e],H=`${j}.${$e}`,q=Qe(r,H);(l.array.has(j)||!Yw(Y)||q&&!q._f)&&!Xg(Y)?re(H,Y,be):ee(H,Y,be)}},se=(j,le,be={})=>{const $e=Qe(r,j),Y=l.array.has(j),H=al(le);Hn(o,j,H),Y?(h.array.next({name:j,values:{...o}}),(d.isDirty||d.dirtyFields)&&be.shouldDirty&&h.state.next({name:j,dirtyFields:MI(s,o),isDirty:M(j,H)})):$e&&!$e._f&&!ns(H)?re(j,H,be):ee(j,H,be),Bz(j,l)&&h.state.next({...i}),h.values.next({name:j,values:{...o}}),!a.mount&&e()},ie=async j=>{const le=j.target;let be=le.name,$e=!0;const Y=Qe(r,be),H=()=>le.type?PI(Y._f):Ez(j);if(Y){let q,P;const F=H(),z=j.type===zw.BLUR||j.type===zw.FOCUS_OUT,U=!N8e(Y._f)&&!t.resolver&&!Qe(i.errors,be)&&!Y._f.deps||M8e(z,Qe(i.touchedFields,be),i.isSubmitted,m,g),fe=Bz(be,l,z);Hn(o,be,F),z?(Y._f.onBlur&&Y._f.onBlur(j),c&&c(0)):Y._f.onChange&&Y._f.onChange(j);const ke=L(be,F,z,!1),Ie=!Po(ke)||fe;if(!z&&h.values.next({name:be,type:j.type,values:{...o}}),U)return d.isValid&&_(),Ie&&h.state.next({name:be,...fe?{}:ke});if(!z&&fe&&h.state.next({...i}),b(!0),t.resolver){const{errors:Pe}=await E([be]),Ze=Zz(i.errors,r,be),Ye=Zz(Pe,r,Ze.name||be);q=Ye.error,be=Ye.name,P=Po(Pe)}else q=(await Uz(Y,o,p,t.shouldUseNativeValidation))[be],$e=isNaN(F)||F===Qe(o,be,F),$e&&(q?P=!1:d.isValid&&(P=await O(r,!0)));$e&&(Y._f.deps&&J(Y._f.deps),D(be,P,q,ke))}},J=async(j,le={})=>{let be,$e;const Y=Uw(j);if(b(!0),t.resolver){const H=await N(wi(j)?j:Y);be=Po(H),$e=j?!Y.some(q=>Qe(H,q)):be}else j?($e=(await Promise.all(Y.map(async H=>{const q=Qe(r,H);return await O(q&&q._f?{[H]:q}:q)}))).every(Boolean),!(!$e&&!i.isValid)&&_()):$e=be=await O(r);return h.state.next({...!ll(j)||d.isValid&&be!==i.isValid?{}:{name:j},...t.resolver||!j?{isValid:be}:{},errors:i.errors,isValidating:!1}),le.shouldFocus&&!$e&&TI(r,H=>H&&Qe(i.errors,H),j?Y:l.mount),$e},ue=j=>{const le={...s,...a.mount?o:{}};return wi(j)?le:ll(j)?Qe(le,j):j.map(be=>Qe(le,be))},Z=(j,le)=>({invalid:!!Qe((le||i).errors,j),isDirty:!!Qe((le||i).dirtyFields,j),isTouched:!!Qe((le||i).touchedFields,j),error:Qe((le||i).errors,j)}),X=j=>{j&&Uw(j).forEach(le=>Cr(i.errors,le)),h.state.next({errors:j?i.errors:{}})},ce=(j,le,be)=>{const $e=(Qe(r,j,{_f:{}})._f||{}).ref;Hn(i.errors,j,{...le,ref:$e}),h.state.next({name:j,errors:i.errors,isValid:!1}),be&&be.shouldFocus&&$e&&$e.focus&&$e.focus()},De=(j,le)=>Tu(j)?h.values.subscribe({next:be=>j(B(void 0,le),be)}):B(j,le,!0),te=(j,le={})=>{for(const be of j?Uw(j):l.mount)l.mount.delete(be),l.array.delete(be),le.keepValue||(Cr(r,be),Cr(o,be)),!le.keepError&&Cr(i.errors,be),!le.keepDirty&&Cr(i.dirtyFields,be),!le.keepTouched&&Cr(i.touchedFields,be),!t.shouldUnregister&&!le.keepDefaultValue&&Cr(s,be);h.values.next({values:{...o}}),h.state.next({...i,...le.keepDirty?{isDirty:M()}:{}}),!le.keepIsValid&&_()},xe=(j,le={})=>{let be=Qe(r,j);const $e=Jg(le.disabled);return Hn(r,j,{...be||{},_f:{...be&&be._f?be._f:{ref:{name:j}},name:j,mount:!0,...le}}),l.mount.add(j),be?$e&&Hn(o,j,le.disabled?void 0:Qe(o,j,PI(be._f))):k(j,!0,le.value),{...$e?{disabled:le.disabled}:{},...t.progressive?{required:!!le.required,min:M_(le.min),max:M_(le.max),minLength:M_(le.minLength),maxLength:M_(le.maxLength),pattern:M_(le.pattern)}:{},name:j,onChange:ie,onBlur:ie,ref:Y=>{if(Y){xe(j,le),be=Qe(r,j);const H=wi(Y.value)&&Y.querySelectorAll&&Y.querySelectorAll("input,select,textarea")[0]||Y,q=A8e(H),P=be._f.refs||[];if(q?P.find(F=>F===H):H===be._f.ref)return;Hn(r,j,{_f:{...be._f,...q?{refs:[...P.filter(NI),H,...Array.isArray(Qe(s,j))?[{}]:[]],ref:{type:H.type,name:j}}:{ref:H}}}),k(j,!1,void 0,H)}else be=Qe(r,j,{}),be._f&&(be._f.mount=!1),(t.shouldUnregister||le.shouldUnregister)&&!(Tz(l.array,j)&&a.action)&&l.unMount.add(j)}}},ge=()=>t.shouldFocusError&&TI(r,j=>j&&Qe(i.errors,j),l.mount),Ce=(j,le)=>async be=>{be&&(be.preventDefault&&be.preventDefault(),be.persist&&be.persist());let $e=al(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Y,values:H}=await E();i.errors=Y,$e=H}else await O(r);Cr(i.errors,"root"),Po(i.errors)?(h.state.next({errors:{}}),await j($e,be)):(le&&await le({...i.errors},be),ge(),setTimeout(ge)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Po(i.errors),submitCount:i.submitCount+1,errors:i.errors})},Se=(j,le={})=>{Qe(r,j)&&(wi(le.defaultValue)?se(j,Qe(s,j)):(se(j,le.defaultValue),Hn(s,j,le.defaultValue)),le.keepTouched||Cr(i.touchedFields,j),le.keepDirty||(Cr(i.dirtyFields,j),i.isDirty=le.defaultValue?M(j,Qe(s,j)):M()),le.keepError||(Cr(i.errors,j),d.isValid&&_()),h.state.next({...i}))},pe=(j,le={})=>{const be=j||s,$e=al(be),Y=j&&!Po(j)?$e:s;if(le.keepDefaultValues||(s=be),!le.keepValues){if(le.keepDirtyValues||f)for(const H of l.mount)Qe(i.dirtyFields,H)?Hn(Y,H,Qe(o,H)):se(H,Qe(Y,H));else{if(kI&&wi(j))for(const H of l.mount){const q=Qe(r,H);if(q&&q._f){const P=Array.isArray(q._f.refs)?q._f.refs[0]:q._f.ref;if(qw(P)){const F=P.closest("form");if(F){F.reset();break}}}}r={}}o=n.shouldUnregister?le.keepDefaultValues?al(s):{}:al(Y),h.array.next({values:{...Y}}),h.values.next({values:{...Y}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&e(),a.mount=!d.isValid||!!le.keepIsValid,a.watch=!!n.shouldUnregister,h.state.next({submitCount:le.keepSubmitCount?i.submitCount:0,isDirty:le.keepDirty?i.isDirty:!!(le.keepDefaultValues&&!yh(j,s)),isSubmitted:le.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:le.keepDirtyValues?i.dirtyFields:le.keepDefaultValues&&j?MI(s,j):{},touchedFields:le.keepTouched?i.touchedFields:{},errors:le.keepErrors?i.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Q=(j,le)=>pe(Tu(j)?j(o):j,le);return{control:{register:xe,unregister:te,getFieldState:Z,handleSubmit:Ce,setError:ce,_executeSchema:E,_getWatch:B,_getDirty:M,_updateValid:_,_removeUnmounted:I,_updateFieldArray:y,_getFieldArray:V,_reset:pe,_resetDefaultValues:()=>Tu(t.defaultValues)&&t.defaultValues().then(j=>{Q(j,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:j=>{i={...i,...j}},_subjects:h,_proxyFormState:d,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(j){a=j},get _defaultValues(){return s},get _names(){return l},set _names(j){l=j},get _formState(){return i},set _formState(j){i=j},get _options(){return t},set _options(j){t={...t,...j}}},trigger:J,register:xe,handleSubmit:Ce,watch:De,setValue:se,getValues:ue,reset:Q,resetField:Se,clearErrors:X,unregister:te,setError:ce,setFocus:(j,le={})=>{const be=Qe(r,j),$e=be&&be._f;if($e){const Y=$e.refs?$e.refs[0]:$e.ref;Y.focus&&(Y.focus(),le.shouldSelect&&Y.select())}},getFieldState:Z}}function B8e(n={}){const e=T.useRef(),t=T.useRef(),[i,r]=T.useState({isDirty:!1,isValidating:!1,isLoading:Tu(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Tu(n.defaultValues)?void 0:n.defaultValues});e.current||(e.current={...F8e(n,()=>r(o=>({...o}))),formState:i});const s=e.current.control;return s._options=n,DI({subject:s._subjects.state,next:o=>{Oz(o,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),T.useEffect(()=>{n.values&&!yh(n.values,t.current)?(s._reset(n.values,s._options.resetOptions),t.current=n.values):s._resetDefaultValues()},[n.values,s]),T.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),e.current.formState=Az(i,s),e.current}function W8e(n){const{name:e,readOnly:t,validate:i,...r}=n,{control:s,formState:{isSubmitting:o}}=bc();return x.jsx(Qg,{name:e,control:s,shouldUnregister:!0,render:({field:{onChange:a,value:l}})=>x.jsx(R.Checkbox,{...r,id:n.id??e.split(".").join("-"),isChecked:!!l,onChange:a,readOnly:t||o,minLength:void 0,maxLength:void 0,ref:void 0}),rules:{validate:i}})}function cl(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Xz(n){return typeof n>"u"||n===null}function V8e(n){return typeof n=="object"&&n!==null}function $8e(n){return Array.isArray(n)?n:Xz(n)?[]:[n]}function H8e(n,e){var t,i,r,s;if(e)for(s=Object.keys(e),t=0,i=s.length;t<i;t+=1)r=s[t],n[r]=e[r];return n}function j8e(n,e){var t="",i;for(i=0;i<e;i+=1)t+=n;return t}function z8e(n){return n===0&&Number.NEGATIVE_INFINITY===1/n}var U8e=Xz,q8e=V8e,K8e=$8e,G8e=j8e,Y8e=z8e,Z8e=H8e,Xi={isNothing:U8e,isObject:q8e,toArray:K8e,repeat:G8e,isNegativeZero:Y8e,extend:Z8e};function Qz(n,e){var t="",i=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(t+='in "'+n.mark.name+'" '),t+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!e&&n.mark.snippet&&(t+=`
|
371
|
+
`;function m8e(n){const{title:e,items:t,keyFn:i,prompt:r,alertPrompts:s,confirmationColumns:o,isItemNonActionable:a,onConfirm:l,onClose:c,confirmText:u,actionButtonText:d,isDanger:h}=n,[f,g]=qa(),[m]=yi(),p=T.useCallback(()=>{g(void 0),c==null||c()},[c,g]),v=T.useMemo(()=>a&&t.some(a)?t.sort((D,E)=>A_(a(D),a(E))):t,[t,a]),_=T_(v),[b,y]=T.useState(!u),w=T.useMemo(()=>a&&t.some(a)?[{header:"",cell:D=>a(D)?x.jsx(P.Tooltip,{content:a(D),trigger:a(D)?void 0:"manual",children:x.jsx(P.Icon,{status:"warning",children:x.jsx(yt.ExclamationTriangleIcon,{})})}):null},...o]:o,[o,a,t]),k=T.useMemo(()=>a?t.filter(D=>!a(D)):t,[a,t]),L=nI(w);return x.jsx(P.Modal,{titleIconVariant:h?"warning":void 0,title:e,"aria-label":e,description:r,variant:P.ModalVariant.medium,isOpen:!0,onClose:p,actions:[x.jsx(P.Button,{variant:h?"danger":"primary",onClick:()=>{p(),l()},isAriaDisabled:!b,children:d},"submit"),x.jsx(P.Button,{variant:"link",onClick:c,children:m.cancelText},"cancel")],hasNoBodyWrapper:!0,children:t.length>0&&x.jsxs(P.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[x.jsxs(f8e,{children:[s&&s.length>0&&s.map((D,E)=>x.jsx(P.Alert,{isInline:!0,title:D,variant:"warning"},E)),x.jsx(I_,{pageItems:_.paged,itemCount:t.length,tableColumns:L,keyFn:i,pagination:_,compact:!0,errorStateTitle:"Error",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0},"items")]}),u&&k.length>0&&x.jsx(g8e,{children:x.jsx(P.Checkbox,{id:"confirm",label:u,isChecked:b,onChange:y})})]})})}function p8e(){const[n,e]=qa(),[t,i]=T.useState();return T.useEffect(()=>{if(t){const r=()=>{var s;i(void 0),(s=t.onClose)==null||s.call(t)};e(x.jsx(m8e,{...t,onClose:r}))}else e(void 0)},[t,e]),i}function _8e(){const n=p8e(),e=wz();return T.useCallback(t=>{const i=Object.assign({},t);return t.isItemNonActionable&&t.isItemNonActionable!==void 0&&(i.items=t.items.filter(r=>t.isItemNonActionable!==void 0&&!t.isItemNonActionable(r))),n({...t,onConfirm:()=>e(i)})},[e,n])}function v8e(n){const{title:e,view:t,tableColumns:i,toolbarFilters:r,confirmText:s,cancelText:o,onSelect:a}=n,[l,c]=qa(),u=T.useCallback(()=>c(void 0),[c]),[d]=yi();return x.jsx(P.Modal,{title:e,"aria-label":e,isOpen:!0,onClose:u,variant:P.ModalVariant.medium,tabIndex:0,actions:[x.jsx(P.Button,{variant:"primary",id:"confirm",onClick:()=>{u(),a(t.selectedItems)},isAriaDisabled:t.selectedItems.length===0,children:s??d.confirmText},"confirm"),x.jsx(P.Button,{variant:"link",onClick:u,children:o??d.cancelText},"cancel")],hasNoBodyWrapper:!0,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:x.jsx(I_,{tableColumns:i,toolbarFilters:r,...t,emptyStateTitle:n.emptyStateTitle??d.noItemsFound,errorStateTitle:n.errorStateTitle??d.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})}const Bht="";function LI(n){let e="collapsed";return n.open&&(e+=" expanded"),x.jsx("div",{className:e,children:n.children})}function b8e(n){const{view:e,tableColumns:t,toolbarFilters:i,confirm:r,cancel:s,selected:o,isMultiple:a}=n,[l,c]=T.useState(""),[u,d]=T.useState(),h=T.useCallback((m,p)=>{c(p??""),d(()=>m)},[]),[f,g]=qa();return T.useEffect(()=>{u!==void 0?g(x.jsx(Lz,{title:l,open:!0,isMultiple:a,setOpen:()=>d(void 0),onSelect:u,view:e,tableColumns:t,toolbarFilters:i,confirm:r,cancel:s,selected:o,keyFn:e.keyFn})):(g(void 0),e.unselectAll())},[s,r,u,o,g,t,l,i,e,a]),h}function Lz(n){const{title:e,open:t,isMultiple:i=!1,setOpen:r,onSelect:s,view:o,tableColumns:a,toolbarFilters:l,confirm:c,cancel:u,selected:d}=n,h=()=>r(!1),{t:f}=ts();return x.jsxs(P.Modal,{title:e,"aria-label":e,isOpen:t,onClose:h,variant:P.ModalVariant.medium,tabIndex:0,actions:[x.jsx(P.Button,{variant:"primary",onClick:()=>{!i&&o.selectedItems.length>0?s(o.selectedItems[0]):i&&s(o.selectedItems),h()},isAriaDisabled:o.selectedItems.length===0,children:c},"confirm"),x.jsx(P.Button,{variant:"link",onClick:h,children:u},"cancel")],hasNoBodyWrapper:!0,children:[x.jsx(P.ModalBoxBody,{style:{overflow:"hidden"},children:x.jsxs(P.Split,{hasGutter:!0,children:[x.jsx(P.SplitItem,{style:{fontWeight:"bold"},children:d}),o.selectedItems.length>0?x.jsx(P.ChipGroup,{children:o.selectedItems.map((g,m)=>a&&a.length>0?x.jsx(P.Chip,{onClick:()=>o.unselectItem(g),children:x.jsx(Wr,{item:g,column:a.find(p=>p.card==="name"||p.list==="name")??a[0]})},m):x.jsx(x.Fragment,{}))}):x.jsx(P.SplitItem,{style:{fontStyle:"italic"},children:f`None - Please make a selection below.`})]})}),x.jsx(LI,{open:o.itemCount===void 0,children:x.jsx(P.Skeleton,{height:"80px"})}),x.jsx(LI,{open:o.itemCount!==void 0,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:x.jsx(I_,{tableColumns:a,toolbarFilters:l,emptyStateTitle:"No organizations found",errorStateTitle:"Error loading organizations",...o,isSelectMultiple:i,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function y8e(n){const{onSelect:e,value:t}=n,i=T.useCallback((l,c)=>{var u;e(l,(u=n.options.find(d=>d.label===c.toString()))==null?void 0:u.value)},[e,n.options]),{options:r}=n;r.sort((l,c)=>(l.group??"")<(c.group??"")?-1:(l.group??"")>(c.group??"")?1:l.label<c.label?-1:l.label>c.label?1:0);const s=r.reduce((l,c)=>{const u=c.group??"";let d=l[u];return d||(d=[],l[u]=d),d.push(c),l},{}),o=Object.keys(s).length>1||Object.keys(s).length===1&&Object.keys(s)[0]!=="",a=n.options.find(l=>l.value===t);return x.jsx(sg,{...n,value:a==null?void 0:a.label,onSelect:i,isGrouped:o,children:o?Object.keys(s).map(l=>x.jsx(P.SelectGroup,{label:l,children:s[l].map(c=>x.jsx(P.SelectOption,{value:c.label,label:c.label,description:c.description,children:c.label},c.label))},l)):r.map(l=>x.jsx(P.SelectOption,{value:l.label,label:l.label,description:l.description,children:l.label},l.label))})}function kz(n){const[e,t]=T.useState(!1),{helperTextInvalid:i,...r}=n;return x.jsx(z1,{...n,children:x.jsxs(P.InputGroup,{children:[x.jsx(P.TextArea,{...r,id:n.id,label:void 0,"aria-describedby":n.id?`${n.id}-form-group`:void 0,validated:n.helperTextInvalid?"error":void 0}),n.type==="password"&&x.jsx(P.Button,{variant:"control",onClick:()=>t(!e),isDisabled:n.isDisabled||n.isReadOnly,children:e?x.jsx(yt.EyeIcon,{}):x.jsx(yt.EyeSlashIcon,{})})]})})}function C8e(n){const[e,t]=T.useState(!1),{children:i,isReadOnly:r,placeholder:s,...o}=n,a=n.id?n.id:typeof n.label=="string"?n.label.toLowerCase().split(" ").join("-"):void 0;return x.jsx(z1,{...o,id:a,children:x.jsxs(P.InputGroup,{children:[x.jsx(P.TextInput,{autoComplete:n.autoComplete,placeholder:s,onChange:n.onChange,id:a,onBlur:n.onBlur,label:void 0,value:n.value,"aria-describedby":a?`${a}-form-group`:void 0,validated:n.helperTextInvalid?"error":void 0,type:n.type==="password"?e?"text":"password":n.type,readOnlyVariant:r?"default":void 0,isDisabled:n.isDisabled,min:n.min}),n.type==="password"&&x.jsx(P.Button,{variant:"control",onClick:()=>t(!e),isDisabled:n.isDisabled||n.isReadOnly,children:e?x.jsx(yt.EyeIcon,{}):x.jsx(yt.EyeSlashIcon,{})}),n.children]})})}var O_=n=>n.type==="checkbox",Xg=n=>n instanceof Date,ns=n=>n==null;const Dz=n=>typeof n=="object";var Zi=n=>!ns(n)&&!Array.isArray(n)&&Dz(n)&&!Xg(n),Ez=n=>Zi(n)&&n.target?O_(n.target)?n.target.checked:n.target.value:n,w8e=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,Tz=(n,e)=>n.has(w8e(e)),S8e=n=>{const e=n.constructor&&n.constructor.prototype;return Zi(e)&&e.hasOwnProperty("isPrototypeOf")},kI=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function al(n){let e;const t=Array.isArray(n);if(n instanceof Date)e=new Date(n);else if(n instanceof Set)e=new Set(n);else if(!(kI&&(n instanceof Blob||n instanceof FileList))&&(t||Zi(n)))if(e=t?[]:{},!t&&!S8e(n))e=n;else for(const i in n)n.hasOwnProperty(i)&&(e[i]=al(n[i]));else return n;return e}var N_=n=>Array.isArray(n)?n.filter(Boolean):[],wi=n=>n===void 0,Qe=(n,e,t)=>{if(!e||!Zi(n))return t;const i=N_(e.split(/[,[\].]+?/)).reduce((r,s)=>ns(r)?r:r[s],n);return wi(i)||i===n?wi(n[e])?t:n[e]:i};const zw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},va={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},vc={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Iz=T.createContext(null),bc=()=>T.useContext(Iz),x8e=n=>{const{children:e,...t}=n;return T.createElement(Iz.Provider,{value:t},e)};var Az=(n,e,t,i=!0)=>{const r={defaultValues:e._defaultValues};for(const s in n)Object.defineProperty(r,s,{get:()=>{const o=s;return e._proxyFormState[o]!==va.all&&(e._proxyFormState[o]=!i||va.all),t&&(t[o]=!0),n[o]}});return r},Po=n=>Zi(n)&&!Object.keys(n).length,Oz=(n,e,t,i)=>{t(n);const{name:r,...s}=n;return Po(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(o=>e[o]===(!i||va.all))},Uw=n=>Array.isArray(n)?n:[n],Nz=(n,e,t)=>t&&e?n===e:!n||!e||n===e||Uw(n).some(i=>i&&(i.startsWith(e)||e.startsWith(i)));function DI(n){const e=T.useRef(n);e.current=n,T.useEffect(()=>{const t=!n.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{t&&t.unsubscribe()}},[n.disabled])}function Mz(n){const e=bc(),{control:t=e.control,disabled:i,name:r,exact:s}=n||{},[o,a]=T.useState(t._formState),l=T.useRef(!0),c=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=T.useRef(r);return u.current=r,DI({disabled:i,next:d=>l.current&&Nz(u.current,d.name,s)&&Oz(d,c.current,t._updateFormState)&&a({...t._formState,...d}),subject:t._subjects.state}),T.useEffect(()=>(l.current=!0,c.current.isValid&&t._updateValid(!0),()=>{l.current=!1}),[t]),Az(o,t,c.current,!1)}var ll=n=>typeof n=="string",Pz=(n,e,t,i,r)=>ll(n)?(i&&e.watch.add(n),Qe(t,n,r)):Array.isArray(n)?n.map(s=>(i&&e.watch.add(s),Qe(t,s))):(i&&(e.watchAll=!0),t);function L8e(n){const e=bc(),{control:t=e.control,name:i,defaultValue:r,disabled:s,exact:o}=n||{},a=T.useRef(i);a.current=i,DI({disabled:s,subject:t._subjects.values,next:u=>{Nz(a.current,u.name,o)&&c(al(Pz(a.current,t._names,u.values||t._formValues,!1,r)))}});const[l,c]=T.useState(t._getWatch(i,r));return T.useEffect(()=>t._removeUnmounted()),l}var EI=n=>/^\w*$/.test(n),Rz=n=>N_(n.replace(/["|']|\]/g,"").split(/\.|\[/));function Hn(n,e,t){let i=-1;const r=EI(e)?[e]:Rz(e),s=r.length,o=s-1;for(;++i<s;){const a=r[i];let l=t;if(i!==o){const c=n[a];l=Zi(c)||Array.isArray(c)?c:isNaN(+r[i+1])?{}:[]}n[a]=l,n=n[a]}return n}function k8e(n){const e=bc(),{name:t,control:i=e.control,shouldUnregister:r}=n,s=Tz(i._names.array,t),o=L8e({control:i,name:t,defaultValue:Qe(i._formValues,t,Qe(i._defaultValues,t,n.defaultValue)),exact:!0}),a=Mz({control:i,name:t}),l=T.useRef(i.register(t,{...n.rules,value:o}));return l.current=i.register(t,n.rules),T.useEffect(()=>{const c=i._options.shouldUnregister||r,u=(d,h)=>{const f=Qe(i._fields,d);f&&(f._f.mount=h)};if(u(t,!0),c){const d=al(Qe(i._options.defaultValues,t));Hn(i._defaultValues,t,d),wi(Qe(i._formValues,t))&&Hn(i._formValues,t,d)}return()=>{(s?c&&!i._state.action:c)?i.unregister(t):u(t,!1)}},[t,i,s,r]),{field:{name:t,value:o,onChange:T.useCallback(c=>l.current.onChange({target:{value:Ez(c),name:t},type:zw.CHANGE}),[t]),onBlur:T.useCallback(()=>l.current.onBlur({target:{value:Qe(i._formValues,t),name:t},type:zw.BLUR}),[t,i]),ref:c=>{const u=Qe(i._fields,t);u&&c&&(u._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:a,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Qe(a.errors,t)},isDirty:{enumerable:!0,get:()=>!!Qe(a.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!Qe(a.touchedFields,t)},error:{enumerable:!0,get:()=>Qe(a.errors,t)}})}}const Qg=n=>n.render(k8e(n));var D8e=(n,e,t,i,r)=>e?{...t[n],types:{...t[n]&&t[n].types?t[n].types:{},[i]:r||!0}}:{};const TI=(n,e,t)=>{for(const i of t||Object.keys(n)){const r=Qe(n,i);if(r){const{_f:s,...o}=r;if(s&&e(s.name)){if(s.ref.focus){s.ref.focus();break}else if(s.refs&&s.refs[0].focus){s.refs[0].focus();break}}else Zi(o)&&TI(o,e)}}};var Fz=n=>({isOnSubmit:!n||n===va.onSubmit,isOnBlur:n===va.onBlur,isOnChange:n===va.onChange,isOnAll:n===va.all,isOnTouch:n===va.onTouched}),Bz=(n,e,t)=>!t&&(e.watchAll||e.watch.has(n)||[...e.watch].some(i=>n.startsWith(i)&&/^\.\w+/.test(n.slice(i.length)))),E8e=(n,e,t)=>{const i=N_(Qe(n,t));return Hn(i,"root",e[t]),Hn(n,t,i),n},Jg=n=>typeof n=="boolean",II=n=>n.type==="file",Tu=n=>typeof n=="function",qw=n=>{if(!kI)return!1;const e=n?n.ownerDocument:0;return n instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Kw=n=>ll(n),AI=n=>n.type==="radio",Gw=n=>n instanceof RegExp;const Wz={value:!1,isValid:!1},Vz={value:!0,isValid:!0};var $z=n=>{if(Array.isArray(n)){if(n.length>1){const e=n.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:e,isValid:!!e.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!wi(n[0].attributes.value)?wi(n[0].value)||n[0].value===""?Vz:{value:n[0].value,isValid:!0}:Vz:Wz}return Wz};const Hz={isValid:!1,value:null};var jz=n=>Array.isArray(n)?n.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Hz):Hz;function zz(n,e,t="validate"){if(Kw(n)||Array.isArray(n)&&n.every(Kw)||Jg(n)&&!n)return{type:t,message:Kw(n)?n:"",ref:e}}var em=n=>Zi(n)&&!Gw(n)?n:{value:n,message:""},Uz=async(n,e,t,i,r)=>{const{ref:s,refs:o,required:a,maxLength:l,minLength:c,min:u,max:d,pattern:h,validate:f,name:g,valueAsNumber:m,mount:p,disabled:v}=n._f,_=Qe(e,g);if(!p||v)return{};const b=o?o[0]:s,y=I=>{i&&b.reportValidity&&(b.setCustomValidity(Jg(I)?"":I||""),b.reportValidity())},w={},k=AI(s),L=O_(s),D=k||L,E=(m||II(s))&&wi(s.value)&&wi(_)||qw(s)&&s.value===""||_===""||Array.isArray(_)&&!_.length,N=D8e.bind(null,g,t,w),O=(I,M,B,V=vc.maxLength,ee=vc.minLength)=>{const re=I?M:B;w[g]={type:I?V:ee,message:re,ref:s,...N(I?V:ee,re)}};if(r?!Array.isArray(_)||!_.length:a&&(!D&&(E||ns(_))||Jg(_)&&!_||L&&!$z(o).isValid||k&&!jz(o).isValid)){const{value:I,message:M}=Kw(a)?{value:!!a,message:a}:em(a);if(I&&(w[g]={type:vc.required,message:M,ref:b,...N(vc.required,M)},!t))return y(M),w}if(!E&&(!ns(u)||!ns(d))){let I,M;const B=em(d),V=em(u);if(!ns(_)&&!isNaN(_)){const ee=s.valueAsNumber||_&&+_;ns(B.value)||(I=ee>B.value),ns(V.value)||(M=ee<V.value)}else{const ee=s.valueAsDate||new Date(_),re=J=>new Date(new Date().toDateString()+" "+J),se=s.type=="time",ie=s.type=="week";ll(B.value)&&_&&(I=se?re(_)>re(B.value):ie?_>B.value:ee>new Date(B.value)),ll(V.value)&&_&&(M=se?re(_)<re(V.value):ie?_<V.value:ee<new Date(V.value))}if((I||M)&&(O(!!I,B.message,V.message,vc.max,vc.min),!t))return y(w[g].message),w}if((l||c)&&!E&&(ll(_)||r&&Array.isArray(_))){const I=em(l),M=em(c),B=!ns(I.value)&&_.length>+I.value,V=!ns(M.value)&&_.length<+M.value;if((B||V)&&(O(B,I.message,M.message),!t))return y(w[g].message),w}if(h&&!E&&ll(_)){const{value:I,message:M}=em(h);if(Gw(I)&&!_.match(I)&&(w[g]={type:vc.pattern,message:M,ref:s,...N(vc.pattern,M)},!t))return y(M),w}if(f){if(Tu(f)){const I=await f(_,e),M=zz(I,b);if(M&&(w[g]={...M,...N(vc.validate,M.message)},!t))return y(M.message),w}else if(Zi(f)){let I={};for(const M in f){if(!Po(I)&&!t)break;const B=zz(await f[M](_,e),b,M);B&&(I={...B,...N(M,B.message)},y(B.message),t&&(w[g]=I))}if(!Po(I)&&(w[g]={ref:b,...I},!t))return w}}return y(!0),w};function T8e(n,e){const t=e.slice(0,-1).length;let i=0;for(;i<t;)n=wi(n)?i++:n[e[i++]];return n}function I8e(n){for(const e in n)if(n.hasOwnProperty(e)&&!wi(n[e]))return!1;return!0}function Cr(n,e){const t=Array.isArray(e)?e:EI(e)?[e]:Rz(e),i=t.length===1?n:T8e(n,t),r=t.length-1,s=t[r];return i&&delete i[s],r!==0&&(Zi(i)&&Po(i)||Array.isArray(i)&&I8e(i))&&Cr(n,t.slice(0,-1)),n}function OI(){let n=[];return{get observers(){return n},next:r=>{for(const s of n)s.next&&s.next(r)},subscribe:r=>(n.push(r),{unsubscribe:()=>{n=n.filter(s=>s!==r)}}),unsubscribe:()=>{n=[]}}}var Yw=n=>ns(n)||!Dz(n);function yh(n,e){if(Yw(n)||Yw(e))return n===e;if(Xg(n)&&Xg(e))return n.getTime()===e.getTime();const t=Object.keys(n),i=Object.keys(e);if(t.length!==i.length)return!1;for(const r of t){const s=n[r];if(!i.includes(r))return!1;if(r!=="ref"){const o=e[r];if(Xg(s)&&Xg(o)||Zi(s)&&Zi(o)||Array.isArray(s)&&Array.isArray(o)?!yh(s,o):s!==o)return!1}}return!0}var qz=n=>n.type==="select-multiple",A8e=n=>AI(n)||O_(n),NI=n=>qw(n)&&n.isConnected,Kz=n=>{for(const e in n)if(Tu(n[e]))return!0;return!1};function Zw(n,e={}){const t=Array.isArray(n);if(Zi(n)||t)for(const i in n)Array.isArray(n[i])||Zi(n[i])&&!Kz(n[i])?(e[i]=Array.isArray(n[i])?[]:{},Zw(n[i],e[i])):ns(n[i])||(e[i]=!0);return e}function Gz(n,e,t){const i=Array.isArray(n);if(Zi(n)||i)for(const r in n)Array.isArray(n[r])||Zi(n[r])&&!Kz(n[r])?wi(e)||Yw(t[r])?t[r]=Array.isArray(n[r])?Zw(n[r],[]):{...Zw(n[r])}:Gz(n[r],ns(e)?{}:e[r],t[r]):t[r]=!yh(n[r],e[r]);return t}var MI=(n,e)=>Gz(n,e,Zw(e)),Yz=(n,{valueAsNumber:e,valueAsDate:t,setValueAs:i})=>wi(n)?n:e?n===""?NaN:n&&+n:t&&ll(n)?new Date(n):i?i(n):n;function PI(n){const e=n.ref;if(!(n.refs?n.refs.every(t=>t.disabled):e.disabled))return II(e)?e.files:AI(e)?jz(n.refs).value:qz(e)?[...e.selectedOptions].map(({value:t})=>t):O_(e)?$z(n.refs).value:Yz(wi(e.value)?n.ref.value:e.value,n)}var O8e=(n,e,t,i)=>{const r={};for(const s of n){const o=Qe(e,s);o&&Hn(r,s,o._f)}return{criteriaMode:t,names:[...n],fields:r,shouldUseNativeValidation:i}},M_=n=>wi(n)?n:Gw(n)?n.source:Zi(n)?Gw(n.value)?n.value.source:n.value:n,N8e=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate);function Zz(n,e,t){const i=Qe(n,t);if(i||EI(t))return{error:i,name:t};const r=t.split(".");for(;r.length;){const s=r.join("."),o=Qe(e,s),a=Qe(n,s);if(o&&!Array.isArray(o)&&t!==s)return{name:t};if(a&&a.type)return{name:s,error:a};r.pop()}return{name:t}}var M8e=(n,e,t,i,r)=>r.isOnAll?!1:!t&&r.isOnTouch?!(e||n):(t?i.isOnBlur:r.isOnBlur)?!n:(t?i.isOnChange:r.isOnChange)?n:!0,P8e=(n,e)=>!N_(Qe(n,e)).length&&Cr(n,e);const R8e={mode:va.onSubmit,reValidateMode:va.onChange,shouldFocusError:!0};function F8e(n={},e){let t={...R8e,...n},i={submitCount:0,isDirty:!1,isLoading:Tu(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},r={},s=Zi(t.defaultValues)||Zi(t.values)?al(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:al(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:OI(),array:OI(),state:OI()},f=n.resetOptions&&n.resetOptions.keepDirtyValues,g=Fz(t.mode),m=Fz(t.reValidateMode),p=t.criteriaMode===va.all,v=j=>le=>{clearTimeout(u),u=setTimeout(j,le)},_=async j=>{if(d.isValid||j){const le=t.resolver?Po((await E()).errors):await O(r,!0);le!==i.isValid&&h.state.next({isValid:le})}},b=j=>d.isValidating&&h.state.next({isValidating:j}),y=(j,le=[],be,$e,Y=!0,H=!0)=>{if($e&&be){if(a.action=!0,H&&Array.isArray(Qe(r,j))){const q=be(Qe(r,j),$e.argA,$e.argB);Y&&Hn(r,j,q)}if(H&&Array.isArray(Qe(i.errors,j))){const q=be(Qe(i.errors,j),$e.argA,$e.argB);Y&&Hn(i.errors,j,q),P8e(i.errors,j)}if(d.touchedFields&&H&&Array.isArray(Qe(i.touchedFields,j))){const q=be(Qe(i.touchedFields,j),$e.argA,$e.argB);Y&&Hn(i.touchedFields,j,q)}d.dirtyFields&&(i.dirtyFields=MI(s,o)),h.state.next({name:j,isDirty:M(j,le),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else Hn(o,j,le)},w=(j,le)=>{Hn(i.errors,j,le),h.state.next({errors:i.errors})},k=(j,le,be,$e)=>{const Y=Qe(r,j);if(Y){const H=Qe(o,j,wi(be)?Qe(s,j):be);wi(H)||$e&&$e.defaultChecked||le?Hn(o,j,le?H:PI(Y._f)):ee(j,H),a.mount&&_()}},L=(j,le,be,$e,Y)=>{let H=!1,q=!1;const R={name:j};if(!be||$e){d.isDirty&&(q=i.isDirty,i.isDirty=R.isDirty=M(),H=q!==R.isDirty);const F=yh(Qe(s,j),le);q=Qe(i.dirtyFields,j),F?Cr(i.dirtyFields,j):Hn(i.dirtyFields,j,!0),R.dirtyFields=i.dirtyFields,H=H||d.dirtyFields&&q!==!F}if(be){const F=Qe(i.touchedFields,j);F||(Hn(i.touchedFields,j,be),R.touchedFields=i.touchedFields,H=H||d.touchedFields&&F!==be)}return H&&Y&&h.state.next(R),H?R:{}},D=(j,le,be,$e)=>{const Y=Qe(i.errors,j),H=d.isValid&&Jg(le)&&i.isValid!==le;if(n.delayError&&be?(c=v(()=>w(j,be)),c(n.delayError)):(clearTimeout(u),c=null,be?Hn(i.errors,j,be):Cr(i.errors,j)),(be?!yh(Y,be):Y)||!Po($e)||H){const q={...$e,...H&&Jg(le)?{isValid:le}:{},errors:i.errors,name:j};i={...i,...q},h.state.next(q)}b(!1)},E=async j=>t.resolver(o,t.context,O8e(j||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation)),N=async j=>{const{errors:le}=await E();if(j)for(const be of j){const $e=Qe(le,be);$e?Hn(i.errors,be,$e):Cr(i.errors,be)}else i.errors=le;return le},O=async(j,le,be={valid:!0})=>{for(const $e in j){const Y=j[$e];if(Y){const{_f:H,...q}=Y;if(H){const R=l.array.has(H.name),F=await Uz(Y,o,p,t.shouldUseNativeValidation&&!le,R);if(F[H.name]&&(be.valid=!1,le))break;!le&&(Qe(F,H.name)?R?E8e(i.errors,F,H.name):Hn(i.errors,H.name,F[H.name]):Cr(i.errors,H.name))}q&&await O(q,le,be)}}return be.valid},I=()=>{for(const j of l.unMount){const le=Qe(r,j);le&&(le._f.refs?le._f.refs.every(be=>!NI(be)):!NI(le._f.ref))&&te(j)}l.unMount=new Set},M=(j,le)=>(j&&le&&Hn(o,j,le),!yh(ue(),s)),B=(j,le,be)=>Pz(j,l,{...a.mount?o:wi(le)?s:ll(j)?{[j]:le}:le},be,le),V=j=>N_(Qe(a.mount?o:s,j,n.shouldUnregister?Qe(s,j,[]):[])),ee=(j,le,be={})=>{const $e=Qe(r,j);let Y=le;if($e){const H=$e._f;H&&(!H.disabled&&Hn(o,j,Yz(le,H)),Y=qw(H.ref)&&ns(le)?"":le,qz(H.ref)?[...H.ref.options].forEach(q=>q.selected=Y.includes(q.value)):H.refs?O_(H.ref)?H.refs.length>1?H.refs.forEach(q=>(!q.defaultChecked||!q.disabled)&&(q.checked=Array.isArray(Y)?!!Y.find(R=>R===q.value):Y===q.value)):H.refs[0]&&(H.refs[0].checked=!!Y):H.refs.forEach(q=>q.checked=q.value===Y):II(H.ref)?H.ref.value="":(H.ref.value=Y,H.ref.type||h.values.next({name:j,values:{...o}})))}(be.shouldDirty||be.shouldTouch)&&L(j,Y,be.shouldTouch,be.shouldDirty,!0),be.shouldValidate&&J(j)},re=(j,le,be)=>{for(const $e in le){const Y=le[$e],H=`${j}.${$e}`,q=Qe(r,H);(l.array.has(j)||!Yw(Y)||q&&!q._f)&&!Xg(Y)?re(H,Y,be):ee(H,Y,be)}},se=(j,le,be={})=>{const $e=Qe(r,j),Y=l.array.has(j),H=al(le);Hn(o,j,H),Y?(h.array.next({name:j,values:{...o}}),(d.isDirty||d.dirtyFields)&&be.shouldDirty&&h.state.next({name:j,dirtyFields:MI(s,o),isDirty:M(j,H)})):$e&&!$e._f&&!ns(H)?re(j,H,be):ee(j,H,be),Bz(j,l)&&h.state.next({...i}),h.values.next({name:j,values:{...o}}),!a.mount&&e()},ie=async j=>{const le=j.target;let be=le.name,$e=!0;const Y=Qe(r,be),H=()=>le.type?PI(Y._f):Ez(j);if(Y){let q,R;const F=H(),z=j.type===zw.BLUR||j.type===zw.FOCUS_OUT,U=!N8e(Y._f)&&!t.resolver&&!Qe(i.errors,be)&&!Y._f.deps||M8e(z,Qe(i.touchedFields,be),i.isSubmitted,m,g),fe=Bz(be,l,z);Hn(o,be,F),z?(Y._f.onBlur&&Y._f.onBlur(j),c&&c(0)):Y._f.onChange&&Y._f.onChange(j);const ke=L(be,F,z,!1),Ie=!Po(ke)||fe;if(!z&&h.values.next({name:be,type:j.type,values:{...o}}),U)return d.isValid&&_(),Ie&&h.state.next({name:be,...fe?{}:ke});if(!z&&fe&&h.state.next({...i}),b(!0),t.resolver){const{errors:Pe}=await E([be]),Ze=Zz(i.errors,r,be),Ye=Zz(Pe,r,Ze.name||be);q=Ye.error,be=Ye.name,R=Po(Pe)}else q=(await Uz(Y,o,p,t.shouldUseNativeValidation))[be],$e=isNaN(F)||F===Qe(o,be,F),$e&&(q?R=!1:d.isValid&&(R=await O(r,!0)));$e&&(Y._f.deps&&J(Y._f.deps),D(be,R,q,ke))}},J=async(j,le={})=>{let be,$e;const Y=Uw(j);if(b(!0),t.resolver){const H=await N(wi(j)?j:Y);be=Po(H),$e=j?!Y.some(q=>Qe(H,q)):be}else j?($e=(await Promise.all(Y.map(async H=>{const q=Qe(r,H);return await O(q&&q._f?{[H]:q}:q)}))).every(Boolean),!(!$e&&!i.isValid)&&_()):$e=be=await O(r);return h.state.next({...!ll(j)||d.isValid&&be!==i.isValid?{}:{name:j},...t.resolver||!j?{isValid:be}:{},errors:i.errors,isValidating:!1}),le.shouldFocus&&!$e&&TI(r,H=>H&&Qe(i.errors,H),j?Y:l.mount),$e},ue=j=>{const le={...s,...a.mount?o:{}};return wi(j)?le:ll(j)?Qe(le,j):j.map(be=>Qe(le,be))},Z=(j,le)=>({invalid:!!Qe((le||i).errors,j),isDirty:!!Qe((le||i).dirtyFields,j),isTouched:!!Qe((le||i).touchedFields,j),error:Qe((le||i).errors,j)}),X=j=>{j&&Uw(j).forEach(le=>Cr(i.errors,le)),h.state.next({errors:j?i.errors:{}})},ce=(j,le,be)=>{const $e=(Qe(r,j,{_f:{}})._f||{}).ref;Hn(i.errors,j,{...le,ref:$e}),h.state.next({name:j,errors:i.errors,isValid:!1}),be&&be.shouldFocus&&$e&&$e.focus&&$e.focus()},De=(j,le)=>Tu(j)?h.values.subscribe({next:be=>j(B(void 0,le),be)}):B(j,le,!0),te=(j,le={})=>{for(const be of j?Uw(j):l.mount)l.mount.delete(be),l.array.delete(be),le.keepValue||(Cr(r,be),Cr(o,be)),!le.keepError&&Cr(i.errors,be),!le.keepDirty&&Cr(i.dirtyFields,be),!le.keepTouched&&Cr(i.touchedFields,be),!t.shouldUnregister&&!le.keepDefaultValue&&Cr(s,be);h.values.next({values:{...o}}),h.state.next({...i,...le.keepDirty?{isDirty:M()}:{}}),!le.keepIsValid&&_()},xe=(j,le={})=>{let be=Qe(r,j);const $e=Jg(le.disabled);return Hn(r,j,{...be||{},_f:{...be&&be._f?be._f:{ref:{name:j}},name:j,mount:!0,...le}}),l.mount.add(j),be?$e&&Hn(o,j,le.disabled?void 0:Qe(o,j,PI(be._f))):k(j,!0,le.value),{...$e?{disabled:le.disabled}:{},...t.progressive?{required:!!le.required,min:M_(le.min),max:M_(le.max),minLength:M_(le.minLength),maxLength:M_(le.maxLength),pattern:M_(le.pattern)}:{},name:j,onChange:ie,onBlur:ie,ref:Y=>{if(Y){xe(j,le),be=Qe(r,j);const H=wi(Y.value)&&Y.querySelectorAll&&Y.querySelectorAll("input,select,textarea")[0]||Y,q=A8e(H),R=be._f.refs||[];if(q?R.find(F=>F===H):H===be._f.ref)return;Hn(r,j,{_f:{...be._f,...q?{refs:[...R.filter(NI),H,...Array.isArray(Qe(s,j))?[{}]:[]],ref:{type:H.type,name:j}}:{ref:H}}}),k(j,!1,void 0,H)}else be=Qe(r,j,{}),be._f&&(be._f.mount=!1),(t.shouldUnregister||le.shouldUnregister)&&!(Tz(l.array,j)&&a.action)&&l.unMount.add(j)}}},ge=()=>t.shouldFocusError&&TI(r,j=>j&&Qe(i.errors,j),l.mount),Ce=(j,le)=>async be=>{be&&(be.preventDefault&&be.preventDefault(),be.persist&&be.persist());let $e=al(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Y,values:H}=await E();i.errors=Y,$e=H}else await O(r);Cr(i.errors,"root"),Po(i.errors)?(h.state.next({errors:{}}),await j($e,be)):(le&&await le({...i.errors},be),ge(),setTimeout(ge)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Po(i.errors),submitCount:i.submitCount+1,errors:i.errors})},Se=(j,le={})=>{Qe(r,j)&&(wi(le.defaultValue)?se(j,Qe(s,j)):(se(j,le.defaultValue),Hn(s,j,le.defaultValue)),le.keepTouched||Cr(i.touchedFields,j),le.keepDirty||(Cr(i.dirtyFields,j),i.isDirty=le.defaultValue?M(j,Qe(s,j)):M()),le.keepError||(Cr(i.errors,j),d.isValid&&_()),h.state.next({...i}))},pe=(j,le={})=>{const be=j||s,$e=al(be),Y=j&&!Po(j)?$e:s;if(le.keepDefaultValues||(s=be),!le.keepValues){if(le.keepDirtyValues||f)for(const H of l.mount)Qe(i.dirtyFields,H)?Hn(Y,H,Qe(o,H)):se(H,Qe(Y,H));else{if(kI&&wi(j))for(const H of l.mount){const q=Qe(r,H);if(q&&q._f){const R=Array.isArray(q._f.refs)?q._f.refs[0]:q._f.ref;if(qw(R)){const F=R.closest("form");if(F){F.reset();break}}}}r={}}o=n.shouldUnregister?le.keepDefaultValues?al(s):{}:al(Y),h.array.next({values:{...Y}}),h.values.next({values:{...Y}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&e(),a.mount=!d.isValid||!!le.keepIsValid,a.watch=!!n.shouldUnregister,h.state.next({submitCount:le.keepSubmitCount?i.submitCount:0,isDirty:le.keepDirty?i.isDirty:!!(le.keepDefaultValues&&!yh(j,s)),isSubmitted:le.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:le.keepDirtyValues?i.dirtyFields:le.keepDefaultValues&&j?MI(s,j):{},touchedFields:le.keepTouched?i.touchedFields:{},errors:le.keepErrors?i.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Q=(j,le)=>pe(Tu(j)?j(o):j,le);return{control:{register:xe,unregister:te,getFieldState:Z,handleSubmit:Ce,setError:ce,_executeSchema:E,_getWatch:B,_getDirty:M,_updateValid:_,_removeUnmounted:I,_updateFieldArray:y,_getFieldArray:V,_reset:pe,_resetDefaultValues:()=>Tu(t.defaultValues)&&t.defaultValues().then(j=>{Q(j,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:j=>{i={...i,...j}},_subjects:h,_proxyFormState:d,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(j){a=j},get _defaultValues(){return s},get _names(){return l},set _names(j){l=j},get _formState(){return i},set _formState(j){i=j},get _options(){return t},set _options(j){t={...t,...j}}},trigger:J,register:xe,handleSubmit:Ce,watch:De,setValue:se,getValues:ue,reset:Q,resetField:Se,clearErrors:X,unregister:te,setError:ce,setFocus:(j,le={})=>{const be=Qe(r,j),$e=be&&be._f;if($e){const Y=$e.refs?$e.refs[0]:$e.ref;Y.focus&&(Y.focus(),le.shouldSelect&&Y.select())}},getFieldState:Z}}function B8e(n={}){const e=T.useRef(),t=T.useRef(),[i,r]=T.useState({isDirty:!1,isValidating:!1,isLoading:Tu(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Tu(n.defaultValues)?void 0:n.defaultValues});e.current||(e.current={...F8e(n,()=>r(o=>({...o}))),formState:i});const s=e.current.control;return s._options=n,DI({subject:s._subjects.state,next:o=>{Oz(o,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),T.useEffect(()=>{n.values&&!yh(n.values,t.current)?(s._reset(n.values,s._options.resetOptions),t.current=n.values):s._resetDefaultValues()},[n.values,s]),T.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),e.current.formState=Az(i,s),e.current}function W8e(n){const{name:e,readOnly:t,validate:i,...r}=n,{control:s,formState:{isSubmitting:o}}=bc();return x.jsx(Qg,{name:e,control:s,shouldUnregister:!0,render:({field:{onChange:a,value:l}})=>x.jsx(P.Checkbox,{...r,id:n.id??e.split(".").join("-"),isChecked:!!l,onChange:a,readOnly:t||o,minLength:void 0,maxLength:void 0,ref:void 0}),rules:{validate:i}})}function cl(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Xz(n){return typeof n>"u"||n===null}function V8e(n){return typeof n=="object"&&n!==null}function $8e(n){return Array.isArray(n)?n:Xz(n)?[]:[n]}function H8e(n,e){var t,i,r,s;if(e)for(s=Object.keys(e),t=0,i=s.length;t<i;t+=1)r=s[t],n[r]=e[r];return n}function j8e(n,e){var t="",i;for(i=0;i<e;i+=1)t+=n;return t}function z8e(n){return n===0&&Number.NEGATIVE_INFINITY===1/n}var U8e=Xz,q8e=V8e,K8e=$8e,G8e=j8e,Y8e=z8e,Z8e=H8e,Xi={isNothing:U8e,isObject:q8e,toArray:K8e,repeat:G8e,isNegativeZero:Y8e,extend:Z8e};function Qz(n,e){var t="",i=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(t+='in "'+n.mark.name+'" '),t+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!e&&n.mark.snippet&&(t+=`
|
372
372
|
|
373
373
|
`+n.mark.snippet),i+" "+t):i}function P_(n,e){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=e,this.message=Qz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}P_.prototype=Object.create(Error.prototype),P_.prototype.constructor=P_,P_.prototype.toString=function(e){return this.name+": "+Qz(this,e)};var is=P_;function RI(n,e,t,i,r){var s="",o="",a=Math.floor(r/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),t-i>a&&(o=" ...",t=i+a-o.length),{str:s+n.slice(e,t).replace(/\t/g,"→")+o,pos:i-e+s.length}}function FI(n,e){return Xi.repeat(" ",e-n.length)+n}function X8e(n,e){if(e=Object.create(e||null),!n.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var t=/\r?\n|\r|\0/g,i=[0],r=[],s,o=-1;s=t.exec(n.buffer);)r.push(s.index),i.push(s.index+s[0].length),n.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(n.line+e.linesAfter,r.length).toString().length,d=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=RI(n.buffer,i[o-l],r[o-l],n.position-(i[o]-i[o-l]),d),a=Xi.repeat(" ",e.indent)+FI((n.line-l+1).toString(),u)+" | "+c.str+`
|
374
374
|
`+a;for(c=RI(n.buffer,i[o],r[o],n.position,d),a+=Xi.repeat(" ",e.indent)+FI((n.line+1).toString(),u)+" | "+c.str+`
|
@@ -422,7 +422,7 @@ Received: '{1}'.`,e,ml.getLexeme(t)),s=t.offset,o=ml.getLexeme(t);return this._p
|
|
422
422
|
`||n===" "}let kt=class ea{static fromRange(e){return new ea(e.startLineNumber,e.endLineNumber)}static subtract(e,t){return t?e.startLineNumber<t.startLineNumber&&t.endLineNumberExclusive<e.endLineNumberExclusive?[new ea(e.startLineNumber,t.startLineNumber),new ea(t.endLineNumberExclusive,e.endLineNumberExclusive)]:t.startLineNumber<=e.startLineNumber&&e.endLineNumberExclusive<=t.endLineNumberExclusive?[]:t.endLineNumberExclusive<e.endLineNumberExclusive?[new ea(Math.max(t.endLineNumberExclusive,e.startLineNumber),e.endLineNumberExclusive)]:[new ea(e.startLineNumber,Math.min(t.startLineNumber,e.endLineNumberExclusive))]:[e]}static joinMany(e){if(e.length===0)return[];let t=e[0];for(let i=1;i<e.length;i++)t=this.join(t,e[i]);return t}static join(e,t){if(e.length===0)return t;if(t.length===0)return e;const i=[];let r=0,s=0,o=null;for(;r<e.length||s<t.length;){let a=null;if(r<e.length&&s<t.length){const l=e[r],c=t[s];l.startLineNumber<c.startLineNumber?(a=l,r++):(a=c,s++)}else r<e.length?(a=e[r],r++):(a=t[s],s++);o===null?o=a:o.endLineNumberExclusive>=a.startLineNumber?o=new ea(o.startLineNumber,Math.max(o.endLineNumberExclusive,a.endLineNumberExclusive)):(i.push(o),o=a)}return o!==null&&i.push(o),i}static ofLength(e,t){return new ea(e,e+t)}static deserialize(e){return new ea(e[0],e[1])}constructor(e,t){if(e>t)throw new Ji(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new ea(this.startLineNumber+e,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new ea(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new ea(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new G(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new G(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}};class iG{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class no{static inverse(e,t,i){const r=[];let s=1,o=1;for(const l of e){const c=new no(new kt(s,l.originalRange.startLineNumber),new kt(o,l.modifiedRange.startLineNumber),void 0);c.modifiedRange.isEmpty||r.push(c),s=l.originalRange.endLineNumberExclusive,o=l.modifiedRange.endLineNumberExclusive}const a=new no(new kt(s,t+1),new kt(o,i+1),void 0);return a.modifiedRange.isEmpty||r.push(a),r}constructor(e,t,i){this.originalRange=e,this.modifiedRange=t,this.innerChanges=i}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new no(this.modifiedRange,this.originalRange,(e=this.innerChanges)===null||e===void 0?void 0:e.map(t=>t.flip()))}}class Tc{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Tc(this.modifiedRange,this.originalRange)}}class $h{constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new $h(this.modified,this.original)}}class Fm{constructor(e,t){this.lineRangeMapping=e,this.changes=t}flip(){return new Fm(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}const CHe=3;class wHe{computeDiff(e,t,i){var r;const o=new LHe(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const c of o.changes){let u;c.originalEndLineNumber===0?u=new kt(c.originalStartLineNumber+1,c.originalStartLineNumber+1):u=new kt(c.originalStartLineNumber,c.originalEndLineNumber+1);let d;c.modifiedEndLineNumber===0?d=new kt(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):d=new kt(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let h=new no(u,d,(r=c.charChanges)===null||r===void 0?void 0:r.map(f=>new Tc(new G(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn),new G(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn))));l&&(l.modifiedRange.endLineNumberExclusive===h.modifiedRange.startLineNumber||l.originalRange.endLineNumberExclusive===h.originalRange.startLineNumber)&&(h=new no(l.originalRange.join(h.originalRange),l.modifiedRange.join(h.modifiedRange),l.innerChanges&&h.innerChanges?l.innerChanges.concat(h.innerChanges):void 0),a.pop()),a.push(h),l=h}return nv(()=>cK(a,(c,u)=>u.originalRange.startLineNumber-c.originalRange.endLineNumberExclusive===u.modifiedRange.startLineNumber-c.modifiedRange.endLineNumberExclusive&&c.originalRange.endLineNumberExclusive<u.originalRange.startLineNumber&&c.modifiedRange.endLineNumberExclusive<u.modifiedRange.startLineNumber)),new iG(a,[],o.quitEarly)}}function rG(n,e,t,i){return new Ec(n,e,t).ComputeDiff(i)}let sG=class{constructor(e){const t=[],i=[];for(let r=0,s=e.length;r<s;r++)t[r]=QO(e[r],1),i[r]=JO(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const r=[],s=[],o=[];let a=0;for(let l=t;l<=i;l++){const c=this.lines[l],u=e?this._startColumns[l]:1,d=e?this._endColumns[l]:c.length+1;for(let h=u;h<d;h++)r[a]=c.charCodeAt(h-1),s[a]=l+1,o[a]=h,a++;!e&&l<i&&(r[a]=10,s[a]=l+1,o[a]=c.length+1,a++)}return new SHe(r,s,o)}};class SHe{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map((e,t)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class Bm{constructor(e,t,i,r,s,o,a,l){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=l}static createFromDiffChange(e,t,i){const r=t.getStartLineNumber(e.originalStart),s=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),l=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),u=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Bm(r,s,o,a,l,c,u,d)}}function xHe(n){if(n.length<=1)return n;const e=[n[0]];let t=e[0];for(let i=1,r=n.length;i<r;i++){const s=n[i],o=s.originalStart-(t.originalStart+t.originalLength),a=s.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(o,a)<CHe?(t.originalLength=s.originalStart+s.originalLength-t.originalStart,t.modifiedLength=s.modifiedStart+s.modifiedLength-t.modifiedStart):(e.push(s),t=s)}return e}class mv{constructor(e,t,i,r,s){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=r,this.charChanges=s}static createFromDiffResult(e,t,i,r,s,o,a){let l,c,u,d,h;if(t.originalLength===0?(l=i.getStartLineNumber(t.originalStart)-1,c=0):(l=i.getStartLineNumber(t.originalStart),c=i.getEndLineNumber(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(u=r.getStartLineNumber(t.modifiedStart)-1,d=0):(u=r.getStartLineNumber(t.modifiedStart),d=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&s()){const f=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),g=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(f.getElements().length>0&&g.getElements().length>0){let m=rG(f,g,s,!0).changes;a&&(m=xHe(m)),h=[];for(let p=0,v=m.length;p<v;p++)h.push(Bm.createFromDiffChange(m[p],f,g))}}return new mv(l,c,u,d,h)}}class LHe{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new sG(e),this.modified=new sG(t),this.continueLineDiff=oG(i.maxComputationTime),this.continueCharDiff=oG(i.maxComputationTime===0?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=rG(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const a=[];for(let l=0,c=t.length;l<c;l++)a.push(mv.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[l],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:a}}const r=[];let s=0,o=0;for(let a=-1,l=t.length;a<l;a++){const c=a+1<l?t[a+1]:null,u=c?c.originalStart:this.originalLines.length,d=c?c.modifiedStart:this.modifiedLines.length;for(;s<u&&o<d;){const h=this.originalLines[s],f=this.modifiedLines[o];if(h!==f){{let g=QO(h,1),m=QO(f,1);for(;g>1&&m>1;){const p=h.charCodeAt(g-2),v=f.charCodeAt(m-2);if(p!==v)break;g--,m--}(g>1||m>1)&&this._pushTrimWhitespaceCharChange(r,s+1,1,g,o+1,1,m)}{let g=JO(h,1),m=JO(f,1);const p=h.length+1,v=f.length+1;for(;g<p&&m<v;){const _=h.charCodeAt(g-1),b=h.charCodeAt(m-1);if(_!==b)break;g++,m++}(g<p||m<v)&&this._pushTrimWhitespaceCharChange(r,s+1,g,p,o+1,m,v)}}s++,o++}c&&(r.push(mv.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=c.originalLength,o+=c.modifiedLength)}return{quitEarly:i,changes:r}}_pushTrimWhitespaceCharChange(e,t,i,r,s,o,a){if(this._mergeTrimWhitespaceCharChange(e,t,i,r,s,o,a))return;let l;this.shouldComputeCharChanges&&(l=[new Bm(t,i,t,r,s,o,s,a)]),e.push(new mv(t,t,s,s,l))}_mergeTrimWhitespaceCharChange(e,t,i,r,s,o,a){const l=e.length;if(l===0)return!1;const c=e[l-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===t&&c.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new Bm(t,i,t,r,s,o,s,a)),!0):c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===s?(c.originalEndLineNumber=t,c.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new Bm(t,i,t,r,s,o,s,a)),!0):!1}}function QO(n,e){const t=ds(n);return t===-1?e:t+1}function JO(n,e){const t=Th(n);return t===-1?e:t+2}function oG(n){if(n===0)return()=>!0;const e=Date.now();return()=>Date.now()-e<n}class Wt{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let r=i;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(i===r)t.splice(i,0,e);else{const s=Math.min(e.start,t[i].start),o=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(i,r-i,new Wt(s,o))}}static tryCreate(e,t){if(!(e>t))return new Wt(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new Ji(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Wt(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Wt(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new Wt(t,i)}}class Ic{static trivial(e,t){return new Ic([new Rs(new Wt(0,e.length),new Wt(0,t.length))],!1)}static trivialTimedOut(e,t){return new Ic([new Rs(new Wt(0,e.length),new Wt(0,t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Rs{constructor(e,t){this.seq1Range=e,this.seq2Range=t}reverse(){return new Rs(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Rs(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new Rs(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class pv{isValid(){return!0}}pv.instance=new pv;class kHe{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Ji("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class eN{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}class DHe{compute(e,t,i=pv.instance,r){if(e.length===0||t.length===0)return Ic.trivial(e,t);const s=new eN(e.length,t.length),o=new eN(e.length,t.length),a=new eN(e.length,t.length);for(let g=0;g<e.length;g++)for(let m=0;m<t.length;m++){if(!i.isValid())return Ic.trivialTimedOut(e,t);const p=g===0?0:s.get(g-1,m),v=m===0?0:s.get(g,m-1);let _;e.getElement(g)===t.getElement(m)?(g===0||m===0?_=0:_=s.get(g-1,m-1),g>0&&m>0&&o.get(g-1,m-1)===3&&(_+=a.get(g-1,m-1)),_+=r?r(g,m):1):_=-1;const b=Math.max(p,v,_);if(b===_){const y=g>0&&m>0?a.get(g-1,m-1):0;a.set(g,m,y+1),o.set(g,m,3)}else b===p?(a.set(g,m,0),o.set(g,m,1)):b===v&&(a.set(g,m,0),o.set(g,m,2));s.set(g,m,b)}const l=[];let c=e.length,u=t.length;function d(g,m){(g+1!==c||m+1!==u)&&l.push(new Rs(new Wt(g+1,c),new Wt(m+1,u))),c=g,u=m}let h=e.length-1,f=t.length-1;for(;h>=0&&f>=0;)o.get(h,f)===3?(d(h,f),h--,f--):o.get(h,f)===1?h--:f--;return d(-1,-1),l.reverse(),new Ic(l,!1)}}function aG(n,e,t){let i=t;return i=IHe(n,e,i),i=AHe(n,e,i),i}function EHe(n,e,t){const i=[];for(const r of t){const s=i[i.length-1];if(!s){i.push(r);continue}r.seq1Range.start-s.seq1Range.endExclusive<=2||r.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new Rs(s.seq1Range.join(r.seq1Range),s.seq2Range.join(r.seq2Range)):i.push(r)}return i}function THe(n,e,t){let i=t;if(i.length===0)return i;let r=0,s;do{s=!1;const o=[i[0]];for(let a=1;a<i.length;a++){let u=function(h,f){const g=new Wt(c.seq1Range.endExclusive,l.seq1Range.start);if(n.countLinesIn(g)>5||g.length>500)return!1;const p=n.getText(g).trim();if(p.length>20||p.split(/\r\n|\r|\n/).length>1)return!1;const v=n.countLinesIn(h.seq1Range),_=h.seq1Range.length,b=e.countLinesIn(h.seq2Range),y=h.seq2Range.length,w=n.countLinesIn(f.seq1Range),k=f.seq1Range.length,L=e.countLinesIn(f.seq2Range),D=f.seq2Range.length,E=2*40+50;function N(O){return Math.min(O,E)}return Math.pow(Math.pow(N(v*40+_),1.5)+Math.pow(N(b*40+y),1.5),1.5)+Math.pow(Math.pow(N(w*40+k),1.5)+Math.pow(N(L*40+D),1.5),1.5)>Math.pow(Math.pow(E,1.5),1.5)*1.3};const l=i[a],c=o[o.length-1];u(c,l)?(s=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(r++<10&&s);return i}function IHe(n,e,t){if(t.length===0)return t;const i=[];i.push(t[0]);for(let s=1;s<t.length;s++){const o=i[i.length-1];let a=t[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const l=a.seq1Range.start-o.seq1Range.endExclusive;let c;for(c=1;c<=l&&!(n.getElement(a.seq1Range.start-c)!==n.getElement(a.seq1Range.endExclusive-c)||e.getElement(a.seq2Range.start-c)!==e.getElement(a.seq2Range.endExclusive-c));c++);if(c--,c===l){i[i.length-1]=new Rs(new Wt(o.seq1Range.start,a.seq1Range.endExclusive-l),new Wt(o.seq2Range.start,a.seq2Range.endExclusive-l));continue}a=a.delta(-c)}i.push(a)}const r=[];for(let s=0;s<i.length-1;s++){const o=i[s+1];let a=i[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const l=o.seq1Range.start-a.seq1Range.endExclusive;let c;for(c=0;c<l&&!(n.getElement(a.seq1Range.start+c)!==n.getElement(a.seq1Range.endExclusive+c)||e.getElement(a.seq2Range.start+c)!==e.getElement(a.seq2Range.endExclusive+c));c++);if(c===l){i[s+1]=new Rs(new Wt(a.seq1Range.start+l,o.seq1Range.endExclusive),new Wt(a.seq2Range.start+l,o.seq2Range.endExclusive));continue}c>0&&(a=a.delta(c))}r.push(a)}return i.length>0&&r.push(i[i.length-1]),r}function AHe(n,e,t){if(!n.getBoundaryScore||!e.getBoundaryScore)return t;for(let i=0;i<t.length;i++){const r=i>0?t[i-1]:void 0,s=t[i],o=i+1<t.length?t[i+1]:void 0,a=new Wt(r?r.seq1Range.start+1:0,o?o.seq1Range.endExclusive-1:n.length),l=new Wt(r?r.seq2Range.start+1:0,o?o.seq2Range.endExclusive-1:e.length);s.seq1Range.isEmpty?t[i]=lG(s,n,e,a,l):s.seq2Range.isEmpty&&(t[i]=lG(s.reverse(),e,n,l,a).reverse())}return t}function lG(n,e,t,i,r){let o=1;for(;n.seq1Range.start-o>=i.start&&n.seq2Range.start-o>=r.start&&t.getElement(n.seq2Range.start-o)===t.getElement(n.seq2Range.endExclusive-o)&&o<100;)o++;o--;let a=0;for(;n.seq1Range.start+a<i.endExclusive&&n.seq2Range.endExclusive+a<r.endExclusive&&t.getElement(n.seq2Range.start+a)===t.getElement(n.seq2Range.endExclusive+a)&&a<100;)a++;if(o===0&&a===0)return n;let l=0,c=-1;for(let u=-o;u<=a;u++){const d=n.seq2Range.start+u,h=n.seq2Range.endExclusive+u,f=n.seq1Range.start+u,g=e.getBoundaryScore(f)+t.getBoundaryScore(d)+t.getBoundaryScore(h);g>c&&(c=g,l=u)}return n.delta(l)}class OHe{compute(e,t,i=pv.instance){if(e.length===0||t.length===0)return Ic.trivial(e,t);function r(f,g){for(;f<e.length&&g<t.length&&e.getElement(f)===t.getElement(g);)f++,g++;return f}let s=0;const o=new NHe;o.set(0,r(0,0));const a=new MHe;a.set(0,o.get(0)===0?null:new cG(null,0,0,o.get(0)));let l=0;e:for(;;){if(s++,!i.isValid())return Ic.trivialTimedOut(e,t);const f=-Math.min(s,t.length+s%2),g=Math.min(s,e.length+s%2);for(l=f;l<=g;l+=2){const m=l===g?-1:o.get(l+1),p=l===f?-1:o.get(l-1)+1,v=Math.min(Math.max(m,p),e.length),_=v-l;if(v>e.length||_>t.length)continue;const b=r(v,_);o.set(l,b);const y=v===m?a.get(l+1):a.get(l-1);if(a.set(l,b!==v?new cG(y,v,_,b-v):y),o.get(l)===e.length&&o.get(l)-l===t.length)break e}}let c=a.get(l);const u=[];let d=e.length,h=t.length;for(;;){const f=c?c.x+c.length:0,g=c?c.y+c.length:0;if((f!==d||g!==h)&&u.push(new Rs(new Wt(f,d),new Wt(g,h))),!c)break;d=c.x,h=c.y,c=c.prev}return u.reverse(),new Ic(u,!1)}}class cG{constructor(e,t,i,r){this.prev=e,this.x=t,this.y=i,this.length=r}}class NHe{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[e]=t}}}class MHe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class PHe{constructor(){this.dynamicProgrammingDiffing=new DHe,this.myersDiffingAlgorithm=new OHe}computeDiff(e,t,i){if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return{changes:[new no(new kt(1,e.length+1),new kt(1,t.length+1),[new Tc(new G(1,1,e.length,e[0].length+1),new G(1,1,t.length,t[0].length+1))])],hitTimeout:!1,moves:[]};const r=i.maxComputationTimeMs===0?pv.instance:new kHe(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,o=new Map;function a(w){let k=o.get(w);return k===void 0&&(k=o.size,o.set(w,k)),k}const l=e.map(w=>a(w.trim())),c=t.map(w=>a(w.trim())),u=new uG(l,e),d=new uG(c,t),h=(()=>u.length+d.length<1500?this.dynamicProgrammingDiffing.compute(u,d,r,(w,k)=>e[w]===t[k]?t[k].length===0?.1:1+Math.log(1+t[k].length):.99):this.myersDiffingAlgorithm.compute(u,d))();let f=h.diffs,g=h.hitTimeout;f=aG(u,d,f);const m=[],p=w=>{if(s)for(let k=0;k<w;k++){const L=v+k,D=_+k;if(e[L]!==t[D]){const E=this.refineDiff(e,t,new Rs(new Wt(L,L+1),new Wt(D,D+1)),r,s);for(const N of E.mappings)m.push(N);E.hitTimeout&&(g=!0)}}};let v=0,_=0;for(const w of f){nv(()=>w.seq1Range.start-v===w.seq2Range.start-_);const k=w.seq1Range.start-v;p(k),v=w.seq1Range.endExclusive,_=w.seq2Range.endExclusive;const L=this.refineDiff(e,t,w,r,s);L.hitTimeout&&(g=!0);for(const D of L.mappings)m.push(D)}p(e.length-v);const b=tN(m,e,t),y=[];if(i.computeMoves){const w=b.filter(L=>L.modifiedRange.isEmpty&&L.originalRange.length>=3).map(L=>new pG(L.originalRange,e)),k=new Set(b.filter(L=>L.originalRange.isEmpty&&L.modifiedRange.length>=3).map(L=>new pG(L.modifiedRange,t)));for(const L of w){let D=-1,E;for(const N of k){const O=L.computeSimilarity(N);O>D&&(D=O,E=N)}if(D>.9&&E){const N=this.refineDiff(e,t,new Rs(new Wt(L.range.startLineNumber-1,L.range.endLineNumberExclusive-1),new Wt(E.range.startLineNumber-1,E.range.endLineNumberExclusive-1)),r,s),O=tN(N.mappings,e,t,!0);k.delete(E),y.push(new Fm(new $h(L.range,E.range),O))}}}return nv(()=>{function w(L,D){if(L.lineNumber<1||L.lineNumber>D.length)return!1;const E=D[L.lineNumber-1];return!(L.column<1||L.column>E.length+1)}function k(L,D){return!(L.startLineNumber<1||L.startLineNumber>D.length+1||L.endLineNumberExclusive<1||L.endLineNumberExclusive>D.length+1)}for(const L of b){if(!L.innerChanges)return!1;for(const D of L.innerChanges)if(!(w(D.modifiedRange.getStartPosition(),t)&&w(D.modifiedRange.getEndPosition(),t)&&w(D.originalRange.getStartPosition(),e)&&w(D.originalRange.getEndPosition(),e)))return!1;if(!k(L.modifiedRange,t)||!k(L.originalRange,e))return!1}return!0}),new iG(b,y,g)}refineDiff(e,t,i,r,s){const o=new hG(e,i.seq1Range,s),a=new hG(t,i.seq2Range,s),l=o.length+a.length<500?this.dynamicProgrammingDiffing.compute(o,a,r):this.myersDiffingAlgorithm.compute(o,a,r);let c=l.diffs;return c=aG(o,a,c),c=RHe(o,a,c),c=EHe(o,a,c),c=THe(o,a,c),{mappings:c.map(d=>new Tc(o.translateRange(d.seq1Range),a.translateRange(d.seq2Range))),hitTimeout:l.hitTimeout}}}function RHe(n,e,t){const i=[];let r;function s(){if(!r)return;const a=r.s1Range.length-r.deleted;r.s2Range.length-r.added,Math.max(r.deleted,r.added)+(r.count-1)>a&&i.push(new Rs(r.s1Range,r.s2Range)),r=void 0}for(const a of t){let l=function(f,g){var m,p,v,_;if(!r||!r.s1Range.containsRange(f)||!r.s2Range.containsRange(g))if(r&&!(r.s1Range.endExclusive<f.start&&r.s2Range.endExclusive<g.start)){const w=Wt.tryCreate(r.s1Range.endExclusive,f.start),k=Wt.tryCreate(r.s2Range.endExclusive,g.start);r.deleted+=(m=w==null?void 0:w.length)!==null&&m!==void 0?m:0,r.added+=(p=k==null?void 0:k.length)!==null&&p!==void 0?p:0,r.s1Range=r.s1Range.join(f),r.s2Range=r.s2Range.join(g)}else s(),r={added:0,deleted:0,count:0,s1Range:f,s2Range:g};const b=f.intersect(a.seq1Range),y=g.intersect(a.seq2Range);r.count++,r.deleted+=(v=b==null?void 0:b.length)!==null&&v!==void 0?v:0,r.added+=(_=y==null?void 0:y.length)!==null&&_!==void 0?_:0};const c=n.findWordContaining(a.seq1Range.start-1),u=e.findWordContaining(a.seq2Range.start-1),d=n.findWordContaining(a.seq1Range.endExclusive),h=e.findWordContaining(a.seq2Range.endExclusive);c&&d&&u&&h&&c.equals(d)&&u.equals(h)?l(c,u):(c&&u&&l(c,u),d&&h&&l(d,h))}return s(),FHe(t,i)}function FHe(n,e){const t=[];for(;n.length>0||e.length>0;){const i=n[0],r=e[0];let s;i&&(!r||i.seq1Range.start<r.seq1Range.start)?s=n.shift():s=e.shift(),t.length>0&&t[t.length-1].seq1Range.endExclusive>=s.seq1Range.start?t[t.length-1]=t[t.length-1].join(s):t.push(s)}return t}function tN(n,e,t,i=!1){const r=[];for(const s of WHe(n.map(o=>BHe(o,e,t)),(o,a)=>o.originalRange.overlapOrTouch(a.originalRange)||o.modifiedRange.overlapOrTouch(a.modifiedRange))){const o=s[0],a=s[s.length-1];r.push(new no(o.originalRange.join(a.originalRange),o.modifiedRange.join(a.modifiedRange),s.map(l=>l.innerChanges[0])))}return nv(()=>!i&&r.length>0&&r[0].originalRange.startLineNumber!==r[0].modifiedRange.startLineNumber?!1:cK(r,(s,o)=>o.originalRange.startLineNumber-s.originalRange.endLineNumberExclusive===o.modifiedRange.startLineNumber-s.modifiedRange.endLineNumberExclusive&&s.originalRange.endLineNumberExclusive<o.originalRange.startLineNumber&&s.modifiedRange.endLineNumberExclusive<o.modifiedRange.startLineNumber)),r}function BHe(n,e,t){let i=0,r=0;n.modifiedRange.endColumn===1&&n.originalRange.endColumn===1&&n.originalRange.startLineNumber+i<=n.originalRange.endLineNumber&&n.modifiedRange.startLineNumber+i<=n.modifiedRange.endLineNumber&&(r=-1),n.modifiedRange.startColumn-1>=t[n.modifiedRange.startLineNumber-1].length&&n.originalRange.startColumn-1>=e[n.originalRange.startLineNumber-1].length&&n.originalRange.startLineNumber<=n.originalRange.endLineNumber+r&&n.modifiedRange.startLineNumber<=n.modifiedRange.endLineNumber+r&&(i=1);const s=new kt(n.originalRange.startLineNumber+i,n.originalRange.endLineNumber+1+r),o=new kt(n.modifiedRange.startLineNumber+i,n.modifiedRange.endLineNumber+1+r);return new no(s,o,[n])}function*WHe(n,e){let t,i;for(const r of n)i!==void 0&&e(i,r)?t.push(r):(t&&(yield t),t=[r]),i=r;t&&(yield t)}class uG{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const t=e===0?0:dG(this.lines[e-1]),i=e===this.lines.length?0:dG(this.lines[e]);return 1e3-(t+i)}}function dG(n){let e=0;for(;e<n.length&&(n.charCodeAt(e)===32||n.charCodeAt(e)===9);)e++;return e}class hG{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLineMinusOne=[],this.offsetByLine=[];let r=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Wt(t.start-1,t.endExclusive),r=!0),this.lineRange=t;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let o=e[s],a=0;if(r)a=o.length,o="",r=!1;else if(!i){const l=o.trimStart();a=o.length-l.length,o=l.trimEnd()}this.offsetByLine.push(a);for(let l=0;l<o.length;l++)this.elements.push(o.charCodeAt(l));s<e.length-1&&(this.elements.push(`
|
423
423
|
`.charCodeAt(0)),this.firstCharOffsetByLineMinusOne[s-this.lineRange.start]=this.elements.length)}this.offsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Wt(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(t=>String.fromCharCode(t)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=gG(e>0?this.elements[e-1]:-1),i=gG(e<this.elements.length?this.elements[e]:-1);if(t===6&&i===7)return 0;let r=0;return t!==i&&(r+=10,i===1&&(r+=1)),r+=fG(t),r+=fG(i),r}translateOffset(e){if(this.lineRange.isEmpty)return new de(this.lineRange.start+1,1);let t=0,i=this.firstCharOffsetByLineMinusOne.length;for(;t<i;){const s=Math.floor((t+i)/2);this.firstCharOffsetByLineMinusOne[s]>e?i=s:t=s+1}const r=t===0?0:this.firstCharOffsetByLineMinusOne[t-1];return new de(this.lineRange.start+t+1,e-r+1+this.offsetByLine[t])}translateRange(e){return G.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!nN(this.elements[e]))return;let t=e;for(;t>0&&nN(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&nN(this.elements[i]);)i++;return new Wt(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}}function nN(n){return n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57}const VHe={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function fG(n){return VHe[n]}function gG(n){return n===10?7:n===13?6:$He(n)?5:n>=97&&n<=122?0:n>=65&&n<=90?1:n>=48&&n<=57?2:n===-1?3:4}function $He(n){return n===32||n===9}const iN=new Map;function mG(n){let e=iN.get(n);return e===void 0&&(e=iN.size,iN.set(n,e)),e}class pG{constructor(e,t){this.range=e,this.lines=t,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const s=t[r];for(let a=0;a<s.length;a++){i++;const l=s[a],c=mG(l);this.histogram[c]=(this.histogram[c]||0)+1}i++;const o=mG(`
|
424
424
|
`);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=i}computeSimilarity(e){var t,i;let r=0;const s=Math.max(this.histogram.length,e.histogram.length);for(let o=0;o<s;o++)r+=Math.abs(((t=this.histogram[o])!==null&&t!==void 0?t:0)-((i=e.histogram[o])!==null&&i!==void 0?i:0));return 1-r/(this.totalCount+e.totalCount)}}const _G={getLegacy:()=>new wHe,getAdvanced:()=>new PHe};function Zu(n,e){const t=Math.pow(10,e);return Math.round(n*t)/t}class Ct{constructor(e,t,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=Zu(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class zo{constructor(e,t,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Zu(Math.max(Math.min(1,t),0),3),this.l=Zu(Math.max(Math.min(1,i),0),3),this.a=Zu(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,r=e.b/255,s=e.a,o=Math.max(t,i,r),a=Math.min(t,i,r);let l=0,c=0;const u=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),o){case t:l=(i-r)/d+(i<r?6:0);break;case i:l=(r-t)/d+2;break;case r:l=(t-i)/d+4;break}l*=60,l=Math.round(l)}return new zo(l,c,u,s)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:r,a:s}=e;let o,a,l;if(i===0)o=a=l=r;else{const c=r<.5?r*(1+i):r+i-r*i,u=2*r-c;o=zo._hue2rgb(u,c,t+1/3),a=zo._hue2rgb(u,c,t),l=zo._hue2rgb(u,c,t-1/3)}return new Ct(Math.round(o*255),Math.round(a*255),Math.round(l*255),s)}}class Wm{constructor(e,t,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Zu(Math.max(Math.min(1,t),0),3),this.v=Zu(Math.max(Math.min(1,i),0),3),this.a=Zu(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,r=e.b/255,s=Math.max(t,i,r),o=Math.min(t,i,r),a=s-o,l=s===0?0:a/s;let c;return a===0?c=0:s===t?c=((i-r)/a%6+6)%6:s===i?c=(r-t)/a+2:c=(t-i)/a+4,new Wm(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:t,s:i,v:r,a:s}=e,o=r*i,a=o*(1-Math.abs(t/60%2-1)),l=r-o;let[c,u,d]=[0,0,0];return t<60?(c=o,u=a):t<120?(c=a,u=o):t<180?(u=o,d=a):t<240?(u=a,d=o):t<300?(c=a,d=o):t<=360&&(c=o,d=a),c=Math.round((c+l)*255),u=Math.round((u+l)*255),d=Math.round((d+l)*255),new Ct(c,u,d,s)}}let me=class ta{static fromHex(e){return ta.Format.CSS.parseHex(e)||ta.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:zo.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Wm.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof Ct)this.rgba=e;else if(e instanceof zo)this._hsla=e,this.rgba=zo.toRGBA(e);else if(e instanceof Wm)this._hsva=e,this.rgba=Wm.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&Ct.equals(this.rgba,e.rgba)&&zo.equals(this.hsla,e.hsla)&&Wm.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=ta._relativeLuminanceForComponent(this.rgba.r),t=ta._relativeLuminanceForComponent(this.rgba.g),i=ta._relativeLuminanceForComponent(this.rgba.b),r=.2126*e+.7152*t+.0722*i;return Zu(r,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t<i}lighten(e){return new ta(new zo(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new ta(new zo(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:r,a:s}=this.rgba;return new ta(new Ct(t,i,r,s*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new ta(new Ct(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:t,g:i,b:r,a:s}=this.rgba;return new ta(new Ct(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-i),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=ta.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const r=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(s-r)/s,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const r=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(r-s)/r,e.darken(i)}};me.white=new me(new Ct(255,255,255,1)),me.black=new me(new Ct(0,0,0,1)),me.red=new me(new Ct(255,0,0,1)),me.blue=new me(new Ct(0,0,255,1)),me.green=new me(new Ct(0,255,0,1)),me.cyan=new me(new Ct(0,255,255,1)),me.lightgrey=new me(new Ct(211,211,211,1)),me.transparent=new me(new Ct(0,0,0,0)),function(n){(function(e){(function(t){function i(f){return f.rgba.a===1?`rgb(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b})`:n.Format.CSS.formatRGBA(f)}t.formatRGB=i;function r(f){return`rgba(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b}, ${+f.rgba.a.toFixed(2)})`}t.formatRGBA=r;function s(f){return f.hsla.a===1?`hsl(${f.hsla.h}, ${(f.hsla.s*100).toFixed(2)}%, ${(f.hsla.l*100).toFixed(2)}%)`:n.Format.CSS.formatHSLA(f)}t.formatHSL=s;function o(f){return`hsla(${f.hsla.h}, ${(f.hsla.s*100).toFixed(2)}%, ${(f.hsla.l*100).toFixed(2)}%, ${f.hsla.a.toFixed(2)})`}t.formatHSLA=o;function a(f){const g=f.toString(16);return g.length!==2?"0"+g:g}function l(f){return`#${a(f.rgba.r)}${a(f.rgba.g)}${a(f.rgba.b)}`}t.formatHex=l;function c(f,g=!1){return g&&f.rgba.a===1?n.Format.CSS.formatHex(f):`#${a(f.rgba.r)}${a(f.rgba.g)}${a(f.rgba.b)}${a(Math.round(f.rgba.a*255))}`}t.formatHexA=c;function u(f){return f.isOpaque()?n.Format.CSS.formatHex(f):n.Format.CSS.formatRGBA(f)}t.format=u;function d(f){const g=f.length;if(g===0||f.charCodeAt(0)!==35)return null;if(g===7){const m=16*h(f.charCodeAt(1))+h(f.charCodeAt(2)),p=16*h(f.charCodeAt(3))+h(f.charCodeAt(4)),v=16*h(f.charCodeAt(5))+h(f.charCodeAt(6));return new n(new Ct(m,p,v,1))}if(g===9){const m=16*h(f.charCodeAt(1))+h(f.charCodeAt(2)),p=16*h(f.charCodeAt(3))+h(f.charCodeAt(4)),v=16*h(f.charCodeAt(5))+h(f.charCodeAt(6)),_=16*h(f.charCodeAt(7))+h(f.charCodeAt(8));return new n(new Ct(m,p,v,_/255))}if(g===4){const m=h(f.charCodeAt(1)),p=h(f.charCodeAt(2)),v=h(f.charCodeAt(3));return new n(new Ct(16*m+m,16*p+p,16*v+v))}if(g===5){const m=h(f.charCodeAt(1)),p=h(f.charCodeAt(2)),v=h(f.charCodeAt(3)),_=h(f.charCodeAt(4));return new n(new Ct(16*m+m,16*p+p,16*v+v,(16*_+_)/255))}return null}t.parseHex=d;function h(f){switch(f){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(n.Format||(n.Format={}))}(me||(me={}));function vG(n){const e=[];for(const t of n){const i=Number(t);(i||i===0&&t.replace(/\s/g,"")!=="")&&e.push(i)}return e}function rN(n,e,t,i){return{red:n/255,blue:t/255,green:e/255,alpha:i}}function _v(n,e){const t=e.index,i=e[0].length;if(!t)return;const r=n.positionAt(t);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function HHe(n,e){if(!n)return;const t=me.Format.CSS.parseHex(e);if(t)return{range:n,color:rN(t.rgba.r,t.rgba.g,t.rgba.b,t.rgba.a)}}function bG(n,e,t){if(!n||e.length!==1)return;const r=e[0].values(),s=vG(r);return{range:n,color:rN(s[0],s[1],s[2],t?s[3]:1)}}function yG(n,e,t){if(!n||e.length!==1)return;const r=e[0].values(),s=vG(r),o=new me(new zo(s[0],s[1]/100,s[2]/100,t?s[3]:1));return{range:n,color:rN(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function vv(n,e){return typeof n=="string"?[...n.matchAll(e)]:n.findMatches(e)}function jHe(n){const e=[],i=vv(n,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const r of i){const s=r.filter(c=>c!==void 0),o=s[1],a=s[2];if(!a)continue;let l;if(o==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=bG(_v(n,r),vv(a,c),!1)}else if(o==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=bG(_v(n,r),vv(a,c),!0)}else if(o==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=yG(_v(n,r),vv(a,c),!1)}else if(o==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=yG(_v(n,r),vv(a,c),!0)}else o==="#"&&(l=HHe(_v(n,r),o+a));l&&e.push(l)}return e}function zHe(n){return!n||typeof n.getValue!="function"||typeof n.positionAt!="function"?[]:jHe(n)}var Xu=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class UHe extends aHe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const r=this._lines[i],s=this.offsetAt(new de(i+1,1)),o=r.matchAll(e);for(const a of o)(a.index||a.index===0)&&(a.index=a.index+s),t.push(a)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=$_(e.column,vq(t),this._lines[e.lineNumber-1],0);return i?new G(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let r=0,s="",o=0,a=[];return{*[Symbol.iterator](){for(;;)if(o<a.length){const l=s.substring(a[o].start,a[o].end);o+=1,yield l}else if(r<t.length)s=t[r],a=i(s,e),o=0,r+=1;else break}}}getLineWords(e,t){const i=this._lines[e-1],r=this._wordenize(i,t),s=[];for(const o of r)s.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(e,t){const i=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&r[0].length!==0;)i.push({start:r.index,end:r.index+r[0].length});return i}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,r=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let o=i+1;o<r;o++)s.push(this._lines[o]);return s.push(this._lines[r].substring(0,e.endColumn-1)),s.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!de.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,r=!1;if(t<1)t=1,i=1,r=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,r=!0;else{const s=this._lines[t-1].length+1;i<1?(i=1,r=!0):i>s&&(i=s,r=!0)}return r?{lineNumber:t,column:i}:e}}class Qu{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new UHe(Nt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return Xu(this,void 0,void 0,function*(){const r=this._getModel(e);return r?bHe.computeUnicodeHighlights(r,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,r){return Xu(this,void 0,void 0,function*(){const s=this._getModel(e),o=this._getModel(t);return!s||!o?null:Qu.computeDiff(s,o,i,r)})}static computeDiff(e,t,i,r){const s=r==="advanced"?_G.getAdvanced():_G.getLegacy(),o=e.getLinesContent(),a=t.getLinesContent(),l=s.computeDiff(o,a,i),c=l.changes.length>0?!1:this._modelsAreIdentical(e,t);function u(d){return d.map(h=>{var f;return[h.originalRange.startLineNumber,h.originalRange.endLineNumberExclusive,h.modifiedRange.startLineNumber,h.modifiedRange.endLineNumberExclusive,(f=h.innerChanges)===null||f===void 0?void 0:f.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:u(l.changes),moves:l.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,u(d.changes)])}}static _modelsAreIdentical(e,t){const i=e.getLineCount(),r=t.getLineCount();if(i!==r)return!1;for(let s=1;s<=i;s++){const o=e.getLineContent(s),a=t.getLineContent(s);if(o!==a)return!1}return!0}computeMoreMinimalEdits(e,t,i){return Xu(this,void 0,void 0,function*(){const r=this._getModel(e);if(!r)return t;const s=[];let o;t=t.slice(0).sort((a,l)=>{if(a.range&&l.range)return G.compareRangesUsingStarts(a.range,l.range);const c=a.range?0:1,u=l.range?0:1;return c-u});for(let{range:a,text:l,eol:c}of t){if(typeof c=="number"&&(o=c),G.isEmpty(a)&&!l)continue;const u=r.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,r.eol),u===l)continue;if(Math.max(l.length,u.length)>Qu._diffLimit){s.push({range:a,text:l});continue}const d=rHe(u,l,i),h=r.offsetAt(G.lift(a).getStartPosition());for(const f of d){const g=r.positionAt(h+f.originalStart),m=r.positionAt(h+f.originalStart+f.originalLength),p={text:l.substr(f.modifiedStart,f.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:m.lineNumber,endColumn:m.column}};r.getValueInRange(p.range)!==p.text&&s.push(p)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(e){return Xu(this,void 0,void 0,function*(){const t=this._getModel(e);return t?hHe(t):null})}computeDefaultDocumentColors(e){return Xu(this,void 0,void 0,function*(){const t=this._getModel(e);return t?zHe(t):null})}textualSuggest(e,t,i,r){return Xu(this,void 0,void 0,function*(){const s=new Dh,o=new RegExp(i,r),a=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const u of c.words(o))if(!(u===t||!isNaN(Number(u)))&&(a.add(u),a.size>Qu._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}})}computeWordRanges(e,t,i,r){return Xu(this,void 0,void 0,function*(){const s=this._getModel(e);if(!s)return Object.create(null);const o=new RegExp(i,r),a=Object.create(null);for(let l=t.startLineNumber;l<t.endLineNumber;l++){const c=s.getLineWords(l,o);for(const u of c){if(!isNaN(Number(u.word)))continue;let d=a[u.word];d||(d=[],a[u.word]=d),d.push({startLineNumber:l,startColumn:u.startColumn,endLineNumber:l,endColumn:u.endColumn})}}return a})}navigateValueSet(e,t,i,r,s){return Xu(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return null;const a=new RegExp(r,s);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const l=o.getValueInRange(t),c=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!c)return null;const u=o.getValueInRange(c);return ZO.INSTANCE.navigateValueSet(t,l,c,u,i)})}loadForeignModule(e,t,i){const o={host:DBe(i,(a,l)=>this._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(JI(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}Qu._diffLimit=1e5,Qu._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=Gq());const CG=Lt("textResourceConfigurationService"),wG=Lt("textResourcePropertiesService"),Ju=Lt("logService");var Ri;(function(n){n[n.Off=0]="Off",n[n.Trace=1]="Trace",n[n.Debug=2]="Debug",n[n.Info=3]="Info",n[n.Warning=4]="Warning",n[n.Error=5]="Error"})(Ri||(Ri={}));const SG=Ri.Info;class xG extends Le{constructor(){super(...arguments),this.level=SG,this._onDidChangeLogLevel=this._register(new ne),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==Ri.Off&&this.level<=e}}class qHe extends xG{constructor(e=SG,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Ri.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(Ri.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(Ri.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(Ri.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(Ri.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class KHe extends xG{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose()}}function GHe(n){switch(n){case Ri.Trace:return"trace";case Ri.Debug:return"debug";case Ri.Info:return"info";case Ri.Warning:return"warn";case Ri.Error:return"error";case Ri.Off:return"off"}}new Ge("logLevel",GHe(Ri.Info));const fn=Lt("ILanguageFeaturesService");var YHe=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},bv=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},sx=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const LG=60*1e3,kG=5*60*1e3;function Hh(n,e){const t=n.getModel(e);return!(!t||t.isTooLargeForSyncing())}let sN=class extends Le{constructor(e,t,i,r,s){super(),this._modelService=e,this._workerManager=this._register(new XHe(this._modelService,r)),this._logService=i,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(o,a)=>Hh(this._modelService,o.uri)?this._workerManager.withWorker().then(l=>l.computeLinks(o.uri)).then(l=>l&&{links:l}):Promise.resolve({links:[]})})),this._register(s.completionProvider.register("*",new ZHe(this._workerManager,t,this._modelService,r)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return Hh(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(r=>r.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,r){return sx(this,void 0,void 0,function*(){const s=yield this._workerManager.withWorker().then(l=>l.computeDiff(e,t,i,r));if(!s)return null;return{identical:s.identical,quitEarly:s.quitEarly,changes:a(s.changes),moves:s.moves.map(l=>new Fm(new $h(new kt(l[0],l[1]),new kt(l[2],l[3])),a(l[4])))};function a(l){return l.map(c=>{var u;return new no(new kt(c[0],c[1]),new kt(c[2],c[3]),(u=c[4])===null||u===void 0?void 0:u.map(d=>new Tc(new G(d[0],d[1],d[2],d[3]),new G(d[4],d[5],d[6],d[7]))))})}})}computeMoreMinimalEdits(e,t,i=!1){if(iS(t)){if(!Hh(this._modelService,e))return Promise.resolve(t);const r=Dh.create(),s=this._workerManager.withWorker().then(o=>o.computeMoreMinimalEdits(e,t,i));return s.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),r.elapsed())),Promise.race([s,uv(1e3).then(()=>t)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return Hh(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(r=>r.navigateValueSet(e,t,i))}canComputeWordRanges(e){return Hh(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};sN=YHe([bv(0,Ms),bv(1,CG),bv(2,Ju),bv(3,vl),bv(4,fn)],sN);class ZHe{constructor(e,t,i,r){this.languageConfigurationService=r,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return sx(this,void 0,void 0,function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const r=[];if(i.wordBasedSuggestionsMode==="currentDocument")Hh(this._modelService,e.uri)&&r.push(e.uri);else for(const d of this._modelService.getModels())Hh(this._modelService,d.uri)&&(d===e?r.unshift(d.uri):(i.wordBasedSuggestionsMode==="allDocuments"||d.getLanguageId()===e.getLanguageId())&&r.push(d.uri));if(r.length===0)return;const s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),a=o?new G(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):G.fromPositions(t),l=a.setEndPosition(t.lineNumber,t.column),u=yield(yield this._workerManager.withWorker()).textualSuggest(r,o==null?void 0:o.word,s);if(u)return{duration:u.duration,suggestions:u.words.map(d=>({kind:18,label:d,insertText:d,range:{insert:l,replace:a}}))}})}}class XHe extends Le{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new dv).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(kG/2)),this._register(this._modelService.onModelRemoved(r=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>kG&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new EG(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class QHe extends Le{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const r=new dv;r.cancelAndSet(()=>this._checkStopModelSync(),Math.round(LG/2)),this._register(r)}}dispose(){for(const e in this._syncedModels)jn(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const r=i.toString();this._syncedModels[r]||this._beginModelSync(i,t),this._syncedModels[r]&&(this._syncedModelsLastUsedTime[r]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(const i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>LG&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;const r=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const s=new Je;s.add(i.onDidChangeContent(o=>{this._proxy.acceptModelChanged(r.toString(),o)})),s.add(i.onWillDispose(()=>{this._stopModelSync(r)})),s.add(Ot(()=>{this._proxy.acceptRemovedModel(r)})),this._syncedModels[r]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],jn(t)}}class DG{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class oN{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class EG extends Le{constructor(e,t,i,r){super(),this.languageConfigurationService=r,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new ex(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Y$e(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new oN(this)))}catch(e){UO(e),this._worker=new DG(new Qu(new oN(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(UO(e),this._worker=new DG(new Qu(new oN(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new QHe(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return sx(this,void 0,void 0,function*(){return this._disposed?Promise.reject(kWe()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(r=>r.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,r){return this._withSyncedResources([e,t],!0).then(s=>s.computeDiff(e.toString(),t.toString(),i,r))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then(r=>r.computeMoreMinimalEdits(e.toString(),t,i))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(t=>t.computeDefaultDocumentColors(e.toString()))}textualSuggest(e,t,i){return sx(this,void 0,void 0,function*(){const r=yield this._withSyncedResources(e),s=i.source,o=LS(i);return r.textualSuggest(e.map(a=>a.toString()),t,s,o)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{const r=this._modelService.getModel(e);if(!r)return Promise.resolve(null);const s=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),o=s.source,a=LS(s);return i.computeWordRanges(e.toString(),t,o,a)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(r=>{const s=this._modelService.getModel(e);if(!s)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),a=o.source,l=LS(o);return r.navigateValueSet(e.toString(),t,i,a,l)})}dispose(){super.dispose(),this._disposed=!0}}function JHe(n,e,t){return new eje(n,e,t)}class eje extends EG{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?JI(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(i=>{this._foreignModuleCreateData=null;const r=(a,l)=>e.fmr(a,l),s=(a,l)=>function(){const c=Array.prototype.slice.call(arguments,0);return l(a,c)},o={};for(const a of i)o[a]=s(a,r);return o})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}class fs{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let i="mtk"+this.getForeground(e);const r=this.getFontStyle(e);return r&1&&(i+=" mtki"),r&2&&(i+=" mtkb"),r&4&&(i+=" mtku"),r&8&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),r=this.getFontStyle(e);let s=`color: ${t[i]};`;r&1&&(s+="font-style: italic;"),r&2&&(s+="font-weight: bold;");let o="";return r&4&&(o+=" underline"),r&8&&(o+=" line-through"),o&&(s+=`text-decoration:${o};`),s}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(i&1),bold:!!(i&2),underline:!!(i&4),strikethrough:!!(i&8)}}}class ki{static createEmpty(e,t){const i=ki.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=i,new ki(r,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof ki?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const r=t<<1,s=r+(i<<1);for(let o=r;o<s;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],i=fs.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return fs.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return fs.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return fs.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[(e<<1)+1];return fs.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return fs.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ki.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new aN(this,e,t,i)}static convertToEndOffset(e,t){const r=(e.length>>>1)-1;for(let s=0;s<r;s++)e[s<<1]=e[s+1<<1];e[r<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,r=(e.length>>>1)-1;for(;i<r;){const s=i+Math.floor((r-i)/2),o=e[s<<1];if(o===t)return s+1;o<t?i=s+1:o>t&&(r=s)}return i}withInserted(e){if(e.length===0)return this;let t=0,i=0,r="";const s=new Array;let o=0;for(;;){const a=t<this._tokensCount?this._tokens[t<<1]:-1,l=i<e.length?e[i]:null;if(a!==-1&&(l===null||a<=l.offset)){r+=this._text.substring(o,a);const c=this._tokens[(t<<1)+1];s.push(r.length,c),t++,o=a}else if(l){if(l.offset>o){r+=this._text.substring(o,l.offset);const c=this._tokens[(t<<1)+1];s.push(r.length,c),o=l.offset}r+=l.text,s.push(r.length,l.tokenMetadata),i++}else break}return new ki(new Uint32Array(s),r,this._languageIdCodec)}}ki.defaultTokenMetadata=(32768|2<<24)>>>0;class aN{constructor(e,t,i,r){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let s=this._firstTokenIndex,o=e.getCount();s<o&&!(e.getStartOffset(s)>=i);s++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof aN?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class Fs{constructor(e,t,i,r){this.startColumn=e,this.endColumn=t,this.className=i,this.type=r,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length,r=t.length;if(i!==r)return!1;for(let s=0;s<i;s++)if(!Fs._equals(e[s],t[s]))return!1;return!0}static extractWrapped(e,t,i){if(e.length===0)return e;const r=t+1,s=i+1,o=i-t,a=[];let l=0;for(const c of e)c.endColumn<=r||c.startColumn>=s||(a[l++]=new Fs(Math.max(1,c.startColumn-r+1),Math.min(o+1,c.endColumn-r+1),c.className,c.type));return a}static filter(e,t,i,r){if(e.length===0)return[];const s=[];let o=0;for(let a=0,l=e.length;a<l;a++){const c=e[a],u=c.range;if(u.endLineNumber<t||u.startLineNumber>t||u.isEmpty()&&(c.type===0||c.type===3))continue;const d=u.startLineNumber===t?u.startColumn:i,h=u.endLineNumber===t?u.endColumn:r;s[o++]=new Fs(d,h,c.inlineClassName,c.type)}return s}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=Fs._typeCompare(e.type,t.type);return i!==0?i:e.className!==t.className?e.className<t.className?-1:1:0}}class TG{constructor(e,t,i,r){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=r}}class ox{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,r=e.length;i<r;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let r=0;for(;r+1<this.count&&this.stopOffsets[r]===this.stopOffsets[r+1];)r++;i.push(new TG(t,this.stopOffsets[r],this.classNames.join(" "),ox._metadata(this.metadata))),t=this.stopOffsets[r]+1,this.stopOffsets.splice(0,r+1),this.classNames.splice(0,r+1),this.metadata.splice(0,r+1),this.count-=r+1}return this.count>0&&t<e&&(i.push(new TG(t,e-1,this.classNames.join(" "),ox._metadata(this.metadata))),t=e),t}insert(e,t,i){if(this.count===0||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let r=0;r<this.count;r++)if(this.stopOffsets[r]>=e){this.stopOffsets.splice(r,0,e),this.classNames.splice(r,0,t),this.metadata.splice(r,0,i);break}this.count++}}class tje{static normalize(e,t){if(t.length===0)return[];const i=[],r=new ox;let s=0;for(let o=0,a=t.length;o<a;o++){const l=t[o];let c=l.startColumn,u=l.endColumn;const d=l.className,h=l.type===1?2:l.type===2?4:0;if(c>1){const m=e.charCodeAt(c-2);gi(m)&&c--}if(u>1){const m=e.charCodeAt(u-2);gi(m)&&u--}const f=c-1,g=u-2;s=r.consumeLowerThan(f,s,i),r.count===0&&(s=f),r.insert(g,d,h)}return r.consumeLowerThan(1073741824,s,i),i}}class pi{constructor(e,t,i,r){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=r,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class IG{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class ed{constructor(e,t,i,r,s,o,a,l,c,u,d,h,f,g,m,p,v,_,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=r,this.isBasicASCII=s,this.containsRTL=o,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort(Fs.compare),this.tabSize=u,this.startVisibleColumn=d,this.spaceWidth=h,this.stopRenderingLineAfter=m,this.renderWhitespace=p==="all"?4:p==="boundary"?1:p==="selection"?2:p==="trailing"?3:0,this.renderControlCharacters=v,this.fontLigatures=_,this.selectionsOnLine=b&&b.sort((k,L)=>k.startOffset<L.startOffset?-1:1);const y=Math.abs(g-h),w=Math.abs(f-h);y<w?(this.renderSpaceWidth=g,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=f,this.renderSpaceCharCode=183)}sameSelection(e){if(this.selectionsOnLine===null)return e===null;if(e===null||e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&Fs.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class lN{constructor(e,t){this.partIndex=e,this.charIndex=t}}class bl{static getPartIndex(e){return(e&4294901760)>>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,r){const s=(t<<16|i<<0)>>>0;this._data[e-1]=s,this._horizontalOffset[e-1]=r}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=bl.getPartIndex(t),r=bl.getCharIndex(t);return new lN(i,r)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(this.length===0)return 0;const r=(e<<16|i<<0)>>>0;let s=0,o=this.length-1;for(;s+1<o;){const m=s+o>>>1,p=this._data[m];if(p===r)return m;p>r?o=m:s=m}if(s===o)return s;const a=this._data[s],l=this._data[o];if(a===r)return s;if(l===r)return o;const c=bl.getPartIndex(a),u=bl.getCharIndex(a),d=bl.getPartIndex(l);let h;c!==d?h=t:h=bl.getCharIndex(l);const f=i-u,g=h-i;return f<=g?s:o}}class cN{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function ax(n,e){if(n.lineContent.length===0){if(n.lineDecorations.length>0){e.appendString("<span>");let t=0,i=0,r=0;for(const o of n.lineDecorations)(o.type===1||o.type===2)&&(e.appendString('<span class="'),e.appendString(o.className),e.appendString('"></span>'),o.type===1&&(r|=1,t++),o.type===2&&(r|=2,i++));e.appendString("</span>");const s=new bl(1,t+i);return s.setColumnInfo(1,t,0,0),new cN(s,!1,r)}return e.appendString("<span><span></span></span>"),new cN(new bl(0,0),!1,0)}return uje(rje(n),e)}class nje{constructor(e,t,i,r){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=r}}function yv(n){const e=new lv(1e4),t=ax(n,e);return new nje(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class ije{constructor(e,t,i,r,s,o,a,l,c,u,d,h,f,g,m,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=r,this.isOverflowing=s,this.overflowingCharCount=o,this.parts=a,this.containsForeignElements=l,this.fauxIndentLength=c,this.tabSize=u,this.startVisibleColumn=d,this.containsRTL=h,this.spaceWidth=f,this.renderSpaceCharCode=g,this.renderWhitespace=m,this.renderControlCharacters=p}}function rje(n){const e=n.lineContent;let t,i,r;n.stopRenderingLineAfter!==-1&&n.stopRenderingLineAfter<e.length?(t=!0,i=e.length-n.stopRenderingLineAfter,r=n.stopRenderingLineAfter):(t=!1,i=0,r=e.length);let s=sje(e,n.containsRTL,n.lineTokens,n.fauxIndentLength,r);n.renderControlCharacters&&!n.isBasicASCII&&(s=aje(e,s)),(n.renderWhitespace===4||n.renderWhitespace===1||n.renderWhitespace===2&&n.selectionsOnLine||n.renderWhitespace===3&&!n.continuesWithWrappedLine)&&(s=lje(n,e,r,s));let o=0;if(n.lineDecorations.length>0){for(let a=0,l=n.lineDecorations.length;a<l;a++){const c=n.lineDecorations[a];c.type===3||c.type===1?o|=1:c.type===2&&(o|=2)}s=cje(e,r,s,n.lineDecorations)}return n.containsRTL||(s=oje(e,s,!n.isBasicASCII||n.fontLigatures)),new ije(n.useMonospaceOptimizations,n.canUseHalfwidthRightwardsArrow,e,r,t,i,s,o,n.fauxIndentLength,n.tabSize,n.startVisibleColumn,n.containsRTL,n.spaceWidth,n.renderSpaceCharCode,n.renderWhitespace,n.renderControlCharacters)}function sje(n,e,t,i,r){const s=[];let o=0;i>0&&(s[o++]=new pi(i,"",0,!1));let a=i;for(let l=0,c=t.getCount();l<c;l++){const u=t.getEndOffset(l);if(u<=i)continue;const d=t.getClassName(l);if(u>=r){const f=e?ev(n.substring(a,r)):!1;s[o++]=new pi(r,d,0,f);break}const h=e?ev(n.substring(a,u)):!1;s[o++]=new pi(u,d,0,h),a=u}return s}function oje(n,e,t){let i=0;const r=[];let s=0;if(t)for(let o=0,a=e.length;o<a;o++){const l=e[o],c=l.endIndex;if(i+50<c){const u=l.type,d=l.metadata,h=l.containsRTL;let f=-1,g=i;for(let m=i;m<c;m++)n.charCodeAt(m)===32&&(f=m),f!==-1&&m-g>=50&&(r[s++]=new pi(f+1,u,d,h),g=f+1,f=-1);g!==c&&(r[s++]=new pi(c,u,d,h))}else r[s++]=l;i=c}else for(let o=0,a=e.length;o<a;o++){const l=e[o],c=l.endIndex,u=c-i;if(u>50){const d=l.type,h=l.metadata,f=l.containsRTL,g=Math.ceil(u/50);for(let m=1;m<g;m++){const p=i+m*50;r[s++]=new pi(p,d,h,f)}r[s++]=new pi(c,d,h,f)}else r[s++]=l;i=c}return r}function AG(n){return n<32?n!==9:n===127||n>=8234&&n<=8238||n>=8294&&n<=8297||n>=8206&&n<=8207||n===1564}function aje(n,e){const t=[];let i=new pi(0,"",0,!1),r=0;for(const s of e){const o=s.endIndex;for(;r<o;r++){const a=n.charCodeAt(r);AG(a)&&(r>i.endIndex&&(i=new pi(r,s.type,s.metadata,s.containsRTL),t.push(i)),i=new pi(r+1,"mtkcontrol",s.metadata,!1),t.push(i))}r>i.endIndex&&(i=new pi(o,s.type,s.metadata,s.containsRTL),t.push(i))}return t}function lje(n,e,t,i){const r=n.continuesWithWrappedLine,s=n.fauxIndentLength,o=n.tabSize,a=n.startVisibleColumn,l=n.useMonospaceOptimizations,c=n.selectionsOnLine,u=n.renderWhitespace===1,d=n.renderWhitespace===3,h=n.renderSpaceWidth!==n.spaceWidth,f=[];let g=0,m=0,p=i[m].type,v=i[m].containsRTL,_=i[m].endIndex;const b=i.length;let y=!1,w=ds(e),k;w===-1?(y=!0,w=t,k=t):k=Th(e);let L=!1,D=0,E=c&&c[D],N=a%o;for(let I=s;I<t;I++){const M=e.charCodeAt(I);E&&I>=E.endOffset&&(D++,E=c&&c[D]);let B;if(I<w||I>k)B=!0;else if(M===9)B=!0;else if(M===32)if(u)if(L)B=!0;else{const V=I+1<t?e.charCodeAt(I+1):0;B=V===32||V===9}else B=!0;else B=!1;if(B&&c&&(B=!!E&&E.startOffset<=I&&E.endOffset>I),B&&d&&(B=y||I>k),B&&v&&I>=w&&I<=k&&(B=!1),L){if(!B||!l&&N>=o){if(h){const V=g>0?f[g-1].endIndex:s;for(let ee=V+1;ee<=I;ee++)f[g++]=new pi(ee,"mtkw",1,!1)}else f[g++]=new pi(I,"mtkw",1,!1);N=N%o}}else(I===_||B&&I>s)&&(f[g++]=new pi(I,p,0,v),N=N%o);for(M===9?N=o:ju(M)?N+=2:N++,L=B;I===_&&(m++,m<b);)p=i[m].type,v=i[m].containsRTL,_=i[m].endIndex}let O=!1;if(L)if(r&&u){const I=t>0?e.charCodeAt(t-1):0,M=t>1?e.charCodeAt(t-2):0;I===32&&M!==32&&M!==9||(O=!0)}else O=!0;if(O)if(h){const I=g>0?f[g-1].endIndex:s;for(let M=I+1;M<=t;M++)f[g++]=new pi(M,"mtkw",1,!1)}else f[g++]=new pi(t,"mtkw",1,!1);else f[g++]=new pi(t,p,0,v);return f}function cje(n,e,t,i){i.sort(Fs.compare);const r=tje.normalize(n,i),s=r.length;let o=0;const a=[];let l=0,c=0;for(let d=0,h=t.length;d<h;d++){const f=t[d],g=f.endIndex,m=f.type,p=f.metadata,v=f.containsRTL;for(;o<s&&r[o].startOffset<g;){const _=r[o];if(_.startOffset>c&&(c=_.startOffset,a[l++]=new pi(c,m,p,v)),_.endOffset+1<=g)c=_.endOffset+1,a[l++]=new pi(c,m+" "+_.className,p|_.metadata,v),o++;else{c=g,a[l++]=new pi(c,m+" "+_.className,p|_.metadata,v);break}}g>c&&(c=g,a[l++]=new pi(c,m,p,v))}const u=t[t.length-1].endIndex;if(o<s&&r[o].startOffset===u)for(;o<s&&r[o].startOffset===u;){const d=r[o];a[l++]=new pi(c,d.className,d.metadata,!1),o++}return a}function uje(n,e){const t=n.fontIsMonospace,i=n.canUseHalfwidthRightwardsArrow,r=n.containsForeignElements,s=n.lineContent,o=n.len,a=n.isOverflowing,l=n.overflowingCharCount,c=n.parts,u=n.fauxIndentLength,d=n.tabSize,h=n.startVisibleColumn,f=n.containsRTL,g=n.spaceWidth,m=n.renderSpaceCharCode,p=n.renderWhitespace,v=n.renderControlCharacters,_=new bl(o+1,c.length);let b=!1,y=0,w=h,k=0,L=0,D=0;f?e.appendString('<span dir="ltr">'):e.appendString("<span>");for(let E=0,N=c.length;E<N;E++){const O=c[E],I=O.endIndex,M=O.type,B=O.containsRTL,V=p!==0&&O.isWhitespace(),ee=V&&!t&&(M==="mtkw"||!r),re=y===I&&O.isPseudoAfter();if(k=0,e.appendString("<span "),B&&e.appendString('style="unicode-bidi:isolate" '),e.appendString('class="'),e.appendString(ee?"mtkz":M),e.appendASCIICharCode(34),V){let se=0;{let ie=y,J=w;for(;ie<I;ie++){const Z=(s.charCodeAt(ie)===9?d-J%d:1)|0;se+=Z,ie>=u&&(J+=Z)}}for(ee&&(e.appendString(' style="width:'),e.appendString(String(g*se)),e.appendString('px"')),e.appendASCIICharCode(62);y<I;y++){_.setColumnInfo(y+1,E-D,k,L),D=0;const ie=s.charCodeAt(y);let J,ue;if(ie===9){J=d-w%d|0,ue=J,!i||ue>1?e.appendCharCode(8594):e.appendCharCode(65515);for(let Z=2;Z<=ue;Z++)e.appendCharCode(160)}else J=2,ue=1,e.appendCharCode(m),e.appendCharCode(8204);k+=J,L+=ue,y>=u&&(w+=ue)}}else for(e.appendASCIICharCode(62);y<I;y++){_.setColumnInfo(y+1,E-D,k,L),D=0;const se=s.charCodeAt(y);let ie=1,J=1;switch(se){case 9:ie=d-w%d,J=ie;for(let ue=1;ue<=ie;ue++)e.appendCharCode(160);break;case 32:e.appendCharCode(160);break;case 60:e.appendString("<");break;case 62:e.appendString(">");break;case 38:e.appendString("&");break;case 0:v?e.appendCharCode(9216):e.appendString("�");break;case 65279:case 8232:case 8233:case 133:e.appendCharCode(65533);break;default:ju(se)&&J++,v&&se<32?e.appendCharCode(9216+se):v&&se===127?e.appendCharCode(9249):v&&AG(se)?(e.appendString("[U+"),e.appendString(dje(se)),e.appendString("]"),ie=8,J=ie):e.appendCharCode(se)}k+=ie,L+=J,y>=u&&(w+=J)}re?D++:D=0,y>=o&&!b&&O.isPseudoAfter()&&(b=!0,_.setColumnInfo(y+1,E,k,L)),e.appendString("</span>")}return b||_.setColumnInfo(o+1,c.length-1,k,L),a&&(e.appendString('<span class="mtkoverflow">'),e.appendString(C("showMore","Show more ({0})",hje(l))),e.appendString("</span>")),e.appendString("</span>"),new cN(_,f,r)}function dje(n){return n.toString(16).toUpperCase().padStart(4,"0")}function hje(n){return n<1024?C("overflow.chars","{0} chars",n):n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`}class OG{constructor(e,t,i,r){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=i|0,this.height=r|0}}class fje{constructor(e,t){this.tabSize=e,this.data=t}}class uN{constructor(e,t,i,r,s,o,a){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=r,this.startVisibleColumn=s,this.tokens=o,this.inlineDecorations=a}}class fr{constructor(e,t,i,r,s,o,a,l,c,u){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=r,this.isBasicASCII=fr.isBasicASCII(i,o),this.containsRTL=fr.containsRTL(i,this.isBasicASCII,s),this.tokens=a,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=u}static isBasicASCII(e,t){return t?pO(e):!0}static containsRTL(e,t,i){return!t&&i?ev(e):!1}}class Vm{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class gje{constructor(e,t,i,r){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=r}toInlineDecoration(e){return new Vm(new G(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class NG{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class MG{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}}function mje(n){return Array.isArray(n)}function pje(n){return!mje(n)}function PG(n){return typeof n=="string"}function RG(n){return!PG(n)}function $m(n){return!n}function td(n,e){return n.ignoreCase&&e?e.toLowerCase():e}function FG(n){return n.replace(/[&<>'"_]/g,"-")}function _je(n,e){console.log(`${n.languageId}: ${e}`)}function sn(n,e){return new Error(`${n.languageId}: ${e}`)}function nd(n,e,t,i,r){const s=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let o=null;return e.replace(s,function(a,l,c,u,d,h,f,g,m){return $m(c)?$m(u)?!$m(d)&&d<i.length?td(n,i[d]):!$m(f)&&n&&typeof n[f]=="string"?n[f]:(o===null&&(o=r.split("."),o.unshift(r)),!$m(h)&&h<o.length?td(n,o[h]):""):td(n,t):"$"})}function lx(n,e){let t=e;for(;t&&t.length>0;){const i=n.tokenizer[t];if(i)return i;const r=t.lastIndexOf(".");r<0?t=null:t=t.substr(0,r)}return null}function vje(n,e){let t=e;for(;t&&t.length>0;){if(n.stateNames[t])return!0;const r=t.lastIndexOf(".");r<0?t=null:t=t.substr(0,r)}return!1}var bje=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},yje=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const BG=5;class Cv{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new Hm(e,t);let i=Hm.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let r=this._entries[i];return r||(r=new Hm(e,t),this._entries[i]=r,r)}}Cv._INSTANCE=new Cv(BG);class Hm{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return Hm._equals(this,e)}push(e){return Cv.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Cv.create(this.parent,e)}}class jm{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new jm(this.languageId,this.state)}}class id{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(t!==null)return new wv(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new wv(e,t);const i=Hm.getStackElementId(e);let r=this._entries[i];return r||(r=new wv(e,null),this._entries[i]=r,r)}}id._INSTANCE=new id(BG);class wv{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:id.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof wv)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class Cje{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Y_(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,r){const s=i.languageId,o=i.state,a=Xn.get(s);if(!a)return this.enterLanguage(s),this.emit(r,""),o;const l=a.tokenize(e,t,o);if(r!==0)for(const c of l.tokens)this._tokens.push(new Y_(c.offset+r,c.type,c.language));else this._tokens=this._tokens.concat(l.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,l.endState}finalize(e){return new bA(this._tokens,e)}}class cx{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=this._theme.match(this._currentLanguageId,t)|1024;this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const r=e!==null?e.length:0,s=t.length,o=i!==null?i.length:0;if(r===0&&s===0&&o===0)return new Uint32Array(0);if(r===0&&s===0)return i;if(s===0&&o===0)return e;const a=new Uint32Array(r+s+o);e!==null&&a.set(e);for(let l=0;l<s;l++)a[r+l]=t[l];return i!==null&&a.set(i,r+s),a}nestedLanguageTokenize(e,t,i,r){const s=i.languageId,o=i.state,a=Xn.get(s);if(!a)return this.enterLanguage(s),this.emit(r,""),o;const l=a.tokenizeEncoded(e,t,o);if(r!==0)for(let c=0,u=l.tokens.length;c<u;c+=2)l.tokens[c]+=r;return this._prependTokens=cx._merge(this._prependTokens,this._tokens,l.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,l.endState}finalize(e){return new SS(cx._merge(this._prependTokens,this._tokens,null),e)}}let Sv=class fie{constructor(e,t,i,r,s){this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=r,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let o=!1;this._tokenizationRegistryListener=Xn.onDidChange(a=>{if(o)return;let l=!1;for(let c=0,u=a.changedLanguages.length;c<u;c++){const d=a.changedLanguages[c];if(this._embeddedLanguages[d]){l=!0;break}}l&&(o=!0,Xn.handleChange([this._languageId]),o=!1)}),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._configurationService.onDidChangeConfiguration(a=>{a.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=Xn.get(t);if(i){if(i instanceof fie){const r=i.getLoadStatus();r.loaded===!1&&e.push(r.promise)}continue}Xn.isResolved(t)||e.push(Xn.getOrCreate(t))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(t=>{})}}getInitialState(){const e=Cv.create(null,this._lexer.start);return id.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return WK(this._languageId,i);const r=new Cje,s=this._tokenize(e,t,i,r);return r.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return VK(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const r=new cx(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,r);return r.finalize(s)}_tokenize(e,t,i,r){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,r):this._myTokenize(e,t,i,0,r)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=lx(this._lexer,t.stack.state),!i))throw sn(this._lexer,"tokenizer state is not defined: "+t.stack.state);let r=-1,s=!1;for(const o of i){if(!RG(o.action)||o.action.nextEmbedded!=="@pop")continue;s=!0;let a=o.regex;const l=o.regex.source;if(l.substr(0,4)==="^(?:"&&l.substr(l.length-1,1)===")"){const u=(a.ignoreCase?"i":"")+(a.unicode?"u":"");a=new RegExp(l.substr(4,l.length-5),u)}const c=e.search(a);c===-1||c!==0&&o.matchOnlyAtLineStart||(r===-1||c<r)&&(r=c)}if(!s)throw sn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return r}_nestedTokenize(e,t,i,r,s){const o=this._findLeavingNestedLanguageOffset(e,i);if(o===-1){const c=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,r);return id.create(i.stack,new jm(i.embeddedLanguageData.languageId,c))}const a=e.substring(0,o);a.length>0&&s.nestedLanguageTokenize(a,!1,i.embeddedLanguageData,r);const l=e.substring(o);return this._myTokenize(l,t,i,r+o,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,r,s){s.enterLanguage(this._languageId);const o=e.length,a=t&&this._lexer.includeLF?e+`
|
425
|
-
`:e,l=a.length;let c=i.embeddedLanguageData,u=i.stack,d=0,h=null,f=!0;for(;f||d<l;){const g=d,m=u.depth,p=h?h.groups.length:0,v=u.state;let _=null,b=null,y=null,w=null,k=null;if(h){_=h.matches;const E=h.groups.shift();b=E.matched,y=E.action,w=h.rule,h.groups.length===0&&(h=null)}else{if(!f&&d>=l)break;f=!1;let E=this._lexer.tokenizer[v];if(!E&&(E=lx(this._lexer,v),!E))throw sn(this._lexer,"tokenizer state is not defined: "+v);const N=a.substr(d);for(const O of E)if((d===0||!O.matchOnlyAtLineStart)&&(_=N.match(O.regex),_)){b=_[0],y=O.action;break}}if(_||(_=[""],b=""),y||(d<l&&(_=[a.charAt(d)],b=_[0]),y=this._lexer.defaultToken),b===null)break;for(d+=b.length;pje(y)&&RG(y)&&y.test;)y=y.test(b,_,v,d===l);let L=null;if(typeof y=="string"||Array.isArray(y))L=y;else if(y.group)L=y.group;else if(y.token!==null&&y.token!==void 0){if(y.tokenSubst?L=nd(this._lexer,y.token,b,_,v):L=y.token,y.nextEmbedded)if(y.nextEmbedded==="@pop"){if(!c)throw sn(this._lexer,"cannot pop embedded language if not inside one");c=null}else{if(c)throw sn(this._lexer,"cannot enter embedded language from within an embedded language");k=nd(this._lexer,y.nextEmbedded,b,_,v)}if(y.goBack&&(d=Math.max(0,d-y.goBack)),y.switchTo&&typeof y.switchTo=="string"){let E=nd(this._lexer,y.switchTo,b,_,v);if(E[0]==="@"&&(E=E.substr(1)),lx(this._lexer,E))u=u.switchTo(E);else throw sn(this._lexer,"trying to switch to a state '"+E+"' that is undefined in rule: "+this._safeRuleName(w))}else{if(y.transform&&typeof y.transform=="function")throw sn(this._lexer,"action.transform not supported");if(y.next)if(y.next==="@push"){if(u.depth>=this._lexer.maxStack)throw sn(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]");u=u.push(v)}else if(y.next==="@pop"){if(u.depth<=1)throw sn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));u=u.pop()}else if(y.next==="@popall")u=u.popall();else{let E=nd(this._lexer,y.next,b,_,v);if(E[0]==="@"&&(E=E.substr(1)),lx(this._lexer,E))u=u.push(E);else throw sn(this._lexer,"trying to set a next state '"+E+"' that is undefined in rule: "+this._safeRuleName(w))}}y.log&&typeof y.log=="string"&&_je(this._lexer,this._lexer.languageId+": "+nd(this._lexer,y.log,b,_,v))}if(L===null)throw sn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));const D=E=>{const N=this._languageService.getLanguageIdByLanguageName(E)||this._languageService.getLanguageIdByMimeType(E)||E,O=this._getNestedEmbeddedLanguageData(N);if(d<l){const I=e.substr(d);return this._nestedTokenize(I,t,id.create(u,O),r+d,s)}else return id.create(u,O)};if(Array.isArray(L)){if(h&&h.groups.length>0)throw sn(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(_.length!==L.length+1)throw sn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let E=0;for(let N=1;N<_.length;N++)E+=_[N].length;if(E!==b.length)throw sn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));h={rule:w,matches:_,groups:[]};for(let N=0;N<L.length;N++)h.groups[N]={action:L[N],matched:_[N+1]};d-=b.length;continue}else{if(L==="@rematch"&&(d-=b.length,b="",_=null,L="",k!==null))return D(k);if(b.length===0){if(l===0||m!==u.depth||v!==u.state||(h?h.groups.length:0)!==p)continue;throw sn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w))}let E=null;if(PG(L)&&L.indexOf("@brackets")===0){const N=L.substr(9),O=wje(this._lexer,b);if(!O)throw sn(this._lexer,"@brackets token returned but no bracket defined as: "+b);E=FG(O.token+N)}else{const N=L===""?"":L+this._lexer.tokenPostfix;E=FG(N)}g<o&&s.emit(g+r,E)}if(k!==null)return D(k)}return id.create(u,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new jm(e,XS);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Xn.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Xn.get(e);return t?new jm(e,t.getInitialState()):new jm(e,XS)}};Sv=bje([yje(4,Qn)],Sv);function wje(n,e){if(!e)return null;e=td(n,e);const t=n.brackets;for(const i of t){if(i.open===e)return{token:i.token,bracketType:1};if(i.close===e)return{token:i.token,bracketType:-1}}return null}var Sje=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const dN=Im("standaloneColorizer",{createHTML:n=>n});class hN{static colorizeElement(e,t,i,r){r=r||{};const s=r.theme||"vs",o=r.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(o)||o;e.setTheme(s);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+s;const c=u=>{var d;const h=(d=dN==null?void 0:dN.createHTML(u))!==null&&d!==void 0?d:u;i.innerHTML=h};return this.colorize(t,l||"",a,r).then(c,u=>console.error(u))}static colorize(e,t,i,r){return Sje(this,void 0,void 0,function*(){const s=e.languageIdCodec;let o=4;r&&typeof r.tabSize=="number"&&(o=r.tabSize),vO(t)&&(t=t.substr(1));const a=Q_(t);if(!e.isRegisteredLanguageId(i))return WG(a,o,s);const l=yield Xn.getOrCreate(i);return l?xje(a,o,l,s):WG(a,o,s)})}static colorizeLine(e,t,i,r,s=4){const o=fr.isBasicASCII(e,t),a=fr.containsRTL(e,o,i);return yv(new ed(!1,!0,e,!1,o,a,0,r,[],s,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const r=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function xje(n,e,t,i){return new Promise((r,s)=>{const o=()=>{const a=Lje(n,e,t,i);if(t instanceof Sv){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(o,s);return}}r(a)};o()})}function WG(n,e,t){let i=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let o=0,a=n.length;o<a;o++){const l=n[o];s[0]=l.length;const c=new ki(s,l,t),u=fr.isBasicASCII(l,!0),d=fr.containsRTL(l,u,!0),h=yv(new ed(!1,!0,l,!1,u,d,0,c,[],e,0,0,0,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>")}return i.join("")}function Lje(n,e,t,i){let r=[],s=t.getInitialState();for(let o=0,a=n.length;o<a;o++){const l=n[o],c=t.tokenizeEncoded(l,!0,s);ki.convertToEndOffset(c.tokens,l.length);const u=new ki(c.tokens,l,i),d=fr.isBasicASCII(l,!0),h=fr.containsRTL(l,d,!0),f=yv(new ed(!1,!0,l,!1,d,h,0,u.inflate(),[],e,0,0,0,0,-1,"none",!1,!1,null));r=r.concat(f.html),r.push("<br/>"),s=c.endState}return r.join("")}const VG={clipboard:{writeText:V_||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:V_||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>V_||TVe()?0:navigator.keyboard||xc?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function fN(n,e){if(typeof n=="number"){if(n===0)return null;const t=(n&65535)>>>0,i=(n&4294901760)>>>16;return i!==0?new gN([ux(t,e),ux(i,e)]):new gN([ux(t,e)])}else{const t=[];for(let i=0;i<n.length;i++)t.push(ux(n[i],e));return new gN(t)}}function ux(n,e){const t=!!(n&2048),i=!!(n&256),r=e===2?i:t,s=!!(n&1024),o=!!(n&512),a=e===2?t:i,l=n&255;return new jh(r,s,o,a,l)}class jh{constructor(e,t,i,r,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=r,this.keyCode=s}equals(e){return e instanceof jh&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class gN{constructor(e){if(e.length===0)throw pS("chords");this.chords=e}}class kje{constructor(e,t,i,r,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=r,this.keyLabel=s,this.keyAriaLabel=o}}class Dje{}function Eje(n){if(n.charCode){const t=String.fromCharCode(n.charCode).toUpperCase();return wc.fromString(t)}const e=n.keyCode;if(e===3)return 7;if($o)switch(e){case 59:return 85;case 60:if(Lr)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(It)return 57;break}else if(Ih){if(It&&e===93)return 57;if(!It&&e===92)return 57}return Iq[e]||0}const Tje=It?256:2048,Ije=512,Aje=1024,Oje=It?2048:256;class on{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState("AltGraph"),this.keyCode=Eje(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Tje),this.altKey&&(t|=Ije),this.shiftKey&&(t|=Aje),this.metaKey&&(t|=Oje),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new jh(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let $G=!1,xv=null;function Nje(n){if(!n.parent||n.parent===n)return null;try{const e=n.location,t=n.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return $G=!0,null}catch{return $G=!0,null}return n.parent}class Mje{static getSameOriginWindowChain(){if(!xv){xv=[];let e=window,t;do t=Nje(e),t?xv.push({window:e,iframeElement:e.frameElement||null}):xv.push({window:e,iframeElement:null}),e=t;while(e)}return xv.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,r=0;const s=this.getSameOriginWindowChain();for(const o of s){if(i+=o.window.scrollY,r+=o.window.scrollX,o.window===t||!o.iframeElement)break;const a=o.iframeElement.getBoundingClientRect();i+=a.top,r+=a.left}return{top:i,left:r}}}class Ta{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=Mje.getPositionOfChildWindowRelativeToAncestorWindow(window,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class zh{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){const r=e,s=e;if(typeof r.wheelDeltaY<"u")this.deltaY=r.wheelDeltaY/120;else if(typeof s.VERTICAL_AXIS<"u"&&s.axis===s.VERTICAL_AXIS)this.deltaY=-s.detail/3;else if(e.type==="wheel"){const o=e;o.deltaMode===o.DOM_DELTA_LINE?$o&&!It?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")xc&&os?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120;else if(typeof s.HORIZONTAL_AXIS<"u"&&s.axis===s.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const o=e;o.deltaMode===o.DOM_DELTA_LINE?$o&&!It?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)===null||e===void 0||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)===null||e===void 0||e.stopPropagation()}}/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */function Pje(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}else return Array.from(n)}var Rje=Object.hasOwnProperty,HG=Object.setPrototypeOf,Fje=Object.isFrozen,Bje=Object.getPrototypeOf,Wje=Object.getOwnPropertyDescriptor,gs=Object.freeze,Ac=Object.seal,Vje=Object.create,jG=typeof Reflect<"u"&&Reflect,dx=jG.apply,mN=jG.construct;dx||(dx=function(e,t,i){return e.apply(t,i)}),gs||(gs=function(e){return e}),Ac||(Ac=function(e){return e}),mN||(mN=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(Pje(t))))});var $je=Ia(Array.prototype.forEach),zG=Ia(Array.prototype.pop),Lv=Ia(Array.prototype.push),Uh=Ia(String.prototype.toLowerCase),UG=Ia(String.prototype.match),rd=Ia(String.prototype.replace),Hje=Ia(String.prototype.indexOf),jje=Ia(String.prototype.trim),Oc=Ia(RegExp.prototype.test),qG=zje(TypeError);function Ia(n){return function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return dx(n,e,i)}}function zje(n){return function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return mN(n,t)}}function qt(n,e){HG&&HG(n,null);for(var t=e.length;t--;){var i=e[t];if(typeof i=="string"){var r=Uh(i);r!==i&&(Fje(e)||(e[t]=r),i=r)}n[i]=!0}return n}function qh(n){var e=Vje(null),t=void 0;for(t in n)dx(Rje,n,[t])&&(e[t]=n[t]);return e}function hx(n,e){for(;n!==null;){var t=Wje(n,e);if(t){if(t.get)return Ia(t.get);if(typeof t.value=="function")return Ia(t.value)}n=Bje(n)}function i(r){return console.warn("fallback value for",r),null}return i}var KG=gs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pN=gs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_N=gs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Uje=gs(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vN=gs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),qje=gs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),GG=gs(["#text"]),YG=gs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),bN=gs(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ZG=gs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fx=gs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kje=Ac(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Gje=Ac(/<%[\s\S]*|[\s\S]*%>/gm),Yje=Ac(/^data-[\-\w.\u00B7-\uFFFF]/),Zje=Ac(/^aria-[\-\w]+$/),Xje=Ac(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qje=Ac(/^(?:\w+script|data):/i),Jje=Ac(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function yl(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}else return Array.from(n)}var eze=function(){return typeof window>"u"?null:window},tze=function(e,t){if((typeof e>"u"?"undefined":kv(e))!=="object"||typeof e.createPolicy!="function")return null;var i=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(i=t.currentScript.getAttribute(r));var s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function XG(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eze(),e=function(_e){return XG(_e)};if(e.version="2.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==9)return e.isSupported=!1,e;var t=n.document,i=n.document,r=n.DocumentFragment,s=n.HTMLTemplateElement,o=n.Node,a=n.Element,l=n.NodeFilter,c=n.NamedNodeMap,u=c===void 0?n.NamedNodeMap||n.MozNamedAttrMap:c,d=n.Text,h=n.Comment,f=n.DOMParser,g=n.trustedTypes,m=a.prototype,p=hx(m,"cloneNode"),v=hx(m,"nextSibling"),_=hx(m,"childNodes"),b=hx(m,"parentNode");if(typeof s=="function"){var y=i.createElement("template");y.content&&y.content.ownerDocument&&(i=y.content.ownerDocument)}var w=tze(g,t),k=w&&be?w.createHTML(""):"",L=i,D=L.implementation,E=L.createNodeIterator,N=L.createDocumentFragment,O=L.getElementsByTagName,I=t.importNode,M={};try{M=qh(i).documentMode?i.documentMode:{}}catch{}var B={};e.isSupported=typeof b=="function"&&D&&typeof D.createHTMLDocument<"u"&&M!==9;var V=Kje,ee=Gje,re=Yje,se=Zje,ie=Qje,J=Jje,ue=Xje,Z=null,X=qt({},[].concat(yl(KG),yl(pN),yl(_N),yl(vN),yl(GG))),ce=null,De=qt({},[].concat(yl(YG),yl(bN),yl(ZG),yl(fx))),te=null,xe=null,ge=!0,Ce=!0,Se=!1,pe=!1,Q=!1,Xe=!1,et=!1,Fe=!1,j=!1,le=!0,be=!1,$e=!0,Y=!0,H=!1,q={},P=null,F=qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),z=null,U=qt({},["audio","video","img","source","image","track"]),fe=null,ke=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Ye=Ze,Vt=!1,Et=null,Me=i.createElement("form"),Mt=function(_e){Et&&Et===_e||((!_e||(typeof _e>"u"?"undefined":kv(_e))!=="object")&&(_e={}),_e=qh(_e),Z="ALLOWED_TAGS"in _e?qt({},_e.ALLOWED_TAGS):X,ce="ALLOWED_ATTR"in _e?qt({},_e.ALLOWED_ATTR):De,fe="ADD_URI_SAFE_ATTR"in _e?qt(qh(ke),_e.ADD_URI_SAFE_ATTR):ke,z="ADD_DATA_URI_TAGS"in _e?qt(qh(U),_e.ADD_DATA_URI_TAGS):U,P="FORBID_CONTENTS"in _e?qt({},_e.FORBID_CONTENTS):F,te="FORBID_TAGS"in _e?qt({},_e.FORBID_TAGS):{},xe="FORBID_ATTR"in _e?qt({},_e.FORBID_ATTR):{},q="USE_PROFILES"in _e?_e.USE_PROFILES:!1,ge=_e.ALLOW_ARIA_ATTR!==!1,Ce=_e.ALLOW_DATA_ATTR!==!1,Se=_e.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=_e.SAFE_FOR_TEMPLATES||!1,Q=_e.WHOLE_DOCUMENT||!1,Fe=_e.RETURN_DOM||!1,j=_e.RETURN_DOM_FRAGMENT||!1,le=_e.RETURN_DOM_IMPORT!==!1,be=_e.RETURN_TRUSTED_TYPE||!1,et=_e.FORCE_BODY||!1,$e=_e.SANITIZE_DOM!==!1,Y=_e.KEEP_CONTENT!==!1,H=_e.IN_PLACE||!1,ue=_e.ALLOWED_URI_REGEXP||ue,Ye=_e.NAMESPACE||Ze,pe&&(Ce=!1),j&&(Fe=!0),q&&(Z=qt({},[].concat(yl(GG))),ce=[],q.html===!0&&(qt(Z,KG),qt(ce,YG)),q.svg===!0&&(qt(Z,pN),qt(ce,bN),qt(ce,fx)),q.svgFilters===!0&&(qt(Z,_N),qt(ce,bN),qt(ce,fx)),q.mathMl===!0&&(qt(Z,vN),qt(ce,ZG),qt(ce,fx))),_e.ADD_TAGS&&(Z===X&&(Z=qh(Z)),qt(Z,_e.ADD_TAGS)),_e.ADD_ATTR&&(ce===De&&(ce=qh(ce)),qt(ce,_e.ADD_ATTR)),_e.ADD_URI_SAFE_ATTR&&qt(fe,_e.ADD_URI_SAFE_ATTR),_e.FORBID_CONTENTS&&(P===F&&(P=qh(P)),qt(P,_e.FORBID_CONTENTS)),Y&&(Z["#text"]=!0),Q&&qt(Z,["html","head","body"]),Z.table&&(qt(Z,["tbody"]),delete te.tbody),gs&&gs(_e),Et=_e)},Ut=qt({},["mi","mo","mn","ms","mtext"]),zn=qt({},["foreignobject","desc","title","annotation-xml"]),Qt=qt({},pN);qt(Qt,_N),qt(Qt,Uje);var An=qt({},vN);qt(An,qje);var js=function(_e){var He=b(_e);(!He||!He.tagName)&&(He={namespaceURI:Ze,tagName:"template"});var ot=Uh(_e.tagName),K=Uh(He.tagName);if(_e.namespaceURI===Pe)return He.namespaceURI===Ze?ot==="svg":He.namespaceURI===Ie?ot==="svg"&&(K==="annotation-xml"||Ut[K]):!!Qt[ot];if(_e.namespaceURI===Ie)return He.namespaceURI===Ze?ot==="math":He.namespaceURI===Pe?ot==="math"&&zn[K]:!!An[ot];if(_e.namespaceURI===Ze){if(He.namespaceURI===Pe&&!zn[K]||He.namespaceURI===Ie&&!Ut[K])return!1;var Ee=qt({},["title","style","font","a","script"]);return!An[ot]&&(Ee[ot]||!Qt[ot])}return!1},vr=function(_e){Lv(e.removed,{element:_e});try{_e.parentNode.removeChild(_e)}catch{try{_e.outerHTML=k}catch{_e.remove()}}},zs=function(_e,He){try{Lv(e.removed,{attribute:He.getAttributeNode(_e),from:He})}catch{Lv(e.removed,{attribute:null,from:He})}if(He.removeAttribute(_e),_e==="is"&&!ce[_e])if(Fe||j)try{vr(He)}catch{}else try{He.setAttribute(_e,"")}catch{}},za=function(_e){var He=void 0,ot=void 0;if(et)_e="<remove></remove>"+_e;else{var K=UG(_e,/^[\r\n\t ]+/);ot=K&&K[0]}var Ee=w?w.createHTML(_e):_e;if(Ye===Ze)try{He=new f().parseFromString(Ee,"text/html")}catch{}if(!He||!He.documentElement){He=D.createDocument(Ye,"template",null);try{He.documentElement.innerHTML=Vt?"":Ee}catch{}}var Be=He.body||He.documentElement;return _e&&ot&&Be.insertBefore(i.createTextNode(ot),Be.childNodes[0]||null),Ye===Ze?O.call(He,Q?"html":"body")[0]:Q?He.documentElement:Be},su=function(_e){return E.call(_e.ownerDocument||_e,_e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Yl=function(_e){return _e instanceof d||_e instanceof h?!1:typeof _e.nodeName!="string"||typeof _e.textContent!="string"||typeof _e.removeChild!="function"||!(_e.attributes instanceof u)||typeof _e.removeAttribute!="function"||typeof _e.setAttribute!="function"||typeof _e.namespaceURI!="string"||typeof _e.insertBefore!="function"},ou=function(_e){return(typeof o>"u"?"undefined":kv(o))==="object"?_e instanceof o:_e&&(typeof _e>"u"?"undefined":kv(_e))==="object"&&typeof _e.nodeType=="number"&&typeof _e.nodeName=="string"},Yr=function(_e,He,ot){B[_e]&&$je(B[_e],function(K){K.call(e,He,ot,Et)})},qf=function(_e){var He=void 0;if(Yr("beforeSanitizeElements",_e,null),Yl(_e)||UG(_e.nodeName,/[\u0080-\uFFFF]/))return vr(_e),!0;var ot=Uh(_e.nodeName);if(Yr("uponSanitizeElement",_e,{tagName:ot,allowedTags:Z}),!ou(_e.firstElementChild)&&(!ou(_e.content)||!ou(_e.content.firstElementChild))&&Oc(/<[/\w]/g,_e.innerHTML)&&Oc(/<[/\w]/g,_e.textContent)||ot==="select"&&Oc(/<template/i,_e.innerHTML))return vr(_e),!0;if(!Z[ot]||te[ot]){if(Y&&!P[ot]){var K=b(_e)||_e.parentNode,Ee=_(_e)||_e.childNodes;if(Ee&&K)for(var Be=Ee.length,rt=Be-1;rt>=0;--rt)K.insertBefore(p(Ee[rt],!0),v(_e))}return vr(_e),!0}return _e instanceof a&&!js(_e)||(ot==="noscript"||ot==="noembed")&&Oc(/<\/no(script|embed)/i,_e.innerHTML)?(vr(_e),!0):(pe&&_e.nodeType===3&&(He=_e.textContent,He=rd(He,V," "),He=rd(He,ee," "),_e.textContent!==He&&(Lv(e.removed,{element:_e.cloneNode()}),_e.textContent=He)),Yr("afterSanitizeElements",_e,null),!1)},Kf=function(_e,He,ot){if($e&&(He==="id"||He==="name")&&(ot in i||ot in Me))return!1;if(!(Ce&&!xe[He]&&Oc(re,He))){if(!(ge&&Oc(se,He))){if(!ce[He]||xe[He])return!1;if(!fe[He]){if(!Oc(ue,rd(ot,J,""))){if(!((He==="src"||He==="xlink:href"||He==="href")&&_e!=="script"&&Hje(ot,"data:")===0&&z[_e])){if(!(Se&&!Oc(ie,rd(ot,J,"")))){if(ot)return!1}}}}}}return!0},n0=function(_e){var He=void 0,ot=void 0,K=void 0,Ee=void 0;Yr("beforeSanitizeAttributes",_e,null);var Be=_e.attributes;if(Be){var rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(Ee=Be.length;Ee--;){He=Be[Ee];var $t=He,gn=$t.name,Gt=$t.namespaceURI;if(ot=jje(He.value),K=Uh(gn),rt.attrName=K,rt.attrValue=ot,rt.keepAttr=!0,rt.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",_e,rt),ot=rt.attrValue,!rt.forceKeepAttr&&(zs(gn,_e),!!rt.keepAttr)){if(Oc(/\/>/i,ot)){zs(gn,_e);continue}pe&&(ot=rd(ot,V," "),ot=rd(ot,ee," "));var Kt=_e.nodeName.toLowerCase();if(Kf(Kt,K,ot))try{Gt?_e.setAttributeNS(Gt,gn,ot):_e.setAttribute(gn,ot),zG(e.removed)}catch{}}}Yr("afterSanitizeAttributes",_e,null)}},Gf=function dt(_e){var He=void 0,ot=su(_e);for(Yr("beforeSanitizeShadowDOM",_e,null);He=ot.nextNode();)Yr("uponSanitizeShadowNode",He,null),!qf(He)&&(He.content instanceof r&&dt(He.content),n0(He));Yr("afterSanitizeShadowDOM",_e,null)};return e.sanitize=function(dt,_e){var He=void 0,ot=void 0,K=void 0,Ee=void 0,Be=void 0;if(Vt=!dt,Vt&&(dt="<!-->"),typeof dt!="string"&&!ou(dt)){if(typeof dt.toString!="function")throw qG("toString is not a function");if(dt=dt.toString(),typeof dt!="string")throw qG("dirty is not a string, aborting")}if(!e.isSupported){if(kv(n.toStaticHTML)==="object"||typeof n.toStaticHTML=="function"){if(typeof dt=="string")return n.toStaticHTML(dt);if(ou(dt))return n.toStaticHTML(dt.outerHTML)}return dt}if(Xe||Mt(_e),e.removed=[],typeof dt=="string"&&(H=!1),!H)if(dt instanceof o)He=za("<!---->"),ot=He.ownerDocument.importNode(dt,!0),ot.nodeType===1&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?He=ot:He.appendChild(ot);else{if(!Fe&&!pe&&!Q&&dt.indexOf("<")===-1)return w&&be?w.createHTML(dt):dt;if(He=za(dt),!He)return Fe?null:k}He&&et&&vr(He.firstChild);for(var rt=su(H?dt:He);K=rt.nextNode();)K.nodeType===3&&K===Ee||qf(K)||(K.content instanceof r&&Gf(K.content),n0(K),Ee=K);if(Ee=null,H)return dt;if(Fe){if(j)for(Be=N.call(He.ownerDocument);He.firstChild;)Be.appendChild(He.firstChild);else Be=He;return le&&(Be=I.call(t,Be,!0)),Be}var $t=Q?He.outerHTML:He.innerHTML;return pe&&($t=rd($t,V," "),$t=rd($t,ee," ")),w&&be?w.createHTML($t):$t},e.setConfig=function(dt){Mt(dt),Xe=!0},e.clearConfig=function(){Et=null,Xe=!1},e.isValidAttribute=function(dt,_e,He){Et||Mt({});var ot=Uh(dt),K=Uh(_e);return Kf(ot,K,He)},e.addHook=function(dt,_e){typeof _e=="function"&&(B[dt]=B[dt]||[],Lv(B[dt],_e))},e.removeHook=function(dt){B[dt]&&zG(B[dt])},e.removeHooks=function(dt){B[dt]&&(B[dt]=[])},e.removeAllHooks=function(){B={}},e}var Cl=XG();Cl.version,Cl.isSupported;const QG=Cl.sanitize;Cl.setConfig,Cl.clearConfig,Cl.isValidAttribute;const JG=Cl.addHook,eY=Cl.removeHook;Cl.removeHooks,Cl.removeAllHooks;var mt;(function(n){n.inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote",n.vscodeRemoteResource="vscode-remote-resource",n.vscodeManagedRemoteResource="vscode-managed-remote-resource",n.vscodeUserData="vscode-userdata",n.vscodeCustomEditor="vscode-custom-editor",n.vscodeNotebookCell="vscode-notebook-cell",n.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",n.vscodeNotebookCellOutput="vscode-notebook-cell-output",n.vscodeInteractiveInput="vscode-interactive-input",n.vscodeSettings="vscode-settings",n.vscodeWorkspaceTrust="vscode-workspace-trust",n.vscodeTerminal="vscode-terminal",n.vscodeChatSesssion="vscode-chat-editor",n.webviewPanel="webview-panel",n.vscodeWebview="vscode-webview",n.extension="extension",n.vscodeFileResource="vscode-file",n.tmp="tmp",n.vsls="vsls",n.vscodeSourceControl="vscode-scm"})(mt||(mt={}));const nze="tkn";class ize{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${mt.vscodeRemoteResource}`}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return Cn(a),e}const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const r=this._ports[t],s=this._connectionTokens[t];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${nze}=${encodeURIComponent(s)}`),Nt.from({scheme:lm?this._preferredWebSchema:mt.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const tY=new ize;class Dv{uriToBrowserUri(e){return e.scheme===mt.vscodeRemote?tY.rewrite(e):e.scheme===mt.file&&(V_||OBe&&Ro.origin===`${mt.vscodeFileResource}://${Dv.FALLBACK_AUTHORITY}`)?e.with({scheme:mt.vscodeFileResource,authority:e.authority||Dv.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}Dv.FALLBACK_AUTHORITY="vscode-app";const nY=new Dv;var iY;(function(n){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);n.CoopAndCoep=Object.freeze(e.get("3"));const t="vscode-coi";function i(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:Nt.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(t);if(a)return e.get(a)}n.getHeadersFromQuery=i;function r(s,o,a){if(!globalThis.crossOriginIsolated)return;const l=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(t,l):s[t]=l}n.addSearchParam=r})(iY||(iY={}));function io(n){for(;n.firstChild;)n.firstChild.remove()}function rY(n){var e;return(e=n==null?void 0:n.isConnected)!==null&&e!==void 0?e:!1}class rze{constructor(e,t,i,r){this._node=e,this._type=t,this._handler=i,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function ye(n,e,t,i){return new rze(n,e,t,i)}function sze(n){return function(e){return n(new Ta(e))}}function oze(n){return function(e){return n(new on(e))}}const li=function(e,t,i,r){let s=i;return t==="click"||t==="mousedown"?s=sze(i):(t==="keydown"||t==="keypress"||t==="keyup")&&(s=oze(i)),ye(e,t,s,r)};let sY,ro;class yN{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Cn(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let n=[],e=null,t=!1,i=!1;const r=()=>{for(t=!1,e=n,n=[],i=!0;e.length>0;)e.sort(yN.sort),e.shift().execute();i=!1};ro=(s,o=0)=>{const a=new yN(s,o);return n.push(a),t||(t=!0,requestAnimationFrame(r)),a},sY=(s,o)=>{if(i){const a=new yN(s,o);return e.push(a),a}else return ro(s,o)}})();function CN(n){return document.defaultView.getComputedStyle(n,null)}function oY(n){if(n!==document.body)return new so(n.clientWidth,n.clientHeight);if(Mu&&window.visualViewport)return new so(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new so(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new so(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new so(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Dn{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const r=CN(e),s=r?r.getPropertyValue(t):"0";return Dn.convertToPixels(e,s)}static getBorderLeftWidth(e){return Dn.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Dn.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Dn.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Dn.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Dn.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Dn.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Dn.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Dn.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Dn.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Dn.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Dn.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Dn.getDimension(e,"margin-bottom","marginBottom")}}class so{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new so(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof so?e:new so(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}so.None=new so(0,0);function aze(n){let e=n.offsetParent,t=n.offsetTop,i=n.offsetLeft;for(;(n=n.parentNode)!==null&&n!==document.body&&n!==document.documentElement;){t-=n.scrollTop;const r=lY(n)?null:CN(n);r&&(i-=r.direction!=="rtl"?n.scrollLeft:-n.scrollLeft),n===e&&(i+=Dn.getBorderLeftWidth(n),t+=Dn.getBorderTopWidth(n),t+=n.offsetTop,i+=n.offsetLeft,e=n.offsetParent)}return{left:i,top:t}}function Bs(n){const e=n.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,width:e.width,height:e.height}}function lze(n){let e=n,t=1;do{const i=CN(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==document.documentElement);return t}function wN(n){const e=Dn.getMarginLeft(n)+Dn.getMarginRight(n);return n.offsetWidth+e}function SN(n){const e=Dn.getBorderLeftWidth(n)+Dn.getBorderRightWidth(n),t=Dn.getPaddingLeft(n)+Dn.getPaddingRight(n);return n.offsetWidth-e-t}function cze(n){const e=Dn.getBorderTopWidth(n)+Dn.getBorderBottomWidth(n),t=Dn.getPaddingTop(n)+Dn.getPaddingBottom(n);return n.offsetHeight-e-t}function xN(n){const e=Dn.getMarginTop(n)+Dn.getMarginBottom(n);return n.offsetHeight+e}function ms(n,e){for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function aY(n,e,t){for(;n&&n.nodeType===n.ELEMENT_NODE;){if(n.classList.contains(e))return n;if(t){if(typeof t=="string"){if(n.classList.contains(t))return null}else if(n===t)return null}n=n.parentNode}return null}function LN(n,e,t){return!!aY(n,e,t)}function lY(n){return n&&!!n.host&&!!n.mode}function kN(n){return!!zm(n)}function zm(n){for(;n.parentNode;){if(n===document.body)return null;n=n.parentNode}return lY(n)?n:null}function sd(){let n=document.activeElement;for(;n!=null&&n.shadowRoot;)n=n.shadowRoot.activeElement;return n}function Uo(n=document.getElementsByTagName("head")[0],e){const t=document.createElement("style");return t.type="text/css",t.media="screen",e==null||e(t),n.appendChild(t),t}let DN=null;function uze(){return DN||(DN=Uo()),DN}function cY(n,e,t=uze()){!t||!e||t.sheet.insertRule(n+"{"+e+"}",0)}function uY(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"}const Ae={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Ih?"webkitAnimationStart":"animationstart",ANIMATION_END:Ih?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Ih?"webkitAnimationIteration":"animationiteration"};function dze(n){const e=n;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const ut={stop:(n,e)=>(n.preventDefault(),e&&n.stopPropagation(),n)};function hze(n){const e=[];for(let t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)e[t]=n.scrollTop,n=n.parentNode;return e}function fze(n,e){for(let t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)n.scrollTop!==e[t]&&(n.scrollTop=e[t]),n=n.parentNode}class gx extends Le{static hasFocusWithin(e){const t=zm(e),i=t?t.activeElement:document.activeElement;return ms(i,e)}constructor(e){super(),this._onDidFocus=this._register(new ne),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new ne),this.onDidBlur=this._onDidBlur.event;let t=gx.hasFocusWithin(e),i=!1;const r=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{gx.hasFocusWithin(e)!==t&&(t?s():r())},this._register(ye(e,Ae.FOCUS,r,!0)),this._register(ye(e,Ae.BLUR,s,!0)),this._register(ye(e,Ae.FOCUS_IN,()=>this._refreshStateHandler())),this._register(ye(e,Ae.FOCUS_OUT,()=>this._refreshStateHandler()))}}function mx(n){return new gx(n)}function We(n,...e){if(n.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function dY(n,e){return n.insertBefore(e,n.firstChild),e}function Hr(n,...e){n.innerText="",We(n,...e)}const gze=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ev;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.SVG="http://www.w3.org/2000/svg"})(Ev||(Ev={}));function hY(n,e,t,...i){const r=gze.exec(e);if(!r)throw new Error("Bad use of emmet");const s=r[1]||"div";let o;return n!==Ev.HTML?o=document.createElementNS(n,s):o=document.createElement(s),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?o[a]=l:a==="selected"?l&&o.setAttribute(a,"true"):o.setAttribute(a,l))}),o.append(...i),o}function tt(n,e,...t){return hY(Ev.HTML,n,e,...t)}tt.SVG=function(n,e,...t){return hY(Ev.SVG,n,e,...t)};function fY(...n){for(const e of n)e.style.display="",e.removeAttribute("aria-hidden")}function gY(...n){for(const e of n)e.style.display="none",e.setAttribute("aria-hidden","true")}function mY(n){const e=window.devicePixelRatio*n;return Math.max(1,Math.floor(e))/window.devicePixelRatio}function pY(n){window.open(n,"_blank","noopener")}function mze(n){const e=()=>{n(),t=ro(e)};let t=ro(e);return Ot(()=>t.dispose())}tY.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function od(n){return n?`url('${nY.uriToBrowserUri(n).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function _Y(n){return`'${n.replace(/'/g,"%27")}'`}function Kh(n,e){if(n!==void 0){const t=n.match(/^\s*var\((.+)\)$/);if(t){const i=t[1].split(",",2);return i.length===2&&(e=Kh(i[1].trim(),e)),`var(${i[0]}, ${e})`}return n}return e}function pze(n,e=!1){const t=document.createElement("a");return JG("afterSanitizeAttributes",i=>{for(const r of["href","src"])if(i.hasAttribute(r)){const s=i.getAttribute(r);if(r==="href"&&s.startsWith("#"))continue;if(t.href=s,!n.includes(t.protocol.replace(/:$/,""))){if(e&&r==="src"&&t.href.startsWith("data:"))continue;i.removeAttribute(r)}}}),Ot(()=>{eY("afterSanitizeAttributes")})}const _ze=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);class ad extends ne{constructor(){super(),this._subscriptions=new Je,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(ye(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new on(e);if(!(t.keyCode===6&&e.repeat)){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(t.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(ye(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(ye(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(ye(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(ye(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(ye(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return ad.instance||(ad.instance=new ad),ad.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class vze extends Le{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this._register(ye(this.element,Ae.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter(e)})),this._register(ye(this.element,Ae.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)===null||i===void 0||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(ye(this.element,Ae.DRAG_LEAVE,e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave(e))})),this._register(ye(this.element,Ae.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd(e)})),this._register(ye(this.element,Ae.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop(e)}))}}const bze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function oo(n,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const r=bze.exec(n);if(!r||!r.groups)throw new Error("Bad use of h");const s=r.groups.tag||"div",o=document.createElement(s);r.groups.id&&(o.id=r.groups.id);const a=[];if(r.groups.class)for(const c of r.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(const c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(o.className=a.join(" "));const l={};if(r.groups.name&&(l[r.groups.name]=o),i)for(const c of i)c instanceof HTMLElement?o.appendChild(c):typeof c=="string"?o.append(c):"root"in c&&(Object.assign(l,c),o.appendChild(c.root));for(const[c,u]of Object.entries(t))if(c!=="className")if(c==="style")for(const[d,h]of Object.entries(u))o.style.setProperty(vY(d),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?o.tabIndex=u:o.setAttribute(vY(c),u.toString());return l.root=o,l}function vY(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Ght="",bY=2e4;let Gh,px,EN,_x,TN;function yze(n){Gh=document.createElement("div"),Gh.className="monaco-aria-container";const e=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),Gh.appendChild(i),i};px=e(),EN=e();const t=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),Gh.appendChild(i),i};_x=t(),TN=t(),n.appendChild(Gh)}function yY(n){Gh&&(px.textContent!==n?(io(EN),vx(px,n)):(io(px),vx(EN,n)))}function IN(n){Gh&&(_x.textContent!==n?(io(TN),vx(_x,n)):(io(_x),vx(TN,n)))}function vx(n,e){io(n),e.length>bY&&(e=e.substr(0,bY)),n.textContent=e,n.style.visibility="hidden",n.style.visibility="visible"}const CY=Lt("markerDecorationsService"),bx=Lt("textModelService");var Um=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class qo extends Le{constructor(e,t="",i="",r=!0,s){super(),this._onDidChange=this._register(new ne),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=r,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return Um(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class qm extends Le{constructor(){super(...arguments),this._onWillRun=this._register(new ne),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new ne),this.onDidRun=this._onDidRun.event}run(e,t){return Um(this,void 0,void 0,function*(){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(r){i=r}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return Um(this,void 0,void 0,function*(){yield e.run(t)})}}class ps{constructor(){this.id=ps.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t.length?t=[...t,new ps,...i]:t=i);return t}run(){return Um(this,void 0,void 0,function*(){})}}ps.ID="vs.actions.separator";class AN{get actions(){return this._actions}constructor(e,t,i,r){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=r,this._actions=i}run(){return Um(this,void 0,void 0,function*(){})}}class yx extends qo{constructor(){super(yx.ID,C("submenu.empty","(empty)"),void 0,!1)}}yx.ID="vs.actions.empty";function wY(n){var e,t;return{id:n.id,label:n.label,class:void 0,enabled:(e=n.enabled)!==null&&e!==void 0?e:!0,checked:(t=n.checked)!==null&&t!==void 0?t:!1,run:()=>Um(this,void 0,void 0,function*(){return n.run()}),tooltip:n.label}}var ON;(function(n){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}n.isThemeColor=e})(ON||(ON={}));var gt;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9-]+",n.iconModifierExpression="~[A-Za-z]+",n.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function t(h){const f=e.exec(h.id);if(!f)return t(Ne.error);const[,g,m]=f,p=["codicon","codicon-"+g];return m&&p.push("codicon-modifier-"+m.substring(1)),p}n.asClassNameArray=t;function i(h){return t(h).join(" ")}n.asClassName=i;function r(h){return"."+t(h).join(".")}n.asCSSSelector=r;function s(h){return h&&typeof h=="object"&&typeof h.id=="string"&&(typeof h.color>"u"||ON.isThemeColor(h.color))}n.isThemeIcon=s;const o=new RegExp(`^\\$\\((${n.iconNameExpression}(?:${n.iconModifierExpression})?)\\)$`);function a(h){const f=o.exec(h);if(!f)return;const[,g]=f;return{id:g}}n.fromString=a;function l(h){return{id:h}}n.fromId=l;function c(h,f){let g=h.id;const m=g.lastIndexOf("~");return m!==-1&&(g=g.substring(0,m)),f&&(g=`${g}~${f}`),{id:g}}n.modify=c;function u(h){const f=h.id.lastIndexOf("~");if(f!==-1)return h.id.substring(f+1)}n.getModifier=u;function d(h,f){var g,m;return h.id===f.id&&((g=h.color)===null||g===void 0?void 0:g.id)===((m=f.color)===null||m===void 0?void 0:m.id)}n.isEqual=d})(gt||(gt={}));const Ko=Lt("commandService"),tr=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ne,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,e){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:n,handler:e})}if(n.description){const o=[];for(const l of n.description.args)o.push(l.constraint);const a=n.handler;n.handler=function(l,...c){return wBe(c,o),a(l,...c)}}const{id:t}=n;let i=this._commands.get(t);i||(i=new as,this._commands.set(t,i));const r=i.unshift(n),s=Ot(()=>{r();const o=this._commands.get(t);o!=null&&o.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),s}registerCommandAlias(n,e){return tr.registerCommand(n,(t,...i)=>t.get(Ko).executeCommand(e,...i))}getCommand(n){const e=this._commands.get(n);if(!(!e||e.isEmpty()))return At.first(e)}getCommands(){const n=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&n.set(e,t)}return n}};tr.registerCommand("noop",()=>{});class NN{constructor(){this._coreKeybindings=new as,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(Fo===1){if(e&&e.win)return e.win}else if(Fo===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=NN.bindToCurrentPlatform(e),i=new Je;if(t&&t.primary){const r=fN(t.primary,Fo);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,s=t.secondary.length;r<s;r++){const o=t.secondary[r],a=fN(o,Fo);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return gl(this.registerKeybindingRule(e),tr.registerCommand(e))}_registerDefaultKeybinding(e,t,i,r,s,o){const a=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:o,weight1:r,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,Ot(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(wze)),this._cachedMergedKeybindings.slice(0)}}const Km=new NN,Cze={EditorModes:"platform.keybindingsRegistry"};Li.add(Cze.EditorModes,Km);function wze(n,e){if(n.weight1!==e.weight1)return n.weight1-e.weight1;if(n.command&&e.command){if(n.command<e.command)return-1;if(n.command>e.command)return 1}return n.weight2-e.weight2}var Sze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},SY=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},xze=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Tv(n){return n.command!==void 0}function Lze(n){return n.submenu!==void 0}class W{constructor(e){if(W._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);W._instances.set(e,this),this.id=e}}W._instances=new Map,W.CommandPalette=new W("CommandPalette"),W.DebugBreakpointsContext=new W("DebugBreakpointsContext"),W.DebugCallStackContext=new W("DebugCallStackContext"),W.DebugConsoleContext=new W("DebugConsoleContext"),W.DebugVariablesContext=new W("DebugVariablesContext"),W.DebugWatchContext=new W("DebugWatchContext"),W.DebugToolBar=new W("DebugToolBar"),W.DebugToolBarStop=new W("DebugToolBarStop"),W.EditorContext=new W("EditorContext"),W.SimpleEditorContext=new W("SimpleEditorContext"),W.EditorContent=new W("EditorContent"),W.EditorLineNumberContext=new W("EditorLineNumberContext"),W.EditorContextCopy=new W("EditorContextCopy"),W.EditorContextPeek=new W("EditorContextPeek"),W.EditorContextShare=new W("EditorContextShare"),W.EditorTitle=new W("EditorTitle"),W.EditorTitleRun=new W("EditorTitleRun"),W.EditorTitleContext=new W("EditorTitleContext"),W.EditorTitleContextShare=new W("EditorTitleContextShare"),W.EmptyEditorGroup=new W("EmptyEditorGroup"),W.EmptyEditorGroupContext=new W("EmptyEditorGroupContext"),W.EditorTabsBarContext=new W("EditorTabsBarContext"),W.ExplorerContext=new W("ExplorerContext"),W.ExplorerContextShare=new W("ExplorerContextShare"),W.ExtensionContext=new W("ExtensionContext"),W.GlobalActivity=new W("GlobalActivity"),W.CommandCenter=new W("CommandCenter"),W.LayoutControlMenuSubmenu=new W("LayoutControlMenuSubmenu"),W.LayoutControlMenu=new W("LayoutControlMenu"),W.MenubarMainMenu=new W("MenubarMainMenu"),W.MenubarAppearanceMenu=new W("MenubarAppearanceMenu"),W.MenubarDebugMenu=new W("MenubarDebugMenu"),W.MenubarEditMenu=new W("MenubarEditMenu"),W.MenubarCopy=new W("MenubarCopy"),W.MenubarFileMenu=new W("MenubarFileMenu"),W.MenubarGoMenu=new W("MenubarGoMenu"),W.MenubarHelpMenu=new W("MenubarHelpMenu"),W.MenubarLayoutMenu=new W("MenubarLayoutMenu"),W.MenubarNewBreakpointMenu=new W("MenubarNewBreakpointMenu"),W.PanelAlignmentMenu=new W("PanelAlignmentMenu"),W.PanelPositionMenu=new W("PanelPositionMenu"),W.MenubarPreferencesMenu=new W("MenubarPreferencesMenu"),W.MenubarRecentMenu=new W("MenubarRecentMenu"),W.MenubarSelectionMenu=new W("MenubarSelectionMenu"),W.MenubarShare=new W("MenubarShare"),W.MenubarSwitchEditorMenu=new W("MenubarSwitchEditorMenu"),W.MenubarSwitchGroupMenu=new W("MenubarSwitchGroupMenu"),W.MenubarTerminalMenu=new W("MenubarTerminalMenu"),W.MenubarViewMenu=new W("MenubarViewMenu"),W.MenubarHomeMenu=new W("MenubarHomeMenu"),W.OpenEditorsContext=new W("OpenEditorsContext"),W.OpenEditorsContextShare=new W("OpenEditorsContextShare"),W.ProblemsPanelContext=new W("ProblemsPanelContext"),W.SCMChangeContext=new W("SCMChangeContext"),W.SCMResourceContext=new W("SCMResourceContext"),W.SCMResourceContextShare=new W("SCMResourceContextShare"),W.SCMResourceFolderContext=new W("SCMResourceFolderContext"),W.SCMResourceGroupContext=new W("SCMResourceGroupContext"),W.SCMSourceControl=new W("SCMSourceControl"),W.SCMTitle=new W("SCMTitle"),W.SearchContext=new W("SearchContext"),W.SearchActionMenu=new W("SearchActionContext"),W.StatusBarWindowIndicatorMenu=new W("StatusBarWindowIndicatorMenu"),W.StatusBarRemoteIndicatorMenu=new W("StatusBarRemoteIndicatorMenu"),W.StickyScrollContext=new W("StickyScrollContext"),W.TestItem=new W("TestItem"),W.TestItemGutter=new W("TestItemGutter"),W.TestPeekElement=new W("TestPeekElement"),W.TestPeekTitle=new W("TestPeekTitle"),W.TouchBarContext=new W("TouchBarContext"),W.TitleBarContext=new W("TitleBarContext"),W.TitleBarTitleContext=new W("TitleBarTitleContext"),W.TunnelContext=new W("TunnelContext"),W.TunnelPrivacy=new W("TunnelPrivacy"),W.TunnelProtocol=new W("TunnelProtocol"),W.TunnelPortInline=new W("TunnelInline"),W.TunnelTitle=new W("TunnelTitle"),W.TunnelLocalAddressInline=new W("TunnelLocalAddressInline"),W.TunnelOriginInline=new W("TunnelOriginInline"),W.ViewItemContext=new W("ViewItemContext"),W.ViewContainerTitle=new W("ViewContainerTitle"),W.ViewContainerTitleContext=new W("ViewContainerTitleContext"),W.ViewTitle=new W("ViewTitle"),W.ViewTitleContext=new W("ViewTitleContext"),W.CommentEditorActions=new W("CommentEditorActions"),W.CommentThreadTitle=new W("CommentThreadTitle"),W.CommentThreadActions=new W("CommentThreadActions"),W.CommentThreadAdditionalActions=new W("CommentThreadAdditionalActions"),W.CommentThreadTitleContext=new W("CommentThreadTitleContext"),W.CommentThreadCommentContext=new W("CommentThreadCommentContext"),W.CommentTitle=new W("CommentTitle"),W.CommentActions=new W("CommentActions"),W.InteractiveToolbar=new W("InteractiveToolbar"),W.InteractiveCellTitle=new W("InteractiveCellTitle"),W.InteractiveCellDelete=new W("InteractiveCellDelete"),W.InteractiveCellExecute=new W("InteractiveCellExecute"),W.InteractiveInputExecute=new W("InteractiveInputExecute"),W.NotebookToolbar=new W("NotebookToolbar"),W.NotebookStickyScrollContext=new W("NotebookStickyScrollContext"),W.NotebookCellTitle=new W("NotebookCellTitle"),W.NotebookCellDelete=new W("NotebookCellDelete"),W.NotebookCellInsert=new W("NotebookCellInsert"),W.NotebookCellBetween=new W("NotebookCellBetween"),W.NotebookCellListTop=new W("NotebookCellTop"),W.NotebookCellExecute=new W("NotebookCellExecute"),W.NotebookCellExecutePrimary=new W("NotebookCellExecutePrimary"),W.NotebookDiffCellInputTitle=new W("NotebookDiffCellInputTitle"),W.NotebookDiffCellMetadataTitle=new W("NotebookDiffCellMetadataTitle"),W.NotebookDiffCellOutputsTitle=new W("NotebookDiffCellOutputsTitle"),W.NotebookOutputToolbar=new W("NotebookOutputToolbar"),W.NotebookEditorLayoutConfigure=new W("NotebookEditorLayoutConfigure"),W.NotebookKernelSource=new W("NotebookKernelSource"),W.BulkEditTitle=new W("BulkEditTitle"),W.BulkEditContext=new W("BulkEditContext"),W.TimelineItemContext=new W("TimelineItemContext"),W.TimelineTitle=new W("TimelineTitle"),W.TimelineTitleContext=new W("TimelineTitleContext"),W.TimelineFilterSubMenu=new W("TimelineFilterSubMenu"),W.AccountsContext=new W("AccountsContext"),W.PanelTitle=new W("PanelTitle"),W.AuxiliaryBarTitle=new W("AuxiliaryBarTitle"),W.TerminalInstanceContext=new W("TerminalInstanceContext"),W.TerminalEditorInstanceContext=new W("TerminalEditorInstanceContext"),W.TerminalNewDropdownContext=new W("TerminalNewDropdownContext"),W.TerminalTabContext=new W("TerminalTabContext"),W.TerminalTabEmptyAreaContext=new W("TerminalTabEmptyAreaContext"),W.TerminalInlineTabContext=new W("TerminalInlineTabContext"),W.WebviewContext=new W("WebviewContext"),W.InlineCompletionsActions=new W("InlineCompletionsActions"),W.NewFile=new W("NewFile"),W.MergeInput1Toolbar=new W("MergeToolbar1Toolbar"),W.MergeInput2Toolbar=new W("MergeToolbar2Toolbar"),W.MergeBaseToolbar=new W("MergeBaseToolbar"),W.MergeInputResultToolbar=new W("MergeToolbarResultToolbar"),W.InlineSuggestionToolbar=new W("InlineSuggestionToolbar"),W.ChatContext=new W("ChatContext"),W.ChatCodeBlock=new W("ChatCodeblock"),W.ChatMessageTitle=new W("ChatMessageTitle"),W.ChatExecute=new W("ChatExecute");const Cx=Lt("menuService");class ld{static for(e){let t=this._all.get(e);return t||(t=new ld(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof ld&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}ld._all=new Map;const Aa=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new PWe({merge:ld.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(n){return this._commands.set(n.id,n),this._onDidChangeMenu.fire(ld.for(W.CommandPalette)),Ot(()=>{this._commands.delete(n.id)&&this._onDidChangeMenu.fire(ld.for(W.CommandPalette))})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((e,t)=>n.set(t,e)),n}appendMenuItem(n,e){let t=this._menuItems.get(n);t||(t=new as,this._menuItems.set(n,t));const i=t.push(e);return this._onDidChangeMenu.fire(ld.for(n)),Ot(i)}appendMenuItems(n){const e=new Je;for(const{id:t,item:i}of n)e.add(this.appendMenuItem(t,i));return e}getMenuItems(n){let e;return this._menuItems.has(n)?e=[...this._menuItems.get(n)]:e=[],n===W.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(n){const e=new Set;for(const t of n)Tv(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||n.push({command:t})})}};class kze extends AN{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let Iv=class h3{static label(e,t){return t!=null&&t.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,t,i,r,s,o){var a,l;this.hideActions=r,this._commandService=o,this.id=e.id,this.label=h3.label(e,i),this.tooltip=(l=typeof e.tooltip=="string"?e.tooltip:(a=e.tooltip)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0;let c;if(e.toggled){const u=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(u.condition),this.checked&&u.tooltip&&(this.tooltip=typeof u.tooltip=="string"?u.tooltip:u.tooltip.value),this.checked&>.isThemeIcon(u.icon)&&(c=u.icon),this.checked&&u.title&&(this.label=typeof u.title=="string"?u.title:u.title.value)}c||(c=gt.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new h3(t,void 0,i,r,s,o):void 0,this._options=i,this.class=c&>.asClassName(c)}run(...e){var t,i;let r=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(r=[...r,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(r=[...r,...e]),this._commandService.executeCommand(this.id,...r)}};Iv=Sze([SY(4,Zt),SY(5,Ko)],Iv);class xY{constructor(e){this.desc=e}}function LY(n){const e=new Je,t=new n,i=t.desc,{f1:r,menu:s,keybinding:o,description:a}=i,l=xze(i,["f1","menu","keybinding","description"]);if(e.add(tr.registerCommand({id:l.id,handler:(c,...u)=>t.run(c,...u),description:a})),Array.isArray(s))for(const c of s)e.add(Aa.appendMenuItem(c.id,Object.assign({command:Object.assign(Object.assign({},l),{precondition:c.precondition===null?void 0:l.precondition})},c)));else s&&e.add(Aa.appendMenuItem(s.id,Object.assign({command:Object.assign(Object.assign({},l),{precondition:s.precondition===null?void 0:l.precondition})},s)));if(r&&(e.add(Aa.appendMenuItem(W.CommandPalette,{command:l,when:l.precondition})),e.add(Aa.addCommand(l))),Array.isArray(o))for(const c of o)e.add(Km.registerKeybindingRule(Object.assign(Object.assign({},c),{id:l.id,when:l.precondition?Bt.and(l.precondition,c.when):c.when})));else o&&e.add(Km.registerKeybindingRule(Object.assign(Object.assign({},o),{id:l.id,when:l.precondition?Bt.and(l.precondition,o.when):o.when})));return e}const Av=Lt("telemetryService");let wx=class{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=Bt.and(i,this.precondition):i=this.precondition);const r={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};Km.registerKeybindingRule(r)}}tr.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){Aa.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}};class MN extends wx{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,r){return this._implementations.push({priority:e,name:t,implementation:i,when:r}),this._implementations.sort((s,o)=>o.priority-s.priority),{dispose:()=>{for(let s=0;s<this._implementations.length;s++)if(this._implementations[s].implementation===i){this._implementations.splice(s,1);return}}}}runCommand(e,t){const i=e.get(Ju),r=e.get(Zt);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const s of this._implementations){if(s.when){const a=r.getContext(document.activeElement);if(!s.when.evaluate(a))continue}const o=s.implementation(e,t);if(o)return i.trace(`Command '${this.id}' was handled by '${s.name}'.`),typeof o=="boolean"?void 0:o}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class kY extends wx{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class Yh extends wx{static bindToContribution(e){return class extends Yh{constructor(i){super(i),this._callback=i.handler}runEditorCommand(i,r,s){const o=e(r);o&&this._callback(o,s)}}}static runEditorCommand(e,t,i,r){const s=e.get(Pn),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext(a=>{if(a.get(Zt).contextMatchesRules(Ou(i)))return r(a,o,t)})}runCommand(e,t){return Yh.runEditorCommand(e,t,this.precondition,(i,r,s)=>this.runEditorCommand(i,r,s))}}function st(n){return wl.INSTANCE.registerEditorCommand(n),n}function DY(n,e,t){wl.INSTANCE.registerEditorContribution(n,e,t)}var Zh;(function(n){function e(o){return wl.INSTANCE.getEditorCommand(o)}n.getEditorCommand=e;function t(){return wl.INSTANCE.getEditorActions()}n.getEditorActions=t;function i(){return wl.INSTANCE.getEditorContributions()}n.getEditorContributions=i;function r(o){return wl.INSTANCE.getEditorContributions().filter(a=>o.indexOf(a.id)>=0)}n.getSomeEditorContributions=r;function s(){return wl.INSTANCE.getDiffEditorContributions()}n.getDiffEditorContributions=s})(Zh||(Zh={}));const Dze={EditorCommonContributions:"editor.contributions"};class wl{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}wl.INSTANCE=new wl,Li.add(Dze.EditorCommonContributions,wl.INSTANCE);function Ov(n){return n.register(),n}const EY=Ov(new MN({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:W.MenubarEditMenu,group:"1_do",title:C({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:W.CommandPalette,group:"",title:C("undo","Undo"),order:1}]}));Ov(new kY(EY,{id:"default:undo",precondition:void 0}));const TY=Ov(new MN({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:W.MenubarEditMenu,group:"1_do",title:C({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:W.CommandPalette,group:"",title:C("redo","Redo"),order:1}]}));Ov(new kY(TY,{id:"default:redo",precondition:void 0}));const Eze=Ov(new MN({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:W.MenubarSelectionMenu,group:"1_basic",title:C({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:W.CommandPalette,group:"",title:C("selectAll","Select All"),order:1}]}));var Tze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Ize=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let Nv=class{constructor(e,t){}dispose(){}};Nv.ID="editor.contrib.markerDecorations",Nv=Tze([Ize(1,CY)],Nv),DY(Nv.ID,Nv,0);const Yht="";class PN extends Le{constructor(e,t){super(),this._onDidChange=this._register(new ne),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,r=0;t?(i=t.width,r=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,r=this._referenceDomElement.clientHeight),i=Math.max(5,i),r=Math.max(5,r),(this._width!==i||this._height!==r)&&(this._width=i,this._height=r,e&&this._onDidChange.fire())}}class cd{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=cd._read(e,this.key),i=s=>cd._read(e,s),r=(s,o)=>cd._write(e,s,o);this.migrate(t,i,r)}static _read(e,t){if(typeof e>"u")return;const i=t.indexOf(".");if(i>=0){const r=t.substring(0,i);return this._read(e[r],t.substring(i+1))}return e[t]}static _write(e,t,i){const r=t.indexOf(".");if(r>=0){const s=t.substring(0,r);e[s]=e[s]||{},this._write(e[s],t.substring(r+1),i);return}e[t]=i}}cd.items=[];function ud(n,e){cd.items.push(new cd(n,e))}function ao(n,e){ud(n,(t,i,r)=>{if(typeof t<"u"){for(const[s,o]of e)if(t===s){r(n,o);return}}})}function Aze(n){cd.items.forEach(e=>e.apply(n))}ao("wordWrap",[[!0,"on"],[!1,"off"]]),ao("lineNumbers",[[!0,"on"],[!1,"off"]]),ao("cursorBlinking",[["visible","solid"]]),ao("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),ao("renderLineHighlight",[[!0,"line"],[!1,"none"]]),ao("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),ao("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),ao("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),ao("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),ao("autoIndent",[[!1,"advanced"],[!0,"full"]]),ao("matchBrackets",[[!0,"always"],[!1,"never"]]),ao("renderFinalNewline",[[!0,"on"],[!1,"off"]]),ao("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),ud("autoClosingBrackets",(n,e,t)=>{n===!1&&(t("autoClosingBrackets","never"),typeof e("autoClosingQuotes")>"u"&&t("autoClosingQuotes","never"),typeof e("autoSurround")>"u"&&t("autoSurround","never"))}),ud("renderIndentGuides",(n,e,t)=>{typeof n<"u"&&(t("renderIndentGuides",void 0),typeof e("guides.indentation")>"u"&&t("guides.indentation",!!n))}),ud("highlightActiveIndentGuide",(n,e,t)=>{typeof n<"u"&&(t("highlightActiveIndentGuide",void 0),typeof e("guides.highlightActiveIndentation")>"u"&&t("guides.highlightActiveIndentation",!!n))});const Oze={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};ud("suggest.filteredTypes",(n,e,t)=>{if(n&&typeof n=="object"){for(const i of Object.entries(Oze))n[i[0]]===!1&&typeof e(`suggest.${i[1]}`)>"u"&&t(`suggest.${i[1]}`,!1);t("suggest.filteredTypes",void 0)}}),ud("quickSuggestions",(n,e,t)=>{if(typeof n=="boolean"){const i=n?"on":"off";t("quickSuggestions",{comments:i,strings:i,other:i})}}),ud("experimental.stickyScroll.enabled",(n,e,t)=>{typeof n=="boolean"&&(t("experimental.stickyScroll.enabled",void 0),typeof e("stickyScroll.enabled")>"u"&&t("stickyScroll.enabled",n))}),ud("experimental.stickyScroll.maxLineCount",(n,e,t)=>{typeof n=="number"&&(t("experimental.stickyScroll.maxLineCount",void 0),typeof e("stickyScroll.maxLineCount")>"u"&&t("stickyScroll.maxLineCount",n))});class Nze{constructor(){this._tabFocusTerminal=!1,this._tabFocusEditor=!1,this._onDidChangeTabFocus=new ne,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(e){return e==="terminalFocus"?this._tabFocusTerminal:this._tabFocusEditor}setTabFocusMode(e,t){t==="terminalFocus"?this._tabFocusTerminal=e:this._tabFocusEditor=e,this._onDidChangeTabFocus.fire()}}const Mv=new Nze;var Mze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Pze=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let RN=class extends Le{constructor(e,t,i,r){super(),this._accessibilityService=r,this._onDidChange=this._register(new ne),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new ne),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new Cq,this.isSimpleWidget=e,this._containerObserver=this._register(new PN(i,t.dimension)),this._rawOptions=IY(t),this._validatedOptions=dd.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(12)&&this._containerObserver.startObserving(),this._register(qu.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(Mv.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(xO.onDidChange(()=>this._recomputeOptions())),this._register(TS.onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=dd.checkEquals(this.options,e);t!==null&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=Ah.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),r={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:Mv.getTabFocusMode("editorFocus"),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return dd.computeOptions(this._validatedOptions,r)}_readEnvConfiguration(){return{extraEditorClassName:Fze(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:Ih||$o,pixelRatio:TS.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return xO.readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=IY(e);dd.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=dd.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=Rze(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};RN=Mze([Pze(3,Rh)],RN);function Rze(n){let e=0;for(;n;)n=Math.floor(n/10),e++;return e||1}function Fze(){let n="";return!xc&&!sK&&(n+="no-user-select "),xc&&(n+="no-minimap-shadow ",n+="enable-user-select "),It&&(n+="mac "),n}class Bze{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class Wze{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class dd{static validateOptions(e){const t=new Bze;for(const i of hm){const r=i.name==="_never_"?void 0:e[i.name];t._write(i.id,i.validate(r))}return t}static computeOptions(e,t){const i=new Wze;for(const r of hm)i._write(r.id,r.compute(t,i,e._read(r.id)));return i}static _deepEquals(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?Is(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!dd._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let r=!1;for(const s of hm){const o=!dd._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=o,o&&(r=!0)}return r?new yq(i):null}static applyUpdate(e,t){let i=!1;for(const r of hm)if(t.hasOwnProperty(r.name)){const s=r.applyUpdate(e[r.name],t[r.name]);e[r.name]=s.newValue,i=i||s.didChange}return i}}function IY(n){const e=Nu(n);return Aze(e),e}function Rn(n,e,t){let i=null,r=null;if(typeof t.value=="function"?(i="value",r=t.value,r.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof t.get=="function"&&(i="get",r=t.get),!r)throw new Error("not supported");const s=`$memoize$${e}`;t[i]=function(...o){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,o)}),this[s]}}var Vze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Jt;(function(n){n.Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu"})(Jt||(Jt={}));class an extends Le{constructor(){super(),this.dispatched=!1,this.targets=new as,this.ignoreTargets=new as,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(ye(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(ye(document,"touchend",e=>this.onTouchEnd(e))),this._register(ye(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){if(!an.isTouchDevice())return Le.None;an.INSTANCE||(an.INSTANCE=new an);const t=an.INSTANCE.targets.push(e);return Ot(t)}static ignoreTarget(e){if(!an.isTouchDevice())return Le.None;an.INSTANCE||(an.INSTANCE=new an);const t=an.INSTANCE.ignoreTargets.push(e);return Ot(t)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,r=e.targetTouches.length;i<r;i++){const s=e.targetTouches.item(i);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:t,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[t],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};const o=this.newGestureEvent(Jt.Start,s.target);o.pageX=s.pageX,o.pageY=s.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){const t=Date.now(),i=Object.keys(this.activeTouches).length;for(let r=0,s=e.changedTouches.length;r<s;r++){const o=e.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("move of an UNKNOWN touch",o);continue}const a=this.activeTouches[o.identifier],l=Date.now()-a.initialTimeStamp;if(l<an.HOLD_DELAY&&Math.abs(a.initialPageX-eo(a.rollingPageX))<30&&Math.abs(a.initialPageY-eo(a.rollingPageY))<30){const c=this.newGestureEvent(Jt.Tap,a.initialTarget);c.pageX=eo(a.rollingPageX),c.pageY=eo(a.rollingPageY),this.dispatchEvent(c)}else if(l>=an.HOLD_DELAY&&Math.abs(a.initialPageX-eo(a.rollingPageX))<30&&Math.abs(a.initialPageY-eo(a.rollingPageY))<30){const c=this.newGestureEvent(Jt.Contextmenu,a.initialTarget);c.pageX=eo(a.rollingPageX),c.pageY=eo(a.rollingPageY),this.dispatchEvent(c)}else if(i===1){const c=eo(a.rollingPageX),u=eo(a.rollingPageY),d=eo(a.rollingTimestamps)-a.rollingTimestamps[0],h=c-a.rollingPageX[0],f=u-a.rollingPageY[0],g=[...this.targets].filter(m=>a.initialTarget instanceof Node&&m.contains(a.initialTarget));this.inertia(g,t,Math.abs(h)/d,h>0?1:-1,c,Math.abs(f)/d,f>0?1:-1,u)}this.dispatchEvent(this.newGestureEvent(Jt.End,a.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===Jt.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>an.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===Jt.Change||e.type===Jt.Contextmenu)&&(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const t of this.ignoreTargets)if(t.contains(e.initialTarget))return;for(const t of this.targets)t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}}inertia(e,t,i,r,s,o,a,l){this.handle=ro(()=>{const c=Date.now(),u=c-t;let d=0,h=0,f=!0;i+=an.SCROLL_FRICTION*u,o+=an.SCROLL_FRICTION*u,i>0&&(f=!1,d=r*i*u),o>0&&(f=!1,h=a*o*u);const g=this.newGestureEvent(Jt.Change);g.translationX=d,g.translationY=h,e.forEach(m=>m.dispatchEvent(g)),f||this.inertia(e,c,i,r,s+d,o,a,l+h)})}onTouchMove(e){const t=Date.now();for(let i=0,r=e.changedTouches.length;i<r;i++){const s=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}const o=this.activeTouches[s.identifier],a=this.newGestureEvent(Jt.Change,o.initialTarget);a.translationX=s.pageX-eo(o.rollingPageX),a.translationY=s.pageY-eo(o.rollingPageY),a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(s.pageX),o.rollingPageY.push(s.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}an.SCROLL_FRICTION=-.005,an.HOLD_DELAY=700,an.CLEAR_TAP_COUNT_TIME=400,Vze([Rn],an,"isTouchDevice",null);class Sx{constructor(){this._hooks=new Je,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=s;let o=e;try{e.setPointerCapture(t),this._hooks.add(Ot(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{o=window}this._hooks.add(ye(o,Ae.POINTER_MOVE,a=>{if(a.buttons!==i){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(ye(o,Ae.POINTER_UP,a=>this.stopMonitoring(!0)))}}function FN(n){return`--vscode-${n.replace(/\./g,"-")}`}function Te(n){return`var(${FN(n)})`}function $ze(n,e){return`var(${FN(n)}, ${e})`}const AY={ColorContribution:"base.contributions.colors"};class Hze{constructor(){this._onDidChangeSchema=new ne,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,r=!1,s){const o={id:e,description:i,defaults:t,needsTransparency:r,deprecationMessage:s};this.colorsById[e]=o;const a={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(a.deprecationMessage=s),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const r=i.defaults[t.type];return Ma(r,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(t,i)=>{const r=t.indexOf(".")===-1?0:1,s=i.indexOf(".")===-1?0:1;return r!==s?r-s:t.localeCompare(i)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(`
|
425
|
+
`:e,l=a.length;let c=i.embeddedLanguageData,u=i.stack,d=0,h=null,f=!0;for(;f||d<l;){const g=d,m=u.depth,p=h?h.groups.length:0,v=u.state;let _=null,b=null,y=null,w=null,k=null;if(h){_=h.matches;const E=h.groups.shift();b=E.matched,y=E.action,w=h.rule,h.groups.length===0&&(h=null)}else{if(!f&&d>=l)break;f=!1;let E=this._lexer.tokenizer[v];if(!E&&(E=lx(this._lexer,v),!E))throw sn(this._lexer,"tokenizer state is not defined: "+v);const N=a.substr(d);for(const O of E)if((d===0||!O.matchOnlyAtLineStart)&&(_=N.match(O.regex),_)){b=_[0],y=O.action;break}}if(_||(_=[""],b=""),y||(d<l&&(_=[a.charAt(d)],b=_[0]),y=this._lexer.defaultToken),b===null)break;for(d+=b.length;pje(y)&&RG(y)&&y.test;)y=y.test(b,_,v,d===l);let L=null;if(typeof y=="string"||Array.isArray(y))L=y;else if(y.group)L=y.group;else if(y.token!==null&&y.token!==void 0){if(y.tokenSubst?L=nd(this._lexer,y.token,b,_,v):L=y.token,y.nextEmbedded)if(y.nextEmbedded==="@pop"){if(!c)throw sn(this._lexer,"cannot pop embedded language if not inside one");c=null}else{if(c)throw sn(this._lexer,"cannot enter embedded language from within an embedded language");k=nd(this._lexer,y.nextEmbedded,b,_,v)}if(y.goBack&&(d=Math.max(0,d-y.goBack)),y.switchTo&&typeof y.switchTo=="string"){let E=nd(this._lexer,y.switchTo,b,_,v);if(E[0]==="@"&&(E=E.substr(1)),lx(this._lexer,E))u=u.switchTo(E);else throw sn(this._lexer,"trying to switch to a state '"+E+"' that is undefined in rule: "+this._safeRuleName(w))}else{if(y.transform&&typeof y.transform=="function")throw sn(this._lexer,"action.transform not supported");if(y.next)if(y.next==="@push"){if(u.depth>=this._lexer.maxStack)throw sn(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]");u=u.push(v)}else if(y.next==="@pop"){if(u.depth<=1)throw sn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));u=u.pop()}else if(y.next==="@popall")u=u.popall();else{let E=nd(this._lexer,y.next,b,_,v);if(E[0]==="@"&&(E=E.substr(1)),lx(this._lexer,E))u=u.push(E);else throw sn(this._lexer,"trying to set a next state '"+E+"' that is undefined in rule: "+this._safeRuleName(w))}}y.log&&typeof y.log=="string"&&_je(this._lexer,this._lexer.languageId+": "+nd(this._lexer,y.log,b,_,v))}if(L===null)throw sn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));const D=E=>{const N=this._languageService.getLanguageIdByLanguageName(E)||this._languageService.getLanguageIdByMimeType(E)||E,O=this._getNestedEmbeddedLanguageData(N);if(d<l){const I=e.substr(d);return this._nestedTokenize(I,t,id.create(u,O),r+d,s)}else return id.create(u,O)};if(Array.isArray(L)){if(h&&h.groups.length>0)throw sn(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(_.length!==L.length+1)throw sn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let E=0;for(let N=1;N<_.length;N++)E+=_[N].length;if(E!==b.length)throw sn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));h={rule:w,matches:_,groups:[]};for(let N=0;N<L.length;N++)h.groups[N]={action:L[N],matched:_[N+1]};d-=b.length;continue}else{if(L==="@rematch"&&(d-=b.length,b="",_=null,L="",k!==null))return D(k);if(b.length===0){if(l===0||m!==u.depth||v!==u.state||(h?h.groups.length:0)!==p)continue;throw sn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w))}let E=null;if(PG(L)&&L.indexOf("@brackets")===0){const N=L.substr(9),O=wje(this._lexer,b);if(!O)throw sn(this._lexer,"@brackets token returned but no bracket defined as: "+b);E=FG(O.token+N)}else{const N=L===""?"":L+this._lexer.tokenPostfix;E=FG(N)}g<o&&s.emit(g+r,E)}if(k!==null)return D(k)}return id.create(u,c)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new jm(e,XS);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Xn.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Xn.get(e);return t?new jm(e,t.getInitialState()):new jm(e,XS)}};Sv=bje([yje(4,Qn)],Sv);function wje(n,e){if(!e)return null;e=td(n,e);const t=n.brackets;for(const i of t){if(i.open===e)return{token:i.token,bracketType:1};if(i.close===e)return{token:i.token,bracketType:-1}}return null}var Sje=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const dN=Im("standaloneColorizer",{createHTML:n=>n});class hN{static colorizeElement(e,t,i,r){r=r||{};const s=r.theme||"vs",o=r.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(o)||o;e.setTheme(s);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+s;const c=u=>{var d;const h=(d=dN==null?void 0:dN.createHTML(u))!==null&&d!==void 0?d:u;i.innerHTML=h};return this.colorize(t,l||"",a,r).then(c,u=>console.error(u))}static colorize(e,t,i,r){return Sje(this,void 0,void 0,function*(){const s=e.languageIdCodec;let o=4;r&&typeof r.tabSize=="number"&&(o=r.tabSize),vO(t)&&(t=t.substr(1));const a=Q_(t);if(!e.isRegisteredLanguageId(i))return WG(a,o,s);const l=yield Xn.getOrCreate(i);return l?xje(a,o,l,s):WG(a,o,s)})}static colorizeLine(e,t,i,r,s=4){const o=fr.isBasicASCII(e,t),a=fr.containsRTL(e,o,i);return yv(new ed(!1,!0,e,!1,o,a,0,r,[],s,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const r=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function xje(n,e,t,i){return new Promise((r,s)=>{const o=()=>{const a=Lje(n,e,t,i);if(t instanceof Sv){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(o,s);return}}r(a)};o()})}function WG(n,e,t){let i=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let o=0,a=n.length;o<a;o++){const l=n[o];s[0]=l.length;const c=new ki(s,l,t),u=fr.isBasicASCII(l,!0),d=fr.containsRTL(l,u,!0),h=yv(new ed(!1,!0,l,!1,u,d,0,c,[],e,0,0,0,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>")}return i.join("")}function Lje(n,e,t,i){let r=[],s=t.getInitialState();for(let o=0,a=n.length;o<a;o++){const l=n[o],c=t.tokenizeEncoded(l,!0,s);ki.convertToEndOffset(c.tokens,l.length);const u=new ki(c.tokens,l,i),d=fr.isBasicASCII(l,!0),h=fr.containsRTL(l,d,!0),f=yv(new ed(!1,!0,l,!1,d,h,0,u.inflate(),[],e,0,0,0,0,-1,"none",!1,!1,null));r=r.concat(f.html),r.push("<br/>"),s=c.endState}return r.join("")}const VG={clipboard:{writeText:V_||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:V_||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>V_||TVe()?0:navigator.keyboard||xc?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function fN(n,e){if(typeof n=="number"){if(n===0)return null;const t=(n&65535)>>>0,i=(n&4294901760)>>>16;return i!==0?new gN([ux(t,e),ux(i,e)]):new gN([ux(t,e)])}else{const t=[];for(let i=0;i<n.length;i++)t.push(ux(n[i],e));return new gN(t)}}function ux(n,e){const t=!!(n&2048),i=!!(n&256),r=e===2?i:t,s=!!(n&1024),o=!!(n&512),a=e===2?t:i,l=n&255;return new jh(r,s,o,a,l)}class jh{constructor(e,t,i,r,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=r,this.keyCode=s}equals(e){return e instanceof jh&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class gN{constructor(e){if(e.length===0)throw pS("chords");this.chords=e}}class kje{constructor(e,t,i,r,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=r,this.keyLabel=s,this.keyAriaLabel=o}}class Dje{}function Eje(n){if(n.charCode){const t=String.fromCharCode(n.charCode).toUpperCase();return wc.fromString(t)}const e=n.keyCode;if(e===3)return 7;if($o)switch(e){case 59:return 85;case 60:if(Lr)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(It)return 57;break}else if(Ih){if(It&&e===93)return 57;if(!It&&e===92)return 57}return Iq[e]||0}const Tje=It?256:2048,Ije=512,Aje=1024,Oje=It?2048:256;class on{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState("AltGraph"),this.keyCode=Eje(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Tje),this.altKey&&(t|=Ije),this.shiftKey&&(t|=Aje),this.metaKey&&(t|=Oje),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new jh(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let $G=!1,xv=null;function Nje(n){if(!n.parent||n.parent===n)return null;try{const e=n.location,t=n.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return $G=!0,null}catch{return $G=!0,null}return n.parent}class Mje{static getSameOriginWindowChain(){if(!xv){xv=[];let e=window,t;do t=Nje(e),t?xv.push({window:e,iframeElement:e.frameElement||null}):xv.push({window:e,iframeElement:null}),e=t;while(e)}return xv.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,r=0;const s=this.getSameOriginWindowChain();for(const o of s){if(i+=o.window.scrollY,r+=o.window.scrollX,o.window===t||!o.iframeElement)break;const a=o.iframeElement.getBoundingClientRect();i+=a.top,r+=a.left}return{top:i,left:r}}}class Ta{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=Mje.getPositionOfChildWindowRelativeToAncestorWindow(window,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class zh{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){const r=e,s=e;if(typeof r.wheelDeltaY<"u")this.deltaY=r.wheelDeltaY/120;else if(typeof s.VERTICAL_AXIS<"u"&&s.axis===s.VERTICAL_AXIS)this.deltaY=-s.detail/3;else if(e.type==="wheel"){const o=e;o.deltaMode===o.DOM_DELTA_LINE?$o&&!It?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")xc&&os?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120;else if(typeof s.HORIZONTAL_AXIS<"u"&&s.axis===s.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const o=e;o.deltaMode===o.DOM_DELTA_LINE?$o&&!It?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)===null||e===void 0||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)===null||e===void 0||e.stopPropagation()}}/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */function Pje(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}else return Array.from(n)}var Rje=Object.hasOwnProperty,HG=Object.setPrototypeOf,Fje=Object.isFrozen,Bje=Object.getPrototypeOf,Wje=Object.getOwnPropertyDescriptor,gs=Object.freeze,Ac=Object.seal,Vje=Object.create,jG=typeof Reflect<"u"&&Reflect,dx=jG.apply,mN=jG.construct;dx||(dx=function(e,t,i){return e.apply(t,i)}),gs||(gs=function(e){return e}),Ac||(Ac=function(e){return e}),mN||(mN=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(Pje(t))))});var $je=Ia(Array.prototype.forEach),zG=Ia(Array.prototype.pop),Lv=Ia(Array.prototype.push),Uh=Ia(String.prototype.toLowerCase),UG=Ia(String.prototype.match),rd=Ia(String.prototype.replace),Hje=Ia(String.prototype.indexOf),jje=Ia(String.prototype.trim),Oc=Ia(RegExp.prototype.test),qG=zje(TypeError);function Ia(n){return function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return dx(n,e,i)}}function zje(n){return function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return mN(n,t)}}function qt(n,e){HG&&HG(n,null);for(var t=e.length;t--;){var i=e[t];if(typeof i=="string"){var r=Uh(i);r!==i&&(Fje(e)||(e[t]=r),i=r)}n[i]=!0}return n}function qh(n){var e=Vje(null),t=void 0;for(t in n)dx(Rje,n,[t])&&(e[t]=n[t]);return e}function hx(n,e){for(;n!==null;){var t=Wje(n,e);if(t){if(t.get)return Ia(t.get);if(typeof t.value=="function")return Ia(t.value)}n=Bje(n)}function i(r){return console.warn("fallback value for",r),null}return i}var KG=gs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pN=gs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_N=gs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Uje=gs(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vN=gs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),qje=gs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),GG=gs(["#text"]),YG=gs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),bN=gs(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ZG=gs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fx=gs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kje=Ac(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Gje=Ac(/<%[\s\S]*|[\s\S]*%>/gm),Yje=Ac(/^data-[\-\w.\u00B7-\uFFFF]/),Zje=Ac(/^aria-[\-\w]+$/),Xje=Ac(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qje=Ac(/^(?:\w+script|data):/i),Jje=Ac(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function yl(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}else return Array.from(n)}var eze=function(){return typeof window>"u"?null:window},tze=function(e,t){if((typeof e>"u"?"undefined":kv(e))!=="object"||typeof e.createPolicy!="function")return null;var i=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(i=t.currentScript.getAttribute(r));var s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function XG(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eze(),e=function(_e){return XG(_e)};if(e.version="2.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==9)return e.isSupported=!1,e;var t=n.document,i=n.document,r=n.DocumentFragment,s=n.HTMLTemplateElement,o=n.Node,a=n.Element,l=n.NodeFilter,c=n.NamedNodeMap,u=c===void 0?n.NamedNodeMap||n.MozNamedAttrMap:c,d=n.Text,h=n.Comment,f=n.DOMParser,g=n.trustedTypes,m=a.prototype,p=hx(m,"cloneNode"),v=hx(m,"nextSibling"),_=hx(m,"childNodes"),b=hx(m,"parentNode");if(typeof s=="function"){var y=i.createElement("template");y.content&&y.content.ownerDocument&&(i=y.content.ownerDocument)}var w=tze(g,t),k=w&&be?w.createHTML(""):"",L=i,D=L.implementation,E=L.createNodeIterator,N=L.createDocumentFragment,O=L.getElementsByTagName,I=t.importNode,M={};try{M=qh(i).documentMode?i.documentMode:{}}catch{}var B={};e.isSupported=typeof b=="function"&&D&&typeof D.createHTMLDocument<"u"&&M!==9;var V=Kje,ee=Gje,re=Yje,se=Zje,ie=Qje,J=Jje,ue=Xje,Z=null,X=qt({},[].concat(yl(KG),yl(pN),yl(_N),yl(vN),yl(GG))),ce=null,De=qt({},[].concat(yl(YG),yl(bN),yl(ZG),yl(fx))),te=null,xe=null,ge=!0,Ce=!0,Se=!1,pe=!1,Q=!1,Xe=!1,et=!1,Fe=!1,j=!1,le=!0,be=!1,$e=!0,Y=!0,H=!1,q={},R=null,F=qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),z=null,U=qt({},["audio","video","img","source","image","track"]),fe=null,ke=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Ye=Ze,Vt=!1,Et=null,Me=i.createElement("form"),Mt=function(_e){Et&&Et===_e||((!_e||(typeof _e>"u"?"undefined":kv(_e))!=="object")&&(_e={}),_e=qh(_e),Z="ALLOWED_TAGS"in _e?qt({},_e.ALLOWED_TAGS):X,ce="ALLOWED_ATTR"in _e?qt({},_e.ALLOWED_ATTR):De,fe="ADD_URI_SAFE_ATTR"in _e?qt(qh(ke),_e.ADD_URI_SAFE_ATTR):ke,z="ADD_DATA_URI_TAGS"in _e?qt(qh(U),_e.ADD_DATA_URI_TAGS):U,R="FORBID_CONTENTS"in _e?qt({},_e.FORBID_CONTENTS):F,te="FORBID_TAGS"in _e?qt({},_e.FORBID_TAGS):{},xe="FORBID_ATTR"in _e?qt({},_e.FORBID_ATTR):{},q="USE_PROFILES"in _e?_e.USE_PROFILES:!1,ge=_e.ALLOW_ARIA_ATTR!==!1,Ce=_e.ALLOW_DATA_ATTR!==!1,Se=_e.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=_e.SAFE_FOR_TEMPLATES||!1,Q=_e.WHOLE_DOCUMENT||!1,Fe=_e.RETURN_DOM||!1,j=_e.RETURN_DOM_FRAGMENT||!1,le=_e.RETURN_DOM_IMPORT!==!1,be=_e.RETURN_TRUSTED_TYPE||!1,et=_e.FORCE_BODY||!1,$e=_e.SANITIZE_DOM!==!1,Y=_e.KEEP_CONTENT!==!1,H=_e.IN_PLACE||!1,ue=_e.ALLOWED_URI_REGEXP||ue,Ye=_e.NAMESPACE||Ze,pe&&(Ce=!1),j&&(Fe=!0),q&&(Z=qt({},[].concat(yl(GG))),ce=[],q.html===!0&&(qt(Z,KG),qt(ce,YG)),q.svg===!0&&(qt(Z,pN),qt(ce,bN),qt(ce,fx)),q.svgFilters===!0&&(qt(Z,_N),qt(ce,bN),qt(ce,fx)),q.mathMl===!0&&(qt(Z,vN),qt(ce,ZG),qt(ce,fx))),_e.ADD_TAGS&&(Z===X&&(Z=qh(Z)),qt(Z,_e.ADD_TAGS)),_e.ADD_ATTR&&(ce===De&&(ce=qh(ce)),qt(ce,_e.ADD_ATTR)),_e.ADD_URI_SAFE_ATTR&&qt(fe,_e.ADD_URI_SAFE_ATTR),_e.FORBID_CONTENTS&&(R===F&&(R=qh(R)),qt(R,_e.FORBID_CONTENTS)),Y&&(Z["#text"]=!0),Q&&qt(Z,["html","head","body"]),Z.table&&(qt(Z,["tbody"]),delete te.tbody),gs&&gs(_e),Et=_e)},Ut=qt({},["mi","mo","mn","ms","mtext"]),zn=qt({},["foreignobject","desc","title","annotation-xml"]),Qt=qt({},pN);qt(Qt,_N),qt(Qt,Uje);var An=qt({},vN);qt(An,qje);var js=function(_e){var He=b(_e);(!He||!He.tagName)&&(He={namespaceURI:Ze,tagName:"template"});var ot=Uh(_e.tagName),K=Uh(He.tagName);if(_e.namespaceURI===Pe)return He.namespaceURI===Ze?ot==="svg":He.namespaceURI===Ie?ot==="svg"&&(K==="annotation-xml"||Ut[K]):!!Qt[ot];if(_e.namespaceURI===Ie)return He.namespaceURI===Ze?ot==="math":He.namespaceURI===Pe?ot==="math"&&zn[K]:!!An[ot];if(_e.namespaceURI===Ze){if(He.namespaceURI===Pe&&!zn[K]||He.namespaceURI===Ie&&!Ut[K])return!1;var Ee=qt({},["title","style","font","a","script"]);return!An[ot]&&(Ee[ot]||!Qt[ot])}return!1},vr=function(_e){Lv(e.removed,{element:_e});try{_e.parentNode.removeChild(_e)}catch{try{_e.outerHTML=k}catch{_e.remove()}}},zs=function(_e,He){try{Lv(e.removed,{attribute:He.getAttributeNode(_e),from:He})}catch{Lv(e.removed,{attribute:null,from:He})}if(He.removeAttribute(_e),_e==="is"&&!ce[_e])if(Fe||j)try{vr(He)}catch{}else try{He.setAttribute(_e,"")}catch{}},za=function(_e){var He=void 0,ot=void 0;if(et)_e="<remove></remove>"+_e;else{var K=UG(_e,/^[\r\n\t ]+/);ot=K&&K[0]}var Ee=w?w.createHTML(_e):_e;if(Ye===Ze)try{He=new f().parseFromString(Ee,"text/html")}catch{}if(!He||!He.documentElement){He=D.createDocument(Ye,"template",null);try{He.documentElement.innerHTML=Vt?"":Ee}catch{}}var Be=He.body||He.documentElement;return _e&&ot&&Be.insertBefore(i.createTextNode(ot),Be.childNodes[0]||null),Ye===Ze?O.call(He,Q?"html":"body")[0]:Q?He.documentElement:Be},su=function(_e){return E.call(_e.ownerDocument||_e,_e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Yl=function(_e){return _e instanceof d||_e instanceof h?!1:typeof _e.nodeName!="string"||typeof _e.textContent!="string"||typeof _e.removeChild!="function"||!(_e.attributes instanceof u)||typeof _e.removeAttribute!="function"||typeof _e.setAttribute!="function"||typeof _e.namespaceURI!="string"||typeof _e.insertBefore!="function"},ou=function(_e){return(typeof o>"u"?"undefined":kv(o))==="object"?_e instanceof o:_e&&(typeof _e>"u"?"undefined":kv(_e))==="object"&&typeof _e.nodeType=="number"&&typeof _e.nodeName=="string"},Yr=function(_e,He,ot){B[_e]&&$je(B[_e],function(K){K.call(e,He,ot,Et)})},qf=function(_e){var He=void 0;if(Yr("beforeSanitizeElements",_e,null),Yl(_e)||UG(_e.nodeName,/[\u0080-\uFFFF]/))return vr(_e),!0;var ot=Uh(_e.nodeName);if(Yr("uponSanitizeElement",_e,{tagName:ot,allowedTags:Z}),!ou(_e.firstElementChild)&&(!ou(_e.content)||!ou(_e.content.firstElementChild))&&Oc(/<[/\w]/g,_e.innerHTML)&&Oc(/<[/\w]/g,_e.textContent)||ot==="select"&&Oc(/<template/i,_e.innerHTML))return vr(_e),!0;if(!Z[ot]||te[ot]){if(Y&&!R[ot]){var K=b(_e)||_e.parentNode,Ee=_(_e)||_e.childNodes;if(Ee&&K)for(var Be=Ee.length,rt=Be-1;rt>=0;--rt)K.insertBefore(p(Ee[rt],!0),v(_e))}return vr(_e),!0}return _e instanceof a&&!js(_e)||(ot==="noscript"||ot==="noembed")&&Oc(/<\/no(script|embed)/i,_e.innerHTML)?(vr(_e),!0):(pe&&_e.nodeType===3&&(He=_e.textContent,He=rd(He,V," "),He=rd(He,ee," "),_e.textContent!==He&&(Lv(e.removed,{element:_e.cloneNode()}),_e.textContent=He)),Yr("afterSanitizeElements",_e,null),!1)},Kf=function(_e,He,ot){if($e&&(He==="id"||He==="name")&&(ot in i||ot in Me))return!1;if(!(Ce&&!xe[He]&&Oc(re,He))){if(!(ge&&Oc(se,He))){if(!ce[He]||xe[He])return!1;if(!fe[He]){if(!Oc(ue,rd(ot,J,""))){if(!((He==="src"||He==="xlink:href"||He==="href")&&_e!=="script"&&Hje(ot,"data:")===0&&z[_e])){if(!(Se&&!Oc(ie,rd(ot,J,"")))){if(ot)return!1}}}}}}return!0},n0=function(_e){var He=void 0,ot=void 0,K=void 0,Ee=void 0;Yr("beforeSanitizeAttributes",_e,null);var Be=_e.attributes;if(Be){var rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(Ee=Be.length;Ee--;){He=Be[Ee];var $t=He,gn=$t.name,Gt=$t.namespaceURI;if(ot=jje(He.value),K=Uh(gn),rt.attrName=K,rt.attrValue=ot,rt.keepAttr=!0,rt.forceKeepAttr=void 0,Yr("uponSanitizeAttribute",_e,rt),ot=rt.attrValue,!rt.forceKeepAttr&&(zs(gn,_e),!!rt.keepAttr)){if(Oc(/\/>/i,ot)){zs(gn,_e);continue}pe&&(ot=rd(ot,V," "),ot=rd(ot,ee," "));var Kt=_e.nodeName.toLowerCase();if(Kf(Kt,K,ot))try{Gt?_e.setAttributeNS(Gt,gn,ot):_e.setAttribute(gn,ot),zG(e.removed)}catch{}}}Yr("afterSanitizeAttributes",_e,null)}},Gf=function dt(_e){var He=void 0,ot=su(_e);for(Yr("beforeSanitizeShadowDOM",_e,null);He=ot.nextNode();)Yr("uponSanitizeShadowNode",He,null),!qf(He)&&(He.content instanceof r&&dt(He.content),n0(He));Yr("afterSanitizeShadowDOM",_e,null)};return e.sanitize=function(dt,_e){var He=void 0,ot=void 0,K=void 0,Ee=void 0,Be=void 0;if(Vt=!dt,Vt&&(dt="<!-->"),typeof dt!="string"&&!ou(dt)){if(typeof dt.toString!="function")throw qG("toString is not a function");if(dt=dt.toString(),typeof dt!="string")throw qG("dirty is not a string, aborting")}if(!e.isSupported){if(kv(n.toStaticHTML)==="object"||typeof n.toStaticHTML=="function"){if(typeof dt=="string")return n.toStaticHTML(dt);if(ou(dt))return n.toStaticHTML(dt.outerHTML)}return dt}if(Xe||Mt(_e),e.removed=[],typeof dt=="string"&&(H=!1),!H)if(dt instanceof o)He=za("<!---->"),ot=He.ownerDocument.importNode(dt,!0),ot.nodeType===1&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?He=ot:He.appendChild(ot);else{if(!Fe&&!pe&&!Q&&dt.indexOf("<")===-1)return w&&be?w.createHTML(dt):dt;if(He=za(dt),!He)return Fe?null:k}He&&et&&vr(He.firstChild);for(var rt=su(H?dt:He);K=rt.nextNode();)K.nodeType===3&&K===Ee||qf(K)||(K.content instanceof r&&Gf(K.content),n0(K),Ee=K);if(Ee=null,H)return dt;if(Fe){if(j)for(Be=N.call(He.ownerDocument);He.firstChild;)Be.appendChild(He.firstChild);else Be=He;return le&&(Be=I.call(t,Be,!0)),Be}var $t=Q?He.outerHTML:He.innerHTML;return pe&&($t=rd($t,V," "),$t=rd($t,ee," ")),w&&be?w.createHTML($t):$t},e.setConfig=function(dt){Mt(dt),Xe=!0},e.clearConfig=function(){Et=null,Xe=!1},e.isValidAttribute=function(dt,_e,He){Et||Mt({});var ot=Uh(dt),K=Uh(_e);return Kf(ot,K,He)},e.addHook=function(dt,_e){typeof _e=="function"&&(B[dt]=B[dt]||[],Lv(B[dt],_e))},e.removeHook=function(dt){B[dt]&&zG(B[dt])},e.removeHooks=function(dt){B[dt]&&(B[dt]=[])},e.removeAllHooks=function(){B={}},e}var Cl=XG();Cl.version,Cl.isSupported;const QG=Cl.sanitize;Cl.setConfig,Cl.clearConfig,Cl.isValidAttribute;const JG=Cl.addHook,eY=Cl.removeHook;Cl.removeHooks,Cl.removeAllHooks;var mt;(function(n){n.inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote",n.vscodeRemoteResource="vscode-remote-resource",n.vscodeManagedRemoteResource="vscode-managed-remote-resource",n.vscodeUserData="vscode-userdata",n.vscodeCustomEditor="vscode-custom-editor",n.vscodeNotebookCell="vscode-notebook-cell",n.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",n.vscodeNotebookCellOutput="vscode-notebook-cell-output",n.vscodeInteractiveInput="vscode-interactive-input",n.vscodeSettings="vscode-settings",n.vscodeWorkspaceTrust="vscode-workspace-trust",n.vscodeTerminal="vscode-terminal",n.vscodeChatSesssion="vscode-chat-editor",n.webviewPanel="webview-panel",n.vscodeWebview="vscode-webview",n.extension="extension",n.vscodeFileResource="vscode-file",n.tmp="tmp",n.vsls="vsls",n.vscodeSourceControl="vscode-scm"})(mt||(mt={}));const nze="tkn";class ize{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${mt.vscodeRemoteResource}`}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return Cn(a),e}const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const r=this._ports[t],s=this._connectionTokens[t];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${nze}=${encodeURIComponent(s)}`),Nt.from({scheme:lm?this._preferredWebSchema:mt.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const tY=new ize;class Dv{uriToBrowserUri(e){return e.scheme===mt.vscodeRemote?tY.rewrite(e):e.scheme===mt.file&&(V_||OBe&&Ro.origin===`${mt.vscodeFileResource}://${Dv.FALLBACK_AUTHORITY}`)?e.with({scheme:mt.vscodeFileResource,authority:e.authority||Dv.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}Dv.FALLBACK_AUTHORITY="vscode-app";const nY=new Dv;var iY;(function(n){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);n.CoopAndCoep=Object.freeze(e.get("3"));const t="vscode-coi";function i(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:Nt.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(t);if(a)return e.get(a)}n.getHeadersFromQuery=i;function r(s,o,a){if(!globalThis.crossOriginIsolated)return;const l=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(t,l):s[t]=l}n.addSearchParam=r})(iY||(iY={}));function io(n){for(;n.firstChild;)n.firstChild.remove()}function rY(n){var e;return(e=n==null?void 0:n.isConnected)!==null&&e!==void 0?e:!1}class rze{constructor(e,t,i,r){this._node=e,this._type=t,this._handler=i,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function ye(n,e,t,i){return new rze(n,e,t,i)}function sze(n){return function(e){return n(new Ta(e))}}function oze(n){return function(e){return n(new on(e))}}const li=function(e,t,i,r){let s=i;return t==="click"||t==="mousedown"?s=sze(i):(t==="keydown"||t==="keypress"||t==="keyup")&&(s=oze(i)),ye(e,t,s,r)};let sY,ro;class yN{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Cn(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let n=[],e=null,t=!1,i=!1;const r=()=>{for(t=!1,e=n,n=[],i=!0;e.length>0;)e.sort(yN.sort),e.shift().execute();i=!1};ro=(s,o=0)=>{const a=new yN(s,o);return n.push(a),t||(t=!0,requestAnimationFrame(r)),a},sY=(s,o)=>{if(i){const a=new yN(s,o);return e.push(a),a}else return ro(s,o)}})();function CN(n){return document.defaultView.getComputedStyle(n,null)}function oY(n){if(n!==document.body)return new so(n.clientWidth,n.clientHeight);if(Mu&&window.visualViewport)return new so(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new so(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new so(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new so(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Dn{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const r=CN(e),s=r?r.getPropertyValue(t):"0";return Dn.convertToPixels(e,s)}static getBorderLeftWidth(e){return Dn.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Dn.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Dn.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Dn.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Dn.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Dn.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Dn.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Dn.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Dn.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Dn.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Dn.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Dn.getDimension(e,"margin-bottom","marginBottom")}}class so{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new so(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof so?e:new so(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}so.None=new so(0,0);function aze(n){let e=n.offsetParent,t=n.offsetTop,i=n.offsetLeft;for(;(n=n.parentNode)!==null&&n!==document.body&&n!==document.documentElement;){t-=n.scrollTop;const r=lY(n)?null:CN(n);r&&(i-=r.direction!=="rtl"?n.scrollLeft:-n.scrollLeft),n===e&&(i+=Dn.getBorderLeftWidth(n),t+=Dn.getBorderTopWidth(n),t+=n.offsetTop,i+=n.offsetLeft,e=n.offsetParent)}return{left:i,top:t}}function Bs(n){const e=n.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,width:e.width,height:e.height}}function lze(n){let e=n,t=1;do{const i=CN(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==document.documentElement);return t}function wN(n){const e=Dn.getMarginLeft(n)+Dn.getMarginRight(n);return n.offsetWidth+e}function SN(n){const e=Dn.getBorderLeftWidth(n)+Dn.getBorderRightWidth(n),t=Dn.getPaddingLeft(n)+Dn.getPaddingRight(n);return n.offsetWidth-e-t}function cze(n){const e=Dn.getBorderTopWidth(n)+Dn.getBorderBottomWidth(n),t=Dn.getPaddingTop(n)+Dn.getPaddingBottom(n);return n.offsetHeight-e-t}function xN(n){const e=Dn.getMarginTop(n)+Dn.getMarginBottom(n);return n.offsetHeight+e}function ms(n,e){for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function aY(n,e,t){for(;n&&n.nodeType===n.ELEMENT_NODE;){if(n.classList.contains(e))return n;if(t){if(typeof t=="string"){if(n.classList.contains(t))return null}else if(n===t)return null}n=n.parentNode}return null}function LN(n,e,t){return!!aY(n,e,t)}function lY(n){return n&&!!n.host&&!!n.mode}function kN(n){return!!zm(n)}function zm(n){for(;n.parentNode;){if(n===document.body)return null;n=n.parentNode}return lY(n)?n:null}function sd(){let n=document.activeElement;for(;n!=null&&n.shadowRoot;)n=n.shadowRoot.activeElement;return n}function Uo(n=document.getElementsByTagName("head")[0],e){const t=document.createElement("style");return t.type="text/css",t.media="screen",e==null||e(t),n.appendChild(t),t}let DN=null;function uze(){return DN||(DN=Uo()),DN}function cY(n,e,t=uze()){!t||!e||t.sheet.insertRule(n+"{"+e+"}",0)}function uY(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"}const Ae={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Ih?"webkitAnimationStart":"animationstart",ANIMATION_END:Ih?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Ih?"webkitAnimationIteration":"animationiteration"};function dze(n){const e=n;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const ut={stop:(n,e)=>(n.preventDefault(),e&&n.stopPropagation(),n)};function hze(n){const e=[];for(let t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)e[t]=n.scrollTop,n=n.parentNode;return e}function fze(n,e){for(let t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)n.scrollTop!==e[t]&&(n.scrollTop=e[t]),n=n.parentNode}class gx extends Le{static hasFocusWithin(e){const t=zm(e),i=t?t.activeElement:document.activeElement;return ms(i,e)}constructor(e){super(),this._onDidFocus=this._register(new ne),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new ne),this.onDidBlur=this._onDidBlur.event;let t=gx.hasFocusWithin(e),i=!1;const r=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{gx.hasFocusWithin(e)!==t&&(t?s():r())},this._register(ye(e,Ae.FOCUS,r,!0)),this._register(ye(e,Ae.BLUR,s,!0)),this._register(ye(e,Ae.FOCUS_IN,()=>this._refreshStateHandler())),this._register(ye(e,Ae.FOCUS_OUT,()=>this._refreshStateHandler()))}}function mx(n){return new gx(n)}function We(n,...e){if(n.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function dY(n,e){return n.insertBefore(e,n.firstChild),e}function Hr(n,...e){n.innerText="",We(n,...e)}const gze=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ev;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.SVG="http://www.w3.org/2000/svg"})(Ev||(Ev={}));function hY(n,e,t,...i){const r=gze.exec(e);if(!r)throw new Error("Bad use of emmet");const s=r[1]||"div";let o;return n!==Ev.HTML?o=document.createElementNS(n,s):o=document.createElement(s),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?o[a]=l:a==="selected"?l&&o.setAttribute(a,"true"):o.setAttribute(a,l))}),o.append(...i),o}function tt(n,e,...t){return hY(Ev.HTML,n,e,...t)}tt.SVG=function(n,e,...t){return hY(Ev.SVG,n,e,...t)};function fY(...n){for(const e of n)e.style.display="",e.removeAttribute("aria-hidden")}function gY(...n){for(const e of n)e.style.display="none",e.setAttribute("aria-hidden","true")}function mY(n){const e=window.devicePixelRatio*n;return Math.max(1,Math.floor(e))/window.devicePixelRatio}function pY(n){window.open(n,"_blank","noopener")}function mze(n){const e=()=>{n(),t=ro(e)};let t=ro(e);return Ot(()=>t.dispose())}tY.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function od(n){return n?`url('${nY.uriToBrowserUri(n).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function _Y(n){return`'${n.replace(/'/g,"%27")}'`}function Kh(n,e){if(n!==void 0){const t=n.match(/^\s*var\((.+)\)$/);if(t){const i=t[1].split(",",2);return i.length===2&&(e=Kh(i[1].trim(),e)),`var(${i[0]}, ${e})`}return n}return e}function pze(n,e=!1){const t=document.createElement("a");return JG("afterSanitizeAttributes",i=>{for(const r of["href","src"])if(i.hasAttribute(r)){const s=i.getAttribute(r);if(r==="href"&&s.startsWith("#"))continue;if(t.href=s,!n.includes(t.protocol.replace(/:$/,""))){if(e&&r==="src"&&t.href.startsWith("data:"))continue;i.removeAttribute(r)}}}),Ot(()=>{eY("afterSanitizeAttributes")})}const _ze=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);class ad extends ne{constructor(){super(),this._subscriptions=new Je,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(ye(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new on(e);if(!(t.keyCode===6&&e.repeat)){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(t.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(ye(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(ye(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(ye(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(ye(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(ye(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return ad.instance||(ad.instance=new ad),ad.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class vze extends Le{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this._register(ye(this.element,Ae.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter(e)})),this._register(ye(this.element,Ae.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)===null||i===void 0||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(ye(this.element,Ae.DRAG_LEAVE,e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave(e))})),this._register(ye(this.element,Ae.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd(e)})),this._register(ye(this.element,Ae.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop(e)}))}}const bze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function oo(n,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const r=bze.exec(n);if(!r||!r.groups)throw new Error("Bad use of h");const s=r.groups.tag||"div",o=document.createElement(s);r.groups.id&&(o.id=r.groups.id);const a=[];if(r.groups.class)for(const c of r.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(const c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(o.className=a.join(" "));const l={};if(r.groups.name&&(l[r.groups.name]=o),i)for(const c of i)c instanceof HTMLElement?o.appendChild(c):typeof c=="string"?o.append(c):"root"in c&&(Object.assign(l,c),o.appendChild(c.root));for(const[c,u]of Object.entries(t))if(c!=="className")if(c==="style")for(const[d,h]of Object.entries(u))o.style.setProperty(vY(d),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?o.tabIndex=u:o.setAttribute(vY(c),u.toString());return l.root=o,l}function vY(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Ght="",bY=2e4;let Gh,px,EN,_x,TN;function yze(n){Gh=document.createElement("div"),Gh.className="monaco-aria-container";const e=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),Gh.appendChild(i),i};px=e(),EN=e();const t=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),Gh.appendChild(i),i};_x=t(),TN=t(),n.appendChild(Gh)}function yY(n){Gh&&(px.textContent!==n?(io(EN),vx(px,n)):(io(px),vx(EN,n)))}function IN(n){Gh&&(_x.textContent!==n?(io(TN),vx(_x,n)):(io(_x),vx(TN,n)))}function vx(n,e){io(n),e.length>bY&&(e=e.substr(0,bY)),n.textContent=e,n.style.visibility="hidden",n.style.visibility="visible"}const CY=Lt("markerDecorationsService"),bx=Lt("textModelService");var Um=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class qo extends Le{constructor(e,t="",i="",r=!0,s){super(),this._onDidChange=this._register(new ne),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=r,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return Um(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class qm extends Le{constructor(){super(...arguments),this._onWillRun=this._register(new ne),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new ne),this.onDidRun=this._onDidRun.event}run(e,t){return Um(this,void 0,void 0,function*(){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(r){i=r}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return Um(this,void 0,void 0,function*(){yield e.run(t)})}}class ps{constructor(){this.id=ps.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t.length?t=[...t,new ps,...i]:t=i);return t}run(){return Um(this,void 0,void 0,function*(){})}}ps.ID="vs.actions.separator";class AN{get actions(){return this._actions}constructor(e,t,i,r){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=r,this._actions=i}run(){return Um(this,void 0,void 0,function*(){})}}class yx extends qo{constructor(){super(yx.ID,C("submenu.empty","(empty)"),void 0,!1)}}yx.ID="vs.actions.empty";function wY(n){var e,t;return{id:n.id,label:n.label,class:void 0,enabled:(e=n.enabled)!==null&&e!==void 0?e:!0,checked:(t=n.checked)!==null&&t!==void 0?t:!1,run:()=>Um(this,void 0,void 0,function*(){return n.run()}),tooltip:n.label}}var ON;(function(n){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}n.isThemeColor=e})(ON||(ON={}));var gt;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9-]+",n.iconModifierExpression="~[A-Za-z]+",n.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function t(h){const f=e.exec(h.id);if(!f)return t(Ne.error);const[,g,m]=f,p=["codicon","codicon-"+g];return m&&p.push("codicon-modifier-"+m.substring(1)),p}n.asClassNameArray=t;function i(h){return t(h).join(" ")}n.asClassName=i;function r(h){return"."+t(h).join(".")}n.asCSSSelector=r;function s(h){return h&&typeof h=="object"&&typeof h.id=="string"&&(typeof h.color>"u"||ON.isThemeColor(h.color))}n.isThemeIcon=s;const o=new RegExp(`^\\$\\((${n.iconNameExpression}(?:${n.iconModifierExpression})?)\\)$`);function a(h){const f=o.exec(h);if(!f)return;const[,g]=f;return{id:g}}n.fromString=a;function l(h){return{id:h}}n.fromId=l;function c(h,f){let g=h.id;const m=g.lastIndexOf("~");return m!==-1&&(g=g.substring(0,m)),f&&(g=`${g}~${f}`),{id:g}}n.modify=c;function u(h){const f=h.id.lastIndexOf("~");if(f!==-1)return h.id.substring(f+1)}n.getModifier=u;function d(h,f){var g,m;return h.id===f.id&&((g=h.color)===null||g===void 0?void 0:g.id)===((m=f.color)===null||m===void 0?void 0:m.id)}n.isEqual=d})(gt||(gt={}));const Ko=Lt("commandService"),tr=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ne,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,e){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:n,handler:e})}if(n.description){const o=[];for(const l of n.description.args)o.push(l.constraint);const a=n.handler;n.handler=function(l,...c){return wBe(c,o),a(l,...c)}}const{id:t}=n;let i=this._commands.get(t);i||(i=new as,this._commands.set(t,i));const r=i.unshift(n),s=Ot(()=>{r();const o=this._commands.get(t);o!=null&&o.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),s}registerCommandAlias(n,e){return tr.registerCommand(n,(t,...i)=>t.get(Ko).executeCommand(e,...i))}getCommand(n){const e=this._commands.get(n);if(!(!e||e.isEmpty()))return At.first(e)}getCommands(){const n=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&n.set(e,t)}return n}};tr.registerCommand("noop",()=>{});class NN{constructor(){this._coreKeybindings=new as,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(Fo===1){if(e&&e.win)return e.win}else if(Fo===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=NN.bindToCurrentPlatform(e),i=new Je;if(t&&t.primary){const r=fN(t.primary,Fo);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,s=t.secondary.length;r<s;r++){const o=t.secondary[r],a=fN(o,Fo);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return gl(this.registerKeybindingRule(e),tr.registerCommand(e))}_registerDefaultKeybinding(e,t,i,r,s,o){const a=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:o,weight1:r,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,Ot(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(wze)),this._cachedMergedKeybindings.slice(0)}}const Km=new NN,Cze={EditorModes:"platform.keybindingsRegistry"};Li.add(Cze.EditorModes,Km);function wze(n,e){if(n.weight1!==e.weight1)return n.weight1-e.weight1;if(n.command&&e.command){if(n.command<e.command)return-1;if(n.command>e.command)return 1}return n.weight2-e.weight2}var Sze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},SY=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},xze=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Tv(n){return n.command!==void 0}function Lze(n){return n.submenu!==void 0}class W{constructor(e){if(W._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);W._instances.set(e,this),this.id=e}}W._instances=new Map,W.CommandPalette=new W("CommandPalette"),W.DebugBreakpointsContext=new W("DebugBreakpointsContext"),W.DebugCallStackContext=new W("DebugCallStackContext"),W.DebugConsoleContext=new W("DebugConsoleContext"),W.DebugVariablesContext=new W("DebugVariablesContext"),W.DebugWatchContext=new W("DebugWatchContext"),W.DebugToolBar=new W("DebugToolBar"),W.DebugToolBarStop=new W("DebugToolBarStop"),W.EditorContext=new W("EditorContext"),W.SimpleEditorContext=new W("SimpleEditorContext"),W.EditorContent=new W("EditorContent"),W.EditorLineNumberContext=new W("EditorLineNumberContext"),W.EditorContextCopy=new W("EditorContextCopy"),W.EditorContextPeek=new W("EditorContextPeek"),W.EditorContextShare=new W("EditorContextShare"),W.EditorTitle=new W("EditorTitle"),W.EditorTitleRun=new W("EditorTitleRun"),W.EditorTitleContext=new W("EditorTitleContext"),W.EditorTitleContextShare=new W("EditorTitleContextShare"),W.EmptyEditorGroup=new W("EmptyEditorGroup"),W.EmptyEditorGroupContext=new W("EmptyEditorGroupContext"),W.EditorTabsBarContext=new W("EditorTabsBarContext"),W.ExplorerContext=new W("ExplorerContext"),W.ExplorerContextShare=new W("ExplorerContextShare"),W.ExtensionContext=new W("ExtensionContext"),W.GlobalActivity=new W("GlobalActivity"),W.CommandCenter=new W("CommandCenter"),W.LayoutControlMenuSubmenu=new W("LayoutControlMenuSubmenu"),W.LayoutControlMenu=new W("LayoutControlMenu"),W.MenubarMainMenu=new W("MenubarMainMenu"),W.MenubarAppearanceMenu=new W("MenubarAppearanceMenu"),W.MenubarDebugMenu=new W("MenubarDebugMenu"),W.MenubarEditMenu=new W("MenubarEditMenu"),W.MenubarCopy=new W("MenubarCopy"),W.MenubarFileMenu=new W("MenubarFileMenu"),W.MenubarGoMenu=new W("MenubarGoMenu"),W.MenubarHelpMenu=new W("MenubarHelpMenu"),W.MenubarLayoutMenu=new W("MenubarLayoutMenu"),W.MenubarNewBreakpointMenu=new W("MenubarNewBreakpointMenu"),W.PanelAlignmentMenu=new W("PanelAlignmentMenu"),W.PanelPositionMenu=new W("PanelPositionMenu"),W.MenubarPreferencesMenu=new W("MenubarPreferencesMenu"),W.MenubarRecentMenu=new W("MenubarRecentMenu"),W.MenubarSelectionMenu=new W("MenubarSelectionMenu"),W.MenubarShare=new W("MenubarShare"),W.MenubarSwitchEditorMenu=new W("MenubarSwitchEditorMenu"),W.MenubarSwitchGroupMenu=new W("MenubarSwitchGroupMenu"),W.MenubarTerminalMenu=new W("MenubarTerminalMenu"),W.MenubarViewMenu=new W("MenubarViewMenu"),W.MenubarHomeMenu=new W("MenubarHomeMenu"),W.OpenEditorsContext=new W("OpenEditorsContext"),W.OpenEditorsContextShare=new W("OpenEditorsContextShare"),W.ProblemsPanelContext=new W("ProblemsPanelContext"),W.SCMChangeContext=new W("SCMChangeContext"),W.SCMResourceContext=new W("SCMResourceContext"),W.SCMResourceContextShare=new W("SCMResourceContextShare"),W.SCMResourceFolderContext=new W("SCMResourceFolderContext"),W.SCMResourceGroupContext=new W("SCMResourceGroupContext"),W.SCMSourceControl=new W("SCMSourceControl"),W.SCMTitle=new W("SCMTitle"),W.SearchContext=new W("SearchContext"),W.SearchActionMenu=new W("SearchActionContext"),W.StatusBarWindowIndicatorMenu=new W("StatusBarWindowIndicatorMenu"),W.StatusBarRemoteIndicatorMenu=new W("StatusBarRemoteIndicatorMenu"),W.StickyScrollContext=new W("StickyScrollContext"),W.TestItem=new W("TestItem"),W.TestItemGutter=new W("TestItemGutter"),W.TestPeekElement=new W("TestPeekElement"),W.TestPeekTitle=new W("TestPeekTitle"),W.TouchBarContext=new W("TouchBarContext"),W.TitleBarContext=new W("TitleBarContext"),W.TitleBarTitleContext=new W("TitleBarTitleContext"),W.TunnelContext=new W("TunnelContext"),W.TunnelPrivacy=new W("TunnelPrivacy"),W.TunnelProtocol=new W("TunnelProtocol"),W.TunnelPortInline=new W("TunnelInline"),W.TunnelTitle=new W("TunnelTitle"),W.TunnelLocalAddressInline=new W("TunnelLocalAddressInline"),W.TunnelOriginInline=new W("TunnelOriginInline"),W.ViewItemContext=new W("ViewItemContext"),W.ViewContainerTitle=new W("ViewContainerTitle"),W.ViewContainerTitleContext=new W("ViewContainerTitleContext"),W.ViewTitle=new W("ViewTitle"),W.ViewTitleContext=new W("ViewTitleContext"),W.CommentEditorActions=new W("CommentEditorActions"),W.CommentThreadTitle=new W("CommentThreadTitle"),W.CommentThreadActions=new W("CommentThreadActions"),W.CommentThreadAdditionalActions=new W("CommentThreadAdditionalActions"),W.CommentThreadTitleContext=new W("CommentThreadTitleContext"),W.CommentThreadCommentContext=new W("CommentThreadCommentContext"),W.CommentTitle=new W("CommentTitle"),W.CommentActions=new W("CommentActions"),W.InteractiveToolbar=new W("InteractiveToolbar"),W.InteractiveCellTitle=new W("InteractiveCellTitle"),W.InteractiveCellDelete=new W("InteractiveCellDelete"),W.InteractiveCellExecute=new W("InteractiveCellExecute"),W.InteractiveInputExecute=new W("InteractiveInputExecute"),W.NotebookToolbar=new W("NotebookToolbar"),W.NotebookStickyScrollContext=new W("NotebookStickyScrollContext"),W.NotebookCellTitle=new W("NotebookCellTitle"),W.NotebookCellDelete=new W("NotebookCellDelete"),W.NotebookCellInsert=new W("NotebookCellInsert"),W.NotebookCellBetween=new W("NotebookCellBetween"),W.NotebookCellListTop=new W("NotebookCellTop"),W.NotebookCellExecute=new W("NotebookCellExecute"),W.NotebookCellExecutePrimary=new W("NotebookCellExecutePrimary"),W.NotebookDiffCellInputTitle=new W("NotebookDiffCellInputTitle"),W.NotebookDiffCellMetadataTitle=new W("NotebookDiffCellMetadataTitle"),W.NotebookDiffCellOutputsTitle=new W("NotebookDiffCellOutputsTitle"),W.NotebookOutputToolbar=new W("NotebookOutputToolbar"),W.NotebookEditorLayoutConfigure=new W("NotebookEditorLayoutConfigure"),W.NotebookKernelSource=new W("NotebookKernelSource"),W.BulkEditTitle=new W("BulkEditTitle"),W.BulkEditContext=new W("BulkEditContext"),W.TimelineItemContext=new W("TimelineItemContext"),W.TimelineTitle=new W("TimelineTitle"),W.TimelineTitleContext=new W("TimelineTitleContext"),W.TimelineFilterSubMenu=new W("TimelineFilterSubMenu"),W.AccountsContext=new W("AccountsContext"),W.PanelTitle=new W("PanelTitle"),W.AuxiliaryBarTitle=new W("AuxiliaryBarTitle"),W.TerminalInstanceContext=new W("TerminalInstanceContext"),W.TerminalEditorInstanceContext=new W("TerminalEditorInstanceContext"),W.TerminalNewDropdownContext=new W("TerminalNewDropdownContext"),W.TerminalTabContext=new W("TerminalTabContext"),W.TerminalTabEmptyAreaContext=new W("TerminalTabEmptyAreaContext"),W.TerminalInlineTabContext=new W("TerminalInlineTabContext"),W.WebviewContext=new W("WebviewContext"),W.InlineCompletionsActions=new W("InlineCompletionsActions"),W.NewFile=new W("NewFile"),W.MergeInput1Toolbar=new W("MergeToolbar1Toolbar"),W.MergeInput2Toolbar=new W("MergeToolbar2Toolbar"),W.MergeBaseToolbar=new W("MergeBaseToolbar"),W.MergeInputResultToolbar=new W("MergeToolbarResultToolbar"),W.InlineSuggestionToolbar=new W("InlineSuggestionToolbar"),W.ChatContext=new W("ChatContext"),W.ChatCodeBlock=new W("ChatCodeblock"),W.ChatMessageTitle=new W("ChatMessageTitle"),W.ChatExecute=new W("ChatExecute");const Cx=Lt("menuService");class ld{static for(e){let t=this._all.get(e);return t||(t=new ld(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof ld&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}ld._all=new Map;const Aa=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new PWe({merge:ld.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(n){return this._commands.set(n.id,n),this._onDidChangeMenu.fire(ld.for(W.CommandPalette)),Ot(()=>{this._commands.delete(n.id)&&this._onDidChangeMenu.fire(ld.for(W.CommandPalette))})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((e,t)=>n.set(t,e)),n}appendMenuItem(n,e){let t=this._menuItems.get(n);t||(t=new as,this._menuItems.set(n,t));const i=t.push(e);return this._onDidChangeMenu.fire(ld.for(n)),Ot(i)}appendMenuItems(n){const e=new Je;for(const{id:t,item:i}of n)e.add(this.appendMenuItem(t,i));return e}getMenuItems(n){let e;return this._menuItems.has(n)?e=[...this._menuItems.get(n)]:e=[],n===W.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(n){const e=new Set;for(const t of n)Tv(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||n.push({command:t})})}};class kze extends AN{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let Iv=class h3{static label(e,t){return t!=null&&t.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,t,i,r,s,o){var a,l;this.hideActions=r,this._commandService=o,this.id=e.id,this.label=h3.label(e,i),this.tooltip=(l=typeof e.tooltip=="string"?e.tooltip:(a=e.tooltip)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0;let c;if(e.toggled){const u=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(u.condition),this.checked&&u.tooltip&&(this.tooltip=typeof u.tooltip=="string"?u.tooltip:u.tooltip.value),this.checked&>.isThemeIcon(u.icon)&&(c=u.icon),this.checked&&u.title&&(this.label=typeof u.title=="string"?u.title:u.title.value)}c||(c=gt.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new h3(t,void 0,i,r,s,o):void 0,this._options=i,this.class=c&>.asClassName(c)}run(...e){var t,i;let r=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(r=[...r,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(r=[...r,...e]),this._commandService.executeCommand(this.id,...r)}};Iv=Sze([SY(4,Zt),SY(5,Ko)],Iv);class xY{constructor(e){this.desc=e}}function LY(n){const e=new Je,t=new n,i=t.desc,{f1:r,menu:s,keybinding:o,description:a}=i,l=xze(i,["f1","menu","keybinding","description"]);if(e.add(tr.registerCommand({id:l.id,handler:(c,...u)=>t.run(c,...u),description:a})),Array.isArray(s))for(const c of s)e.add(Aa.appendMenuItem(c.id,Object.assign({command:Object.assign(Object.assign({},l),{precondition:c.precondition===null?void 0:l.precondition})},c)));else s&&e.add(Aa.appendMenuItem(s.id,Object.assign({command:Object.assign(Object.assign({},l),{precondition:s.precondition===null?void 0:l.precondition})},s)));if(r&&(e.add(Aa.appendMenuItem(W.CommandPalette,{command:l,when:l.precondition})),e.add(Aa.addCommand(l))),Array.isArray(o))for(const c of o)e.add(Km.registerKeybindingRule(Object.assign(Object.assign({},c),{id:l.id,when:l.precondition?Bt.and(l.precondition,c.when):c.when})));else o&&e.add(Km.registerKeybindingRule(Object.assign(Object.assign({},o),{id:l.id,when:l.precondition?Bt.and(l.precondition,o.when):o.when})));return e}const Av=Lt("telemetryService");let wx=class{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=Bt.and(i,this.precondition):i=this.precondition);const r={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};Km.registerKeybindingRule(r)}}tr.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){Aa.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}};class MN extends wx{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,r){return this._implementations.push({priority:e,name:t,implementation:i,when:r}),this._implementations.sort((s,o)=>o.priority-s.priority),{dispose:()=>{for(let s=0;s<this._implementations.length;s++)if(this._implementations[s].implementation===i){this._implementations.splice(s,1);return}}}}runCommand(e,t){const i=e.get(Ju),r=e.get(Zt);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const s of this._implementations){if(s.when){const a=r.getContext(document.activeElement);if(!s.when.evaluate(a))continue}const o=s.implementation(e,t);if(o)return i.trace(`Command '${this.id}' was handled by '${s.name}'.`),typeof o=="boolean"?void 0:o}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class kY extends wx{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class Yh extends wx{static bindToContribution(e){return class extends Yh{constructor(i){super(i),this._callback=i.handler}runEditorCommand(i,r,s){const o=e(r);o&&this._callback(o,s)}}}static runEditorCommand(e,t,i,r){const s=e.get(Pn),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext(a=>{if(a.get(Zt).contextMatchesRules(Ou(i)))return r(a,o,t)})}runCommand(e,t){return Yh.runEditorCommand(e,t,this.precondition,(i,r,s)=>this.runEditorCommand(i,r,s))}}function st(n){return wl.INSTANCE.registerEditorCommand(n),n}function DY(n,e,t){wl.INSTANCE.registerEditorContribution(n,e,t)}var Zh;(function(n){function e(o){return wl.INSTANCE.getEditorCommand(o)}n.getEditorCommand=e;function t(){return wl.INSTANCE.getEditorActions()}n.getEditorActions=t;function i(){return wl.INSTANCE.getEditorContributions()}n.getEditorContributions=i;function r(o){return wl.INSTANCE.getEditorContributions().filter(a=>o.indexOf(a.id)>=0)}n.getSomeEditorContributions=r;function s(){return wl.INSTANCE.getDiffEditorContributions()}n.getDiffEditorContributions=s})(Zh||(Zh={}));const Dze={EditorCommonContributions:"editor.contributions"};class wl{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}wl.INSTANCE=new wl,Li.add(Dze.EditorCommonContributions,wl.INSTANCE);function Ov(n){return n.register(),n}const EY=Ov(new MN({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:W.MenubarEditMenu,group:"1_do",title:C({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:W.CommandPalette,group:"",title:C("undo","Undo"),order:1}]}));Ov(new kY(EY,{id:"default:undo",precondition:void 0}));const TY=Ov(new MN({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:W.MenubarEditMenu,group:"1_do",title:C({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:W.CommandPalette,group:"",title:C("redo","Redo"),order:1}]}));Ov(new kY(TY,{id:"default:redo",precondition:void 0}));const Eze=Ov(new MN({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:W.MenubarSelectionMenu,group:"1_basic",title:C({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:W.CommandPalette,group:"",title:C("selectAll","Select All"),order:1}]}));var Tze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Ize=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let Nv=class{constructor(e,t){}dispose(){}};Nv.ID="editor.contrib.markerDecorations",Nv=Tze([Ize(1,CY)],Nv),DY(Nv.ID,Nv,0);const Yht="";class PN extends Le{constructor(e,t){super(),this._onDidChange=this._register(new ne),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,r=0;t?(i=t.width,r=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,r=this._referenceDomElement.clientHeight),i=Math.max(5,i),r=Math.max(5,r),(this._width!==i||this._height!==r)&&(this._width=i,this._height=r,e&&this._onDidChange.fire())}}class cd{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=cd._read(e,this.key),i=s=>cd._read(e,s),r=(s,o)=>cd._write(e,s,o);this.migrate(t,i,r)}static _read(e,t){if(typeof e>"u")return;const i=t.indexOf(".");if(i>=0){const r=t.substring(0,i);return this._read(e[r],t.substring(i+1))}return e[t]}static _write(e,t,i){const r=t.indexOf(".");if(r>=0){const s=t.substring(0,r);e[s]=e[s]||{},this._write(e[s],t.substring(r+1),i);return}e[t]=i}}cd.items=[];function ud(n,e){cd.items.push(new cd(n,e))}function ao(n,e){ud(n,(t,i,r)=>{if(typeof t<"u"){for(const[s,o]of e)if(t===s){r(n,o);return}}})}function Aze(n){cd.items.forEach(e=>e.apply(n))}ao("wordWrap",[[!0,"on"],[!1,"off"]]),ao("lineNumbers",[[!0,"on"],[!1,"off"]]),ao("cursorBlinking",[["visible","solid"]]),ao("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),ao("renderLineHighlight",[[!0,"line"],[!1,"none"]]),ao("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),ao("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),ao("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),ao("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),ao("autoIndent",[[!1,"advanced"],[!0,"full"]]),ao("matchBrackets",[[!0,"always"],[!1,"never"]]),ao("renderFinalNewline",[[!0,"on"],[!1,"off"]]),ao("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),ud("autoClosingBrackets",(n,e,t)=>{n===!1&&(t("autoClosingBrackets","never"),typeof e("autoClosingQuotes")>"u"&&t("autoClosingQuotes","never"),typeof e("autoSurround")>"u"&&t("autoSurround","never"))}),ud("renderIndentGuides",(n,e,t)=>{typeof n<"u"&&(t("renderIndentGuides",void 0),typeof e("guides.indentation")>"u"&&t("guides.indentation",!!n))}),ud("highlightActiveIndentGuide",(n,e,t)=>{typeof n<"u"&&(t("highlightActiveIndentGuide",void 0),typeof e("guides.highlightActiveIndentation")>"u"&&t("guides.highlightActiveIndentation",!!n))});const Oze={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};ud("suggest.filteredTypes",(n,e,t)=>{if(n&&typeof n=="object"){for(const i of Object.entries(Oze))n[i[0]]===!1&&typeof e(`suggest.${i[1]}`)>"u"&&t(`suggest.${i[1]}`,!1);t("suggest.filteredTypes",void 0)}}),ud("quickSuggestions",(n,e,t)=>{if(typeof n=="boolean"){const i=n?"on":"off";t("quickSuggestions",{comments:i,strings:i,other:i})}}),ud("experimental.stickyScroll.enabled",(n,e,t)=>{typeof n=="boolean"&&(t("experimental.stickyScroll.enabled",void 0),typeof e("stickyScroll.enabled")>"u"&&t("stickyScroll.enabled",n))}),ud("experimental.stickyScroll.maxLineCount",(n,e,t)=>{typeof n=="number"&&(t("experimental.stickyScroll.maxLineCount",void 0),typeof e("stickyScroll.maxLineCount")>"u"&&t("stickyScroll.maxLineCount",n))});class Nze{constructor(){this._tabFocusTerminal=!1,this._tabFocusEditor=!1,this._onDidChangeTabFocus=new ne,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(e){return e==="terminalFocus"?this._tabFocusTerminal:this._tabFocusEditor}setTabFocusMode(e,t){t==="terminalFocus"?this._tabFocusTerminal=e:this._tabFocusEditor=e,this._onDidChangeTabFocus.fire()}}const Mv=new Nze;var Mze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Pze=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let RN=class extends Le{constructor(e,t,i,r){super(),this._accessibilityService=r,this._onDidChange=this._register(new ne),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new ne),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new Cq,this.isSimpleWidget=e,this._containerObserver=this._register(new PN(i,t.dimension)),this._rawOptions=IY(t),this._validatedOptions=dd.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(12)&&this._containerObserver.startObserving(),this._register(qu.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(Mv.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(xO.onDidChange(()=>this._recomputeOptions())),this._register(TS.onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=dd.checkEquals(this.options,e);t!==null&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=Ah.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),r={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:Mv.getTabFocusMode("editorFocus"),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return dd.computeOptions(this._validatedOptions,r)}_readEnvConfiguration(){return{extraEditorClassName:Fze(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:Ih||$o,pixelRatio:TS.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return xO.readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=IY(e);dd.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=dd.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=Rze(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};RN=Mze([Pze(3,Rh)],RN);function Rze(n){let e=0;for(;n;)n=Math.floor(n/10),e++;return e||1}function Fze(){let n="";return!xc&&!sK&&(n+="no-user-select "),xc&&(n+="no-minimap-shadow ",n+="enable-user-select "),It&&(n+="mac "),n}class Bze{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class Wze{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class dd{static validateOptions(e){const t=new Bze;for(const i of hm){const r=i.name==="_never_"?void 0:e[i.name];t._write(i.id,i.validate(r))}return t}static computeOptions(e,t){const i=new Wze;for(const r of hm)i._write(r.id,r.compute(t,i,e._read(r.id)));return i}static _deepEquals(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?Is(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!dd._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let r=!1;for(const s of hm){const o=!dd._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=o,o&&(r=!0)}return r?new yq(i):null}static applyUpdate(e,t){let i=!1;for(const r of hm)if(t.hasOwnProperty(r.name)){const s=r.applyUpdate(e[r.name],t[r.name]);e[r.name]=s.newValue,i=i||s.didChange}return i}}function IY(n){const e=Nu(n);return Aze(e),e}function Rn(n,e,t){let i=null,r=null;if(typeof t.value=="function"?(i="value",r=t.value,r.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof t.get=="function"&&(i="get",r=t.get),!r)throw new Error("not supported");const s=`$memoize$${e}`;t[i]=function(...o){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,o)}),this[s]}}var Vze=globalThis&&globalThis.__decorate||function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(e,t,s):o(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Jt;(function(n){n.Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu"})(Jt||(Jt={}));class an extends Le{constructor(){super(),this.dispatched=!1,this.targets=new as,this.ignoreTargets=new as,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(ye(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(ye(document,"touchend",e=>this.onTouchEnd(e))),this._register(ye(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){if(!an.isTouchDevice())return Le.None;an.INSTANCE||(an.INSTANCE=new an);const t=an.INSTANCE.targets.push(e);return Ot(t)}static ignoreTarget(e){if(!an.isTouchDevice())return Le.None;an.INSTANCE||(an.INSTANCE=new an);const t=an.INSTANCE.ignoreTargets.push(e);return Ot(t)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,r=e.targetTouches.length;i<r;i++){const s=e.targetTouches.item(i);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:t,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[t],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};const o=this.newGestureEvent(Jt.Start,s.target);o.pageX=s.pageX,o.pageY=s.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){const t=Date.now(),i=Object.keys(this.activeTouches).length;for(let r=0,s=e.changedTouches.length;r<s;r++){const o=e.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("move of an UNKNOWN touch",o);continue}const a=this.activeTouches[o.identifier],l=Date.now()-a.initialTimeStamp;if(l<an.HOLD_DELAY&&Math.abs(a.initialPageX-eo(a.rollingPageX))<30&&Math.abs(a.initialPageY-eo(a.rollingPageY))<30){const c=this.newGestureEvent(Jt.Tap,a.initialTarget);c.pageX=eo(a.rollingPageX),c.pageY=eo(a.rollingPageY),this.dispatchEvent(c)}else if(l>=an.HOLD_DELAY&&Math.abs(a.initialPageX-eo(a.rollingPageX))<30&&Math.abs(a.initialPageY-eo(a.rollingPageY))<30){const c=this.newGestureEvent(Jt.Contextmenu,a.initialTarget);c.pageX=eo(a.rollingPageX),c.pageY=eo(a.rollingPageY),this.dispatchEvent(c)}else if(i===1){const c=eo(a.rollingPageX),u=eo(a.rollingPageY),d=eo(a.rollingTimestamps)-a.rollingTimestamps[0],h=c-a.rollingPageX[0],f=u-a.rollingPageY[0],g=[...this.targets].filter(m=>a.initialTarget instanceof Node&&m.contains(a.initialTarget));this.inertia(g,t,Math.abs(h)/d,h>0?1:-1,c,Math.abs(f)/d,f>0?1:-1,u)}this.dispatchEvent(this.newGestureEvent(Jt.End,a.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===Jt.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>an.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===Jt.Change||e.type===Jt.Contextmenu)&&(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const t of this.ignoreTargets)if(t.contains(e.initialTarget))return;for(const t of this.targets)t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}}inertia(e,t,i,r,s,o,a,l){this.handle=ro(()=>{const c=Date.now(),u=c-t;let d=0,h=0,f=!0;i+=an.SCROLL_FRICTION*u,o+=an.SCROLL_FRICTION*u,i>0&&(f=!1,d=r*i*u),o>0&&(f=!1,h=a*o*u);const g=this.newGestureEvent(Jt.Change);g.translationX=d,g.translationY=h,e.forEach(m=>m.dispatchEvent(g)),f||this.inertia(e,c,i,r,s+d,o,a,l+h)})}onTouchMove(e){const t=Date.now();for(let i=0,r=e.changedTouches.length;i<r;i++){const s=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}const o=this.activeTouches[s.identifier],a=this.newGestureEvent(Jt.Change,o.initialTarget);a.translationX=s.pageX-eo(o.rollingPageX),a.translationY=s.pageY-eo(o.rollingPageY),a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(s.pageX),o.rollingPageY.push(s.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}an.SCROLL_FRICTION=-.005,an.HOLD_DELAY=700,an.CLEAR_TAP_COUNT_TIME=400,Vze([Rn],an,"isTouchDevice",null);class Sx{constructor(){this._hooks=new Je,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=s;let o=e;try{e.setPointerCapture(t),this._hooks.add(Ot(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{o=window}this._hooks.add(ye(o,Ae.POINTER_MOVE,a=>{if(a.buttons!==i){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(ye(o,Ae.POINTER_UP,a=>this.stopMonitoring(!0)))}}function FN(n){return`--vscode-${n.replace(/\./g,"-")}`}function Te(n){return`var(${FN(n)})`}function $ze(n,e){return`var(${FN(n)}, ${e})`}const AY={ColorContribution:"base.contributions.colors"};class Hze{constructor(){this._onDidChangeSchema=new ne,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,r=!1,s){const o={id:e,description:i,defaults:t,needsTransparency:r,deprecationMessage:s};this.colorsById[e]=o;const a={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(a.deprecationMessage=s),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const r=i.defaults[t.type];return Ma(r,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(t,i)=>{const r=t.indexOf(".")===-1?0:1,s=i.indexOf(".")===-1?0:1;return r!==s?r-s:t.localeCompare(i)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(`
|
426
426
|
`)}}const xx=new Hze;Li.add(AY.ColorContribution,xx);function $(n,e,t,i,r){return xx.registerColor(n,e,t,i,r)}const ht=$("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},C("foreground","Overall foreground color. This color is only used if not overridden by a component."));$("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},C("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),$("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},C("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),$("descriptionForeground",{light:"#717171",dark:qe(ht,.7),hcDark:qe(ht,.7),hcLight:qe(ht,.7)},C("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));const Lx=$("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},C("iconForeground","The default color for icons in the workbench.")),lo=$("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},C("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),Dt=$("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},C("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Fn=$("contrastActiveBorder",{light:null,dark:null,hcDark:lo,hcLight:lo},C("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));$("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},C("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),$("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:me.black,hcLight:"#292929"},C("textSeparatorForeground","Color for text separators."));const jze=$("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},C("textLinkForeground","Foreground color for links in text."));$("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},C("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),$("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},C("textPreformatForeground","Foreground color for preformatted text segments.")),$("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},C("textBlockQuoteBackground","Background color for block quotes in text.")),$("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:me.white,hcLight:"#292929"},C("textBlockQuoteBorder","Border color for block quotes in text.")),$("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:me.black,hcLight:"#F2F2F2"},C("textCodeBlockBackground","Background color for code blocks in text."));const hd=$("widget.shadow",{dark:qe(me.black,.36),light:qe(me.black,.16),hcDark:null,hcLight:null},C("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),zze=$("widget.border",{dark:null,light:null,hcDark:Dt,hcLight:Dt},C("widgetBorder","Border color of widgets such as find/replace inside the editor.")),Uze=$("input.background",{dark:"#3C3C3C",light:me.white,hcDark:me.black,hcLight:me.white},C("inputBoxBackground","Input box background.")),qze=$("input.foreground",{dark:ht,light:ht,hcDark:ht,hcLight:ht},C("inputBoxForeground","Input box foreground.")),Kze=$("input.border",{dark:null,light:null,hcDark:Dt,hcLight:Dt},C("inputBoxBorder","Input box border.")),Gze=$("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:Dt,hcLight:Dt},C("inputBoxActiveOptionBorder","Border color of activated options in input fields."));$("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},C("inputOption.hoverBackground","Background color of activated options in input fields."));const Yze=$("inputOption.activeBackground",{dark:qe(lo,.4),light:qe(lo,.2),hcDark:me.transparent,hcLight:me.transparent},C("inputOption.activeBackground","Background hover color of options in input fields.")),Zze=$("inputOption.activeForeground",{dark:me.white,light:me.black,hcDark:ht,hcLight:ht},C("inputOption.activeForeground","Foreground color of activated options in input fields."));$("input.placeholderForeground",{light:qe(ht,.5),dark:qe(ht,.5),hcDark:qe(ht,.7),hcLight:qe(ht,.7)},C("inputPlaceholderForeground","Input box foreground color for placeholder text."));const Xze=$("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:me.black,hcLight:me.white},C("inputValidationInfoBackground","Input validation background color for information severity.")),Qze=$("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:ht},C("inputValidationInfoForeground","Input validation foreground color for information severity.")),Jze=$("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:Dt,hcLight:Dt},C("inputValidationInfoBorder","Input validation border color for information severity.")),eUe=$("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:me.black,hcLight:me.white},C("inputValidationWarningBackground","Input validation background color for warning severity.")),tUe=$("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:ht},C("inputValidationWarningForeground","Input validation foreground color for warning severity.")),nUe=$("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:Dt,hcLight:Dt},C("inputValidationWarningBorder","Input validation border color for warning severity.")),iUe=$("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:me.black,hcLight:me.white},C("inputValidationErrorBackground","Input validation background color for error severity.")),rUe=$("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:ht},C("inputValidationErrorForeground","Input validation foreground color for error severity.")),sUe=$("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:Dt,hcLight:Dt},C("inputValidationErrorBorder","Input validation border color for error severity.")),Sl=$("dropdown.background",{dark:"#3C3C3C",light:me.white,hcDark:me.black,hcLight:me.white},C("dropdownBackground","Dropdown background.")),oUe=$("dropdown.listBackground",{dark:null,light:null,hcDark:me.black,hcLight:me.white},C("dropdownListBackground","Dropdown list background.")),Nc=$("dropdown.foreground",{dark:"#F0F0F0",light:ht,hcDark:me.white,hcLight:ht},C("dropdownForeground","Dropdown foreground.")),Gm=$("dropdown.border",{dark:Sl,light:"#CECECE",hcDark:Dt,hcLight:Dt},C("dropdownBorder","Dropdown border.")),Pv=$("button.foreground",{dark:me.white,light:me.white,hcDark:me.white,hcLight:me.white},C("buttonForeground","Button foreground color.")),aUe=$("button.separator",{dark:qe(Pv,.4),light:qe(Pv,.4),hcDark:qe(Pv,.4),hcLight:qe(Pv,.4)},C("buttonSeparator","Button separator color.")),Rv=$("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},C("buttonBackground","Button background color.")),lUe=$("button.hoverBackground",{dark:Na(Rv,.2),light:Xh(Rv,.2),hcDark:Rv,hcLight:Rv},C("buttonHoverBackground","Button background color when hovering.")),cUe=$("button.border",{dark:Dt,light:Dt,hcDark:Dt,hcLight:Dt},C("buttonBorder","Button border color.")),uUe=$("button.secondaryForeground",{dark:me.white,light:me.white,hcDark:me.white,hcLight:ht},C("buttonSecondaryForeground","Secondary button foreground color.")),BN=$("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:me.white},C("buttonSecondaryBackground","Secondary button background color.")),dUe=$("button.secondaryHoverBackground",{dark:Na(BN,.2),light:Xh(BN,.2),hcDark:null,hcLight:null},C("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),kx=$("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:me.black,hcLight:"#0F4A85"},C("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),OY=$("badge.foreground",{dark:me.white,light:"#333",hcDark:me.white,hcLight:me.white},C("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),hUe=$("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},C("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Fv=$("scrollbarSlider.background",{dark:me.fromHex("#797979").transparent(.4),light:me.fromHex("#646464").transparent(.4),hcDark:qe(Dt,.6),hcLight:qe(Dt,.4)},C("scrollbarSliderBackground","Scrollbar slider background color.")),Bv=$("scrollbarSlider.hoverBackground",{dark:me.fromHex("#646464").transparent(.7),light:me.fromHex("#646464").transparent(.7),hcDark:qe(Dt,.8),hcLight:qe(Dt,.8)},C("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Wv=$("scrollbarSlider.activeBackground",{dark:me.fromHex("#BFBFBF").transparent(.4),light:me.fromHex("#000000").transparent(.6),hcDark:Dt,hcLight:Dt},C("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),fUe=$("progressBar.background",{dark:me.fromHex("#0E70C0"),light:me.fromHex("#0E70C0"),hcDark:Dt,hcLight:Dt},C("progressBarBackground","Background color of the progress bar that can show for long running operations."));$("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},C("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const Mc=$("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},C("editorError.foreground","Foreground color of error squigglies in the editor."));$("editorError.border",{dark:null,light:null,hcDark:me.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},C("errorBorder","If set, color of double underlines for errors in the editor.")),$("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},C("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const co=$("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},C("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Dx=$("editorWarning.border",{dark:null,light:null,hcDark:me.fromHex("#FFCC00").transparent(.8),hcLight:me.fromHex("#FFCC00").transparent(.8)},C("warningBorder","If set, color of double underlines for warnings in the editor."));$("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},C("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const Oa=$("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},C("editorInfo.foreground","Foreground color of info squigglies in the editor.")),NY=$("editorInfo.border",{dark:null,light:null,hcDark:me.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},C("infoBorder","If set, color of double underlines for infos in the editor.")),gUe=$("editorHint.foreground",{dark:me.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},C("editorHint.foreground","Foreground color of hint squigglies in the editor."));$("editorHint.border",{dark:null,light:null,hcDark:me.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},C("hintBorder","If set, color of double underlines for hints in the editor.")),$("sash.hoverBorder",{dark:lo,light:lo,hcDark:lo,hcLight:lo},C("sashActiveBorder","Border color of active sashes."));const nr=$("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:me.black,hcLight:me.white},C("editorBackground","Editor background color.")),Ex=$("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:me.white,hcLight:ht},C("editorForeground","Editor default foreground color."));$("editorStickyScroll.background",{light:nr,dark:nr,hcDark:nr,hcLight:nr},C("editorStickyScrollBackground","Sticky scroll background color for the editor")),$("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:me.fromHex("#0F4A85").transparent(.1)},C("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor"));const ci=$("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:me.white},C("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Pc=$("editorWidget.foreground",{dark:ht,light:ht,hcDark:ht,hcLight:ht},C("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Vv=$("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:Dt,hcLight:Dt},C("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));$("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},C("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget."));const MY=$("quickInput.background",{dark:ci,light:ci,hcDark:ci,hcLight:ci},C("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),mUe=$("quickInput.foreground",{dark:Pc,light:Pc,hcDark:Pc,hcLight:Pc},C("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),pUe=$("quickInputTitle.background",{dark:new me(new Ct(255,255,255,.105)),light:new me(new Ct(0,0,0,.06)),hcDark:"#000000",hcLight:me.white},C("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),PY=$("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:me.white,hcLight:"#0F4A85"},C("pickerGroupForeground","Quick picker color for grouping labels.")),_Ue=$("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:me.white,hcLight:"#0F4A85"},C("pickerGroupBorder","Quick picker color for grouping borders.")),vUe=$("keybindingLabel.background",{dark:new me(new Ct(128,128,128,.17)),light:new me(new Ct(221,221,221,.4)),hcDark:me.transparent,hcLight:me.transparent},C("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),bUe=$("keybindingLabel.foreground",{dark:me.fromHex("#CCCCCC"),light:me.fromHex("#555555"),hcDark:me.white,hcLight:ht},C("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),yUe=$("keybindingLabel.border",{dark:new me(new Ct(51,51,51,.6)),light:new me(new Ct(204,204,204,.4)),hcDark:new me(new Ct(111,195,223)),hcLight:Dt},C("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),CUe=$("keybindingLabel.bottomBorder",{dark:new me(new Ct(68,68,68,.6)),light:new me(new Ct(187,187,187,.4)),hcDark:new me(new Ct(111,195,223)),hcLight:ht},C("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ym=$("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},C("editorSelectionBackground","Color of the editor selection.")),wUe=$("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:me.white},C("editorSelectionForeground","Color of the selected text for high contrast.")),RY=$("editor.inactiveSelectionBackground",{light:qe(Ym,.5),dark:qe(Ym,.5),hcDark:qe(Ym,.7),hcLight:qe(Ym,.5)},C("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),FY=$("editor.selectionHighlightBackground",{light:tZ(Ym,nr,.3,.6),dark:tZ(Ym,nr,.3,.6),hcDark:null,hcLight:null},C("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);$("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:Fn,hcLight:Fn},C("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),$("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},C("editorFindMatch","Color of the current search match."));const fd=$("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},C("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0);$("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},C("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),$("editor.findMatchBorder",{light:null,dark:null,hcDark:Fn,hcLight:Fn},C("editorFindMatchBorder","Border color of the current search match."));const Zm=$("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:Fn,hcLight:Fn},C("findMatchHighlightBorder","Border color of the other search matches."));$("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:qe(Fn,.4),hcLight:qe(Fn,.4)},C("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),$("searchEditor.findMatchBackground",{light:qe(fd,.66),dark:qe(fd,.66),hcDark:fd,hcLight:fd},C("searchEditor.queryMatch","Color of the Search Editor query matches.")),$("searchEditor.findMatchBorder",{light:qe(Zm,.66),dark:qe(Zm,.66),hcDark:Zm,hcLight:Zm},C("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches.")),$("search.resultsInfoForeground",{light:ht,dark:qe(ht,.65),hcDark:ht,hcLight:ht},C("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),$("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},C("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);const BY=$("editorHoverWidget.background",{light:ci,dark:ci,hcDark:ci,hcLight:ci},C("hoverBackground","Background color of the editor hover."));$("editorHoverWidget.foreground",{light:Pc,dark:Pc,hcDark:Pc,hcLight:Pc},C("hoverForeground","Foreground color of the editor hover.")),$("editorHoverWidget.border",{light:Vv,dark:Vv,hcDark:Vv,hcLight:Vv},C("hoverBorder","Border color of the editor hover.")),$("editorHoverWidget.statusBarBackground",{dark:Na(BY,.2),light:Xh(BY,.05),hcDark:ci,hcLight:ci},C("statusBarBackground","Background color of the editor hover status bar.")),$("editorLink.activeForeground",{dark:"#4E94CE",light:me.blue,hcDark:me.cyan,hcLight:"#292929"},C("activeLinkForeground","Color of active links."));const gd=$("editorInlayHint.foreground",{dark:ht,light:ht,hcDark:me.black,hcLight:OY},C("editorInlayHintForeground","Foreground color of inline hints")),md=$("editorInlayHint.background",{dark:qe(kx,.25),light:qe(kx,.3),hcDark:"#f38518",hcLight:kx},C("editorInlayHintBackground","Background color of inline hints"));$("editorInlayHint.typeForeground",{dark:gd,light:gd,hcDark:gd,hcLight:gd},C("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),$("editorInlayHint.typeBackground",{dark:md,light:md,hcDark:md,hcLight:md},C("editorInlayHintBackgroundTypes","Background color of inline hints for types")),$("editorInlayHint.parameterForeground",{dark:gd,light:gd,hcDark:gd,hcLight:gd},C("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),$("editorInlayHint.parameterBackground",{dark:md,light:md,hcDark:md,hcLight:md},C("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),$("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},C("editorLightBulbForeground","The color used for the lightbulb actions icon.")),$("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},C("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon."));const Tx=new me(new Ct(155,185,85,.2)),Ix=new me(new Ct(255,0,0,.2)),WY=$("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},C("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),VY=$("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},C("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);$("diffEditor.insertedLineBackground",{dark:Tx,light:Tx,hcDark:null,hcLight:null},C("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),$("diffEditor.removedLineBackground",{dark:Ix,light:Ix,hcDark:null,hcLight:null},C("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),$("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},C("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),$("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},C("diffEditorRemovedLineGutter","Background color for the margin where lines got removed."));const $Y=$("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),HY=$("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content."));$("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},C("diffEditorInsertedOutline","Outline color for the text that got inserted.")),$("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},C("diffEditorRemovedOutline","Outline color for text that got removed.")),$("diffEditor.border",{dark:null,light:null,hcDark:Dt,hcLight:Dt},C("diffEditorBorder","Border color between the two text editors."));const SUe=$("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},C("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views."));$("diffEditor.unchangedRegionBackground",{dark:"#3e3e3e",light:"#e4e4e4",hcDark:null,hcLight:null},C("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),$("diffEditor.unchangedRegionForeground",{dark:"#a3a2a2",light:"#4d4c4c",hcDark:null,hcLight:null},C("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),$("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},C("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor."));const xUe=$("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},C("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),LUe=$("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),kUe=$("list.focusOutline",{dark:lo,light:lo,hcDark:Fn,hcLight:Fn},C("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),DUe=$("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},C("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),Rc=$("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:me.fromHex("#0F4A85").transparent(.1)},C("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),xl=$("list.activeSelectionForeground",{dark:me.white,light:me.white,hcDark:null,hcLight:null},C("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),$v=$("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),EUe=$("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:me.fromHex("#0F4A85").transparent(.1)},C("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),TUe=$("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),IUe=$("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),AUe=$("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},C("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),OUe=$("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},C("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),jY=$("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:me.white.transparent(.1),hcLight:me.fromHex("#0F4A85").transparent(.1)},C("listHoverBackground","List/Tree background when hovering over items using the mouse.")),zY=$("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},C("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),NUe=$("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},C("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Ax=$("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:lo,hcLight:lo},C("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree."));$("list.focusHighlightForeground",{dark:Ax,light:lqe(Rc,Ax,"#BBE7FF"),hcDark:Ax,hcLight:Ax},C("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),$("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},C("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),$("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},C("listErrorForeground","Foreground color of list items containing errors.")),$("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},C("listWarningForeground","Foreground color of list items containing warnings."));const MUe=$("listFilterWidget.background",{light:Xh(ci,0),dark:Na(ci,0),hcDark:ci,hcLight:ci},C("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),PUe=$("listFilterWidget.outline",{dark:me.transparent,light:me.transparent,hcDark:"#f38518",hcLight:"#007ACC"},C("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),RUe=$("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:Dt,hcLight:Dt},C("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),FUe=$("listFilterWidget.shadow",{dark:hd,light:hd,hcDark:hd,hcLight:hd},C("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees."));$("list.filterMatchBackground",{dark:fd,light:fd,hcDark:null,hcLight:null},C("listFilterMatchHighlight","Background color of the filtered match.")),$("list.filterMatchBorder",{dark:Zm,light:Zm,hcDark:Dt,hcLight:Fn},C("listFilterMatchHighlightBorder","Border color of the filtered match."));const Hv=$("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},C("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),BUe=$("tree.inactiveIndentGuidesStroke",{dark:qe(Hv,.4),light:qe(Hv,.4),hcDark:qe(Hv,.4),hcLight:qe(Hv,.4)},C("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),WUe=$("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},C("tableColumnsBorder","Table border color between columns.")),VUe=$("tree.tableOddRowsBackground",{dark:qe(ht,.04),light:qe(ht,.04),hcDark:null,hcLight:null},C("tableOddRowsBackgroundColor","Background color for odd table rows."));$("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},C("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));const $Ue=$("checkbox.background",{dark:Sl,light:Sl,hcDark:Sl,hcLight:Sl},C("checkbox.background","Background color of checkbox widget."));$("checkbox.selectBackground",{dark:ci,light:ci,hcDark:ci,hcLight:ci},C("checkbox.select.background","Background color of checkbox widget when the element it's in is selected."));const HUe=$("checkbox.foreground",{dark:Nc,light:Nc,hcDark:Nc,hcLight:Nc},C("checkbox.foreground","Foreground color of checkbox widget.")),jUe=$("checkbox.border",{dark:Gm,light:Gm,hcDark:Gm,hcLight:Gm},C("checkbox.border","Border color of checkbox widget."));$("checkbox.selectBorder",{dark:Lx,light:Lx,hcDark:Lx,hcLight:Lx},C("checkbox.select.border","Border color of checkbox widget when the element it's in is selected."));const UY=$("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,C("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),WN=$("quickInputList.focusForeground",{dark:xl,light:xl,hcDark:xl,hcLight:xl},C("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),qY=$("quickInputList.focusIconForeground",{dark:$v,light:$v,hcDark:$v,hcLight:$v},C("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),VN=$("quickInputList.focusBackground",{dark:eZ(UY,Rc),light:eZ(UY,Rc),hcDark:null,hcLight:null},C("quickInput.listFocusBackground","Quick picker background color for the focused item.")),zUe=$("menu.border",{dark:null,light:null,hcDark:Dt,hcLight:Dt},C("menuBorder","Border color of menus.")),UUe=$("menu.foreground",{dark:Nc,light:Nc,hcDark:Nc,hcLight:Nc},C("menuForeground","Foreground color of menu items.")),qUe=$("menu.background",{dark:Sl,light:Sl,hcDark:Sl,hcLight:Sl},C("menuBackground","Background color of menu items.")),KUe=$("menu.selectionForeground",{dark:xl,light:xl,hcDark:xl,hcLight:xl},C("menuSelectionForeground","Foreground color of the selected menu item in menus.")),GUe=$("menu.selectionBackground",{dark:Rc,light:Rc,hcDark:Rc,hcLight:Rc},C("menuSelectionBackground","Background color of the selected menu item in menus.")),YUe=$("menu.selectionBorder",{dark:null,light:null,hcDark:Fn,hcLight:Fn},C("menuSelectionBorder","Border color of the selected menu item in menus.")),ZUe=$("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:Dt,hcLight:Dt},C("menuSeparatorBackground","Color of a separator menu item in menus.")),KY=$("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},C("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));$("toolbar.hoverOutline",{dark:null,light:null,hcDark:Fn,hcLight:Fn},C("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),$("toolbar.activeBackground",{dark:Na(KY,.1),light:Xh(KY,.1),hcDark:null,hcLight:null},C("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),$("editor.snippetTabstopHighlightBackground",{dark:new me(new Ct(124,124,124,.3)),light:new me(new Ct(10,50,100,.2)),hcDark:new me(new Ct(124,124,124,.3)),hcLight:new me(new Ct(10,50,100,.2))},C("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),$("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},C("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),$("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},C("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),$("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new me(new Ct(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},C("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));const XUe=$("breadcrumb.foreground",{light:qe(ht,.8),dark:qe(ht,.8),hcDark:qe(ht,.8),hcLight:qe(ht,.8)},C("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),QUe=$("breadcrumb.background",{light:nr,dark:nr,hcDark:nr,hcLight:nr},C("breadcrumbsBackground","Background color of breadcrumb items.")),GY=$("breadcrumb.focusForeground",{light:Xh(ht,.2),dark:Na(ht,.1),hcDark:Na(ht,.1),hcLight:Na(ht,.1)},C("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),JUe=$("breadcrumb.activeSelectionForeground",{light:Xh(ht,.2),dark:Na(ht,.1),hcDark:Na(ht,.1),hcLight:Na(ht,.1)},C("breadcrumbsSelectedForeground","Color of selected breadcrumb items."));$("breadcrumbPicker.background",{light:ci,dark:ci,hcDark:ci,hcLight:ci},C("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const YY=.5,ZY=me.fromHex("#40C8AE").transparent(YY),XY=me.fromHex("#40A6FF").transparent(YY),QY=me.fromHex("#606060").transparent(.4),Go=.4,Xm=1,Qm=$("merge.currentHeaderBackground",{dark:ZY,light:ZY,hcDark:null,hcLight:null},C("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);$("merge.currentContentBackground",{dark:qe(Qm,Go),light:qe(Qm,Go),hcDark:qe(Qm,Go),hcLight:qe(Qm,Go)},C("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const Jm=$("merge.incomingHeaderBackground",{dark:XY,light:XY,hcDark:null,hcLight:null},C("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);$("merge.incomingContentBackground",{dark:qe(Jm,Go),light:qe(Jm,Go),hcDark:qe(Jm,Go),hcLight:qe(Jm,Go)},C("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const ep=$("merge.commonHeaderBackground",{dark:QY,light:QY,hcDark:null,hcLight:null},C("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);$("merge.commonContentBackground",{dark:qe(ep,Go),light:qe(ep,Go),hcDark:qe(ep,Go),hcLight:qe(ep,Go)},C("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const tp=$("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},C("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));$("editorOverviewRuler.currentContentForeground",{dark:qe(Qm,Xm),light:qe(Qm,Xm),hcDark:tp,hcLight:tp},C("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),$("editorOverviewRuler.incomingContentForeground",{dark:qe(Jm,Xm),light:qe(Jm,Xm),hcDark:tp,hcLight:tp},C("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),$("editorOverviewRuler.commonContentForeground",{dark:qe(ep,Xm),light:qe(ep,Xm),hcDark:tp,hcLight:tp},C("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),$("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},C("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),$("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},C("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0);const Ox=$("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},C("minimapFindMatchHighlight","Minimap marker color for find matches."),!0);$("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},C("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0);const JY=$("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},C("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),eqe=$("minimap.errorHighlight",{dark:new me(new Ct(255,18,18,.7)),light:new me(new Ct(255,18,18,.7)),hcDark:new me(new Ct(255,50,50,1)),hcLight:"#B5200D"},C("minimapError","Minimap marker color for errors.")),tqe=$("minimap.warningHighlight",{dark:co,light:co,hcDark:Dx,hcLight:Dx},C("overviewRuleWarning","Minimap marker color for warnings.")),nqe=$("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},C("minimapBackground","Minimap background color.")),iqe=$("minimap.foregroundOpacity",{dark:me.fromHex("#000f"),light:me.fromHex("#000f"),hcDark:me.fromHex("#000f"),hcLight:me.fromHex("#000f")},C("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));$("minimapSlider.background",{light:qe(Fv,.5),dark:qe(Fv,.5),hcDark:qe(Fv,.5),hcLight:qe(Fv,.5)},C("minimapSliderBackground","Minimap slider background color.")),$("minimapSlider.hoverBackground",{light:qe(Bv,.5),dark:qe(Bv,.5),hcDark:qe(Bv,.5),hcLight:qe(Bv,.5)},C("minimapSliderHoverBackground","Minimap slider background color when hovering.")),$("minimapSlider.activeBackground",{light:qe(Wv,.5),dark:qe(Wv,.5),hcDark:qe(Wv,.5),hcLight:qe(Wv,.5)},C("minimapSliderActiveBackground","Minimap slider background color when clicked on."));const rqe=$("problemsErrorIcon.foreground",{dark:Mc,light:Mc,hcDark:Mc,hcLight:Mc},C("problemsErrorIconForeground","The color used for the problems error icon.")),sqe=$("problemsWarningIcon.foreground",{dark:co,light:co,hcDark:co,hcLight:co},C("problemsWarningIconForeground","The color used for the problems warning icon.")),oqe=$("problemsInfoIcon.foreground",{dark:Oa,light:Oa,hcDark:Oa,hcLight:Oa},C("problemsInfoIconForeground","The color used for the problems info icon."));$("charts.foreground",{dark:ht,light:ht,hcDark:ht,hcLight:ht},C("chartsForeground","The foreground color used in charts.")),$("charts.lines",{dark:qe(ht,.5),light:qe(ht,.5),hcDark:qe(ht,.5),hcLight:qe(ht,.5)},C("chartsLines","The color used for horizontal lines in charts.")),$("charts.red",{dark:Mc,light:Mc,hcDark:Mc,hcLight:Mc},C("chartsRed","The red color used in chart visualizations.")),$("charts.blue",{dark:Oa,light:Oa,hcDark:Oa,hcLight:Oa},C("chartsBlue","The blue color used in chart visualizations.")),$("charts.yellow",{dark:co,light:co,hcDark:co,hcLight:co},C("chartsYellow","The yellow color used in chart visualizations.")),$("charts.orange",{dark:Ox,light:Ox,hcDark:Ox,hcLight:Ox},C("chartsOrange","The orange color used in chart visualizations.")),$("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},C("chartsGreen","The green color used in chart visualizations.")),$("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},C("chartsPurple","The purple color used in chart visualizations."));function aqe(n,e){var t,i,r,s;switch(n.op){case 0:return(t=Ma(n.value,e))===null||t===void 0?void 0:t.darken(n.factor);case 1:return(i=Ma(n.value,e))===null||i===void 0?void 0:i.lighten(n.factor);case 2:return(r=Ma(n.value,e))===null||r===void 0?void 0:r.transparent(n.factor);case 3:{const o=Ma(n.background,e);return o?(s=Ma(n.value,e))===null||s===void 0?void 0:s.makeOpaque(o):Ma(n.value,e)}case 4:for(const o of n.values){const a=Ma(o,e);if(a)return a}return;case 6:return Ma(e.defines(n.if)?n.then:n.else,e);case 5:{const o=Ma(n.value,e);if(!o)return;const a=Ma(n.background,e);return a?o.isDarkerThan(a)?me.getLighterColor(o,a,n.factor).transparent(n.transparency):me.getDarkerColor(o,a,n.factor).transparent(n.transparency):o.transparent(n.factor*n.transparency)}default:throw LO()}}function Xh(n,e){return{op:0,value:n,factor:e}}function Na(n,e){return{op:1,value:n,factor:e}}function qe(n,e){return{op:2,value:n,factor:e}}function eZ(...n){return{op:4,values:n}}function lqe(n,e,t){return{op:6,if:n,then:e,else:t}}function tZ(n,e,t,i){return{op:5,value:n,background:e,factor:t,transparency:i}}function Ma(n,e){if(n!==null){if(typeof n=="string")return n[0]==="#"?me.fromHex(n):e.getColor(n);if(n instanceof me)return n;if(typeof n=="object")return aqe(n,e)}}const nZ="vscode://schemas/workbench-colors",iZ=Li.as(GS.JSONContribution);iZ.registerSchema(nZ,xx.getColorSchema());const rZ=new Er(()=>iZ.notifySchemaChanged(nZ),200);xx.onDidChangeSchema(()=>{rZ.isScheduled()||rZ.schedule()});class Nx{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new sZ(this.x-window.scrollX,this.y-window.scrollY)}}class sZ{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new Nx(this.clientX+window.scrollX,this.clientY+window.scrollY)}}class cqe{constructor(e,t,i,r){this.x=e,this.y=t,this.width=i,this.height=r,this._editorPagePositionBrand=void 0}}class uqe{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function $N(n){const e=Bs(n);return new cqe(e.left,e.top,e.width,e.height)}function HN(n,e,t){const i=e.width/n.offsetWidth,r=e.height/n.offsetHeight,s=(t.x-e.x)/i,o=(t.y-e.y)/r;return new uqe(s,o)}class pd extends Ta{constructor(e,t,i){super(e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new Nx(this.posx,this.posy),this.editorPos=$N(i),this.relativePos=HN(i,this.editorPos,this.pos)}}class dqe{constructor(e){this._editorViewDomNode=e}_create(e){return new pd(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return ye(e,"contextmenu",i=>{t(this._create(i))})}onMouseUp(e,t){return ye(e,"mouseup",i=>{t(this._create(i))})}onMouseDown(e,t){return ye(e,Ae.MOUSE_DOWN,i=>{t(this._create(i))})}onPointerDown(e,t){return ye(e,Ae.POINTER_DOWN,i=>{t(this._create(i),i.pointerId)})}onMouseLeave(e,t){return ye(e,Ae.MOUSE_LEAVE,i=>{t(this._create(i))})}onMouseMove(e,t){return ye(e,"mousemove",i=>t(this._create(i)))}}class hqe{constructor(e){this._editorViewDomNode=e}_create(e){return new pd(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return ye(e,"pointerup",i=>{t(this._create(i))})}onPointerDown(e,t){return ye(e,Ae.POINTER_DOWN,i=>{t(this._create(i),i.pointerId)})}onPointerLeave(e,t){return ye(e,Ae.POINTER_LEAVE,i=>{t(this._create(i))})}onPointerMove(e,t){return ye(e,"pointermove",i=>t(this._create(i)))}}class fqe extends Le{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new Sx),this._keydownListener=null}startMonitoring(e,t,i,r,s){this._keydownListener=li(document,"keydown",o=>{o.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,o.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,o=>{r(new pd(o,!0,this._editorViewDomNode))},o=>{this._keydownListener.dispose(),s(o)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class jv extends Le{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,r=e.length;i<r;i++){const s=e[i];switch(s.type){case 0:this.onCompositionStart(s)&&(t=!0);break;case 1:this.onCompositionEnd(s)&&(t=!0);break;case 2:this.onConfigurationChanged(s)&&(t=!0);break;case 3:this.onCursorStateChanged(s)&&(t=!0);break;case 4:this.onDecorationsChanged(s)&&(t=!0);break;case 5:this.onFlushed(s)&&(t=!0);break;case 6:this.onFocusChanged(s)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(s)&&(t=!0);break;case 8:this.onLineMappingChanged(s)&&(t=!0);break;case 9:this.onLinesChanged(s)&&(t=!0);break;case 10:this.onLinesDeleted(s)&&(t=!0);break;case 11:this.onLinesInserted(s)&&(t=!0);break;case 12:this.onRevealRangeRequest(s)&&(t=!0);break;case 13:this.onScrollChanged(s)&&(t=!0);break;case 15:this.onTokensChanged(s)&&(t=!0);break;case 14:this.onThemeChanged(s)&&(t=!0);break;case 16:this.onTokensColorsChanged(s)&&(t=!0);break;case 17:this.onZonesChanged(s)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(s)}}t&&(this._shouldRender=!0)}}class _s extends jv{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class Ll{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return t===null?0:parseInt(t,10)}static collect(e,t){const i=[];let r=0;for(;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[r++]=this.read(e)),e=e.parentElement;const s=new Uint8Array(r);for(let o=0;o<r;o++)s[o]=i[r-o-1];return s}}class gqe{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class mqe extends gqe{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class pqe{constructor(e,t,i,r){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=r}}class Mx{static from(e){const t=new Array(e.length);for(let i=0,r=e.length;i<r;i++){const s=e[i];t[i]=new Mx(s.left,s.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class Qh{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class _qe{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class oZ{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}class Px{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,r,s){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,r),o.getClientRects()}catch{return null}finally{this._detachRange(o,s)}}static _mergeAdjacentRanges(e){if(e.length===1)return e;e.sort(Qh.compare);const t=[];let i=0,r=e[0];for(let s=1,o=e.length;s<o;s++){const a=e[s];r.left+r.width+.9>=a.left?r.width=Math.max(r.width,a.left+a.width-r.left):(t[i++]=r,r=a)}return t[i++]=r,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||e.length===0)return null;const r=[];for(let s=0,o=e.length;s<o;s++){const a=e[s];r[s]=new Qh(Math.max(0,(a.left-t)/i),a.width/i)}return this._mergeAdjacentRanges(r)}static readHorizontalRanges(e,t,i,r,s,o){const l=e.children.length-1;if(0>l)return null;if(t=Math.min(l,Math.max(0,t)),r=Math.min(l,Math.max(0,r)),t===r&&i===s&&i===0&&!e.children[t].firstChild){const h=e.children[t].getClientRects();return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(h,o.clientRectDeltaLeft,o.clientRectScale)}t!==r&&r>0&&s===0&&(r--,s=1073741824);let c=e.children[t].firstChild,u=e.children[r].firstChild;if((!c||!u)&&(!c&&i===0&&t>0&&(c=e.children[t-1].firstChild,i=1073741824),!u&&s===0&&r>0&&(u=e.children[r-1].firstChild,s=1073741824)),!c||!u)return null;i=Math.min(c.textContent.length,Math.max(0,i)),s=Math.min(u.textContent.length,Math.max(0,s));const d=this._readClientRects(c,i,u,s,o.endNode);return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(d,o.clientRectDeltaLeft,o.clientRectScale)}}var uo;(function(n){n.DARK="dark",n.LIGHT="light",n.HIGH_CONTRAST_DARK="hcDark",n.HIGH_CONTRAST_LIGHT="hcLight"})(uo||(uo={}));function np(n){return n===uo.HIGH_CONTRAST_DARK||n===uo.HIGH_CONTRAST_LIGHT}function Rx(n){return n===uo.DARK||n===uo.HIGH_CONTRAST_DARK}const vqe=function(){return V_?!0:!(Lr||$o||xc)}();let ip=!0;class aZ{constructor(e,t){this.themeType=t;const i=e.options,r=i.get(49);i.get(37)==="off"?this.renderWhitespace=i.get(97):this.renderWhitespace="none",this.renderControlCharacters=i.get(92),this.spaceWidth=r.spaceWidth,this.middotWidth=r.middotWidth,this.wsmiddotWidth=r.wsmiddotWidth,this.useMonospaceOptimizations=r.isMonospace&&!i.get(32),this.canUseHalfwidthRightwardsArrow=r.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(65),this.stopRenderingLineAfter=i.get(115),this.fontLigatures=i.get(50)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class kl{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=bt(e);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return np(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(e,t,i,r){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const s=i.getViewLineRenderingData(e),o=this._options,a=Fs.filter(s.inlineDecorations,e,s.minColumn,s.maxColumn);let l=null;if(np(o.themeType)||this._options.renderWhitespace==="selection"){const h=i.selections;for(const f of h){if(f.endLineNumber<e||f.startLineNumber>e)continue;const g=f.startLineNumber===e?f.startColumn:s.minColumn,m=f.endLineNumber===e?f.endColumn:s.maxColumn;g<m&&(np(o.themeType)&&a.push(new Fs(g,m,"inline-selected-text",0)),this._options.renderWhitespace==="selection"&&(l||(l=[]),l.push(new IG(g-1,m-1))))}}const c=new ed(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,s.minColumn-1,s.tokens,a,s.tabSize,s.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==cs.OFF,l);if(this._renderedViewLine&&this._renderedViewLine.input.equals(c))return!1;r.appendString('<div style="top:'),r.appendString(String(t)),r.appendString("px;height:"),r.appendString(String(this._options.lineHeight)),r.appendString('px;" class="'),r.appendString(kl.CLASS_NAME),r.appendString('">');const u=ax(c,r);r.appendString("</div>");let d=null;return ip&&vqe&&s.isBasicASCII&&o.useMonospaceOptimizations&&u.containsForeignElements===0&&(d=new Fx(this._renderedViewLine?this._renderedViewLine.domNode:null,c,u.characterMapping)),d||(d=cZ(this._renderedViewLine?this._renderedViewLine.domNode:null,c,u.characterMapping,u.containsRTL,u.containsForeignElements)),this._renderedViewLine=d,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof Fx:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof Fx?this._renderedViewLine.monospaceAssumptionsAreValid():ip}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof Fx&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,r){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const s=this._renderedViewLine.input.stopRenderingLineAfter;if(s!==-1&&t>s+1&&i>s+1)return new oZ(!0,[new Qh(this.getWidth(r),0)]);s!==-1&&t>s+1&&(t=s+1),s!==-1&&i>s+1&&(i=s+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,i,r);return o&&o.length>0?new oZ(!1,o):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}kl.CLASS_NAME="view-line";class Fx{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const r=Math.floor(t.lineContent.length/300);if(r>0){this._keyColumnPixelOffsetCache=new Float32Array(r);for(let s=0;s<r;s++)this._keyColumnPixelOffsetCache[s]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const t=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*t)}return this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e==null||e.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||this._cachedWidth!==-1}monospaceAssumptionsAreValid(){if(!this.domNode)return ip;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),ip=!1)}return ip}toSlowRenderedLine(){return cZ(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,r){const s=this._getColumnPixelOffset(e,t,r),o=this._getColumnPixelOffset(e,i,r);return[new Qh(s,o-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){const c=this._characterMapping.getHorizontalOffset(t);return this._charWidth*c}const r=Math.floor((t-1)/300)-1,s=(r+1)*300+1;let o=-1;if(this._keyColumnPixelOffsetCache&&(o=this._keyColumnPixelOffsetCache[r],o===-1&&(o=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[r]=o)),o===-1){const c=this._characterMapping.getHorizontalOffset(t);return this._charWidth*c}const a=this._characterMapping.getHorizontalOffset(s),l=this._characterMapping.getHorizontalOffset(t);return o+this._charWidth*(l-a)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const r=this._characterMapping.getDomPosition(t),s=Px.readHorizontalRanges(this._getReadingTarget(this.domNode),r.partIndex,r.charIndex,r.partIndex,r.charIndex,i);return!s||s.length===0?-1:s[0].left}getColumnOfNodeOffset(e,t,i){const r=t.textContent.length;let s=-1;for(;t;)t=t.previousSibling,s++;return this._characterMapping.getColumn(new lN(s,i),r)}}class lZ{constructor(e,t,i,r,s){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=s,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let o=0,a=this._characterMapping.length;o<=a;o++)this._pixelOffsetCache[o]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e==null||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(e,t,i,r){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const s=this._readPixelOffset(this.domNode,e,t,r);if(s===-1)return null;const o=this._readPixelOffset(this.domNode,e,i,r);return o===-1?null:[new Qh(s,o-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,r)}_readVisibleRangesForRange(e,t,i,r,s){if(i===r){const o=this._readPixelOffset(e,t,i,s);return o===-1?null:[new Qh(o,0)]}else return this._readRawVisibleRangesForRange(e,i,r,s)}_readPixelOffset(e,t,i,r){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth(r);const s=this._getReadingTarget(e);return s.firstChild?(r.markDidDomLayout(),s.firstChild.offsetWidth):0}if(this._pixelOffsetCache!==null){const s=this._pixelOffsetCache[i];if(s!==-1)return s;const o=this._actualReadPixelOffset(e,t,i,r);return this._pixelOffsetCache[i]=o,o}return this._actualReadPixelOffset(e,t,i,r)}_actualReadPixelOffset(e,t,i,r){if(this._characterMapping.length===0){const l=Px.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,r);return!l||l.length===0?-1:l[0].left}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth(r);const s=this._characterMapping.getDomPosition(i),o=Px.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,r);if(!o||o.length===0)return-1;const a=o[0].left;if(this.input.isBasicASCII){const l=this._characterMapping.getHorizontalOffset(i),c=Math.round(this.input.spaceWidth*l);if(Math.abs(c-a)<=1)return c}return a}_readRawVisibleRangesForRange(e,t,i,r){if(t===1&&i===this._characterMapping.length)return[new Qh(0,this.getWidth(r))];const s=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(i);return Px.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,o.partIndex,o.charIndex,r)}getColumnOfNodeOffset(e,t,i){const r=t.textContent.length;let s=-1;for(;t;)t=t.previousSibling,s++;return this._characterMapping.getColumn(new lN(s,i),r)}}class bqe extends lZ{_readVisibleRangesForRange(e,t,i,r,s){const o=super._readVisibleRangesForRange(e,t,i,r,s);if(!o||o.length===0||i===r||i===1&&r===this._characterMapping.length)return o;if(!this.input.containsRTL){const a=this._readPixelOffset(e,t,r,s);if(a!==-1){const l=o[o.length-1];l.left<a&&(l.width=a-l.left)}}return o}}const cZ=function(){return Ih?yqe:Cqe}();function yqe(n,e,t,i,r){return new bqe(n,e,t,i,r)}function Cqe(n,e,t,i,r){return new lZ(n,e,t,i,r)}class ui{static _nextVisibleColumn(e,t,i){return e===9?ui.nextRenderTabStop(t,i):ju(e)||_O(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const r=Math.min(t-1,e.length),s=e.substring(0,r),o=new ES(s);let a=0;for(;!o.eol();){const l=DS(s,r,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(l,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const r=e.length,s=new ES(e);let o=0,a=1;for(;!s.eol();){const l=DS(e,r,s.offset);s.nextGraphemeLength();const c=this._nextVisibleColumn(l,o,i),u=s.offset+1;if(c>=t){const d=t-o;return c-t<d?u:a}o=c,a=u}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}class zv{static whitespaceVisibleColumn(e,t,i){const r=e.length;let s=0,o=-1,a=-1;for(let l=0;l<r;l++){if(l===t)return[o,a,s];switch(s%i===0&&(o=l,a=s),e.charCodeAt(l)){case 32:s+=1;break;case 9:s=ui.nextRenderTabStop(s,i);break;default:return[-1,-1,-1]}}return t===r?[o,a,s]:[-1,-1,-1]}static atomicPosition(e,t,i,r){const s=e.length,[o,a,l]=zv.whitespaceVisibleColumn(e,t,i);if(l===-1)return-1;let c;switch(r){case 0:c=!0;break;case 1:c=!1;break;case 2:if(l%i===0)return t;c=l%i<=i/2;break}if(c){if(o===-1)return-1;let h=a;for(let f=o;f<s;++f){if(h===a+i)return o;switch(e.charCodeAt(f)){case 32:h+=1;break;case 9:h=ui.nextRenderTabStop(h,i);break;default:return-1}}return h===a+i?o:-1}const u=ui.nextRenderTabStop(l,i);let d=l;for(let h=t;h<s;h++){if(d===u)return h;switch(e.charCodeAt(h)){case 32:d+=1;break;case 9:d=ui.nextRenderTabStop(d,i);break;default:return-1}}return d===u?s:-1}}class _d{constructor(e=null){this.hitTarget=e,this.type=0}}class uZ{constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}var Jh;(function(n){function e(t,i,r){const s=t.getPositionFromDOMInfo(i,r);return s?new uZ(s,i,null):new _d(i)}n.createFromDOMInfo=e})(Jh||(Jh={}));class wqe{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class gr{static _deduceRage(e,t=null){return!t&&e?new G(e.lineNumber,e.column,e.lineNumber,e.column):t??null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,r,s,o){return{type:e,element:t,mouseColumn:i,position:r,range:s,detail:o}}static createViewZone(e,t,i,r,s){return{type:e,element:t,mouseColumn:i,position:r,range:this._deduceRage(r),detail:s}}static createContentText(e,t,i,r,s){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,r),detail:s}}static createContentEmpty(e,t,i,r){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:r}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,r){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:r}}static _typeToString(e){return e===1?"TEXTAREA":e===2?"GUTTER_GLYPH_MARGIN":e===3?"GUTTER_LINE_NUMBERS":e===4?"GUTTER_LINE_DECORATIONS":e===5?"GUTTER_VIEW_ZONE":e===6?"CONTENT_TEXT":e===7?"CONTENT_EMPTY":e===8?"CONTENT_VIEW_ZONE":e===9?"CONTENT_WIDGET":e===10?"OVERVIEW_RULER":e===11?"SCROLLBAR":e===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class Yo{static isTextArea(e){return e.length===2&&e[0]===3&&e[1]===6}static isChildOfViewLines(e){return e.length>=4&&e[0]===3&&e[3]===7}static isStrictChildOfViewLines(e){return e.length>4&&e[0]===3&&e[3]===7}static isChildOfScrollableElement(e){return e.length>=2&&e[0]===3&&e[1]===5}static isChildOfMinimap(e){return e.length>=2&&e[0]===3&&e[1]===8}static isChildOfContentWidgets(e){return e.length>=4&&e[0]===3&&e[3]===1}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&e[0]===2}static isChildOfOverlayWidgets(e){return e.length>=2&&e[0]===3&&e[1]===4}}class rp{constructor(e,t,i){this.viewModel=e.viewModel;const r=e.configuration.options;this.layoutInfo=r.get(142),this.viewDomNode=t.viewDomNode,this.lineHeight=r.get(65),this.stickyTabStops=r.get(114),this.typicalHalfwidthCharacterWidth=r.get(49).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return rp.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const r=i.verticalOffset+i.height/2,s=e.viewModel.getLineCount();let o=null,a,l=null;return i.afterLineNumber!==s&&(l=new de(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(o=new de(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),l===null?a=o:o===null?a=l:t<r?a=o:a=l,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:o,positionAfter:l,position:a}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const r=this._context.viewModel.getLineCount(),s=this._context.viewModel.getLineMaxColumn(r);return{range:new G(r,s,r,s),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new G(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return rp._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class Sqe{constructor(e,t,i,r){this.editorPos=t,this.pos=i,this.relativePos=r,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Fi._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class jN extends Sqe{constructor(e,t,i,r,s){super(e,t,i,r),this._ctx=e,s?(this.target=s,this.targetPath=Ll.collect(s,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}
|
427
427
|
target: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?ui.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return gr.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return gr.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,r){return gr.createMargin(e,this.target,this._getMouseColumn(t),t,i,r)}fulfillViewZone(e,t,i){return gr.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return gr.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return gr.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return gr.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return gr.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return gr.createOverlayWidget(this.target,this._getMouseColumn(),e)}withTarget(e){return new jN(this._ctx,this.editorPos,this.pos,this.relativePos,e)}}const dZ={isAfterLines:!0};function zN(n){return{isAfterLines:!1,horizontalDistanceToText:n}}class Fi{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=Ll.collect(t,this._viewHelper.viewDomNode);return!!(Yo.isChildOfContentWidgets(i)||Yo.isChildOfOverflowingContentWidgets(i)||Yo.isChildOfOverlayWidgets(i))}createMouseTarget(e,t,i,r,s){const o=new rp(this._context,this._viewHelper,e),a=new jN(o,t,i,r,s);try{const l=Fi._createMouseTarget(o,a,!1);if(l.type===6&&o.stickyTabStops&&l.position!==null){const c=Fi._snapToSoftTabBoundary(l.position,o.viewModel),u=G.fromPositions(c,c).plusRange(l.range);return a.fulfillContentText(c,u,l.detail)}return l}catch{return a.fulfillUnknown()}}static _createMouseTarget(e,t,i){if(t.target===null){if(i)return t.fulfillUnknown();const o=Fi._doHitTest(e,t);return o.type===1?Fi.createMouseTargetFromHitTestPosition(e,t,o.spanNode,o.position,o.injectedText):this._createMouseTarget(e,t.withTarget(o.hitTarget),!0)}const r=t;let s=null;return s=s||Fi._hitTestContentWidget(e,r),s=s||Fi._hitTestOverlayWidget(e,r),s=s||Fi._hitTestMinimap(e,r),s=s||Fi._hitTestScrollbarSlider(e,r),s=s||Fi._hitTestViewZone(e,r),s=s||Fi._hitTestMargin(e,r),s=s||Fi._hitTestViewCursor(e,r),s=s||Fi._hitTestTextArea(e,r),s=s||Fi._hitTestViewLines(e,r,i),s=s||Fi._hitTestScrollbar(e,r),s||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(Yo.isChildOfContentWidgets(t.targetPath)||Yo.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(Yo.isChildOfOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const r of i)if(t.target===r.domNode)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,r=t.mouseContentHorizontalOffset,s=t.mouseVerticalOffset;for(const o of i){if(r<o.contentLeft||r>o.contentLeft+o.width)continue;const a=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(a<=s&&s<=a+o.height)return t.fulfillContentText(o.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const r=t.isInContentArea?8:5;return t.fulfillViewZone(r,i.position,i)}return null}static _hitTestTextArea(e,t){return Yo.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),r=i.range.getStartPosition();let s=Math.abs(t.relativePos.x);const o={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:s};return s-=e.layoutInfo.glyphMarginLeft,s<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,r,i.range,o):(s-=e.layoutInfo.glyphMarginWidth,s<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,r,i.range,o):(s-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,r,i.range,o)))}return null}static _hitTestViewLines(e,t,i){if(!Yo.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new de(1,1),dZ);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const s=e.viewModel.getLineCount(),o=e.viewModel.getLineMaxColumn(s);return t.fulfillContentEmpty(new de(s,o),dZ)}if(i){if(Yo.isStrictChildOfViewLines(t.targetPath)){const s=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.viewModel.getLineLength(s)===0){const a=e.getLineWidth(s),l=zN(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(new de(s,1),l)}const o=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>=o){const a=zN(t.mouseContentHorizontalOffset-o),l=new de(s,e.viewModel.getLineMaxColumn(s));return t.fulfillContentEmpty(l,a)}}return t.fulfillUnknown()}const r=Fi._doHitTest(e,t);return r.type===1?Fi.createMouseTargetFromHitTestPosition(e,t,r.spanNode,r.position,r.injectedText):this._createMouseTarget(e,t.withTarget(r.hitTarget),!0)}static _hitTestMinimap(e,t){if(Yo.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new de(i,r))}return null}static _hitTestScrollbarSlider(e,t){if(Yo.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(r);return t.fulfillScrollbar(new de(r,s))}}return null}static _hitTestScrollbar(e,t){if(Yo.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new de(i,r))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(142),r=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return Fi._getMouseColumn(r,t.get(49).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,r,s){const o=r.lineNumber,a=r.column,l=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>l){const v=zN(t.mouseContentHorizontalOffset-l);return t.fulfillContentEmpty(r,v)}const c=e.visibleRangeForPosition(o,a);if(!c)return t.fulfillUnknown(r);const u=c.left;if(Math.abs(t.mouseContentHorizontalOffset-u)<1)return t.fulfillContentText(r,null,{mightBeForeignElement:!!s,injectedText:s});const d=[];if(d.push({offset:c.left,column:a}),a>1){const v=e.visibleRangeForPosition(o,a-1);v&&d.push({offset:v.left,column:a-1})}const h=e.viewModel.getLineMaxColumn(o);if(a<h){const v=e.visibleRangeForPosition(o,a+1);v&&d.push({offset:v.left,column:a+1})}d.sort((v,_)=>v.offset-_.offset);const f=t.pos.toClientCoordinates(),g=i.getBoundingClientRect(),m=g.left<=f.clientX&&f.clientX<=g.right;let p=null;for(let v=1;v<d.length;v++){const _=d[v-1],b=d[v];if(_.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=b.offset){p=new G(o,_.column,o,b.column);const y=Math.abs(_.offset-t.mouseContentHorizontalOffset),w=Math.abs(b.offset-t.mouseContentHorizontalOffset);r=y<w?new de(o,_.column):new de(o,b.column);break}}return t.fulfillContentText(r,p,{mightBeForeignElement:!m||!!s,injectedText:s})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.getVerticalOffsetForLineNumber(i),s=r+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>s)){const a=Math.floor((r+s)/2);let l=t.pos.y+(a-t.mouseVerticalOffset);l<=t.editorPos.y&&(l=t.editorPos.y+1),l>=t.editorPos.y+t.editorPos.height&&(l=t.editorPos.y+t.editorPos.height-1);const c=new Nx(t.pos.x,l),u=this._actualDoHitTestWithCaretRangeFromPoint(e,c.toClientCoordinates());if(u.type===1)return u}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=zm(e.viewDomNode);let r;if(i?typeof i.caretRangeFromPoint>"u"?r=xqe(i,t.clientX,t.clientY):r=i.caretRangeFromPoint(t.clientX,t.clientY):r=document.caretRangeFromPoint(t.clientX,t.clientY),!r||!r.startContainer)return new _d;const s=r.startContainer;if(s.nodeType===s.TEXT_NODE){const o=s.parentNode,a=o?o.parentNode:null,l=a?a.parentNode:null;return(l&&l.nodeType===l.ELEMENT_NODE?l.className:null)===kl.CLASS_NAME?Jh.createFromDOMInfo(e,o,r.startOffset):new _d(s.parentNode)}else if(s.nodeType===s.ELEMENT_NODE){const o=s.parentNode,a=o?o.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===kl.CLASS_NAME?Jh.createFromDOMInfo(e,s,s.textContent.length):new _d(s)}return new _d}static _doHitTestWithCaretPositionFromPoint(e,t){const i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const r=i.offsetNode.parentNode,s=r?r.parentNode:null,o=s?s.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===kl.CLASS_NAME?Jh.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new _d(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const r=i.offsetNode.parentNode,s=r&&r.nodeType===r.ELEMENT_NODE?r.className:null,o=r?r.parentNode:null,a=o&&o.nodeType===o.ELEMENT_NODE?o.className:null;if(s===kl.CLASS_NAME){const l=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(l)return Jh.createFromDOMInfo(e,l,0)}else if(a===kl.CLASS_NAME)return Jh.createFromDOMInfo(e,i.offsetNode,0)}return new _d(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:r}=t.model.getOptions(),s=zv.atomicPosition(i,e.column-1,r,2);return s!==-1?new de(e.lineNumber,s+1):e}static _doHitTest(e,t){let i=new _d;if(typeof document.caretRangeFromPoint=="function"?i=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),i.type===1){const r=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);(r||!s.equals(i.position))&&(i=new uZ(s,i.spanNode,r))}return i}}function xqe(n,e,t){const i=document.createRange();let r=n.elementFromPoint(e,t);if(r!==null){for(;r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE&&r.lastChild&&r.lastChild.firstChild;)r=r.lastChild;const s=r.getBoundingClientRect(),o=window.getComputedStyle(r,null).getPropertyValue("font-style"),a=window.getComputedStyle(r,null).getPropertyValue("font-variant"),l=window.getComputedStyle(r,null).getPropertyValue("font-weight"),c=window.getComputedStyle(r,null).getPropertyValue("font-size"),u=window.getComputedStyle(r,null).getPropertyValue("line-height"),d=window.getComputedStyle(r,null).getPropertyValue("font-family"),h=`${o} ${a} ${l} ${c}/${u} ${d}`,f=r.innerText;let g=s.left,m=0,p;if(e>s.left+s.width)m=f.length;else{const v=ef.getInstance();for(let _=0;_<f.length+1;_++){if(p=v.getCharWidth(f.charAt(_),h)/2,g+=p,e<g){m=_;break}g+=p}}i.setStart(r.firstChild,m),i.setEnd(r.firstChild,m)}return i}class ef{static getInstance(){return ef._INSTANCE||(ef._INSTANCE=new ef),ef._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const r=this._canvas.getContext("2d");r.font=t;const o=r.measureText(e).width;return this._cache[i]=o,o}}ef._INSTANCE=null;let tf=class extends Le{onclick(e,t){this._register(ye(e,Ae.CLICK,i=>t(new Ta(i))))}onmousedown(e,t){this._register(ye(e,Ae.MOUSE_DOWN,i=>t(new Ta(i))))}onmouseover(e,t){this._register(ye(e,Ae.MOUSE_OVER,i=>t(new Ta(i))))}onmouseleave(e,t){this._register(ye(e,Ae.MOUSE_LEAVE,i=>t(new Ta(i))))}onkeydown(e,t){this._register(ye(e,Ae.KEY_DOWN,i=>t(new on(i))))}onkeyup(e,t){this._register(ye(e,Ae.KEY_UP,i=>t(new on(i))))}oninput(e,t){this._register(ye(e,Ae.INPUT,t))}onblur(e,t){this._register(ye(e,Ae.BLUR,t))}onfocus(e,t){this._register(ye(e,Ae.FOCUS,t))}ignoreGesture(e){return an.ignoreTarget(e)}};const sp=11;class Lqe extends tf{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...gt.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width=sp+"px",this.domNode.style.height=sp+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new Sx),this._register(li(this.bgDomNode,Ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(li(this.domNode,Ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new dv),this._pointerdownScheduleRepeatTimer=this._register(new Wh)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class kqe extends Le{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Wh)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)===null||t===void 0||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}const Dqe=140;class hZ extends tf{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new kqe(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new Sx),this._shouldRender=!0,this.domNode=bt(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(ye(this.domNode.domNode,Ae.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new Lqe(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,r){this.slider=bt(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof r=="number"&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(ye(this.slider.domNode,Ae.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=r?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{const s=Bs(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const r=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,s=>{const o=this._sliderOrthogonalPointerPosition(s),a=Math.abs(o-i);if(os&&a>Dqe){this._setDesiredScrollPositionNow(r.getScrollPosition());return}const c=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(c))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const Eqe=20;class op{constructor(e,t,i,r,s,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=r,this._scrollSize=s,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new op(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,r,s){const o=Math.max(0,i-e),a=Math.max(0,o-2*t),l=r>0&&r>i;if(!l)return{computedAvailableSize:Math.round(o),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(Eqe,Math.floor(i*a/r))),u=(a-c)/(r-i),d=s*u;return{computedAvailableSize:Math.round(o),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=op._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}class Tqe extends hZ{constructor(e,t,i){const r=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new op(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,r.width,r.scrollWidth,s.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const o=(t.arrowSize-sp)/2,a=(t.horizontalScrollbarSize-sp)/2;this._createArrow({className:"scra",icon:Ne.scrollbarButtonLeft,top:a,left:o,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new zh(null,1,0))}),this._createArrow({className:"scra",icon:Ne.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:o,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new zh(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class Iqe extends hZ{constructor(e,t,i){const r=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new op(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,r.height,r.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const o=(t.arrowSize-sp)/2,a=(t.verticalScrollbarSize-sp)/2;this._createArrow({className:"scra",icon:Ne.scrollbarButtonUp,top:o,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new zh(null,0,1))}),this._createArrow({className:"scra",icon:Ne.scrollbarButtonDown,top:void 0,left:a,bottom:o,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new zh(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Bx{constructor(e,t,i,r,s,o,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,r=r|0,s=s|0,o=o|0,a=a|0),this.rawScrollLeft=r,this.rawScrollTop=a,t<0&&(t=0),r+t>i&&(r=i-t),r<0&&(r=0),s<0&&(s=0),a+s>o&&(a=o-s),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=r,this.height=s,this.scrollHeight=o,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new Bx(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Bx(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,r=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:r,scrollLeftChanged:s,heightChanged:o,scrollHeightChanged:a,scrollTopChanged:l}}}class Uv extends Le{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new ne),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Bx(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const r=this._state.withScrollDimensions(e,t);this._setState(r,!!this._smoothScrolling),(i=this._smoothScrolling)===null||i===void 0||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let r;t?r=new qv(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):r=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=r}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=qv.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class fZ{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function UN(n,e){const t=e-n;return function(i){return n+t*Nqe(i)}}function Aqe(n,e,t){return function(i){return i<t?n(i/t):e((i-t)/(1-t))}}class qv{constructor(e,t,i,r){this.from=e,this.to=t,this.duration=r,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let s,o;return e<t?(s=e+.75*i,o=t-.75*i):(s=e-.75*i,o=t+.75*i),Aqe(UN(e,s),UN(o,t),.33)}return UN(e,t)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const i=this.scrollLeft(t),r=this.scrollTop(t);return new fZ(i,r,!1)}return new fZ(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return qv.start(e,t,i)}static start(e,t,i){i=i+10;const r=Date.now()-10;return new qv(e,t,r,i)}}function Oqe(n){return Math.pow(n,3)}function Nqe(n){return 1-Oqe(1-n)}const Zht="",Mqe=500,gZ=50;class Pqe{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class Wx{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let e=1,t=0,i=1,r=this._rear;do{const s=r===this._front?e:Math.pow(2,-i);if(e-=s,t+=this._memory[r].score*s,r===this._front)break;r=(this._capacity+r-1)%this._capacity,i++}while(!0);return t<=.5}acceptStandardWheelEvent(e){const t=window.devicePixelRatio/EVe();os||Lr?this.accept(Date.now(),e.deltaX/t,e.deltaY/t):this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){const r=new Pqe(e,t,i);r.score=this._computeScore(r),this._front===-1&&this._rear===-1?(this._memory[0]=r,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=r)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}Wx.INSTANCE=new Wx;class qN extends tf{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new ne),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new ne),e.style.overflow="hidden",this._options=Fqe(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));const r={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new Iqe(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new Tqe(this._scrollable,this._options,r)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=bt(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=bt(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=bt(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new Wh),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=jn(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,It&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new zh(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=jn(this._mouseWheelToDispose),e)){const i=r=>{this._onMouseWheel(new zh(r))};this._mouseWheelToDispose.push(ye(this._listenOnDomNode,Ae.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){var t;if(!((t=e.browserEvent)===null||t===void 0)&&t.defaultPrevented)return;const i=Wx.INSTANCE;i.acceptStandardWheelEvent(e);let r=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,a=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(o)>=Math.abs(a)?a=0:o=0),this._options.flipAxes&&([o,a]=[a,o]);const l=!It&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||l)&&!a&&(a=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);const c=this._scrollable.getFutureScrollPosition();let u={};if(o){const d=gZ*o,h=c.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(u,h)}if(a){const d=gZ*a,h=c.scrollLeft-(d<0?Math.floor(d):Math.ceil(d));this._horizontalScrollbar.writeScrollPosition(u,h)}u=this._scrollable.validateScrollPosition(u),(c.scrollLeft!==u.scrollLeft||c.scrollTop!==u.scrollTop)&&(this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u),r=!0)}let s=r;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,r=i?" left":"",s=t?" top":"",o=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${o}${s}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),Mqe)}}class Rqe extends qN{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Uv({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:r=>ro(r)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class KN extends qN{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class GN extends qN{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new Uv({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:r=>ro(r)});super(e,t,i),this._register(i),this._element=e,this.onScroll(r=>{r.scrollTopChanged&&(this._element.scrollTop=r.scrollTop),r.scrollLeftChanged&&(this._element.scrollLeft=r.scrollLeft)}),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function Fqe(n){const e={lazyRender:typeof n.lazyRender<"u"?n.lazyRender:!1,className:typeof n.className<"u"?n.className:"",useShadows:typeof n.useShadows<"u"?n.useShadows:!0,handleMouseWheel:typeof n.handleMouseWheel<"u"?n.handleMouseWheel:!0,flipAxes:typeof n.flipAxes<"u"?n.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof n.consumeMouseWheelIfScrollbarIsNeeded<"u"?n.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof n.alwaysConsumeMouseWheel<"u"?n.alwaysConsumeMouseWheel:!1,scrollYToX:typeof n.scrollYToX<"u"?n.scrollYToX:!1,mouseWheelScrollSensitivity:typeof n.mouseWheelScrollSensitivity<"u"?n.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof n.fastScrollSensitivity<"u"?n.fastScrollSensitivity:5,scrollPredominantAxis:typeof n.scrollPredominantAxis<"u"?n.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof n.mouseWheelSmoothScroll<"u"?n.mouseWheelSmoothScroll:!0,arrowSize:typeof n.arrowSize<"u"?n.arrowSize:11,listenOnDomNode:typeof n.listenOnDomNode<"u"?n.listenOnDomNode:null,horizontal:typeof n.horizontal<"u"?n.horizontal:1,horizontalScrollbarSize:typeof n.horizontalScrollbarSize<"u"?n.horizontalScrollbarSize:10,horizontalSliderSize:typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:0,horizontalHasArrows:typeof n.horizontalHasArrows<"u"?n.horizontalHasArrows:!1,vertical:typeof n.vertical<"u"?n.vertical:1,verticalScrollbarSize:typeof n.verticalScrollbarSize<"u"?n.verticalScrollbarSize:10,verticalHasArrows:typeof n.verticalHasArrows<"u"?n.verticalHasArrows:!1,verticalSliderSize:typeof n.verticalSliderSize<"u"?n.verticalSliderSize:0,scrollByPage:typeof n.scrollByPage<"u"?n.scrollByPage:!1};return e.horizontalSliderSize=typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof n.verticalSliderSize<"u"?n.verticalSliderSize:e.verticalScrollbarSize,It&&(e.className+=" mac"),e}class YN extends jv{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new Fi(this._context,i),this._mouseDownOperation=this._register(new Bqe(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,(o,a)=>this._createMouseTarget(o,a),o=>this._getMouseColumn(o))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(142).height;const r=new dqe(this.viewHelper.viewDomNode);this._register(r.onContextMenu(this.viewHelper.viewDomNode,o=>this._onContextMenu(o,!0))),this._register(r.onMouseMove(this.viewHelper.viewDomNode,o=>{this._onMouseMove(o),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=ye(document,"mousemove",a=>{this.viewHelper.viewDomNode.contains(a.target)||this._onMouseLeave(new pd(a,!1,this.viewHelper.viewDomNode))}))})),this._register(r.onMouseUp(this.viewHelper.viewDomNode,o=>this._onMouseUp(o))),this._register(r.onMouseLeave(this.viewHelper.viewDomNode,o=>this._onMouseLeave(o)));let s=0;this._register(r.onPointerDown(this.viewHelper.viewDomNode,(o,a)=>{s=a})),this._register(ye(this.viewHelper.viewDomNode,Ae.POINTER_UP,o=>{this._mouseDownOperation.onPointerUp()})),this._register(r.onMouseDown(this.viewHelper.viewDomNode,o=>this._onMouseDown(o,s))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=Wx.INSTANCE;let t=0,i=qu.getZoomLevel(),r=!1,s=0;const o=l=>{if(this.viewController.emitMouseWheel(l),!this._context.configuration.options.get(74))return;const c=new zh(l);if(e.acceptStandardWheelEvent(c),e.isPhysicalMouseWheel()){if(a(l)){const u=qu.getZoomLevel(),d=c.deltaY>0?1:-1;qu.setZoomLevel(u+d),c.preventDefault(),c.stopPropagation()}}else Date.now()-t>50&&(i=qu.getZoomLevel(),r=a(l),s=0),t=Date.now(),s+=c.deltaY,r&&(qu.setZoomLevel(i+s/5),c.preventDefault(),c.stopPropagation())};this._register(ye(this.viewHelper.viewDomNode,Ae.MOUSE_WHEEL,o,{capture:!0,passive:!1}));function a(l){return It?(l.metaKey||l.ctrlKey)&&!l.shiftKey&&!l.altKey:l.ctrlKey&&!l.metaKey&&!l.shiftKey&&!l.altKey}}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(142)){const t=this._context.configuration.options.get(142).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const r=new sZ(e,t).toPageCoordinates(),s=$N(this.viewHelper.viewDomNode);if(r.y<s.y||r.y>s.y+s.height||r.x<s.x||r.x>s.x+s.width)return null;const o=HN(this.viewHelper.viewDomNode,s,r);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,r,o,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const r=zm(this.viewHelper.viewDomNode);r&&(i=r.elementsFromPoint(e.posx,e.posy).find(s=>this.viewHelper.viewDomNode.contains(s)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),!(this._mouseDownOperation.isActive()||e.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),r=i.type===6||i.type===7,s=i.type===2||i.type===3||i.type===4,o=i.type===3,a=this._context.configuration.options.get(107),l=i.type===8||i.type===5,c=i.type===9;let u=e.leftButton||e.middleButton;It&&e.leftButton&&e.ctrlKey&&(u=!1);const d=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(u&&(r||o&&a))d(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(l){const h=i.detail;u&&this.viewHelper.shouldSuppressMouseDownOnViewZone(h.viewZoneId)&&(d(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else c&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(d(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class Bqe extends Le{constructor(e,t,i,r,s,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=r,this._createMouseTarget=s,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new fqe(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new Wqe(this._context,this._viewHelper,this._mouseTargetFactory,(a,l,c)=>this._dispatchMouse(a,l,c))),this._mouseState=new Vx,this._currentSelection=new hn(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):t.type===13&&(t.outsidePosition==="above"||t.outsidePosition==="below")?this._topBottomDragScrolling.start(t,e):(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const r=this._findMousePosition(t,!0);if(!r||!r.position)return;this._mouseState.trySetCount(t.detail,r.position),t.detail=this._mouseState.count;const s=this._context.configuration.options;if(!s.get(89)&&s.get(34)&&!s.get(21)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&r.type===6&&r.position&&this._currentSelection.containsPosition(r.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,o=>this._onMouseDownThenMove(o),o=>{const a=this._findMousePosition(this._lastMouseEvent,!1);o&&o instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:a?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(r,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,o=>this._onMouseDownThenMove(o),()=>this._stop()))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,r=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posy<t.y){const a=t.y-e.posy,l=Math.max(r.getCurrentScrollTop()-a,0),c=rp.getZoneAtCoord(this._context,l);if(c){const d=this._helpPositionJumpOverViewZone(c);if(d)return gr.createOutsideEditor(s,d,"above",a)}const u=r.getLineNumberAtVerticalOffset(l);return gr.createOutsideEditor(s,new de(u,1),"above",a)}if(e.posy>t.y+t.height){const a=e.posy-t.y-t.height,l=r.getCurrentScrollTop()+e.relativePos.y,c=rp.getZoneAtCoord(this._context,l);if(c){const d=this._helpPositionJumpOverViewZone(c);if(d)return gr.createOutsideEditor(s,d,"below",a)}const u=r.getLineNumberAtVerticalOffset(l);return gr.createOutsideEditor(s,new de(u,i.getLineMaxColumn(u)),"below",a)}const o=r.getLineNumberAtVerticalOffset(r.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const a=t.x-e.posx;return gr.createOutsideEditor(s,new de(o,1),"left",a)}if(e.posx>t.x+t.width){const a=e.posx-t.x-t.width;return gr.createOutsideEditor(s,new de(o,i.getLineMaxColumn(o)),"right",a)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const r=this._createMouseTarget(e,t);if(!r.position)return null;if(r.type===8||r.type===5){const o=this._helpPositionJumpOverViewZone(r.detail);if(o)return gr.createViewZone(r.type,r.element,r.mouseColumn,o,r.detail)}return r}_helpPositionJumpOverViewZone(e){const t=new de(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,r=e.positionAfter;return i&&r?i.isBefore(t)?i:r:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:e.type===6&&e.detail.injectedText!==null})}}class Wqe extends Le{constructor(e,t,i,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=r,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Vqe(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Vqe extends Le{constructor(e,t,i,r,s,o){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=r,this._position=s,this._mouseEvent=o,this._lastTime=Date.now(),this._animationFrameDisposable=ro(()=>this._execute())}dispose(){this._animationFrameDisposable.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(65),t=this._context.configuration.options.get(142).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(65),t=this._getScrollSpeed(),i=this._tick(),r=t*(i/1e3)*e,s=this._position.outsidePosition==="above"?-r:r;this._context.viewModel.viewLayout.deltaScrollNow(0,s),this._viewHelper.renderNow();const o=this._context.viewLayout.getLinesViewportData(),a=this._position.outsidePosition==="above"?o.startLineNumber:o.endLineNumber;let l;{const c=$N(this._viewHelper.viewDomNode),u=this._context.configuration.options.get(142).horizontalScrollbarHeight,d=new Nx(this._mouseEvent.pos.x,c.y+c.height-u-.1),h=HN(this._viewHelper.viewDomNode,c,d);l=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),c,d,h,null)}(!l.position||l.position.lineNumber!==a)&&(this._position.outsidePosition==="above"?l=gr.createOutsideEditor(this._position.mouseColumn,new de(a,1),"above",this._position.outsideDistance):l=gr.createOutsideEditor(this._position.mouseColumn,new de(a,this._context.viewModel.getLineMaxColumn(a)),"below",this._position.outsideDistance)),this._dispatchMouse(l,!0,2),this._animationFrameDisposable=ro(()=>this._execute())}}class Vx{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=new Date().getTime();i-this._lastSetMouseDownCountTime>Vx.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Vx.CLEAR_MOUSE_DOWN_COUNT_TIME=400;class pt{get event(){return this.emitter.event}constructor(e,t,i){const r=s=>this.emitter.fire(s);this.emitter=new ne({onWillAddFirstListener:()=>e.addEventListener(t,r,i),onDidRemoveLastListener:()=>e.removeEventListener(t,r,i)})}dispose(){this.emitter.dispose()}}var vd;(function(n){const e={total:0,min:Number.MAX_VALUE,max:0},t=Object.assign({},e),i=Object.assign({},e),r=Object.assign({},e);let s=0;const o={keydown:0,input:0,render:0};function a(){v(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),o.keydown=1,queueMicrotask(l)}n.onKeyDown=a;function l(){o.keydown===1&&(performance.mark("keydown/end"),o.keydown=2)}function c(){performance.mark("input/start"),o.input=1,p()}n.onBeforeInput=c;function u(){o.input===0&&c(),queueMicrotask(d)}n.onInput=u;function d(){o.input===1&&(performance.mark("input/end"),o.input=2)}function h(){v()}n.onKeyUp=h;function f(){v()}n.onSelectionChange=f;function g(){o.keydown===2&&o.input===2&&o.render===0&&(performance.mark("render/start"),o.render=1,queueMicrotask(m),p())}n.onRenderStart=g;function m(){o.render===1&&(performance.mark("render/end"),o.render=2)}function p(){setTimeout(v)}function v(){o.keydown===2&&o.input===2&&o.render===2&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),_("keydown",e),_("input",t),_("render",i),_("inputlatency",r),s++,b())}function _(L,D){const E=performance.getEntriesByName(L)[0].duration;D.total+=E,D.min=Math.min(D.min,E),D.max=Math.max(D.max,E)}function b(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),o.keydown=0,o.input=0,o.render=0}function y(){if(s===0)return;const L={keydown:w(e),input:w(t),render:w(i),total:w(r),sampleCount:s};return k(e),k(t),k(i),k(r),s=0,L}n.getAndClearMeasurements=y;function w(L){return{average:L.total/s,max:L.max,min:L.min}}function k(L){L.total=0,L.min=Number.MAX_VALUE,L.max=0}})(vd||(vd={}));class Di{constructor(e,t,i,r,s){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=r,this.newlineCountBeforeSelection=s}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),r=e.getSelectionStart(),s=e.getSelectionEnd();let o;if(t){const a=i.substring(0,r),l=t.value.substring(0,t.selectionStart);a===l&&(o=t.newlineCountBeforeSelection)}return new Di(i,r,s,null,o)}collapseSelection(){return this.selectionStart===this.value.length?this:new Di(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,r,s,o,a,l,c;if(e<=this.selectionStart){const h=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition((i=(t=this.selection)===null||t===void 0?void 0:t.getStartPosition())!==null&&i!==void 0?i:null,h,-1)}if(e>=this.selectionEnd){const h=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition((s=(r=this.selection)===null||r===void 0?void 0:r.getEndPosition())!==null&&s!==void 0?s:null,h,1)}const u=this.value.substring(this.selectionStart,e);if(u.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition((a=(o=this.selection)===null||o===void 0?void 0:o.getStartPosition())!==null&&a!==void 0?a:null,u,1);const d=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition((c=(l=this.selection)===null||l===void 0?void 0:l.getEndPosition())!==null&&c!==void 0?c:null,d,-1)}_finishDeduceEditorPosition(e,t,i){let r=0,s=-1;for(;(s=t.indexOf(`
|
428
428
|
`,s+1))!==-1;)r++;return[e,i*t.length,r]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const r=Math.min(uO(e.value,t.value),e.selectionStart,t.selectionStart),s=Math.min(dO(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd);e.value.substring(r,e.value.length-s);const o=t.value.substring(r,t.value.length-s),a=e.selectionStart-r,l=e.selectionEnd-r,c=t.selectionStart-r,u=t.selectionEnd-r;if(c===u){const h=e.selectionStart-r;return{text:o,replacePrevCharCnt:h,replaceNextCharCnt:0,positionDelta:0}}const d=l-a;return{text:o,replacePrevCharCnt:d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(uO(e.value,t.value),e.selectionEnd),r=Math.min(dO(e.value,t.value),e.value.length-e.selectionEnd),s=e.value.substring(i,e.value.length-r),o=t.value.substring(i,t.value.length-r);e.selectionStart-i;const a=e.selectionEnd-i;t.selectionStart-i;const l=t.selectionEnd-i;return{text:o,replacePrevCharCnt:a,replaceNextCharCnt:s.length-a,positionDelta:l-o.length}}}Di.EMPTY=new Di("",0,0,null,void 0);class ap{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,r=i+1,s=i+t;return new G(r,1,s+1,1)}static fromEditorSelection(e,t,i,r){const o=ap._getPageOfLine(t.startLineNumber,i),a=ap._getRangeForPage(o,i),l=ap._getPageOfLine(t.endLineNumber,i),c=ap._getRangeForPage(l,i);let u=a.intersectRanges(new G(1,1,t.startLineNumber,t.startColumn));if(r&&e.getValueLengthInRange(u,1)>500){const v=e.modifyPosition(u.getEndPosition(),-500);u=G.fromPositions(v,u.getEndPosition())}const d=e.getValueInRange(u,1),h=e.getLineCount(),f=e.getLineMaxColumn(h);let g=c.intersectRanges(new G(t.endLineNumber,t.endColumn,h,f));if(r&&e.getValueLengthInRange(g,1)>500){const v=e.modifyPosition(g.getStartPosition(),500);g=G.fromPositions(g.getStartPosition(),v)}const m=e.getValueInRange(g,1);let p;if(o===l||o+1===l)p=e.getValueInRange(t,1);else{const v=a.intersectRanges(t),_=c.intersectRanges(t);p=e.getValueInRange(v,1)+String.fromCharCode(8230)+e.getValueInRange(_,1)}return r&&p.length>2*500&&(p=p.substring(0,500)+String.fromCharCode(8230)+p.substring(p.length-500,p.length)),new Di(d+p+m,d.length,d.length+p.length,t,u.endLineNumber-u.startLineNumber)}}var $x;(function(n){n.Tap="-monaco-textarea-synthetic-tap"})($x||($x={}));class Hx{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}Hx.INSTANCE=new Hx;class $qe{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";const t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}class Hqe extends Le{get textAreaState(){return this._textAreaState}constructor(e,t,i,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=r,this._onFocus=this._register(new ne),this.onFocus=this._onFocus.event,this._onBlur=this._register(new ne),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new ne),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new ne),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new ne),this.onCut=this._onCut.event,this._onPaste=this._register(new ne),this.onPaste=this._onPaste.event,this._onType=this._register(new ne),this.onType=this._onType.event,this._onCompositionStart=this._register(new ne),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new ne),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new ne),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new ne),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new Er(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new Er(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=Di.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let s=null;this._register(this._textArea.onKeyDown(o=>{const a=new on(o);(a.keyCode===114||this._currentComposition&&a.keyCode===1)&&a.stopPropagation(),a.equals(9)&&a.preventDefault(),s=a,this._onKeyDown.fire(a)})),this._register(this._textArea.onKeyUp(o=>{const a=new on(o);this._onKeyUp.fire(a)})),this._register(this._textArea.onCompositionStart(o=>{const a=new $qe;if(this._currentComposition){this._currentComposition=a;return}if(this._currentComposition=a,this._OS===2&&s&&s.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===o.data&&(s.code==="ArrowRight"||s.code==="ArrowLeft")){a.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:o.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:o.data});return}this._onCompositionStart.fire({data:o.data})})),this._register(this._textArea.onCompositionUpdate(o=>{const a=this._currentComposition;if(!a)return;if(this._browser.isAndroid){const c=Di.readFromTextArea(this._textArea,this._textAreaState),u=Di.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(u),this._onCompositionUpdate.fire(o);return}const l=a.handleCompositionUpdate(o.data);this._textAreaState=Di.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(l),this._onCompositionUpdate.fire(o)})),this._register(this._textArea.onCompositionEnd(o=>{const a=this._currentComposition;if(!a)return;if(this._currentComposition=null,this._browser.isAndroid){const c=Di.readFromTextArea(this._textArea,this._textAreaState),u=Di.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(u),this._onCompositionEnd.fire();return}const l=a.handleCompositionUpdate(o.data);this._textAreaState=Di.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(l),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(o=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const a=Di.readFromTextArea(this._textArea,this._textAreaState),l=Di.deduceInput(this._textAreaState,a,this._OS===2);l.replacePrevCharCnt===0&&l.text.length===1&&(gi(l.text.charCodeAt(0))||l.text.charCodeAt(0)===127)||(this._textAreaState=a,(l.text!==""||l.replacePrevCharCnt!==0||l.replaceNextCharCnt!==0||l.positionDelta!==0)&&this._onType.fire(l))})),this._register(this._textArea.onCut(o=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(o),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(o=>{this._ensureClipboardGetsEditorSelection(o)})),this._register(this._textArea.onPaste(o=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),o.preventDefault(),!o.clipboardData)return;let[a,l]=mZ.getTextData(o.clipboardData);a&&(l=l||Hx.INSTANCE.get(a),this._onPaste.fire({text:a,metadata:l}))})),this._register(this._textArea.onFocus(()=>{const o=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!o&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return ye(document,"selectionchange",t=>{if(vd.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const i=Date.now(),r=i-e;if(e=i,r<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100||!this._textAreaState.selection)return;const o=this._textArea.getValue();if(this._textAreaState.value!==o)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const c=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(c[0],c[1],c[2]),d=this._textAreaState.deduceEditorPosition(l),h=this._host.deduceModelPosition(d[0],d[1],d[2]),f=new hn(u.lineNumber,u.column,h.lineNumber,h.column);this._onSelectionChangeRequest.fire(f)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent())}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};Hx.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,`
|
@@ -494,55 +494,55 @@ Received: '{1}'.`,e,ml.getLexeme(t)),s=t.offset,o=ml.getLexeme(t);return this._p
|
|
494
494
|
|
495
495
|
`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=`
|
496
496
|
`,this.value+=t,this.value+="\n```\n",this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp(Sc(t),"g");return e.replace(i,(r,s)=>e.charAt(s-1)!=="\\"?`\\${r}`:r)}}function T2(n){return n instanceof E2?!0:n&&typeof n=="object"?typeof n.value=="string"&&(typeof n.isTrusted=="boolean"||typeof n.isTrusted=="object"||n.isTrusted===void 0)&&(typeof n.supportThemeIcons=="boolean"||n.supportThemeIcons===void 0):!1}function cQe(n,e){return n===e?!0:!n||!e?!1:n.value===e.value&&n.isTrusted===e.isTrusted&&n.supportThemeIcons===e.supportThemeIcons&&n.supportHtml===e.supportHtml&&(n.baseUri===e.baseUri||!!n.baseUri&&!!e.baseUri&&CYe(Nt.from(n.baseUri),Nt.from(e.baseUri)))}function uQe(n){return n.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function I2(n){return n.replace(/"/g,""")}function fM(n){return n&&n.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function dQe(n){const e=[],t=n.split("|").map(r=>r.trim());n=t[0];const i=t[1];if(i){const r=/height=(\d+)/.exec(i),s=/width=(\d+)/.exec(i),o=r?r[1]:"",a=s?s[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(o));l&&e.push(`width="${a}"`),c&&e.push(`height="${o}"`)}return{href:n,dimensions:e}}const vft="";class Nb{static capture(e){if(e.getScrollTop()===0||e.hasPendingScrollAnimation())return new Nb(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const r=e.getVisibleRanges();if(r.length>0){t=r[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new Nb(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,r,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=r,this._cursorPosition=s}restore(e){if(!(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const vQ={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:kc.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"};var gM=globalThis&&globalThis.__awaiter||function(n,e,t,i){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function hQe(n,e){rs(e)?n.title=_Q(e):e!=null&&e.markdownNotSupportedFallback?n.title=e.markdownNotSupportedFallback:n.removeAttribute("title")}class fQe{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var r;return gM(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||rs(e)||e instanceof HTMLElement)s=e;else if(!aS(e.markdown))s=(r=e.markdown)!==null&&r!==void 0?r:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(C("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new G_;const o=this._cancellationTokenSource.token;if(s=yield e.markdown(o),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||o.isCancellationRequested)return}this.show(s,t,i)})}show(e,t,i){const r=this._hoverWidget;if(this.hasContent(e)){const s=Object.assign({content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!r},i);this._hoverWidget=this.hoverDelegate.showHover(s,t)}r==null||r.dispose()}hasContent(e){return e?T2(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function bQ(n,e,t,i){let r,s;const o=(d,h)=>{var f;const g=s!==void 0;d&&(s==null||s.dispose(),s=void 0),h&&(r==null||r.dispose(),r=void 0),g&&((f=n.onDidHideHover)===null||f===void 0||f.call(n))},a=(d,h,f)=>new Wh(()=>gM(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new fQe(n,f||e,d>0),yield s.update(t,h,i))}),d),l=()=>{if(r)return;const d=new Je,h=m=>o(!1,m.fromElement===e);d.add(ye(e,Ae.MOUSE_LEAVE,h,!0));const f=()=>o(!0,!0);d.add(ye(e,Ae.MOUSE_DOWN,f,!0));const g={targetElements:[e],dispose:()=>{}};if(n.placement===void 0||n.placement==="mouse"){const m=p=>{g.x=p.x+10,p.target instanceof HTMLElement&&p.target.classList.contains("action-label")&&o(!0,!0)};d.add(ye(e,Ae.MOUSE_MOVE,m,!0))}d.add(a(n.delay,!1,g)),r=d},c=ye(e,Ae.MOUSE_OVER,l,!0);return{show:d=>{o(!1,!0),a(0,d)},hide:()=>{o(!0,!0)},update:(d,h)=>gM(this,void 0,void 0,function*(){t=d,yield s==null?void 0:s.update(t,void 0,h)}),dispose:()=>{c.dispose(),o(!0,!0)}}}function gQe(n,e={}){const t=mM(e);return t.textContent=n,t}function mQe(n,e={}){const t=mM(e);return yQ(t,_Qe(n,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function mM(n){const e=n.inline?"span":"div",t=document.createElement(e);return n.className&&(t.className=n.className),t}class pQe{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function yQ(n,e,t,i){let r;if(e.type===2)r=document.createTextNode(e.content||"");else if(e.type===3)r=document.createElement("b");else if(e.type===4)r=document.createElement("i");else if(e.type===7&&i)r=document.createElement("code");else if(e.type===5&&t){const s=document.createElement("a");t.disposables.add(li(s,"click",o=>{t.callback(String(e.index),o)})),r=s}else e.type===8?r=document.createElement("br"):e.type===1&&(r=n);r&&n!==r&&n.appendChild(r),r&&Array.isArray(e.children)&&e.children.forEach(s=>{yQ(r,s,t,i)})}function _Qe(n,e){const t={type:1,children:[]};let i=0,r=t;const s=[],o=new pQe(n);for(;!o.eos();){let a=o.next();const l=a==="\\"&&pM(o.peek(),e)!==0;if(l&&(a=o.next()),!l&&vQe(a,e)&&a===o.peek()){o.advance(),r.type===2&&(r=s.pop());const c=pM(a,e);if(r.type===c||r.type===5&&c===6)r=s.pop();else{const u={type:c,children:[]};c===5&&(u.index=i,i++),r.children.push(u),s.push(r),r=u}}else if(a===`
|
497
|
-
`)r.type===2&&(r=s.pop()),r.children.push({type:8});else if(r.type!==2){const c={type:2,content:a};r.children.push(c),s.push(r),r=c}else r.content+=a}return r.type===2&&(r=s.pop()),t}function vQe(n,e){return pM(n,e)!==0}function pM(n,e){switch(n){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}const bQe=new RegExp(`(\\\\)?\\$\\((${gt.iconNameExpression}(?:${gt.iconModifierExpression})?)\\)`,"g");function bf(n){const e=new Array;let t,i=0,r=0;for(;(t=bQe.exec(n))!==null;){r=t.index||0,i<r&&e.push(n.substring(i,r)),i=(t.index||0)+t[0].length;const[,s,o]=t;e.push(s?`$(${o})`:yQe({id:o}))}return i<n.length&&e.push(n.substring(i)),e}function yQe(n){const e=tt("span");return e.classList.add(...gt.asClassNameArray(n)),e}class CQ{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const wQ=new CQ("id#");let Ir={};(function(){function n(e,t){t(Ir)}n.amd=!0,function(e,t){typeof n=="function"&&n.amd?n(["exports"],t):typeof he=="object"&&typeof module<"u"?t(he):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(Y,H){for(var q=0;q<H.length;q++){var
|
498
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults=a();function l(Y){e.defaults=Y}var c=/[&<>"']/,u=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(H){return f[H]};function m(Y,H){if(H){if(c.test(Y))return Y.replace(u,g)}else if(d.test(Y))return Y.replace(h,g);return Y}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Y){return Y.replace(p,function(H,q){return q=q.toLowerCase(),q==="colon"?":":q.charAt(0)==="#"?q.charAt(1)==="x"?String.fromCharCode(parseInt(q.substring(2),16)):String.fromCharCode(+q.substring(1)):""})}var _=/(^|[^\[])\^/g;function b(Y,H){Y=typeof Y=="string"?Y:Y.source,H=H||"";var q={replace:function(F,z){return z=z.source||z,z=z.replace(_,"$1"),Y=Y.replace(F,z),q},getRegex:function(){return new RegExp(Y,H)}};return q}var y=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Y,H,q){if(Y){var
|
499
|
-
`).map(function(F){var z=F.match(/^\s+/);if(z===null)return F;var U=z[0];return U.length>=
|
500
|
-
`)}var ue=function(){function Y(q){this.options=q||e.defaults}var H=Y.prototype;return H.space=function(
|
501
|
-
`)}}},H.fences=function(
|
502
|
-
`,1)[0],Vt=
|
497
|
+
`)r.type===2&&(r=s.pop()),r.children.push({type:8});else if(r.type!==2){const c={type:2,content:a};r.children.push(c),s.push(r),r=c}else r.content+=a}return r.type===2&&(r=s.pop()),t}function vQe(n,e){return pM(n,e)!==0}function pM(n,e){switch(n){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}const bQe=new RegExp(`(\\\\)?\\$\\((${gt.iconNameExpression}(?:${gt.iconModifierExpression})?)\\)`,"g");function bf(n){const e=new Array;let t,i=0,r=0;for(;(t=bQe.exec(n))!==null;){r=t.index||0,i<r&&e.push(n.substring(i,r)),i=(t.index||0)+t[0].length;const[,s,o]=t;e.push(s?`$(${o})`:yQe({id:o}))}return i<n.length&&e.push(n.substring(i)),e}function yQe(n){const e=tt("span");return e.classList.add(...gt.asClassNameArray(n)),e}class CQ{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const wQ=new CQ("id#");let Ir={};(function(){function n(e,t){t(Ir)}n.amd=!0,function(e,t){typeof n=="function"&&n.amd?n(["exports"],t):typeof he=="object"&&typeof module<"u"?t(he):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(Y,H){for(var q=0;q<H.length;q++){var R=H[q];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(Y,R.key,R)}}function i(Y,H,q){return H&&t(Y.prototype,H),q&&t(Y,q),Object.defineProperty(Y,"prototype",{writable:!1}),Y}function r(Y,H){if(Y){if(typeof Y=="string")return s(Y,H);var q=Object.prototype.toString.call(Y).slice(8,-1);if(q==="Object"&&Y.constructor&&(q=Y.constructor.name),q==="Map"||q==="Set")return Array.from(Y);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return s(Y,H)}}function s(Y,H){(H==null||H>Y.length)&&(H=Y.length);for(var q=0,R=new Array(H);q<H;q++)R[q]=Y[q];return R}function o(Y,H){var q=typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(q)return(q=q.call(Y)).next.bind(q);if(Array.isArray(Y)||(q=r(Y))||H&&Y&&typeof Y.length=="number"){q&&(Y=q);var R=0;return function(){return R>=Y.length?{done:!0}:{done:!1,value:Y[R++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
498
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults=a();function l(Y){e.defaults=Y}var c=/[&<>"']/,u=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(H){return f[H]};function m(Y,H){if(H){if(c.test(Y))return Y.replace(u,g)}else if(d.test(Y))return Y.replace(h,g);return Y}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Y){return Y.replace(p,function(H,q){return q=q.toLowerCase(),q==="colon"?":":q.charAt(0)==="#"?q.charAt(1)==="x"?String.fromCharCode(parseInt(q.substring(2),16)):String.fromCharCode(+q.substring(1)):""})}var _=/(^|[^\[])\^/g;function b(Y,H){Y=typeof Y=="string"?Y:Y.source,H=H||"";var q={replace:function(F,z){return z=z.source||z,z=z.replace(_,"$1"),Y=Y.replace(F,z),q},getRegex:function(){return new RegExp(Y,H)}};return q}var y=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Y,H,q){if(Y){var R;try{R=decodeURIComponent(v(q)).replace(y,"").toLowerCase()}catch{return null}if(R.indexOf("javascript:")===0||R.indexOf("vbscript:")===0||R.indexOf("data:")===0)return null}H&&!w.test(q)&&(q=O(H,q));try{q=encodeURI(q).replace(/%25/g,"%")}catch{return null}return q}var L={},D=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,N=/^([^:]+:\/*[^/]*)[\s\S]*$/;function O(Y,H){L[" "+Y]||(D.test(Y)?L[" "+Y]=Y+"/":L[" "+Y]=V(Y,"/",!0)),Y=L[" "+Y];var q=Y.indexOf(":")===-1;return H.substring(0,2)==="//"?q?H:Y.replace(E,"$1")+H:H.charAt(0)==="/"?q?H:Y.replace(N,"$1")+H:Y+H}var I={exec:function(){}};function M(Y){for(var H=1,q,R;H<arguments.length;H++){q=arguments[H];for(R in q)Object.prototype.hasOwnProperty.call(q,R)&&(Y[R]=q[R])}return Y}function B(Y,H){var q=Y.replace(/\|/g,function(z,U,fe){for(var ke=!1,Ie=U;--Ie>=0&&fe[Ie]==="\\";)ke=!ke;return ke?"|":" |"}),R=q.split(/ \|/),F=0;if(R[0].trim()||R.shift(),R.length>0&&!R[R.length-1].trim()&&R.pop(),R.length>H)R.splice(H);else for(;R.length<H;)R.push("");for(;F<R.length;F++)R[F]=R[F].trim().replace(/\\\|/g,"|");return R}function V(Y,H,q){var R=Y.length;if(R===0)return"";for(var F=0;F<R;){var z=Y.charAt(R-F-1);if(z===H&&!q)F++;else if(z!==H&&q)F++;else break}return Y.slice(0,R-F)}function ee(Y,H){if(Y.indexOf(H[1])===-1)return-1;for(var q=Y.length,R=0,F=0;F<q;F++)if(Y[F]==="\\")F++;else if(Y[F]===H[0])R++;else if(Y[F]===H[1]&&(R--,R<0))return F;return-1}function re(Y){Y&&Y.sanitize&&!Y.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function se(Y,H){if(H<1)return"";for(var q="";H>1;)H&1&&(q+=Y),H>>=1,Y+=Y;return q+Y}function ie(Y,H,q,R){var F=H.href,z=H.title?m(H.title):null,U=Y[1].replace(/\\([\[\]])/g,"$1");if(Y[0].charAt(0)!=="!"){R.state.inLink=!0;var fe={type:"link",raw:q,href:F,title:z,text:U,tokens:R.inlineTokens(U)};return R.state.inLink=!1,fe}return{type:"image",raw:q,href:F,title:z,text:m(U)}}function J(Y,H){var q=Y.match(/^(\s+)(?:```)/);if(q===null)return H;var R=q[1];return H.split(`
|
499
|
+
`).map(function(F){var z=F.match(/^\s+/);if(z===null)return F;var U=z[0];return U.length>=R.length?F.slice(R.length):F}).join(`
|
500
|
+
`)}var ue=function(){function Y(q){this.options=q||e.defaults}var H=Y.prototype;return H.space=function(R){var F=this.rules.block.newline.exec(R);if(F&&F[0].length>0)return{type:"space",raw:F[0]}},H.code=function(R){var F=this.rules.block.code.exec(R);if(F){var z=F[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:F[0],codeBlockStyle:"indented",text:this.options.pedantic?z:V(z,`
|
501
|
+
`)}}},H.fences=function(R){var F=this.rules.block.fences.exec(R);if(F){var z=F[0],U=J(z,F[3]||"");return{type:"code",raw:z,lang:F[2]?F[2].trim():F[2],text:U}}},H.heading=function(R){var F=this.rules.block.heading.exec(R);if(F){var z=F[2].trim();if(/#$/.test(z)){var U=V(z,"#");(this.options.pedantic||!U||/ $/.test(U))&&(z=U.trim())}return{type:"heading",raw:F[0],depth:F[1].length,text:z,tokens:this.lexer.inline(z)}}},H.hr=function(R){var F=this.rules.block.hr.exec(R);if(F)return{type:"hr",raw:F[0]}},H.blockquote=function(R){var F=this.rules.block.blockquote.exec(R);if(F){var z=F[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:F[0],tokens:this.lexer.blockTokens(z,[]),text:z}}},H.list=function(R){var F=this.rules.block.list.exec(R);if(F){var z,U,fe,ke,Ie,Pe,Ze,Ye,Vt,Et,Me,Mt,Ut=F[1].trim(),zn=Ut.length>1,Qt={type:"list",raw:"",ordered:zn,start:zn?+Ut.slice(0,-1):"",loose:!1,items:[]};Ut=zn?"\\d{1,9}\\"+Ut.slice(-1):"\\"+Ut,this.options.pedantic&&(Ut=zn?Ut:"[*+-]");for(var An=new RegExp("^( {0,3}"+Ut+")((?:[ ][^\\n]*)?(?:\\n|$))");R&&(Mt=!1,!(!(F=An.exec(R))||this.rules.block.hr.test(R)));){if(z=F[0],R=R.substring(z.length),Ye=F[2].split(`
|
502
|
+
`,1)[0],Vt=R.split(`
|
503
503
|
`,1)[0],this.options.pedantic?(ke=2,Me=Ye.trimLeft()):(ke=F[2].search(/[^ ]/),ke=ke>4?1:ke,Me=Ye.slice(ke),ke+=F[1].length),Pe=!1,!Ye&&/^ *$/.test(Vt)&&(z+=Vt+`
|
504
|
-
`,
|
505
|
-
`,1)[0],Ye=Et,this.options.pedantic&&(Ye=Ye.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(zs.test(Ye)||za.test(Ye)||js.test(Ye)||vr.test(
|
504
|
+
`,R=R.substring(Vt.length+1),Mt=!0),!Mt)for(var js=new RegExp("^ {0,"+Math.min(3,ke-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),vr=new RegExp("^ {0,"+Math.min(3,ke-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),zs=new RegExp("^ {0,"+Math.min(3,ke-1)+"}(?:```|~~~)"),za=new RegExp("^ {0,"+Math.min(3,ke-1)+"}#");R&&(Et=R.split(`
|
505
|
+
`,1)[0],Ye=Et,this.options.pedantic&&(Ye=Ye.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(zs.test(Ye)||za.test(Ye)||js.test(Ye)||vr.test(R)));){if(Ye.search(/[^ ]/)>=ke||!Ye.trim())Me+=`
|
506
506
|
`+Ye.slice(ke);else if(!Pe)Me+=`
|
507
507
|
`+Ye;else break;!Pe&&!Ye.trim()&&(Pe=!0),z+=Et+`
|
508
|
-
`,
|
509
|
-
`&&(Kf+=1),Kf>1)return!0}return!1});!Qt.loose&&Yl.length&&ou&&(Qt.loose=!0,Qt.items[Ie].loose=!0)}return Qt}},H.html=function(
|
510
|
-
`):[]};if(z.header.length===z.align.length){z.raw=F[0];var U=z.align.length,fe,ke,Ie,Pe;for(fe=0;fe<U;fe++)/^ *-+: *$/.test(z.align[fe])?z.align[fe]="right":/^ *:-+: *$/.test(z.align[fe])?z.align[fe]="center":/^ *:-+ *$/.test(z.align[fe])?z.align[fe]="left":z.align[fe]=null;for(U=z.rows.length,fe=0;fe<U;fe++)z.rows[fe]=B(z.rows[fe],z.header.length).map(function(Ze){return{text:Ze}});for(U=z.header.length,ke=0;ke<U;ke++)z.header[ke].tokens=this.lexer.inline(z.header[ke].text);for(U=z.rows.length,ke=0;ke<U;ke++)for(Pe=z.rows[ke],Ie=0;Ie<Pe.length;Ie++)Pe[Ie].tokens=this.lexer.inline(Pe[Ie].text);return z}}},H.lheading=function(
|
511
|
-
`?F[1].slice(0,-1):F[1];return{type:"paragraph",raw:F[0],text:z,tokens:this.lexer.inline(z)}}},H.text=function(P){var F=this.rules.block.text.exec(P);if(F)return{type:"text",raw:F[0],text:F[0],tokens:this.lexer.inline(F[0])}},H.escape=function(P){var F=this.rules.inline.escape.exec(P);if(F)return{type:"escape",raw:F[0],text:m(F[1])}},H.tag=function(P){var F=this.rules.inline.tag.exec(P);if(F)return!this.lexer.state.inLink&&/^<a /i.test(F[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(F[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(F[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(F[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:F[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(F[0]):m(F[0]):F[0]}},H.link=function(P){var F=this.rules.inline.link.exec(P);if(F){var z=F[2].trim();if(!this.options.pedantic&&/^</.test(z)){if(!/>$/.test(z))return;var U=V(z.slice(0,-1),"\\");if((z.length-U.length)%2===0)return}else{var fe=ee(F[2],"()");if(fe>-1){var ke=F[0].indexOf("!")===0?5:4,Ie=ke+F[1].length+fe;F[2]=F[2].substring(0,fe),F[0]=F[0].substring(0,Ie).trim(),F[3]=""}}var Pe=F[2],Ze="";if(this.options.pedantic){var Ye=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);Ye&&(Pe=Ye[1],Ze=Ye[3])}else Ze=F[3]?F[3].slice(1,-1):"";return Pe=Pe.trim(),/^</.test(Pe)&&(this.options.pedantic&&!/>$/.test(z)?Pe=Pe.slice(1):Pe=Pe.slice(1,-1)),ie(F,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:Ze&&Ze.replace(this.rules.inline._escapes,"$1")},F[0],this.lexer)}},H.reflink=function(P,F){var z;if((z=this.rules.inline.reflink.exec(P))||(z=this.rules.inline.nolink.exec(P))){var U=(z[2]||z[1]).replace(/\s+/g," ");if(U=F[U.toLowerCase()],!U||!U.href){var fe=z[0].charAt(0);return{type:"text",raw:fe,text:fe}}return ie(z,U,z[0],this.lexer)}},H.emStrong=function(P,F,z){z===void 0&&(z="");var U=this.rules.inline.emStrong.lDelim.exec(P);if(U&&!(U[3]&&z.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var fe=U[1]||U[2]||"";if(!fe||fe&&(z===""||this.rules.inline.punctuation.exec(z))){var ke=U[0].length-1,Ie,Pe,Ze=ke,Ye=0,Vt=U[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Vt.lastIndex=0,F=F.slice(-1*P.length+ke);(U=Vt.exec(F))!=null;)if(Ie=U[1]||U[2]||U[3]||U[4]||U[5]||U[6],!!Ie){if(Pe=Ie.length,U[3]||U[4]){Ze+=Pe;continue}else if((U[5]||U[6])&&ke%3&&!((ke+Pe)%3)){Ye+=Pe;continue}if(Ze-=Pe,!(Ze>0)){if(Pe=Math.min(Pe,Pe+Ze+Ye),Math.min(ke,Pe)%2){var Et=P.slice(1,ke+U.index+Pe);return{type:"em",raw:P.slice(0,ke+U.index+Pe+1),text:Et,tokens:this.lexer.inlineTokens(Et)}}var Me=P.slice(2,ke+U.index+Pe-1);return{type:"strong",raw:P.slice(0,ke+U.index+Pe+1),text:Me,tokens:this.lexer.inlineTokens(Me)}}}}}},H.codespan=function(P){var F=this.rules.inline.code.exec(P);if(F){var z=F[2].replace(/\n/g," "),U=/[^ ]/.test(z),fe=/^ /.test(z)&&/ $/.test(z);return U&&fe&&(z=z.substring(1,z.length-1)),z=m(z,!0),{type:"codespan",raw:F[0],text:z}}},H.br=function(P){var F=this.rules.inline.br.exec(P);if(F)return{type:"br",raw:F[0]}},H.del=function(P){var F=this.rules.inline.del.exec(P);if(F)return{type:"del",raw:F[0],text:F[2],tokens:this.lexer.inlineTokens(F[2])}},H.autolink=function(P,F){var z=this.rules.inline.autolink.exec(P);if(z){var U,fe;return z[2]==="@"?(U=m(this.options.mangle?F(z[1]):z[1]),fe="mailto:"+U):(U=m(z[1]),fe=U),{type:"link",raw:z[0],text:U,href:fe,tokens:[{type:"text",raw:U,text:U}]}}},H.url=function(P,F){var z;if(z=this.rules.inline.url.exec(P)){var U,fe;if(z[2]==="@")U=m(this.options.mangle?F(z[0]):z[0]),fe="mailto:"+U;else{var ke;do ke=z[0],z[0]=this.rules.inline._backpedal.exec(z[0])[0];while(ke!==z[0]);U=m(z[0]),z[1]==="www."?fe="http://"+U:fe=U}return{type:"link",raw:z[0],text:U,href:fe,tokens:[{type:"text",raw:U,text:U}]}}},H.inlineText=function(P,F){var z=this.rules.inline.text.exec(P);if(z){var U;return this.lexer.state.inRawBlock?U=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(z[0]):m(z[0]):z[0]:U=m(this.options.smartypants?F(z[0]):z[0]),{type:"text",raw:z[0],text:U}}},Y}(),Z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Z._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Z.def=b(Z.def).replace("label",Z._label).replace("title",Z._title).getRegex(),Z.bullet=/(?:[*+-]|\d{1,9}[.)])/,Z.listItemStart=b(/^( *)(bull) */).replace("bull",Z.bullet).getRegex(),Z.list=b(Z.list).replace(/bull/g,Z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Z.def.source+")").getRegex(),Z._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Z.html=b(Z.html,"i").replace("comment",Z._comment).replace("tag",Z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Z.paragraph=b(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex(),Z.blockquote=b(Z.blockquote).replace("paragraph",Z.paragraph).getRegex(),Z.normal=M({},Z),Z.gfm=M({},Z.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Z.gfm.table=b(Z.gfm.table).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex(),Z.gfm.paragraph=b(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Z.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex(),Z.pedantic=M({},Z.normal,{html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,paragraph:b(Z.normal._paragraph).replace("hr",Z.hr).replace("heading",` *#{1,6} *[^
|
512
|
-
]`).replace("lheading",Z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var X={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};X._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",X.punctuation=b(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex(),X.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,X.escapedEmSt=/\\\*|\\_/g,X._comment=b(Z._comment).replace("(?:-->|$)","-->").getRegex(),X.emStrong.lDelim=b(X.emStrong.lDelim).replace(/punct/g,X._punctuation).getRegex(),X.emStrong.rDelimAst=b(X.emStrong.rDelimAst,"g").replace(/punct/g,X._punctuation).getRegex(),X.emStrong.rDelimUnd=b(X.emStrong.rDelimUnd,"g").replace(/punct/g,X._punctuation).getRegex(),X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,X._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,X.autolink=b(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex(),X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,X.tag=b(X.tag).replace("comment",X._comment).replace("attribute",X._attribute).getRegex(),X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,X.link=b(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex(),X.reflink=b(X.reflink).replace("label",X._label).replace("ref",Z._label).getRegex(),X.nolink=b(X.nolink).replace("ref",Z._label).getRegex(),X.reflinkSearch=b(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex(),X.normal=M({},X),X.pedantic=M({},X.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()}),X.gfm=M({},X.normal,{escape:b(X.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),X.gfm.url=b(X.gfm.url,"i").replace("email",X.gfm._extended_email).getRegex(),X.breaks=M({},X.gfm,{br:b(X.br).replace("{2,}","*").getRegex(),text:b(X.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function ce(Y){return Y.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function De(Y){var H="",q,
|
513
|
-
`),this.blockTokens(
|
514
|
-
`:F.push(U);continue}if(U=this.tokenizer.code(
|
508
|
+
`,R=R.substring(Et.length+1)}Qt.loose||(Ze?Qt.loose=!0:/\n *\n *$/.test(z)&&(Ze=!0)),this.options.gfm&&(U=/^\[[ xX]\] /.exec(Me),U&&(fe=U[0]!=="[ ] ",Me=Me.replace(/^\[[ xX]\] +/,""))),Qt.items.push({type:"list_item",raw:z,task:!!U,checked:fe,loose:!1,text:Me}),Qt.raw+=z}Qt.items[Qt.items.length-1].raw=z.trimRight(),Qt.items[Qt.items.length-1].text=Me.trimRight(),Qt.raw=Qt.raw.trimRight();var su=Qt.items.length;for(Ie=0;Ie<su;Ie++){this.lexer.state.top=!1,Qt.items[Ie].tokens=this.lexer.blockTokens(Qt.items[Ie].text,[]);var Yl=Qt.items[Ie].tokens.filter(function(Yr){return Yr.type==="space"}),ou=Yl.every(function(Yr){for(var qf=Yr.raw.split(""),Kf=0,n0=o(qf),Gf;!(Gf=n0()).done;){var dt=Gf.value;if(dt===`
|
509
|
+
`&&(Kf+=1),Kf>1)return!0}return!1});!Qt.loose&&Yl.length&&ou&&(Qt.loose=!0,Qt.items[Ie].loose=!0)}return Qt}},H.html=function(R){var F=this.rules.block.html.exec(R);if(F){var z={type:"html",raw:F[0],pre:!this.options.sanitizer&&(F[1]==="pre"||F[1]==="script"||F[1]==="style"),text:F[0]};if(this.options.sanitize){var U=this.options.sanitizer?this.options.sanitizer(F[0]):m(F[0]);z.type="paragraph",z.text=U,z.tokens=this.lexer.inline(U)}return z}},H.def=function(R){var F=this.rules.block.def.exec(R);if(F){F[3]&&(F[3]=F[3].substring(1,F[3].length-1));var z=F[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:z,raw:F[0],href:F[2],title:F[3]}}},H.table=function(R){var F=this.rules.block.table.exec(R);if(F){var z={type:"table",header:B(F[1]).map(function(Ze){return{text:Ze}}),align:F[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:F[3]&&F[3].trim()?F[3].replace(/\n[ \t]*$/,"").split(`
|
510
|
+
`):[]};if(z.header.length===z.align.length){z.raw=F[0];var U=z.align.length,fe,ke,Ie,Pe;for(fe=0;fe<U;fe++)/^ *-+: *$/.test(z.align[fe])?z.align[fe]="right":/^ *:-+: *$/.test(z.align[fe])?z.align[fe]="center":/^ *:-+ *$/.test(z.align[fe])?z.align[fe]="left":z.align[fe]=null;for(U=z.rows.length,fe=0;fe<U;fe++)z.rows[fe]=B(z.rows[fe],z.header.length).map(function(Ze){return{text:Ze}});for(U=z.header.length,ke=0;ke<U;ke++)z.header[ke].tokens=this.lexer.inline(z.header[ke].text);for(U=z.rows.length,ke=0;ke<U;ke++)for(Pe=z.rows[ke],Ie=0;Ie<Pe.length;Ie++)Pe[Ie].tokens=this.lexer.inline(Pe[Ie].text);return z}}},H.lheading=function(R){var F=this.rules.block.lheading.exec(R);if(F)return{type:"heading",raw:F[0],depth:F[2].charAt(0)==="="?1:2,text:F[1],tokens:this.lexer.inline(F[1])}},H.paragraph=function(R){var F=this.rules.block.paragraph.exec(R);if(F){var z=F[1].charAt(F[1].length-1)===`
|
511
|
+
`?F[1].slice(0,-1):F[1];return{type:"paragraph",raw:F[0],text:z,tokens:this.lexer.inline(z)}}},H.text=function(R){var F=this.rules.block.text.exec(R);if(F)return{type:"text",raw:F[0],text:F[0],tokens:this.lexer.inline(F[0])}},H.escape=function(R){var F=this.rules.inline.escape.exec(R);if(F)return{type:"escape",raw:F[0],text:m(F[1])}},H.tag=function(R){var F=this.rules.inline.tag.exec(R);if(F)return!this.lexer.state.inLink&&/^<a /i.test(F[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(F[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(F[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(F[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:F[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(F[0]):m(F[0]):F[0]}},H.link=function(R){var F=this.rules.inline.link.exec(R);if(F){var z=F[2].trim();if(!this.options.pedantic&&/^</.test(z)){if(!/>$/.test(z))return;var U=V(z.slice(0,-1),"\\");if((z.length-U.length)%2===0)return}else{var fe=ee(F[2],"()");if(fe>-1){var ke=F[0].indexOf("!")===0?5:4,Ie=ke+F[1].length+fe;F[2]=F[2].substring(0,fe),F[0]=F[0].substring(0,Ie).trim(),F[3]=""}}var Pe=F[2],Ze="";if(this.options.pedantic){var Ye=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);Ye&&(Pe=Ye[1],Ze=Ye[3])}else Ze=F[3]?F[3].slice(1,-1):"";return Pe=Pe.trim(),/^</.test(Pe)&&(this.options.pedantic&&!/>$/.test(z)?Pe=Pe.slice(1):Pe=Pe.slice(1,-1)),ie(F,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:Ze&&Ze.replace(this.rules.inline._escapes,"$1")},F[0],this.lexer)}},H.reflink=function(R,F){var z;if((z=this.rules.inline.reflink.exec(R))||(z=this.rules.inline.nolink.exec(R))){var U=(z[2]||z[1]).replace(/\s+/g," ");if(U=F[U.toLowerCase()],!U||!U.href){var fe=z[0].charAt(0);return{type:"text",raw:fe,text:fe}}return ie(z,U,z[0],this.lexer)}},H.emStrong=function(R,F,z){z===void 0&&(z="");var U=this.rules.inline.emStrong.lDelim.exec(R);if(U&&!(U[3]&&z.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var fe=U[1]||U[2]||"";if(!fe||fe&&(z===""||this.rules.inline.punctuation.exec(z))){var ke=U[0].length-1,Ie,Pe,Ze=ke,Ye=0,Vt=U[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Vt.lastIndex=0,F=F.slice(-1*R.length+ke);(U=Vt.exec(F))!=null;)if(Ie=U[1]||U[2]||U[3]||U[4]||U[5]||U[6],!!Ie){if(Pe=Ie.length,U[3]||U[4]){Ze+=Pe;continue}else if((U[5]||U[6])&&ke%3&&!((ke+Pe)%3)){Ye+=Pe;continue}if(Ze-=Pe,!(Ze>0)){if(Pe=Math.min(Pe,Pe+Ze+Ye),Math.min(ke,Pe)%2){var Et=R.slice(1,ke+U.index+Pe);return{type:"em",raw:R.slice(0,ke+U.index+Pe+1),text:Et,tokens:this.lexer.inlineTokens(Et)}}var Me=R.slice(2,ke+U.index+Pe-1);return{type:"strong",raw:R.slice(0,ke+U.index+Pe+1),text:Me,tokens:this.lexer.inlineTokens(Me)}}}}}},H.codespan=function(R){var F=this.rules.inline.code.exec(R);if(F){var z=F[2].replace(/\n/g," "),U=/[^ ]/.test(z),fe=/^ /.test(z)&&/ $/.test(z);return U&&fe&&(z=z.substring(1,z.length-1)),z=m(z,!0),{type:"codespan",raw:F[0],text:z}}},H.br=function(R){var F=this.rules.inline.br.exec(R);if(F)return{type:"br",raw:F[0]}},H.del=function(R){var F=this.rules.inline.del.exec(R);if(F)return{type:"del",raw:F[0],text:F[2],tokens:this.lexer.inlineTokens(F[2])}},H.autolink=function(R,F){var z=this.rules.inline.autolink.exec(R);if(z){var U,fe;return z[2]==="@"?(U=m(this.options.mangle?F(z[1]):z[1]),fe="mailto:"+U):(U=m(z[1]),fe=U),{type:"link",raw:z[0],text:U,href:fe,tokens:[{type:"text",raw:U,text:U}]}}},H.url=function(R,F){var z;if(z=this.rules.inline.url.exec(R)){var U,fe;if(z[2]==="@")U=m(this.options.mangle?F(z[0]):z[0]),fe="mailto:"+U;else{var ke;do ke=z[0],z[0]=this.rules.inline._backpedal.exec(z[0])[0];while(ke!==z[0]);U=m(z[0]),z[1]==="www."?fe="http://"+U:fe=U}return{type:"link",raw:z[0],text:U,href:fe,tokens:[{type:"text",raw:U,text:U}]}}},H.inlineText=function(R,F){var z=this.rules.inline.text.exec(R);if(z){var U;return this.lexer.state.inRawBlock?U=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(z[0]):m(z[0]):z[0]:U=m(this.options.smartypants?F(z[0]):z[0]),{type:"text",raw:z[0],text:U}}},Y}(),Z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Z._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Z.def=b(Z.def).replace("label",Z._label).replace("title",Z._title).getRegex(),Z.bullet=/(?:[*+-]|\d{1,9}[.)])/,Z.listItemStart=b(/^( *)(bull) */).replace("bull",Z.bullet).getRegex(),Z.list=b(Z.list).replace(/bull/g,Z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Z.def.source+")").getRegex(),Z._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Z.html=b(Z.html,"i").replace("comment",Z._comment).replace("tag",Z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Z.paragraph=b(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex(),Z.blockquote=b(Z.blockquote).replace("paragraph",Z.paragraph).getRegex(),Z.normal=M({},Z),Z.gfm=M({},Z.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Z.gfm.table=b(Z.gfm.table).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex(),Z.gfm.paragraph=b(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Z.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex(),Z.pedantic=M({},Z.normal,{html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,paragraph:b(Z.normal._paragraph).replace("hr",Z.hr).replace("heading",` *#{1,6} *[^
|
512
|
+
]`).replace("lheading",Z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var X={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};X._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",X.punctuation=b(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex(),X.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,X.escapedEmSt=/\\\*|\\_/g,X._comment=b(Z._comment).replace("(?:-->|$)","-->").getRegex(),X.emStrong.lDelim=b(X.emStrong.lDelim).replace(/punct/g,X._punctuation).getRegex(),X.emStrong.rDelimAst=b(X.emStrong.rDelimAst,"g").replace(/punct/g,X._punctuation).getRegex(),X.emStrong.rDelimUnd=b(X.emStrong.rDelimUnd,"g").replace(/punct/g,X._punctuation).getRegex(),X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,X._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,X.autolink=b(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex(),X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,X.tag=b(X.tag).replace("comment",X._comment).replace("attribute",X._attribute).getRegex(),X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,X.link=b(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex(),X.reflink=b(X.reflink).replace("label",X._label).replace("ref",Z._label).getRegex(),X.nolink=b(X.nolink).replace("ref",Z._label).getRegex(),X.reflinkSearch=b(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex(),X.normal=M({},X),X.pedantic=M({},X.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()}),X.gfm=M({},X.normal,{escape:b(X.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),X.gfm.url=b(X.gfm.url,"i").replace("email",X.gfm._extended_email).getRegex(),X.breaks=M({},X.gfm,{br:b(X.br).replace("{2,}","*").getRegex(),text:b(X.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function ce(Y){return Y.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function De(Y){var H="",q,R,F=Y.length;for(q=0;q<F;q++)R=Y.charCodeAt(q),Math.random()>.5&&(R="x"+R.toString(16)),H+="&#"+R+";";return H}var te=function(){function Y(q){this.tokens=[],this.tokens.links=Object.create(null),this.options=q||e.defaults,this.options.tokenizer=this.options.tokenizer||new ue,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var R={block:Z.normal,inline:X.normal};this.options.pedantic?(R.block=Z.pedantic,R.inline=X.pedantic):this.options.gfm&&(R.block=Z.gfm,this.options.breaks?R.inline=X.breaks:R.inline=X.gfm),this.tokenizer.rules=R}Y.lex=function(R,F){var z=new Y(F);return z.lex(R)},Y.lexInline=function(R,F){var z=new Y(F);return z.inlineTokens(R)};var H=Y.prototype;return H.lex=function(R){R=R.replace(/\r\n|\r/g,`
|
513
|
+
`),this.blockTokens(R,this.tokens);for(var F;F=this.inlineQueue.shift();)this.inlineTokens(F.src,F.tokens);return this.tokens},H.blockTokens=function(R,F){var z=this;F===void 0&&(F=[]),this.options.pedantic?R=R.replace(/\t/g," ").replace(/^ +$/gm,""):R=R.replace(/^( *)(\t+)/gm,function(Ze,Ye,Vt){return Ye+" ".repeat(Vt.length)});for(var U,fe,ke,Ie;R;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Ze){return(U=Ze.call({lexer:z},R,F))?(R=R.substring(U.raw.length),F.push(U),!0):!1}))){if(U=this.tokenizer.space(R)){R=R.substring(U.raw.length),U.raw.length===1&&F.length>0?F[F.length-1].raw+=`
|
514
|
+
`:F.push(U);continue}if(U=this.tokenizer.code(R)){R=R.substring(U.raw.length),fe=F[F.length-1],fe&&(fe.type==="paragraph"||fe.type==="text")?(fe.raw+=`
|
515
515
|
`+U.raw,fe.text+=`
|
516
|
-
`+U.text,this.inlineQueue[this.inlineQueue.length-1].src=fe.text):F.push(U);continue}if(U=this.tokenizer.fences(
|
516
|
+
`+U.text,this.inlineQueue[this.inlineQueue.length-1].src=fe.text):F.push(U);continue}if(U=this.tokenizer.fences(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.heading(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.hr(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.blockquote(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.list(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.html(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.def(R)){R=R.substring(U.raw.length),fe=F[F.length-1],fe&&(fe.type==="paragraph"||fe.type==="text")?(fe.raw+=`
|
517
517
|
`+U.raw,fe.text+=`
|
518
|
-
`+U.raw,this.inlineQueue[this.inlineQueue.length-1].src=fe.text):this.tokens.links[U.tag]||(this.tokens.links[U.tag]={href:U.href,title:U.title});continue}if(U=this.tokenizer.table(
|
518
|
+
`+U.raw,this.inlineQueue[this.inlineQueue.length-1].src=fe.text):this.tokens.links[U.tag]||(this.tokens.links[U.tag]={href:U.href,title:U.title});continue}if(U=this.tokenizer.table(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.lheading(R)){R=R.substring(U.raw.length),F.push(U);continue}if(ke=R,this.options.extensions&&this.options.extensions.startBlock&&function(){var Ze=1/0,Ye=R.slice(1),Vt=void 0;z.options.extensions.startBlock.forEach(function(Et){Vt=Et.call({lexer:this},Ye),typeof Vt=="number"&&Vt>=0&&(Ze=Math.min(Ze,Vt))}),Ze<1/0&&Ze>=0&&(ke=R.substring(0,Ze+1))}(),this.state.top&&(U=this.tokenizer.paragraph(ke))){fe=F[F.length-1],Ie&&fe.type==="paragraph"?(fe.raw+=`
|
519
519
|
`+U.raw,fe.text+=`
|
520
|
-
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=fe.text):F.push(U),Ie=ke.length!==
|
520
|
+
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=fe.text):F.push(U),Ie=ke.length!==R.length,R=R.substring(U.raw.length);continue}if(U=this.tokenizer.text(R)){R=R.substring(U.raw.length),fe=F[F.length-1],fe&&fe.type==="text"?(fe.raw+=`
|
521
521
|
`+U.raw,fe.text+=`
|
522
|
-
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=fe.text):F.push(U);continue}if(
|
523
|
-
`,U?'<pre><code class="'+this.options.langPrefix+m(U,!0)+'">'+(z?
|
524
|
-
`:"<pre><code>"+(z?
|
525
|
-
`},H.blockquote=function(
|
526
|
-
`+
|
527
|
-
`},H.html=function(
|
528
|
-
`}return"<h"+F+">"+
|
522
|
+
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=fe.text):F.push(U);continue}if(R){var Pe="Infinite loop on byte: "+R.charCodeAt(0);if(this.options.silent){console.error(Pe);break}else throw new Error(Pe)}}return this.state.top=!0,F},H.inline=function(R,F){return F===void 0&&(F=[]),this.inlineQueue.push({src:R,tokens:F}),F},H.inlineTokens=function(R,F){var z=this;F===void 0&&(F=[]);var U,fe,ke,Ie=R,Pe,Ze,Ye;if(this.tokens.links){var Vt=Object.keys(this.tokens.links);if(Vt.length>0)for(;(Pe=this.tokenizer.rules.inline.reflinkSearch.exec(Ie))!=null;)Vt.includes(Pe[0].slice(Pe[0].lastIndexOf("[")+1,-1))&&(Ie=Ie.slice(0,Pe.index)+"["+se("a",Pe[0].length-2)+"]"+Ie.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Pe=this.tokenizer.rules.inline.blockSkip.exec(Ie))!=null;)Ie=Ie.slice(0,Pe.index)+"["+se("a",Pe[0].length-2)+"]"+Ie.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Pe=this.tokenizer.rules.inline.escapedEmSt.exec(Ie))!=null;)Ie=Ie.slice(0,Pe.index)+"++"+Ie.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;R;)if(Ze||(Ye=""),Ze=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Me){return(U=Me.call({lexer:z},R,F))?(R=R.substring(U.raw.length),F.push(U),!0):!1}))){if(U=this.tokenizer.escape(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.tag(R)){R=R.substring(U.raw.length),fe=F[F.length-1],fe&&U.type==="text"&&fe.type==="text"?(fe.raw+=U.raw,fe.text+=U.text):F.push(U);continue}if(U=this.tokenizer.link(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.reflink(R,this.tokens.links)){R=R.substring(U.raw.length),fe=F[F.length-1],fe&&U.type==="text"&&fe.type==="text"?(fe.raw+=U.raw,fe.text+=U.text):F.push(U);continue}if(U=this.tokenizer.emStrong(R,Ie,Ye)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.codespan(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.br(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.del(R)){R=R.substring(U.raw.length),F.push(U);continue}if(U=this.tokenizer.autolink(R,De)){R=R.substring(U.raw.length),F.push(U);continue}if(!this.state.inLink&&(U=this.tokenizer.url(R,De))){R=R.substring(U.raw.length),F.push(U);continue}if(ke=R,this.options.extensions&&this.options.extensions.startInline&&function(){var Me=1/0,Mt=R.slice(1),Ut=void 0;z.options.extensions.startInline.forEach(function(zn){Ut=zn.call({lexer:this},Mt),typeof Ut=="number"&&Ut>=0&&(Me=Math.min(Me,Ut))}),Me<1/0&&Me>=0&&(ke=R.substring(0,Me+1))}(),U=this.tokenizer.inlineText(ke,ce)){R=R.substring(U.raw.length),U.raw.slice(-1)!=="_"&&(Ye=U.raw.slice(-1)),Ze=!0,fe=F[F.length-1],fe&&fe.type==="text"?(fe.raw+=U.raw,fe.text+=U.text):F.push(U);continue}if(R){var Et="Infinite loop on byte: "+R.charCodeAt(0);if(this.options.silent){console.error(Et);break}else throw new Error(Et)}}return F},i(Y,null,[{key:"rules",get:function(){return{block:Z,inline:X}}}]),Y}(),xe=function(){function Y(q){this.options=q||e.defaults}var H=Y.prototype;return H.code=function(R,F,z){var U=(F||"").match(/\S*/)[0];if(this.options.highlight){var fe=this.options.highlight(R,U);fe!=null&&fe!==R&&(z=!0,R=fe)}return R=R.replace(/\n$/,"")+`
|
523
|
+
`,U?'<pre><code class="'+this.options.langPrefix+m(U,!0)+'">'+(z?R:m(R,!0))+`</code></pre>
|
524
|
+
`:"<pre><code>"+(z?R:m(R,!0))+`</code></pre>
|
525
|
+
`},H.blockquote=function(R){return`<blockquote>
|
526
|
+
`+R+`</blockquote>
|
527
|
+
`},H.html=function(R){return R},H.heading=function(R,F,z,U){if(this.options.headerIds){var fe=this.options.headerPrefix+U.slug(z);return"<h"+F+' id="'+fe+'">'+R+"</h"+F+`>
|
528
|
+
`}return"<h"+F+">"+R+"</h"+F+`>
|
529
529
|
`},H.hr=function(){return this.options.xhtml?`<hr/>
|
530
530
|
`:`<hr>
|
531
|
-
`},H.list=function(
|
532
|
-
`+
|
533
|
-
`},H.listitem=function(
|
534
|
-
`},H.checkbox=function(
|
535
|
-
`},H.table=function(
|
531
|
+
`},H.list=function(R,F,z){var U=F?"ol":"ul",fe=F&&z!==1?' start="'+z+'"':"";return"<"+U+fe+`>
|
532
|
+
`+R+"</"+U+`>
|
533
|
+
`},H.listitem=function(R){return"<li>"+R+`</li>
|
534
|
+
`},H.checkbox=function(R){return"<input "+(R?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},H.paragraph=function(R){return"<p>"+R+`</p>
|
535
|
+
`},H.table=function(R,F){return F&&(F="<tbody>"+F+"</tbody>"),`<table>
|
536
536
|
<thead>
|
537
|
-
`+
|
537
|
+
`+R+`</thead>
|
538
538
|
`+F+`</table>
|
539
|
-
`},H.tablerow=function(
|
540
|
-
`+
|
541
|
-
`},H.tablecell=function(
|
542
|
-
`)},H.strong=function(
|
543
|
-
`+(Me.tokens?this.parseInline(Me.tokens):Me.text);z+=F?this.renderer.paragraph(Et):Et;continue}default:{var Yl='Token with "'+Me.type+'" type was not found.';if(this.options.silent){console.error(Yl);return}else throw new Error(Yl)}}}return z},H.parseInline=function(
|
544
|
-
Please report this to https://github.com/markedjs/marked.`,H.silent)return"<p>An error occurred:</p><pre>"+m(Ie.message+"",!0)+"</pre>";throw Ie}try{var ke=te.lex(Y,H);if(H.walkTokens){if(H.async)return Promise.all(pe.walkTokens(ke,H.walkTokens)).then(function(){return Se.parse(ke,H)}).catch(fe);pe.walkTokens(ke,H.walkTokens)}return Se.parse(ke,H)}catch(Ie){fe(Ie)}}pe.options=pe.setOptions=function(Y){return M(pe.defaults,Y),l(pe.defaults),pe},pe.getDefaults=a,pe.defaults=e.defaults,pe.use=function(){for(var Y=arguments.length,H=new Array(Y),q=0;q<Y;q++)H[q]=arguments[q];var
|
545
|
-
Please report this to https://github.com/markedjs/marked.`,H.silent)return"<p>An error occurred:</p><pre>"+m(
|
539
|
+
`},H.tablerow=function(R){return`<tr>
|
540
|
+
`+R+`</tr>
|
541
|
+
`},H.tablecell=function(R,F){var z=F.header?"th":"td",U=F.align?"<"+z+' align="'+F.align+'">':"<"+z+">";return U+R+("</"+z+`>
|
542
|
+
`)},H.strong=function(R){return"<strong>"+R+"</strong>"},H.em=function(R){return"<em>"+R+"</em>"},H.codespan=function(R){return"<code>"+R+"</code>"},H.br=function(){return this.options.xhtml?"<br/>":"<br>"},H.del=function(R){return"<del>"+R+"</del>"},H.link=function(R,F,z){if(R=k(this.options.sanitize,this.options.baseUrl,R),R===null)return z;var U='<a href="'+m(R)+'"';return F&&(U+=' title="'+F+'"'),U+=">"+z+"</a>",U},H.image=function(R,F,z){if(R=k(this.options.sanitize,this.options.baseUrl,R),R===null)return z;var U='<img src="'+R+'" alt="'+z+'"';return F&&(U+=' title="'+F+'"'),U+=this.options.xhtml?"/>":">",U},H.text=function(R){return R},Y}(),ge=function(){function Y(){}var H=Y.prototype;return H.strong=function(R){return R},H.em=function(R){return R},H.codespan=function(R){return R},H.del=function(R){return R},H.html=function(R){return R},H.text=function(R){return R},H.link=function(R,F,z){return""+z},H.image=function(R,F,z){return""+z},H.br=function(){return""},Y}(),Ce=function(){function Y(){this.seen={}}var H=Y.prototype;return H.serialize=function(R){return R.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},H.getNextSafeSlug=function(R,F){var z=R,U=0;if(this.seen.hasOwnProperty(z)){U=this.seen[R];do U++,z=R+"-"+U;while(this.seen.hasOwnProperty(z))}return F||(this.seen[R]=U,this.seen[z]=0),z},H.slug=function(R,F){F===void 0&&(F={});var z=this.serialize(R);return this.getNextSafeSlug(z,F.dryrun)},Y}(),Se=function(){function Y(q){this.options=q||e.defaults,this.options.renderer=this.options.renderer||new xe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ge,this.slugger=new Ce}Y.parse=function(R,F){var z=new Y(F);return z.parse(R)},Y.parseInline=function(R,F){var z=new Y(F);return z.parseInline(R)};var H=Y.prototype;return H.parse=function(R,F){F===void 0&&(F=!0);var z="",U,fe,ke,Ie,Pe,Ze,Ye,Vt,Et,Me,Mt,Ut,zn,Qt,An,js,vr,zs,za,su=R.length;for(U=0;U<su;U++){if(Me=R[U],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Me.type]&&(za=this.options.extensions.renderers[Me.type].call({parser:this},Me),za!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Me.type))){z+=za||"";continue}switch(Me.type){case"space":continue;case"hr":{z+=this.renderer.hr();continue}case"heading":{z+=this.renderer.heading(this.parseInline(Me.tokens),Me.depth,v(this.parseInline(Me.tokens,this.textRenderer)),this.slugger);continue}case"code":{z+=this.renderer.code(Me.text,Me.lang,Me.escaped);continue}case"table":{for(Vt="",Ye="",Ie=Me.header.length,fe=0;fe<Ie;fe++)Ye+=this.renderer.tablecell(this.parseInline(Me.header[fe].tokens),{header:!0,align:Me.align[fe]});for(Vt+=this.renderer.tablerow(Ye),Et="",Ie=Me.rows.length,fe=0;fe<Ie;fe++){for(Ze=Me.rows[fe],Ye="",Pe=Ze.length,ke=0;ke<Pe;ke++)Ye+=this.renderer.tablecell(this.parseInline(Ze[ke].tokens),{header:!1,align:Me.align[ke]});Et+=this.renderer.tablerow(Ye)}z+=this.renderer.table(Vt,Et);continue}case"blockquote":{Et=this.parse(Me.tokens),z+=this.renderer.blockquote(Et);continue}case"list":{for(Mt=Me.ordered,Ut=Me.start,zn=Me.loose,Ie=Me.items.length,Et="",fe=0;fe<Ie;fe++)An=Me.items[fe],js=An.checked,vr=An.task,Qt="",An.task&&(zs=this.renderer.checkbox(js),zn?An.tokens.length>0&&An.tokens[0].type==="paragraph"?(An.tokens[0].text=zs+" "+An.tokens[0].text,An.tokens[0].tokens&&An.tokens[0].tokens.length>0&&An.tokens[0].tokens[0].type==="text"&&(An.tokens[0].tokens[0].text=zs+" "+An.tokens[0].tokens[0].text)):An.tokens.unshift({type:"text",text:zs}):Qt+=zs),Qt+=this.parse(An.tokens,zn),Et+=this.renderer.listitem(Qt,vr,js);z+=this.renderer.list(Et,Mt,Ut);continue}case"html":{z+=this.renderer.html(Me.text);continue}case"paragraph":{z+=this.renderer.paragraph(this.parseInline(Me.tokens));continue}case"text":{for(Et=Me.tokens?this.parseInline(Me.tokens):Me.text;U+1<su&&R[U+1].type==="text";)Me=R[++U],Et+=`
|
543
|
+
`+(Me.tokens?this.parseInline(Me.tokens):Me.text);z+=F?this.renderer.paragraph(Et):Et;continue}default:{var Yl='Token with "'+Me.type+'" type was not found.';if(this.options.silent){console.error(Yl);return}else throw new Error(Yl)}}}return z},H.parseInline=function(R,F){F=F||this.renderer;var z="",U,fe,ke,Ie=R.length;for(U=0;U<Ie;U++){if(fe=R[U],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[fe.type]&&(ke=this.options.extensions.renderers[fe.type].call({parser:this},fe),ke!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(fe.type))){z+=ke||"";continue}switch(fe.type){case"escape":{z+=F.text(fe.text);break}case"html":{z+=F.html(fe.text);break}case"link":{z+=F.link(fe.href,fe.title,this.parseInline(fe.tokens,F));break}case"image":{z+=F.image(fe.href,fe.title,fe.text);break}case"strong":{z+=F.strong(this.parseInline(fe.tokens,F));break}case"em":{z+=F.em(this.parseInline(fe.tokens,F));break}case"codespan":{z+=F.codespan(fe.text);break}case"br":{z+=F.br();break}case"del":{z+=F.del(this.parseInline(fe.tokens,F));break}case"text":{z+=F.text(fe.text);break}default:{var Pe='Token with "'+fe.type+'" type was not found.';if(this.options.silent){console.error(Pe);return}else throw new Error(Pe)}}}return z},Y}();function pe(Y,H,q){if(typeof Y>"u"||Y===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Y!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Y)+", string expected");if(typeof H=="function"&&(q=H,H=null),H=M({},pe.defaults,H||{}),re(H),q){var R=H.highlight,F;try{F=te.lex(Y,H)}catch(Ie){return q(Ie)}var z=function(Pe){var Ze;if(!Pe)try{H.walkTokens&&pe.walkTokens(F,H.walkTokens),Ze=Se.parse(F,H)}catch(Ye){Pe=Ye}return H.highlight=R,Pe?q(Pe):q(null,Ze)};if(!R||R.length<3||(delete H.highlight,!F.length))return z();var U=0;pe.walkTokens(F,function(Ie){Ie.type==="code"&&(U++,setTimeout(function(){R(Ie.text,Ie.lang,function(Pe,Ze){if(Pe)return z(Pe);Ze!=null&&Ze!==Ie.text&&(Ie.text=Ze,Ie.escaped=!0),U--,U===0&&z()})},0))}),U===0&&z();return}function fe(Ie){if(Ie.message+=`
|
544
|
+
Please report this to https://github.com/markedjs/marked.`,H.silent)return"<p>An error occurred:</p><pre>"+m(Ie.message+"",!0)+"</pre>";throw Ie}try{var ke=te.lex(Y,H);if(H.walkTokens){if(H.async)return Promise.all(pe.walkTokens(ke,H.walkTokens)).then(function(){return Se.parse(ke,H)}).catch(fe);pe.walkTokens(ke,H.walkTokens)}return Se.parse(ke,H)}catch(Ie){fe(Ie)}}pe.options=pe.setOptions=function(Y){return M(pe.defaults,Y),l(pe.defaults),pe},pe.getDefaults=a,pe.defaults=e.defaults,pe.use=function(){for(var Y=arguments.length,H=new Array(Y),q=0;q<Y;q++)H[q]=arguments[q];var R=M.apply(void 0,[{}].concat(H)),F=pe.defaults.extensions||{renderers:{},childTokens:{}},z;H.forEach(function(U){if(U.extensions&&(z=!0,U.extensions.forEach(function(ke){if(!ke.name)throw new Error("extension name required");if(ke.renderer){var Ie=F.renderers?F.renderers[ke.name]:null;Ie?F.renderers[ke.name]=function(){for(var Pe=arguments.length,Ze=new Array(Pe),Ye=0;Ye<Pe;Ye++)Ze[Ye]=arguments[Ye];var Vt=ke.renderer.apply(this,Ze);return Vt===!1&&(Vt=Ie.apply(this,Ze)),Vt}:F.renderers[ke.name]=ke.renderer}if(ke.tokenizer){if(!ke.level||ke.level!=="block"&&ke.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");F[ke.level]?F[ke.level].unshift(ke.tokenizer):F[ke.level]=[ke.tokenizer],ke.start&&(ke.level==="block"?F.startBlock?F.startBlock.push(ke.start):F.startBlock=[ke.start]:ke.level==="inline"&&(F.startInline?F.startInline.push(ke.start):F.startInline=[ke.start]))}ke.childTokens&&(F.childTokens[ke.name]=ke.childTokens)})),U.renderer&&function(){var ke=pe.defaults.renderer||new xe,Ie=function(Ye){var Vt=ke[Ye];ke[Ye]=function(){for(var Et=arguments.length,Me=new Array(Et),Mt=0;Mt<Et;Mt++)Me[Mt]=arguments[Mt];var Ut=U.renderer[Ye].apply(ke,Me);return Ut===!1&&(Ut=Vt.apply(ke,Me)),Ut}};for(var Pe in U.renderer)Ie(Pe);R.renderer=ke}(),U.tokenizer&&function(){var ke=pe.defaults.tokenizer||new ue,Ie=function(Ye){var Vt=ke[Ye];ke[Ye]=function(){for(var Et=arguments.length,Me=new Array(Et),Mt=0;Mt<Et;Mt++)Me[Mt]=arguments[Mt];var Ut=U.tokenizer[Ye].apply(ke,Me);return Ut===!1&&(Ut=Vt.apply(ke,Me)),Ut}};for(var Pe in U.tokenizer)Ie(Pe);R.tokenizer=ke}(),U.walkTokens){var fe=pe.defaults.walkTokens;R.walkTokens=function(ke){var Ie=[];return Ie.push(U.walkTokens.call(this,ke)),fe&&(Ie=Ie.concat(fe.call(this,ke))),Ie}}z&&(R.extensions=F),pe.setOptions(R)})},pe.walkTokens=function(Y,H){for(var q=[],R=function(){var fe=z.value;switch(q=q.concat(H.call(pe,fe)),fe.type){case"table":{for(var ke=o(fe.header),Ie;!(Ie=ke()).done;){var Pe=Ie.value;q=q.concat(pe.walkTokens(Pe.tokens,H))}for(var Ze=o(fe.rows),Ye;!(Ye=Ze()).done;)for(var Vt=Ye.value,Et=o(Vt),Me;!(Me=Et()).done;){var Mt=Me.value;q=q.concat(pe.walkTokens(Mt.tokens,H))}break}case"list":{q=q.concat(pe.walkTokens(fe.items,H));break}default:pe.defaults.extensions&&pe.defaults.extensions.childTokens&&pe.defaults.extensions.childTokens[fe.type]?pe.defaults.extensions.childTokens[fe.type].forEach(function(Ut){q=q.concat(pe.walkTokens(fe[Ut],H))}):fe.tokens&&(q=q.concat(pe.walkTokens(fe.tokens,H)))}},F=o(Y),z;!(z=F()).done;)R();return q},pe.parseInline=function(Y,H){if(typeof Y>"u"||Y===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Y!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Y)+", string expected");H=M({},pe.defaults,H||{}),re(H);try{var q=te.lexInline(Y,H);return H.walkTokens&&pe.walkTokens(q,H.walkTokens),Se.parseInline(q,H)}catch(R){if(R.message+=`
|
545
|
+
Please report this to https://github.com/markedjs/marked.`,H.silent)return"<p>An error occurred:</p><pre>"+m(R.message+"",!0)+"</pre>";throw R}},pe.Parser=Se,pe.parser=Se.parse,pe.Renderer=xe,pe.TextRenderer=ge,pe.Lexer=te,pe.lexer=te.lex,pe.Tokenizer=ue,pe.Slugger=Ce,pe.parse=pe;var Q=pe.options,Xe=pe.setOptions,et=pe.use,Fe=pe.walkTokens,j=pe.parseInline,le=pe,be=Se.parse,$e=te.lex;e.Lexer=te,e.Parser=Se,e.Renderer=xe,e.Slugger=Ce,e.TextRenderer=ge,e.Tokenizer=ue,e.getDefaults=a,e.lexer=$e,e.marked=pe,e.options=Q,e.parse=le,e.parseInline=j,e.parser=be,e.setOptions=Xe,e.use=et,e.walkTokens=Fe,Object.defineProperty(e,"__esModule",{value:!0})})})(),Ir.Lexer||he.Lexer,Ir.Parser||he.Parser,Ir.Renderer||he.Renderer,Ir.Slugger||he.Slugger,Ir.TextRenderer||he.TextRenderer,Ir.Tokenizer||he.Tokenizer,Ir.getDefaults||he.getDefaults,Ir.lexer||he.lexer;var Ol=Ir.marked||he.marked;Ir.options||he.options,Ir.parse||he.parse,Ir.parseInline||he.parseInline,Ir.parser||he.parser,Ir.setOptions||he.setOptions,Ir.use||he.use,Ir.walkTokens||he.walkTokens;function CQe(n){return JSON.stringify(n,wQe)}function _M(n){let e=JSON.parse(n);return e=vM(e),e}function wQe(n,e){return e instanceof RegExp?{$mid:2,source:e.source,flags:LS(e)}:e}function vM(n,e=0){if(!n||e>200)return n;if(typeof n=="object"){switch(n.$mid){case 1:return Nt.revive(n);case 2:return new RegExp(n.source,n.flags);case 16:return new Date(n.source)}if(n instanceof NO||n instanceof Uint8Array)return n;if(Array.isArray(n))for(let t=0;t<n.length;++t)n[t]=vM(n[t],e+1);else for(const t in n)Object.hasOwnProperty.call(n,t)&&(n[t]=vM(n[t],e+1))}return n}const bM=Object.freeze({image:(n,e,t)=>{let i=[],r=[];return n&&({href:n,dimensions:i}=dQe(n),r.push(`src="${I2(n)}"`)),t&&r.push(`alt="${I2(t)}"`),e&&r.push(`title="${I2(e)}"`),i.length&&(r=r.concat(i)),"<img "+r.join(" ")+">"},paragraph:n=>`<p>${n}</p>`,link:(n,e,t)=>typeof n!="string"?"":(n===t&&(t=fM(t)),e=typeof e=="string"?I2(fM(e)):"",n=fM(n),n=n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="${n}" title="${e||n}">${t}</a>`)});function SQ(n,e={},t={}){var i,r;const s=new Je;let o=!1;const a=mM(e),l=function(v){let _;try{_=_M(decodeURIComponent(v))}catch{}return _?(_=lq(_,b=>{if(n.uris&&n.uris[b])return Nt.revive(n.uris[b])}),encodeURIComponent(JSON.stringify(_))):v},c=function(v,_){const b=n.uris&&n.uris[v];let y=Nt.revive(b);return _?v.startsWith(mt.data+":")?v:(y||(y=Nt.parse(v)),nY.uriToBrowserUri(y).toString(!0)):!y||Nt.parse(v).toString()===y.toString()?v:(y.query&&(y=y.with({query:l(y.query)})),y.toString())},u=new Ol.Renderer;u.image=bM.image,u.link=bM.link,u.paragraph=bM.paragraph;const d=[],h=[];if(e.codeBlockRendererSync?u.code=(v,_)=>{const b=wQ.nextId(),y=e.codeBlockRendererSync(xQ(_),v);return h.push([b,y]),`<div class="code" data-code="${b}">${oO(v)}</div>`}:e.codeBlockRenderer&&(u.code=(v,_)=>{const b=wQ.nextId(),y=e.codeBlockRenderer(xQ(_),v);return d.push(y.then(w=>[b,w])),`<div class="code" data-code="${b}">${oO(v)}</div>`}),e.actionHandler){const v=function(y){let w=y.target;if(!(w.tagName!=="A"&&(w=w.parentElement,!w||w.tagName!=="A")))try{let k=w.dataset.href;k&&(n.baseUri&&(k=yM(Nt.from(n.baseUri),k)),e.actionHandler.callback(k,y))}catch(k){Cn(k)}finally{y.preventDefault()}},_=e.actionHandler.disposables.add(new pt(a,"click")),b=e.actionHandler.disposables.add(new pt(a,"auxclick"));e.actionHandler.disposables.add(ze.any(_.event,b.event)(y=>{const w=new Ta(y);!w.leftButton&&!w.middleButton||v(w)})),e.actionHandler.disposables.add(ye(a,"keydown",y=>{const w=new on(y);!w.equals(10)&&!w.equals(3)||v(w)}))}n.supportHtml||(t.sanitizer=v=>(n.isTrusted?v.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?v:"",t.sanitize=!0,t.silent=!0),t.renderer=u;let f=(i=n.value)!==null&&i!==void 0?i:"";f.length>1e5&&(f=`${f.substr(0,1e5)}…`),n.supportThemeIcons&&(f=oQe(f));let g;if(e.fillInIncompleteTokens){const v=Object.assign(Object.assign({},Ol.defaults),t),_=Ol.lexer(f,v),b=IQe(_);g=Ol.parser(b,v)}else g=Ol.parse(f,t);n.supportThemeIcons&&(g=bf(g).map(_=>typeof _=="string"?_:_.outerHTML).join(""));const p=new DOMParser().parseFromString(CM(n,g),"text/html");if(p.body.querySelectorAll("img").forEach(v=>{const _=v.getAttribute("src");if(_){let b=_;try{n.baseUri&&(b=yM(Nt.from(n.baseUri),b))}catch{}v.src=c(b,!0)}}),p.body.querySelectorAll("a").forEach(v=>{const _=v.getAttribute("href");if(v.setAttribute("href",""),!_||/^data:|javascript:/i.test(_)||/^command:/i.test(_)&&!n.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(_))v.replaceWith(...v.childNodes);else{let b=c(_,!1);n.baseUri&&(b=yM(Nt.from(n.baseUri),_)),v.dataset.href=b}}),a.innerHTML=CM(n,p.body.innerHTML),d.length>0)Promise.all(d).then(v=>{var _,b;if(o)return;const y=new Map(v),w=a.querySelectorAll("div[data-code]");for(const k of w){const L=y.get((_=k.dataset.code)!==null&&_!==void 0?_:"");L&&Hr(k,L)}(b=e.asyncRenderCallback)===null||b===void 0||b.call(e)});else if(h.length>0){const v=new Map(h),_=a.querySelectorAll("div[data-code]");for(const b of _){const y=v.get((r=b.dataset.code)!==null&&r!==void 0?r:"");y&&Hr(b,y)}}if(e.asyncRenderCallback)for(const v of a.getElementsByTagName("img")){const _=s.add(ye(v,"load",()=>{_.dispose(),e.asyncRenderCallback()}))}return{element:a,dispose:()=>{o=!0,s.dispose()}}}function xQ(n){if(!n)return"";const e=n.split(/[\s+|:|,|\{|\?]/,1);return e.length?e[0]:n}function yM(n,e){return/^\w[\w\d+.-]*:/.test(e)?e:n.path.endsWith("/")?uX(n,e).toString():uX(wYe(n),e).toString()}function CM(n,e){const{config:t,allowedSchemes:i}=xQe(n);JG("uponSanitizeAttribute",(s,o)=>{if(o.attrName==="style"||o.attrName==="class"){if(s.tagName==="SPAN"){if(o.attrName==="style"){o.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(o.attrValue);return}else if(o.attrName==="class"){o.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(o.attrValue);return}}o.keepAttr=!1;return}});const r=pze(i);try{return QG(e,Object.assign(Object.assign({},t),{RETURN_TRUSTED_TYPE:!0}))}finally{eY("uponSanitizeAttribute"),r.dispose()}}const SQe=["align","autoplay","alt","class","controls","data-code","data-href","height","href","loop","muted","playsinline","poster","src","style","target","title","width","start"];function xQe(n){const e=[mt.http,mt.https,mt.mailto,mt.data,mt.file,mt.vscodeFileResource,mt.vscodeRemote,mt.vscodeRemoteResource];return n.isTrusted&&e.push(mt.command),{config:{ALLOWED_TAGS:[..._ze],ALLOWED_ATTR:SQe,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:e}}function LQe(n){return typeof n=="string"?n:kQe(n)}function kQe(n){var e;let t=(e=n.value)!==null&&e!==void 0?e:"";t.length>1e5&&(t=`${t.substr(0,1e5)}…`);const i=Ol.parse(t,{renderer:EQe.value}).replace(/&(#\d+|[a-zA-Z]+);/g,r=>{var s;return(s=DQe.get(r))!==null&&s!==void 0?s:r});return CM({isTrusted:!1},i).toString()}const DQe=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),EQe=new X_(()=>{const n=new Ol.Renderer;return n.code=e=>e,n.blockquote=e=>e,n.html=e=>"",n.heading=(e,t,i)=>e+`
|
546
546
|
`,n.hr=()=>"",n.list=(e,t)=>e,n.listitem=e=>e+`
|
547
547
|
`,n.paragraph=e=>e+`
|
548
548
|
`,n.table=(e,t)=>e+t+`
|
@@ -1049,7 +1049,7 @@ ${e.toString()}`}}class NL{constructor(e=new Db,t=!1,i,r=Tit){var s;this._servic
|
|
1049
1049
|
`,s==="\r"&&r+1<t.length&&t.charAt(r+1)===`
|
1050
1050
|
`&&r++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return Ha.create(0,e);for(;i<r;){var s=Math.floor((i+r)/2);t[s]>e?r=s:i=s+1}var o=i-1;return Ha.create(o,e-t[o])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)},Object.defineProperty(n.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),n}(),ve;(function(n){var e=Object.prototype.toString;function t(f){return typeof f<"u"}n.defined=t;function i(f){return typeof f>"u"}n.undefined=i;function r(f){return f===!0||f===!1}n.boolean=r;function s(f){return e.call(f)==="[object String]"}n.string=s;function o(f){return e.call(f)==="[object Number]"}n.number=o;function a(f,g,m){return e.call(f)==="[object Number]"&&g<=f&&f<=m}n.numberRange=a;function l(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}n.integer=l;function c(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}n.uinteger=c;function u(f){return e.call(f)==="[object Function]"}n.func=u;function d(f){return f!==null&&typeof f=="object"}n.objectLiteral=d;function h(f,g){return Array.isArray(f)&&f.every(g)}n.typedArray=h})(ve||(ve={}));var Xo="yaml";function Oot(n){switch(n){case w1.Error:return C1.Error;case w1.Warning:return C1.Warning;case w1.Hint:return C1.Hint;default:return C1.Info}}function Not(n){return n===W6.Deprecated?O6.Deprecated:O6.Unnecessary}function Pne(n){var e;return{severity:Oot(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:String(n.code),source:n.source,tags:(e=n.tags)==null?void 0:e.map(Not)}}function Rne(n){return{owner:Xo,async provideMarkerData(e){const i=await(await n(e.uri)).doValidation(String(e.uri));return i==null?void 0:i.map(Pne)},async doReset(e){await(await n(e.uri)).resetSchema(String(e.uri))}}}function U6(n){return{character:n.column-1,line:n.lineNumber-1}}function ql(n){return new A6(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)}function Fne(n){return{start:{line:n.startLineNumber-1,character:n.startColumn-1},end:{line:n.endLineNumber-1,character:n.endColumn-1}}}function Mot(n){return{message:n.message,range:Fne(n),code:typeof n.code=="object"?n.code.value:n.code,source:n.source}}function Pot(n){const e=Cs.CompletionItemKind;switch(n){case $i.Text:return e.Text;case $i.Method:return e.Method;case $i.Function:return e.Function;case $i.Constructor:return e.Constructor;case $i.Field:return e.Field;case $i.Variable:return e.Variable;case $i.Class:return e.Class;case $i.Interface:return e.Interface;case $i.Module:return e.Module;case $i.Property:return e.Property;case $i.Unit:return e.Unit;case $i.Value:return e.Value;case $i.Enum:return e.Enum;case $i.Keyword:return e.Keyword;case $i.Snippet:return e.Snippet;case $i.Color:return e.Color;case $i.File:return e.File;case $i.Reference:return e.Reference;default:return e.Property}}function Bne(n){return{range:ql(n.range),text:n.newText}}function Rot(n){return{triggerCharacters:[" ",":"],async provideCompletionItems(e,t){const i=e.uri,s=await(await n(i)).doComplete(String(i),U6(t));if(!s)return;const o=e.getWordUntilPosition(t),a=new A6(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),l=s.items.map(c=>{var u;const d={label:c.label,insertText:(u=c.insertText)!=null?u:c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,kind:Pot(c.kind),range:a};return c.textEdit&&(d.range=ql("range"in c.textEdit?c.textEdit.range:c.textEdit.replace),d.insertText=c.textEdit.newText),c.additionalTextEdits&&(d.additionalTextEdits=c.additionalTextEdits.map(Bne)),c.insertTextFormat===H6.Snippet&&(d.insertTextRules=Cs.CompletionItemInsertTextRule.InsertAsSnippet),d});return{incomplete:s.isIncomplete,suggestions:l}}}}function Fot(n){return{originSelectionRange:n.originSelectionRange&&ql(n.originSelectionRange),range:ql(n.targetRange),targetSelectionRange:ql(n.targetSelectionRange),uri:N6.parse(n.targetUri)}}function Bot(n){return{async provideDefinition(e,t){const i=e.uri,s=await(await n(i)).doDefinition(String(i),U6(t));return s==null?void 0:s.map(Fot)}}}function Wot(n){return{async provideHover(e,t){const i=e.uri,s=await(await n(i)).doHover(String(i),U6(t));if(s)return{range:s.range&&ql(s.range),contents:[{value:s.contents.value}]}}}}function Vot(n){const e=Cs.SymbolKind;switch(n){case Hi.File:return e.Array;case Hi.Module:return e.Module;case Hi.Namespace:return e.Namespace;case Hi.Package:return e.Package;case Hi.Class:return e.Class;case Hi.Method:return e.Method;case Hi.Property:return e.Property;case Hi.Field:return e.Field;case Hi.Constructor:return e.Constructor;case Hi.Enum:return e.Enum;case Hi.Interface:return e.Interface;case Hi.Function:return e.Function;case Hi.Variable:return e.Variable;case Hi.Constant:return e.Constant;case Hi.String:return e.String;case Hi.Number:return e.Number;case Hi.Boolean:return e.Boolean;case Hi.Array:return e.Array;default:return e.Function}}function Wne(n){var e,t;return{detail:(e=n.detail)!=null?e:"",range:ql(n.range),name:n.name,kind:Vot(n.kind),selectionRange:ql(n.selectionRange),children:(t=n.children)==null?void 0:t.map(Wne),tags:[]}}function $ot(n){return{async provideDocumentSymbols(e){const t=e.uri,r=await(await n(t)).findDocumentSymbols(String(t));if(r)return r.map(Wne)}}}function Hot(n){return{async provideDocumentFormattingEdits(e){const t=e.uri,r=await(await n(t)).format(String(t),{});if(!(!r||r.length===0))return r.map(Bne)}}}function jot(n){return{range:ql(n.range),tooltip:n.tooltip,url:n.target}}function zot(n){return{async provideLinks(e){const t=e.uri,r=await(await n(t)).findLinks(String(t));if(r)return{links:r.map(jot)}}}}function Uot(n){const e=[];if(n.changes)for(const[t,i]of Object.entries(n.changes))for(const r of i){const s={text:r.newText,range:ql(r.range)};e.push({resource:N6.parse(t),versionId:void 0,textEdit:s,edit:s})}return{edits:e}}function qot(n){var e,t;return{title:n.title,diagnostics:(e=n.diagnostics)==null?void 0:e.map(Pne),disabled:(t=n.disabled)==null?void 0:t.reason,edit:n.edit?Uot(n.edit):void 0,kind:n.kind,isPreferred:n.isPreferred}}function Kot(n){return{async provideCodeActions(e,t,i){const r=e.uri,o=await(await n(r)).getCodeAction(String(r),Fne(t),i.markers.map(Mot));if(o)return{actions:o.map(qot),dispose(){}}}}}var Got={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:Cs.IndentAction.Indent}}]};function Yot(n){const e=Iot(P6,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:{languageSettings:n.diagnosticsOptions,enableSchemaRequest:n.diagnosticsOptions.enableSchemaRequest}});n.onDidChange(()=>{e.updateCreateData({languageSettings:n.diagnosticsOptions,enableSchemaRequest:n.diagnosticsOptions.enableSchemaRequest})}),Cs.registerCompletionItemProvider(Xo,Rot(e.getWorker)),Cs.registerHoverProvider(Xo,Wot(e.getWorker)),Cs.registerDefinitionProvider(Xo,Bot(e.getWorker)),Cs.registerDocumentSymbolProvider(Xo,$ot(e.getWorker)),Cs.registerDocumentFormattingEditProvider(Xo,Hot(e.getWorker)),Cs.registerLinkProvider(Xo,zot(e.getWorker)),Cs.registerCodeActionProvider(Xo,Kot(e.getWorker)),Cs.setLanguageConfiguration(Xo,Got);let t=zte(P6,Xo,Rne(e.getWorker));n.onDidChange(()=>{t.dispose(),t=zte(P6,Xo,Rne(e.getWorker))})}var Vne={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2"};function Zot(n){const e=new jte;let t=n;const i={get onDidChange(){return e.event},get diagnosticsOptions(){return t},setDiagnosticsOptions(r){t={...Vne,...r},e.fire(i)}};return i}var $ne=Zot(Vne);Cs.register({id:Xo,extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]}),Cs.onLanguage("yaml",()=>{Yot($ne)});function Xot(n={}){$ne.setDiagnosticsOptions(n)}function Qot(n){const{onChange:e,language:t,setError:i,name:r,clearErrors:s}=n,o=T.useRef(null),a=T.useRef({}),l=ag();return T.useEffect(()=>{var u;Xot({validate:!0,format:!0,schemas:[{uri:"",fileMatch:[],schema:{type:"object",properties:{},additionalProperties:!0}}]}),na.editor.defineTheme("my-dark",{base:"vs-dark",inherit:!0,colors:{"editor.background":"#00000000","minimap.background":"#00000000","scrollbarSlider.background":"#FFFFFF22"},rules:[{token:"",background:"#222222"}]}),na.editor.defineTheme("my-light",{base:"vs",inherit:!0,colors:{"editor.background":"#FFFFFF00","minimap.background":"#FFFFFF00","scrollbarSlider.background":"#FFFFFF22"},rules:[]});let c;return na.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),o.current&&(c=(u=na==null?void 0:na.editor)==null?void 0:u.create(o.current,{lineNumbers:"on",theme:"my-dark",lineDecorationsWidth:8,padding:{top:6,bottom:8},fontSize:14,fontFamily:"RedHatMono",scrollBeyondLastLine:!1,minimap:{enabled:!1},renderLineHighlightOnlyWhenFocus:!0}),a.current.editor=c),window.MonacoEnvironment={getWorker(d,h){switch(h){case"editorWorkerService":return new Worker(new URL("/assets/editor.worker-9a091e5f.js",self.location),{type:"module"});case"json":return new Worker(new URL("/assets/json.worker-f7b9576c.js",self.location),{type:"module"});case"yaml":return new Worker(new URL("/assets/yaml.worker-640dd2e2.js",self.location),{type:"module"});default:throw new Error(`Unknown label ${h}`)}}},()=>{c.dispose()}},[]),T.useEffect(()=>{var g,m,p,v,_,b,y,w,k;const c=(g=a==null?void 0:a.current)==null?void 0:g.editor,u=na.editor.getModels()[0];c&&u&&t&&na.editor.setModelLanguage(u,t),(v=(p=(m=a.current)==null?void 0:m.editor)==null?void 0:p.getModel())==null||v.onDidChangeContent(()=>{var L,D;e(((D=(L=a.current)==null?void 0:L.editor)==null?void 0:D.getValue())??"")});const d=(b=(_=a.current)==null?void 0:_.editor)==null?void 0:b.getValue();(y=a.current)!=null&&y.editor&&d!==n.value&&((k=(w=a.current)==null?void 0:w.editor)==null||k.setValue(n.value));const h=n.value.split(`
|
1051
1051
|
`),f=document.getElementById("wrapper");h.length>0&&f&&(f.style.minHeight="75px",f.style.height=`${(h.length+3)*19}px`)},[n.value,t,e]),_g(o,()=>{var c;(c=a.current)!=null&&c.editor&&a.current.editor.layout()}),T.useEffect(()=>{var c;(c=a.current)!=null&&c.editor&&a.current.editor.updateOptions({theme:l.activeTheme==="dark"?"my-dark":"my-light"})},[l.activeTheme]),T.useEffect(()=>{na.editor.onDidChangeMarkers(()=>{var u,d;const c=na.editor.getModelMarkers({owner:(d=(u=na.editor)==null?void 0:u.getModels()[0])==null?void 0:d.getLanguageId()});c.length>0?i(r,{message:c.map(h=>h.message).join(`
|
1052
|
-
`)}):s(r)})},[i,s,r]),x.jsx("div",{className:"pf-c-form-control",id:"wrapper",style:{backgroundPosition:"calc(100% - 1.2em) .5em",padding:0},"aria-invalid":n.invalid?"true":void 0,children:x.jsx("div",{id:n.id,ref:o,style:{height:"100%"}})})}const Hne=un(
|
1052
|
+
`)}):s(r)})},[i,s,r]),x.jsx("div",{className:"pf-c-form-control",id:"wrapper",style:{backgroundPosition:"calc(100% - 1.2em) .5em",padding:0},"aria-invalid":n.invalid?"true":void 0,children:x.jsx("div",{id:n.id,ref:o,style:{height:"100%"}})})}const Hne=un(P.ToggleGroupItem)`
|
1053
1053
|
&&:first-child#copy-button {
|
1054
1054
|
margin-right: auto;
|
1055
1055
|
}
|
@@ -1057,7 +1057,7 @@ ${e.toString()}`}}class NL{constructor(e=new Db,t=!1,i,r=Tit){var s;this._servic
|
|
1057
1057
|
color: var(--pf-c-form__helper-text--m-error--Color);
|
1058
1058
|
font-size: var(--pf-c-form__helper-text--FontSize);
|
1059
1059
|
`;function eat(n){const{t:e}=ts(),{isReadOnly:t,validate:i,isExpandable:r,defaultExpanded:s,...o}=n,{label:a,name:l,isRequired:c}=n,{formState:{isSubmitting:u,isValidating:d,errors:h},setError:f,clearErrors:g,getValues:m,control:p,setValue:v}=bc();T.useEffect(()=>{h[l]||g(l)},[h,l,g]);const _=n.id??l.split(".").join("-"),[b,y]=T.useState("yaml"),[w,k]=T.useState(!s),L=T.useCallback(I=>{const M=m(l);if(!(I!=="json"&&I!=="yaml"||!M)){if(aBe(M))return I==="json"?v(l,M):v(l,eq(M));if(oBe(M))return I==="json"?v(l,M):v(l,eq(JSON.stringify(M)));I==="json"?v(l,sBe(M)):v(l,M)}},[m,l,v]),D=T.useCallback(I=>{try{L(I),y(I)}catch(M){M instanceof Error?f(l,{message:M.message}):f(l,{message:e("Invalid syntax")})}},[L,l,f,e]),E=X3(),N=T.useCallback(async()=>{const I={variant:"success",title:e("Copied to clipboard")};try{await navigator.clipboard.writeText(m(l)),E.addAlert(I)}catch(M){M instanceof Error?E.replaceAlert(I,{variant:"danger",title:e("Failed to copy to clipboard"),children:M instanceof Error&&M.message}):E.replaceAlert(I,{variant:"danger",title:e("Failed to copy to clipboard"),children:e("Unable to copy")})}},[E,e,m,l]),O=[x.jsx(Hne,{id:"copy-button","aria-label":e("Copy to clipboard"),isSelected:!1,isDisabled:!1,icon:x.jsx(yt.CopyIcon,{}),type:"button",onClick:()=>void N()},"copy-button")];return n.toggleLanguages&&n.toggleLanguages.forEach(I=>{O.push(x.jsx(Hne,{id:`toggle-${I}`,"aria-label":e("Toggle to {{language}}"),isSelected:b===I,isDisabled:!!h[l],text:I,type:"button",onChange:()=>D(I)},I))}),x.jsx(Qg,{name:l,control:p,shouldUnregister:!0,render:({field:{name:I,onChange:M,value:B},fieldState:{error:V}})=>{var re;const ee=[...new Set((re=V==null?void 0:V.message)==null?void 0:re.split(`
|
1060
|
-
`))];return x.jsx(z1,{...o,label:r?x.jsxs("span",{style:{alignItems:"center"},children:[x.jsx(yt.AngleRightIcon,{style:{transform:w?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>k(se=>!se),"aria-label":e("Expand or collapse extra variables")}),n.label]}):n.label,id:_,helperTextInvalid:!(i&&d)&&(ee==null?void 0:ee.map(se=>x.jsx(Jot,{children:se},se))),children:(!r||!w)&&x.jsxs(x.Fragment,{children:[x.jsx(R.ToggleGroup,{isCompact:!0,children:O}),x.jsx(Qot,{setError:f,clearErrors:g,id:_,name:I,language:b,value:B,onChange:M,isReadOnly:t||u,invalid:!(i&&d)&&(V==null?void 0:V.message)!==void 0})]})})},rules:{required:typeof a=="string"&&c===!0?{value:!0,message:`${cl(a.toLocaleLowerCase())} is required.`}:void 0,validate:n.validate}})}function tat(n){const{name:e,label:t,labelHelpTitle:i,labelHelp:r,additionalControls:s,placeholderText:o,options:a,footer:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:h,validate:f,fieldNameToResetOnFieldChange:g}=n,m=n.id??e.split(".").join("-"),{control:p,formState:{isSubmitting:v,isValidating:_},resetField:b}=bc(),[y,w]=T.useState(!1),k=T.useCallback(()=>w(D=>!D),[]),[L]=yi();return x.jsx(Qg,{name:e,control:p,shouldUnregister:!0,render:({field:{onChange:D,value:E},fieldState:{error:N}})=>{E===""&&a.length===1&&h&&D(a[0].value);const O=(B,V)=>{var ee;D((ee=a.find(re=>re.label===V.toString()))==null?void 0:ee.value),g&&b(g),w(!1)},I=N!=null&&N.message?f&&_?L.validating:N==null?void 0:N.message:void 0,M=a.find(B=>B.value===E);return x.jsx(R.FormGroup,{id:`${m??""}-form-group`,fieldId:m,label:t,labelIcon:r?x.jsx(rg,{title:i,help:r}):void 0,labelInfo:s,helperText:c,helperTextInvalid:I,validated:I?"error":void 0,isRequired:h,children:x.jsx(R.Select,{id:m,label:void 0,placeholderText:o,variant:"single","aria-describedby":m?`${m}-form-group`:void 0,selections:M==null?void 0:M.label,onSelect:O,isOpen:y,onToggle:k,maxHeight:280,validated:I?"error":void 0,isDisabled:u||d||v,hasPlaceholderStyle:!0,footer:l,children:a.map(B=>x.jsx(R.SelectOption,{value:B.label,label:B.label,description:B.description,children:B.label},B.label))})})},rules:{required:typeof t=="string"&&h===!0?{value:!0,message:`${cl(t.toLocaleLowerCase())} is required.`}:void 0,validate:f}})}function nat(n){const{name:e,id:t,helperText:i,validate:r,additionalControls:s,formLabel:o,labelHelp:a,labelHelpTitle:l,...c}=n,{control:u,formState:{isSubmitting:d,isValidating:h}}=bc();return x.jsx(Qg,{name:e,control:u,shouldUnregister:!0,render:({field:{onChange:f,value:g},fieldState:{error:m}})=>x.jsx(R.FormGroup,{helperTextInvalid:!(r&&h)&&(m==null?void 0:m.message),fieldId:t,label:o,helperText:i,validated:m!=null&&m.message?"error":void 0,labelInfo:s,labelIcon:a?x.jsx(rg,{title:l,help:a}):void 0,children:x.jsx(R.Switch,{...c,isChecked:g,onChange:p=>f(p),isDisabled:d})})})}function iat(n){const{name:e,label:t,isReadOnly:i,isRequired:r,minLength:s,maxLength:o,pattern:a,validate:l}=n,{control:c,formState:{isSubmitting:u}}=bc();return x.jsx(Qg,{name:e,control:c,shouldUnregister:!0,render:({field:{onChange:d,value:h},fieldState:{error:f}})=>x.jsx(kz,{...n,id:n.id??e,value:h,onChange:d,helperTextInvalid:f==null?void 0:f.message,isReadOnly:i||u,minLength:void 0,maxLength:void 0}),rules:{required:typeof t=="string"&&r===!0?{value:!0,message:`${cl(t.toLocaleLowerCase())} is required.`}:void 0,minLength:typeof t=="string"&&typeof s=="number"?{value:s,message:`${cl(t.toLocaleLowerCase())} must be at least ${s} characters.`}:s,maxLength:typeof t=="string"&&typeof o=="number"?{value:o,message:`${cl(t.toLocaleLowerCase())} cannot be greater than ${o} characters.`}:o,pattern:a,validate:l}})}function rat(n){const{type:e,name:t,label:i,labelHelpTitle:r,labelHelp:s,additionalControls:o,placeholder:a,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:h,validate:f,minLength:g,maxLength:m,min:p,max:v,pattern:_,selectTitle:b,selectOpen:y,selectValue:w,autoFocus:k,autoComplete:L}=n,D=n.id??t.split(".").join("-"),{control:E,setValue:N,formState:{isSubmitting:O,isValidating:I}}=bc(),[M,B]=T.useState(!1),[V]=yi();return x.jsx(Qg,{name:t,control:E,shouldUnregister:!0,render:({field:{onChange:ee,value:re,name:se},fieldState:{error:ie}})=>{const J=ie!=null&&ie.message?f&&I?V.validating:ie==null?void 0:ie.message:void 0;function ue(Z){ee(Z.trimStart())}return x.jsx(R.FormGroup,{id:`${D??""}-form-group`,fieldId:D,label:i,helperText:c,helperTextInvalid:J,validated:J?"error":void 0,isRequired:h,labelIcon:s?x.jsx(rg,{title:r,help:s}):void 0,labelInfo:o,children:x.jsxs(R.InputGroup,{children:[x.jsx(R.TextInput,{id:D,placeholder:a,onChange:ue,value:re,"aria-describedby":D?`${D}-form-group`:void 0,validated:J?"error":void 0,type:e==="password"?M?"text":"password":e,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:k,autoComplete:L}),e==="password"&&x.jsx(R.Button,{variant:"control",onClick:()=>B(!M),isDisabled:u||d,children:M?x.jsx(yt.EyeIcon,{}):x.jsx(yt.EyeSlashIcon,{})}),b&&x.jsx(R.Button,{ouiaId:`lookup-${se}-button`,variant:"control",onClick:()=>y==null?void 0:y(Z=>{if(w){const X=w(Z);N(se,X,{shouldValidate:!0})}},b),"aria-label":"Options menu",isDisabled:u||O,children:x.jsx(yt.SearchIcon,{})}),l&&l]})})},rules:{required:typeof i=="string"&&h===!0?{value:!0,message:`${cl(i.toLocaleLowerCase())} is required.`}:void 0,validate:f,minLength:typeof i=="string"&&typeof g=="number"?{value:g,message:`${cl(i.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof i=="string"&&typeof m=="number"?{value:m,message:`${cl(i.toLocaleLowerCase())} cannot be greater than ${m} characters.`}:m,min:typeof i=="string"&&(typeof p=="number"||typeof p=="string")?{value:p,message:`${cl(i.toLocaleLowerCase())} must be less than ${p}.`}:g,max:typeof i=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${cl(i.toLocaleLowerCase())} cannot be greater than ${v}.`}:g,pattern:_}})}const q6=Symbol.for("yaml.alias"),sat=Symbol.for("yaml.document"),Vf=Symbol.for("yaml.map"),jne=Symbol.for("yaml.pair"),K6=Symbol.for("yaml.scalar"),D1=Symbol.for("yaml.seq"),Kl=Symbol.for("yaml.node.type"),Qp=n=>!!n&&typeof n=="object"&&n[Kl]===q6,XL=n=>!!n&&typeof n=="object"&&n[Kl]===sat,zne=n=>!!n&&typeof n=="object"&&n[Kl]===Vf,Mr=n=>!!n&&typeof n=="object"&&n[Kl]===jne,or=n=>!!n&&typeof n=="object"&&n[Kl]===K6,G6=n=>!!n&&typeof n=="object"&&n[Kl]===D1;function Co(n){if(n&&typeof n=="object")switch(n[Kl]){case Vf:case D1:return!0}return!1}function Hs(n){if(n&&typeof n=="object")switch(n[Kl]){case q6:case Vf:case K6:case D1:return!0}return!1}const oat=n=>(or(n)||Co(n))&&!!n.anchor,$f=Symbol("break visit"),aat=Symbol("skip children"),E1=Symbol("remove node");function T1(n,e){const t=lat(e);XL(n)?Jp(null,n.contents,t,Object.freeze([n]))===E1&&(n.contents=null):Jp(null,n,t,Object.freeze([]))}T1.BREAK=$f,T1.SKIP=aat,T1.REMOVE=E1;function Jp(n,e,t,i){const r=cat(n,e,t,i);if(Hs(r)||Mr(r))return uat(n,i,r),Jp(n,r,t,i);if(typeof r!="symbol"){if(Co(e)){i=Object.freeze(i.concat(e));for(let s=0;s<e.items.length;++s){const o=Jp(s,e.items[s],t,i);if(typeof o=="number")s=o-1;else{if(o===$f)return $f;o===E1&&(e.items.splice(s,1),s-=1)}}}else if(Mr(e)){i=Object.freeze(i.concat(e));const s=Jp("key",e.key,t,i);if(s===$f)return $f;s===E1&&(e.key=null);const o=Jp("value",e.value,t,i);if(o===$f)return $f;o===E1&&(e.value=null)}}return r}function lat(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function cat(n,e,t,i){var r,s,o,a,l;if(typeof t=="function")return t(n,e,i);if(zne(e))return(r=t.Map)==null?void 0:r.call(t,n,e,i);if(G6(e))return(s=t.Seq)==null?void 0:s.call(t,n,e,i);if(Mr(e))return(o=t.Pair)==null?void 0:o.call(t,n,e,i);if(or(e))return(a=t.Scalar)==null?void 0:a.call(t,n,e,i);if(Qp(e))return(l=t.Alias)==null?void 0:l.call(t,n,e,i)}function uat(n,e,t){const i=e[e.length-1];if(Co(i))i.items[n]=t;else if(Mr(i))n==="key"?i.key=t:i.value=t;else if(XL(i))i.contents=t;else{const r=Qp(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}function Une(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function I1(n,e,t,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,s=i.length;r<s;++r){const o=i[r],a=I1(n,i,String(r),o);a===void 0?delete i[r]:a!==o&&(i[r]=a)}else if(i instanceof Map)for(const r of Array.from(i.keys())){const s=i.get(r),o=I1(n,i,r,s);o===void 0?i.delete(r):o!==s&&i.set(r,o)}else if(i instanceof Set)for(const r of Array.from(i)){const s=I1(n,i,r,r);s===void 0?i.delete(r):s!==r&&(i.delete(r),i.add(s))}else for(const[r,s]of Object.entries(i)){const o=I1(n,i,r,s);o===void 0?delete i[r]:o!==s&&(i[r]=o)}return n.call(e,t,i)}function ja(n,e,t){if(Array.isArray(n))return n.map((i,r)=>ja(i,String(r),t));if(n&&typeof n.toJSON=="function"){if(!t||!oat(n))return n.toJSON(e,t);const i={aliasCount:0,count:1,res:void 0};t.anchors.set(n,i),t.onCreate=s=>{i.res=s,delete t.onCreate};const r=n.toJSON(e,t);return t.onCreate&&t.onCreate(r),r}return typeof n=="bigint"&&!(t!=null&&t.keep)?Number(n):n}class Y6{constructor(e){Object.defineProperty(this,Kl,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:i,onAnchor:r,reviver:s}={}){if(!XL(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=ja(this,"",o);if(typeof r=="function")for(const{count:l,res:c}of o.anchors.values())r(c,l);return typeof s=="function"?I1(s,{"":a},"",a):a}}class dat extends Y6{constructor(e){super(q6),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return T1(e,{Node:(i,r)=>{if(r===this)return T1.BREAK;r.anchor===this.source&&(t=r)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:i,doc:r,maxAliasCount:s}=t,o=this.resolve(r);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=i.get(o);if(a||(ja(o,null,t),a=i.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=QL(r,o,i)),a.count*a.aliasCount>s)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,i){const r=`*${this.source}`;if(e){if(Une(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${r} `}return r}}function QL(n,e,t){if(Qp(e)){const i=e.resolve(n),r=t&&i&&t.get(i);return r?r.count*r.aliasCount:0}else if(Co(e)){let i=0;for(const r of e.items){const s=QL(n,r,t);s>i&&(i=s)}return i}else if(Mr(e)){const i=QL(n,e.key,t),r=QL(n,e.value,t);return Math.max(i,r)}return 1}const qne=n=>!n||typeof n!="function"&&typeof n!="object";class ji extends Y6{constructor(e){super(K6),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:ja(this.value,e,t)}toString(){return String(this.value)}}ji.BLOCK_FOLDED="BLOCK_FOLDED",ji.BLOCK_LITERAL="BLOCK_LITERAL",ji.PLAIN="PLAIN",ji.QUOTE_DOUBLE="QUOTE_DOUBLE",ji.QUOTE_SINGLE="QUOTE_SINGLE";const hat="tag:yaml.org,2002:";function fat(n,e,t){if(e){const i=t.filter(s=>s.tag===e),r=i.find(s=>!s.format)??i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return t.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,n))&&!i.format})}function JL(n,e,t){var d,h,f;if(XL(n)&&(n=n.contents),Hs(n))return n;if(Mr(n)){const g=(h=(d=t.schema[Vf]).createNode)==null?void 0:h.call(d,t.schema,null,t);return g.items.push(n),g}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:i,onAnchor:r,onTagObj:s,schema:o,sourceObjects:a}=t;let l;if(i&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor||(l.anchor=r(n)),new dat(l.anchor);l={anchor:null,node:null},a.set(n,l)}e!=null&&e.startsWith("!!")&&(e=hat+e.slice(2));let c=fat(n,e,o.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const g=new ji(n);return l&&(l.node=g),g}c=n instanceof Map?o[Vf]:Symbol.iterator in Object(n)?o[D1]:o[Vf]}s&&(s(c),delete t.onTagObj);const u=c!=null&&c.createNode?c.createNode(t.schema,n,t):typeof((f=c==null?void 0:c.nodeClass)==null?void 0:f.from)=="function"?c.nodeClass.from(t.schema,n,t):new ji(n);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}function Kne(n,e,t){let i=t;for(let r=e.length-1;r>=0;--r){const s=e[r];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=i,i=o}else i=new Map([[s,i]])}return JL(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const gat=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class ek extends Y6{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(i=>Hs(i)||Mr(i)?i.clone(e):i),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(gat(e))this.add(t);else{const[i,...r]=e,s=this.get(i,!0);if(Co(s))s.addIn(r,t);else if(s===void 0&&this.schema)this.set(i,Kne(this.schema,r,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(e){const[t,...i]=e;if(i.length===0)return this.delete(t);const r=this.get(t,!0);if(Co(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){const[i,...r]=e,s=this.get(i,!0);return r.length===0?!t&&or(s)?s.value:s:Co(s)?s.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Mr(t))return!1;const i=t.value;return i==null||e&&or(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){const[t,...i]=e;if(i.length===0)return this.has(t);const r=this.get(t,!0);return Co(r)?r.hasIn(i):!1}setIn(e,t){const[i,...r]=e;if(r.length===0)this.set(i,t);else{const s=this.get(i,!0);if(Co(s))s.setIn(r,t);else if(s===void 0&&this.schema)this.set(i,Kne(this.schema,r,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}}ek.maxFlowStringSingleLineLength=60;const mat=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function A1(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const Hf=(n,e,t)=>n.endsWith(`
|
1060
|
+
`))];return x.jsx(z1,{...o,label:r?x.jsxs("span",{style:{alignItems:"center"},children:[x.jsx(yt.AngleRightIcon,{style:{transform:w?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>k(se=>!se),"aria-label":e("Expand or collapse extra variables")}),n.label]}):n.label,id:_,helperTextInvalid:!(i&&d)&&(ee==null?void 0:ee.map(se=>x.jsx(Jot,{children:se},se))),children:(!r||!w)&&x.jsxs(x.Fragment,{children:[x.jsx(P.ToggleGroup,{isCompact:!0,children:O}),x.jsx(Qot,{setError:f,clearErrors:g,id:_,name:I,language:b,value:B,onChange:M,isReadOnly:t||u,invalid:!(i&&d)&&(V==null?void 0:V.message)!==void 0})]})})},rules:{required:typeof a=="string"&&c===!0?{value:!0,message:`${cl(a.toLocaleLowerCase())} is required.`}:void 0,validate:n.validate}})}function tat(n){const{name:e,label:t,labelHelpTitle:i,labelHelp:r,additionalControls:s,placeholderText:o,options:a,footer:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:h,validate:f,fieldNameToResetOnFieldChange:g}=n,m=n.id??e.split(".").join("-"),{control:p,formState:{isSubmitting:v,isValidating:_},resetField:b}=bc(),[y,w]=T.useState(!1),k=T.useCallback(()=>w(D=>!D),[]),[L]=yi();return x.jsx(Qg,{name:e,control:p,shouldUnregister:!0,render:({field:{onChange:D,value:E},fieldState:{error:N}})=>{E===""&&a.length===1&&h&&D(a[0].value);const O=(B,V)=>{var ee;D((ee=a.find(re=>re.label===V.toString()))==null?void 0:ee.value),g&&b(g),w(!1)},I=N!=null&&N.message?f&&_?L.validating:N==null?void 0:N.message:void 0,M=a.find(B=>B.value===E);return x.jsx(P.FormGroup,{id:`${m??""}-form-group`,fieldId:m,label:t,labelIcon:r?x.jsx(rg,{title:i,help:r}):void 0,labelInfo:s,helperText:c,helperTextInvalid:I,validated:I?"error":void 0,isRequired:h,children:x.jsx(P.Select,{id:m,label:void 0,placeholderText:o,variant:"single","aria-describedby":m?`${m}-form-group`:void 0,selections:M==null?void 0:M.label,onSelect:O,isOpen:y,onToggle:k,maxHeight:280,validated:I?"error":void 0,isDisabled:u||d||v,hasPlaceholderStyle:!0,footer:l,children:a.map(B=>x.jsx(P.SelectOption,{value:B.label,label:B.label,description:B.description,children:B.label},B.label))})})},rules:{required:typeof t=="string"&&h===!0?{value:!0,message:`${cl(t.toLocaleLowerCase())} is required.`}:void 0,validate:f}})}function nat(n){const{name:e,id:t,helperText:i,validate:r,additionalControls:s,formLabel:o,labelHelp:a,labelHelpTitle:l,...c}=n,{control:u,formState:{isSubmitting:d,isValidating:h}}=bc();return x.jsx(Qg,{name:e,control:u,shouldUnregister:!0,render:({field:{onChange:f,value:g},fieldState:{error:m}})=>x.jsx(P.FormGroup,{helperTextInvalid:!(r&&h)&&(m==null?void 0:m.message),fieldId:t,label:o,helperText:i,validated:m!=null&&m.message?"error":void 0,labelInfo:s,labelIcon:a?x.jsx(rg,{title:l,help:a}):void 0,children:x.jsx(P.Switch,{...c,isChecked:g,onChange:p=>f(p),isDisabled:d})})})}function iat(n){const{name:e,label:t,isReadOnly:i,isRequired:r,minLength:s,maxLength:o,pattern:a,validate:l}=n,{control:c,formState:{isSubmitting:u}}=bc();return x.jsx(Qg,{name:e,control:c,shouldUnregister:!0,render:({field:{onChange:d,value:h},fieldState:{error:f}})=>x.jsx(kz,{...n,id:n.id??e,value:h,onChange:d,helperTextInvalid:f==null?void 0:f.message,isReadOnly:i||u,minLength:void 0,maxLength:void 0}),rules:{required:typeof t=="string"&&r===!0?{value:!0,message:`${cl(t.toLocaleLowerCase())} is required.`}:void 0,minLength:typeof t=="string"&&typeof s=="number"?{value:s,message:`${cl(t.toLocaleLowerCase())} must be at least ${s} characters.`}:s,maxLength:typeof t=="string"&&typeof o=="number"?{value:o,message:`${cl(t.toLocaleLowerCase())} cannot be greater than ${o} characters.`}:o,pattern:a,validate:l}})}function rat(n){const{type:e,name:t,label:i,labelHelpTitle:r,labelHelp:s,additionalControls:o,placeholder:a,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:h,validate:f,minLength:g,maxLength:m,min:p,max:v,pattern:_,selectTitle:b,selectOpen:y,selectValue:w,autoFocus:k,autoComplete:L}=n,D=n.id??t.split(".").join("-"),{control:E,setValue:N,formState:{isSubmitting:O,isValidating:I}}=bc(),[M,B]=T.useState(!1),[V]=yi();return x.jsx(Qg,{name:t,control:E,shouldUnregister:!0,render:({field:{onChange:ee,value:re,name:se},fieldState:{error:ie}})=>{const J=ie!=null&&ie.message?f&&I?V.validating:ie==null?void 0:ie.message:void 0;function ue(Z){ee(Z.trimStart())}return x.jsx(P.FormGroup,{id:`${D??""}-form-group`,fieldId:D,label:i,helperText:c,helperTextInvalid:J,validated:J?"error":void 0,isRequired:h,labelIcon:s?x.jsx(rg,{title:r,help:s}):void 0,labelInfo:o,children:x.jsxs(P.InputGroup,{children:[x.jsx(P.TextInput,{id:D,placeholder:a,onChange:ue,value:re,"aria-describedby":D?`${D}-form-group`:void 0,validated:J?"error":void 0,type:e==="password"?M?"text":"password":e,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:k,autoComplete:L}),e==="password"&&x.jsx(P.Button,{variant:"control",onClick:()=>B(!M),isDisabled:u||d,children:M?x.jsx(yt.EyeIcon,{}):x.jsx(yt.EyeSlashIcon,{})}),b&&x.jsx(P.Button,{ouiaId:`lookup-${se}-button`,variant:"control",onClick:()=>y==null?void 0:y(Z=>{if(w){const X=w(Z);N(se,X,{shouldValidate:!0})}},b),"aria-label":"Options menu",isDisabled:u||O,children:x.jsx(yt.SearchIcon,{})}),l&&l]})})},rules:{required:typeof i=="string"&&h===!0?{value:!0,message:`${cl(i.toLocaleLowerCase())} is required.`}:void 0,validate:f,minLength:typeof i=="string"&&typeof g=="number"?{value:g,message:`${cl(i.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof i=="string"&&typeof m=="number"?{value:m,message:`${cl(i.toLocaleLowerCase())} cannot be greater than ${m} characters.`}:m,min:typeof i=="string"&&(typeof p=="number"||typeof p=="string")?{value:p,message:`${cl(i.toLocaleLowerCase())} must be less than ${p}.`}:g,max:typeof i=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${cl(i.toLocaleLowerCase())} cannot be greater than ${v}.`}:g,pattern:_}})}const q6=Symbol.for("yaml.alias"),sat=Symbol.for("yaml.document"),Vf=Symbol.for("yaml.map"),jne=Symbol.for("yaml.pair"),K6=Symbol.for("yaml.scalar"),D1=Symbol.for("yaml.seq"),Kl=Symbol.for("yaml.node.type"),Qp=n=>!!n&&typeof n=="object"&&n[Kl]===q6,XL=n=>!!n&&typeof n=="object"&&n[Kl]===sat,zne=n=>!!n&&typeof n=="object"&&n[Kl]===Vf,Mr=n=>!!n&&typeof n=="object"&&n[Kl]===jne,or=n=>!!n&&typeof n=="object"&&n[Kl]===K6,G6=n=>!!n&&typeof n=="object"&&n[Kl]===D1;function Co(n){if(n&&typeof n=="object")switch(n[Kl]){case Vf:case D1:return!0}return!1}function Hs(n){if(n&&typeof n=="object")switch(n[Kl]){case q6:case Vf:case K6:case D1:return!0}return!1}const oat=n=>(or(n)||Co(n))&&!!n.anchor,$f=Symbol("break visit"),aat=Symbol("skip children"),E1=Symbol("remove node");function T1(n,e){const t=lat(e);XL(n)?Jp(null,n.contents,t,Object.freeze([n]))===E1&&(n.contents=null):Jp(null,n,t,Object.freeze([]))}T1.BREAK=$f,T1.SKIP=aat,T1.REMOVE=E1;function Jp(n,e,t,i){const r=cat(n,e,t,i);if(Hs(r)||Mr(r))return uat(n,i,r),Jp(n,r,t,i);if(typeof r!="symbol"){if(Co(e)){i=Object.freeze(i.concat(e));for(let s=0;s<e.items.length;++s){const o=Jp(s,e.items[s],t,i);if(typeof o=="number")s=o-1;else{if(o===$f)return $f;o===E1&&(e.items.splice(s,1),s-=1)}}}else if(Mr(e)){i=Object.freeze(i.concat(e));const s=Jp("key",e.key,t,i);if(s===$f)return $f;s===E1&&(e.key=null);const o=Jp("value",e.value,t,i);if(o===$f)return $f;o===E1&&(e.value=null)}}return r}function lat(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function cat(n,e,t,i){var r,s,o,a,l;if(typeof t=="function")return t(n,e,i);if(zne(e))return(r=t.Map)==null?void 0:r.call(t,n,e,i);if(G6(e))return(s=t.Seq)==null?void 0:s.call(t,n,e,i);if(Mr(e))return(o=t.Pair)==null?void 0:o.call(t,n,e,i);if(or(e))return(a=t.Scalar)==null?void 0:a.call(t,n,e,i);if(Qp(e))return(l=t.Alias)==null?void 0:l.call(t,n,e,i)}function uat(n,e,t){const i=e[e.length-1];if(Co(i))i.items[n]=t;else if(Mr(i))n==="key"?i.key=t:i.value=t;else if(XL(i))i.contents=t;else{const r=Qp(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}function Une(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function I1(n,e,t,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,s=i.length;r<s;++r){const o=i[r],a=I1(n,i,String(r),o);a===void 0?delete i[r]:a!==o&&(i[r]=a)}else if(i instanceof Map)for(const r of Array.from(i.keys())){const s=i.get(r),o=I1(n,i,r,s);o===void 0?i.delete(r):o!==s&&i.set(r,o)}else if(i instanceof Set)for(const r of Array.from(i)){const s=I1(n,i,r,r);s===void 0?i.delete(r):s!==r&&(i.delete(r),i.add(s))}else for(const[r,s]of Object.entries(i)){const o=I1(n,i,r,s);o===void 0?delete i[r]:o!==s&&(i[r]=o)}return n.call(e,t,i)}function ja(n,e,t){if(Array.isArray(n))return n.map((i,r)=>ja(i,String(r),t));if(n&&typeof n.toJSON=="function"){if(!t||!oat(n))return n.toJSON(e,t);const i={aliasCount:0,count:1,res:void 0};t.anchors.set(n,i),t.onCreate=s=>{i.res=s,delete t.onCreate};const r=n.toJSON(e,t);return t.onCreate&&t.onCreate(r),r}return typeof n=="bigint"&&!(t!=null&&t.keep)?Number(n):n}class Y6{constructor(e){Object.defineProperty(this,Kl,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:i,onAnchor:r,reviver:s}={}){if(!XL(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=ja(this,"",o);if(typeof r=="function")for(const{count:l,res:c}of o.anchors.values())r(c,l);return typeof s=="function"?I1(s,{"":a},"",a):a}}class dat extends Y6{constructor(e){super(q6),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return T1(e,{Node:(i,r)=>{if(r===this)return T1.BREAK;r.anchor===this.source&&(t=r)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:i,doc:r,maxAliasCount:s}=t,o=this.resolve(r);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=i.get(o);if(a||(ja(o,null,t),a=i.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=QL(r,o,i)),a.count*a.aliasCount>s)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,i){const r=`*${this.source}`;if(e){if(Une(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${r} `}return r}}function QL(n,e,t){if(Qp(e)){const i=e.resolve(n),r=t&&i&&t.get(i);return r?r.count*r.aliasCount:0}else if(Co(e)){let i=0;for(const r of e.items){const s=QL(n,r,t);s>i&&(i=s)}return i}else if(Mr(e)){const i=QL(n,e.key,t),r=QL(n,e.value,t);return Math.max(i,r)}return 1}const qne=n=>!n||typeof n!="function"&&typeof n!="object";class ji extends Y6{constructor(e){super(K6),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:ja(this.value,e,t)}toString(){return String(this.value)}}ji.BLOCK_FOLDED="BLOCK_FOLDED",ji.BLOCK_LITERAL="BLOCK_LITERAL",ji.PLAIN="PLAIN",ji.QUOTE_DOUBLE="QUOTE_DOUBLE",ji.QUOTE_SINGLE="QUOTE_SINGLE";const hat="tag:yaml.org,2002:";function fat(n,e,t){if(e){const i=t.filter(s=>s.tag===e),r=i.find(s=>!s.format)??i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return t.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,n))&&!i.format})}function JL(n,e,t){var d,h,f;if(XL(n)&&(n=n.contents),Hs(n))return n;if(Mr(n)){const g=(h=(d=t.schema[Vf]).createNode)==null?void 0:h.call(d,t.schema,null,t);return g.items.push(n),g}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:i,onAnchor:r,onTagObj:s,schema:o,sourceObjects:a}=t;let l;if(i&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor||(l.anchor=r(n)),new dat(l.anchor);l={anchor:null,node:null},a.set(n,l)}e!=null&&e.startsWith("!!")&&(e=hat+e.slice(2));let c=fat(n,e,o.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const g=new ji(n);return l&&(l.node=g),g}c=n instanceof Map?o[Vf]:Symbol.iterator in Object(n)?o[D1]:o[Vf]}s&&(s(c),delete t.onTagObj);const u=c!=null&&c.createNode?c.createNode(t.schema,n,t):typeof((f=c==null?void 0:c.nodeClass)==null?void 0:f.from)=="function"?c.nodeClass.from(t.schema,n,t):new ji(n);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}function Kne(n,e,t){let i=t;for(let r=e.length-1;r>=0;--r){const s=e[r];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=i,i=o}else i=new Map([[s,i]])}return JL(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const gat=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class ek extends Y6{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(i=>Hs(i)||Mr(i)?i.clone(e):i),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(gat(e))this.add(t);else{const[i,...r]=e,s=this.get(i,!0);if(Co(s))s.addIn(r,t);else if(s===void 0&&this.schema)this.set(i,Kne(this.schema,r,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(e){const[t,...i]=e;if(i.length===0)return this.delete(t);const r=this.get(t,!0);if(Co(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){const[i,...r]=e,s=this.get(i,!0);return r.length===0?!t&&or(s)?s.value:s:Co(s)?s.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Mr(t))return!1;const i=t.value;return i==null||e&&or(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){const[t,...i]=e;if(i.length===0)return this.has(t);const r=this.get(t,!0);return Co(r)?r.hasIn(i):!1}setIn(e,t){const[i,...r]=e;if(r.length===0)this.set(i,t);else{const s=this.get(i,!0);if(Co(s))s.setIn(r,t);else if(s===void 0&&this.schema)this.set(i,Kne(this.schema,r,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}}ek.maxFlowStringSingleLineLength=60;const mat=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function A1(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const Hf=(n,e,t)=>n.endsWith(`
|
1061
1061
|
`)?A1(t,e):t.includes(`
|
1062
1062
|
`)?`
|
1063
1063
|
`+A1(t,e):(n.endsWith(" ")?"":" ")+t,Gne="flow",Z6="block",tk="quoted";function nk(n,e,t="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!r||r<0)return n;const l=Math.max(1+s,1+r-e.length);if(n.length<=l)return n;const c=[],u={};let d=r-e.length;typeof i=="number"&&(i>r-Math.max(2,s)?c.push(0):d=r-i);let h,f,g=!1,m=-1,p=-1,v=-1;t===Z6&&(m=Yne(n,m),m!==-1&&(d=m+l));for(let b;b=n[m+=1];){if(t===tk&&b==="\\"){switch(p=m,n[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if(b===`
|
@@ -1105,11 +1105,11 @@ ${l}${m}`:`
|
|
1105
1105
|
`))&&(d=!0),f.push(y),h=f.length}let g;const{start:m,end:p}=i;if(f.length===0)g=m+p;else if(d||(d=f.reduce((_,b)=>_+b.length+2,2)>ek.maxFlowStringSingleLineLength),d){g=m;for(const v of f)g+=v?`
|
1106
1106
|
${a}${o}${v}`:`
|
1107
1107
|
`;g+=`
|
1108
|
-
${o}${p}`}else g=`${m}${l}${f.join(" ")}${l}${p}`;return n&&(g+=Hf(g,o,c(n)),s&&s()),g}function ak({indent:n,options:{commentString:e}},t,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){const s=A1(e(i),n);t.push(s.trimStart())}}function jf(n,e){const t=or(e)?e.value:e;for(const i of n)if(Mr(i)&&(i.key===e||i.key===t||or(i.key)&&i.key.value===t))return i}class t0 extends ek{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Vf,e),this.items=[]}static from(e,t,i){const{keepUndefined:r,replacer:s}=i,o=new this(e),a=(l,c)=>{if(typeof s=="function")c=s.call(t,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||r)&&o.items.push(e3(l,c,i))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let i;Mr(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new ru(e,e==null?void 0:e.value):i=new ru(e.key,e.value);const r=jf(this.items,i.key),s=(o=this.schema)==null?void 0:o.sortMapEntries;if(r){if(!t)throw new Error(`Key ${i.key} already set`);or(r.value)&&qne(i.value)?r.value.value=i.value:r.value=i.value}else if(s){const a=this.items.findIndex(l=>s(i,l)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(e){const t=jf(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const i=jf(this.items,e),r=i==null?void 0:i.value;return(!t&&or(r)?r.value:r)??void 0}has(e){return!!jf(this.items,e)}set(e,t){this.add(new ru(e,t),!0)}toJSON(e,t,i){const r=i?new i:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(r);for(const s of this.items)Xne(t,r,s);return r}toString(e,t,i){if(!e)return JSON.stringify(this);for(const r of this.items)if(!Mr(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Qne(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:t})}}class Jne extends ek{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(D1,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=lk(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const i=lk(e);if(typeof i!="number")return;const r=this.items[i];return!t&&or(r)?r.value:r}has(e){const t=lk(e);return typeof t=="number"&&t<this.items.length}set(e,t){const i=lk(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[i];or(r)&&qne(t)?r.value=t:this.items[i]=t}toJSON(e,t){const i=[];t!=null&&t.onCreate&&t.onCreate(i);let r=0;for(const s of this.items)i.push(ja(s,String(r++),t));return i}toString(e,t,i){return e?Qne(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:t}):JSON.stringify(this)}static from(e,t,i){const{replacer:r}=i,s=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof r=="function"){const l=t instanceof Set?a:String(o++);a=r.call(t,l,a)}s.items.push(JL(a,void 0,i))}}return s}}function lk(n){let e=or(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function Eat(n,e,t){const{replacer:i}=t,r=new Jne(n);r.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof i=="function"&&(o=i.call(e,String(s++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected { key: value } tuple: ${o}`)}else a=o;r.items.push(e3(a,l,t))}return r}class t3 extends Jne{constructor(){super(),this.add=t0.prototype.add.bind(this),this.delete=t0.prototype.delete.bind(this),this.get=t0.prototype.get.bind(this),this.has=t0.prototype.has.bind(this),this.set=t0.prototype.set.bind(this),this.tag=t3.tag}toJSON(e,t){if(!t)return super.toJSON(e);const i=new Map;t!=null&&t.onCreate&&t.onCreate(i);for(const r of this.items){let s,o;if(Mr(r)?(s=ja(r.key,"",t),o=ja(r.value,s,t)):s=ja(r,"",t),i.has(s))throw new Error("Ordered maps must not include duplicate keys");i.set(s,o)}return i}static from(e,t,i){const r=Eat(e,t,i),s=new this;return s.items=r.items,s}}t3.tag="tag:yaml.org,2002:omap";class n3 extends t0{constructor(e){super(e),this.tag=n3.tag}add(e){let t;Mr(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ru(e.key,null):t=new ru(e,null),jf(this.items,t.key)||this.items.push(t)}get(e,t){const i=jf(this.items,e);return!t&&Mr(i)?or(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const i=jf(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new ru(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,i);throw new Error("Set items must all have null values")}static from(e,t,i){const{replacer:r}=i,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof r=="function"&&(o=r.call(t,o,o)),s.items.push(e3(o,null,i));return s}}n3.tag="tag:yaml.org,2002:set";class ck extends Error{constructor(e,t,i,r,s){super(e),this.details=t,this.statusCode=i,this.body=r,this.json=s,Object.setPrototypeOf(this,ck.prototype),this.name="RequestError"}}function Tat(n){const{defaultValue:e,disableBody:t,disablePadding:i}=n,r=B8e({defaultValues:e??{}}),[s]=yi(),{handleSubmit:o,setError:a}=r,[l,c]=T.useState(null),u=ws("md"),[d]=T.useContext(og),h=n.isVertical?!1:d.formLayout==="horizontal",g=(n.singleColumn?!1:d.formColumns==="multiple")?1600:h?960:800,m=v=>{if(v instanceof Error?c(v):c(new Error("Unknown error")),typeof v=="object"&&v!==null&&"json"in v&&typeof v.json=="object"&&v.json!==null)for(const _ in v.json){let b=v.json[_];typeof b=="string"?a(_,{message:b}):Array.isArray(b)&&(b=b[0],typeof b=="string"&&a(_,{message:b}))}};let p=x.jsx(x8e,{...r,children:x.jsxs(R.Form,{onSubmit:o(async(v,_)=>{var y,w;c(null);let b=!1;_!==void 0&&((y=_==null?void 0:_.nativeEvent)!=null&&y.submitter)&&(b=((w=_.nativeEvent.submitter)==null?void 0:w.innerHTML)===n.additionalActionText);try{await n.onSubmit(v,k=>c(new Error(k)),a,b?r:void 0)}catch(k){m(k)}}),isHorizontal:h,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:n.disableScrolling?void 0:"hidden",gap:0},children:[n.disableScrolling?x.jsx("div",{style:{maxWidth:g,padding:i?void 0:24},children:x.jsx(i3,{isVertical:n.isVertical,singleColumn:n.singleColumn,children:n.children})}):x.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:x.jsx("div",{style:{maxWidth:g,padding:i?void 0:24},children:x.jsx(i3,{isVertical:n.isVertical,singleColumn:n.singleColumn,children:n.children})})}),l&&x.jsx(R.Alert,{variant:"danger",title:l.message??"",isInline:!0,style:{paddingLeft:u&&n.onCancel?190:void 0},isExpandable:l instanceof ck?!!l.details:!1,children:l instanceof ck?l.details:void 0}),n.onCancel?x.jsx("div",{className:"dark-2 border-top",style:{padding:i?void 0:24},children:x.jsxs(R.ActionGroup,{style:{marginTop:0},children:[x.jsx(r3,{children:n.submitText}),n.additionalActionText?x.jsx(R.Button,{"aria-label":n.additionalActionText,type:"submit",variant:"secondary",children:n.additionalActionText}):null,n.onCancel&&x.jsx(eie,{onCancel:n.onCancel,children:n.cancelText??s.cancelText})]})}):x.jsx(r3,{style:{marginTop:48},children:n.submitText})]})});return t||(p=x.jsx(Ik,{children:p})),p}function i3(n){const[e]=T.useContext(og),t=n.isVertical?!1:e.formLayout==="horizontal",i=n.singleColumn?!1:e.formColumns==="multiple",r=12,s=i?t?12:6:12,o=i?6:12,a=i?6:12,l=i?4:12;return x.jsx(R.Grid,{hasGutter:!0,span:12,sm:r,md:s,lg:o,xl:a,xl2:l,children:n.children})}function r3(n){const{isSubmitting:e,errors:t}=Mz(),{t:i}=ts(),r=t&&Object.keys(t).length>0;return x.jsx(R.Tooltip,{content:i("Please fix errors"),trigger:r?void 0:"manual",children:x.jsx(R.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:r,variant:r?"secondary":void 0,style:n.style,children:n.children})})}function eie(n){return x.jsx(R.Button,{type:"button",variant:"link",onClick:n.onCancel,children:n.children})}const jft="",s3=T.createContext({isOpen:!1,setState:()=>({})});function uk(){return T.useContext(s3)}function tie(n){const e=ws("xl"),[t,i]=T.useState(()=>e),r=T.useCallback(s=>{s.isOpen!==void 0&&i(s.isOpen)},[]);return T.useEffect(()=>r({isOpen:e}),[e,r]),x.jsx(s3.Provider,{value:{isOpen:t,setState:r},children:n.children})}function Iat(){const n=uy(),e=ws("xl"),t=uk();return T.useCallback(r=>{n(r),e||t.setState({isOpen:!t.isOpen})},[n,e,t])}function Aat(n){return x.jsx(q3,{children:x.jsx(n7,{children:x.jsx(t7,{children:x.jsx(Q3,{children:x.jsx(PR,{callback:n.navigate,children:x.jsx(tie,{children:n.children})})})})})})}function Oat(n){const e=uy();return n.breadcrumbs?x.jsx(R.Breadcrumb,{style:n.style,children:n.breadcrumbs.map((t,i)=>t.label?x.jsx(R.BreadcrumbItem,{id:t.id,component:t.component,isActive:t.to===void 0,children:t.to?x.jsx("a",{href:t.to,onClick:r=>{r.preventDefault(),e(t.to)},children:t.label}):t.label},t.id??t.label??i):x.jsx(T.Fragment,{},i))}):x.jsx(T.Fragment,{})}function Nat(n){const{breadcrumbs:e,title:t,description:i,controls:r,headerActions:s,footer:o}=n,a=ws("lg"),l=ws("xl"),c=ws("md"),d=uk().isOpen&&l?void 0:n.navigation,[h]=yi();return x.jsxs(x.Fragment,{children:[d&&x.jsx(R.PageSection,{variant:R.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:x.jsx(R.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:x.jsx(R.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:d})})}),x.jsx(R.PageSection,{variant:R.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:l?16:12,paddingBottom:l?16:12},children:x.jsxs(R.Stack,{hasGutter:!0,children:[x.jsxs(R.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[x.jsxs(R.FlexItem,{grow:{default:"grow"},children:[e&&x.jsx(Oat,{breadcrumbs:e,style:{paddingBottom:a?6:4}}),t?n.titleHelp?x.jsx(R.Popover,{headerContent:n.titleHelpTitle,bodyContent:x.jsxs(R.Stack,{hasGutter:!0,children:[typeof n.titleHelp=="string"?x.jsx(R.StackItem,{children:n.titleHelp}):n.titleHelp.map((f,g)=>x.jsx(R.StackItem,{children:f},g)),n.titleDocLink&&x.jsx(R.StackItem,{children:x.jsx(R.Button,{icon:x.jsx(yt.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(n.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:x.jsxs(R.Title,{headingLevel:"h1",children:[t,x.jsx(R.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:x.jsx(yt.OutlinedQuestionCircleIcon,{})})]})}):x.jsx(R.Title,{headingLevel:"h1",children:t}):x.jsx(R.Title,{headingLevel:"h1",children:x.jsx(R.Skeleton,{width:"160px"})}),c&&i&&x.jsx(R.Text,{component:"p",style:{paddingTop:l?4:2,opacity:.8},children:typeof i=="string"?x.jsx(R.Truncate,{content:i}):x.jsx(R.Stack,{children:i.map(f=>x.jsx(R.StackItem,{children:f},f))})})]}),t&&(s||r)&&x.jsxs(R.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&x.jsx(R.FlexItem,{grow:{default:"grow"},children:r}),s&&x.jsx(R.FlexItem,{children:s})]})]}),o]})})]})}function Mat(n){const[e]=yi();return x.jsx(J3,{message:e.errorText,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:n.children})})}const Pat=un.div`
|
1108
|
+
${o}${p}`}else g=`${m}${l}${f.join(" ")}${l}${p}`;return n&&(g+=Hf(g,o,c(n)),s&&s()),g}function ak({indent:n,options:{commentString:e}},t,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){const s=A1(e(i),n);t.push(s.trimStart())}}function jf(n,e){const t=or(e)?e.value:e;for(const i of n)if(Mr(i)&&(i.key===e||i.key===t||or(i.key)&&i.key.value===t))return i}class t0 extends ek{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Vf,e),this.items=[]}static from(e,t,i){const{keepUndefined:r,replacer:s}=i,o=new this(e),a=(l,c)=>{if(typeof s=="function")c=s.call(t,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||r)&&o.items.push(e3(l,c,i))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let i;Mr(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new ru(e,e==null?void 0:e.value):i=new ru(e.key,e.value);const r=jf(this.items,i.key),s=(o=this.schema)==null?void 0:o.sortMapEntries;if(r){if(!t)throw new Error(`Key ${i.key} already set`);or(r.value)&&qne(i.value)?r.value.value=i.value:r.value=i.value}else if(s){const a=this.items.findIndex(l=>s(i,l)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(e){const t=jf(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const i=jf(this.items,e),r=i==null?void 0:i.value;return(!t&&or(r)?r.value:r)??void 0}has(e){return!!jf(this.items,e)}set(e,t){this.add(new ru(e,t),!0)}toJSON(e,t,i){const r=i?new i:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(r);for(const s of this.items)Xne(t,r,s);return r}toString(e,t,i){if(!e)return JSON.stringify(this);for(const r of this.items)if(!Mr(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Qne(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:t})}}class Jne extends ek{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(D1,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=lk(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const i=lk(e);if(typeof i!="number")return;const r=this.items[i];return!t&&or(r)?r.value:r}has(e){const t=lk(e);return typeof t=="number"&&t<this.items.length}set(e,t){const i=lk(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[i];or(r)&&qne(t)?r.value=t:this.items[i]=t}toJSON(e,t){const i=[];t!=null&&t.onCreate&&t.onCreate(i);let r=0;for(const s of this.items)i.push(ja(s,String(r++),t));return i}toString(e,t,i){return e?Qne(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:t}):JSON.stringify(this)}static from(e,t,i){const{replacer:r}=i,s=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof r=="function"){const l=t instanceof Set?a:String(o++);a=r.call(t,l,a)}s.items.push(JL(a,void 0,i))}}return s}}function lk(n){let e=or(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function Eat(n,e,t){const{replacer:i}=t,r=new Jne(n);r.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof i=="function"&&(o=i.call(e,String(s++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected { key: value } tuple: ${o}`)}else a=o;r.items.push(e3(a,l,t))}return r}class t3 extends Jne{constructor(){super(),this.add=t0.prototype.add.bind(this),this.delete=t0.prototype.delete.bind(this),this.get=t0.prototype.get.bind(this),this.has=t0.prototype.has.bind(this),this.set=t0.prototype.set.bind(this),this.tag=t3.tag}toJSON(e,t){if(!t)return super.toJSON(e);const i=new Map;t!=null&&t.onCreate&&t.onCreate(i);for(const r of this.items){let s,o;if(Mr(r)?(s=ja(r.key,"",t),o=ja(r.value,s,t)):s=ja(r,"",t),i.has(s))throw new Error("Ordered maps must not include duplicate keys");i.set(s,o)}return i}static from(e,t,i){const r=Eat(e,t,i),s=new this;return s.items=r.items,s}}t3.tag="tag:yaml.org,2002:omap";class n3 extends t0{constructor(e){super(e),this.tag=n3.tag}add(e){let t;Mr(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ru(e.key,null):t=new ru(e,null),jf(this.items,t.key)||this.items.push(t)}get(e,t){const i=jf(this.items,e);return!t&&Mr(i)?or(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const i=jf(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new ru(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,i);throw new Error("Set items must all have null values")}static from(e,t,i){const{replacer:r}=i,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof r=="function"&&(o=r.call(t,o,o)),s.items.push(e3(o,null,i));return s}}n3.tag="tag:yaml.org,2002:set";class ck extends Error{constructor(e,t,i,r,s){super(e),this.details=t,this.statusCode=i,this.body=r,this.json=s,Object.setPrototypeOf(this,ck.prototype),this.name="RequestError"}}function Tat(n){const{defaultValue:e,disableBody:t,disablePadding:i}=n,r=B8e({defaultValues:e??{}}),[s]=yi(),{handleSubmit:o,setError:a}=r,[l,c]=T.useState(null),u=ws("md"),[d]=T.useContext(og),h=n.isVertical?!1:d.formLayout==="horizontal",g=(n.singleColumn?!1:d.formColumns==="multiple")?1600:h?960:800,m=v=>{if(v instanceof Error?c(v):c(new Error("Unknown error")),typeof v=="object"&&v!==null&&"json"in v&&typeof v.json=="object"&&v.json!==null)for(const _ in v.json){let b=v.json[_];typeof b=="string"?a(_,{message:b}):Array.isArray(b)&&(b=b[0],typeof b=="string"&&a(_,{message:b}))}};let p=x.jsx(x8e,{...r,children:x.jsxs(P.Form,{onSubmit:o(async(v,_)=>{var y,w;c(null);let b=!1;_!==void 0&&((y=_==null?void 0:_.nativeEvent)!=null&&y.submitter)&&(b=((w=_.nativeEvent.submitter)==null?void 0:w.innerHTML)===n.additionalActionText);try{await n.onSubmit(v,k=>c(new Error(k)),a,b?r:void 0)}catch(k){m(k)}}),isHorizontal:h,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:n.disableScrolling?void 0:"hidden",gap:0},children:[n.disableScrolling?x.jsx("div",{style:{maxWidth:g,padding:i?void 0:24},children:x.jsx(i3,{isVertical:n.isVertical,singleColumn:n.singleColumn,children:n.children})}):x.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:x.jsx("div",{style:{maxWidth:g,padding:i?void 0:24},children:x.jsx(i3,{isVertical:n.isVertical,singleColumn:n.singleColumn,children:n.children})})}),l&&x.jsx(P.Alert,{variant:"danger",title:l.message??"",isInline:!0,style:{paddingLeft:u&&n.onCancel?190:void 0},isExpandable:l instanceof ck?!!l.details:!1,children:l instanceof ck?l.details:void 0}),n.onCancel?x.jsx("div",{className:"dark-2 border-top",style:{padding:i?void 0:24},children:x.jsxs(P.ActionGroup,{style:{marginTop:0},children:[x.jsx(r3,{children:n.submitText}),n.additionalActionText?x.jsx(P.Button,{"aria-label":n.additionalActionText,type:"submit",variant:"secondary",children:n.additionalActionText}):null,n.onCancel&&x.jsx(eie,{onCancel:n.onCancel,children:n.cancelText??s.cancelText})]})}):x.jsx(r3,{style:{marginTop:48},children:n.submitText})]})});return t||(p=x.jsx(Ik,{children:p})),p}function i3(n){const[e]=T.useContext(og),t=n.isVertical?!1:e.formLayout==="horizontal",i=n.singleColumn?!1:e.formColumns==="multiple",r=12,s=i?t?12:6:12,o=i?6:12,a=i?6:12,l=i?4:12;return x.jsx(P.Grid,{hasGutter:!0,span:12,sm:r,md:s,lg:o,xl:a,xl2:l,children:n.children})}function r3(n){const{isSubmitting:e,errors:t}=Mz(),{t:i}=ts(),r=t&&Object.keys(t).length>0;return x.jsx(P.Tooltip,{content:i("Please fix errors"),trigger:r?void 0:"manual",children:x.jsx(P.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:r,variant:r?"secondary":void 0,style:n.style,children:n.children})})}function eie(n){return x.jsx(P.Button,{type:"button",variant:"link",onClick:n.onCancel,children:n.children})}const jft="",s3=T.createContext({isOpen:!1,setState:()=>({})});function uk(){return T.useContext(s3)}function tie(n){const e=ws("xl"),[t,i]=T.useState(()=>e),r=T.useCallback(s=>{s.isOpen!==void 0&&i(s.isOpen)},[]);return T.useEffect(()=>r({isOpen:e}),[e,r]),x.jsx(s3.Provider,{value:{isOpen:t,setState:r},children:n.children})}function Iat(){const n=uy(),e=ws("xl"),t=uk();return T.useCallback(r=>{n(r),e||t.setState({isOpen:!t.isOpen})},[n,e,t])}function Aat(n){return x.jsx(q3,{children:x.jsx(n7,{children:x.jsx(t7,{children:x.jsx(Q3,{children:x.jsx(PR,{callback:n.navigate,children:x.jsx(tie,{children:n.children})})})})})})}function Oat(n){const e=uy();return n.breadcrumbs?x.jsx(P.Breadcrumb,{style:n.style,children:n.breadcrumbs.map((t,i)=>t.label?x.jsx(P.BreadcrumbItem,{id:t.id,component:t.component,isActive:t.to===void 0,children:t.to?x.jsx("a",{href:t.to,onClick:r=>{r.preventDefault(),e(t.to)},children:t.label}):t.label},t.id??t.label??i):x.jsx(T.Fragment,{},i))}):x.jsx(T.Fragment,{})}function Nat(n){const{breadcrumbs:e,title:t,description:i,controls:r,headerActions:s,footer:o}=n,a=ws("lg"),l=ws("xl"),c=ws("md"),d=uk().isOpen&&l?void 0:n.navigation,[h]=yi();return x.jsxs(x.Fragment,{children:[d&&x.jsx(P.PageSection,{variant:P.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:x.jsx(P.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:x.jsx(P.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:d})})}),x.jsx(P.PageSection,{variant:P.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:l?16:12,paddingBottom:l?16:12},children:x.jsxs(P.Stack,{hasGutter:!0,children:[x.jsxs(P.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[x.jsxs(P.FlexItem,{grow:{default:"grow"},children:[e&&x.jsx(Oat,{breadcrumbs:e,style:{paddingBottom:a?6:4}}),t?n.titleHelp?x.jsx(P.Popover,{headerContent:n.titleHelpTitle,bodyContent:x.jsxs(P.Stack,{hasGutter:!0,children:[typeof n.titleHelp=="string"?x.jsx(P.StackItem,{children:n.titleHelp}):n.titleHelp.map((f,g)=>x.jsx(P.StackItem,{children:f},g)),n.titleDocLink&&x.jsx(P.StackItem,{children:x.jsx(P.Button,{icon:x.jsx(yt.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(n.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:x.jsxs(P.Title,{headingLevel:"h1",children:[t,x.jsx(P.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:x.jsx(yt.OutlinedQuestionCircleIcon,{})})]})}):x.jsx(P.Title,{headingLevel:"h1",children:t}):x.jsx(P.Title,{headingLevel:"h1",children:x.jsx(P.Skeleton,{width:"160px"})}),c&&i&&x.jsx(P.Text,{component:"p",style:{paddingTop:l?4:2,opacity:.8},children:typeof i=="string"?x.jsx(P.Truncate,{content:i}):x.jsx(P.Stack,{children:i.map(f=>x.jsx(P.StackItem,{children:f},f))})})]}),t&&(s||r)&&x.jsxs(P.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&x.jsx(P.FlexItem,{grow:{default:"grow"},children:r}),s&&x.jsx(P.FlexItem,{children:s})]})]}),o]})})]})}function Mat(n){const[e]=yi();return x.jsx(J3,{message:e.errorText,children:x.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:n.children})})}const Pat=un.div`
|
1109
1109
|
flex-grow: 1;
|
1110
|
-
`,Rat=un(
|
1110
|
+
`,Rat=un(P.Toolbar)`
|
1111
1111
|
padding: 0px;
|
1112
|
-
`;function Fat(n){return x.jsxs(
|
1112
|
+
`;function Fat(n){return x.jsxs(P.Masthead,{children:[x.jsx(nie,{}),x.jsx(P.MastheadMain,{children:x.jsx(P.Title,{headingLevel:"h1",style:{fontWeight:"bold",lineHeight:1.2},children:n.title})}),x.jsx(Rat,{id:"toolbar",children:x.jsxs(P.ToolbarContent,{children:[x.jsx(Pat,{}),T.Children.toArray(n.children).map((e,t)=>x.jsx(P.ToolbarItem,{children:e},t))]})})]})}function nie(){const n=uk();return x.jsx(P.MastheadToggle,{onClick:()=>n.setState({isOpen:!n.isOpen}),children:x.jsx(P.PageToggleButton,{variant:"plain","aria-label":"Global navigation",children:x.jsx(yt.BarsIcon,{})})})}function iie(n){const{loading:e}=n,[t,i]=T.useState((n==null?void 0:n.initialTabIndex)??0),r=T.useCallback((l,c)=>i(c),[i]),s=T.Children.toArray(n.children),o=s.map((l,c)=>{if(T.isValidElement(l)&&l.type===o3){const u=l.props.label;return x.jsx(P.Tab,{title:u||x.jsx(P.Skeleton,{width:"60px"}),eventKey:c},u??c)}return l}),a=s[t];return e?x.jsx(iie,{children:x.jsx(o3,{children:x.jsx(P.PageSection,{variant:"light",children:x.jsx(P.Skeleton,{})})})}):x.jsxs(x.Fragment,{children:[x.jsx(P.PageSection,{type:P.PageSectionTypes.tabs,className:"border-bottom",children:x.jsxs(P.Flex,{spaceItems:{default:"spaceItemsNone"},children:[n.preComponents&&x.jsxs(x.Fragment,{children:[x.jsx(P.FlexItem,{children:n.preComponents}),x.jsx(P.Divider,{orientation:{default:"vertical"},component:"div"})]}),x.jsx(P.FlexItem,{grow:{default:"grow"},children:x.jsx(P.Tabs,{activeKey:t,onSelect:r,inset:n.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm","2xl":"insetSm"},hasBorderBottom:!1,children:o})}),n.postComponents&&x.jsxs(x.Fragment,{children:[x.jsx(P.Divider,{orientation:{default:"vertical"}}),x.jsx(P.FlexItem,{style:{paddingRight:16},children:n.postComponents})]})]})}),a]})}function o3(n){return x.jsx(x.Fragment,{children:n.children})}function Bat(n){const{activeKey:e,setActiveKey:t}=n,i=T.useCallback((r,s)=>t(s),[t]);return x.jsx(P.PageSection,{type:P.PageSectionTypes.tabs,style:{flexGrow:1},children:x.jsx(P.Tabs,{activeKey:e,onSelect:i,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm","2xl":"insetSm"},children:n.children})})}const Wat=bre`
|
1113
1113
|
from {
|
1114
1114
|
transform: rotate(0);
|
1115
1115
|
}
|