@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.48 → 0.0.1-alpha.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(ue,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@ant-design/icons"),require("@tanstack/react-query"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","@tanstack/react-query","react-router-dom"],Z):(ue=typeof globalThis<"u"?globalThis:ue||self,Z(ue["@prorobotech/openapi-k8s-toolkit"]={},ue.React,ue.antd,ue.antdIcons,ue.reactQuery,ue.ReactRouterDOM))})(this,function(ue,Z,V,vn,xn,vr){"use strict";function f1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zl={exports:{}},Mt=Zl.exports={},cr,lr;function gu(){throw new Error("setTimeout has not been defined")}function yu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cr=setTimeout:cr=gu}catch{cr=gu}try{typeof clearTimeout=="function"?lr=clearTimeout:lr=yu}catch{lr=yu}})();function ef(e){if(cr===setTimeout)return setTimeout(e,0);if((cr===gu||!cr)&&setTimeout)return cr=setTimeout,setTimeout(e,0);try{return cr(e,0)}catch{try{return cr.call(null,e,0)}catch{return cr.call(this,e,0)}}}function h1(e){if(lr===clearTimeout)return clearTimeout(e);if((lr===yu||!lr)&&clearTimeout)return lr=clearTimeout,clearTimeout(e);try{return lr(e)}catch{try{return lr.call(null,e)}catch{return lr.call(this,e)}}}var xr=[],Di=!1,ai,Co=-1;function d1(){!Di||!ai||(Di=!1,ai.length?xr=ai.concat(xr):Co=-1,xr.length&&tf())}function tf(){if(!Di){var e=ef(d1);Di=!0;for(var t=xr.length;t;){for(ai=xr,xr=[];++Co<t;)ai&&ai[Co].run();Co=-1,t=xr.length}ai=null,Di=!1,h1(e)}}Mt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];xr.push(new nf(e,t)),xr.length===1&&!Di&&ef(tf)};function nf(e,t){this.fun=e,this.array=t}nf.prototype.run=function(){this.fun.apply(null,this.array)},Mt.title="browser",Mt.browser=!0,Mt.env={},Mt.argv=[],Mt.version="",Mt.versions={};function Er(){}Mt.on=Er,Mt.addListener=Er,Mt.once=Er,Mt.off=Er,Mt.removeListener=Er,Mt.removeAllListeners=Er,Mt.emit=Er,Mt.prependListener=Er,Mt.prependOnceListener=Er,Mt.listeners=function(e){return[]},Mt.binding=function(e){throw new Error("process.binding is not supported")},Mt.cwd=function(){return"/"},Mt.chdir=function(e){throw new Error("process.chdir is not supported")},Mt.umask=function(){return 0};var p1=Zl.exports;const nt=f1(p1);var En=function(){return En=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},En.apply(this,arguments)};function Pi(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function g1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var y1=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,m1=g1(function(e){return y1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kt="-ms-",_s="-moz-",pt="-webkit-",rf="comm",_o="rule",bu="decl",b1="@import",w1="@namespace",sf="@keyframes",v1="@layer",of=Math.abs,wu=String.fromCharCode,vu=Object.assign;function x1(e,t){return Yt(e,0)^45?(((t<<2^Yt(e,0))<<2^Yt(e,1))<<2^Yt(e,2))<<2^Yt(e,3):0}function af(e){return e.trim()}function Sr(e,t){return(e=t.exec(e))?e[0]:e}function Je(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Yt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function uf(e){return e.length}function ks(e,t){return t.push(e),e}function E1(e,t){return e.map(t).join("")}function cf(e,t){return e.filter(function(n){return!Sr(n,t)})}var To=1,Ri=1,lf=0,Ln=0,Jt=0,Li="";function Io(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:To,column:Ri,length:u,return:"",siblings:l}}function $r(e,t){return vu(Io("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=$r(e.root,{children:[e]});ks(e,e.siblings)}function S1(){return Jt}function A1(){return Jt=Ln>0?Yt(Li,--Ln):0,Ri--,Jt===10&&(Ri=1,To--),Jt}function Zn(){return Jt=Ln<lf?Yt(Li,Ln++):0,Ri++,Jt===10&&(Ri=1,To++),Jt}function Mr(){return Yt(Li,Ln)}function Oo(){return Ln}function Fo(e,t){return ui(Li,e,t)}function Ts(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function C1(e){return To=Ri=1,lf=Qn(Li=e),Ln=0,[]}function _1(e){return Li="",e}function xu(e){return af(Fo(Ln-1,Eu(e===91?e+2:e===40?e+1:e)))}function k1(e){for(;(Jt=Mr())&&Jt<33;)Zn();return Ts(e)>2||Ts(Jt)>3?"":" "}function T1(e,t){for(;--t&&Zn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Fo(e,Oo()+(t<6&&Mr()==32&&Zn()==32))}function Eu(e){for(;Zn();)switch(Jt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&Eu(Jt);break;case 40:e===41&&Eu(e);break;case 92:Zn();break}return Ln}function I1(e,t){for(;Zn()&&e+Jt!==57;)if(e+Jt===84&&Mr()===47)break;return"/*"+Fo(t,Ln-1)+"*"+wu(e===47?e:Zn())}function O1(e){for(;!Ts(Mr());)Zn();return Fo(e,Ln)}function F1(e){return _1(Bo("",null,null,null,[""],e=C1(e),0,[0],e))}function Bo(e,t,n,i,o,a,u,l,f){for(var h=0,d=0,g=u,v=0,C=0,S=0,E=1,w=1,T=1,j=0,R="",_=o,O=a,F=i,B=R;w;)switch(S=j,j=Zn()){case 40:if(S!=108&&Yt(B,g-1)==58){ko(B+=Je(xu(j),"&","&\f"),"&\f",of(h?l[h-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:B+=xu(j);break;case 9:case 10:case 13:case 32:B+=k1(S);break;case 92:B+=T1(Oo()-1,7);continue;case 47:switch(Mr()){case 42:case 47:ks(B1(I1(Zn(),Oo()),t,n,f),f),(Ts(S||1)==5||Ts(Mr()||1)==5)&&Qn(B)&&ui(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*E:l[h++]=Qn(B)*T;case 125*E:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+d:T==-1&&(B=Je(B,/\f/g,"")),C>0&&(Qn(B)-g||E===0&&S===47)&&ks(C>32?hf(B+";",i,n,g-1,f):hf(Je(B," ","")+";",i,n,g-2,f),f);break;case 59:B+=";";default:if(ks(F=ff(B,t,n,h,d,o,l,R,_=[],O=[],g,a),a),j===123)if(d===0)Bo(B,t,F,F,_,a,g,l,O);else{switch(v){case 99:if(Yt(B,3)===110)break;case 108:if(Yt(B,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Bo(e,F,F,i&&ks(ff(e,F,F,0,0,o,l,R,o,_=[],g,O),O),o,O,g,l,i?_:O):Bo(B,F,F,F,[""],O,0,l,O)}}h=d=C=0,E=T=1,R=B="",g=u;break;case 58:g=1+Qn(B),C=S;default:if(E<1){if(j==123)--E;else if(j==125&&E++==0&&A1()==125)continue}switch(B+=wu(j),j*E){case 38:T=d>0?1:(B+="\f",-1);break;case 44:l[h++]=(Qn(B)-1)*T,T=1;break;case 64:Mr()===45&&(B+=xu(Zn())),v=Mr(),d=g=Qn(R=B+=O1(Oo())),j++;break;case 45:S===45&&Qn(B)==2&&(E=0)}}return a}function ff(e,t,n,i,o,a,u,l,f,h,d,g){for(var v=o-1,C=o===0?a:[""],S=uf(C),E=0,w=0,T=0;E<i;++E)for(var j=0,R=ui(e,v+1,v=of(w=u[E])),_=e;j<S;++j)(_=af(w>0?C[j]+" "+R:Je(R,/&\f/g,C[j])))&&(f[T++]=_);return Io(e,t,n,o===0?_o:l,f,h,d,g)}function B1(e,t,n,i){return Io(e,t,n,rf,wu(S1()),ui(e,2,-2),0,i)}function hf(e,t,n,i,o){return Io(e,t,n,bu,ui(e,0,i),ui(e,i+1,-1),i,o)}function df(e,t,n){switch(x1(e,t)){case 5103:return pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return pt+e+e;case 4855:return pt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return _s+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+_s+e+kt+e+e;case 5936:switch(Yt(e,t+11)){case 114:return pt+e+kt+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+kt+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+kt+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pt+e+kt+e+e;case 6165:return pt+e+kt+"flex-"+e+e;case 5187:return pt+e+Je(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+kt+"flex-$1$2")+e;case 5443:return pt+e+kt+"flex-item-"+Je(e,/flex-|-self/g,"")+(Sr(e,/flex-|baseline/)?"":kt+"grid-row-"+Je(e,/flex-|-self/g,""))+e;case 4675:return pt+e+kt+"flex-line-pack"+Je(e,/align-content|flex-|-self/g,"")+e;case 5548:return pt+e+kt+Je(e,"shrink","negative")+e;case 5292:return pt+e+kt+Je(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+Je(e,"-grow","")+pt+e+kt+Je(e,"grow","positive")+e;case 4554:return pt+Je(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return Je(Je(Je(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return Je(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return Je(Je(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+kt+"flex-pack:$3"),/space-between/,"justify")+pt+e+e;case 4200:if(!Sr(e,/flex-|baseline/))return kt+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return kt+Je(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Sr(i.props,/grid-\w+-end/)})?~ko(e+(n=n[t].value),"span",0)?e:kt+Je(e,"-start","")+e+kt+"grid-row-span:"+(~ko(n,"span",0)?Sr(n,/\d+/):+Sr(n,/\d+/)-+Sr(e,/\d+/))+";":kt+Je(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Sr(i.props,/grid-\w+-start/)})?e:kt+Je(Je(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Je(e,/(.+)-inline(.+)/,pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qn(e)-1-t>6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+_s+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ko(e,"stretch",0)?df(Je(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Je(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,h){return kt+o+":"+a+h+(u?kt+o+"-span:"+(l?f:+f-+a)+h:"")+e});case 4949:if(Yt(e,t+6)===121)return Je(e,":",":"+pt)+e;break;case 6444:switch(Yt(e,Yt(e,14)===45?18:11)){case 120:return Je(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pt+(Yt(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+kt+"$2box$3")+e;case 100:return Je(e,":",":"+kt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Je(e,"scroll-","scroll-snap-")+e}return e}function Do(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function D1(e,t,n,i){switch(e.type){case v1:if(e.children.length)break;case b1:case w1:case bu:return e.return=e.return||e.value;case rf:return"";case sf:return e.return=e.value+"{"+Do(e.children,i)+"}";case _o:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Do(e.children,i))?e.return=e.value+"{"+n+"}":""}function P1(e){var t=uf(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function R1(e){return function(t){t.root||(t=t.return)&&e(t)}}function L1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case bu:e.return=df(e.value,e.length,n);return;case sf:return Do([$r(e,{value:Je(e.value,"@","@"+pt)})],i);case _o:if(e.length)return E1(n=e.props,function(o){switch(Sr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji($r(e,{props:[Je(o,/:(read-\w+)/,":"+_s+"$1")]})),ji($r(e,{props:[o]})),vu(e,{props:cf(n,i)});break;case"::placeholder":ji($r(e,{props:[Je(o,/:(plac\w+)/,":"+pt+"input-$1")]})),ji($r(e,{props:[Je(o,/:(plac\w+)/,":"+_s+"$1")]})),ji($r(e,{props:[Je(o,/:(plac\w+)/,kt+"input-$1")]})),ji($r(e,{props:[o]})),vu(e,{props:cf(n,i)});break}return""})}}var j1={animationIterationCount:1,aspectRatio: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},ci=typeof nt<"u"&&nt.env!==void 0&&(nt.env.REACT_APP_SC_ATTR||nt.env.SC_ATTR)||"data-styled",Su=typeof window<"u"&&"HTMLElement"in window,N1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof nt<"u"&&nt.env!==void 0&&nt.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nt.env.REACT_APP_SC_DISABLE_SPEEDY!==""?nt.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nt.env.REACT_APP_SC_DISABLE_SPEEDY:typeof nt<"u"&&nt.env!==void 0&&nt.env.SC_DISABLE_SPEEDY!==void 0&&nt.env.SC_DISABLE_SPEEDY!==""?nt.env.SC_DISABLE_SPEEDY!=="false"&&nt.env.SC_DISABLE_SPEEDY:nt.env.NODE_ENV!=="production"),pf=/invalid hook call/i,Po=new Set,$1=function(e,t){if(nt.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(ue,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react"),require("antd"),require("@ant-design/icons"),require("@tanstack/react-query"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","@tanstack/react-query","react-router-dom"],Q):(ue=typeof globalThis<"u"?globalThis:ue||self,Q(ue["@prorobotech/openapi-k8s-toolkit"]={},ue.React,ue.antd,ue.antdIcons,ue.reactQuery,ue.ReactRouterDOM))})(this,function(ue,Q,V,wn,vn,vr){"use strict";function f1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zl={exports:{}},$t=Zl.exports={},cr,lr;function gu(){throw new Error("setTimeout has not been defined")}function yu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cr=setTimeout:cr=gu}catch{cr=gu}try{typeof clearTimeout=="function"?lr=clearTimeout:lr=yu}catch{lr=yu}})();function ef(e){if(cr===setTimeout)return setTimeout(e,0);if((cr===gu||!cr)&&setTimeout)return cr=setTimeout,setTimeout(e,0);try{return cr(e,0)}catch{try{return cr.call(null,e,0)}catch{return cr.call(this,e,0)}}}function h1(e){if(lr===clearTimeout)return clearTimeout(e);if((lr===yu||!lr)&&clearTimeout)return lr=clearTimeout,clearTimeout(e);try{return lr(e)}catch{try{return lr.call(null,e)}catch{return lr.call(this,e)}}}var xr=[],Di=!1,ai,Co=-1;function d1(){!Di||!ai||(Di=!1,ai.length?xr=ai.concat(xr):Co=-1,xr.length&&tf())}function tf(){if(!Di){var e=ef(d1);Di=!0;for(var t=xr.length;t;){for(ai=xr,xr=[];++Co<t;)ai&&ai[Co].run();Co=-1,t=xr.length}ai=null,Di=!1,h1(e)}}$t.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];xr.push(new nf(e,t)),xr.length===1&&!Di&&ef(tf)};function nf(e,t){this.fun=e,this.array=t}nf.prototype.run=function(){this.fun.apply(null,this.array)},$t.title="browser",$t.browser=!0,$t.env={},$t.argv=[],$t.version="",$t.versions={};function Er(){}$t.on=Er,$t.addListener=Er,$t.once=Er,$t.off=Er,$t.removeListener=Er,$t.removeAllListeners=Er,$t.emit=Er,$t.prependListener=Er,$t.prependOnceListener=Er,$t.listeners=function(e){return[]},$t.binding=function(e){throw new Error("process.binding is not supported")},$t.cwd=function(){return"/"},$t.chdir=function(e){throw new Error("process.chdir is not supported")},$t.umask=function(){return 0};var p1=Zl.exports;const nt=f1(p1);var xn=function(){return xn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xn.apply(this,arguments)};function Pi(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function g1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var y1=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,m1=g1(function(e){return y1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt="-ms-",_s="-moz-",yt="-webkit-",rf="comm",_o="rule",bu="decl",b1="@import",w1="@namespace",sf="@keyframes",v1="@layer",of=Math.abs,wu=String.fromCharCode,vu=Object.assign;function x1(e,t){return Xt(e,0)^45?(((t<<2^Xt(e,0))<<2^Xt(e,1))<<2^Xt(e,2))<<2^Xt(e,3):0}function af(e){return e.trim()}function Sr(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Xt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function uf(e){return e.length}function ks(e,t){return t.push(e),e}function E1(e,t){return e.map(t).join("")}function cf(e,t){return e.filter(function(n){return!Sr(n,t)})}var To=1,Ri=1,lf=0,Ln=0,Yt=0,Li="";function Io(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:To,column:Ri,length:u,return:"",siblings:l}}function $r(e,t){return vu(Io("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=$r(e.root,{children:[e]});ks(e,e.siblings)}function S1(){return Yt}function A1(){return Yt=Ln>0?Xt(Li,--Ln):0,Ri--,Yt===10&&(Ri=1,To--),Yt}function Zn(){return Yt=Ln<lf?Xt(Li,Ln++):0,Ri++,Yt===10&&(Ri=1,To++),Yt}function Mr(){return Xt(Li,Ln)}function Oo(){return Ln}function Fo(e,t){return ui(Li,e,t)}function Ts(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function C1(e){return To=Ri=1,lf=Qn(Li=e),Ln=0,[]}function _1(e){return Li="",e}function xu(e){return af(Fo(Ln-1,Eu(e===91?e+2:e===40?e+1:e)))}function k1(e){for(;(Yt=Mr())&&Yt<33;)Zn();return Ts(e)>2||Ts(Yt)>3?"":" "}function T1(e,t){for(;--t&&Zn()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return Fo(e,Oo()+(t<6&&Mr()==32&&Zn()==32))}function Eu(e){for(;Zn();)switch(Yt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&Eu(Yt);break;case 40:e===41&&Eu(e);break;case 92:Zn();break}return Ln}function I1(e,t){for(;Zn()&&e+Yt!==57;)if(e+Yt===84&&Mr()===47)break;return"/*"+Fo(t,Ln-1)+"*"+wu(e===47?e:Zn())}function O1(e){for(;!Ts(Mr());)Zn();return Fo(e,Ln)}function F1(e){return _1(Bo("",null,null,null,[""],e=C1(e),0,[0],e))}function Bo(e,t,n,i,o,a,u,l,f){for(var h=0,d=0,g=u,v=0,C=0,S=0,E=1,w=1,T=1,j=0,R="",_=o,O=a,F=i,B=R;w;)switch(S=j,j=Zn()){case 40:if(S!=108&&Xt(B,g-1)==58){ko(B+=Ye(xu(j),"&","&\f"),"&\f",of(h?l[h-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:B+=xu(j);break;case 9:case 10:case 13:case 32:B+=k1(S);break;case 92:B+=T1(Oo()-1,7);continue;case 47:switch(Mr()){case 42:case 47:ks(B1(I1(Zn(),Oo()),t,n,f),f),(Ts(S||1)==5||Ts(Mr()||1)==5)&&Qn(B)&&ui(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*E:l[h++]=Qn(B)*T;case 125*E:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+d:T==-1&&(B=Ye(B,/\f/g,"")),C>0&&(Qn(B)-g||E===0&&S===47)&&ks(C>32?hf(B+";",i,n,g-1,f):hf(Ye(B," ","")+";",i,n,g-2,f),f);break;case 59:B+=";";default:if(ks(F=ff(B,t,n,h,d,o,l,R,_=[],O=[],g,a),a),j===123)if(d===0)Bo(B,t,F,F,_,a,g,l,O);else{switch(v){case 99:if(Xt(B,3)===110)break;case 108:if(Xt(B,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Bo(e,F,F,i&&ks(ff(e,F,F,0,0,o,l,R,o,_=[],g,O),O),o,O,g,l,i?_:O):Bo(B,F,F,F,[""],O,0,l,O)}}h=d=C=0,E=T=1,R=B="",g=u;break;case 58:g=1+Qn(B),C=S;default:if(E<1){if(j==123)--E;else if(j==125&&E++==0&&A1()==125)continue}switch(B+=wu(j),j*E){case 38:T=d>0?1:(B+="\f",-1);break;case 44:l[h++]=(Qn(B)-1)*T,T=1;break;case 64:Mr()===45&&(B+=xu(Zn())),v=Mr(),d=g=Qn(R=B+=O1(Oo())),j++;break;case 45:S===45&&Qn(B)==2&&(E=0)}}return a}function ff(e,t,n,i,o,a,u,l,f,h,d,g){for(var v=o-1,C=o===0?a:[""],S=uf(C),E=0,w=0,T=0;E<i;++E)for(var j=0,R=ui(e,v+1,v=of(w=u[E])),_=e;j<S;++j)(_=af(w>0?C[j]+" "+R:Ye(R,/&\f/g,C[j])))&&(f[T++]=_);return Io(e,t,n,o===0?_o:l,f,h,d,g)}function B1(e,t,n,i){return Io(e,t,n,rf,wu(S1()),ui(e,2,-2),0,i)}function hf(e,t,n,i,o){return Io(e,t,n,bu,ui(e,0,i),ui(e,i+1,-1),i,o)}function df(e,t,n){switch(x1(e,t)){case 5103:return yt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return yt+e+e;case 4855:return yt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return _s+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yt+e+_s+e+Tt+e+e;case 5936:switch(Xt(e,t+11)){case 114:return yt+e+Tt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yt+e+Tt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yt+e+Tt+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return yt+e+Tt+e+e;case 6165:return yt+e+Tt+"flex-"+e+e;case 5187:return yt+e+Ye(e,/(\w+).+(:[^]+)/,yt+"box-$1$2"+Tt+"flex-$1$2")+e;case 5443:return yt+e+Tt+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Sr(e,/flex-|baseline/)?"":Tt+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return yt+e+Tt+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return yt+e+Tt+Ye(e,"shrink","negative")+e;case 5292:return yt+e+Tt+Ye(e,"basis","preferred-size")+e;case 6060:return yt+"box-"+Ye(e,"-grow","")+yt+e+Tt+Ye(e,"grow","positive")+e;case 4554:return yt+Ye(e,/([^-])(transform)/g,"$1"+yt+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,yt+"$1"),/(image-set)/,yt+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,yt+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,yt+"box-pack:$3"+Tt+"flex-pack:$3"),/space-between/,"justify")+yt+e+e;case 4200:if(!Sr(e,/flex-|baseline/))return Tt+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return Tt+Ye(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Sr(i.props,/grid-\w+-end/)})?~ko(e+(n=n[t].value),"span",0)?e:Tt+Ye(e,"-start","")+e+Tt+"grid-row-span:"+(~ko(n,"span",0)?Sr(n,/\d+/):+Sr(n,/\d+/)-+Sr(e,/\d+/))+";":Tt+Ye(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Sr(i.props,/grid-\w+-start/)})?e:Tt+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,yt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qn(e)-1-t>6)switch(Xt(e,t+1)){case 109:if(Xt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+yt+"$2-$3$1"+_s+(Xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ko(e,"stretch",0)?df(Ye(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,h){return Tt+o+":"+a+h+(u?Tt+o+"-span:"+(l?f:+f-+a)+h:"")+e});case 4949:if(Xt(e,t+6)===121)return Ye(e,":",":"+yt)+e;break;case 6444:switch(Xt(e,Xt(e,14)===45?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+yt+(Xt(e,14)===45?"inline-":"")+"box$3$1"+yt+"$2$3$1"+Tt+"$2box$3")+e;case 100:return Ye(e,":",":"+Tt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(e,"scroll-","scroll-snap-")+e}return e}function Do(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function D1(e,t,n,i){switch(e.type){case v1:if(e.children.length)break;case b1:case w1:case bu:return e.return=e.return||e.value;case rf:return"";case sf:return e.return=e.value+"{"+Do(e.children,i)+"}";case _o:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Do(e.children,i))?e.return=e.value+"{"+n+"}":""}function P1(e){var t=uf(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function R1(e){return function(t){t.root||(t=t.return)&&e(t)}}function L1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case bu:e.return=df(e.value,e.length,n);return;case sf:return Do([$r(e,{value:Ye(e.value,"@","@"+yt)})],i);case _o:if(e.length)return E1(n=e.props,function(o){switch(Sr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji($r(e,{props:[Ye(o,/:(read-\w+)/,":"+_s+"$1")]})),ji($r(e,{props:[o]})),vu(e,{props:cf(n,i)});break;case"::placeholder":ji($r(e,{props:[Ye(o,/:(plac\w+)/,":"+yt+"input-$1")]})),ji($r(e,{props:[Ye(o,/:(plac\w+)/,":"+_s+"$1")]})),ji($r(e,{props:[Ye(o,/:(plac\w+)/,Tt+"input-$1")]})),ji($r(e,{props:[o]})),vu(e,{props:cf(n,i)});break}return""})}}var j1={animationIterationCount:1,aspectRatio: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},ci=typeof nt<"u"&&nt.env!==void 0&&(nt.env.REACT_APP_SC_ATTR||nt.env.SC_ATTR)||"data-styled",Su=typeof window<"u"&&"HTMLElement"in window,N1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof nt<"u"&&nt.env!==void 0&&nt.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nt.env.REACT_APP_SC_DISABLE_SPEEDY!==""?nt.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nt.env.REACT_APP_SC_DISABLE_SPEEDY:typeof nt<"u"&&nt.env!==void 0&&nt.env.SC_DISABLE_SPEEDY!==void 0&&nt.env.SC_DISABLE_SPEEDY!==""?nt.env.SC_DISABLE_SPEEDY!=="false"&&nt.env.SC_DISABLE_SPEEDY:nt.env.NODE_ENV!=="production"),pf=/invalid hook call/i,Po=new Set,$1=function(e,t){if(nt.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
2
2
  `)+`You may see this warning because you've called styled inside another component.
3
- To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];pf.test(u)?(a=!1,Po.delete(i)):o.apply(void 0,Pi([u],l,!1))},Z.useRef(),a&&!Po.has(i)&&(console.warn(i),Po.add(i))}catch(u){pf.test(u.message)&&Po.delete(i)}finally{console.error=o}}},Ro=Object.freeze([]),Ni=Object.freeze({});function M1(e,t,n){return n===void 0&&(n=Ni),e.theme!==n.theme&&e.theme||t||n.theme}var Au=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),U1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,V1=/(^-|-$)/g;function gf(e){return e.replace(U1,"-").replace(V1,"")}var q1=/(a)(d)/gi,yf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=yf(t%52)+n;return(yf(t%52)+n).replace(q1,"$1-$2")}var _u,li=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},mf=function(e){return li(5381,e)};function W1(e){return Cu(mf(e)>>>0)}function bf(e){return nt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ku(e){return typeof e=="string"&&(nt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var wf=typeof Symbol=="function"&&Symbol.for,vf=wf?Symbol.for("react.memo"):60115,K1=wf?Symbol.for("react.forward_ref"):60112,H1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G1=((_u={})[K1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_u[vf]=xf,_u);function Ef(e){return("type"in(t=e)&&t.type.$$typeof)===vf?xf:"$$typeof"in e?G1[e.$$typeof]:H1;var t}var J1=Object.defineProperty,Y1=Object.getOwnPropertyNames,Sf=Object.getOwnPropertySymbols,X1=Object.getOwnPropertyDescriptor,Q1=Object.getPrototypeOf,Af=Object.prototype;function Cf(e,t,n){if(typeof t!="string"){if(Af){var i=Q1(t);i&&i!==Af&&Cf(e,i,n)}var o=Y1(t);Sf&&(o=o.concat(Sf(t)));for(var a=Ef(e),u=Ef(t),l=0;l<o.length;++l){var f=o[l];if(!(f in z1||n&&n[f]||u&&f in u||a&&f in a)){var h=X1(t,f);try{J1(e,f,h)}catch{}}}}return e}function $i(e){return typeof e=="function"}function Tu(e){return typeof e=="object"&&"styledComponentId"in e}function fi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function _f(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Mi(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Iu(e,t,n){if(n===void 0&&(n=!1),!n&&!Mi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Iu(e[i],t[i]);else if(Mi(t))for(var i in t)e[i]=Iu(e[i],t[i]);return e}function Ou(e,t){Object.defineProperty(e,"toString",{value:t})}var Z1=nt.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
3
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];pf.test(u)?(a=!1,Po.delete(i)):o.apply(void 0,Pi([u],l,!1))},Q.useRef(),a&&!Po.has(i)&&(console.warn(i),Po.add(i))}catch(u){pf.test(u.message)&&Po.delete(i)}finally{console.error=o}}},Ro=Object.freeze([]),Ni=Object.freeze({});function M1(e,t,n){return n===void 0&&(n=Ni),e.theme!==n.theme&&e.theme||t||n.theme}var Au=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),U1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,V1=/(^-|-$)/g;function gf(e){return e.replace(U1,"-").replace(V1,"")}var q1=/(a)(d)/gi,yf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=yf(t%52)+n;return(yf(t%52)+n).replace(q1,"$1-$2")}var _u,li=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},mf=function(e){return li(5381,e)};function W1(e){return Cu(mf(e)>>>0)}function bf(e){return nt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ku(e){return typeof e=="string"&&(nt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var wf=typeof Symbol=="function"&&Symbol.for,vf=wf?Symbol.for("react.memo"):60115,K1=wf?Symbol.for("react.forward_ref"):60112,H1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G1=((_u={})[K1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_u[vf]=xf,_u);function Ef(e){return("type"in(t=e)&&t.type.$$typeof)===vf?xf:"$$typeof"in e?G1[e.$$typeof]:H1;var t}var J1=Object.defineProperty,Y1=Object.getOwnPropertyNames,Sf=Object.getOwnPropertySymbols,X1=Object.getOwnPropertyDescriptor,Q1=Object.getPrototypeOf,Af=Object.prototype;function Cf(e,t,n){if(typeof t!="string"){if(Af){var i=Q1(t);i&&i!==Af&&Cf(e,i,n)}var o=Y1(t);Sf&&(o=o.concat(Sf(t)));for(var a=Ef(e),u=Ef(t),l=0;l<o.length;++l){var f=o[l];if(!(f in z1||n&&n[f]||u&&f in u||a&&f in a)){var h=X1(t,f);try{J1(e,f,h)}catch{}}}}return e}function $i(e){return typeof e=="function"}function Tu(e){return typeof e=="object"&&"styledComponentId"in e}function fi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function _f(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Mi(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Iu(e,t,n){if(n===void 0&&(n=!1),!n&&!Mi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Iu(e[i],t[i]);else if(Mi(t))for(var i in t)e[i]=Iu(e[i],t[i]);return e}function Ou(e,t){Object.defineProperty(e,"toString",{value:t})}var Z1=nt.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
4
4
 
5
5
  `,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.
6
6
 
@@ -43,8 +43,8 @@ as for instance in your render method then you may be running into this limitati
43
43
  Has styled-components' style tag been unmounted or altered by another script?
44
44
  `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ey(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Ui(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nt.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ey.apply(void 0,Pi([Z1[e]],t,!1)).trim())}var ty=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw Ui(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
45
45
  `);return n},e}(),Lo=new Map,jo=new Map,Fu=1,No=function(e){if(Lo.has(e))return Lo.get(e);for(;jo.has(Fu);)Fu++;var t=Fu++;if(nt.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Ui(16,"".concat(t));return Lo.set(e,t),jo.set(t,e),t},ny=function(e,t){Lo.set(e,t),jo.set(t,e)},ry="style[".concat(ci,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),iy=new RegExp("^".concat(ci,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sy=function(e,t,n){for(var i,o=n.split(","),a=0,u=o.length;a<u;a++)(i=o[a])&&e.registerName(t,i)},oy=function(e,t){for(var n,i=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
- `),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(iy);if(f){var h=0|parseInt(f[1],10),d=f[2];h!==0&&(ny(d,h),sy(e,d,f[3]),e.getTag().insertRules(h,o)),o.length=0}else o.push(l)}}};function ay(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(ci,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(ci,"active"),i.setAttribute("data-styled-version","6.0.7");var u=ay();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},uy=function(){function e(t){this.element=kf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw Ui(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),cy=function(){function e(t){this.element=kf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),ly=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Tf=Su,fy={isServer:!Su,useCSSOMInjection:!N1},If=function(){function e(t,n,i){t===void 0&&(t=Ni),n===void 0&&(n={});var o=this;this.options=En(En({},fy),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Su&&Tf&&(Tf=!1,function(a){for(var u=document.querySelectorAll(ry),l=0,f=u.length;l<f;l++){var h=u[l];h&&h.getAttribute(ci)!=="active"&&(oy(a,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),Ou(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",h=function(g){var v=function(T){return jo.get(T)}(g);if(v===void 0)return"continue";var C=a.names.get(v),S=u.getGroup(g);if(C===void 0||S.length===0)return"continue";var E="".concat(ci,".g").concat(g,'[id="').concat(v,'"]'),w="";C!==void 0&&C.forEach(function(T){T.length>0&&(w+="".concat(T,","))}),f+="".concat(S).concat(E,'{content:"').concat(w,'"}').concat(`/*!sc*/
47
- `)},d=0;d<l;d++)h(d);return f}(o)})}return e.registerId=function(t){return No(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(En(En({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new ly(o):i?new uy(o):new cy(o)}(this.options),new ty(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(No(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(No(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(No(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),hy=/&/g,dy=/^\s*\/\/.*$/gm;function Of(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Of(n.children,t)),n})}function py(e){var t,n,i,o=Ni,a=o.options,u=a===void 0?Ni:a,l=o.plugins,f=l===void 0?Ro:l,h=function(v,C,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):v},d=f.slice();d.push(function(v){v.type===_o&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(hy,n).replace(i,h))}),u.prefix&&d.push(L1),d.push(D1);var g=function(v,C,S,E){C===void 0&&(C=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var w=v.replace(dy,""),T=F1(S||C?"".concat(S," ").concat(C," { ").concat(w," }"):w);u.namespace&&(T=Of(T,u.namespace));var j=[];return Do(T,P1(d.concat(R1(function(R){return j.push(R)})))),j};return g.hash=f.length?f.reduce(function(v,C){return C.name||Ui(15),li(v,C.name)},5381).toString():"",g}var gy=new If,Bu=py(),Ff=Z.createContext({shouldForwardProp:void 0,styleSheet:gy,stylis:Bu});Ff.Consumer,Z.createContext(void 0);function Bf(){return Z.useContext(Ff)}var Df=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Bu);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ou(this,function(){throw Ui(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Bu),this.name+t.hash},e}(),yy=function(e){return e>="A"&&e<="Z"};function Pf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;yy(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Rf=function(e){return e==null||e===!1||e===""},Lf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Rf(a)&&(Array.isArray(a)&&a.isCss||$i(a)?i.push("".concat(Pf(o),":"),a,";"):Mi(a)?i.push.apply(i,Pi(Pi(["".concat(o," {")],Lf(a),!1),["}"],!1)):i.push("".concat(Pf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in j1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function hi(e,t,n,i){if(Rf(e))return[];if(Tu(e))return[".".concat(e.styledComponentId)];if($i(e)){if(!$i(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return nt.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Df||Mi(o)||o===null||console.error("".concat(bf(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),hi(o,t,n,i)}var a;return e instanceof Df?n?(e.inject(n,i),[e.getName(i)]):[e]:Mi(e)?Lf(e):Array.isArray(e)?Array.prototype.concat.apply(Ro,e.map(function(u){return hi(u,t,n,i)})):[e.toString()]}function my(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($i(n)&&!Tu(n))return!1}return!0}var by=mf("6.0.7"),wy=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=nt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&my(t),this.componentId=n,this.baseHash=li(by,n),this.baseStyle=i,If.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=fi(o,this.staticRulesId);else{var a=_f(hi(this.rules,t,n,i)),u=Cu(li(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=fi(o,u),this.staticRulesId=u}else{for(var f=li(this.baseHash,i.hash),h="",d=0;d<this.rules.length;d++){var g=this.rules[d];if(typeof g=="string")h+=g,nt.env.NODE_ENV!=="production"&&(f=li(f,g));else if(g){var v=_f(hi(g,t,n,i));f=li(f,v),h+=v}}if(h){var C=Cu(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(h,".".concat(C),void 0,this.componentId)),o=fi(o,C)}}return o},e}(),jf=Z.createContext(void 0);jf.Consumer;var Du={},Nf=new Set;function vy(e,t,n){var i=Tu(e),o=e,a=!ku(e),u=t.attrs,l=u===void 0?Ro:u,f=t.componentId,h=f===void 0?function(_,O){var F=typeof _!="string"?"sc":gf(_);Du[F]=(Du[F]||0)+1;var B="".concat(F,"-").concat(W1("6.0.7"+F+Du[F]));return O?"".concat(O,"-").concat(B):B}(t.displayName,t.parentComponentId):f,d=t.displayName,g=d===void 0?function(_){return ku(_)?"styled.".concat(_):"Styled(".concat(bf(_),")")}(e):d,v=t.displayName&&t.componentId?"".concat(gf(t.displayName),"-").concat(t.componentId):t.componentId||h,C=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,S=t.shouldForwardProp;if(i&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;S=function(_,O){return E(_,O)&&w(_,O)}}else S=E}var T=new wy(n,v,i?o.componentStyle:void 0);function j(_,O){return function(F,B,W){var J=F.attrs,fe=F.componentStyle,le=F.defaultProps,de=F.foldedComponentIds,be=F.styledComponentId,Se=F.target,pe=Z.useContext(jf),Fe=Bf(),De=F.shouldForwardProp||Fe.shouldForwardProp;nt.env.NODE_ENV!=="production"&&Z.useDebugValue(be);var _e=function(X,re,Ae){for(var He,xe=En(En({},re),{className:void 0,theme:Ae}),Oe=0;Oe<X.length;Oe+=1){var je=$i(He=X[Oe])?He(xe):He;for(var Pe in je)xe[Pe]=Pe==="className"?fi(xe[Pe],je[Pe]):Pe==="style"?En(En({},xe[Pe]),je[Pe]):je[Pe]}return re.className&&(xe.className=fi(xe.className,re.className)),xe}(J,B,M1(B,pe,le)||Ni),Ye=_e.as||Se,we={};for(var ge in _e)_e[ge]===void 0||ge[0]==="$"||ge==="as"||ge==="theme"||(ge==="forwardedAs"?we.as=_e.forwardedAs:De&&!De(ge,Ye)||(we[ge]=_e[ge],De||nt.env.NODE_ENV!=="development"||m1(ge)||Nf.has(ge)||!Au.has(Ye)||(Nf.add(ge),console.warn('styled-components: it looks like an unknown prop "'.concat(ge,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var We=function(X,re){var Ae=Bf(),He=X.generateAndInjectStyles(re,Ae.styleSheet,Ae.stylis);return nt.env.NODE_ENV!=="production"&&Z.useDebugValue(He),He}(fe,_e);nt.env.NODE_ENV!=="production"&&F.warnTooManyClasses&&F.warnTooManyClasses(We);var Y=fi(de,be);return We&&(Y+=" "+We),_e.className&&(Y+=" "+_e.className),we[ku(Ye)&&!Au.has(Ye)?"class":"className"]=Y,we.ref=W,Z.createElement(Ye,we)}(R,_,O)}nt.env.NODE_ENV!=="production"&&(j.displayName=g);var R=Z.forwardRef(j);return R.attrs=C,R.componentStyle=T,R.shouldForwardProp=S,nt.env.NODE_ENV!=="production"&&(R.displayName=g),R.foldedComponentIds=i?fi(o.foldedComponentIds,o.styledComponentId):"",R.styledComponentId=v,R.target=i?o.target:e,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=i?function(O){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];for(var W=0,J=F;W<J.length;W++)Iu(O,J[W],!0);return O}({},o.defaultProps,_):_}}),nt.env.NODE_ENV!=="production"&&($1(g,v),R.warnTooManyClasses=function(_,O){var F={},B=!1;return function(W){if(!B&&(F[W]=!0,Object.keys(F).length>=200)){var J=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(_).concat(J,`.
46
+ `),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(iy);if(f){var h=0|parseInt(f[1],10),d=f[2];h!==0&&(ny(d,h),sy(e,d,f[3]),e.getTag().insertRules(h,o)),o.length=0}else o.push(l)}}};function ay(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(ci,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(ci,"active"),i.setAttribute("data-styled-version","6.0.7");var u=ay();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},uy=function(){function e(t){this.element=kf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw Ui(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),cy=function(){function e(t){this.element=kf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),ly=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Tf=Su,fy={isServer:!Su,useCSSOMInjection:!N1},If=function(){function e(t,n,i){t===void 0&&(t=Ni),n===void 0&&(n={});var o=this;this.options=xn(xn({},fy),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Su&&Tf&&(Tf=!1,function(a){for(var u=document.querySelectorAll(ry),l=0,f=u.length;l<f;l++){var h=u[l];h&&h.getAttribute(ci)!=="active"&&(oy(a,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),Ou(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",h=function(g){var v=function(T){return jo.get(T)}(g);if(v===void 0)return"continue";var C=a.names.get(v),S=u.getGroup(g);if(C===void 0||S.length===0)return"continue";var E="".concat(ci,".g").concat(g,'[id="').concat(v,'"]'),w="";C!==void 0&&C.forEach(function(T){T.length>0&&(w+="".concat(T,","))}),f+="".concat(S).concat(E,'{content:"').concat(w,'"}').concat(`/*!sc*/
47
+ `)},d=0;d<l;d++)h(d);return f}(o)})}return e.registerId=function(t){return No(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(xn(xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new ly(o):i?new uy(o):new cy(o)}(this.options),new ty(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(No(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(No(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(No(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),hy=/&/g,dy=/^\s*\/\/.*$/gm;function Of(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Of(n.children,t)),n})}function py(e){var t,n,i,o=Ni,a=o.options,u=a===void 0?Ni:a,l=o.plugins,f=l===void 0?Ro:l,h=function(v,C,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):v},d=f.slice();d.push(function(v){v.type===_o&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(hy,n).replace(i,h))}),u.prefix&&d.push(L1),d.push(D1);var g=function(v,C,S,E){C===void 0&&(C=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var w=v.replace(dy,""),T=F1(S||C?"".concat(S," ").concat(C," { ").concat(w," }"):w);u.namespace&&(T=Of(T,u.namespace));var j=[];return Do(T,P1(d.concat(R1(function(R){return j.push(R)})))),j};return g.hash=f.length?f.reduce(function(v,C){return C.name||Ui(15),li(v,C.name)},5381).toString():"",g}var gy=new If,Bu=py(),Ff=Q.createContext({shouldForwardProp:void 0,styleSheet:gy,stylis:Bu});Ff.Consumer,Q.createContext(void 0);function Bf(){return Q.useContext(Ff)}var Df=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Bu);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ou(this,function(){throw Ui(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Bu),this.name+t.hash},e}(),yy=function(e){return e>="A"&&e<="Z"};function Pf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;yy(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Rf=function(e){return e==null||e===!1||e===""},Lf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Rf(a)&&(Array.isArray(a)&&a.isCss||$i(a)?i.push("".concat(Pf(o),":"),a,";"):Mi(a)?i.push.apply(i,Pi(Pi(["".concat(o," {")],Lf(a),!1),["}"],!1)):i.push("".concat(Pf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in j1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function hi(e,t,n,i){if(Rf(e))return[];if(Tu(e))return[".".concat(e.styledComponentId)];if($i(e)){if(!$i(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return nt.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Df||Mi(o)||o===null||console.error("".concat(bf(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),hi(o,t,n,i)}var a;return e instanceof Df?n?(e.inject(n,i),[e.getName(i)]):[e]:Mi(e)?Lf(e):Array.isArray(e)?Array.prototype.concat.apply(Ro,e.map(function(u){return hi(u,t,n,i)})):[e.toString()]}function my(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($i(n)&&!Tu(n))return!1}return!0}var by=mf("6.0.7"),wy=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=nt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&my(t),this.componentId=n,this.baseHash=li(by,n),this.baseStyle=i,If.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=fi(o,this.staticRulesId);else{var a=_f(hi(this.rules,t,n,i)),u=Cu(li(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=fi(o,u),this.staticRulesId=u}else{for(var f=li(this.baseHash,i.hash),h="",d=0;d<this.rules.length;d++){var g=this.rules[d];if(typeof g=="string")h+=g,nt.env.NODE_ENV!=="production"&&(f=li(f,g));else if(g){var v=_f(hi(g,t,n,i));f=li(f,v),h+=v}}if(h){var C=Cu(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(h,".".concat(C),void 0,this.componentId)),o=fi(o,C)}}return o},e}(),jf=Q.createContext(void 0);jf.Consumer;var Du={},Nf=new Set;function vy(e,t,n){var i=Tu(e),o=e,a=!ku(e),u=t.attrs,l=u===void 0?Ro:u,f=t.componentId,h=f===void 0?function(_,O){var F=typeof _!="string"?"sc":gf(_);Du[F]=(Du[F]||0)+1;var B="".concat(F,"-").concat(W1("6.0.7"+F+Du[F]));return O?"".concat(O,"-").concat(B):B}(t.displayName,t.parentComponentId):f,d=t.displayName,g=d===void 0?function(_){return ku(_)?"styled.".concat(_):"Styled(".concat(bf(_),")")}(e):d,v=t.displayName&&t.componentId?"".concat(gf(t.displayName),"-").concat(t.componentId):t.componentId||h,C=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,S=t.shouldForwardProp;if(i&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;S=function(_,O){return E(_,O)&&w(_,O)}}else S=E}var T=new wy(n,v,i?o.componentStyle:void 0);function j(_,O){return function(F,B,W){var J=F.attrs,fe=F.componentStyle,le=F.defaultProps,de=F.foldedComponentIds,be=F.styledComponentId,Se=F.target,pe=Q.useContext(jf),De=Bf(),Re=F.shouldForwardProp||De.shouldForwardProp;nt.env.NODE_ENV!=="production"&&Q.useDebugValue(be);var Te=function(X,re,_e){for(var ze,xe=xn(xn({},re),{className:void 0,theme:_e}),Fe=0;Fe<X.length;Fe+=1){var Be=$i(ze=X[Fe])?ze(xe):ze;for(var Le in Be)xe[Le]=Le==="className"?fi(xe[Le],Be[Le]):Le==="style"?xn(xn({},xe[Le]),Be[Le]):Be[Le]}return re.className&&(xe.className=fi(xe.className,re.className)),xe}(J,B,M1(B,pe,le)||Ni),Xe=Te.as||Se,ve={};for(var ge in Te)Te[ge]===void 0||ge[0]==="$"||ge==="as"||ge==="theme"||(ge==="forwardedAs"?ve.as=Te.forwardedAs:Re&&!Re(ge,Xe)||(ve[ge]=Te[ge],Re||nt.env.NODE_ENV!=="development"||m1(ge)||Nf.has(ge)||!Au.has(Xe)||(Nf.add(ge),console.warn('styled-components: it looks like an unknown prop "'.concat(ge,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Ke=function(X,re){var _e=Bf(),ze=X.generateAndInjectStyles(re,_e.styleSheet,_e.stylis);return nt.env.NODE_ENV!=="production"&&Q.useDebugValue(ze),ze}(fe,Te);nt.env.NODE_ENV!=="production"&&F.warnTooManyClasses&&F.warnTooManyClasses(Ke);var Y=fi(de,be);return Ke&&(Y+=" "+Ke),Te.className&&(Y+=" "+Te.className),ve[ku(Xe)&&!Au.has(Xe)?"class":"className"]=Y,ve.ref=W,Q.createElement(Xe,ve)}(R,_,O)}nt.env.NODE_ENV!=="production"&&(j.displayName=g);var R=Q.forwardRef(j);return R.attrs=C,R.componentStyle=T,R.shouldForwardProp=S,nt.env.NODE_ENV!=="production"&&(R.displayName=g),R.foldedComponentIds=i?fi(o.foldedComponentIds,o.styledComponentId):"",R.styledComponentId=v,R.target=i?o.target:e,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=i?function(O){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];for(var W=0,J=F;W<J.length;W++)Iu(O,J[W],!0);return O}({},o.defaultProps,_):_}}),nt.env.NODE_ENV!=="production"&&($1(g,v),R.warnTooManyClasses=function(_,O){var F={},B=!1;return function(W){if(!B&&(F[W]=!0,Object.keys(F).length>=200)){var J=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(_).concat(J,`.
48
48
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
49
  Example:
50
50
  const Component = styled.div.attrs(props => ({
@@ -53,11 +53,11 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),B=!0,F={}}}}(g,v)),Ou(R,function(){return".".concat(R.styledComponentId)}),a&&Cf(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),R}function $f(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Mf=function(e){return Object.assign(e,{isCss:!0})};function xy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($i(e)||Mi(e)){var i=e;return Mf(hi($f(Ro,Pi([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?hi(o):Mf(hi($f(o,t)))}function Pu(e,t,n){if(n===void 0&&(n=Ni),!t)throw Ui(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,xy.apply(void 0,Pi([o],a,!1)))};return i.attrs=function(o){return Pu(e,t,En(En({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Pu(e,t,En(En({},n),o))},i}var Uf=function(e){return Pu(vy,e)},Ke=Uf;Au.forEach(function(e){Ke[e]=Uf(e)}),nt.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
+ <Component />`),B=!0,F={}}}}(g,v)),Ou(R,function(){return".".concat(R.styledComponentId)}),a&&Cf(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),R}function $f(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Mf=function(e){return Object.assign(e,{isCss:!0})};function xy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($i(e)||Mi(e)){var i=e;return Mf(hi($f(Ro,Pi([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?hi(o):Mf(hi($f(o,t)))}function Pu(e,t,n){if(n===void 0&&(n=Ni),!t)throw Ui(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,xy.apply(void 0,Pi([o],a,!1)))};return i.attrs=function(o){return Pu(e,t,xn(xn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Pu(e,t,xn(xn({},n),o))},i}var Uf=function(e){return Pu(vy,e)},He=Uf;Au.forEach(function(e){He[e]=Uf(e)}),nt.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
57
  Perhaps you're looking to import 'styled-components/native'?
58
58
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);var $o="__sc-".concat(ci,"__");nt.env.NODE_ENV!=="production"&&nt.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[$o]||(window[$o]=0),window[$o]===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.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Ar=Ke.div`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Ar=He.div`
61
61
  height: ${({$space:e,$spaceMob:t,$samespace:n})=>t||(e&&n?e:24)}px;
62
62
  width: 100%;
63
63
 
@@ -72,33 +72,33 @@ See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Ar=Ke.div`
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var Vf;function Ey(){if(Vf)return Is;Vf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,h){var d,g={},v=null,C=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(d in f)i.call(f,d)&&!a.hasOwnProperty(d)&&(g[d]=f[d]);if(l&&l.defaultProps)for(d in f=l.defaultProps,f)g[d]===void 0&&(g[d]=f[d]);return{$$typeof:t,type:l,key:v,ref:C,props:g,_owner:o.current}}return Is.Fragment=n,Is.jsx=u,Is.jsxs=u,Is}var Os={},qf;function Sy(){return qf||(qf=1,nt.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,E="@@iterator";function w(M){if(M===null||typeof M!="object")return null;var ce=S&&M[S]||M[E];return typeof ce=="function"?ce:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(M){{for(var ce=arguments.length,ye=new Array(ce>1?ce-1:0),Ie=1;Ie<ce;Ie++)ye[Ie-1]=arguments[Ie];R("error",M,ye)}}function R(M,ce,ye){{var Ie=T.ReactDebugCurrentFrame,ct=Ie.getStackAddendum();ct!==""&&(ce+="%s",ye=ye.concat([ct]));var lt=ye.map(function(rt){return String(rt)});lt.unshift("Warning: "+ce),Function.prototype.apply.call(console[M],console,lt)}}var _=!1,O=!1,F=!1,B=!1,W=!1,J;J=Symbol.for("react.module.reference");function fe(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===h||M===d||B||M===C||_||O||F||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===g||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===J||M.getModuleId!==void 0))}function le(M,ce,ye){var Ie=M.displayName;if(Ie)return Ie;var ct=ce.displayName||ce.name||"";return ct!==""?ye+"("+ct+")":ye}function de(M){return M.displayName||"Context"}function be(M){if(M==null)return null;if(typeof M.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case d:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var ce=M;return de(ce)+".Consumer";case u:var ye=M;return de(ye._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case g:var Ie=M.displayName||null;return Ie!==null?Ie:be(M.type)||"Memo";case v:{var ct=M,lt=ct._payload,rt=ct._init;try{return be(rt(lt))}catch{return null}}}return null}var Se=Object.assign,pe=0,Fe,De,_e,Ye,we,ge,We;function Y(){}Y.__reactDisabledLog=!0;function X(){{if(pe===0){Fe=console.log,De=console.info,_e=console.warn,Ye=console.error,we=console.group,ge=console.groupCollapsed,We=console.groupEnd;var M={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}pe++}}function re(){{if(pe--,pe===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Se({},M,{value:Fe}),info:Se({},M,{value:De}),warn:Se({},M,{value:_e}),error:Se({},M,{value:Ye}),group:Se({},M,{value:we}),groupCollapsed:Se({},M,{value:ge}),groupEnd:Se({},M,{value:We})})}pe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ae=T.ReactCurrentDispatcher,He;function xe(M,ce,ye){{if(He===void 0)try{throw Error()}catch(ct){var Ie=ct.stack.trim().match(/\n( *(at )?)/);He=Ie&&Ie[1]||""}return`
76
- `+He+M}}var Oe=!1,je;{var Pe=typeof WeakMap=="function"?WeakMap:Map;je=new Pe}function Ct(M,ce){if(!M||Oe)return"";{var ye=je.get(M);if(ye!==void 0)return ye}var Ie;Oe=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var lt;lt=Ae.current,Ae.current=null,X();try{if(ce){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Kt){Ie=Kt}Reflect.construct(M,[],rt)}else{try{rt.call()}catch(Kt){Ie=Kt}M.call(rt.prototype)}}else{try{throw Error()}catch(Kt){Ie=Kt}M()}}catch(Kt){if(Kt&&Ie&&typeof Kt.stack=="string"){for(var Qe=Kt.stack.split(`
77
- `),Xt=Ie.stack.split(`
78
- `),Ot=Qe.length-1,Dt=Xt.length-1;Ot>=1&&Dt>=0&&Qe[Ot]!==Xt[Dt];)Dt--;for(;Ot>=1&&Dt>=0;Ot--,Dt--)if(Qe[Ot]!==Xt[Dt]){if(Ot!==1||Dt!==1)do if(Ot--,Dt--,Dt<0||Qe[Ot]!==Xt[Dt]){var fn=`
79
- `+Qe[Ot].replace(" at new "," at ");return M.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",M.displayName)),typeof M=="function"&&je.set(M,fn),fn}while(Ot>=1&&Dt>=0);break}}}finally{Oe=!1,Ae.current=lt,re(),Error.prepareStackTrace=ct}var Tn=M?M.displayName||M.name:"",ir=Tn?xe(Tn):"";return typeof M=="function"&&je.set(M,ir),ir}function nn(M,ce,ye){return Ct(M,!1)}function Rt(M){var ce=M.prototype;return!!(ce&&ce.isReactComponent)}function Lt(M,ce,ye){if(M==null)return"";if(typeof M=="function")return Ct(M,Rt(M));if(typeof M=="string")return xe(M);switch(M){case h:return xe("Suspense");case d:return xe("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return nn(M.render);case g:return Lt(M.type,ce,ye);case v:{var Ie=M,ct=Ie._payload,lt=Ie._init;try{return Lt(lt(ct),ce,ye)}catch{}}}return""}var jt=Object.prototype.hasOwnProperty,bt={},Te=T.ReactDebugCurrentFrame;function et(M){if(M){var ce=M._owner,ye=Lt(M.type,M._source,ce?ce.type:null);Te.setExtraStackFrame(ye)}else Te.setExtraStackFrame(null)}function gt(M,ce,ye,Ie,ct){{var lt=Function.call.bind(jt);for(var rt in M)if(lt(M,rt)){var Qe=void 0;try{if(typeof M[rt]!="function"){var Xt=Error((Ie||"React class")+": "+ye+" type `"+rt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[rt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Qe=M[rt](ce,rt,Ie,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Qe=Ot}Qe&&!(Qe instanceof Error)&&(et(ct),j("%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).",Ie||"React class",ye,rt,typeof Qe),et(null)),Qe instanceof Error&&!(Qe.message in bt)&&(bt[Qe.message]=!0,et(ct),j("Failed %s type: %s",ye,Qe.message),et(null))}}}var vt=Array.isArray;function ve(M){return vt(M)}function It(M){{var ce=typeof Symbol=="function"&&Symbol.toStringTag,ye=ce&&M[Symbol.toStringTag]||M.constructor.name||"Object";return ye}}function an(M){try{return Xe(M),!1}catch{return!0}}function Xe(M){return""+M}function Bt(M){if(an(M))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(M)),Xe(M)}var ke=T.ReactCurrentOwner,Ne={key:!0,ref:!0,__self:!0,__source:!0},Wt,I;function y(M){if(jt.call(M,"ref")){var ce=Object.getOwnPropertyDescriptor(M,"ref").get;if(ce&&ce.isReactWarning)return!1}return M.ref!==void 0}function b(M){if(jt.call(M,"key")){var ce=Object.getOwnPropertyDescriptor(M,"key").get;if(ce&&ce.isReactWarning)return!1}return M.key!==void 0}function L(M,ce){typeof M.ref=="string"&&ke.current}function q(M,ce){{var ye=function(){Wt||(Wt=!0,j("%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)",ce))};ye.isReactWarning=!0,Object.defineProperty(M,"key",{get:ye,configurable:!0})}}function G(M,ce){{var ye=function(){I||(I=!0,j("%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)",ce))};ye.isReactWarning=!0,Object.defineProperty(M,"ref",{get:ye,configurable:!0})}}var ee=function(M,ce,ye,Ie,ct,lt,rt){var Qe={$$typeof:t,type:M,key:ce,ref:ye,props:rt,_owner:lt};return Qe._store={},Object.defineProperty(Qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.defineProperty(Qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(Qe.props),Object.freeze(Qe)),Qe};function Me(M,ce,ye,Ie,ct){{var lt,rt={},Qe=null,Xt=null;ye!==void 0&&(Bt(ye),Qe=""+ye),b(ce)&&(Bt(ce.key),Qe=""+ce.key),y(ce)&&(Xt=ce.ref,L(ce,ct));for(lt in ce)jt.call(ce,lt)&&!Ne.hasOwnProperty(lt)&&(rt[lt]=ce[lt]);if(M&&M.defaultProps){var Ot=M.defaultProps;for(lt in Ot)rt[lt]===void 0&&(rt[lt]=Ot[lt])}if(Qe||Xt){var Dt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Qe&&q(rt,Dt),Xt&&G(rt,Dt)}return ee(M,Qe,Xt,ct,Ie,ke.current,rt)}}var dt=T.ReactCurrentOwner,ut=T.ReactDebugCurrentFrame;function ht(M){if(M){var ce=M._owner,ye=Lt(M.type,M._source,ce?ce.type:null);ut.setExtraStackFrame(ye)}else ut.setExtraStackFrame(null)}var st;st=!1;function Gr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function xi(){{if(dt.current){var M=be(dt.current.type);if(M)return`
75
+ */var Vf;function Ey(){if(Vf)return Is;Vf=1;var e=Q,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,h){var d,g={},v=null,C=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(d in f)i.call(f,d)&&!a.hasOwnProperty(d)&&(g[d]=f[d]);if(l&&l.defaultProps)for(d in f=l.defaultProps,f)g[d]===void 0&&(g[d]=f[d]);return{$$typeof:t,type:l,key:v,ref:C,props:g,_owner:o.current}}return Is.Fragment=n,Is.jsx=u,Is.jsxs=u,Is}var Os={},qf;function Sy(){return qf||(qf=1,nt.env.NODE_ENV!=="production"&&function(){var e=Q,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,E="@@iterator";function w(M){if(M===null||typeof M!="object")return null;var ce=S&&M[S]||M[E];return typeof ce=="function"?ce:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(M){{for(var ce=arguments.length,ye=new Array(ce>1?ce-1:0),Ie=1;Ie<ce;Ie++)ye[Ie-1]=arguments[Ie];R("error",M,ye)}}function R(M,ce,ye){{var Ie=T.ReactDebugCurrentFrame,ct=Ie.getStackAddendum();ct!==""&&(ce+="%s",ye=ye.concat([ct]));var lt=ye.map(function(rt){return String(rt)});lt.unshift("Warning: "+ce),Function.prototype.apply.call(console[M],console,lt)}}var _=!1,O=!1,F=!1,B=!1,W=!1,J;J=Symbol.for("react.module.reference");function fe(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===h||M===d||B||M===C||_||O||F||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===g||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===J||M.getModuleId!==void 0))}function le(M,ce,ye){var Ie=M.displayName;if(Ie)return Ie;var ct=ce.displayName||ce.name||"";return ct!==""?ye+"("+ct+")":ye}function de(M){return M.displayName||"Context"}function be(M){if(M==null)return null;if(typeof M.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case d:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var ce=M;return de(ce)+".Consumer";case u:var ye=M;return de(ye._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case g:var Ie=M.displayName||null;return Ie!==null?Ie:be(M.type)||"Memo";case v:{var ct=M,lt=ct._payload,rt=ct._init;try{return be(rt(lt))}catch{return null}}}return null}var Se=Object.assign,pe=0,De,Re,Te,Xe,ve,ge,Ke;function Y(){}Y.__reactDisabledLog=!0;function X(){{if(pe===0){De=console.log,Re=console.info,Te=console.warn,Xe=console.error,ve=console.group,ge=console.groupCollapsed,Ke=console.groupEnd;var M={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}pe++}}function re(){{if(pe--,pe===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Se({},M,{value:De}),info:Se({},M,{value:Re}),warn:Se({},M,{value:Te}),error:Se({},M,{value:Xe}),group:Se({},M,{value:ve}),groupCollapsed:Se({},M,{value:ge}),groupEnd:Se({},M,{value:Ke})})}pe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=T.ReactCurrentDispatcher,ze;function xe(M,ce,ye){{if(ze===void 0)try{throw Error()}catch(ct){var Ie=ct.stack.trim().match(/\n( *(at )?)/);ze=Ie&&Ie[1]||""}return`
76
+ `+ze+M}}var Fe=!1,Be;{var Le=typeof WeakMap=="function"?WeakMap:Map;Be=new Le}function _t(M,ce){if(!M||Fe)return"";{var ye=Be.get(M);if(ye!==void 0)return ye}var Ie;Fe=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var lt;lt=_e.current,_e.current=null,X();try{if(ce){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Ht){Ie=Ht}Reflect.construct(M,[],rt)}else{try{rt.call()}catch(Ht){Ie=Ht}M.call(rt.prototype)}}else{try{throw Error()}catch(Ht){Ie=Ht}M()}}catch(Ht){if(Ht&&Ie&&typeof Ht.stack=="string"){for(var Ze=Ht.stack.split(`
77
+ `),Qt=Ie.stack.split(`
78
+ `),Ot=Ze.length-1,Bt=Qt.length-1;Ot>=1&&Bt>=0&&Ze[Ot]!==Qt[Bt];)Bt--;for(;Ot>=1&&Bt>=0;Ot--,Bt--)if(Ze[Ot]!==Qt[Bt]){if(Ot!==1||Bt!==1)do if(Ot--,Bt--,Bt<0||Ze[Ot]!==Qt[Bt]){var ln=`
79
+ `+Ze[Ot].replace(" at new "," at ");return M.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",M.displayName)),typeof M=="function"&&Be.set(M,ln),ln}while(Ot>=1&&Bt>=0);break}}}finally{Fe=!1,_e.current=lt,re(),Error.prepareStackTrace=ct}var Tn=M?M.displayName||M.name:"",ir=Tn?xe(Tn):"";return typeof M=="function"&&Be.set(M,ir),ir}function rn(M,ce,ye){return _t(M,!1)}function Pt(M){var ce=M.prototype;return!!(ce&&ce.isReactComponent)}function Rt(M,ce,ye){if(M==null)return"";if(typeof M=="function")return _t(M,Pt(M));if(typeof M=="string")return xe(M);switch(M){case h:return xe("Suspense");case d:return xe("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return rn(M.render);case g:return Rt(M.type,ce,ye);case v:{var Ie=M,ct=Ie._payload,lt=Ie._init;try{return Rt(lt(ct),ce,ye)}catch{}}}return""}var Lt=Object.prototype.hasOwnProperty,wt={},kn=T.ReactDebugCurrentFrame;function Ae(M){if(M){var ce=M._owner,ye=Rt(M.type,M._source,ce?ce.type:null);kn.setExtraStackFrame(ye)}else kn.setExtraStackFrame(null)}function Ue(M,ce,ye,Ie,ct){{var lt=Function.call.bind(Lt);for(var rt in M)if(lt(M,rt)){var Ze=void 0;try{if(typeof M[rt]!="function"){var Qt=Error((Ie||"React class")+": "+ye+" type `"+rt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[rt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Qt.name="Invariant Violation",Qt}Ze=M[rt](ce,rt,Ie,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Ze=Ot}Ze&&!(Ze instanceof Error)&&(Ae(ct),j("%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).",Ie||"React class",ye,rt,typeof Ze),Ae(null)),Ze instanceof Error&&!(Ze.message in wt)&&(wt[Ze.message]=!0,Ae(ct),j("Failed %s type: %s",ye,Ze.message),Ae(null))}}}var Qe=Array.isArray;function we(M){return Qe(M)}function pt(M){{var ce=typeof Symbol=="function"&&Symbol.toStringTag,ye=ce&&M[Symbol.toStringTag]||M.constructor.name||"Object";return ye}}function Wt(M){try{return Et(M),!1}catch{return!0}}function Et(M){return""+M}function ht(M){if(Wt(M))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(M)),Et(M)}var Ce=T.ReactCurrentOwner,Oe={key:!0,ref:!0,__self:!0,__source:!0},Kt,I;function y(M){if(Lt.call(M,"ref")){var ce=Object.getOwnPropertyDescriptor(M,"ref").get;if(ce&&ce.isReactWarning)return!1}return M.ref!==void 0}function b(M){if(Lt.call(M,"key")){var ce=Object.getOwnPropertyDescriptor(M,"key").get;if(ce&&ce.isReactWarning)return!1}return M.key!==void 0}function L(M,ce){typeof M.ref=="string"&&Ce.current}function q(M,ce){{var ye=function(){Kt||(Kt=!0,j("%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)",ce))};ye.isReactWarning=!0,Object.defineProperty(M,"key",{get:ye,configurable:!0})}}function G(M,ce){{var ye=function(){I||(I=!0,j("%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)",ce))};ye.isReactWarning=!0,Object.defineProperty(M,"ref",{get:ye,configurable:!0})}}var ee=function(M,ce,ye,Ie,ct,lt,rt){var Ze={$$typeof:t,type:M,key:ce,ref:ye,props:rt,_owner:lt};return Ze._store={},Object.defineProperty(Ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.defineProperty(Ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(Ze.props),Object.freeze(Ze)),Ze};function Me(M,ce,ye,Ie,ct){{var lt,rt={},Ze=null,Qt=null;ye!==void 0&&(ht(ye),Ze=""+ye),b(ce)&&(ht(ce.key),Ze=""+ce.key),y(ce)&&(Qt=ce.ref,L(ce,ct));for(lt in ce)Lt.call(ce,lt)&&!Oe.hasOwnProperty(lt)&&(rt[lt]=ce[lt]);if(M&&M.defaultProps){var Ot=M.defaultProps;for(lt in Ot)rt[lt]===void 0&&(rt[lt]=Ot[lt])}if(Ze||Qt){var Bt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Ze&&q(rt,Bt),Qt&&G(rt,Bt)}return ee(M,Ze,Qt,ct,Ie,Ce.current,rt)}}var gt=T.ReactCurrentOwner,ut=T.ReactDebugCurrentFrame;function dt(M){if(M){var ce=M._owner,ye=Rt(M.type,M._source,ce?ce.type:null);ut.setExtraStackFrame(ye)}else ut.setExtraStackFrame(null)}var st;st=!1;function Gr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function xi(){{if(gt.current){var M=be(gt.current.type);if(M)return`
80
80
 
81
81
  Check the render method of \``+M+"`."}return""}}function as(M){return""}var us={};function cs(M){{var ce=xi();if(!ce){var ye=typeof M=="string"?M:M.displayName||M.name;ye&&(ce=`
82
82
 
83
- Check the top-level render call using <`+ye+">.")}return ce}}function Jr(M,ce){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var ye=cs(ce);if(us[ye])return;us[ye]=!0;var Ie="";M&&M._owner&&M._owner!==dt.current&&(Ie=" It was passed a child from "+be(M._owner.type)+"."),ht(M),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Ie),ht(null)}}function Ei(M,ce){{if(typeof M!="object")return;if(ve(M))for(var ye=0;ye<M.length;ye++){var Ie=M[ye];Gr(Ie)&&Jr(Ie,ce)}else if(Gr(M))M._store&&(M._store.validated=!0);else if(M){var ct=w(M);if(typeof ct=="function"&&ct!==M.entries)for(var lt=ct.call(M),rt;!(rt=lt.next()).done;)Gr(rt.value)&&Jr(rt.value,ce)}}}function no(M){{var ce=M.type;if(ce==null||typeof ce=="string")return;var ye;if(typeof ce=="function")ye=ce.propTypes;else if(typeof ce=="object"&&(ce.$$typeof===f||ce.$$typeof===g))ye=ce.propTypes;else return;if(ye){var Ie=be(ce);gt(ye,M.props,"prop",Ie,M)}else if(ce.PropTypes!==void 0&&!st){st=!0;var ct=be(ce);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ct||"Unknown")}typeof ce.getDefaultProps=="function"&&!ce.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ro(M){{for(var ce=Object.keys(M.props),ye=0;ye<ce.length;ye++){var Ie=ce[ye];if(Ie!=="children"&&Ie!=="key"){ht(M),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ie),ht(null);break}}M.ref!==null&&(ht(M),j("Invalid attribute `ref` supplied to `React.Fragment`."),ht(null))}}var Ir={};function rr(M,ce,ye,Ie,ct,lt){{var rt=fe(M);if(!rt){var Qe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Xt=as();Xt?Qe+=Xt:Qe+=xi();var Ot;M===null?Ot="null":ve(M)?Ot="array":M!==void 0&&M.$$typeof===t?(Ot="<"+(be(M.type)||"Unknown")+" />",Qe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof M,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Qe)}var Dt=Me(M,ce,ye,ct,lt);if(Dt==null)return Dt;if(rt){var fn=ce.children;if(fn!==void 0)if(Ie)if(ve(fn)){for(var Tn=0;Tn<fn.length;Tn++)Ei(fn[Tn],M);Object.freeze&&Object.freeze(fn)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ei(fn,M)}if(jt.call(ce,"key")){var ir=be(M),Kt=Object.keys(ce).filter(function(ao){return ao!=="key"}),Si=Kt.length>0?"{key: someKey, "+Kt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ir[ir+Si]){var oo=Kt.length>0?"{"+Kt.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
83
+ Check the top-level render call using <`+ye+">.")}return ce}}function Jr(M,ce){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var ye=cs(ce);if(us[ye])return;us[ye]=!0;var Ie="";M&&M._owner&&M._owner!==gt.current&&(Ie=" It was passed a child from "+be(M._owner.type)+"."),dt(M),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Ie),dt(null)}}function Ei(M,ce){{if(typeof M!="object")return;if(we(M))for(var ye=0;ye<M.length;ye++){var Ie=M[ye];Gr(Ie)&&Jr(Ie,ce)}else if(Gr(M))M._store&&(M._store.validated=!0);else if(M){var ct=w(M);if(typeof ct=="function"&&ct!==M.entries)for(var lt=ct.call(M),rt;!(rt=lt.next()).done;)Gr(rt.value)&&Jr(rt.value,ce)}}}function no(M){{var ce=M.type;if(ce==null||typeof ce=="string")return;var ye;if(typeof ce=="function")ye=ce.propTypes;else if(typeof ce=="object"&&(ce.$$typeof===f||ce.$$typeof===g))ye=ce.propTypes;else return;if(ye){var Ie=be(ce);Ue(ye,M.props,"prop",Ie,M)}else if(ce.PropTypes!==void 0&&!st){st=!0;var ct=be(ce);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ct||"Unknown")}typeof ce.getDefaultProps=="function"&&!ce.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ro(M){{for(var ce=Object.keys(M.props),ye=0;ye<ce.length;ye++){var Ie=ce[ye];if(Ie!=="children"&&Ie!=="key"){dt(M),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ie),dt(null);break}}M.ref!==null&&(dt(M),j("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Ir={};function rr(M,ce,ye,Ie,ct,lt){{var rt=fe(M);if(!rt){var Ze="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Ze+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Qt=as();Qt?Ze+=Qt:Ze+=xi();var Ot;M===null?Ot="null":we(M)?Ot="array":M!==void 0&&M.$$typeof===t?(Ot="<"+(be(M.type)||"Unknown")+" />",Ze=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof M,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Ze)}var Bt=Me(M,ce,ye,ct,lt);if(Bt==null)return Bt;if(rt){var ln=ce.children;if(ln!==void 0)if(Ie)if(we(ln)){for(var Tn=0;Tn<ln.length;Tn++)Ei(ln[Tn],M);Object.freeze&&Object.freeze(ln)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ei(ln,M)}if(Lt.call(ce,"key")){var ir=be(M),Ht=Object.keys(ce).filter(function(ao){return ao!=="key"}),Si=Ht.length>0?"{key: someKey, "+Ht.join(": ..., ")+": ...}":"{key: someKey}";if(!Ir[ir+Si]){var oo=Ht.length>0?"{"+Ht.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
84
84
  let props = %s;
85
85
  <%s {...props} />
86
86
  React keys must be passed directly to JSX without using spread:
87
87
  let props = %s;
88
- <%s key={someKey} {...props} />`,Si,ir,oo,ir),Ir[ir+Si]=!0}}return M===i?ro(Dt):no(Dt),Dt}}function Yr(M,ce,ye){return rr(M,ce,ye,!0)}function io(M,ce,ye){return rr(M,ce,ye,!1)}var so=io,yn=Yr;Os.Fragment=i,Os.jsx=so,Os.jsxs=yn}()),Os}nt.env.NODE_ENV==="production"?Ru.exports=Ey():Ru.exports=Sy();var x=Ru.exports;const Ay={CustomTreeProvider:Ke.div`
88
+ <%s key={someKey} {...props} />`,Si,ir,oo,ir),Ir[ir+Si]=!0}}return M===i?ro(Bt):no(Bt),Bt}}function Yr(M,ce,ye){return rr(M,ce,ye,!0)}function io(M,ce,ye){return rr(M,ce,ye,!1)}var so=io,gn=Yr;Os.Fragment=i,Os.jsx=so,Os.jsxs=gn}()),Os}nt.env.NODE_ENV==="production"?Ru.exports=Ey():Ru.exports=Sy();var x=Ru.exports;const Ay={CustomTreeProvider:He.div`
89
89
  .ant-tree-switcher {
90
90
  display: flex;
91
91
  align-items: center;
92
92
  justify-content: center;
93
93
  }
94
- `},{Search:Cy}=V.Input,_y=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:h}=f.target,d={},g=(w,T)=>{w.forEach(j=>{d[j.key]=T,j.children&&g(j.children,j.key)})};g(e,null);const v=w=>{const T=[];let j=d[w];for(;j;)T.push(j),j=d[j];return T},C=[],S=w=>{w.forEach(T=>{if(T.title.toLowerCase().includes(h.toLowerCase())){C.push(T.key);const R=v(T.key);C.push(...R)}T.children&&S(T.children)})};S(e);const E=Array.from(new Set(C)).filter(Boolean);i(E),a(h)},l=f=>f.map(h=>{const d=h.title,g=d.toLowerCase().indexOf(o.toLowerCase()),v=d.substring(0,g),C=d.substring(g+o.length),S=g>-1?x.jsxs("span",{children:[v,x.jsx("span",{style:{color:"#f50"},children:o}),C]}):x.jsx("span",{children:d});return h.children?{...h,title:S,children:l(h.children)}:{...h,title:S}});return x.jsxs(x.Fragment,{children:[x.jsx(Cy,{style:{marginBottom:8},placeholder:"Search",onChange:u}),x.jsx(Ay.CustomTreeProvider,{children:x.jsx(V.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,h)=>{t&&t(f,h),n.includes(h.node.key)?i([...n.filter(d=>d!==h.node.key)]):i([...n,h.node.key])}})})]})},ky=globalThis||void 0||self;function Wf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ty}=Object.prototype,{getPrototypeOf:Lu}=Object,Mo=(e=>t=>{const n=Ty.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fr=e=>(e=e.toLowerCase(),t=>Mo(t)===e),Uo=e=>t=>typeof t===e,{isArray:Vi}=Array,Fs=Uo("undefined");function Iy(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kf=fr("ArrayBuffer");function Oy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kf(e.buffer),t}const Fy=Uo("string"),jn=Uo("function"),Hf=Uo("number"),Vo=e=>e!==null&&typeof e=="object",By=e=>e===!0||e===!1,qo=e=>{if(Mo(e)!=="object")return!1;const t=Lu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dy=fr("Date"),Py=fr("File"),Ry=fr("Blob"),Ly=fr("FileList"),jy=e=>Vo(e)&&jn(e.pipe),Ny=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jn(e.append)&&((t=Mo(e))==="formdata"||t==="object"&&jn(e.toString)&&e.toString()==="[object FormData]"))},$y=fr("URLSearchParams"),My=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Vi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function zf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Gf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ky,Jf=e=>!Fs(e)&&e!==Gf;function ju(){const{caseless:e}=Jf(this)&&this||{},t={},n=(i,o)=>{const a=e&&zf(t,o)||o;qo(t[a])&&qo(i)?t[a]=ju(t[a],i):qo(i)?t[a]=ju({},i):Vi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Bs(arguments[i],n);return t}const Uy=(e,t,n,{allOwnKeys:i}={})=>(Bs(t,(o,a)=>{n&&jn(o)?e[a]=Wf(o,n):e[a]=o},{allOwnKeys:i}),e),Vy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qy=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Wy=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Lu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ky=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Hy=e=>{if(!e)return null;if(Vi(e))return e;let t=e.length;if(!Hf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lu(Uint8Array)),Gy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Jy=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Yy=fr("HTMLFormElement"),Xy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Yf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qy=fr("RegExp"),Xf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Bs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Zy=e=>{Xf(e,(t,n)=>{if(jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(jn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},em=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Vi(e)?i(e):i(String(e).split(t)),n},tm=()=>{},nm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Nu="abcdefghijklmnopqrstuvwxyz",Qf="0123456789",Zf={DIGIT:Qf,ALPHA:Nu,ALPHA_DIGIT:Nu+Nu.toUpperCase()+Qf},rm=(e=16,t=Zf.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function im(e){return!!(e&&jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sm=e=>{const t=new Array(10),n=(i,o)=>{if(Vo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Vi(i)?[]:{};return Bs(i,(u,l)=>{const f=n(u,o+1);!Fs(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},om=fr("AsyncFunction"),ie={isArray:Vi,isArrayBuffer:Kf,isBuffer:Iy,isFormData:Ny,isArrayBufferView:Oy,isString:Fy,isNumber:Hf,isBoolean:By,isObject:Vo,isPlainObject:qo,isUndefined:Fs,isDate:Dy,isFile:Py,isBlob:Ry,isRegExp:Qy,isFunction:jn,isStream:jy,isURLSearchParams:$y,isTypedArray:zy,isFileList:Ly,forEach:Bs,merge:ju,extend:Uy,trim:My,stripBOM:Vy,inherits:qy,toFlatObject:Wy,kindOf:Mo,kindOfTest:fr,endsWith:Ky,toArray:Hy,forEachEntry:Gy,matchAll:Jy,isHTMLForm:Yy,hasOwnProperty:Yf,hasOwnProp:Yf,reduceDescriptors:Xf,freezeMethods:Zy,toObjectSet:em,toCamelCase:Xy,noop:tm,toFiniteNumber:nm,findKey:zf,global:Gf,isContextDefined:Jf,ALPHABET:Zf,generateString:rm,isSpecCompliantForm:im,toJSONObject:sm,isAsyncFn:om,isThenable:e=>e&&(Vo(e)||jn(e))&&jn(e.then)&&jn(e.catch)};var eh={},Wo={};Wo.byteLength=cm,Wo.toByteArray=fm,Wo.fromByteArray=pm;for(var hr=[],Nn=[],am=typeof Uint8Array<"u"?Uint8Array:Array,$u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi=0,um=$u.length;qi<um;++qi)hr[qi]=$u[qi],Nn[$u.charCodeAt(qi)]=qi;Nn[45]=62,Nn[95]=63;function th(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function cm(e){var t=th(e),n=t[0],i=t[1];return(n+i)*3/4-i}function lm(e,t,n){return(t+n)*3/4-n}function fm(e){var t,n=th(e),i=n[0],o=n[1],a=new am(lm(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=Nn[e.charCodeAt(f)]<<18|Nn[e.charCodeAt(f+1)]<<12|Nn[e.charCodeAt(f+2)]<<6|Nn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=Nn[e.charCodeAt(f)]<<2|Nn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=Nn[e.charCodeAt(f)]<<10|Nn[e.charCodeAt(f+1)]<<4|Nn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function hm(e){return hr[e>>18&63]+hr[e>>12&63]+hr[e>>6&63]+hr[e&63]}function dm(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(hm(i));return o.join("")}function pm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(dm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(hr[t>>2]+hr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(hr[t>>10]+hr[t>>4&63]+hr[t<<2&63]+"=")),o.join("")}var Mu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Mu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,h=f>>1,d=-7,g=n?o-1:0,v=n?-1:1,C=e[t+g];for(g+=v,a=C&(1<<-d)-1,C>>=-d,d+=l;d>0;a=a*256+e[t+g],g+=v,d-=8);for(u=a&(1<<-d)-1,a>>=-d,d+=i;d>0;u=u*256+e[t+g],g+=v,d-=8);if(a===0)a=1-h;else{if(a===f)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-h}return(C?-1:1)*u*Math.pow(2,a-i)},Mu.write=function(e,t,n,i,o,a){var u,l,f,h=a*8-o-1,d=(1<<h)-1,g=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,S=i?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=d):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+g>=1?t+=v/f:t+=v*Math.pow(2,1-g),t*f>=2&&(u++,f/=2),u+g>=d?(l=0,u=d):u+g>=1?(l=(t*f-1)*Math.pow(2,o),u=u+g):(l=t*Math.pow(2,g-1)*Math.pow(2,o),u=0));o>=8;e[n+C]=l&255,C+=S,l/=256,o-=8);for(u=u<<o|l,h+=o;h>0;e[n+C]=u&255,C+=S,u/=256,h-=8);e[n+C-S]|=E*128};/*!
94
+ `},{Search:Cy}=V.Input,_y=({treeData:e,onSelect:t})=>{const[n,i]=Q.useState([]),[o,a]=Q.useState(""),u=f=>{const{value:h}=f.target,d={},g=(w,T)=>{w.forEach(j=>{d[j.key]=T,j.children&&g(j.children,j.key)})};g(e,null);const v=w=>{const T=[];let j=d[w];for(;j;)T.push(j),j=d[j];return T},C=[],S=w=>{w.forEach(T=>{if(T.title.toLowerCase().includes(h.toLowerCase())){C.push(T.key);const R=v(T.key);C.push(...R)}T.children&&S(T.children)})};S(e);const E=Array.from(new Set(C)).filter(Boolean);i(E),a(h)},l=f=>f.map(h=>{const d=h.title,g=d.toLowerCase().indexOf(o.toLowerCase()),v=d.substring(0,g),C=d.substring(g+o.length),S=g>-1?x.jsxs("span",{children:[v,x.jsx("span",{style:{color:"#f50"},children:o}),C]}):x.jsx("span",{children:d});return h.children?{...h,title:S,children:l(h.children)}:{...h,title:S}});return x.jsxs(x.Fragment,{children:[x.jsx(Cy,{style:{marginBottom:8},placeholder:"Search",onChange:u}),x.jsx(Ay.CustomTreeProvider,{children:x.jsx(V.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,h)=>{t&&t(f,h),n.includes(h.node.key)?i([...n.filter(d=>d!==h.node.key)]):i([...n,h.node.key])}})})]})},ky=globalThis||void 0||self;function Wf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ty}=Object.prototype,{getPrototypeOf:Lu}=Object,Mo=(e=>t=>{const n=Ty.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fr=e=>(e=e.toLowerCase(),t=>Mo(t)===e),Uo=e=>t=>typeof t===e,{isArray:Vi}=Array,Fs=Uo("undefined");function Iy(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kf=fr("ArrayBuffer");function Oy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kf(e.buffer),t}const Fy=Uo("string"),jn=Uo("function"),Hf=Uo("number"),Vo=e=>e!==null&&typeof e=="object",By=e=>e===!0||e===!1,qo=e=>{if(Mo(e)!=="object")return!1;const t=Lu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dy=fr("Date"),Py=fr("File"),Ry=fr("Blob"),Ly=fr("FileList"),jy=e=>Vo(e)&&jn(e.pipe),Ny=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jn(e.append)&&((t=Mo(e))==="formdata"||t==="object"&&jn(e.toString)&&e.toString()==="[object FormData]"))},$y=fr("URLSearchParams"),My=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Vi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function zf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Gf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ky,Jf=e=>!Fs(e)&&e!==Gf;function ju(){const{caseless:e}=Jf(this)&&this||{},t={},n=(i,o)=>{const a=e&&zf(t,o)||o;qo(t[a])&&qo(i)?t[a]=ju(t[a],i):qo(i)?t[a]=ju({},i):Vi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Bs(arguments[i],n);return t}const Uy=(e,t,n,{allOwnKeys:i}={})=>(Bs(t,(o,a)=>{n&&jn(o)?e[a]=Wf(o,n):e[a]=o},{allOwnKeys:i}),e),Vy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qy=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Wy=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Lu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ky=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Hy=e=>{if(!e)return null;if(Vi(e))return e;let t=e.length;if(!Hf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lu(Uint8Array)),Gy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Jy=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Yy=fr("HTMLFormElement"),Xy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Yf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qy=fr("RegExp"),Xf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Bs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Zy=e=>{Xf(e,(t,n)=>{if(jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(jn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},em=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Vi(e)?i(e):i(String(e).split(t)),n},tm=()=>{},nm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Nu="abcdefghijklmnopqrstuvwxyz",Qf="0123456789",Zf={DIGIT:Qf,ALPHA:Nu,ALPHA_DIGIT:Nu+Nu.toUpperCase()+Qf},rm=(e=16,t=Zf.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function im(e){return!!(e&&jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sm=e=>{const t=new Array(10),n=(i,o)=>{if(Vo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Vi(i)?[]:{};return Bs(i,(u,l)=>{const f=n(u,o+1);!Fs(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},om=fr("AsyncFunction"),ie={isArray:Vi,isArrayBuffer:Kf,isBuffer:Iy,isFormData:Ny,isArrayBufferView:Oy,isString:Fy,isNumber:Hf,isBoolean:By,isObject:Vo,isPlainObject:qo,isUndefined:Fs,isDate:Dy,isFile:Py,isBlob:Ry,isRegExp:Qy,isFunction:jn,isStream:jy,isURLSearchParams:$y,isTypedArray:zy,isFileList:Ly,forEach:Bs,merge:ju,extend:Uy,trim:My,stripBOM:Vy,inherits:qy,toFlatObject:Wy,kindOf:Mo,kindOfTest:fr,endsWith:Ky,toArray:Hy,forEachEntry:Gy,matchAll:Jy,isHTMLForm:Yy,hasOwnProperty:Yf,hasOwnProp:Yf,reduceDescriptors:Xf,freezeMethods:Zy,toObjectSet:em,toCamelCase:Xy,noop:tm,toFiniteNumber:nm,findKey:zf,global:Gf,isContextDefined:Jf,ALPHABET:Zf,generateString:rm,isSpecCompliantForm:im,toJSONObject:sm,isAsyncFn:om,isThenable:e=>e&&(Vo(e)||jn(e))&&jn(e.then)&&jn(e.catch)};var eh={},Wo={};Wo.byteLength=cm,Wo.toByteArray=fm,Wo.fromByteArray=pm;for(var hr=[],Nn=[],am=typeof Uint8Array<"u"?Uint8Array:Array,$u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi=0,um=$u.length;qi<um;++qi)hr[qi]=$u[qi],Nn[$u.charCodeAt(qi)]=qi;Nn[45]=62,Nn[95]=63;function th(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function cm(e){var t=th(e),n=t[0],i=t[1];return(n+i)*3/4-i}function lm(e,t,n){return(t+n)*3/4-n}function fm(e){var t,n=th(e),i=n[0],o=n[1],a=new am(lm(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=Nn[e.charCodeAt(f)]<<18|Nn[e.charCodeAt(f+1)]<<12|Nn[e.charCodeAt(f+2)]<<6|Nn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=Nn[e.charCodeAt(f)]<<2|Nn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=Nn[e.charCodeAt(f)]<<10|Nn[e.charCodeAt(f+1)]<<4|Nn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function hm(e){return hr[e>>18&63]+hr[e>>12&63]+hr[e>>6&63]+hr[e&63]}function dm(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(hm(i));return o.join("")}function pm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(dm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(hr[t>>2]+hr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(hr[t>>10]+hr[t>>4&63]+hr[t<<2&63]+"=")),o.join("")}var Mu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Mu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,h=f>>1,d=-7,g=n?o-1:0,v=n?-1:1,C=e[t+g];for(g+=v,a=C&(1<<-d)-1,C>>=-d,d+=l;d>0;a=a*256+e[t+g],g+=v,d-=8);for(u=a&(1<<-d)-1,a>>=-d,d+=i;d>0;u=u*256+e[t+g],g+=v,d-=8);if(a===0)a=1-h;else{if(a===f)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-h}return(C?-1:1)*u*Math.pow(2,a-i)},Mu.write=function(e,t,n,i,o,a){var u,l,f,h=a*8-o-1,d=(1<<h)-1,g=d>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,S=i?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=d):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+g>=1?t+=v/f:t+=v*Math.pow(2,1-g),t*f>=2&&(u++,f/=2),u+g>=d?(l=0,u=d):u+g>=1?(l=(t*f-1)*Math.pow(2,o),u=u+g):(l=t*Math.pow(2,g-1)*Math.pow(2,o),u=0));o>=8;e[n+C]=l&255,C+=S,l/=256,o-=8);for(u=u<<o|l,h+=o;h>0;e[n+C]=u&255,C+=S,u/=256,h-=8);e[n+C-S]|=E*128};/*!
95
95
  * The buffer module from node.js, for the browser.
96
96
  *
97
97
  * @author Feross Aboukhadijeh <https://feross.org>
98
98
  * @license MIT
99
- */(function(e){const t=Wo,n=Mu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=d,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;d.TYPED_ARRAY_SUPPORT=f(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const I=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(I,y),I.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function h(I){if(I>o)throw new RangeError('The value "'+I+'" is invalid for option "size"');const y=new a(I);return Object.setPrototypeOf(y,d.prototype),y}function d(I,y,b){if(typeof I=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(I)}return g(I,y,b)}d.poolSize=8192;function g(I,y,b){if(typeof I=="string")return E(I,y);if(u.isView(I))return T(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(Xe(I,u)||I&&Xe(I.buffer,u)||typeof l<"u"&&(Xe(I,l)||I&&Xe(I.buffer,l)))return j(I,y,b);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=I.valueOf&&I.valueOf();if(L!=null&&L!==I)return d.from(L,y,b);const q=R(I);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return d.from(I[Symbol.toPrimitive]("string"),y,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}d.from=function(I,y,b){return g(I,y,b)},Object.setPrototypeOf(d.prototype,a.prototype),Object.setPrototypeOf(d,a);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function C(I,y,b){return v(I),I<=0?h(I):y!==void 0?typeof b=="string"?h(I).fill(y,b):h(I).fill(y):h(I)}d.alloc=function(I,y,b){return C(I,y,b)};function S(I){return v(I),h(I<0?0:_(I)|0)}d.allocUnsafe=function(I){return S(I)},d.allocUnsafeSlow=function(I){return S(I)};function E(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!d.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const b=F(I,y)|0;let L=h(b);const q=L.write(I,y);return q!==b&&(L=L.slice(0,q)),L}function w(I){const y=I.length<0?0:_(I.length)|0,b=h(y);for(let L=0;L<y;L+=1)b[L]=I[L]&255;return b}function T(I){if(Xe(I,a)){const y=new a(I);return j(y.buffer,y.byteOffset,y.byteLength)}return w(I)}function j(I,y,b){if(y<0||I.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');let L;return y===void 0&&b===void 0?L=new a(I):b===void 0?L=new a(I,y):L=new a(I,y,b),Object.setPrototypeOf(L,d.prototype),L}function R(I){if(d.isBuffer(I)){const y=_(I.length)|0,b=h(y);return b.length===0||I.copy(b,0,0,y),b}if(I.length!==void 0)return typeof I.length!="number"||Bt(I.length)?h(0):w(I);if(I.type==="Buffer"&&Array.isArray(I.data))return w(I.data)}function _(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function O(I){return+I!=I&&(I=0),d.alloc(+I)}d.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==d.prototype},d.compare=function(y,b){if(Xe(y,a)&&(y=d.from(y,y.offset,y.byteLength)),Xe(b,a)&&(b=d.from(b,b.offset,b.byteLength)),!d.isBuffer(y)||!d.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;let L=y.length,q=b.length;for(let G=0,ee=Math.min(L,q);G<ee;++G)if(y[G]!==b[G]){L=y[G],q=b[G];break}return L<q?-1:q<L?1:0},d.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return d.alloc(0);let L;if(b===void 0)for(b=0,L=0;L<y.length;++L)b+=y[L].length;const q=d.allocUnsafe(b);let G=0;for(L=0;L<y.length;++L){let ee=y[L];if(Xe(ee,a))G+ee.length>q.length?(d.isBuffer(ee)||(ee=d.from(ee)),ee.copy(q,G)):a.prototype.set.call(q,ee,G);else if(d.isBuffer(ee))ee.copy(q,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return q};function F(I,y){if(d.isBuffer(I))return I.length;if(u.isView(I)||Xe(I,u))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const b=I.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&b===0)return 0;let q=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return gt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return It(I).length;default:if(q)return L?-1:gt(I).length;y=(""+y).toLowerCase(),q=!0}}d.byteLength=F;function B(I,y,b){let L=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,y>>>=0,b<=y))return"";for(I||(I="utf8");;)switch(I){case"hex":return We(this,y,b);case"utf8":case"utf-8":return De(this,y,b);case"ascii":return we(this,y,b);case"latin1":case"binary":return ge(this,y,b);case"base64":return Fe(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,y,b);default:if(L)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),L=!0}}d.prototype._isBuffer=!0;function W(I,y,b){const L=I[y];I[y]=I[b],I[b]=L}d.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<y;b+=2)W(this,b,b+1);return this},d.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<y;b+=4)W(this,b,b+3),W(this,b+1,b+2);return this},d.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<y;b+=8)W(this,b,b+7),W(this,b+1,b+6),W(this,b+2,b+5),W(this,b+3,b+4);return this},d.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?De(this,0,y):B.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(y){if(!d.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:d.compare(this,y)===0},d.prototype.inspect=function(){let y="";const b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},i&&(d.prototype[i]=d.prototype.inspect),d.prototype.compare=function(y,b,L,q,G){if(Xe(y,a)&&(y=d.from(y,y.offset,y.byteLength)),!d.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),L===void 0&&(L=y?y.length:0),q===void 0&&(q=0),G===void 0&&(G=this.length),b<0||L>y.length||q<0||G>this.length)throw new RangeError("out of range index");if(q>=G&&b>=L)return 0;if(q>=G)return-1;if(b>=L)return 1;if(b>>>=0,L>>>=0,q>>>=0,G>>>=0,this===y)return 0;let ee=G-q,Me=L-b;const dt=Math.min(ee,Me),ut=this.slice(q,G),ht=y.slice(b,L);for(let st=0;st<dt;++st)if(ut[st]!==ht[st]){ee=ut[st],Me=ht[st];break}return ee<Me?-1:Me<ee?1:0};function J(I,y,b,L,q){if(I.length===0)return-1;if(typeof b=="string"?(L=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Bt(b)&&(b=q?0:I.length-1),b<0&&(b=I.length+b),b>=I.length){if(q)return-1;b=I.length-1}else if(b<0)if(q)b=0;else return-1;if(typeof y=="string"&&(y=d.from(y,L)),d.isBuffer(y))return y.length===0?-1:fe(I,y,b,L,q);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?q?a.prototype.indexOf.call(I,y,b):a.prototype.lastIndexOf.call(I,y,b):fe(I,[y],b,L,q);throw new TypeError("val must be string, number or Buffer")}function fe(I,y,b,L,q){let G=1,ee=I.length,Me=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(I.length<2||y.length<2)return-1;G=2,ee/=2,Me/=2,b/=2}function dt(ht,st){return G===1?ht[st]:ht.readUInt16BE(st*G)}let ut;if(q){let ht=-1;for(ut=b;ut<ee;ut++)if(dt(I,ut)===dt(y,ht===-1?0:ut-ht)){if(ht===-1&&(ht=ut),ut-ht+1===Me)return ht*G}else ht!==-1&&(ut-=ut-ht),ht=-1}else for(b+Me>ee&&(b=ee-Me),ut=b;ut>=0;ut--){let ht=!0;for(let st=0;st<Me;st++)if(dt(I,ut+st)!==dt(y,st)){ht=!1;break}if(ht)return ut}return-1}d.prototype.includes=function(y,b,L){return this.indexOf(y,b,L)!==-1},d.prototype.indexOf=function(y,b,L){return J(this,y,b,L,!0)},d.prototype.lastIndexOf=function(y,b,L){return J(this,y,b,L,!1)};function le(I,y,b,L){b=Number(b)||0;const q=I.length-b;L?(L=Number(L),L>q&&(L=q)):L=q;const G=y.length;L>G/2&&(L=G/2);let ee;for(ee=0;ee<L;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(Bt(Me))return ee;I[b+ee]=Me}return ee}function de(I,y,b,L){return an(gt(y,I.length-b),I,b,L)}function be(I,y,b,L){return an(vt(y),I,b,L)}function Se(I,y,b,L){return an(It(y),I,b,L)}function pe(I,y,b,L){return an(ve(y,I.length-b),I,b,L)}d.prototype.write=function(y,b,L,q){if(b===void 0)q="utf8",L=this.length,b=0;else if(L===void 0&&typeof b=="string")q=b,L=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(L)?(L=L>>>0,q===void 0&&(q="utf8")):(q=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-b;if((L===void 0||L>G)&&(L=G),y.length>0&&(L<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let ee=!1;for(;;)switch(q){case"hex":return le(this,y,b,L);case"utf8":case"utf-8":return de(this,y,b,L);case"ascii":case"latin1":case"binary":return be(this,y,b,L);case"base64":return Se(this,y,b,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,y,b,L);default:if(ee)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ee=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fe(I,y,b){return y===0&&b===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,b))}function De(I,y,b){b=Math.min(I.length,b);const L=[];let q=y;for(;q<b;){const G=I[q];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(q+Me<=b){let dt,ut,ht,st;switch(Me){case 1:G<128&&(ee=G);break;case 2:dt=I[q+1],(dt&192)===128&&(st=(G&31)<<6|dt&63,st>127&&(ee=st));break;case 3:dt=I[q+1],ut=I[q+2],(dt&192)===128&&(ut&192)===128&&(st=(G&15)<<12|(dt&63)<<6|ut&63,st>2047&&(st<55296||st>57343)&&(ee=st));break;case 4:dt=I[q+1],ut=I[q+2],ht=I[q+3],(dt&192)===128&&(ut&192)===128&&(ht&192)===128&&(st=(G&15)<<18|(dt&63)<<12|(ut&63)<<6|ht&63,st>65535&&st<1114112&&(ee=st))}}ee===null?(ee=65533,Me=1):ee>65535&&(ee-=65536,L.push(ee>>>10&1023|55296),ee=56320|ee&1023),L.push(ee),q+=Me}return Ye(L)}const _e=4096;function Ye(I){const y=I.length;if(y<=_e)return String.fromCharCode.apply(String,I);let b="",L=0;for(;L<y;)b+=String.fromCharCode.apply(String,I.slice(L,L+=_e));return b}function we(I,y,b){let L="";b=Math.min(I.length,b);for(let q=y;q<b;++q)L+=String.fromCharCode(I[q]&127);return L}function ge(I,y,b){let L="";b=Math.min(I.length,b);for(let q=y;q<b;++q)L+=String.fromCharCode(I[q]);return L}function We(I,y,b){const L=I.length;(!y||y<0)&&(y=0),(!b||b<0||b>L)&&(b=L);let q="";for(let G=y;G<b;++G)q+=ke[I[G]];return q}function Y(I,y,b){const L=I.slice(y,b);let q="";for(let G=0;G<L.length-1;G+=2)q+=String.fromCharCode(L[G]+L[G+1]*256);return q}d.prototype.slice=function(y,b){const L=this.length;y=~~y,b=b===void 0?L:~~b,y<0?(y+=L,y<0&&(y=0)):y>L&&(y=L),b<0?(b+=L,b<0&&(b=0)):b>L&&(b=L),b<y&&(b=y);const q=this.subarray(y,b);return Object.setPrototypeOf(q,d.prototype),q};function X(I,y,b){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+y>b)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return q},d.prototype.readUintBE=d.prototype.readUIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y+--b],G=1;for(;b>0&&(G*=256);)q+=this[y+--b]*G;return q},d.prototype.readUint8=d.prototype.readUInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]|this[y+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]<<8|this[y+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},d.prototype.readBigUInt64LE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&bt(y,this.length-8);const q=b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+L*2**24;return BigInt(q)+(BigInt(G)<<BigInt(32))}),d.prototype.readBigUInt64BE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&bt(y,this.length-8);const q=b*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L;return(BigInt(q)<<BigInt(32))+BigInt(G)}),d.prototype.readIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return G*=128,q>=G&&(q-=Math.pow(2,8*b)),q},d.prototype.readIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=b,G=1,ee=this[y+--q];for(;q>0&&(G*=256);)ee+=this[y+--q]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*b)),ee},d.prototype.readInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},d.prototype.readInt16LE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},d.prototype.readInt16BE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},d.prototype.readInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},d.prototype.readInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},d.prototype.readBigInt64LE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&bt(y,this.length-8);const q=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(q)<<BigInt(32))+BigInt(b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),d.prototype.readBigInt64BE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&bt(y,this.length-8);const q=(b<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(q)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L)}),d.prototype.readFloatLE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!0,23,4)},d.prototype.readFloatBE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!1,23,4)},d.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!0,52,8)},d.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!1,52,8)};function re(I,y,b,L,q,G){if(!d.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>q||y<G)throw new RangeError('"value" argument is out of bounds');if(b+L>I.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(y,b,L,q){if(y=+y,b=b>>>0,L=L>>>0,!q){const Me=Math.pow(2,8*L)-1;re(this,y,b,L,Me,0)}let G=1,ee=0;for(this[b]=y&255;++ee<L&&(G*=256);)this[b+ee]=y/G&255;return b+L},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(y,b,L,q){if(y=+y,b=b>>>0,L=L>>>0,!q){const Me=Math.pow(2,8*L)-1;re(this,y,b,L,Me,0)}let G=L-1,ee=1;for(this[b+G]=y&255;--G>=0&&(ee*=256);)this[b+G]=y/ee&255;return b+L},d.prototype.writeUint8=d.prototype.writeUInt8=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,1,255,0),this[b]=y&255,b+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,4294967295,0),this[b+3]=y>>>24,this[b+2]=y>>>16,this[b+1]=y>>>8,this[b]=y&255,b+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,4294967295,0),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4};function Ae(I,y,b,L,q){Lt(y,L,q,I,b,7);let G=Number(y&BigInt(4294967295));I[b++]=G,G=G>>8,I[b++]=G,G=G>>8,I[b++]=G,G=G>>8,I[b++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[b++]=ee,ee=ee>>8,I[b++]=ee,ee=ee>>8,I[b++]=ee,ee=ee>>8,I[b++]=ee,b}function He(I,y,b,L,q){Lt(y,L,q,I,b,7);let G=Number(y&BigInt(4294967295));I[b+7]=G,G=G>>8,I[b+6]=G,G=G>>8,I[b+5]=G,G=G>>8,I[b+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[b+3]=ee,ee=ee>>8,I[b+2]=ee,ee=ee>>8,I[b+1]=ee,ee=ee>>8,I[b]=ee,b+8}d.prototype.writeBigUInt64LE=Ne(function(y,b=0){return Ae(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Ne(function(y,b=0){return He(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(y,b,L,q){if(y=+y,b=b>>>0,!q){const dt=Math.pow(2,8*L-1);re(this,y,b,L,dt-1,-dt)}let G=0,ee=1,Me=0;for(this[b]=y&255;++G<L&&(ee*=256);)y<0&&Me===0&&this[b+G-1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+L},d.prototype.writeIntBE=function(y,b,L,q){if(y=+y,b=b>>>0,!q){const dt=Math.pow(2,8*L-1);re(this,y,b,L,dt-1,-dt)}let G=L-1,ee=1,Me=0;for(this[b+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[b+G+1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+L},d.prototype.writeInt8=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},d.prototype.writeInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},d.prototype.writeInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},d.prototype.writeInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,2147483647,-2147483648),this[b]=y&255,this[b+1]=y>>>8,this[b+2]=y>>>16,this[b+3]=y>>>24,b+4},d.prototype.writeInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4},d.prototype.writeBigInt64LE=Ne(function(y,b=0){return Ae(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Ne(function(y,b=0){return He(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xe(I,y,b,L,q,G){if(b+L>I.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Oe(I,y,b,L,q){return y=+y,b=b>>>0,q||xe(I,y,b,4),n.write(I,y,b,L,23,4),b+4}d.prototype.writeFloatLE=function(y,b,L){return Oe(this,y,b,!0,L)},d.prototype.writeFloatBE=function(y,b,L){return Oe(this,y,b,!1,L)};function je(I,y,b,L,q){return y=+y,b=b>>>0,q||xe(I,y,b,8),n.write(I,y,b,L,52,8),b+8}d.prototype.writeDoubleLE=function(y,b,L){return je(this,y,b,!0,L)},d.prototype.writeDoubleBE=function(y,b,L){return je(this,y,b,!1,L)},d.prototype.copy=function(y,b,L,q){if(!d.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!q&&q!==0&&(q=this.length),b>=y.length&&(b=y.length),b||(b=0),q>0&&q<L&&(q=L),q===L||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),y.length-b<q-L&&(q=y.length-b+L);const G=q-L;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,L,q):a.prototype.set.call(y,this.subarray(L,q),b),G},d.prototype.fill=function(y,b,L,q){if(typeof y=="string"){if(typeof b=="string"?(q=b,b=0,L=this.length):typeof L=="string"&&(q=L,L=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!d.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(y.length===1){const ee=y.charCodeAt(0);(q==="utf8"&&ee<128||q==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(b<0||this.length<b||this.length<L)throw new RangeError("Out of range index");if(L<=b)return this;b=b>>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let G;if(typeof y=="number")for(G=b;G<L;++G)this[G]=y;else{const ee=d.isBuffer(y)?y:d.from(y,q),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<L-b;++G)this[G+b]=ee[G%Me]}return this};const Pe={};function Ct(I,y,b){Pe[I]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}Ct("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ct("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),Ct("ERR_OUT_OF_RANGE",function(I,y,b){let L=`The value of "${I}" is out of range.`,q=b;return Number.isInteger(b)&&Math.abs(b)>2**32?q=nn(String(b)):typeof b=="bigint"&&(q=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(q=nn(q)),q+="n"),L+=` It must be ${y}. Received ${q}`,L},RangeError);function nn(I){let y="",b=I.length;const L=I[0]==="-"?1:0;for(;b>=L+4;b-=3)y=`_${I.slice(b-3,b)}${y}`;return`${I.slice(0,b)}${y}`}function Rt(I,y,b){jt(y,"offset"),(I[y]===void 0||I[y+b]===void 0)&&bt(y,I.length-(b+1))}function Lt(I,y,b,L,q,G){if(I>b||I<y){const ee=typeof y=="bigint"?"n":"";let Me;throw y===0||y===BigInt(0)?Me=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Me=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Pe.ERR_OUT_OF_RANGE("value",Me,I)}Rt(L,q,G)}function jt(I,y){if(typeof I!="number")throw new Pe.ERR_INVALID_ARG_TYPE(y,"number",I)}function bt(I,y,b){throw Math.floor(I)!==I?(jt(I,b),new Pe.ERR_OUT_OF_RANGE("offset","an integer",I)):y<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,I)}const Te=/[^+/0-9A-Za-z-_]/g;function et(I){if(I=I.split("=")[0],I=I.trim().replace(Te,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function gt(I,y){y=y||1/0;let b;const L=I.length;let q=null;const G=[];for(let ee=0;ee<L;++ee){if(b=I.charCodeAt(ee),b>55295&&b<57344){if(!q){if(b>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===L){(y-=3)>-1&&G.push(239,191,189);continue}q=b;continue}if(b<56320){(y-=3)>-1&&G.push(239,191,189),q=b;continue}b=(q-55296<<10|b-56320)+65536}else q&&(y-=3)>-1&&G.push(239,191,189);if(q=null,b<128){if((y-=1)<0)break;G.push(b)}else if(b<2048){if((y-=2)<0)break;G.push(b>>6|192,b&63|128)}else if(b<65536){if((y-=3)<0)break;G.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((y-=4)<0)break;G.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return G}function vt(I){const y=[];for(let b=0;b<I.length;++b)y.push(I.charCodeAt(b)&255);return y}function ve(I,y){let b,L,q;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)b=I.charCodeAt(ee),L=b>>8,q=b%256,G.push(q),G.push(L);return G}function It(I){return t.toByteArray(et(I))}function an(I,y,b,L){let q;for(q=0;q<L&&!(q+b>=y.length||q>=I.length);++q)y[q+b]=I[q];return q}function Xe(I,y){return I instanceof y||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===y.name}function Bt(I){return I!==I}const ke=function(){const I="0123456789abcdef",y=new Array(256);for(let b=0;b<16;++b){const L=b*16;for(let q=0;q<16;++q)y[L+q]=I[b]+I[q]}return y}();function Ne(I){return typeof BigInt>"u"?Wt:I}function Wt(){throw new Error("BigInt not supported")}})(eh);const gm=eh.Buffer;function ft(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}ie.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nh=ft.prototype,rh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rh[e]={value:e}}),Object.defineProperties(ft,rh),Object.defineProperty(nh,"isAxiosError",{value:!0}),ft.from=(e,t,n,i,o,a)=>{const u=Object.create(nh);return ie.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ft.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const ym=null;function Uu(e){return ie.isPlainObject(e)||ie.isArray(e)}function ih(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function sh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ih(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function mm(e){return ie.isArray(e)&&!e.some(Uu)}const bm=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,w){return!ie.isUndefined(w[E])});const i=n.metaTokens,o=n.visitor||d,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(ie.isDate(S))return S.toISOString();if(!f&&ie.isBlob(S))throw new ft("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(S)||ie.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):gm.from(S):S}function d(S,E,w){let T=S;if(S&&!w&&typeof S=="object"){if(ie.endsWith(E,"{}"))E=i?E:E.slice(0,-2),S=JSON.stringify(S);else if(ie.isArray(S)&&mm(S)||(ie.isFileList(S)||ie.endsWith(E,"[]"))&&(T=ie.toArray(S)))return E=ih(E),T.forEach(function(R,_){!(ie.isUndefined(R)||R===null)&&t.append(u===!0?sh([E],_,a):u===null?E:E+"[]",h(R))}),!1}return Uu(S)?!0:(t.append(sh(w,E,a),h(S)),!1)}const g=[],v=Object.assign(bm,{defaultVisitor:d,convertValue:h,isVisitable:Uu});function C(S,E){if(!ie.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+E.join("."));g.push(S),ie.forEach(S,function(T,j){(!(ie.isUndefined(T)||T===null)&&o.call(t,T,ie.isString(j)?j.trim():j,E,v))===!0&&C(T,E?E.concat(j):[j])}),g.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return C(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Vu(e,t){this._pairs=[],e&&Ko(e,this,t)}const ah=Vu.prototype;ah.append=function(t,n){this._pairs.push([t,n])},ah.toString=function(t){const n=t?function(i){return t.call(this,i,oh)}:oh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uh(e,t,n){if(!t)return e;const i=n&&n.encode||wm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=ie.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ch{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(i){i!==null&&t(i)})}}const lh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vm=typeof URLSearchParams<"u"?URLSearchParams:Vu,xm=typeof FormData<"u"?FormData:null,Em=typeof Blob<"u"?Blob:null,Sm=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Am=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dr={classes:{URLSearchParams:vm,FormData:xm,Blob:Em},isStandardBrowserEnv:Sm,isStandardBrowserWebWorkerEnv:Am,protocols:["http","https","file","blob","url","data"]};function Cm(e,t){return Ko(e,new dr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return dr.isNode&&ie.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function _m(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function km(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function fh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&ie.isArray(o)?o.length:u,f?(ie.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!ie.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&ie.isArray(o[u])&&(o[u]=km(o[u])),!l)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(i,o)=>{t(_m(i),o,n,0)}),n}return null}const Tm={"Content-Type":void 0};function Im(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Wi={transitional:lh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=ie.isObject(t);if(a&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return o&&o?JSON.stringify(fh(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Cm(t,this.formSerializer).toString();if((l=ie.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ko(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Im(t)):t}],transformResponse:[function(t){const n=this.transitional||Wi.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&ie.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?ft.from(l,ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dr.classes.FormData,Blob:dr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ie.forEach(["delete","get","head"],function(t){Wi.headers[t]={}}),ie.forEach(["post","put","patch"],function(t){Wi.headers[t]=ie.merge(Tm)});const Om=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fm=e=>{const t={};let n,i,o;return e&&e.split(`
99
+ */(function(e){const t=Wo,n=Mu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=d,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;d.TYPED_ARRAY_SUPPORT=f(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const I=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(I,y),I.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function h(I){if(I>o)throw new RangeError('The value "'+I+'" is invalid for option "size"');const y=new a(I);return Object.setPrototypeOf(y,d.prototype),y}function d(I,y,b){if(typeof I=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(I)}return g(I,y,b)}d.poolSize=8192;function g(I,y,b){if(typeof I=="string")return E(I,y);if(u.isView(I))return T(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(Et(I,u)||I&&Et(I.buffer,u)||typeof l<"u"&&(Et(I,l)||I&&Et(I.buffer,l)))return j(I,y,b);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=I.valueOf&&I.valueOf();if(L!=null&&L!==I)return d.from(L,y,b);const q=R(I);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return d.from(I[Symbol.toPrimitive]("string"),y,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}d.from=function(I,y,b){return g(I,y,b)},Object.setPrototypeOf(d.prototype,a.prototype),Object.setPrototypeOf(d,a);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function C(I,y,b){return v(I),I<=0?h(I):y!==void 0?typeof b=="string"?h(I).fill(y,b):h(I).fill(y):h(I)}d.alloc=function(I,y,b){return C(I,y,b)};function S(I){return v(I),h(I<0?0:_(I)|0)}d.allocUnsafe=function(I){return S(I)},d.allocUnsafeSlow=function(I){return S(I)};function E(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!d.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const b=F(I,y)|0;let L=h(b);const q=L.write(I,y);return q!==b&&(L=L.slice(0,q)),L}function w(I){const y=I.length<0?0:_(I.length)|0,b=h(y);for(let L=0;L<y;L+=1)b[L]=I[L]&255;return b}function T(I){if(Et(I,a)){const y=new a(I);return j(y.buffer,y.byteOffset,y.byteLength)}return w(I)}function j(I,y,b){if(y<0||I.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');let L;return y===void 0&&b===void 0?L=new a(I):b===void 0?L=new a(I,y):L=new a(I,y,b),Object.setPrototypeOf(L,d.prototype),L}function R(I){if(d.isBuffer(I)){const y=_(I.length)|0,b=h(y);return b.length===0||I.copy(b,0,0,y),b}if(I.length!==void 0)return typeof I.length!="number"||ht(I.length)?h(0):w(I);if(I.type==="Buffer"&&Array.isArray(I.data))return w(I.data)}function _(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function O(I){return+I!=I&&(I=0),d.alloc(+I)}d.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==d.prototype},d.compare=function(y,b){if(Et(y,a)&&(y=d.from(y,y.offset,y.byteLength)),Et(b,a)&&(b=d.from(b,b.offset,b.byteLength)),!d.isBuffer(y)||!d.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;let L=y.length,q=b.length;for(let G=0,ee=Math.min(L,q);G<ee;++G)if(y[G]!==b[G]){L=y[G],q=b[G];break}return L<q?-1:q<L?1:0},d.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return d.alloc(0);let L;if(b===void 0)for(b=0,L=0;L<y.length;++L)b+=y[L].length;const q=d.allocUnsafe(b);let G=0;for(L=0;L<y.length;++L){let ee=y[L];if(Et(ee,a))G+ee.length>q.length?(d.isBuffer(ee)||(ee=d.from(ee)),ee.copy(q,G)):a.prototype.set.call(q,ee,G);else if(d.isBuffer(ee))ee.copy(q,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return q};function F(I,y){if(d.isBuffer(I))return I.length;if(u.isView(I)||Et(I,u))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const b=I.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&b===0)return 0;let q=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Ue(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return pt(I).length;default:if(q)return L?-1:Ue(I).length;y=(""+y).toLowerCase(),q=!0}}d.byteLength=F;function B(I,y,b){let L=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,y>>>=0,b<=y))return"";for(I||(I="utf8");;)switch(I){case"hex":return Ke(this,y,b);case"utf8":case"utf-8":return Re(this,y,b);case"ascii":return ve(this,y,b);case"latin1":case"binary":return ge(this,y,b);case"base64":return De(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,y,b);default:if(L)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),L=!0}}d.prototype._isBuffer=!0;function W(I,y,b){const L=I[y];I[y]=I[b],I[b]=L}d.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<y;b+=2)W(this,b,b+1);return this},d.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<y;b+=4)W(this,b,b+3),W(this,b+1,b+2);return this},d.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<y;b+=8)W(this,b,b+7),W(this,b+1,b+6),W(this,b+2,b+5),W(this,b+3,b+4);return this},d.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Re(this,0,y):B.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(y){if(!d.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:d.compare(this,y)===0},d.prototype.inspect=function(){let y="";const b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},i&&(d.prototype[i]=d.prototype.inspect),d.prototype.compare=function(y,b,L,q,G){if(Et(y,a)&&(y=d.from(y,y.offset,y.byteLength)),!d.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),L===void 0&&(L=y?y.length:0),q===void 0&&(q=0),G===void 0&&(G=this.length),b<0||L>y.length||q<0||G>this.length)throw new RangeError("out of range index");if(q>=G&&b>=L)return 0;if(q>=G)return-1;if(b>=L)return 1;if(b>>>=0,L>>>=0,q>>>=0,G>>>=0,this===y)return 0;let ee=G-q,Me=L-b;const gt=Math.min(ee,Me),ut=this.slice(q,G),dt=y.slice(b,L);for(let st=0;st<gt;++st)if(ut[st]!==dt[st]){ee=ut[st],Me=dt[st];break}return ee<Me?-1:Me<ee?1:0};function J(I,y,b,L,q){if(I.length===0)return-1;if(typeof b=="string"?(L=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,ht(b)&&(b=q?0:I.length-1),b<0&&(b=I.length+b),b>=I.length){if(q)return-1;b=I.length-1}else if(b<0)if(q)b=0;else return-1;if(typeof y=="string"&&(y=d.from(y,L)),d.isBuffer(y))return y.length===0?-1:fe(I,y,b,L,q);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?q?a.prototype.indexOf.call(I,y,b):a.prototype.lastIndexOf.call(I,y,b):fe(I,[y],b,L,q);throw new TypeError("val must be string, number or Buffer")}function fe(I,y,b,L,q){let G=1,ee=I.length,Me=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(I.length<2||y.length<2)return-1;G=2,ee/=2,Me/=2,b/=2}function gt(dt,st){return G===1?dt[st]:dt.readUInt16BE(st*G)}let ut;if(q){let dt=-1;for(ut=b;ut<ee;ut++)if(gt(I,ut)===gt(y,dt===-1?0:ut-dt)){if(dt===-1&&(dt=ut),ut-dt+1===Me)return dt*G}else dt!==-1&&(ut-=ut-dt),dt=-1}else for(b+Me>ee&&(b=ee-Me),ut=b;ut>=0;ut--){let dt=!0;for(let st=0;st<Me;st++)if(gt(I,ut+st)!==gt(y,st)){dt=!1;break}if(dt)return ut}return-1}d.prototype.includes=function(y,b,L){return this.indexOf(y,b,L)!==-1},d.prototype.indexOf=function(y,b,L){return J(this,y,b,L,!0)},d.prototype.lastIndexOf=function(y,b,L){return J(this,y,b,L,!1)};function le(I,y,b,L){b=Number(b)||0;const q=I.length-b;L?(L=Number(L),L>q&&(L=q)):L=q;const G=y.length;L>G/2&&(L=G/2);let ee;for(ee=0;ee<L;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(ht(Me))return ee;I[b+ee]=Me}return ee}function de(I,y,b,L){return Wt(Ue(y,I.length-b),I,b,L)}function be(I,y,b,L){return Wt(Qe(y),I,b,L)}function Se(I,y,b,L){return Wt(pt(y),I,b,L)}function pe(I,y,b,L){return Wt(we(y,I.length-b),I,b,L)}d.prototype.write=function(y,b,L,q){if(b===void 0)q="utf8",L=this.length,b=0;else if(L===void 0&&typeof b=="string")q=b,L=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(L)?(L=L>>>0,q===void 0&&(q="utf8")):(q=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-b;if((L===void 0||L>G)&&(L=G),y.length>0&&(L<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let ee=!1;for(;;)switch(q){case"hex":return le(this,y,b,L);case"utf8":case"utf-8":return de(this,y,b,L);case"ascii":case"latin1":case"binary":return be(this,y,b,L);case"base64":return Se(this,y,b,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,y,b,L);default:if(ee)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ee=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function De(I,y,b){return y===0&&b===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,b))}function Re(I,y,b){b=Math.min(I.length,b);const L=[];let q=y;for(;q<b;){const G=I[q];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(q+Me<=b){let gt,ut,dt,st;switch(Me){case 1:G<128&&(ee=G);break;case 2:gt=I[q+1],(gt&192)===128&&(st=(G&31)<<6|gt&63,st>127&&(ee=st));break;case 3:gt=I[q+1],ut=I[q+2],(gt&192)===128&&(ut&192)===128&&(st=(G&15)<<12|(gt&63)<<6|ut&63,st>2047&&(st<55296||st>57343)&&(ee=st));break;case 4:gt=I[q+1],ut=I[q+2],dt=I[q+3],(gt&192)===128&&(ut&192)===128&&(dt&192)===128&&(st=(G&15)<<18|(gt&63)<<12|(ut&63)<<6|dt&63,st>65535&&st<1114112&&(ee=st))}}ee===null?(ee=65533,Me=1):ee>65535&&(ee-=65536,L.push(ee>>>10&1023|55296),ee=56320|ee&1023),L.push(ee),q+=Me}return Xe(L)}const Te=4096;function Xe(I){const y=I.length;if(y<=Te)return String.fromCharCode.apply(String,I);let b="",L=0;for(;L<y;)b+=String.fromCharCode.apply(String,I.slice(L,L+=Te));return b}function ve(I,y,b){let L="";b=Math.min(I.length,b);for(let q=y;q<b;++q)L+=String.fromCharCode(I[q]&127);return L}function ge(I,y,b){let L="";b=Math.min(I.length,b);for(let q=y;q<b;++q)L+=String.fromCharCode(I[q]);return L}function Ke(I,y,b){const L=I.length;(!y||y<0)&&(y=0),(!b||b<0||b>L)&&(b=L);let q="";for(let G=y;G<b;++G)q+=Ce[I[G]];return q}function Y(I,y,b){const L=I.slice(y,b);let q="";for(let G=0;G<L.length-1;G+=2)q+=String.fromCharCode(L[G]+L[G+1]*256);return q}d.prototype.slice=function(y,b){const L=this.length;y=~~y,b=b===void 0?L:~~b,y<0?(y+=L,y<0&&(y=0)):y>L&&(y=L),b<0?(b+=L,b<0&&(b=0)):b>L&&(b=L),b<y&&(b=y);const q=this.subarray(y,b);return Object.setPrototypeOf(q,d.prototype),q};function X(I,y,b){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+y>b)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return q},d.prototype.readUintBE=d.prototype.readUIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y+--b],G=1;for(;b>0&&(G*=256);)q+=this[y+--b]*G;return q},d.prototype.readUint8=d.prototype.readUInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]|this[y+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]<<8|this[y+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},d.prototype.readBigUInt64LE=Oe(function(y){y=y>>>0,Lt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&wt(y,this.length-8);const q=b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+L*2**24;return BigInt(q)+(BigInt(G)<<BigInt(32))}),d.prototype.readBigUInt64BE=Oe(function(y){y=y>>>0,Lt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&wt(y,this.length-8);const q=b*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L;return(BigInt(q)<<BigInt(32))+BigInt(G)}),d.prototype.readIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return G*=128,q>=G&&(q-=Math.pow(2,8*b)),q},d.prototype.readIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=b,G=1,ee=this[y+--q];for(;q>0&&(G*=256);)ee+=this[y+--q]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*b)),ee},d.prototype.readInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},d.prototype.readInt16LE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},d.prototype.readInt16BE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},d.prototype.readInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},d.prototype.readInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},d.prototype.readBigInt64LE=Oe(function(y){y=y>>>0,Lt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&wt(y,this.length-8);const q=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(q)<<BigInt(32))+BigInt(b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),d.prototype.readBigInt64BE=Oe(function(y){y=y>>>0,Lt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&wt(y,this.length-8);const q=(b<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(q)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L)}),d.prototype.readFloatLE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!0,23,4)},d.prototype.readFloatBE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!1,23,4)},d.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!0,52,8)},d.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!1,52,8)};function re(I,y,b,L,q,G){if(!d.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>q||y<G)throw new RangeError('"value" argument is out of bounds');if(b+L>I.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(y,b,L,q){if(y=+y,b=b>>>0,L=L>>>0,!q){const Me=Math.pow(2,8*L)-1;re(this,y,b,L,Me,0)}let G=1,ee=0;for(this[b]=y&255;++ee<L&&(G*=256);)this[b+ee]=y/G&255;return b+L},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(y,b,L,q){if(y=+y,b=b>>>0,L=L>>>0,!q){const Me=Math.pow(2,8*L)-1;re(this,y,b,L,Me,0)}let G=L-1,ee=1;for(this[b+G]=y&255;--G>=0&&(ee*=256);)this[b+G]=y/ee&255;return b+L},d.prototype.writeUint8=d.prototype.writeUInt8=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,1,255,0),this[b]=y&255,b+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,4294967295,0),this[b+3]=y>>>24,this[b+2]=y>>>16,this[b+1]=y>>>8,this[b]=y&255,b+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,4294967295,0),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4};function _e(I,y,b,L,q){Rt(y,L,q,I,b,7);let G=Number(y&BigInt(4294967295));I[b++]=G,G=G>>8,I[b++]=G,G=G>>8,I[b++]=G,G=G>>8,I[b++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[b++]=ee,ee=ee>>8,I[b++]=ee,ee=ee>>8,I[b++]=ee,ee=ee>>8,I[b++]=ee,b}function ze(I,y,b,L,q){Rt(y,L,q,I,b,7);let G=Number(y&BigInt(4294967295));I[b+7]=G,G=G>>8,I[b+6]=G,G=G>>8,I[b+5]=G,G=G>>8,I[b+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[b+3]=ee,ee=ee>>8,I[b+2]=ee,ee=ee>>8,I[b+1]=ee,ee=ee>>8,I[b]=ee,b+8}d.prototype.writeBigUInt64LE=Oe(function(y,b=0){return _e(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Oe(function(y,b=0){return ze(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(y,b,L,q){if(y=+y,b=b>>>0,!q){const gt=Math.pow(2,8*L-1);re(this,y,b,L,gt-1,-gt)}let G=0,ee=1,Me=0;for(this[b]=y&255;++G<L&&(ee*=256);)y<0&&Me===0&&this[b+G-1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+L},d.prototype.writeIntBE=function(y,b,L,q){if(y=+y,b=b>>>0,!q){const gt=Math.pow(2,8*L-1);re(this,y,b,L,gt-1,-gt)}let G=L-1,ee=1,Me=0;for(this[b+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[b+G+1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+L},d.prototype.writeInt8=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},d.prototype.writeInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},d.prototype.writeInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},d.prototype.writeInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,2147483647,-2147483648),this[b]=y&255,this[b+1]=y>>>8,this[b+2]=y>>>16,this[b+3]=y>>>24,b+4},d.prototype.writeInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||re(this,y,b,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4},d.prototype.writeBigInt64LE=Oe(function(y,b=0){return _e(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Oe(function(y,b=0){return ze(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xe(I,y,b,L,q,G){if(b+L>I.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Fe(I,y,b,L,q){return y=+y,b=b>>>0,q||xe(I,y,b,4),n.write(I,y,b,L,23,4),b+4}d.prototype.writeFloatLE=function(y,b,L){return Fe(this,y,b,!0,L)},d.prototype.writeFloatBE=function(y,b,L){return Fe(this,y,b,!1,L)};function Be(I,y,b,L,q){return y=+y,b=b>>>0,q||xe(I,y,b,8),n.write(I,y,b,L,52,8),b+8}d.prototype.writeDoubleLE=function(y,b,L){return Be(this,y,b,!0,L)},d.prototype.writeDoubleBE=function(y,b,L){return Be(this,y,b,!1,L)},d.prototype.copy=function(y,b,L,q){if(!d.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!q&&q!==0&&(q=this.length),b>=y.length&&(b=y.length),b||(b=0),q>0&&q<L&&(q=L),q===L||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),y.length-b<q-L&&(q=y.length-b+L);const G=q-L;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,L,q):a.prototype.set.call(y,this.subarray(L,q),b),G},d.prototype.fill=function(y,b,L,q){if(typeof y=="string"){if(typeof b=="string"?(q=b,b=0,L=this.length):typeof L=="string"&&(q=L,L=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!d.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(y.length===1){const ee=y.charCodeAt(0);(q==="utf8"&&ee<128||q==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(b<0||this.length<b||this.length<L)throw new RangeError("Out of range index");if(L<=b)return this;b=b>>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let G;if(typeof y=="number")for(G=b;G<L;++G)this[G]=y;else{const ee=d.isBuffer(y)?y:d.from(y,q),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<L-b;++G)this[G+b]=ee[G%Me]}return this};const Le={};function _t(I,y,b){Le[I]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}_t("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_t("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),_t("ERR_OUT_OF_RANGE",function(I,y,b){let L=`The value of "${I}" is out of range.`,q=b;return Number.isInteger(b)&&Math.abs(b)>2**32?q=rn(String(b)):typeof b=="bigint"&&(q=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(q=rn(q)),q+="n"),L+=` It must be ${y}. Received ${q}`,L},RangeError);function rn(I){let y="",b=I.length;const L=I[0]==="-"?1:0;for(;b>=L+4;b-=3)y=`_${I.slice(b-3,b)}${y}`;return`${I.slice(0,b)}${y}`}function Pt(I,y,b){Lt(y,"offset"),(I[y]===void 0||I[y+b]===void 0)&&wt(y,I.length-(b+1))}function Rt(I,y,b,L,q,G){if(I>b||I<y){const ee=typeof y=="bigint"?"n":"";let Me;throw y===0||y===BigInt(0)?Me=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Me=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Le.ERR_OUT_OF_RANGE("value",Me,I)}Pt(L,q,G)}function Lt(I,y){if(typeof I!="number")throw new Le.ERR_INVALID_ARG_TYPE(y,"number",I)}function wt(I,y,b){throw Math.floor(I)!==I?(Lt(I,b),new Le.ERR_OUT_OF_RANGE("offset","an integer",I)):y<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,I)}const kn=/[^+/0-9A-Za-z-_]/g;function Ae(I){if(I=I.split("=")[0],I=I.trim().replace(kn,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ue(I,y){y=y||1/0;let b;const L=I.length;let q=null;const G=[];for(let ee=0;ee<L;++ee){if(b=I.charCodeAt(ee),b>55295&&b<57344){if(!q){if(b>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===L){(y-=3)>-1&&G.push(239,191,189);continue}q=b;continue}if(b<56320){(y-=3)>-1&&G.push(239,191,189),q=b;continue}b=(q-55296<<10|b-56320)+65536}else q&&(y-=3)>-1&&G.push(239,191,189);if(q=null,b<128){if((y-=1)<0)break;G.push(b)}else if(b<2048){if((y-=2)<0)break;G.push(b>>6|192,b&63|128)}else if(b<65536){if((y-=3)<0)break;G.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((y-=4)<0)break;G.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return G}function Qe(I){const y=[];for(let b=0;b<I.length;++b)y.push(I.charCodeAt(b)&255);return y}function we(I,y){let b,L,q;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)b=I.charCodeAt(ee),L=b>>8,q=b%256,G.push(q),G.push(L);return G}function pt(I){return t.toByteArray(Ae(I))}function Wt(I,y,b,L){let q;for(q=0;q<L&&!(q+b>=y.length||q>=I.length);++q)y[q+b]=I[q];return q}function Et(I,y){return I instanceof y||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===y.name}function ht(I){return I!==I}const Ce=function(){const I="0123456789abcdef",y=new Array(256);for(let b=0;b<16;++b){const L=b*16;for(let q=0;q<16;++q)y[L+q]=I[b]+I[q]}return y}();function Oe(I){return typeof BigInt>"u"?Kt:I}function Kt(){throw new Error("BigInt not supported")}})(eh);const gm=eh.Buffer;function ft(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}ie.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nh=ft.prototype,rh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rh[e]={value:e}}),Object.defineProperties(ft,rh),Object.defineProperty(nh,"isAxiosError",{value:!0}),ft.from=(e,t,n,i,o,a)=>{const u=Object.create(nh);return ie.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ft.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const ym=null;function Uu(e){return ie.isPlainObject(e)||ie.isArray(e)}function ih(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function sh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ih(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function mm(e){return ie.isArray(e)&&!e.some(Uu)}const bm=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,w){return!ie.isUndefined(w[E])});const i=n.metaTokens,o=n.visitor||d,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(ie.isDate(S))return S.toISOString();if(!f&&ie.isBlob(S))throw new ft("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(S)||ie.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):gm.from(S):S}function d(S,E,w){let T=S;if(S&&!w&&typeof S=="object"){if(ie.endsWith(E,"{}"))E=i?E:E.slice(0,-2),S=JSON.stringify(S);else if(ie.isArray(S)&&mm(S)||(ie.isFileList(S)||ie.endsWith(E,"[]"))&&(T=ie.toArray(S)))return E=ih(E),T.forEach(function(R,_){!(ie.isUndefined(R)||R===null)&&t.append(u===!0?sh([E],_,a):u===null?E:E+"[]",h(R))}),!1}return Uu(S)?!0:(t.append(sh(w,E,a),h(S)),!1)}const g=[],v=Object.assign(bm,{defaultVisitor:d,convertValue:h,isVisitable:Uu});function C(S,E){if(!ie.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+E.join("."));g.push(S),ie.forEach(S,function(T,j){(!(ie.isUndefined(T)||T===null)&&o.call(t,T,ie.isString(j)?j.trim():j,E,v))===!0&&C(T,E?E.concat(j):[j])}),g.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return C(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Vu(e,t){this._pairs=[],e&&Ko(e,this,t)}const ah=Vu.prototype;ah.append=function(t,n){this._pairs.push([t,n])},ah.toString=function(t){const n=t?function(i){return t.call(this,i,oh)}:oh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uh(e,t,n){if(!t)return e;const i=n&&n.encode||wm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=ie.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ch{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(i){i!==null&&t(i)})}}const lh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vm=typeof URLSearchParams<"u"?URLSearchParams:Vu,xm=typeof FormData<"u"?FormData:null,Em=typeof Blob<"u"?Blob:null,Sm=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Am=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dr={classes:{URLSearchParams:vm,FormData:xm,Blob:Em},isStandardBrowserEnv:Sm,isStandardBrowserWebWorkerEnv:Am,protocols:["http","https","file","blob","url","data"]};function Cm(e,t){return Ko(e,new dr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return dr.isNode&&ie.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function _m(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function km(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function fh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&ie.isArray(o)?o.length:u,f?(ie.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!ie.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&ie.isArray(o[u])&&(o[u]=km(o[u])),!l)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(i,o)=>{t(_m(i),o,n,0)}),n}return null}const Tm={"Content-Type":void 0};function Im(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Wi={transitional:lh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=ie.isObject(t);if(a&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return o&&o?JSON.stringify(fh(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Cm(t,this.formSerializer).toString();if((l=ie.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ko(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Im(t)):t}],transformResponse:[function(t){const n=this.transitional||Wi.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&ie.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?ft.from(l,ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dr.classes.FormData,Blob:dr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ie.forEach(["delete","get","head"],function(t){Wi.headers[t]={}}),ie.forEach(["post","put","patch"],function(t){Wi.headers[t]=ie.merge(Tm)});const Om=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fm=e=>{const t={};let n,i,o;return e&&e.split(`
100
100
  `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&Om[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},hh=Symbol("internals");function Ds(e){return e&&String(e).trim().toLowerCase()}function Ho(e){return e===!1||e==null?e:ie.isArray(e)?e.map(Ho):String(e)}function Bm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Dm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qu(e,t,n,i,o){if(ie.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!ie.isString(t)){if(ie.isString(i))return t.indexOf(i)!==-1;if(ie.isRegExp(i))return i.test(t)}}function Pm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Rm(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,h){const d=Ds(f);if(!d)throw new Error("header name must be a non-empty string");const g=ie.findKey(o,d);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=Ho(l))}const u=(l,f)=>ie.forEach(l,(h,d)=>a(h,d,f));return ie.isPlainObject(t)||t instanceof this.constructor?u(t,n):ie.isString(t)&&(t=t.trim())&&!Dm(t)?u(Fm(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Ds(t),t){const i=ie.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Bm(o);if(ie.isFunction(n))return n.call(this,o,i);if(ie.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ds(t),t){const i=ie.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||qu(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Ds(u),u){const l=ie.findKey(i,u);l&&(!n||qu(i,i[l],l,n))&&(delete i[l],o=!0)}}return ie.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||qu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return ie.forEach(this,(o,a)=>{const u=ie.findKey(i,a);if(u){n[u]=Ho(o),delete n[a];return}const l=t?Pm(a):String(a).trim();l!==a&&delete n[a],n[l]=Ho(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&ie.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
101
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[hh]=this[hh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Ds(u);i[l]||(Rm(o,u),i[l]=!0)}return ie.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.freezeMethods($n.prototype),ie.freezeMethods($n);function Wu(e,t){const n=this||Wi,i=t||n,o=$n.from(i.headers);let a=i.data;return ie.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function dh(e){return!!(e&&e.__CANCEL__)}function Ps(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(Ps,ft,{__CANCEL__:!0});function Lm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const jm=dr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),ie.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),ie.isString(a)&&f.push("path="+a),ie.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Nm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $m(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ph(e,t){return e&&!Nm(t)?$m(e,t):t}const Mm=dr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=ie.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Um(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vm(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),d=i[a];u||(u=h),n[o]=f,i[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u<t)return;const C=d&&h-d;return C?Math.round(v*1e3/C):void 0}}function gh(e,t){let n=0;const i=Vm(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),h=a<=u;n=a;const d={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&h?(u-a)/f:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const zo={http:ym,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}ie.isFormData(o)&&(dr.isStandardBrowserEnv||dr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let h=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(C+":"+S))}const d=ph(e.baseURL,e.url);h.open(e.method.toUpperCase(),uh(d,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function g(){if(!h)return;const C=$n.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};Lm(function(T){n(T),f()},function(T){i(T),f()},E),h=null}if("onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(i(new ft("Request aborted",ft.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new ft("Network Error",ft.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||lh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new ft(S,E.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,h)),h=null},dr.isStandardBrowserEnv){const C=(e.withCredentials||Mm(d))&&e.xsrfCookieName&&jm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in h&&ie.forEach(a.toJSON(),function(S,E){h.setRequestHeader(E,S)}),ie.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),u&&u!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",gh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",gh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{h&&(i(!C||C.type?new Ps(null,e,h):C),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Um(d);if(v&&dr.protocols.indexOf(v)===-1){i(new ft("Unsupported protocol "+v+":",ft.ERR_BAD_REQUEST,e));return}h.send(o||null)})}};ie.forEach(zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qm={getAdapter:e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=ie.isString(n)?zo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ft(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ie.hasOwnProp(zo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ie.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:zo};function Ku(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ps(null,e)}function yh(e){return Ku(e),e.headers=$n.from(e.headers),e.data=Wu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qm.getAdapter(e.adapter||Wi.adapter)(e).then(function(i){return Ku(e),i.data=Wu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return dh(i)||(Ku(e),i&&i.response&&(i.response.data=Wu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const mh=e=>e instanceof $n?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function i(h,d,g){return ie.isPlainObject(h)&&ie.isPlainObject(d)?ie.merge.call({caseless:g},h,d):ie.isPlainObject(d)?ie.merge({},d):ie.isArray(d)?d.slice():d}function o(h,d,g){if(ie.isUndefined(d)){if(!ie.isUndefined(h))return i(void 0,h,g)}else return i(h,d,g)}function a(h,d){if(!ie.isUndefined(d))return i(void 0,d)}function u(h,d){if(ie.isUndefined(d)){if(!ie.isUndefined(h))return i(void 0,h)}else return i(void 0,d)}function l(h,d,g){if(g in t)return i(h,d);if(g in e)return i(void 0,h)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(h,d)=>o(mh(h),mh(d),!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),function(d){const g=f[d]||o,v=g(e[d],t[d],d);ie.isUndefined(v)&&g!==l||(n[d]=v)}),n}const bh="1.4.0",Hu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const wh={};Hu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+bh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ft(o(u," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!wh[u]&&(wh[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function Wm(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new ft("option "+a+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const zu={assertOptions:Wm,validators:Hu},Ur=zu.validators;let di=class{constructor(t){this.defaults=t,this.interceptors={request:new ch,response:new ch}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&zu.assertOptions(i,{silentJSONParsing:Ur.transitional(Ur.boolean),forcedJSONParsing:Ur.transitional(Ur.boolean),clarifyTimeoutError:Ur.transitional(Ur.boolean)},!1),o!=null&&(ie.isFunction(o)?n.paramsSerializer={serialize:o}:zu.assertOptions(o,{encode:Ur.function,serialize:Ur.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&ie.merge(a.common,a[n.method]),u&&ie.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let d,g=0,v;if(!f){const S=[yh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,h),v=S.length,d=Promise.resolve(n);g<v;)d=d.then(S[g++],S[g++]);return d}v=l.length;let C=n;for(g=0;g<v;){const S=l[g++],E=l[g++];try{C=S(C)}catch(w){E.call(this,w);break}}try{d=yh.call(this,C)}catch(S){return Promise.reject(S)}for(g=0,v=h.length;g<v;)d=d.then(h[g++],h[g++]);return d}getUri(t){t=Ki(this.defaults,t);const n=ph(t.baseURL,t.url);return uh(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){di.prototype[t]=function(n,i){return this.request(Ki(i||{},{method:t,url:n,data:(i||{}).data}))}}),ie.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Ki(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}di.prototype[t]=n(),di.prototype[t+"Form"]=n(!0)});let Km=class l1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ps(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new l1(function(o){t=o}),cancel:t}}};function Hm(e){return function(n){return e.apply(null,n)}}function zm(e){return ie.isObject(e)&&e.isAxiosError===!0}const Gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gu).forEach(([e,t])=>{Gu[t]=e});function vh(e){const t=new di(e),n=Wf(di.prototype.request,t);return ie.extend(n,di.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return vh(Ki(e,o))},n}const $e=vh(Wi);$e.Axios=di,$e.CanceledError=Ps,$e.CancelToken=Km,$e.isCancel=dh,$e.VERSION=bh,$e.toFormData=Ko,$e.AxiosError=ft,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=Hm,$e.isAxiosError=zm,$e.mergeConfig=Ki,$e.AxiosHeaders=$n,$e.formToJSON=e=>fh(ie.isHTMLForm(e)?new FormData(e):e),$e.HttpStatusCode=Gu,$e.default=$e;const{Axios:N8,AxiosError:$8,CanceledError:M8,isCancel:U8,CancelToken:V8,VERSION:q8,all:W8,Cancel:K8,isAxiosError:Go,spread:H8,toFormData:z8,AxiosHeaders:G8,HttpStatusCode:J8,formToJSON:Y8,mergeConfig:X8}=$e,Jo=async({endpoint:e,body:t})=>$e.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Yo=async({endpoint:e,body:t})=>$e.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Ju=async({endpoint:e})=>$e.delete(e),Yu=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Ju({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return x.jsx(V.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&x.jsx(V.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},Gm=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>Ju({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return x.jsx(V.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&x.jsx(V.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},xh=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},Eh=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},Sh=()=>x.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("g",{clipPath:"url(#clip0_186_9937)",children:x.jsx("path",{d:"M6.33719 9.39777L11.0528 3.36027C11.0652 3.34449 11.073 3.32553 11.0751 3.30557C11.0772 3.2856 11.0737 3.26544 11.0649 3.2474C11.056 3.22936 11.0423 3.21417 11.0253 3.20357C11.0082 3.19298 10.9885 3.18741 10.9684 3.1875L9.93317 3.1875C9.86754 3.1875 9.8046 3.2183 9.76442 3.2692L5.99969 8.09063L2.23495 3.2692C2.19478 3.21697 2.13183 3.1875 2.0662 3.1875L1.03094 3.1875C0.941204 3.1875 0.89165 3.29063 0.946561 3.36027L5.66219 9.39777C5.70221 9.44908 5.75342 9.4906 5.8119 9.51915C5.87038 9.5477 5.93461 9.56254 5.99969 9.56254C6.06477 9.56254 6.12899 9.5477 6.18747 9.51915C6.24596 9.4906 6.29716 9.44908 6.33719 9.39777Z",fill:"currentColor"})}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_186_9937",children:x.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Ah=()=>x.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("g",{clipPath:"url(#clip0_186_11488)",children:x.jsx("path",{d:"M5.66281 2.60223L0.947189 8.63973C0.934768 8.65551 0.92705 8.67447 0.924919 8.69443C0.922788 8.7144 0.926332 8.73456 0.935143 8.7526C0.943955 8.77064 0.957676 8.78583 0.974732 8.79643C0.991787 8.80702 1.01149 8.81259 1.03156 8.8125L2.06683 8.8125C2.13246 8.8125 2.1954 8.7817 2.23558 8.7308L6.00031 3.90937L9.76505 8.7308C9.80522 8.78303 9.86817 8.8125 9.9338 8.8125L10.9691 8.8125C11.0588 8.8125 11.1083 8.70937 11.0534 8.63973L6.33781 2.60223C6.29779 2.55092 6.24658 2.5094 6.1881 2.48085C6.12962 2.4523 6.06539 2.43746 6.00031 2.43746C5.93523 2.43746 5.87101 2.4523 5.81253 2.48085C5.75404 2.5094 5.70284 2.55092 5.66281 2.60223Z",fill:"currentColor"})}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_186_11488",children:x.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Ch=()=>{const{token:e}=V.theme.useToken();return x.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[x.jsx("path",{d:"M0.568356 1.62165L1.19782 2.11384C2.05608 1.01674 3.3909 0.3125 4.88978 0.3125C7.47795 0.3125 9.57282 2.40513 9.57617 4.99442C9.57952 7.58594 7.48019 9.6875 4.88978 9.6875C2.86635 9.6875 1.14202 8.40402 0.485765 6.60603C0.469025 6.55915 0.493578 6.5067 0.540453 6.49107L1.17327 6.27344C1.19533 6.26588 1.21948 6.26725 1.24054 6.27726C1.26161 6.28727 1.27792 6.30513 1.28599 6.32701C1.30608 6.38281 1.3284 6.43862 1.35184 6.4933C1.54492 6.95089 1.8217 7.36161 2.17438 7.71429C2.52421 8.06478 2.93841 8.34445 3.39425 8.53795C3.86635 8.73772 4.36969 8.83929 4.88755 8.83929C5.40653 8.83929 5.90876 8.73772 6.38086 8.53795C6.83713 8.34526 7.25148 8.06549 7.60072 7.71429C7.9515 7.3645 8.23087 6.9498 8.42327 6.4933C8.62304 6.02009 8.72461 5.51786 8.72461 4.99888C8.72461 4.47991 8.62304 3.97768 8.42327 3.50446C8.23019 3.04688 7.9534 2.63616 7.60072 2.28348C7.24804 1.9308 6.83733 1.65402 6.38086 1.45982C5.90876 1.26004 5.40541 1.15848 4.88755 1.15848C4.36858 1.15848 3.86635 1.26004 3.39425 1.45982C2.93797 1.65251 2.52362 1.93228 2.17438 2.28348C2.06389 2.39397 1.9601 2.51116 1.86411 2.63393L2.53599 3.15848C2.54928 3.16877 2.5594 3.18259 2.56519 3.19837C2.57097 3.21415 2.57219 3.23125 2.56869 3.24768C2.56519 3.26412 2.55712 3.27924 2.54542 3.2913C2.53371 3.30336 2.51884 3.31187 2.50251 3.31585L0.542685 3.79576C0.486881 3.80915 0.432195 3.76674 0.432195 3.70982L0.423265 1.69085C0.424381 1.61719 0.51032 1.57589 0.568356 1.62165Z",fill:e.colorPrimary}),x.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_294_13557",children:x.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},_h=()=>{const{token:e}=V.theme.useToken();return x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("g",{clipPath:"url(#clip0_661_14605)",children:x.jsx("path",{d:"M14.6751 8.38707C14.9751 7.99064 15.1412 7.50492 15.1412 6.99957C15.1412 6.19778 14.693 5.43885 13.9715 5.01564C13.7858 4.9067 13.5744 4.84937 13.359 4.84957H9.0769L9.18404 2.65492C9.20904 2.12457 9.02154 1.621 8.65726 1.23707C8.47848 1.04783 8.2628 0.897269 8.02353 0.794683C7.78427 0.692098 7.52651 0.63967 7.26618 0.640638C6.33761 0.640638 5.51618 1.26564 5.26976 2.16028L3.73583 7.71385H1.4269C1.11083 7.71385 0.855469 7.96921 0.855469 8.28528V14.7853C0.855469 15.1014 1.11083 15.3567 1.4269 15.3567H12.1644C12.3287 15.3567 12.4894 15.3246 12.6376 15.2603C13.4876 14.8978 14.0358 14.0674 14.0358 13.146C14.0358 12.921 14.0037 12.6996 13.9394 12.4853C14.2394 12.0889 14.4055 11.6031 14.4055 11.0978C14.4055 10.8728 14.3733 10.6514 14.309 10.4371C14.609 10.0406 14.7751 9.55492 14.7751 9.04957C14.7715 8.82457 14.7394 8.60135 14.6751 8.38707ZM2.14118 14.071V8.99957H3.58761V14.071H2.14118ZM13.5055 7.76742L13.1144 8.10671L13.3626 8.56028C13.4444 8.70969 13.4868 8.87746 13.4858 9.04778C13.4858 9.34242 13.3573 9.62278 13.1358 9.81564L12.7448 10.1549L12.993 10.6085C13.0747 10.7579 13.1171 10.9257 13.1162 11.096C13.1162 11.3906 12.9876 11.671 12.7662 11.8639L12.3751 12.2031L12.6233 12.6567C12.7051 12.8061 12.7475 12.9739 12.7465 13.1442C12.7465 13.5442 12.5108 13.9049 12.1465 14.0692H4.73047V8.94242L6.50726 2.50492C6.55307 2.33992 6.65142 2.19436 6.7874 2.09027C6.92339 1.98619 7.08959 1.92927 7.26083 1.92814C7.39654 1.92814 7.53047 1.96742 7.63761 2.04778C7.8144 2.17992 7.90904 2.37992 7.89833 2.59242L7.7269 6.13528H13.3412C13.659 6.32992 13.8555 6.6585 13.8555 6.99957C13.8555 7.29421 13.7269 7.57278 13.5055 7.76742Z",fill:e.colorSuccess})}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_661_14605",children:x.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},Jm={success:x.jsx(vn.CheckCircleFilled,{}),error:x.jsx(vn.CloseCircleFilled,{}),warning:x.jsx(vn.ExclamationCircleFilled,{}),validating:x.jsx(vn.LoadingOutlined,{})},Vr=()=>({...Jm,success:x.jsx(_h,{})}),Xu=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M8.53558 1.57227H7.46415C7.36891 1.57227 7.32129 1.61988 7.32129 1.71512V7.32227H2.00028C1.90504 7.32227 1.85742 7.36988 1.85742 7.46512V8.53655C1.85742 8.63179 1.90504 8.67941 2.00028 8.67941H7.32129V14.2866C7.32129 14.3818 7.36891 14.4294 7.46415 14.4294H8.53558C8.63081 14.4294 8.67843 14.3818 8.67843 14.2866V8.67941H14.0003C14.0955 8.67941 14.1431 8.63179 14.1431 8.53655V7.46512C14.1431 7.36988 14.0955 7.32227 14.0003 7.32227H8.67843V1.71512C8.67843 1.61988 8.63081 1.57227 8.53558 1.57227Z",fill:e.colorText})})},sn=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M14.4277 7.32227H1.57059C1.49202 7.32227 1.42773 7.38655 1.42773 7.46512V8.53655C1.42773 8.61512 1.49202 8.67941 1.57059 8.67941H14.4277C14.5063 8.67941 14.5706 8.61512 14.5706 8.53655V7.46512C14.5706 7.38655 14.5063 7.32227 14.4277 7.32227Z",fill:e.colorText})})},kh=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M11.375 6.34375H10.4453V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398ZM9.46094 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V6.34375Z",fill:e.colorPrimary})})},Th=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M11.375 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V4.21094C9.46094 4.27109 9.51016 4.32031 9.57031 4.32031H10.3359C10.3961 4.32031 10.4453 4.27109 10.4453 4.21094V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398Z",fill:e.colorText})})},Ym={ContentContainer:Ke.div`
101
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[hh]=this[hh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Ds(u);i[l]||(Rm(o,u),i[l]=!0)}return ie.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.freezeMethods($n.prototype),ie.freezeMethods($n);function Wu(e,t){const n=this||Wi,i=t||n,o=$n.from(i.headers);let a=i.data;return ie.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function dh(e){return!!(e&&e.__CANCEL__)}function Ps(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(Ps,ft,{__CANCEL__:!0});function Lm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const jm=dr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),ie.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),ie.isString(a)&&f.push("path="+a),ie.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Nm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $m(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ph(e,t){return e&&!Nm(t)?$m(e,t):t}const Mm=dr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=ie.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Um(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vm(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),d=i[a];u||(u=h),n[o]=f,i[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u<t)return;const C=d&&h-d;return C?Math.round(v*1e3/C):void 0}}function gh(e,t){let n=0;const i=Vm(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),h=a<=u;n=a;const d={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&h?(u-a)/f:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const zo={http:ym,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}ie.isFormData(o)&&(dr.isStandardBrowserEnv||dr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let h=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(C+":"+S))}const d=ph(e.baseURL,e.url);h.open(e.method.toUpperCase(),uh(d,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function g(){if(!h)return;const C=$n.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};Lm(function(T){n(T),f()},function(T){i(T),f()},E),h=null}if("onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(i(new ft("Request aborted",ft.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new ft("Network Error",ft.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||lh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new ft(S,E.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,h)),h=null},dr.isStandardBrowserEnv){const C=(e.withCredentials||Mm(d))&&e.xsrfCookieName&&jm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in h&&ie.forEach(a.toJSON(),function(S,E){h.setRequestHeader(E,S)}),ie.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),u&&u!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",gh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",gh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{h&&(i(!C||C.type?new Ps(null,e,h):C),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Um(d);if(v&&dr.protocols.indexOf(v)===-1){i(new ft("Unsupported protocol "+v+":",ft.ERR_BAD_REQUEST,e));return}h.send(o||null)})}};ie.forEach(zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qm={getAdapter:e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=ie.isString(n)?zo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ft(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ie.hasOwnProp(zo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ie.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:zo};function Ku(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ps(null,e)}function yh(e){return Ku(e),e.headers=$n.from(e.headers),e.data=Wu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qm.getAdapter(e.adapter||Wi.adapter)(e).then(function(i){return Ku(e),i.data=Wu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return dh(i)||(Ku(e),i&&i.response&&(i.response.data=Wu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const mh=e=>e instanceof $n?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function i(h,d,g){return ie.isPlainObject(h)&&ie.isPlainObject(d)?ie.merge.call({caseless:g},h,d):ie.isPlainObject(d)?ie.merge({},d):ie.isArray(d)?d.slice():d}function o(h,d,g){if(ie.isUndefined(d)){if(!ie.isUndefined(h))return i(void 0,h,g)}else return i(h,d,g)}function a(h,d){if(!ie.isUndefined(d))return i(void 0,d)}function u(h,d){if(ie.isUndefined(d)){if(!ie.isUndefined(h))return i(void 0,h)}else return i(void 0,d)}function l(h,d,g){if(g in t)return i(h,d);if(g in e)return i(void 0,h)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(h,d)=>o(mh(h),mh(d),!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),function(d){const g=f[d]||o,v=g(e[d],t[d],d);ie.isUndefined(v)&&g!==l||(n[d]=v)}),n}const bh="1.4.0",Hu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const wh={};Hu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+bh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ft(o(u," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!wh[u]&&(wh[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function Wm(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new ft("option "+a+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const zu={assertOptions:Wm,validators:Hu},Ur=zu.validators;let di=class{constructor(t){this.defaults=t,this.interceptors={request:new ch,response:new ch}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&zu.assertOptions(i,{silentJSONParsing:Ur.transitional(Ur.boolean),forcedJSONParsing:Ur.transitional(Ur.boolean),clarifyTimeoutError:Ur.transitional(Ur.boolean)},!1),o!=null&&(ie.isFunction(o)?n.paramsSerializer={serialize:o}:zu.assertOptions(o,{encode:Ur.function,serialize:Ur.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&ie.merge(a.common,a[n.method]),u&&ie.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let d,g=0,v;if(!f){const S=[yh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,h),v=S.length,d=Promise.resolve(n);g<v;)d=d.then(S[g++],S[g++]);return d}v=l.length;let C=n;for(g=0;g<v;){const S=l[g++],E=l[g++];try{C=S(C)}catch(w){E.call(this,w);break}}try{d=yh.call(this,C)}catch(S){return Promise.reject(S)}for(g=0,v=h.length;g<v;)d=d.then(h[g++],h[g++]);return d}getUri(t){t=Ki(this.defaults,t);const n=ph(t.baseURL,t.url);return uh(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){di.prototype[t]=function(n,i){return this.request(Ki(i||{},{method:t,url:n,data:(i||{}).data}))}}),ie.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Ki(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}di.prototype[t]=n(),di.prototype[t+"Form"]=n(!0)});let Km=class l1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ps(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new l1(function(o){t=o}),cancel:t}}};function Hm(e){return function(n){return e.apply(null,n)}}function zm(e){return ie.isObject(e)&&e.isAxiosError===!0}const Gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gu).forEach(([e,t])=>{Gu[t]=e});function vh(e){const t=new di(e),n=Wf(di.prototype.request,t);return ie.extend(n,di.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return vh(Ki(e,o))},n}const $e=vh(Wi);$e.Axios=di,$e.CanceledError=Ps,$e.CancelToken=Km,$e.isCancel=dh,$e.VERSION=bh,$e.toFormData=Ko,$e.AxiosError=ft,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=Hm,$e.isAxiosError=zm,$e.mergeConfig=Ki,$e.AxiosHeaders=$n,$e.formToJSON=e=>fh(ie.isHTMLForm(e)?new FormData(e):e),$e.HttpStatusCode=Gu,$e.default=$e;const{Axios:N8,AxiosError:$8,CanceledError:M8,isCancel:U8,CancelToken:V8,VERSION:q8,all:W8,Cancel:K8,isAxiosError:Go,spread:H8,toFormData:z8,AxiosHeaders:G8,HttpStatusCode:J8,formToJSON:Y8,mergeConfig:X8}=$e,Jo=async({endpoint:e,body:t})=>$e.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Yo=async({endpoint:e,body:t})=>$e.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Ju=async({endpoint:e})=>$e.delete(e),Yu=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Q.useState(),[a,u]=Q.useState(!1),l=()=>{u(!0),o(void 0),Ju({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return x.jsx(V.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&x.jsx(V.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},Gm=({data:e,onClose:t})=>{const[n,i]=Q.useState(),[o,a]=Q.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>Ju({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return x.jsx(V.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&x.jsx(V.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},xh=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},Eh=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},Sh=()=>x.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("g",{clipPath:"url(#clip0_186_9937)",children:x.jsx("path",{d:"M6.33719 9.39777L11.0528 3.36027C11.0652 3.34449 11.073 3.32553 11.0751 3.30557C11.0772 3.2856 11.0737 3.26544 11.0649 3.2474C11.056 3.22936 11.0423 3.21417 11.0253 3.20357C11.0082 3.19298 10.9885 3.18741 10.9684 3.1875L9.93317 3.1875C9.86754 3.1875 9.8046 3.2183 9.76442 3.2692L5.99969 8.09063L2.23495 3.2692C2.19478 3.21697 2.13183 3.1875 2.0662 3.1875L1.03094 3.1875C0.941204 3.1875 0.89165 3.29063 0.946561 3.36027L5.66219 9.39777C5.70221 9.44908 5.75342 9.4906 5.8119 9.51915C5.87038 9.5477 5.93461 9.56254 5.99969 9.56254C6.06477 9.56254 6.12899 9.5477 6.18747 9.51915C6.24596 9.4906 6.29716 9.44908 6.33719 9.39777Z",fill:"currentColor"})}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_186_9937",children:x.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Ah=()=>x.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("g",{clipPath:"url(#clip0_186_11488)",children:x.jsx("path",{d:"M5.66281 2.60223L0.947189 8.63973C0.934768 8.65551 0.92705 8.67447 0.924919 8.69443C0.922788 8.7144 0.926332 8.73456 0.935143 8.7526C0.943955 8.77064 0.957676 8.78583 0.974732 8.79643C0.991787 8.80702 1.01149 8.81259 1.03156 8.8125L2.06683 8.8125C2.13246 8.8125 2.1954 8.7817 2.23558 8.7308L6.00031 3.90937L9.76505 8.7308C9.80522 8.78303 9.86817 8.8125 9.9338 8.8125L10.9691 8.8125C11.0588 8.8125 11.1083 8.70937 11.0534 8.63973L6.33781 2.60223C6.29779 2.55092 6.24658 2.5094 6.1881 2.48085C6.12962 2.4523 6.06539 2.43746 6.00031 2.43746C5.93523 2.43746 5.87101 2.4523 5.81253 2.48085C5.75404 2.5094 5.70284 2.55092 5.66281 2.60223Z",fill:"currentColor"})}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_186_11488",children:x.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Ch=()=>{const{token:e}=V.theme.useToken();return x.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[x.jsx("path",{d:"M0.568356 1.62165L1.19782 2.11384C2.05608 1.01674 3.3909 0.3125 4.88978 0.3125C7.47795 0.3125 9.57282 2.40513 9.57617 4.99442C9.57952 7.58594 7.48019 9.6875 4.88978 9.6875C2.86635 9.6875 1.14202 8.40402 0.485765 6.60603C0.469025 6.55915 0.493578 6.5067 0.540453 6.49107L1.17327 6.27344C1.19533 6.26588 1.21948 6.26725 1.24054 6.27726C1.26161 6.28727 1.27792 6.30513 1.28599 6.32701C1.30608 6.38281 1.3284 6.43862 1.35184 6.4933C1.54492 6.95089 1.8217 7.36161 2.17438 7.71429C2.52421 8.06478 2.93841 8.34445 3.39425 8.53795C3.86635 8.73772 4.36969 8.83929 4.88755 8.83929C5.40653 8.83929 5.90876 8.73772 6.38086 8.53795C6.83713 8.34526 7.25148 8.06549 7.60072 7.71429C7.9515 7.3645 8.23087 6.9498 8.42327 6.4933C8.62304 6.02009 8.72461 5.51786 8.72461 4.99888C8.72461 4.47991 8.62304 3.97768 8.42327 3.50446C8.23019 3.04688 7.9534 2.63616 7.60072 2.28348C7.24804 1.9308 6.83733 1.65402 6.38086 1.45982C5.90876 1.26004 5.40541 1.15848 4.88755 1.15848C4.36858 1.15848 3.86635 1.26004 3.39425 1.45982C2.93797 1.65251 2.52362 1.93228 2.17438 2.28348C2.06389 2.39397 1.9601 2.51116 1.86411 2.63393L2.53599 3.15848C2.54928 3.16877 2.5594 3.18259 2.56519 3.19837C2.57097 3.21415 2.57219 3.23125 2.56869 3.24768C2.56519 3.26412 2.55712 3.27924 2.54542 3.2913C2.53371 3.30336 2.51884 3.31187 2.50251 3.31585L0.542685 3.79576C0.486881 3.80915 0.432195 3.76674 0.432195 3.70982L0.423265 1.69085C0.424381 1.61719 0.51032 1.57589 0.568356 1.62165Z",fill:e.colorPrimary}),x.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_294_13557",children:x.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},_h=()=>{const{token:e}=V.theme.useToken();return x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("g",{clipPath:"url(#clip0_661_14605)",children:x.jsx("path",{d:"M14.6751 8.38707C14.9751 7.99064 15.1412 7.50492 15.1412 6.99957C15.1412 6.19778 14.693 5.43885 13.9715 5.01564C13.7858 4.9067 13.5744 4.84937 13.359 4.84957H9.0769L9.18404 2.65492C9.20904 2.12457 9.02154 1.621 8.65726 1.23707C8.47848 1.04783 8.2628 0.897269 8.02353 0.794683C7.78427 0.692098 7.52651 0.63967 7.26618 0.640638C6.33761 0.640638 5.51618 1.26564 5.26976 2.16028L3.73583 7.71385H1.4269C1.11083 7.71385 0.855469 7.96921 0.855469 8.28528V14.7853C0.855469 15.1014 1.11083 15.3567 1.4269 15.3567H12.1644C12.3287 15.3567 12.4894 15.3246 12.6376 15.2603C13.4876 14.8978 14.0358 14.0674 14.0358 13.146C14.0358 12.921 14.0037 12.6996 13.9394 12.4853C14.2394 12.0889 14.4055 11.6031 14.4055 11.0978C14.4055 10.8728 14.3733 10.6514 14.309 10.4371C14.609 10.0406 14.7751 9.55492 14.7751 9.04957C14.7715 8.82457 14.7394 8.60135 14.6751 8.38707ZM2.14118 14.071V8.99957H3.58761V14.071H2.14118ZM13.5055 7.76742L13.1144 8.10671L13.3626 8.56028C13.4444 8.70969 13.4868 8.87746 13.4858 9.04778C13.4858 9.34242 13.3573 9.62278 13.1358 9.81564L12.7448 10.1549L12.993 10.6085C13.0747 10.7579 13.1171 10.9257 13.1162 11.096C13.1162 11.3906 12.9876 11.671 12.7662 11.8639L12.3751 12.2031L12.6233 12.6567C12.7051 12.8061 12.7475 12.9739 12.7465 13.1442C12.7465 13.5442 12.5108 13.9049 12.1465 14.0692H4.73047V8.94242L6.50726 2.50492C6.55307 2.33992 6.65142 2.19436 6.7874 2.09027C6.92339 1.98619 7.08959 1.92927 7.26083 1.92814C7.39654 1.92814 7.53047 1.96742 7.63761 2.04778C7.8144 2.17992 7.90904 2.37992 7.89833 2.59242L7.7269 6.13528H13.3412C13.659 6.32992 13.8555 6.6585 13.8555 6.99957C13.8555 7.29421 13.7269 7.57278 13.5055 7.76742Z",fill:e.colorSuccess})}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_661_14605",children:x.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},Jm={success:x.jsx(wn.CheckCircleFilled,{}),error:x.jsx(wn.CloseCircleFilled,{}),warning:x.jsx(wn.ExclamationCircleFilled,{}),validating:x.jsx(wn.LoadingOutlined,{})},Vr=()=>({...Jm,success:x.jsx(_h,{})}),Xu=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M8.53558 1.57227H7.46415C7.36891 1.57227 7.32129 1.61988 7.32129 1.71512V7.32227H2.00028C1.90504 7.32227 1.85742 7.36988 1.85742 7.46512V8.53655C1.85742 8.63179 1.90504 8.67941 2.00028 8.67941H7.32129V14.2866C7.32129 14.3818 7.36891 14.4294 7.46415 14.4294H8.53558C8.63081 14.4294 8.67843 14.3818 8.67843 14.2866V8.67941H14.0003C14.0955 8.67941 14.1431 8.63179 14.1431 8.53655V7.46512C14.1431 7.36988 14.0955 7.32227 14.0003 7.32227H8.67843V1.71512C8.67843 1.61988 8.63081 1.57227 8.53558 1.57227Z",fill:e.colorText})})},on=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M14.4277 7.32227H1.57059C1.49202 7.32227 1.42773 7.38655 1.42773 7.46512V8.53655C1.42773 8.61512 1.49202 8.67941 1.57059 8.67941H14.4277C14.5063 8.67941 14.5706 8.61512 14.5706 8.53655V7.46512C14.5706 7.38655 14.5063 7.32227 14.4277 7.32227Z",fill:e.colorText})})},kh=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M11.375 6.34375H10.4453V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398ZM9.46094 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V6.34375Z",fill:e.colorPrimary})})},Th=()=>{const{token:e}=V.theme.useToken();return x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M11.375 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V4.21094C9.46094 4.27109 9.51016 4.32031 9.57031 4.32031H10.3359C10.3961 4.32031 10.4453 4.27109 10.4453 4.21094V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398Z",fill:e.colorText})})},Ym={ContentContainer:He.div`
102
102
  border: 1px solid ${({$borderColor:e})=>e};
103
103
  border-radius: 6px;
104
104
  background-color: ${({$bgColor:e})=>e};
@@ -108,10 +108,10 @@ React keys must be passed directly to JSX without using spread:
108
108
  flex-grow: ${({$flexGrow:e})=>e};
109
109
  display: ${({$displayFlex:e})=>e?"flex":"block"};
110
110
  flex-flow: ${({$flexFlow:e})=>e};
111
- `},Ih=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=V.theme.useToken();return x.jsx(Ym.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Oh=async({uri:e})=>$e.get(e),tn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>xn.useQuery({queryKey:t,queryFn:async()=>{const o=await Oh({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),St=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),Xm=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?x.jsx(vr.Link,{to:St({template:o,replaceValues:t}),children:St({template:i,replaceValues:t})}):St({template:i,replaceValues:t})})),Fh=({data:e,replaceValues:t,idToCompare:n})=>{const i=e.find(a=>a.id===n);return i?{breadcrumbItems:Xm({rawLinks:i.breadcrumbItems,replaceValues:t})}:void 0},Qu={HeightDiv:Ke.div`
111
+ `},Ih=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=V.theme.useToken();return x.jsx(Ym.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Oh=async({uri:e})=>$e.get(e),nn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>vn.useQuery({queryKey:t,queryFn:async()=>{const o=await Oh({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),At=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),Xm=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?x.jsx(vr.Link,{to:At({template:o,replaceValues:t}),children:At({template:i,replaceValues:t})}):At({template:i,replaceValues:t})})),Fh=({data:e,replaceValues:t,idToCompare:n})=>{const i=e.find(a=>a.id===n);return i?{breadcrumbItems:Xm({rawLinks:i.breadcrumbItems,replaceValues:t})}:void 0},Qu={HeightDiv:He.div`
112
112
  min-height: 22px;
113
113
  width: 100%;
114
- `},Bh=({data:e})=>x.jsx(Qu.HeightDiv,{children:x.jsx(V.Breadcrumb,{separator:">",items:e.breadcrumbItems})}),Qm=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a})=>{const{data:u,isError:l,isLoading:f}=tn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});if(l)return null;if(f)return x.jsx(Qu.HeightDiv,{children:x.jsx(V.Spin,{})});if(!u)return null;const h=u?.items.map(({spec:g})=>g);if(!h)return null;const d=Fh({data:h,replaceValues:i,idToCompare:a});return d?x.jsx(Bh,{data:d}):x.jsx(Qu.HeightDiv,{})},Dh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?St({template:o,replaceValues:t}):void 0;return{key:n,label:u?x.jsx(vr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Dh({rawLinks:a,replaceValues:t}):void 0}}),Zm=({items:e,pathname:t,tags:n})=>{const i=(o,a)=>o.flatMap(u=>{const l=[...a,u.key?u.key:String(u.key)],f=u.internalMetaLink?.startsWith("/")?u.internalMetaLink.slice(1):u.internalMetaLink,h=t.startsWith("/")?t.slice(1):t,d=f===h||f&&l&&f.includes(h)?l:[],g=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&g&&g.some(S=>n.currentTags?.includes(S))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...d,...v,...C]});return i(e,[])},Ph=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(h=>h.id===i);if(!a)return;const u={menuItems:Dh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?Zm({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(h=>typeof h=="string"?h:String(h));return{...u,selectedKeys:f}},e2={CustomMenu:Ke(V.Menu)`
114
+ `},Bh=({data:e})=>x.jsx(Qu.HeightDiv,{children:x.jsx(V.Breadcrumb,{separator:">",items:e.breadcrumbItems})}),Qm=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a})=>{const{data:u,isError:l,isLoading:f}=nn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});if(l)return null;if(f)return x.jsx(Qu.HeightDiv,{children:x.jsx(V.Spin,{})});if(!u)return null;const h=u?.items.map(({spec:g})=>g);if(!h)return null;const d=Fh({data:h,replaceValues:i,idToCompare:a});return d?x.jsx(Bh,{data:d}):x.jsx(Qu.HeightDiv,{})},Dh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?At({template:o,replaceValues:t}):void 0;return{key:n,label:u?x.jsx(vr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Dh({rawLinks:a,replaceValues:t}):void 0}}),Zm=({items:e,pathname:t,tags:n})=>{const i=(o,a)=>o.flatMap(u=>{const l=[...a,u.key?u.key:String(u.key)],f=u.internalMetaLink?.startsWith("/")?u.internalMetaLink.slice(1):u.internalMetaLink,h=t.startsWith("/")?t.slice(1):t,d=f===h||f&&l&&f.includes(h)?l:[],g=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&g&&g.some(S=>n.currentTags?.includes(S))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...d,...v,...C]});return i(e,[])},Ph=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(h=>h.id===i);if(!a)return;const u={menuItems:Dh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?Zm({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(h=>typeof h=="string"?h:String(h));return{...u,selectedKeys:f}},e2={CustomMenu:He(V.Menu)`
115
115
  margin-top: ${({$noMarginTop:e})=>e?"0":"16px"};
116
116
  font-size: 14px;
117
117
  line-height: 24px;
@@ -133,38 +133,38 @@ React keys must be passed directly to JSX without using spread:
133
133
  && .ant-menu-sub .ant-menu-item {
134
134
  margin: 0 !important;
135
135
  }
136
- `},Rh=({data:e,noMarginTop:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(()=>{try{const l=localStorage.getItem("menuOpenKeys");return l?JSON.parse(l):[]}catch(l){return console.error("Failed to parse stored menu keys",l),[]}}),u=l=>{a(l);try{localStorage.setItem("menuOpenKeys",JSON.stringify(l))}catch(f){console.error("Failed to save menu keys to localStorage",f)}};return Z.useEffect(()=>{i(e.selectedKeys)},[e.selectedKeys]),x.jsx(e2.CustomMenu,{selectedKeys:n,onSelect:()=>{},onDeselect:()=>{},defaultOpenKeys:e.selectedKeys,openKeys:o,onOpenChange:u,mode:"inline",items:e.menuItems,$noMarginTop:t})},Lh=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:h,isError:d,isLoading:g}=tn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});if(d)return null;if(g)return x.jsx(V.Spin,{});if(!h||l)return null;const v=h?.items.map(({spec:S})=>S);if(!v)return null;const C=Ph({data:v,replaceValues:i,pathname:o,idToCompare:a,currentTags:u});return C?x.jsx(Rh,{data:C,noMarginTop:f}):null};var Xo={exports:{}};/**
136
+ `},Rh=({data:e,noMarginTop:t})=>{const[n,i]=Q.useState([]),[o,a]=Q.useState(()=>{try{const l=localStorage.getItem("menuOpenKeys");return l?JSON.parse(l):[]}catch(l){return console.error("Failed to parse stored menu keys",l),[]}}),u=l=>{a(l);try{localStorage.setItem("menuOpenKeys",JSON.stringify(l))}catch(f){console.error("Failed to save menu keys to localStorage",f)}};return Q.useEffect(()=>{i(e.selectedKeys)},[e.selectedKeys]),x.jsx(e2.CustomMenu,{selectedKeys:n,onSelect:()=>{},onDeselect:()=>{},defaultOpenKeys:e.selectedKeys,openKeys:o,onOpenChange:u,mode:"inline",items:e.menuItems,$noMarginTop:t})},Lh=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:h,isError:d,isLoading:g}=nn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});if(d)return null;if(g)return x.jsx(V.Spin,{});if(!h||l)return null;const v=h?.items.map(({spec:S})=>S);if(!v)return null;const C=Ph({data:v,replaceValues:i,pathname:o,idToCompare:a,currentTags:u});return C?x.jsx(Rh,{data:C,noMarginTop:f}):null};var Xo={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */Xo.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",g=1,v=2,C=4,S=1,E=2,w=1,T=2,j=4,R=8,_=16,O=32,F=64,B=128,W=256,J=512,fe=30,le="...",de=800,be=16,Se=1,pe=2,Fe=3,De=1/0,_e=9007199254740991,Ye=17976931348623157e292,we=NaN,ge=4294967295,We=ge-1,Y=ge>>>1,X=[["ary",B],["bind",w],["bindKey",T],["curry",R],["curryRight",_],["flip",J],["partial",O],["partialRight",F],["rearg",W]],re="[object Arguments]",Ae="[object Array]",He="[object AsyncFunction]",xe="[object Boolean]",Oe="[object Date]",je="[object DOMException]",Pe="[object Error]",Ct="[object Function]",nn="[object GeneratorFunction]",Rt="[object Map]",Lt="[object Number]",jt="[object Null]",bt="[object Object]",Te="[object Promise]",et="[object Proxy]",gt="[object RegExp]",vt="[object Set]",ve="[object String]",It="[object Symbol]",an="[object Undefined]",Xe="[object WeakMap]",Bt="[object WeakSet]",ke="[object ArrayBuffer]",Ne="[object DataView]",Wt="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",L="[object Int32Array]",q="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",dt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Gr=/[&<>"']/g,xi=RegExp(st.source),as=RegExp(Gr.source),us=/<%-([\s\S]+?)%>/g,cs=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,no=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,rr=RegExp(Ir.source),Yr=/^\s+/,io=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,ir=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",Si="\\u0300-\\u036f",oo="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Sa=Si+oo+ao,Aa="\\u2700-\\u27bf",Ca="a-z\\xdf-\\xf6\\xf8-\\xff",Vc="\\xac\\xb1\\xd7\\xf7",qc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wc="\\u2000-\\u206f",Kc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",In="A-Z\\xc0-\\xd6\\xd8-\\xde",ls="\\ufe0e\\ufe0f",uo=Vc+qc+Wc+Kc,fs="['’]",Hc="["+Kt+"]",Xr="["+uo+"]",hs="["+Sa+"]",_a="\\d+",ka="["+Aa+"]",Ta="["+Ca+"]",Ia="[^"+Kt+uo+_a+Aa+Ca+In+"]",p="\\ud83c[\\udffb-\\udfff]",A="(?:"+hs+"|"+p+")",N="[^"+Kt+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",he="["+In+"]",ze="\\u200d",yt="(?:"+Ta+"|"+Ia+")",Qt="(?:"+he+"|"+Ia+")",Ht="(?:"+fs+"(?:d|ll|m|re|s|t|ve))?",Zp="(?:"+fs+"(?:D|LL|M|RE|S|T|VE))?",e0=A+"?",t0="["+ls+"]?",Nx="(?:"+ze+"(?:"+[N,K,ne].join("|")+")"+t0+e0+")*",$x="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+Nx,Ux="(?:"+[ka,K,ne].join("|")+")"+n0,Vx="(?:"+[N+hs+"?",hs,K,ne,Hc].join("|")+")",qx=RegExp(fs,"g"),Wx=RegExp(hs,"g"),zc=RegExp(p+"(?="+p+")|"+Vx+n0,"g"),Kx=RegExp([he+"?"+Ta+"+"+Ht+"(?="+[Xr,he,"$"].join("|")+")",Qt+"+"+Zp+"(?="+[Xr,he+yt,"$"].join("|")+")",he+"?"+yt+"+"+Ht,he+"+"+Zp,Mx,$x,_a,Ux].join("|"),"g"),Hx=RegExp("["+ze+Kt+Sa+ls+"]"),zx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jx=-1,Ft={};Ft[Wt]=Ft[I]=Ft[y]=Ft[b]=Ft[L]=Ft[q]=Ft[G]=Ft[ee]=Ft[Me]=!0,Ft[re]=Ft[Ae]=Ft[ke]=Ft[xe]=Ft[Ne]=Ft[Oe]=Ft[Pe]=Ft[Ct]=Ft[Rt]=Ft[Lt]=Ft[bt]=Ft[gt]=Ft[vt]=Ft[ve]=Ft[Xe]=!1;var _t={};_t[re]=_t[Ae]=_t[ke]=_t[Ne]=_t[xe]=_t[Oe]=_t[Wt]=_t[I]=_t[y]=_t[b]=_t[L]=_t[Rt]=_t[Lt]=_t[bt]=_t[gt]=_t[vt]=_t[ve]=_t[It]=_t[q]=_t[G]=_t[ee]=_t[Me]=!0,_t[Pe]=_t[Ct]=_t[Xe]=!1;var Yx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Xx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qx={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Zx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},eE=parseFloat,tE=parseInt,r0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,nE=typeof self=="object"&&self&&self.Object===Object&&self,un=r0||nE||Function("return this")(),Gc=t&&!t.nodeType&&t,Ai=Gc&&!0&&e&&!e.nodeType&&e,i0=Ai&&Ai.exports===Gc,Jc=i0&&r0.process,qn=function(){try{var H=Ai&&Ai.require&&Ai.require("util").types;return H||Jc&&Jc.binding&&Jc.binding("util")}catch{}}(),s0=qn&&qn.isArrayBuffer,o0=qn&&qn.isDate,a0=qn&&qn.isMap,u0=qn&&qn.isRegExp,c0=qn&&qn.isSet,l0=qn&&qn.isTypedArray;function On(H,te,Q){switch(Q.length){case 0:return H.call(te);case 1:return H.call(te,Q[0]);case 2:return H.call(te,Q[0],Q[1]);case 3:return H.call(te,Q[0],Q[1],Q[2])}return H.apply(te,Q)}function rE(H,te,Q,Ee){for(var Ue=-1,mt=H==null?0:H.length;++Ue<mt;){var Zt=H[Ue];te(Ee,Zt,Q(Zt),H)}return Ee}function Wn(H,te){for(var Q=-1,Ee=H==null?0:H.length;++Q<Ee&&te(H[Q],Q,H)!==!1;);return H}function iE(H,te){for(var Q=H==null?0:H.length;Q--&&te(H[Q],Q,H)!==!1;);return H}function f0(H,te){for(var Q=-1,Ee=H==null?0:H.length;++Q<Ee;)if(!te(H[Q],Q,H))return!1;return!0}function Qr(H,te){for(var Q=-1,Ee=H==null?0:H.length,Ue=0,mt=[];++Q<Ee;){var Zt=H[Q];te(Zt,Q,H)&&(mt[Ue++]=Zt)}return mt}function Oa(H,te){var Q=H==null?0:H.length;return!!Q&&ds(H,te,0)>-1}function Yc(H,te,Q){for(var Ee=-1,Ue=H==null?0:H.length;++Ee<Ue;)if(Q(te,H[Ee]))return!0;return!1}function Pt(H,te){for(var Q=-1,Ee=H==null?0:H.length,Ue=Array(Ee);++Q<Ee;)Ue[Q]=te(H[Q],Q,H);return Ue}function Zr(H,te){for(var Q=-1,Ee=te.length,Ue=H.length;++Q<Ee;)H[Ue+Q]=te[Q];return H}function Xc(H,te,Q,Ee){var Ue=-1,mt=H==null?0:H.length;for(Ee&&mt&&(Q=H[++Ue]);++Ue<mt;)Q=te(Q,H[Ue],Ue,H);return Q}function sE(H,te,Q,Ee){var Ue=H==null?0:H.length;for(Ee&&Ue&&(Q=H[--Ue]);Ue--;)Q=te(Q,H[Ue],Ue,H);return Q}function Qc(H,te){for(var Q=-1,Ee=H==null?0:H.length;++Q<Ee;)if(te(H[Q],Q,H))return!0;return!1}var oE=Zc("length");function aE(H){return H.split("")}function uE(H){return H.match(ce)||[]}function h0(H,te,Q){var Ee;return Q(H,function(Ue,mt,Zt){if(te(Ue,mt,Zt))return Ee=mt,!1}),Ee}function Fa(H,te,Q,Ee){for(var Ue=H.length,mt=Q+(Ee?1:-1);Ee?mt--:++mt<Ue;)if(te(H[mt],mt,H))return mt;return-1}function ds(H,te,Q){return te===te?vE(H,te,Q):Fa(H,d0,Q)}function cE(H,te,Q,Ee){for(var Ue=Q-1,mt=H.length;++Ue<mt;)if(Ee(H[Ue],te))return Ue;return-1}function d0(H){return H!==H}function p0(H,te){var Q=H==null?0:H.length;return Q?tl(H,te)/Q:we}function Zc(H){return function(te){return te==null?n:te[H]}}function el(H){return function(te){return H==null?n:H[te]}}function g0(H,te,Q,Ee,Ue){return Ue(H,function(mt,Zt,Et){Q=Ee?(Ee=!1,mt):te(Q,mt,Zt,Et)}),Q}function lE(H,te){var Q=H.length;for(H.sort(te);Q--;)H[Q]=H[Q].value;return H}function tl(H,te){for(var Q,Ee=-1,Ue=H.length;++Ee<Ue;){var mt=te(H[Ee]);mt!==n&&(Q=Q===n?mt:Q+mt)}return Q}function nl(H,te){for(var Q=-1,Ee=Array(H);++Q<H;)Ee[Q]=te(Q);return Ee}function fE(H,te){return Pt(te,function(Q){return[Q,H[Q]]})}function y0(H){return H&&H.slice(0,v0(H)+1).replace(Yr,"")}function Fn(H){return function(te){return H(te)}}function rl(H,te){return Pt(te,function(Q){return H[Q]})}function co(H,te){return H.has(te)}function m0(H,te){for(var Q=-1,Ee=H.length;++Q<Ee&&ds(te,H[Q],0)>-1;);return Q}function b0(H,te){for(var Q=H.length;Q--&&ds(te,H[Q],0)>-1;);return Q}function hE(H,te){for(var Q=H.length,Ee=0;Q--;)H[Q]===te&&++Ee;return Ee}var dE=el(Yx),pE=el(Xx);function gE(H){return"\\"+Zx[H]}function yE(H,te){return H==null?n:H[te]}function ps(H){return Hx.test(H)}function mE(H){return zx.test(H)}function bE(H){for(var te,Q=[];!(te=H.next()).done;)Q.push(te.value);return Q}function il(H){var te=-1,Q=Array(H.size);return H.forEach(function(Ee,Ue){Q[++te]=[Ue,Ee]}),Q}function w0(H,te){return function(Q){return H(te(Q))}}function ei(H,te){for(var Q=-1,Ee=H.length,Ue=0,mt=[];++Q<Ee;){var Zt=H[Q];(Zt===te||Zt===d)&&(H[Q]=d,mt[Ue++]=Q)}return mt}function Ba(H){var te=-1,Q=Array(H.size);return H.forEach(function(Ee){Q[++te]=Ee}),Q}function wE(H){var te=-1,Q=Array(H.size);return H.forEach(function(Ee){Q[++te]=[Ee,Ee]}),Q}function vE(H,te,Q){for(var Ee=Q-1,Ue=H.length;++Ee<Ue;)if(H[Ee]===te)return Ee;return-1}function xE(H,te,Q){for(var Ee=Q+1;Ee--;)if(H[Ee]===te)return Ee;return Ee}function gs(H){return ps(H)?SE(H):oE(H)}function sr(H){return ps(H)?AE(H):aE(H)}function v0(H){for(var te=H.length;te--&&io.test(H.charAt(te)););return te}var EE=el(Qx);function SE(H){for(var te=zc.lastIndex=0;zc.test(H);)++te;return te}function AE(H){return H.match(zc)||[]}function CE(H){return H.match(Kx)||[]}var _E=function H(te){te=te==null?un:ys.defaults(un.Object(),te,ys.pick(un,Gx));var Q=te.Array,Ee=te.Date,Ue=te.Error,mt=te.Function,Zt=te.Math,Et=te.Object,sl=te.RegExp,kE=te.String,Kn=te.TypeError,Da=Q.prototype,TE=mt.prototype,ms=Et.prototype,Pa=te["__core-js_shared__"],Ra=TE.toString,xt=ms.hasOwnProperty,IE=0,x0=function(){var r=/[^.]+$/.exec(Pa&&Pa.keys&&Pa.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),La=ms.toString,OE=Ra.call(Et),FE=un._,BE=sl("^"+Ra.call(xt).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=i0?te.Buffer:n,ti=te.Symbol,Na=te.Uint8Array,E0=ja?ja.allocUnsafe:n,$a=w0(Et.getPrototypeOf,Et),S0=Et.create,A0=ms.propertyIsEnumerable,Ma=Da.splice,C0=ti?ti.isConcatSpreadable:n,lo=ti?ti.iterator:n,Ci=ti?ti.toStringTag:n,Ua=function(){try{var r=Oi(Et,"defineProperty");return r({},"",{}),r}catch{}}(),DE=te.clearTimeout!==un.clearTimeout&&te.clearTimeout,PE=Ee&&Ee.now!==un.Date.now&&Ee.now,RE=te.setTimeout!==un.setTimeout&&te.setTimeout,Va=Zt.ceil,qa=Zt.floor,ol=Et.getOwnPropertySymbols,LE=ja?ja.isBuffer:n,_0=te.isFinite,jE=Da.join,NE=w0(Et.keys,Et),en=Zt.max,hn=Zt.min,$E=Ee.now,ME=te.parseInt,k0=Zt.random,UE=Da.reverse,al=Oi(te,"DataView"),fo=Oi(te,"Map"),ul=Oi(te,"Promise"),bs=Oi(te,"Set"),ho=Oi(te,"WeakMap"),po=Oi(Et,"create"),Wa=ho&&new ho,ws={},VE=Fi(al),qE=Fi(fo),WE=Fi(ul),KE=Fi(bs),HE=Fi(ho),Ka=ti?ti.prototype:n,go=Ka?Ka.valueOf:n,T0=Ka?Ka.toString:n;function D(r){if($t(r)&&!qe(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(xt.call(r,"__wrapped__"))return Ig(r)}return new Hn(r)}var vs=function(){function r(){}return function(s){if(!Nt(s))return{};if(S0)return S0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ha(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:us,evaluate:cs,interpolate:Jr,variable:"",imports:{_:D}},D.prototype=Ha.prototype,D.prototype.constructor=D,Hn.prototype=vs(Ha.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ge,this.__views__=[]}function zE(){var r=new ot(this.__wrapped__);return r.__actions__=Sn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Sn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Sn(this.__views__),r}function GE(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function JE(){var r=this.__wrapped__.value(),s=this.__dir__,c=qe(r),m=s<0,k=c?r.length:0,P=aA(0,k,this.__views__),$=P.start,U=P.end,z=U-$,se=m?U:$-1,oe=this.__iteratees__,ae=oe.length,me=0,Ce=hn(z,this.__takeCount__);if(!c||!m&&k==z&&Ce==z)return Q0(r,this.__actions__);var Re=[];e:for(;z--&&me<Ce;){se+=s;for(var Ze=-1,Le=r[se];++Ze<ae;){var it=oe[Ze],at=it.iteratee,Pn=it.type,wn=at(Le);if(Pn==pe)Le=wn;else if(!wn){if(Pn==Se)continue e;break e}}Re[me++]=Le}return Re}ot.prototype=vs(Ha.prototype),ot.prototype.constructor=ot;function _i(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function YE(){this.__data__=po?po(null):{},this.size=0}function XE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function QE(r){var s=this.__data__;if(po){var c=s[r];return c===f?n:c}return xt.call(s,r)?s[r]:n}function ZE(r){var s=this.__data__;return po?s[r]!==n:xt.call(s,r)}function eS(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=po&&s===n?f:s,this}_i.prototype.clear=YE,_i.prototype.delete=XE,_i.prototype.get=QE,_i.prototype.has=ZE,_i.prototype.set=eS;function Or(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function tS(){this.__data__=[],this.size=0}function nS(r){var s=this.__data__,c=za(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Ma.call(s,c,1),--this.size,!0}function rS(r){var s=this.__data__,c=za(s,r);return c<0?n:s[c][1]}function iS(r){return za(this.__data__,r)>-1}function sS(r,s){var c=this.__data__,m=za(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Or.prototype.clear=tS,Or.prototype.delete=nS,Or.prototype.get=rS,Or.prototype.has=iS,Or.prototype.set=sS;function Fr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function oS(){this.size=0,this.__data__={hash:new _i,map:new(fo||Or),string:new _i}}function aS(r){var s=su(this,r).delete(r);return this.size-=s?1:0,s}function uS(r){return su(this,r).get(r)}function cS(r){return su(this,r).has(r)}function lS(r,s){var c=su(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Fr.prototype.clear=oS,Fr.prototype.delete=aS,Fr.prototype.get=uS,Fr.prototype.has=cS,Fr.prototype.set=lS;function ki(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Fr;++s<c;)this.add(r[s])}function fS(r){return this.__data__.set(r,f),this}function hS(r){return this.__data__.has(r)}ki.prototype.add=ki.prototype.push=fS,ki.prototype.has=hS;function or(r){var s=this.__data__=new Or(r);this.size=s.size}function dS(){this.__data__=new Or,this.size=0}function pS(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function gS(r){return this.__data__.get(r)}function yS(r){return this.__data__.has(r)}function mS(r,s){var c=this.__data__;if(c instanceof Or){var m=c.__data__;if(!fo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Fr(m)}return c.set(r,s),this.size=c.size,this}or.prototype.clear=dS,or.prototype.delete=pS,or.prototype.get=gS,or.prototype.has=yS,or.prototype.set=mS;function I0(r,s){var c=qe(r),m=!c&&Bi(r),k=!c&&!m&&oi(r),P=!c&&!m&&!k&&As(r),$=c||m||k||P,U=$?nl(r.length,kE):[],z=U.length;for(var se in r)(s||xt.call(r,se))&&!($&&(se=="length"||k&&(se=="offset"||se=="parent")||P&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Rr(se,z)))&&U.push(se);return U}function O0(r){var s=r.length;return s?r[wl(0,s-1)]:n}function bS(r,s){return ou(Sn(r),Ti(s,0,r.length))}function wS(r){return ou(Sn(r))}function cl(r,s,c){(c!==n&&!ar(r[s],c)||c===n&&!(s in r))&&Br(r,s,c)}function yo(r,s,c){var m=r[s];(!(xt.call(r,s)&&ar(m,c))||c===n&&!(s in r))&&Br(r,s,c)}function za(r,s){for(var c=r.length;c--;)if(ar(r[c][0],s))return c;return-1}function vS(r,s,c,m){return ni(r,function(k,P,$){s(m,k,c(k),$)}),m}function F0(r,s){return r&&br(s,rn(s),r)}function xS(r,s){return r&&br(s,Cn(s),r)}function Br(r,s,c){s=="__proto__"&&Ua?Ua(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ll(r,s){for(var c=-1,m=s.length,k=Q(m),P=r==null;++c<m;)k[c]=P?n:Wl(r,s[c]);return k}function Ti(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,k,P){var $,U=s&g,z=s&v,se=s&C;if(c&&($=k?c(r,m,k,P):c(r)),$!==n)return $;if(!Nt(r))return r;var oe=qe(r);if(oe){if($=cA(r),!U)return Sn(r,$)}else{var ae=dn(r),me=ae==Ct||ae==nn;if(oi(r))return tg(r,U);if(ae==bt||ae==re||me&&!k){if($=z||me?{}:vg(r),!U)return z?QS(r,xS($,r)):XS(r,F0($,r))}else{if(!_t[ae])return k?r:{};$=lA(r,ae,U)}}P||(P=new or);var Ce=P.get(r);if(Ce)return Ce;P.set(r,$),Jg(r)?r.forEach(function(Le){$.add(zn(Le,s,c,Le,r,P))}):zg(r)&&r.forEach(function(Le,it){$.set(it,zn(Le,s,c,it,r,P))});var Re=se?z?Ol:Il:z?Cn:rn,Ze=oe?n:Re(r);return Wn(Ze||r,function(Le,it){Ze&&(it=Le,Le=r[it]),yo($,it,zn(Le,s,c,it,r,P))}),$}function ES(r){var s=rn(r);return function(c){return B0(c,r,s)}}function B0(r,s,c){var m=c.length;if(r==null)return!m;for(r=Et(r);m--;){var k=c[m],P=s[k],$=r[k];if($===n&&!(k in r)||!P($))return!1}return!0}function D0(r,s,c){if(typeof r!="function")throw new Kn(u);return So(function(){r.apply(n,c)},s)}function mo(r,s,c,m){var k=-1,P=Oa,$=!0,U=r.length,z=[],se=s.length;if(!U)return z;c&&(s=Pt(s,Fn(c))),m?(P=Yc,$=!1):s.length>=o&&(P=co,$=!1,s=new ki(s));e:for(;++k<U;){var oe=r[k],ae=c==null?oe:c(oe);if(oe=m||oe!==0?oe:0,$&&ae===ae){for(var me=se;me--;)if(s[me]===ae)continue e;z.push(oe)}else P(s,ae,m)||z.push(oe)}return z}var ni=og(mr),P0=og(hl,!0);function SS(r,s){var c=!0;return ni(r,function(m,k,P){return c=!!s(m,k,P),c}),c}function Ga(r,s,c){for(var m=-1,k=r.length;++m<k;){var P=r[m],$=s(P);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=P}return z}function AS(r,s,c,m){var k=r.length;for(c=Ge(c),c<0&&(c=-c>k?0:k+c),m=m===n||m>k?k:Ge(m),m<0&&(m+=k),m=c>m?0:Xg(m);c<m;)r[c++]=s;return r}function R0(r,s){var c=[];return ni(r,function(m,k,P){s(m,k,P)&&c.push(m)}),c}function cn(r,s,c,m,k){var P=-1,$=r.length;for(c||(c=hA),k||(k=[]);++P<$;){var U=r[P];s>0&&c(U)?s>1?cn(U,s-1,c,m,k):Zr(k,U):m||(k[k.length]=U)}return k}var fl=ag(),L0=ag(!0);function mr(r,s){return r&&fl(r,s,rn)}function hl(r,s){return r&&L0(r,s,rn)}function Ja(r,s){return Qr(s,function(c){return Lr(r[c])})}function Ii(r,s){s=ii(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[wr(s[c++])];return c&&c==m?r:n}function j0(r,s,c){var m=s(r);return qe(r)?m:Zr(m,c(r))}function mn(r){return r==null?r===n?an:jt:Ci&&Ci in Et(r)?oA(r):wA(r)}function dl(r,s){return r>s}function CS(r,s){return r!=null&&xt.call(r,s)}function _S(r,s){return r!=null&&s in Et(r)}function kS(r,s,c){return r>=hn(s,c)&&r<en(s,c)}function pl(r,s,c){for(var m=c?Yc:Oa,k=r[0].length,P=r.length,$=P,U=Q(P),z=1/0,se=[];$--;){var oe=r[$];$&&s&&(oe=Pt(oe,Fn(s))),z=hn(oe.length,z),U[$]=!c&&(s||k>=120&&oe.length>=120)?new ki($&&oe):n}oe=r[0];var ae=-1,me=U[0];e:for(;++ae<k&&se.length<z;){var Ce=oe[ae],Re=s?s(Ce):Ce;if(Ce=c||Ce!==0?Ce:0,!(me?co(me,Re):m(se,Re,c))){for($=P;--$;){var Ze=U[$];if(!(Ze?co(Ze,Re):m(r[$],Re,c)))continue e}me&&me.push(Re),se.push(Ce)}}return se}function TS(r,s,c,m){return mr(r,function(k,P,$){s(m,c(k),P,$)}),m}function bo(r,s,c){s=ii(s,r),r=Ag(r,s);var m=r==null?r:r[wr(Jn(s))];return m==null?n:On(m,r,c)}function N0(r){return $t(r)&&mn(r)==re}function IS(r){return $t(r)&&mn(r)==ke}function OS(r){return $t(r)&&mn(r)==Oe}function wo(r,s,c,m,k){return r===s?!0:r==null||s==null||!$t(r)&&!$t(s)?r!==r&&s!==s:FS(r,s,c,m,wo,k)}function FS(r,s,c,m,k,P){var $=qe(r),U=qe(s),z=$?Ae:dn(r),se=U?Ae:dn(s);z=z==re?bt:z,se=se==re?bt:se;var oe=z==bt,ae=se==bt,me=z==se;if(me&&oi(r)){if(!oi(s))return!1;$=!0,oe=!1}if(me&&!oe)return P||(P=new or),$||As(r)?mg(r,s,c,m,k,P):iA(r,s,z,c,m,k,P);if(!(c&S)){var Ce=oe&&xt.call(r,"__wrapped__"),Re=ae&&xt.call(s,"__wrapped__");if(Ce||Re){var Ze=Ce?r.value():r,Le=Re?s.value():s;return P||(P=new or),k(Ze,Le,c,m,P)}}return me?(P||(P=new or),sA(r,s,c,m,k,P)):!1}function BS(r){return $t(r)&&dn(r)==Rt}function gl(r,s,c,m){var k=c.length,P=k,$=!m;if(r==null)return!P;for(r=Et(r);k--;){var U=c[k];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++k<P;){U=c[k];var z=U[0],se=r[z],oe=U[1];if($&&U[2]){if(se===n&&!(z in r))return!1}else{var ae=new or;if(m)var me=m(se,oe,z,r,s,ae);if(!(me===n?wo(oe,se,S|E,m,ae):me))return!1}}return!0}function $0(r){if(!Nt(r)||pA(r))return!1;var s=Lr(r)?BE:Xt;return s.test(Fi(r))}function DS(r){return $t(r)&&mn(r)==gt}function PS(r){return $t(r)&&dn(r)==vt}function RS(r){return $t(r)&&hu(r.length)&&!!Ft[mn(r)]}function M0(r){return typeof r=="function"?r:r==null?_n:typeof r=="object"?qe(r)?q0(r[0],r[1]):V0(r):u1(r)}function yl(r){if(!Eo(r))return NE(r);var s=[];for(var c in Et(r))xt.call(r,c)&&c!="constructor"&&s.push(c);return s}function LS(r){if(!Nt(r))return bA(r);var s=Eo(r),c=[];for(var m in r)m=="constructor"&&(s||!xt.call(r,m))||c.push(m);return c}function ml(r,s){return r<s}function U0(r,s){var c=-1,m=An(r)?Q(r.length):[];return ni(r,function(k,P,$){m[++c]=s(k,P,$)}),m}function V0(r){var s=Bl(r);return s.length==1&&s[0][2]?Eg(s[0][0],s[0][1]):function(c){return c===r||gl(c,r,s)}}function q0(r,s){return Pl(r)&&xg(s)?Eg(wr(r),s):function(c){var m=Wl(c,r);return m===n&&m===s?Kl(c,r):wo(s,m,S|E)}}function Ya(r,s,c,m,k){r!==s&&fl(s,function(P,$){if(k||(k=new or),Nt(P))jS(r,s,$,c,Ya,m,k);else{var U=m?m(Ll(r,$),P,$+"",r,s,k):n;U===n&&(U=P),cl(r,$,U)}},Cn)}function jS(r,s,c,m,k,P,$){var U=Ll(r,c),z=Ll(s,c),se=$.get(z);if(se){cl(r,c,se);return}var oe=P?P(U,z,c+"",r,s,$):n,ae=oe===n;if(ae){var me=qe(z),Ce=!me&&oi(z),Re=!me&&!Ce&&As(z);oe=z,me||Ce||Re?qe(U)?oe=U:zt(U)?oe=Sn(U):Ce?(ae=!1,oe=tg(z,!0)):Re?(ae=!1,oe=ng(z,!0)):oe=[]:Ao(z)||Bi(z)?(oe=U,Bi(U)?oe=Qg(U):(!Nt(U)||Lr(U))&&(oe=vg(z))):ae=!1}ae&&($.set(z,oe),k(oe,z,m,P,$),$.delete(z)),cl(r,c,oe)}function W0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Rr(s,c)?r[s]:n}function K0(r,s,c){s.length?s=Pt(s,function(P){return qe(P)?function($){return Ii($,P.length===1?P[0]:P)}:P}):s=[_n];var m=-1;s=Pt(s,Fn(Be()));var k=U0(r,function(P,$,U){var z=Pt(s,function(se){return se(P)});return{criteria:z,index:++m,value:P}});return lE(k,function(P,$){return YS(P,$,c)})}function NS(r,s){return H0(r,s,function(c,m){return Kl(r,m)})}function H0(r,s,c){for(var m=-1,k=s.length,P={};++m<k;){var $=s[m],U=Ii(r,$);c(U,$)&&vo(P,ii($,r),U)}return P}function $S(r){return function(s){return Ii(s,r)}}function bl(r,s,c,m){var k=m?cE:ds,P=-1,$=s.length,U=r;for(r===s&&(s=Sn(s)),c&&(U=Pt(r,Fn(c)));++P<$;)for(var z=0,se=s[P],oe=c?c(se):se;(z=k(U,oe,z,m))>-1;)U!==r&&Ma.call(U,z,1),Ma.call(r,z,1);return r}function z0(r,s){for(var c=r?s.length:0,m=c-1;c--;){var k=s[c];if(c==m||k!==P){var P=k;Rr(k)?Ma.call(r,k,1):El(r,k)}}return r}function wl(r,s){return r+qa(k0()*(s-r+1))}function MS(r,s,c,m){for(var k=-1,P=en(Va((s-r)/(c||1)),0),$=Q(P);P--;)$[m?P:++k]=r,r+=c;return $}function vl(r,s){var c="";if(!r||s<1||s>_e)return c;do s%2&&(c+=r),s=qa(s/2),s&&(r+=r);while(s);return c}function tt(r,s){return jl(Sg(r,s,_n),r+"")}function US(r){return O0(Cs(r))}function VS(r,s){var c=Cs(r);return ou(c,Ti(s,0,c.length))}function vo(r,s,c,m){if(!Nt(r))return r;s=ii(s,r);for(var k=-1,P=s.length,$=P-1,U=r;U!=null&&++k<P;){var z=wr(s[k]),se=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(k!=$){var oe=U[z];se=m?m(oe,z,U):n,se===n&&(se=Nt(oe)?oe:Rr(s[k+1])?[]:{})}yo(U,z,se),U=U[z]}return r}var G0=Wa?function(r,s){return Wa.set(r,s),r}:_n,qS=Ua?function(r,s){return Ua(r,"toString",{configurable:!0,enumerable:!1,value:zl(s),writable:!0})}:_n;function WS(r){return ou(Cs(r))}function Gn(r,s,c){var m=-1,k=r.length;s<0&&(s=-s>k?0:k+s),c=c>k?k:c,c<0&&(c+=k),k=s>c?0:c-s>>>0,s>>>=0;for(var P=Q(k);++m<k;)P[m]=r[m+s];return P}function KS(r,s){var c;return ni(r,function(m,k,P){return c=s(m,k,P),!c}),!!c}function Xa(r,s,c){var m=0,k=r==null?m:r.length;if(typeof s=="number"&&s===s&&k<=Y){for(;m<k;){var P=m+k>>>1,$=r[P];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=P+1:k=P}return k}return xl(r,s,_n,c)}function xl(r,s,c,m){var k=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var $=s!==s,U=s===null,z=Dn(s),se=s===n;k<P;){var oe=qa((k+P)/2),ae=c(r[oe]),me=ae!==n,Ce=ae===null,Re=ae===ae,Ze=Dn(ae);if($)var Le=m||Re;else se?Le=Re&&(m||me):U?Le=Re&&me&&(m||!Ce):z?Le=Re&&me&&!Ce&&(m||!Ze):Ce||Ze?Le=!1:Le=m?ae<=s:ae<s;Le?k=oe+1:P=oe}return hn(P,We)}function J0(r,s){for(var c=-1,m=r.length,k=0,P=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ar(U,z)){var z=U;P[k++]=$===0?0:$}}return P}function Y0(r){return typeof r=="number"?r:Dn(r)?we:+r}function Bn(r){if(typeof r=="string")return r;if(qe(r))return Pt(r,Bn)+"";if(Dn(r))return T0?T0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ri(r,s,c){var m=-1,k=Oa,P=r.length,$=!0,U=[],z=U;if(c)$=!1,k=Yc;else if(P>=o){var se=s?null:nA(r);if(se)return Ba(se);$=!1,k=co,z=new ki}else z=s?[]:U;e:for(;++m<P;){var oe=r[m],ae=s?s(oe):oe;if(oe=c||oe!==0?oe:0,$&&ae===ae){for(var me=z.length;me--;)if(z[me]===ae)continue e;s&&z.push(ae),U.push(oe)}else k(z,ae,c)||(z!==U&&z.push(ae),U.push(oe))}return U}function El(r,s){return s=ii(s,r),r=Ag(r,s),r==null||delete r[wr(Jn(s))]}function X0(r,s,c,m){return vo(r,s,c(Ii(r,s)),m)}function Qa(r,s,c,m){for(var k=r.length,P=m?k:-1;(m?P--:++P<k)&&s(r[P],P,r););return c?Gn(r,m?0:P,m?P+1:k):Gn(r,m?P+1:0,m?k:P)}function Q0(r,s){var c=r;return c instanceof ot&&(c=c.value()),Xc(s,function(m,k){return k.func.apply(k.thisArg,Zr([m],k.args))},c)}function Sl(r,s,c){var m=r.length;if(m<2)return m?ri(r[0]):[];for(var k=-1,P=Q(m);++k<m;)for(var $=r[k],U=-1;++U<m;)U!=k&&(P[k]=mo(P[k]||$,r[U],s,c));return ri(cn(P,1),s,c)}function Z0(r,s,c){for(var m=-1,k=r.length,P=s.length,$={};++m<k;){var U=m<P?s[m]:n;c($,r[m],U)}return $}function Al(r){return zt(r)?r:[]}function Cl(r){return typeof r=="function"?r:_n}function ii(r,s){return qe(r)?r:Pl(r,s)?[r]:Tg(wt(r))}var HS=tt;function si(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var eg=DE||function(r){return un.clearTimeout(r)};function tg(r,s){if(s)return r.slice();var c=r.length,m=E0?E0(c):new r.constructor(c);return r.copy(m),m}function _l(r){var s=new r.constructor(r.byteLength);return new Na(s).set(new Na(r)),s}function zS(r,s){var c=s?_l(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function GS(r){var s=new r.constructor(r.source,lt.exec(r));return s.lastIndex=r.lastIndex,s}function JS(r){return go?Et(go.call(r)):{}}function ng(r,s){var c=s?_l(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function rg(r,s){if(r!==s){var c=r!==n,m=r===null,k=r===r,P=Dn(r),$=s!==n,U=s===null,z=s===s,se=Dn(s);if(!U&&!se&&!P&&r>s||P&&$&&z&&!U&&!se||m&&$&&z||!c&&z||!k)return 1;if(!m&&!P&&!se&&r<s||se&&c&&k&&!m&&!P||U&&c&&k||!$&&k||!z)return-1}return 0}function YS(r,s,c){for(var m=-1,k=r.criteria,P=s.criteria,$=k.length,U=c.length;++m<$;){var z=rg(k[m],P[m]);if(z){if(m>=U)return z;var se=c[m];return z*(se=="desc"?-1:1)}}return r.index-s.index}function ig(r,s,c,m){for(var k=-1,P=r.length,$=c.length,U=-1,z=s.length,se=en(P-$,0),oe=Q(z+se),ae=!m;++U<z;)oe[U]=s[U];for(;++k<$;)(ae||k<P)&&(oe[c[k]]=r[k]);for(;se--;)oe[U++]=r[k++];return oe}function sg(r,s,c,m){for(var k=-1,P=r.length,$=-1,U=c.length,z=-1,se=s.length,oe=en(P-U,0),ae=Q(oe+se),me=!m;++k<oe;)ae[k]=r[k];for(var Ce=k;++z<se;)ae[Ce+z]=s[z];for(;++$<U;)(me||k<P)&&(ae[Ce+c[$]]=r[k++]);return ae}function Sn(r,s){var c=-1,m=r.length;for(s||(s=Q(m));++c<m;)s[c]=r[c];return s}function br(r,s,c,m){var k=!c;c||(c={});for(var P=-1,$=s.length;++P<$;){var U=s[P],z=m?m(c[U],r[U],U,c,r):n;z===n&&(z=r[U]),k?Br(c,U,z):yo(c,U,z)}return c}function XS(r,s){return br(r,Dl(r),s)}function QS(r,s){return br(r,bg(r),s)}function Za(r,s){return function(c,m){var k=qe(c)?rE:vS,P=s?s():{};return k(c,r,Be(m,2),P)}}function xs(r){return tt(function(s,c){var m=-1,k=c.length,P=k>1?c[k-1]:n,$=k>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(k--,P):n,$&&bn(c[0],c[1],$)&&(P=k<3?n:P,k=1),s=Et(s);++m<k;){var U=c[m];U&&r(s,U,m,P)}return s})}function og(r,s){return function(c,m){if(c==null)return c;if(!An(c))return r(c,m);for(var k=c.length,P=s?k:-1,$=Et(c);(s?P--:++P<k)&&m($[P],P,$)!==!1;);return c}}function ag(r){return function(s,c,m){for(var k=-1,P=Et(s),$=m(s),U=$.length;U--;){var z=$[r?U:++k];if(c(P[z],z,P)===!1)break}return s}}function ZS(r,s,c){var m=s&w,k=xo(r);function P(){var $=this&&this!==un&&this instanceof P?k:r;return $.apply(m?c:this,arguments)}return P}function ug(r){return function(s){s=wt(s);var c=ps(s)?sr(s):n,m=c?c[0]:s.charAt(0),k=c?si(c,1).join(""):s.slice(1);return m[r]()+k}}function Es(r){return function(s){return Xc(o1(s1(s).replace(qx,"")),r,"")}}function xo(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=vs(r.prototype),m=r.apply(c,s);return Nt(m)?m:c}}function eA(r,s,c){var m=xo(r);function k(){for(var P=arguments.length,$=Q(P),U=P,z=Ss(k);U--;)$[U]=arguments[U];var se=P<3&&$[0]!==z&&$[P-1]!==z?[]:ei($,z);if(P-=se.length,P<c)return dg(r,s,eu,k.placeholder,n,$,se,n,n,c-P);var oe=this&&this!==un&&this instanceof k?m:r;return On(oe,this,$)}return k}function cg(r){return function(s,c,m){var k=Et(s);if(!An(s)){var P=Be(c,3);s=rn(s),c=function(U){return P(k[U],U,k)}}var $=r(s,c,m);return $>-1?k[P?s[$]:$]:n}}function lg(r){return Pr(function(s){var c=s.length,m=c,k=Hn.prototype.thru;for(r&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new Kn(u);if(k&&!$&&iu(P)=="wrapper")var $=new Hn([],!0)}for(m=$?m:c;++m<c;){P=s[m];var U=iu(P),z=U=="wrapper"?Fl(P):n;z&&Rl(z[0])&&z[1]==(B|R|O|W)&&!z[4].length&&z[9]==1?$=$[iu(z[0])].apply($,z[3]):$=P.length==1&&Rl(P)?$[U]():$.thru(P)}return function(){var se=arguments,oe=se[0];if($&&se.length==1&&qe(oe))return $.plant(oe).value();for(var ae=0,me=c?s[ae].apply(this,se):oe;++ae<c;)me=s[ae].call(this,me);return me}})}function eu(r,s,c,m,k,P,$,U,z,se){var oe=s&B,ae=s&w,me=s&T,Ce=s&(R|_),Re=s&J,Ze=me?n:xo(r);function Le(){for(var it=arguments.length,at=Q(it),Pn=it;Pn--;)at[Pn]=arguments[Pn];if(Ce)var wn=Ss(Le),Rn=hE(at,wn);if(m&&(at=ig(at,m,k,Ce)),P&&(at=sg(at,P,$,Ce)),it-=Rn,Ce&&it<se){var Gt=ei(at,wn);return dg(r,s,eu,Le.placeholder,c,at,Gt,U,z,se-it)}var ur=ae?c:this,Nr=me?ur[r]:r;return it=at.length,U?at=vA(at,U):Re&&it>1&&at.reverse(),oe&&z<it&&(at.length=z),this&&this!==un&&this instanceof Le&&(Nr=Ze||xo(Nr)),Nr.apply(ur,at)}return Le}function fg(r,s){return function(c,m){return TS(c,r,s(m),{})}}function tu(r,s){return function(c,m){var k;if(c===n&&m===n)return s;if(c!==n&&(k=c),m!==n){if(k===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=Y0(c),m=Y0(m)),k=r(c,m)}return k}}function kl(r){return Pr(function(s){return s=Pt(s,Fn(Be())),tt(function(c){var m=this;return r(s,function(k){return On(k,m,c)})})})}function nu(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?vl(s,r):s;var m=vl(s,Va(r/gs(s)));return ps(s)?si(sr(m),0,r).join(""):m.slice(0,r)}function tA(r,s,c,m){var k=s&w,P=xo(r);function $(){for(var U=-1,z=arguments.length,se=-1,oe=m.length,ae=Q(oe+z),me=this&&this!==un&&this instanceof $?P:r;++se<oe;)ae[se]=m[se];for(;z--;)ae[se++]=arguments[++U];return On(me,k?c:this,ae)}return $}function hg(r){return function(s,c,m){return m&&typeof m!="number"&&bn(s,c,m)&&(c=m=n),s=jr(s),c===n?(c=s,s=0):c=jr(c),m=m===n?s<c?1:-1:jr(m),MS(s,c,m,r)}}function ru(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function dg(r,s,c,m,k,P,$,U,z,se){var oe=s&R,ae=oe?$:n,me=oe?n:$,Ce=oe?P:n,Re=oe?n:P;s|=oe?O:F,s&=~(oe?F:O),s&j||(s&=-4);var Ze=[r,s,k,Ce,ae,Re,me,U,z,se],Le=c.apply(n,Ze);return Rl(r)&&Cg(Le,Ze),Le.placeholder=m,_g(Le,r,s)}function Tl(r){var s=Zt[r];return function(c,m){if(c=Yn(c),m=m==null?0:hn(Ge(m),292),m&&_0(c)){var k=(wt(c)+"e").split("e"),P=s(k[0]+"e"+(+k[1]+m));return k=(wt(P)+"e").split("e"),+(k[0]+"e"+(+k[1]-m))}return s(c)}}var nA=bs&&1/Ba(new bs([,-0]))[1]==De?function(r){return new bs(r)}:Yl;function pg(r){return function(s){var c=dn(s);return c==Rt?il(s):c==vt?wE(s):fE(s,r(s))}}function Dr(r,s,c,m,k,P,$,U){var z=s&T;if(!z&&typeof r!="function")throw new Kn(u);var se=m?m.length:0;if(se||(s&=-97,m=k=n),$=$===n?$:en(Ge($),0),U=U===n?U:Ge(U),se-=k?k.length:0,s&F){var oe=m,ae=k;m=k=n}var me=z?n:Fl(r),Ce=[r,s,c,m,k,oe,ae,P,$,U];if(me&&mA(Ce,me),r=Ce[0],s=Ce[1],c=Ce[2],m=Ce[3],k=Ce[4],U=Ce[9]=Ce[9]===n?z?0:r.length:en(Ce[9]-se,0),!U&&s&(R|_)&&(s&=-25),!s||s==w)var Re=ZS(r,s,c);else s==R||s==_?Re=eA(r,s,U):(s==O||s==(w|O))&&!k.length?Re=tA(r,s,c,m):Re=eu.apply(n,Ce);var Ze=me?G0:Cg;return _g(Ze(Re,Ce),r,s)}function gg(r,s,c,m){return r===n||ar(r,ms[c])&&!xt.call(m,c)?s:r}function yg(r,s,c,m,k,P){return Nt(r)&&Nt(s)&&(P.set(s,r),Ya(r,s,n,yg,P),P.delete(s)),r}function rA(r){return Ao(r)?n:r}function mg(r,s,c,m,k,P){var $=c&S,U=r.length,z=s.length;if(U!=z&&!($&&z>U))return!1;var se=P.get(r),oe=P.get(s);if(se&&oe)return se==s&&oe==r;var ae=-1,me=!0,Ce=c&E?new ki:n;for(P.set(r,s),P.set(s,r);++ae<U;){var Re=r[ae],Ze=s[ae];if(m)var Le=$?m(Ze,Re,ae,s,r,P):m(Re,Ze,ae,r,s,P);if(Le!==n){if(Le)continue;me=!1;break}if(Ce){if(!Qc(s,function(it,at){if(!co(Ce,at)&&(Re===it||k(Re,it,c,m,P)))return Ce.push(at)})){me=!1;break}}else if(!(Re===Ze||k(Re,Ze,c,m,P))){me=!1;break}}return P.delete(r),P.delete(s),me}function iA(r,s,c,m,k,P,$){switch(c){case Ne:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case ke:return!(r.byteLength!=s.byteLength||!P(new Na(r),new Na(s)));case xe:case Oe:case Lt:return ar(+r,+s);case Pe:return r.name==s.name&&r.message==s.message;case gt:case ve:return r==s+"";case Rt:var U=il;case vt:var z=m&S;if(U||(U=Ba),r.size!=s.size&&!z)return!1;var se=$.get(r);if(se)return se==s;m|=E,$.set(r,s);var oe=mg(U(r),U(s),m,k,P,$);return $.delete(r),oe;case It:if(go)return go.call(r)==go.call(s)}return!1}function sA(r,s,c,m,k,P){var $=c&S,U=Il(r),z=U.length,se=Il(s),oe=se.length;if(z!=oe&&!$)return!1;for(var ae=z;ae--;){var me=U[ae];if(!($?me in s:xt.call(s,me)))return!1}var Ce=P.get(r),Re=P.get(s);if(Ce&&Re)return Ce==s&&Re==r;var Ze=!0;P.set(r,s),P.set(s,r);for(var Le=$;++ae<z;){me=U[ae];var it=r[me],at=s[me];if(m)var Pn=$?m(at,it,me,s,r,P):m(it,at,me,r,s,P);if(!(Pn===n?it===at||k(it,at,c,m,P):Pn)){Ze=!1;break}Le||(Le=me=="constructor")}if(Ze&&!Le){var wn=r.constructor,Rn=s.constructor;wn!=Rn&&"constructor"in r&&"constructor"in s&&!(typeof wn=="function"&&wn instanceof wn&&typeof Rn=="function"&&Rn instanceof Rn)&&(Ze=!1)}return P.delete(r),P.delete(s),Ze}function Pr(r){return jl(Sg(r,n,Bg),r+"")}function Il(r){return j0(r,rn,Dl)}function Ol(r){return j0(r,Cn,bg)}var Fl=Wa?function(r){return Wa.get(r)}:Yl;function iu(r){for(var s=r.name+"",c=ws[s],m=xt.call(ws,s)?c.length:0;m--;){var k=c[m],P=k.func;if(P==null||P==r)return k.name}return s}function Ss(r){var s=xt.call(D,"placeholder")?D:r;return s.placeholder}function Be(){var r=D.iteratee||Gl;return r=r===Gl?M0:r,arguments.length?r(arguments[0],arguments[1]):r}function su(r,s){var c=r.__data__;return dA(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Bl(r){for(var s=rn(r),c=s.length;c--;){var m=s[c],k=r[m];s[c]=[m,k,xg(k)]}return s}function Oi(r,s){var c=yE(r,s);return $0(c)?c:n}function oA(r){var s=xt.call(r,Ci),c=r[Ci];try{r[Ci]=n;var m=!0}catch{}var k=La.call(r);return m&&(s?r[Ci]=c:delete r[Ci]),k}var Dl=ol?function(r){return r==null?[]:(r=Et(r),Qr(ol(r),function(s){return A0.call(r,s)}))}:Xl,bg=ol?function(r){for(var s=[];r;)Zr(s,Dl(r)),r=$a(r);return s}:Xl,dn=mn;(al&&dn(new al(new ArrayBuffer(1)))!=Ne||fo&&dn(new fo)!=Rt||ul&&dn(ul.resolve())!=Te||bs&&dn(new bs)!=vt||ho&&dn(new ho)!=Xe)&&(dn=function(r){var s=mn(r),c=s==bt?r.constructor:n,m=c?Fi(c):"";if(m)switch(m){case VE:return Ne;case qE:return Rt;case WE:return Te;case KE:return vt;case HE:return Xe}return s});function aA(r,s,c){for(var m=-1,k=c.length;++m<k;){var P=c[m],$=P.size;switch(P.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=hn(s,r+$);break;case"takeRight":r=en(r,s-$);break}}return{start:r,end:s}}function uA(r){var s=r.match(yn);return s?s[1].split(M):[]}function wg(r,s,c){s=ii(s,r);for(var m=-1,k=s.length,P=!1;++m<k;){var $=wr(s[m]);if(!(P=r!=null&&c(r,$)))break;r=r[$]}return P||++m!=k?P:(k=r==null?0:r.length,!!k&&hu(k)&&Rr($,k)&&(qe(r)||Bi(r)))}function cA(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&xt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function vg(r){return typeof r.constructor=="function"&&!Eo(r)?vs($a(r)):{}}function lA(r,s,c){var m=r.constructor;switch(s){case ke:return _l(r);case xe:case Oe:return new m(+r);case Ne:return zS(r,c);case Wt:case I:case y:case b:case L:case q:case G:case ee:case Me:return ng(r,c);case Rt:return new m;case Lt:case ve:return new m(r);case gt:return GS(r);case vt:return new m;case It:return JS(r)}}function fA(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(so,`{
143
+ */Xo.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",g=1,v=2,C=4,S=1,E=2,w=1,T=2,j=4,R=8,_=16,O=32,F=64,B=128,W=256,J=512,fe=30,le="...",de=800,be=16,Se=1,pe=2,De=3,Re=1/0,Te=9007199254740991,Xe=17976931348623157e292,ve=NaN,ge=4294967295,Ke=ge-1,Y=ge>>>1,X=[["ary",B],["bind",w],["bindKey",T],["curry",R],["curryRight",_],["flip",J],["partial",O],["partialRight",F],["rearg",W]],re="[object Arguments]",_e="[object Array]",ze="[object AsyncFunction]",xe="[object Boolean]",Fe="[object Date]",Be="[object DOMException]",Le="[object Error]",_t="[object Function]",rn="[object GeneratorFunction]",Pt="[object Map]",Rt="[object Number]",Lt="[object Null]",wt="[object Object]",kn="[object Promise]",Ae="[object Proxy]",Ue="[object RegExp]",Qe="[object Set]",we="[object String]",pt="[object Symbol]",Wt="[object Undefined]",Et="[object WeakMap]",ht="[object WeakSet]",Ce="[object ArrayBuffer]",Oe="[object DataView]",Kt="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",L="[object Int32Array]",q="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",gt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Gr=/[&<>"']/g,xi=RegExp(st.source),as=RegExp(Gr.source),us=/<%-([\s\S]+?)%>/g,cs=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,no=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,rr=RegExp(Ir.source),Yr=/^\s+/,io=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,Qt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,Bt=/^(?:0|[1-9]\d*)$/,ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,ir=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",Si="\\u0300-\\u036f",oo="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Sa=Si+oo+ao,Aa="\\u2700-\\u27bf",Ca="a-z\\xdf-\\xf6\\xf8-\\xff",Vc="\\xac\\xb1\\xd7\\xf7",qc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wc="\\u2000-\\u206f",Kc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",In="A-Z\\xc0-\\xd6\\xd8-\\xde",ls="\\ufe0e\\ufe0f",uo=Vc+qc+Wc+Kc,fs="['’]",Hc="["+Ht+"]",Xr="["+uo+"]",hs="["+Sa+"]",_a="\\d+",ka="["+Aa+"]",Ta="["+Ca+"]",Ia="[^"+Ht+uo+_a+Aa+Ca+In+"]",p="\\ud83c[\\udffb-\\udfff]",A="(?:"+hs+"|"+p+")",N="[^"+Ht+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",he="["+In+"]",Ge="\\u200d",mt="(?:"+Ta+"|"+Ia+")",Zt="(?:"+he+"|"+Ia+")",zt="(?:"+fs+"(?:d|ll|m|re|s|t|ve))?",Zp="(?:"+fs+"(?:D|LL|M|RE|S|T|VE))?",e0=A+"?",t0="["+ls+"]?",Nx="(?:"+Ge+"(?:"+[N,K,ne].join("|")+")"+t0+e0+")*",$x="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+Nx,Ux="(?:"+[ka,K,ne].join("|")+")"+n0,Vx="(?:"+[N+hs+"?",hs,K,ne,Hc].join("|")+")",qx=RegExp(fs,"g"),Wx=RegExp(hs,"g"),zc=RegExp(p+"(?="+p+")|"+Vx+n0,"g"),Kx=RegExp([he+"?"+Ta+"+"+zt+"(?="+[Xr,he,"$"].join("|")+")",Zt+"+"+Zp+"(?="+[Xr,he+mt,"$"].join("|")+")",he+"?"+mt+"+"+zt,he+"+"+Zp,Mx,$x,_a,Ux].join("|"),"g"),Hx=RegExp("["+Ge+Ht+Sa+ls+"]"),zx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jx=-1,Ft={};Ft[Kt]=Ft[I]=Ft[y]=Ft[b]=Ft[L]=Ft[q]=Ft[G]=Ft[ee]=Ft[Me]=!0,Ft[re]=Ft[_e]=Ft[Ce]=Ft[xe]=Ft[Oe]=Ft[Fe]=Ft[Le]=Ft[_t]=Ft[Pt]=Ft[Rt]=Ft[wt]=Ft[Ue]=Ft[Qe]=Ft[we]=Ft[Et]=!1;var kt={};kt[re]=kt[_e]=kt[Ce]=kt[Oe]=kt[xe]=kt[Fe]=kt[Kt]=kt[I]=kt[y]=kt[b]=kt[L]=kt[Pt]=kt[Rt]=kt[wt]=kt[Ue]=kt[Qe]=kt[we]=kt[pt]=kt[q]=kt[G]=kt[ee]=kt[Me]=!0,kt[Le]=kt[_t]=kt[Et]=!1;var Yx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Xx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qx={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Zx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},eE=parseFloat,tE=parseInt,r0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,nE=typeof self=="object"&&self&&self.Object===Object&&self,un=r0||nE||Function("return this")(),Gc=t&&!t.nodeType&&t,Ai=Gc&&!0&&e&&!e.nodeType&&e,i0=Ai&&Ai.exports===Gc,Jc=i0&&r0.process,qn=function(){try{var H=Ai&&Ai.require&&Ai.require("util").types;return H||Jc&&Jc.binding&&Jc.binding("util")}catch{}}(),s0=qn&&qn.isArrayBuffer,o0=qn&&qn.isDate,a0=qn&&qn.isMap,u0=qn&&qn.isRegExp,c0=qn&&qn.isSet,l0=qn&&qn.isTypedArray;function On(H,te,Z){switch(Z.length){case 0:return H.call(te);case 1:return H.call(te,Z[0]);case 2:return H.call(te,Z[0],Z[1]);case 3:return H.call(te,Z[0],Z[1],Z[2])}return H.apply(te,Z)}function rE(H,te,Z,Ee){for(var Ve=-1,bt=H==null?0:H.length;++Ve<bt;){var en=H[Ve];te(Ee,en,Z(en),H)}return Ee}function Wn(H,te){for(var Z=-1,Ee=H==null?0:H.length;++Z<Ee&&te(H[Z],Z,H)!==!1;);return H}function iE(H,te){for(var Z=H==null?0:H.length;Z--&&te(H[Z],Z,H)!==!1;);return H}function f0(H,te){for(var Z=-1,Ee=H==null?0:H.length;++Z<Ee;)if(!te(H[Z],Z,H))return!1;return!0}function Qr(H,te){for(var Z=-1,Ee=H==null?0:H.length,Ve=0,bt=[];++Z<Ee;){var en=H[Z];te(en,Z,H)&&(bt[Ve++]=en)}return bt}function Oa(H,te){var Z=H==null?0:H.length;return!!Z&&ds(H,te,0)>-1}function Yc(H,te,Z){for(var Ee=-1,Ve=H==null?0:H.length;++Ee<Ve;)if(Z(te,H[Ee]))return!0;return!1}function Dt(H,te){for(var Z=-1,Ee=H==null?0:H.length,Ve=Array(Ee);++Z<Ee;)Ve[Z]=te(H[Z],Z,H);return Ve}function Zr(H,te){for(var Z=-1,Ee=te.length,Ve=H.length;++Z<Ee;)H[Ve+Z]=te[Z];return H}function Xc(H,te,Z,Ee){var Ve=-1,bt=H==null?0:H.length;for(Ee&&bt&&(Z=H[++Ve]);++Ve<bt;)Z=te(Z,H[Ve],Ve,H);return Z}function sE(H,te,Z,Ee){var Ve=H==null?0:H.length;for(Ee&&Ve&&(Z=H[--Ve]);Ve--;)Z=te(Z,H[Ve],Ve,H);return Z}function Qc(H,te){for(var Z=-1,Ee=H==null?0:H.length;++Z<Ee;)if(te(H[Z],Z,H))return!0;return!1}var oE=Zc("length");function aE(H){return H.split("")}function uE(H){return H.match(ce)||[]}function h0(H,te,Z){var Ee;return Z(H,function(Ve,bt,en){if(te(Ve,bt,en))return Ee=bt,!1}),Ee}function Fa(H,te,Z,Ee){for(var Ve=H.length,bt=Z+(Ee?1:-1);Ee?bt--:++bt<Ve;)if(te(H[bt],bt,H))return bt;return-1}function ds(H,te,Z){return te===te?vE(H,te,Z):Fa(H,d0,Z)}function cE(H,te,Z,Ee){for(var Ve=Z-1,bt=H.length;++Ve<bt;)if(Ee(H[Ve],te))return Ve;return-1}function d0(H){return H!==H}function p0(H,te){var Z=H==null?0:H.length;return Z?tl(H,te)/Z:ve}function Zc(H){return function(te){return te==null?n:te[H]}}function el(H){return function(te){return H==null?n:H[te]}}function g0(H,te,Z,Ee,Ve){return Ve(H,function(bt,en,St){Z=Ee?(Ee=!1,bt):te(Z,bt,en,St)}),Z}function lE(H,te){var Z=H.length;for(H.sort(te);Z--;)H[Z]=H[Z].value;return H}function tl(H,te){for(var Z,Ee=-1,Ve=H.length;++Ee<Ve;){var bt=te(H[Ee]);bt!==n&&(Z=Z===n?bt:Z+bt)}return Z}function nl(H,te){for(var Z=-1,Ee=Array(H);++Z<H;)Ee[Z]=te(Z);return Ee}function fE(H,te){return Dt(te,function(Z){return[Z,H[Z]]})}function y0(H){return H&&H.slice(0,v0(H)+1).replace(Yr,"")}function Fn(H){return function(te){return H(te)}}function rl(H,te){return Dt(te,function(Z){return H[Z]})}function co(H,te){return H.has(te)}function m0(H,te){for(var Z=-1,Ee=H.length;++Z<Ee&&ds(te,H[Z],0)>-1;);return Z}function b0(H,te){for(var Z=H.length;Z--&&ds(te,H[Z],0)>-1;);return Z}function hE(H,te){for(var Z=H.length,Ee=0;Z--;)H[Z]===te&&++Ee;return Ee}var dE=el(Yx),pE=el(Xx);function gE(H){return"\\"+Zx[H]}function yE(H,te){return H==null?n:H[te]}function ps(H){return Hx.test(H)}function mE(H){return zx.test(H)}function bE(H){for(var te,Z=[];!(te=H.next()).done;)Z.push(te.value);return Z}function il(H){var te=-1,Z=Array(H.size);return H.forEach(function(Ee,Ve){Z[++te]=[Ve,Ee]}),Z}function w0(H,te){return function(Z){return H(te(Z))}}function ei(H,te){for(var Z=-1,Ee=H.length,Ve=0,bt=[];++Z<Ee;){var en=H[Z];(en===te||en===d)&&(H[Z]=d,bt[Ve++]=Z)}return bt}function Ba(H){var te=-1,Z=Array(H.size);return H.forEach(function(Ee){Z[++te]=Ee}),Z}function wE(H){var te=-1,Z=Array(H.size);return H.forEach(function(Ee){Z[++te]=[Ee,Ee]}),Z}function vE(H,te,Z){for(var Ee=Z-1,Ve=H.length;++Ee<Ve;)if(H[Ee]===te)return Ee;return-1}function xE(H,te,Z){for(var Ee=Z+1;Ee--;)if(H[Ee]===te)return Ee;return Ee}function gs(H){return ps(H)?SE(H):oE(H)}function sr(H){return ps(H)?AE(H):aE(H)}function v0(H){for(var te=H.length;te--&&io.test(H.charAt(te)););return te}var EE=el(Qx);function SE(H){for(var te=zc.lastIndex=0;zc.test(H);)++te;return te}function AE(H){return H.match(zc)||[]}function CE(H){return H.match(Kx)||[]}var _E=function H(te){te=te==null?un:ys.defaults(un.Object(),te,ys.pick(un,Gx));var Z=te.Array,Ee=te.Date,Ve=te.Error,bt=te.Function,en=te.Math,St=te.Object,sl=te.RegExp,kE=te.String,Kn=te.TypeError,Da=Z.prototype,TE=bt.prototype,ms=St.prototype,Pa=te["__core-js_shared__"],Ra=TE.toString,xt=ms.hasOwnProperty,IE=0,x0=function(){var r=/[^.]+$/.exec(Pa&&Pa.keys&&Pa.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),La=ms.toString,OE=Ra.call(St),FE=un._,BE=sl("^"+Ra.call(xt).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=i0?te.Buffer:n,ti=te.Symbol,Na=te.Uint8Array,E0=ja?ja.allocUnsafe:n,$a=w0(St.getPrototypeOf,St),S0=St.create,A0=ms.propertyIsEnumerable,Ma=Da.splice,C0=ti?ti.isConcatSpreadable:n,lo=ti?ti.iterator:n,Ci=ti?ti.toStringTag:n,Ua=function(){try{var r=Oi(St,"defineProperty");return r({},"",{}),r}catch{}}(),DE=te.clearTimeout!==un.clearTimeout&&te.clearTimeout,PE=Ee&&Ee.now!==un.Date.now&&Ee.now,RE=te.setTimeout!==un.setTimeout&&te.setTimeout,Va=en.ceil,qa=en.floor,ol=St.getOwnPropertySymbols,LE=ja?ja.isBuffer:n,_0=te.isFinite,jE=Da.join,NE=w0(St.keys,St),tn=en.max,fn=en.min,$E=Ee.now,ME=te.parseInt,k0=en.random,UE=Da.reverse,al=Oi(te,"DataView"),fo=Oi(te,"Map"),ul=Oi(te,"Promise"),bs=Oi(te,"Set"),ho=Oi(te,"WeakMap"),po=Oi(St,"create"),Wa=ho&&new ho,ws={},VE=Fi(al),qE=Fi(fo),WE=Fi(ul),KE=Fi(bs),HE=Fi(ho),Ka=ti?ti.prototype:n,go=Ka?Ka.valueOf:n,T0=Ka?Ka.toString:n;function D(r){if(Nt(r)&&!We(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(xt.call(r,"__wrapped__"))return Ig(r)}return new Hn(r)}var vs=function(){function r(){}return function(s){if(!jt(s))return{};if(S0)return S0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ha(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:us,evaluate:cs,interpolate:Jr,variable:"",imports:{_:D}},D.prototype=Ha.prototype,D.prototype.constructor=D,Hn.prototype=vs(Ha.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ge,this.__views__=[]}function zE(){var r=new ot(this.__wrapped__);return r.__actions__=En(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=En(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=En(this.__views__),r}function GE(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function JE(){var r=this.__wrapped__.value(),s=this.__dir__,c=We(r),m=s<0,k=c?r.length:0,P=aA(0,k,this.__views__),$=P.start,U=P.end,z=U-$,se=m?U:$-1,oe=this.__iteratees__,ae=oe.length,me=0,ke=fn(z,this.__takeCount__);if(!c||!m&&k==z&&ke==z)return Q0(r,this.__actions__);var je=[];e:for(;z--&&me<ke;){se+=s;for(var et=-1,Ne=r[se];++et<ae;){var it=oe[et],at=it.iteratee,Pn=it.type,bn=at(Ne);if(Pn==pe)Ne=bn;else if(!bn){if(Pn==Se)continue e;break e}}je[me++]=Ne}return je}ot.prototype=vs(Ha.prototype),ot.prototype.constructor=ot;function _i(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function YE(){this.__data__=po?po(null):{},this.size=0}function XE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function QE(r){var s=this.__data__;if(po){var c=s[r];return c===f?n:c}return xt.call(s,r)?s[r]:n}function ZE(r){var s=this.__data__;return po?s[r]!==n:xt.call(s,r)}function eS(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=po&&s===n?f:s,this}_i.prototype.clear=YE,_i.prototype.delete=XE,_i.prototype.get=QE,_i.prototype.has=ZE,_i.prototype.set=eS;function Or(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function tS(){this.__data__=[],this.size=0}function nS(r){var s=this.__data__,c=za(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Ma.call(s,c,1),--this.size,!0}function rS(r){var s=this.__data__,c=za(s,r);return c<0?n:s[c][1]}function iS(r){return za(this.__data__,r)>-1}function sS(r,s){var c=this.__data__,m=za(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Or.prototype.clear=tS,Or.prototype.delete=nS,Or.prototype.get=rS,Or.prototype.has=iS,Or.prototype.set=sS;function Fr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function oS(){this.size=0,this.__data__={hash:new _i,map:new(fo||Or),string:new _i}}function aS(r){var s=su(this,r).delete(r);return this.size-=s?1:0,s}function uS(r){return su(this,r).get(r)}function cS(r){return su(this,r).has(r)}function lS(r,s){var c=su(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Fr.prototype.clear=oS,Fr.prototype.delete=aS,Fr.prototype.get=uS,Fr.prototype.has=cS,Fr.prototype.set=lS;function ki(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Fr;++s<c;)this.add(r[s])}function fS(r){return this.__data__.set(r,f),this}function hS(r){return this.__data__.has(r)}ki.prototype.add=ki.prototype.push=fS,ki.prototype.has=hS;function or(r){var s=this.__data__=new Or(r);this.size=s.size}function dS(){this.__data__=new Or,this.size=0}function pS(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function gS(r){return this.__data__.get(r)}function yS(r){return this.__data__.has(r)}function mS(r,s){var c=this.__data__;if(c instanceof Or){var m=c.__data__;if(!fo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Fr(m)}return c.set(r,s),this.size=c.size,this}or.prototype.clear=dS,or.prototype.delete=pS,or.prototype.get=gS,or.prototype.has=yS,or.prototype.set=mS;function I0(r,s){var c=We(r),m=!c&&Bi(r),k=!c&&!m&&oi(r),P=!c&&!m&&!k&&As(r),$=c||m||k||P,U=$?nl(r.length,kE):[],z=U.length;for(var se in r)(s||xt.call(r,se))&&!($&&(se=="length"||k&&(se=="offset"||se=="parent")||P&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Rr(se,z)))&&U.push(se);return U}function O0(r){var s=r.length;return s?r[wl(0,s-1)]:n}function bS(r,s){return ou(En(r),Ti(s,0,r.length))}function wS(r){return ou(En(r))}function cl(r,s,c){(c!==n&&!ar(r[s],c)||c===n&&!(s in r))&&Br(r,s,c)}function yo(r,s,c){var m=r[s];(!(xt.call(r,s)&&ar(m,c))||c===n&&!(s in r))&&Br(r,s,c)}function za(r,s){for(var c=r.length;c--;)if(ar(r[c][0],s))return c;return-1}function vS(r,s,c,m){return ni(r,function(k,P,$){s(m,k,c(k),$)}),m}function F0(r,s){return r&&br(s,sn(s),r)}function xS(r,s){return r&&br(s,An(s),r)}function Br(r,s,c){s=="__proto__"&&Ua?Ua(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ll(r,s){for(var c=-1,m=s.length,k=Z(m),P=r==null;++c<m;)k[c]=P?n:Wl(r,s[c]);return k}function Ti(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,k,P){var $,U=s&g,z=s&v,se=s&C;if(c&&($=k?c(r,m,k,P):c(r)),$!==n)return $;if(!jt(r))return r;var oe=We(r);if(oe){if($=cA(r),!U)return En(r,$)}else{var ae=hn(r),me=ae==_t||ae==rn;if(oi(r))return tg(r,U);if(ae==wt||ae==re||me&&!k){if($=z||me?{}:vg(r),!U)return z?QS(r,xS($,r)):XS(r,F0($,r))}else{if(!kt[ae])return k?r:{};$=lA(r,ae,U)}}P||(P=new or);var ke=P.get(r);if(ke)return ke;P.set(r,$),Jg(r)?r.forEach(function(Ne){$.add(zn(Ne,s,c,Ne,r,P))}):zg(r)&&r.forEach(function(Ne,it){$.set(it,zn(Ne,s,c,it,r,P))});var je=se?z?Ol:Il:z?An:sn,et=oe?n:je(r);return Wn(et||r,function(Ne,it){et&&(it=Ne,Ne=r[it]),yo($,it,zn(Ne,s,c,it,r,P))}),$}function ES(r){var s=sn(r);return function(c){return B0(c,r,s)}}function B0(r,s,c){var m=c.length;if(r==null)return!m;for(r=St(r);m--;){var k=c[m],P=s[k],$=r[k];if($===n&&!(k in r)||!P($))return!1}return!0}function D0(r,s,c){if(typeof r!="function")throw new Kn(u);return So(function(){r.apply(n,c)},s)}function mo(r,s,c,m){var k=-1,P=Oa,$=!0,U=r.length,z=[],se=s.length;if(!U)return z;c&&(s=Dt(s,Fn(c))),m?(P=Yc,$=!1):s.length>=o&&(P=co,$=!1,s=new ki(s));e:for(;++k<U;){var oe=r[k],ae=c==null?oe:c(oe);if(oe=m||oe!==0?oe:0,$&&ae===ae){for(var me=se;me--;)if(s[me]===ae)continue e;z.push(oe)}else P(s,ae,m)||z.push(oe)}return z}var ni=og(mr),P0=og(hl,!0);function SS(r,s){var c=!0;return ni(r,function(m,k,P){return c=!!s(m,k,P),c}),c}function Ga(r,s,c){for(var m=-1,k=r.length;++m<k;){var P=r[m],$=s(P);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=P}return z}function AS(r,s,c,m){var k=r.length;for(c=Je(c),c<0&&(c=-c>k?0:k+c),m=m===n||m>k?k:Je(m),m<0&&(m+=k),m=c>m?0:Xg(m);c<m;)r[c++]=s;return r}function R0(r,s){var c=[];return ni(r,function(m,k,P){s(m,k,P)&&c.push(m)}),c}function cn(r,s,c,m,k){var P=-1,$=r.length;for(c||(c=hA),k||(k=[]);++P<$;){var U=r[P];s>0&&c(U)?s>1?cn(U,s-1,c,m,k):Zr(k,U):m||(k[k.length]=U)}return k}var fl=ag(),L0=ag(!0);function mr(r,s){return r&&fl(r,s,sn)}function hl(r,s){return r&&L0(r,s,sn)}function Ja(r,s){return Qr(s,function(c){return Lr(r[c])})}function Ii(r,s){s=ii(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[wr(s[c++])];return c&&c==m?r:n}function j0(r,s,c){var m=s(r);return We(r)?m:Zr(m,c(r))}function yn(r){return r==null?r===n?Wt:Lt:Ci&&Ci in St(r)?oA(r):wA(r)}function dl(r,s){return r>s}function CS(r,s){return r!=null&&xt.call(r,s)}function _S(r,s){return r!=null&&s in St(r)}function kS(r,s,c){return r>=fn(s,c)&&r<tn(s,c)}function pl(r,s,c){for(var m=c?Yc:Oa,k=r[0].length,P=r.length,$=P,U=Z(P),z=1/0,se=[];$--;){var oe=r[$];$&&s&&(oe=Dt(oe,Fn(s))),z=fn(oe.length,z),U[$]=!c&&(s||k>=120&&oe.length>=120)?new ki($&&oe):n}oe=r[0];var ae=-1,me=U[0];e:for(;++ae<k&&se.length<z;){var ke=oe[ae],je=s?s(ke):ke;if(ke=c||ke!==0?ke:0,!(me?co(me,je):m(se,je,c))){for($=P;--$;){var et=U[$];if(!(et?co(et,je):m(r[$],je,c)))continue e}me&&me.push(je),se.push(ke)}}return se}function TS(r,s,c,m){return mr(r,function(k,P,$){s(m,c(k),P,$)}),m}function bo(r,s,c){s=ii(s,r),r=Ag(r,s);var m=r==null?r:r[wr(Jn(s))];return m==null?n:On(m,r,c)}function N0(r){return Nt(r)&&yn(r)==re}function IS(r){return Nt(r)&&yn(r)==Ce}function OS(r){return Nt(r)&&yn(r)==Fe}function wo(r,s,c,m,k){return r===s?!0:r==null||s==null||!Nt(r)&&!Nt(s)?r!==r&&s!==s:FS(r,s,c,m,wo,k)}function FS(r,s,c,m,k,P){var $=We(r),U=We(s),z=$?_e:hn(r),se=U?_e:hn(s);z=z==re?wt:z,se=se==re?wt:se;var oe=z==wt,ae=se==wt,me=z==se;if(me&&oi(r)){if(!oi(s))return!1;$=!0,oe=!1}if(me&&!oe)return P||(P=new or),$||As(r)?mg(r,s,c,m,k,P):iA(r,s,z,c,m,k,P);if(!(c&S)){var ke=oe&&xt.call(r,"__wrapped__"),je=ae&&xt.call(s,"__wrapped__");if(ke||je){var et=ke?r.value():r,Ne=je?s.value():s;return P||(P=new or),k(et,Ne,c,m,P)}}return me?(P||(P=new or),sA(r,s,c,m,k,P)):!1}function BS(r){return Nt(r)&&hn(r)==Pt}function gl(r,s,c,m){var k=c.length,P=k,$=!m;if(r==null)return!P;for(r=St(r);k--;){var U=c[k];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++k<P;){U=c[k];var z=U[0],se=r[z],oe=U[1];if($&&U[2]){if(se===n&&!(z in r))return!1}else{var ae=new or;if(m)var me=m(se,oe,z,r,s,ae);if(!(me===n?wo(oe,se,S|E,m,ae):me))return!1}}return!0}function $0(r){if(!jt(r)||pA(r))return!1;var s=Lr(r)?BE:Qt;return s.test(Fi(r))}function DS(r){return Nt(r)&&yn(r)==Ue}function PS(r){return Nt(r)&&hn(r)==Qe}function RS(r){return Nt(r)&&hu(r.length)&&!!Ft[yn(r)]}function M0(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?We(r)?q0(r[0],r[1]):V0(r):u1(r)}function yl(r){if(!Eo(r))return NE(r);var s=[];for(var c in St(r))xt.call(r,c)&&c!="constructor"&&s.push(c);return s}function LS(r){if(!jt(r))return bA(r);var s=Eo(r),c=[];for(var m in r)m=="constructor"&&(s||!xt.call(r,m))||c.push(m);return c}function ml(r,s){return r<s}function U0(r,s){var c=-1,m=Sn(r)?Z(r.length):[];return ni(r,function(k,P,$){m[++c]=s(k,P,$)}),m}function V0(r){var s=Bl(r);return s.length==1&&s[0][2]?Eg(s[0][0],s[0][1]):function(c){return c===r||gl(c,r,s)}}function q0(r,s){return Pl(r)&&xg(s)?Eg(wr(r),s):function(c){var m=Wl(c,r);return m===n&&m===s?Kl(c,r):wo(s,m,S|E)}}function Ya(r,s,c,m,k){r!==s&&fl(s,function(P,$){if(k||(k=new or),jt(P))jS(r,s,$,c,Ya,m,k);else{var U=m?m(Ll(r,$),P,$+"",r,s,k):n;U===n&&(U=P),cl(r,$,U)}},An)}function jS(r,s,c,m,k,P,$){var U=Ll(r,c),z=Ll(s,c),se=$.get(z);if(se){cl(r,c,se);return}var oe=P?P(U,z,c+"",r,s,$):n,ae=oe===n;if(ae){var me=We(z),ke=!me&&oi(z),je=!me&&!ke&&As(z);oe=z,me||ke||je?We(U)?oe=U:Gt(U)?oe=En(U):ke?(ae=!1,oe=tg(z,!0)):je?(ae=!1,oe=ng(z,!0)):oe=[]:Ao(z)||Bi(z)?(oe=U,Bi(U)?oe=Qg(U):(!jt(U)||Lr(U))&&(oe=vg(z))):ae=!1}ae&&($.set(z,oe),k(oe,z,m,P,$),$.delete(z)),cl(r,c,oe)}function W0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Rr(s,c)?r[s]:n}function K0(r,s,c){s.length?s=Dt(s,function(P){return We(P)?function($){return Ii($,P.length===1?P[0]:P)}:P}):s=[Cn];var m=-1;s=Dt(s,Fn(Pe()));var k=U0(r,function(P,$,U){var z=Dt(s,function(se){return se(P)});return{criteria:z,index:++m,value:P}});return lE(k,function(P,$){return YS(P,$,c)})}function NS(r,s){return H0(r,s,function(c,m){return Kl(r,m)})}function H0(r,s,c){for(var m=-1,k=s.length,P={};++m<k;){var $=s[m],U=Ii(r,$);c(U,$)&&vo(P,ii($,r),U)}return P}function $S(r){return function(s){return Ii(s,r)}}function bl(r,s,c,m){var k=m?cE:ds,P=-1,$=s.length,U=r;for(r===s&&(s=En(s)),c&&(U=Dt(r,Fn(c)));++P<$;)for(var z=0,se=s[P],oe=c?c(se):se;(z=k(U,oe,z,m))>-1;)U!==r&&Ma.call(U,z,1),Ma.call(r,z,1);return r}function z0(r,s){for(var c=r?s.length:0,m=c-1;c--;){var k=s[c];if(c==m||k!==P){var P=k;Rr(k)?Ma.call(r,k,1):El(r,k)}}return r}function wl(r,s){return r+qa(k0()*(s-r+1))}function MS(r,s,c,m){for(var k=-1,P=tn(Va((s-r)/(c||1)),0),$=Z(P);P--;)$[m?P:++k]=r,r+=c;return $}function vl(r,s){var c="";if(!r||s<1||s>Te)return c;do s%2&&(c+=r),s=qa(s/2),s&&(r+=r);while(s);return c}function tt(r,s){return jl(Sg(r,s,Cn),r+"")}function US(r){return O0(Cs(r))}function VS(r,s){var c=Cs(r);return ou(c,Ti(s,0,c.length))}function vo(r,s,c,m){if(!jt(r))return r;s=ii(s,r);for(var k=-1,P=s.length,$=P-1,U=r;U!=null&&++k<P;){var z=wr(s[k]),se=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(k!=$){var oe=U[z];se=m?m(oe,z,U):n,se===n&&(se=jt(oe)?oe:Rr(s[k+1])?[]:{})}yo(U,z,se),U=U[z]}return r}var G0=Wa?function(r,s){return Wa.set(r,s),r}:Cn,qS=Ua?function(r,s){return Ua(r,"toString",{configurable:!0,enumerable:!1,value:zl(s),writable:!0})}:Cn;function WS(r){return ou(Cs(r))}function Gn(r,s,c){var m=-1,k=r.length;s<0&&(s=-s>k?0:k+s),c=c>k?k:c,c<0&&(c+=k),k=s>c?0:c-s>>>0,s>>>=0;for(var P=Z(k);++m<k;)P[m]=r[m+s];return P}function KS(r,s){var c;return ni(r,function(m,k,P){return c=s(m,k,P),!c}),!!c}function Xa(r,s,c){var m=0,k=r==null?m:r.length;if(typeof s=="number"&&s===s&&k<=Y){for(;m<k;){var P=m+k>>>1,$=r[P];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=P+1:k=P}return k}return xl(r,s,Cn,c)}function xl(r,s,c,m){var k=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var $=s!==s,U=s===null,z=Dn(s),se=s===n;k<P;){var oe=qa((k+P)/2),ae=c(r[oe]),me=ae!==n,ke=ae===null,je=ae===ae,et=Dn(ae);if($)var Ne=m||je;else se?Ne=je&&(m||me):U?Ne=je&&me&&(m||!ke):z?Ne=je&&me&&!ke&&(m||!et):ke||et?Ne=!1:Ne=m?ae<=s:ae<s;Ne?k=oe+1:P=oe}return fn(P,Ke)}function J0(r,s){for(var c=-1,m=r.length,k=0,P=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ar(U,z)){var z=U;P[k++]=$===0?0:$}}return P}function Y0(r){return typeof r=="number"?r:Dn(r)?ve:+r}function Bn(r){if(typeof r=="string")return r;if(We(r))return Dt(r,Bn)+"";if(Dn(r))return T0?T0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ri(r,s,c){var m=-1,k=Oa,P=r.length,$=!0,U=[],z=U;if(c)$=!1,k=Yc;else if(P>=o){var se=s?null:nA(r);if(se)return Ba(se);$=!1,k=co,z=new ki}else z=s?[]:U;e:for(;++m<P;){var oe=r[m],ae=s?s(oe):oe;if(oe=c||oe!==0?oe:0,$&&ae===ae){for(var me=z.length;me--;)if(z[me]===ae)continue e;s&&z.push(ae),U.push(oe)}else k(z,ae,c)||(z!==U&&z.push(ae),U.push(oe))}return U}function El(r,s){return s=ii(s,r),r=Ag(r,s),r==null||delete r[wr(Jn(s))]}function X0(r,s,c,m){return vo(r,s,c(Ii(r,s)),m)}function Qa(r,s,c,m){for(var k=r.length,P=m?k:-1;(m?P--:++P<k)&&s(r[P],P,r););return c?Gn(r,m?0:P,m?P+1:k):Gn(r,m?P+1:0,m?k:P)}function Q0(r,s){var c=r;return c instanceof ot&&(c=c.value()),Xc(s,function(m,k){return k.func.apply(k.thisArg,Zr([m],k.args))},c)}function Sl(r,s,c){var m=r.length;if(m<2)return m?ri(r[0]):[];for(var k=-1,P=Z(m);++k<m;)for(var $=r[k],U=-1;++U<m;)U!=k&&(P[k]=mo(P[k]||$,r[U],s,c));return ri(cn(P,1),s,c)}function Z0(r,s,c){for(var m=-1,k=r.length,P=s.length,$={};++m<k;){var U=m<P?s[m]:n;c($,r[m],U)}return $}function Al(r){return Gt(r)?r:[]}function Cl(r){return typeof r=="function"?r:Cn}function ii(r,s){return We(r)?r:Pl(r,s)?[r]:Tg(vt(r))}var HS=tt;function si(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var eg=DE||function(r){return un.clearTimeout(r)};function tg(r,s){if(s)return r.slice();var c=r.length,m=E0?E0(c):new r.constructor(c);return r.copy(m),m}function _l(r){var s=new r.constructor(r.byteLength);return new Na(s).set(new Na(r)),s}function zS(r,s){var c=s?_l(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function GS(r){var s=new r.constructor(r.source,lt.exec(r));return s.lastIndex=r.lastIndex,s}function JS(r){return go?St(go.call(r)):{}}function ng(r,s){var c=s?_l(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function rg(r,s){if(r!==s){var c=r!==n,m=r===null,k=r===r,P=Dn(r),$=s!==n,U=s===null,z=s===s,se=Dn(s);if(!U&&!se&&!P&&r>s||P&&$&&z&&!U&&!se||m&&$&&z||!c&&z||!k)return 1;if(!m&&!P&&!se&&r<s||se&&c&&k&&!m&&!P||U&&c&&k||!$&&k||!z)return-1}return 0}function YS(r,s,c){for(var m=-1,k=r.criteria,P=s.criteria,$=k.length,U=c.length;++m<$;){var z=rg(k[m],P[m]);if(z){if(m>=U)return z;var se=c[m];return z*(se=="desc"?-1:1)}}return r.index-s.index}function ig(r,s,c,m){for(var k=-1,P=r.length,$=c.length,U=-1,z=s.length,se=tn(P-$,0),oe=Z(z+se),ae=!m;++U<z;)oe[U]=s[U];for(;++k<$;)(ae||k<P)&&(oe[c[k]]=r[k]);for(;se--;)oe[U++]=r[k++];return oe}function sg(r,s,c,m){for(var k=-1,P=r.length,$=-1,U=c.length,z=-1,se=s.length,oe=tn(P-U,0),ae=Z(oe+se),me=!m;++k<oe;)ae[k]=r[k];for(var ke=k;++z<se;)ae[ke+z]=s[z];for(;++$<U;)(me||k<P)&&(ae[ke+c[$]]=r[k++]);return ae}function En(r,s){var c=-1,m=r.length;for(s||(s=Z(m));++c<m;)s[c]=r[c];return s}function br(r,s,c,m){var k=!c;c||(c={});for(var P=-1,$=s.length;++P<$;){var U=s[P],z=m?m(c[U],r[U],U,c,r):n;z===n&&(z=r[U]),k?Br(c,U,z):yo(c,U,z)}return c}function XS(r,s){return br(r,Dl(r),s)}function QS(r,s){return br(r,bg(r),s)}function Za(r,s){return function(c,m){var k=We(c)?rE:vS,P=s?s():{};return k(c,r,Pe(m,2),P)}}function xs(r){return tt(function(s,c){var m=-1,k=c.length,P=k>1?c[k-1]:n,$=k>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(k--,P):n,$&&mn(c[0],c[1],$)&&(P=k<3?n:P,k=1),s=St(s);++m<k;){var U=c[m];U&&r(s,U,m,P)}return s})}function og(r,s){return function(c,m){if(c==null)return c;if(!Sn(c))return r(c,m);for(var k=c.length,P=s?k:-1,$=St(c);(s?P--:++P<k)&&m($[P],P,$)!==!1;);return c}}function ag(r){return function(s,c,m){for(var k=-1,P=St(s),$=m(s),U=$.length;U--;){var z=$[r?U:++k];if(c(P[z],z,P)===!1)break}return s}}function ZS(r,s,c){var m=s&w,k=xo(r);function P(){var $=this&&this!==un&&this instanceof P?k:r;return $.apply(m?c:this,arguments)}return P}function ug(r){return function(s){s=vt(s);var c=ps(s)?sr(s):n,m=c?c[0]:s.charAt(0),k=c?si(c,1).join(""):s.slice(1);return m[r]()+k}}function Es(r){return function(s){return Xc(o1(s1(s).replace(qx,"")),r,"")}}function xo(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=vs(r.prototype),m=r.apply(c,s);return jt(m)?m:c}}function eA(r,s,c){var m=xo(r);function k(){for(var P=arguments.length,$=Z(P),U=P,z=Ss(k);U--;)$[U]=arguments[U];var se=P<3&&$[0]!==z&&$[P-1]!==z?[]:ei($,z);if(P-=se.length,P<c)return dg(r,s,eu,k.placeholder,n,$,se,n,n,c-P);var oe=this&&this!==un&&this instanceof k?m:r;return On(oe,this,$)}return k}function cg(r){return function(s,c,m){var k=St(s);if(!Sn(s)){var P=Pe(c,3);s=sn(s),c=function(U){return P(k[U],U,k)}}var $=r(s,c,m);return $>-1?k[P?s[$]:$]:n}}function lg(r){return Pr(function(s){var c=s.length,m=c,k=Hn.prototype.thru;for(r&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new Kn(u);if(k&&!$&&iu(P)=="wrapper")var $=new Hn([],!0)}for(m=$?m:c;++m<c;){P=s[m];var U=iu(P),z=U=="wrapper"?Fl(P):n;z&&Rl(z[0])&&z[1]==(B|R|O|W)&&!z[4].length&&z[9]==1?$=$[iu(z[0])].apply($,z[3]):$=P.length==1&&Rl(P)?$[U]():$.thru(P)}return function(){var se=arguments,oe=se[0];if($&&se.length==1&&We(oe))return $.plant(oe).value();for(var ae=0,me=c?s[ae].apply(this,se):oe;++ae<c;)me=s[ae].call(this,me);return me}})}function eu(r,s,c,m,k,P,$,U,z,se){var oe=s&B,ae=s&w,me=s&T,ke=s&(R|_),je=s&J,et=me?n:xo(r);function Ne(){for(var it=arguments.length,at=Z(it),Pn=it;Pn--;)at[Pn]=arguments[Pn];if(ke)var bn=Ss(Ne),Rn=hE(at,bn);if(m&&(at=ig(at,m,k,ke)),P&&(at=sg(at,P,$,ke)),it-=Rn,ke&&it<se){var Jt=ei(at,bn);return dg(r,s,eu,Ne.placeholder,c,at,Jt,U,z,se-it)}var ur=ae?c:this,Nr=me?ur[r]:r;return it=at.length,U?at=vA(at,U):je&&it>1&&at.reverse(),oe&&z<it&&(at.length=z),this&&this!==un&&this instanceof Ne&&(Nr=et||xo(Nr)),Nr.apply(ur,at)}return Ne}function fg(r,s){return function(c,m){return TS(c,r,s(m),{})}}function tu(r,s){return function(c,m){var k;if(c===n&&m===n)return s;if(c!==n&&(k=c),m!==n){if(k===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=Y0(c),m=Y0(m)),k=r(c,m)}return k}}function kl(r){return Pr(function(s){return s=Dt(s,Fn(Pe())),tt(function(c){var m=this;return r(s,function(k){return On(k,m,c)})})})}function nu(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?vl(s,r):s;var m=vl(s,Va(r/gs(s)));return ps(s)?si(sr(m),0,r).join(""):m.slice(0,r)}function tA(r,s,c,m){var k=s&w,P=xo(r);function $(){for(var U=-1,z=arguments.length,se=-1,oe=m.length,ae=Z(oe+z),me=this&&this!==un&&this instanceof $?P:r;++se<oe;)ae[se]=m[se];for(;z--;)ae[se++]=arguments[++U];return On(me,k?c:this,ae)}return $}function hg(r){return function(s,c,m){return m&&typeof m!="number"&&mn(s,c,m)&&(c=m=n),s=jr(s),c===n?(c=s,s=0):c=jr(c),m=m===n?s<c?1:-1:jr(m),MS(s,c,m,r)}}function ru(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function dg(r,s,c,m,k,P,$,U,z,se){var oe=s&R,ae=oe?$:n,me=oe?n:$,ke=oe?P:n,je=oe?n:P;s|=oe?O:F,s&=~(oe?F:O),s&j||(s&=-4);var et=[r,s,k,ke,ae,je,me,U,z,se],Ne=c.apply(n,et);return Rl(r)&&Cg(Ne,et),Ne.placeholder=m,_g(Ne,r,s)}function Tl(r){var s=en[r];return function(c,m){if(c=Yn(c),m=m==null?0:fn(Je(m),292),m&&_0(c)){var k=(vt(c)+"e").split("e"),P=s(k[0]+"e"+(+k[1]+m));return k=(vt(P)+"e").split("e"),+(k[0]+"e"+(+k[1]-m))}return s(c)}}var nA=bs&&1/Ba(new bs([,-0]))[1]==Re?function(r){return new bs(r)}:Yl;function pg(r){return function(s){var c=hn(s);return c==Pt?il(s):c==Qe?wE(s):fE(s,r(s))}}function Dr(r,s,c,m,k,P,$,U){var z=s&T;if(!z&&typeof r!="function")throw new Kn(u);var se=m?m.length:0;if(se||(s&=-97,m=k=n),$=$===n?$:tn(Je($),0),U=U===n?U:Je(U),se-=k?k.length:0,s&F){var oe=m,ae=k;m=k=n}var me=z?n:Fl(r),ke=[r,s,c,m,k,oe,ae,P,$,U];if(me&&mA(ke,me),r=ke[0],s=ke[1],c=ke[2],m=ke[3],k=ke[4],U=ke[9]=ke[9]===n?z?0:r.length:tn(ke[9]-se,0),!U&&s&(R|_)&&(s&=-25),!s||s==w)var je=ZS(r,s,c);else s==R||s==_?je=eA(r,s,U):(s==O||s==(w|O))&&!k.length?je=tA(r,s,c,m):je=eu.apply(n,ke);var et=me?G0:Cg;return _g(et(je,ke),r,s)}function gg(r,s,c,m){return r===n||ar(r,ms[c])&&!xt.call(m,c)?s:r}function yg(r,s,c,m,k,P){return jt(r)&&jt(s)&&(P.set(s,r),Ya(r,s,n,yg,P),P.delete(s)),r}function rA(r){return Ao(r)?n:r}function mg(r,s,c,m,k,P){var $=c&S,U=r.length,z=s.length;if(U!=z&&!($&&z>U))return!1;var se=P.get(r),oe=P.get(s);if(se&&oe)return se==s&&oe==r;var ae=-1,me=!0,ke=c&E?new ki:n;for(P.set(r,s),P.set(s,r);++ae<U;){var je=r[ae],et=s[ae];if(m)var Ne=$?m(et,je,ae,s,r,P):m(je,et,ae,r,s,P);if(Ne!==n){if(Ne)continue;me=!1;break}if(ke){if(!Qc(s,function(it,at){if(!co(ke,at)&&(je===it||k(je,it,c,m,P)))return ke.push(at)})){me=!1;break}}else if(!(je===et||k(je,et,c,m,P))){me=!1;break}}return P.delete(r),P.delete(s),me}function iA(r,s,c,m,k,P,$){switch(c){case Oe:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case Ce:return!(r.byteLength!=s.byteLength||!P(new Na(r),new Na(s)));case xe:case Fe:case Rt:return ar(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case Ue:case we:return r==s+"";case Pt:var U=il;case Qe:var z=m&S;if(U||(U=Ba),r.size!=s.size&&!z)return!1;var se=$.get(r);if(se)return se==s;m|=E,$.set(r,s);var oe=mg(U(r),U(s),m,k,P,$);return $.delete(r),oe;case pt:if(go)return go.call(r)==go.call(s)}return!1}function sA(r,s,c,m,k,P){var $=c&S,U=Il(r),z=U.length,se=Il(s),oe=se.length;if(z!=oe&&!$)return!1;for(var ae=z;ae--;){var me=U[ae];if(!($?me in s:xt.call(s,me)))return!1}var ke=P.get(r),je=P.get(s);if(ke&&je)return ke==s&&je==r;var et=!0;P.set(r,s),P.set(s,r);for(var Ne=$;++ae<z;){me=U[ae];var it=r[me],at=s[me];if(m)var Pn=$?m(at,it,me,s,r,P):m(it,at,me,r,s,P);if(!(Pn===n?it===at||k(it,at,c,m,P):Pn)){et=!1;break}Ne||(Ne=me=="constructor")}if(et&&!Ne){var bn=r.constructor,Rn=s.constructor;bn!=Rn&&"constructor"in r&&"constructor"in s&&!(typeof bn=="function"&&bn instanceof bn&&typeof Rn=="function"&&Rn instanceof Rn)&&(et=!1)}return P.delete(r),P.delete(s),et}function Pr(r){return jl(Sg(r,n,Bg),r+"")}function Il(r){return j0(r,sn,Dl)}function Ol(r){return j0(r,An,bg)}var Fl=Wa?function(r){return Wa.get(r)}:Yl;function iu(r){for(var s=r.name+"",c=ws[s],m=xt.call(ws,s)?c.length:0;m--;){var k=c[m],P=k.func;if(P==null||P==r)return k.name}return s}function Ss(r){var s=xt.call(D,"placeholder")?D:r;return s.placeholder}function Pe(){var r=D.iteratee||Gl;return r=r===Gl?M0:r,arguments.length?r(arguments[0],arguments[1]):r}function su(r,s){var c=r.__data__;return dA(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Bl(r){for(var s=sn(r),c=s.length;c--;){var m=s[c],k=r[m];s[c]=[m,k,xg(k)]}return s}function Oi(r,s){var c=yE(r,s);return $0(c)?c:n}function oA(r){var s=xt.call(r,Ci),c=r[Ci];try{r[Ci]=n;var m=!0}catch{}var k=La.call(r);return m&&(s?r[Ci]=c:delete r[Ci]),k}var Dl=ol?function(r){return r==null?[]:(r=St(r),Qr(ol(r),function(s){return A0.call(r,s)}))}:Xl,bg=ol?function(r){for(var s=[];r;)Zr(s,Dl(r)),r=$a(r);return s}:Xl,hn=yn;(al&&hn(new al(new ArrayBuffer(1)))!=Oe||fo&&hn(new fo)!=Pt||ul&&hn(ul.resolve())!=kn||bs&&hn(new bs)!=Qe||ho&&hn(new ho)!=Et)&&(hn=function(r){var s=yn(r),c=s==wt?r.constructor:n,m=c?Fi(c):"";if(m)switch(m){case VE:return Oe;case qE:return Pt;case WE:return kn;case KE:return Qe;case HE:return Et}return s});function aA(r,s,c){for(var m=-1,k=c.length;++m<k;){var P=c[m],$=P.size;switch(P.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=fn(s,r+$);break;case"takeRight":r=tn(r,s-$);break}}return{start:r,end:s}}function uA(r){var s=r.match(gn);return s?s[1].split(M):[]}function wg(r,s,c){s=ii(s,r);for(var m=-1,k=s.length,P=!1;++m<k;){var $=wr(s[m]);if(!(P=r!=null&&c(r,$)))break;r=r[$]}return P||++m!=k?P:(k=r==null?0:r.length,!!k&&hu(k)&&Rr($,k)&&(We(r)||Bi(r)))}function cA(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&xt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function vg(r){return typeof r.constructor=="function"&&!Eo(r)?vs($a(r)):{}}function lA(r,s,c){var m=r.constructor;switch(s){case Ce:return _l(r);case xe:case Fe:return new m(+r);case Oe:return zS(r,c);case Kt:case I:case y:case b:case L:case q:case G:case ee:case Me:return ng(r,c);case Pt:return new m;case Rt:case we:return new m(r);case Ue:return GS(r);case Qe:return new m;case pt:return JS(r)}}function fA(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(so,`{
144
144
  /* [wrapped with `+s+`] */
145
- `)}function hA(r){return qe(r)||Bi(r)||!!(C0&&r&&r[C0])}function Rr(r,s){var c=typeof r;return s=s??_e,!!s&&(c=="number"||c!="symbol"&&Dt.test(r))&&r>-1&&r%1==0&&r<s}function bn(r,s,c){if(!Nt(c))return!1;var m=typeof s;return(m=="number"?An(c)&&Rr(s,c.length):m=="string"&&s in c)?ar(c[s],r):!1}function Pl(r,s){if(qe(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:no.test(r)||!Ei.test(r)||s!=null&&r in Et(s)}function dA(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Rl(r){var s=iu(r),c=D[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Fl(c);return!!m&&r===m[0]}function pA(r){return!!x0&&x0 in r}var gA=Pa?Lr:Ql;function Eo(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ms;return r===c}function xg(r){return r===r&&!Nt(r)}function Eg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in Et(c))}}function yA(r){var s=lu(r,function(m){return c.size===h&&c.clear(),m}),c=s.cache;return s}function mA(r,s){var c=r[1],m=s[1],k=c|m,P=k<(w|T|B),$=m==B&&c==R||m==B&&c==W&&r[7].length<=s[8]||m==(B|W)&&s[7].length<=s[8]&&c==R;if(!(P||$))return r;m&w&&(r[2]=s[2],k|=c&w?0:j);var U=s[3];if(U){var z=r[3];r[3]=z?ig(z,U,s[4]):U,r[4]=z?ei(r[3],d):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?sg(z,U,s[6]):U,r[6]=z?ei(r[5],d):s[6]),U=s[7],U&&(r[7]=U),m&B&&(r[8]=r[8]==null?s[8]:hn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=k,r}function bA(r){var s=[];if(r!=null)for(var c in Et(r))s.push(c);return s}function wA(r){return La.call(r)}function Sg(r,s,c){return s=en(s===n?r.length-1:s,0),function(){for(var m=arguments,k=-1,P=en(m.length-s,0),$=Q(P);++k<P;)$[k]=m[s+k];k=-1;for(var U=Q(s+1);++k<s;)U[k]=m[k];return U[s]=c($),On(r,this,U)}}function Ag(r,s){return s.length<2?r:Ii(r,Gn(s,0,-1))}function vA(r,s){for(var c=r.length,m=hn(s.length,c),k=Sn(r);m--;){var P=s[m];r[m]=Rr(P,c)?k[P]:n}return r}function Ll(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Cg=kg(G0),So=RE||function(r,s){return un.setTimeout(r,s)},jl=kg(qS);function _g(r,s,c){var m=s+"";return jl(r,fA(m,xA(uA(m),c)))}function kg(r){var s=0,c=0;return function(){var m=$E(),k=be-(m-c);if(c=m,k>0){if(++s>=de)return arguments[0]}else s=0;return r.apply(n,arguments)}}function ou(r,s){var c=-1,m=r.length,k=m-1;for(s=s===n?m:s;++c<s;){var P=wl(c,k),$=r[P];r[P]=r[c],r[c]=$}return r.length=s,r}var Tg=yA(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ro,function(c,m,k,P){s.push(k?P.replace(Ie,"$1"):m||c)}),s});function wr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Fi(r){if(r!=null){try{return Ra.call(r)}catch{}try{return r+""}catch{}}return""}function xA(r,s){return Wn(X,function(c){var m="_."+c[0];s&c[1]&&!Oa(r,m)&&r.push(m)}),r.sort()}function Ig(r){if(r instanceof ot)return r.clone();var s=new Hn(r.__wrapped__,r.__chain__);return s.__actions__=Sn(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function EA(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=en(Ge(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var k=0,P=0,$=Q(Va(m/s));k<m;)$[P++]=Gn(r,k,k+=s);return $}function SA(r){for(var s=-1,c=r==null?0:r.length,m=0,k=[];++s<c;){var P=r[s];P&&(k[m++]=P)}return k}function AA(){var r=arguments.length;if(!r)return[];for(var s=Q(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Zr(qe(c)?Sn(c):[c],cn(s,1))}var CA=tt(function(r,s){return zt(r)?mo(r,cn(s,1,zt,!0)):[]}),_A=tt(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?mo(r,cn(s,1,zt,!0),Be(c,2)):[]}),kA=tt(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?mo(r,cn(s,1,zt,!0),n,c):[]});function TA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),Gn(r,s<0?0:s,m)):[]}function IA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function OA(r,s){return r&&r.length?Qa(r,Be(s,3),!0,!0):[]}function FA(r,s){return r&&r.length?Qa(r,Be(s,3),!0):[]}function BA(r,s,c,m){var k=r==null?0:r.length;return k?(c&&typeof c!="number"&&bn(r,s,c)&&(c=0,m=k),AS(r,s,c,m)):[]}function Og(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:Ge(c);return k<0&&(k=en(m+k,0)),Fa(r,Be(s,3),k)}function Fg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m-1;return c!==n&&(k=Ge(c),k=c<0?en(m+k,0):hn(k,m-1)),Fa(r,Be(s,3),k,!0)}function Bg(r){var s=r==null?0:r.length;return s?cn(r,1):[]}function DA(r){var s=r==null?0:r.length;return s?cn(r,De):[]}function PA(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ge(s),cn(r,s)):[]}function RA(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var k=r[s];m[k[0]]=k[1]}return m}function Dg(r){return r&&r.length?r[0]:n}function LA(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:Ge(c);return k<0&&(k=en(m+k,0)),ds(r,s,k)}function jA(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var NA=tt(function(r){var s=Pt(r,Al);return s.length&&s[0]===r[0]?pl(s):[]}),$A=tt(function(r){var s=Jn(r),c=Pt(r,Al);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?pl(c,Be(s,2)):[]}),MA=tt(function(r){var s=Jn(r),c=Pt(r,Al);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?pl(c,n,s):[]});function UA(r,s){return r==null?"":jE.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function VA(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m;return c!==n&&(k=Ge(c),k=k<0?en(m+k,0):hn(k,m-1)),s===s?xE(r,s,k):Fa(r,d0,k,!0)}function qA(r,s){return r&&r.length?W0(r,Ge(s)):n}var WA=tt(Pg);function Pg(r,s){return r&&r.length&&s&&s.length?bl(r,s):r}function KA(r,s,c){return r&&r.length&&s&&s.length?bl(r,s,Be(c,2)):r}function HA(r,s,c){return r&&r.length&&s&&s.length?bl(r,s,n,c):r}var zA=Pr(function(r,s){var c=r==null?0:r.length,m=ll(r,s);return z0(r,Pt(s,function(k){return Rr(k,c)?+k:k}).sort(rg)),m});function GA(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,k=[],P=r.length;for(s=Be(s,3);++m<P;){var $=r[m];s($,m,r)&&(c.push($),k.push(m))}return z0(r,k),c}function Nl(r){return r==null?r:UE.call(r)}function JA(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&bn(r,s,c)?(s=0,c=m):(s=s==null?0:Ge(s),c=c===n?m:Ge(c)),Gn(r,s,c)):[]}function YA(r,s){return Xa(r,s)}function XA(r,s,c){return xl(r,s,Be(c,2))}function QA(r,s){var c=r==null?0:r.length;if(c){var m=Xa(r,s);if(m<c&&ar(r[m],s))return m}return-1}function ZA(r,s){return Xa(r,s,!0)}function eC(r,s,c){return xl(r,s,Be(c,2),!0)}function tC(r,s){var c=r==null?0:r.length;if(c){var m=Xa(r,s,!0)-1;if(ar(r[m],s))return m}return-1}function nC(r){return r&&r.length?J0(r):[]}function rC(r,s){return r&&r.length?J0(r,Be(s,2)):[]}function iC(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function sC(r,s,c){return r&&r.length?(s=c||s===n?1:Ge(s),Gn(r,0,s<0?0:s)):[]}function oC(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function aC(r,s){return r&&r.length?Qa(r,Be(s,3),!1,!0):[]}function uC(r,s){return r&&r.length?Qa(r,Be(s,3)):[]}var cC=tt(function(r){return ri(cn(r,1,zt,!0))}),lC=tt(function(r){var s=Jn(r);return zt(s)&&(s=n),ri(cn(r,1,zt,!0),Be(s,2))}),fC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ri(cn(r,1,zt,!0),n,s)});function hC(r){return r&&r.length?ri(r):[]}function dC(r,s){return r&&r.length?ri(r,Be(s,2)):[]}function pC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ri(r,n,s):[]}function $l(r){if(!(r&&r.length))return[];var s=0;return r=Qr(r,function(c){if(zt(c))return s=en(c.length,s),!0}),nl(s,function(c){return Pt(r,Zc(c))})}function Rg(r,s){if(!(r&&r.length))return[];var c=$l(r);return s==null?c:Pt(c,function(m){return On(s,n,m)})}var gC=tt(function(r,s){return zt(r)?mo(r,s):[]}),yC=tt(function(r){return Sl(Qr(r,zt))}),mC=tt(function(r){var s=Jn(r);return zt(s)&&(s=n),Sl(Qr(r,zt),Be(s,2))}),bC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Sl(Qr(r,zt),n,s)}),wC=tt($l);function vC(r,s){return Z0(r||[],s||[],yo)}function xC(r,s){return Z0(r||[],s||[],vo)}var EC=tt(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Rg(r,c)});function Lg(r){var s=D(r);return s.__chain__=!0,s}function SC(r,s){return s(r),r}function au(r,s){return s(r)}var AC=Pr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,k=function(P){return ll(P,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Rr(c)?this.thru(k):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:au,args:[k],thisArg:n}),new Hn(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function CC(){return Lg(this)}function _C(){return new Hn(this.value(),this.__chain__)}function kC(){this.__values__===n&&(this.__values__=Yg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function TC(){return this}function IC(r){for(var s,c=this;c instanceof Ha;){var m=Ig(c);m.__index__=0,m.__values__=n,s?k.__wrapped__=m:s=m;var k=m;c=c.__wrapped__}return k.__wrapped__=r,s}function OC(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:au,args:[Nl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Nl)}function FC(){return Q0(this.__wrapped__,this.__actions__)}var BC=Za(function(r,s,c){xt.call(r,c)?++r[c]:Br(r,c,1)});function DC(r,s,c){var m=qe(r)?f0:SS;return c&&bn(r,s,c)&&(s=n),m(r,Be(s,3))}function PC(r,s){var c=qe(r)?Qr:R0;return c(r,Be(s,3))}var RC=cg(Og),LC=cg(Fg);function jC(r,s){return cn(uu(r,s),1)}function NC(r,s){return cn(uu(r,s),De)}function $C(r,s,c){return c=c===n?1:Ge(c),cn(uu(r,s),c)}function jg(r,s){var c=qe(r)?Wn:ni;return c(r,Be(s,3))}function Ng(r,s){var c=qe(r)?iE:P0;return c(r,Be(s,3))}var MC=Za(function(r,s,c){xt.call(r,c)?r[c].push(s):Br(r,c,[s])});function UC(r,s,c,m){r=An(r)?r:Cs(r),c=c&&!m?Ge(c):0;var k=r.length;return c<0&&(c=en(k+c,0)),du(r)?c<=k&&r.indexOf(s,c)>-1:!!k&&ds(r,s,c)>-1}var VC=tt(function(r,s,c){var m=-1,k=typeof s=="function",P=An(r)?Q(r.length):[];return ni(r,function($){P[++m]=k?On(s,$,c):bo($,s,c)}),P}),qC=Za(function(r,s,c){Br(r,c,s)});function uu(r,s){var c=qe(r)?Pt:U0;return c(r,Be(s,3))}function WC(r,s,c,m){return r==null?[]:(qe(s)||(s=s==null?[]:[s]),c=m?n:c,qe(c)||(c=c==null?[]:[c]),K0(r,s,c))}var KC=Za(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function HC(r,s,c){var m=qe(r)?Xc:g0,k=arguments.length<3;return m(r,Be(s,4),c,k,ni)}function zC(r,s,c){var m=qe(r)?sE:g0,k=arguments.length<3;return m(r,Be(s,4),c,k,P0)}function GC(r,s){var c=qe(r)?Qr:R0;return c(r,fu(Be(s,3)))}function JC(r){var s=qe(r)?O0:US;return s(r)}function YC(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=Ge(s);var m=qe(r)?bS:VS;return m(r,s)}function XC(r){var s=qe(r)?wS:WS;return s(r)}function QC(r){if(r==null)return 0;if(An(r))return du(r)?gs(r):r.length;var s=dn(r);return s==Rt||s==vt?r.size:yl(r).length}function ZC(r,s,c){var m=qe(r)?Qc:KS;return c&&bn(r,s,c)&&(s=n),m(r,Be(s,3))}var e3=tt(function(r,s){if(r==null)return[];var c=s.length;return c>1&&bn(r,s[0],s[1])?s=[]:c>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),K0(r,cn(s,1),[])}),cu=PE||function(){return un.Date.now()};function t3(r,s){if(typeof s!="function")throw new Kn(u);return r=Ge(r),function(){if(--r<1)return s.apply(this,arguments)}}function $g(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Dr(r,B,n,n,n,n,s)}function Mg(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=Ge(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Ml=tt(function(r,s,c){var m=w;if(c.length){var k=ei(c,Ss(Ml));m|=O}return Dr(r,m,s,c,k)}),Ug=tt(function(r,s,c){var m=w|T;if(c.length){var k=ei(c,Ss(Ug));m|=O}return Dr(s,m,r,c,k)});function Vg(r,s,c){s=c?n:s;var m=Dr(r,R,n,n,n,n,n,s);return m.placeholder=Vg.placeholder,m}function qg(r,s,c){s=c?n:s;var m=Dr(r,_,n,n,n,n,n,s);return m.placeholder=qg.placeholder,m}function Wg(r,s,c){var m,k,P,$,U,z,se=0,oe=!1,ae=!1,me=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,Nt(c)&&(oe=!!c.leading,ae="maxWait"in c,P=ae?en(Yn(c.maxWait)||0,s):P,me="trailing"in c?!!c.trailing:me);function Ce(Gt){var ur=m,Nr=k;return m=k=n,se=Gt,$=r.apply(Nr,ur),$}function Re(Gt){return se=Gt,U=So(it,s),oe?Ce(Gt):$}function Ze(Gt){var ur=Gt-z,Nr=Gt-se,c1=s-ur;return ae?hn(c1,P-Nr):c1}function Le(Gt){var ur=Gt-z,Nr=Gt-se;return z===n||ur>=s||ur<0||ae&&Nr>=P}function it(){var Gt=cu();if(Le(Gt))return at(Gt);U=So(it,Ze(Gt))}function at(Gt){return U=n,me&&m?Ce(Gt):(m=k=n,$)}function Pn(){U!==n&&eg(U),se=0,m=z=k=U=n}function wn(){return U===n?$:at(cu())}function Rn(){var Gt=cu(),ur=Le(Gt);if(m=arguments,k=this,z=Gt,ur){if(U===n)return Re(z);if(ae)return eg(U),U=So(it,s),Ce(z)}return U===n&&(U=So(it,s)),$}return Rn.cancel=Pn,Rn.flush=wn,Rn}var n3=tt(function(r,s){return D0(r,1,s)}),r3=tt(function(r,s,c){return D0(r,Yn(s)||0,c)});function i3(r){return Dr(r,J)}function lu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,k=s?s.apply(this,m):m[0],P=c.cache;if(P.has(k))return P.get(k);var $=r.apply(this,m);return c.cache=P.set(k,$)||P,$};return c.cache=new(lu.Cache||Fr),c}lu.Cache=Fr;function fu(r){if(typeof r!="function")throw new Kn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function s3(r){return Mg(2,r)}var o3=HS(function(r,s){s=s.length==1&&qe(s[0])?Pt(s[0],Fn(Be())):Pt(cn(s,1),Fn(Be()));var c=s.length;return tt(function(m){for(var k=-1,P=hn(m.length,c);++k<P;)m[k]=s[k].call(this,m[k]);return On(r,this,m)})}),Ul=tt(function(r,s){var c=ei(s,Ss(Ul));return Dr(r,O,n,s,c)}),Kg=tt(function(r,s){var c=ei(s,Ss(Kg));return Dr(r,F,n,s,c)}),a3=Pr(function(r,s){return Dr(r,W,n,n,n,s)});function u3(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:Ge(s),tt(r,s)}function c3(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:en(Ge(s),0),tt(function(c){var m=c[s],k=si(c,0,s);return m&&Zr(k,m),On(r,this,k)})}function l3(r,s,c){var m=!0,k=!0;if(typeof r!="function")throw new Kn(u);return Nt(c)&&(m="leading"in c?!!c.leading:m,k="trailing"in c?!!c.trailing:k),Wg(r,s,{leading:m,maxWait:s,trailing:k})}function f3(r){return $g(r,1)}function h3(r,s){return Ul(Cl(s),r)}function d3(){if(!arguments.length)return[];var r=arguments[0];return qe(r)?r:[r]}function p3(r){return zn(r,C)}function g3(r,s){return s=typeof s=="function"?s:n,zn(r,C,s)}function y3(r){return zn(r,g|C)}function m3(r,s){return s=typeof s=="function"?s:n,zn(r,g|C,s)}function b3(r,s){return s==null||B0(r,s,rn(s))}function ar(r,s){return r===s||r!==r&&s!==s}var w3=ru(dl),v3=ru(function(r,s){return r>=s}),Bi=N0(function(){return arguments}())?N0:function(r){return $t(r)&&xt.call(r,"callee")&&!A0.call(r,"callee")},qe=Q.isArray,x3=s0?Fn(s0):IS;function An(r){return r!=null&&hu(r.length)&&!Lr(r)}function zt(r){return $t(r)&&An(r)}function E3(r){return r===!0||r===!1||$t(r)&&mn(r)==xe}var oi=LE||Ql,S3=o0?Fn(o0):OS;function A3(r){return $t(r)&&r.nodeType===1&&!Ao(r)}function C3(r){if(r==null)return!0;if(An(r)&&(qe(r)||typeof r=="string"||typeof r.splice=="function"||oi(r)||As(r)||Bi(r)))return!r.length;var s=dn(r);if(s==Rt||s==vt)return!r.size;if(Eo(r))return!yl(r).length;for(var c in r)if(xt.call(r,c))return!1;return!0}function _3(r,s){return wo(r,s)}function k3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?wo(r,s,n,c):!!m}function Vl(r){if(!$t(r))return!1;var s=mn(r);return s==Pe||s==je||typeof r.message=="string"&&typeof r.name=="string"&&!Ao(r)}function T3(r){return typeof r=="number"&&_0(r)}function Lr(r){if(!Nt(r))return!1;var s=mn(r);return s==Ct||s==nn||s==He||s==et}function Hg(r){return typeof r=="number"&&r==Ge(r)}function hu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=_e}function Nt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function $t(r){return r!=null&&typeof r=="object"}var zg=a0?Fn(a0):BS;function I3(r,s){return r===s||gl(r,s,Bl(s))}function O3(r,s,c){return c=typeof c=="function"?c:n,gl(r,s,Bl(s),c)}function F3(r){return Gg(r)&&r!=+r}function B3(r){if(gA(r))throw new Ue(a);return $0(r)}function D3(r){return r===null}function P3(r){return r==null}function Gg(r){return typeof r=="number"||$t(r)&&mn(r)==Lt}function Ao(r){if(!$t(r)||mn(r)!=bt)return!1;var s=$a(r);if(s===null)return!0;var c=xt.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Ra.call(c)==OE}var ql=u0?Fn(u0):DS;function R3(r){return Hg(r)&&r>=-9007199254740991&&r<=_e}var Jg=c0?Fn(c0):PS;function du(r){return typeof r=="string"||!qe(r)&&$t(r)&&mn(r)==ve}function Dn(r){return typeof r=="symbol"||$t(r)&&mn(r)==It}var As=l0?Fn(l0):RS;function L3(r){return r===n}function j3(r){return $t(r)&&dn(r)==Xe}function N3(r){return $t(r)&&mn(r)==Bt}var $3=ru(ml),M3=ru(function(r,s){return r<=s});function Yg(r){if(!r)return[];if(An(r))return du(r)?sr(r):Sn(r);if(lo&&r[lo])return bE(r[lo]());var s=dn(r),c=s==Rt?il:s==vt?Ba:Cs;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===De||r===-1/0){var s=r<0?-1:1;return s*Ye}return r===r?r:0}function Ge(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function Xg(r){return r?Ti(Ge(r),0,ge):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return we;if(Nt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Nt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=y0(r);var c=Qe.test(r);return c||Ot.test(r)?tE(r.slice(2),c?2:8):rt.test(r)?we:+r}function Qg(r){return br(r,Cn(r))}function U3(r){return r?Ti(Ge(r),-9007199254740991,_e):r===0?r:0}function wt(r){return r==null?"":Bn(r)}var V3=xs(function(r,s){if(Eo(s)||An(s)){br(s,rn(s),r);return}for(var c in s)xt.call(s,c)&&yo(r,c,s[c])}),Zg=xs(function(r,s){br(s,Cn(s),r)}),pu=xs(function(r,s,c,m){br(s,Cn(s),r,m)}),q3=xs(function(r,s,c,m){br(s,rn(s),r,m)}),W3=Pr(ll);function K3(r,s){var c=vs(r);return s==null?c:F0(c,s)}var H3=tt(function(r,s){r=Et(r);var c=-1,m=s.length,k=m>2?s[2]:n;for(k&&bn(s[0],s[1],k)&&(m=1);++c<m;)for(var P=s[c],$=Cn(P),U=-1,z=$.length;++U<z;){var se=$[U],oe=r[se];(oe===n||ar(oe,ms[se])&&!xt.call(r,se))&&(r[se]=P[se])}return r}),z3=tt(function(r){return r.push(n,yg),On(e1,n,r)});function G3(r,s){return h0(r,Be(s,3),mr)}function J3(r,s){return h0(r,Be(s,3),hl)}function Y3(r,s){return r==null?r:fl(r,Be(s,3),Cn)}function X3(r,s){return r==null?r:L0(r,Be(s,3),Cn)}function Q3(r,s){return r&&mr(r,Be(s,3))}function Z3(r,s){return r&&hl(r,Be(s,3))}function e_(r){return r==null?[]:Ja(r,rn(r))}function t_(r){return r==null?[]:Ja(r,Cn(r))}function Wl(r,s,c){var m=r==null?n:Ii(r,s);return m===n?c:m}function n_(r,s){return r!=null&&wg(r,s,CS)}function Kl(r,s){return r!=null&&wg(r,s,_S)}var r_=fg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=La.call(s)),r[s]=c},zl(_n)),i_=fg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=La.call(s)),xt.call(r,s)?r[s].push(c):r[s]=[c]},Be),s_=tt(bo);function rn(r){return An(r)?I0(r):yl(r)}function Cn(r){return An(r)?I0(r,!0):LS(r)}function o_(r,s){var c={};return s=Be(s,3),mr(r,function(m,k,P){Br(c,s(m,k,P),m)}),c}function a_(r,s){var c={};return s=Be(s,3),mr(r,function(m,k,P){Br(c,k,s(m,k,P))}),c}var u_=xs(function(r,s,c){Ya(r,s,c)}),e1=xs(function(r,s,c,m){Ya(r,s,c,m)}),c_=Pr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Pt(s,function(P){return P=ii(P,r),m||(m=P.length>1),P}),br(r,Ol(r),c),m&&(c=zn(c,g|v|C,rA));for(var k=s.length;k--;)El(c,s[k]);return c});function l_(r,s){return t1(r,fu(Be(s)))}var f_=Pr(function(r,s){return r==null?{}:NS(r,s)});function t1(r,s){if(r==null)return{};var c=Pt(Ol(r),function(m){return[m]});return s=Be(s),H0(r,c,function(m,k){return s(m,k[0])})}function h_(r,s,c){s=ii(s,r);var m=-1,k=s.length;for(k||(k=1,r=n);++m<k;){var P=r==null?n:r[wr(s[m])];P===n&&(m=k,P=c),r=Lr(P)?P.call(r):P}return r}function d_(r,s,c){return r==null?r:vo(r,s,c)}function p_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:vo(r,s,c,m)}var n1=pg(rn),r1=pg(Cn);function g_(r,s,c){var m=qe(r),k=m||oi(r)||As(r);if(s=Be(s,4),c==null){var P=r&&r.constructor;k?c=m?new P:[]:Nt(r)?c=Lr(P)?vs($a(r)):{}:c={}}return(k?Wn:mr)(r,function($,U,z){return s(c,$,U,z)}),c}function y_(r,s){return r==null?!0:El(r,s)}function m_(r,s,c){return r==null?r:X0(r,s,Cl(c))}function b_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:X0(r,s,Cl(c),m)}function Cs(r){return r==null?[]:rl(r,rn(r))}function w_(r){return r==null?[]:rl(r,Cn(r))}function v_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Ti(Yn(r),s,c)}function x_(r,s,c){return s=jr(s),c===n?(c=s,s=0):c=jr(c),r=Yn(r),kS(r,s,c)}function E_(r,s,c){if(c&&typeof c!="boolean"&&bn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=jr(r),s===n?(s=r,r=0):s=jr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var k=k0();return hn(r+k*(s-r+eE("1e-"+((k+"").length-1))),s)}return wl(r,s)}var S_=Es(function(r,s,c){return s=s.toLowerCase(),r+(c?i1(s):s)});function i1(r){return Hl(wt(r).toLowerCase())}function s1(r){return r=wt(r),r&&r.replace(fn,dE).replace(Wx,"")}function A_(r,s,c){r=wt(r),s=Bn(s);var m=r.length;c=c===n?m:Ti(Ge(c),0,m);var k=c;return c-=s.length,c>=0&&r.slice(c,k)==s}function C_(r){return r=wt(r),r&&as.test(r)?r.replace(Gr,pE):r}function __(r){return r=wt(r),r&&rr.test(r)?r.replace(Ir,"\\$&"):r}var k_=Es(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),T_=Es(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),I_=ug("toLowerCase");function O_(r,s,c){r=wt(r),s=Ge(s);var m=s?gs(r):0;if(!s||m>=s)return r;var k=(s-m)/2;return nu(qa(k),c)+r+nu(Va(k),c)}function F_(r,s,c){r=wt(r),s=Ge(s);var m=s?gs(r):0;return s&&m<s?r+nu(s-m,c):r}function B_(r,s,c){r=wt(r),s=Ge(s);var m=s?gs(r):0;return s&&m<s?nu(s-m,c)+r:r}function D_(r,s,c){return c||s==null?s=0:s&&(s=+s),ME(wt(r).replace(Yr,""),s||0)}function P_(r,s,c){return(c?bn(r,s,c):s===n)?s=1:s=Ge(s),vl(wt(r),s)}function R_(){var r=arguments,s=wt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var L_=Es(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function j_(r,s,c){return c&&typeof c!="number"&&bn(r,s,c)&&(s=c=n),c=c===n?ge:c>>>0,c?(r=wt(r),r&&(typeof s=="string"||s!=null&&!ql(s))&&(s=Bn(s),!s&&ps(r))?si(sr(r),0,c):r.split(s,c)):[]}var N_=Es(function(r,s,c){return r+(c?" ":"")+Hl(s)});function $_(r,s,c){return r=wt(r),c=c==null?0:Ti(Ge(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function M_(r,s,c){var m=D.templateSettings;c&&bn(r,s,c)&&(s=n),r=wt(r),s=pu({},s,m,gg);var k=pu({},s.imports,m.imports,gg),P=rn(k),$=rl(k,P),U,z,se=0,oe=s.interpolate||Tn,ae="__p += '",me=sl((s.escape||Tn).source+"|"+oe.source+"|"+(oe===Jr?ct:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Ce="//# sourceURL="+(xt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jx+"]")+`
146
- `;r.replace(me,function(Le,it,at,Pn,wn,Rn){return at||(at=Pn),ae+=r.slice(se,Rn).replace(ir,gE),it&&(U=!0,ae+=`' +
145
+ `)}function hA(r){return We(r)||Bi(r)||!!(C0&&r&&r[C0])}function Rr(r,s){var c=typeof r;return s=s??Te,!!s&&(c=="number"||c!="symbol"&&Bt.test(r))&&r>-1&&r%1==0&&r<s}function mn(r,s,c){if(!jt(c))return!1;var m=typeof s;return(m=="number"?Sn(c)&&Rr(s,c.length):m=="string"&&s in c)?ar(c[s],r):!1}function Pl(r,s){if(We(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:no.test(r)||!Ei.test(r)||s!=null&&r in St(s)}function dA(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Rl(r){var s=iu(r),c=D[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Fl(c);return!!m&&r===m[0]}function pA(r){return!!x0&&x0 in r}var gA=Pa?Lr:Ql;function Eo(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ms;return r===c}function xg(r){return r===r&&!jt(r)}function Eg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in St(c))}}function yA(r){var s=lu(r,function(m){return c.size===h&&c.clear(),m}),c=s.cache;return s}function mA(r,s){var c=r[1],m=s[1],k=c|m,P=k<(w|T|B),$=m==B&&c==R||m==B&&c==W&&r[7].length<=s[8]||m==(B|W)&&s[7].length<=s[8]&&c==R;if(!(P||$))return r;m&w&&(r[2]=s[2],k|=c&w?0:j);var U=s[3];if(U){var z=r[3];r[3]=z?ig(z,U,s[4]):U,r[4]=z?ei(r[3],d):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?sg(z,U,s[6]):U,r[6]=z?ei(r[5],d):s[6]),U=s[7],U&&(r[7]=U),m&B&&(r[8]=r[8]==null?s[8]:fn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=k,r}function bA(r){var s=[];if(r!=null)for(var c in St(r))s.push(c);return s}function wA(r){return La.call(r)}function Sg(r,s,c){return s=tn(s===n?r.length-1:s,0),function(){for(var m=arguments,k=-1,P=tn(m.length-s,0),$=Z(P);++k<P;)$[k]=m[s+k];k=-1;for(var U=Z(s+1);++k<s;)U[k]=m[k];return U[s]=c($),On(r,this,U)}}function Ag(r,s){return s.length<2?r:Ii(r,Gn(s,0,-1))}function vA(r,s){for(var c=r.length,m=fn(s.length,c),k=En(r);m--;){var P=s[m];r[m]=Rr(P,c)?k[P]:n}return r}function Ll(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Cg=kg(G0),So=RE||function(r,s){return un.setTimeout(r,s)},jl=kg(qS);function _g(r,s,c){var m=s+"";return jl(r,fA(m,xA(uA(m),c)))}function kg(r){var s=0,c=0;return function(){var m=$E(),k=be-(m-c);if(c=m,k>0){if(++s>=de)return arguments[0]}else s=0;return r.apply(n,arguments)}}function ou(r,s){var c=-1,m=r.length,k=m-1;for(s=s===n?m:s;++c<s;){var P=wl(c,k),$=r[P];r[P]=r[c],r[c]=$}return r.length=s,r}var Tg=yA(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ro,function(c,m,k,P){s.push(k?P.replace(Ie,"$1"):m||c)}),s});function wr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Fi(r){if(r!=null){try{return Ra.call(r)}catch{}try{return r+""}catch{}}return""}function xA(r,s){return Wn(X,function(c){var m="_."+c[0];s&c[1]&&!Oa(r,m)&&r.push(m)}),r.sort()}function Ig(r){if(r instanceof ot)return r.clone();var s=new Hn(r.__wrapped__,r.__chain__);return s.__actions__=En(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function EA(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=tn(Je(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var k=0,P=0,$=Z(Va(m/s));k<m;)$[P++]=Gn(r,k,k+=s);return $}function SA(r){for(var s=-1,c=r==null?0:r.length,m=0,k=[];++s<c;){var P=r[s];P&&(k[m++]=P)}return k}function AA(){var r=arguments.length;if(!r)return[];for(var s=Z(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Zr(We(c)?En(c):[c],cn(s,1))}var CA=tt(function(r,s){return Gt(r)?mo(r,cn(s,1,Gt,!0)):[]}),_A=tt(function(r,s){var c=Jn(s);return Gt(c)&&(c=n),Gt(r)?mo(r,cn(s,1,Gt,!0),Pe(c,2)):[]}),kA=tt(function(r,s){var c=Jn(s);return Gt(c)&&(c=n),Gt(r)?mo(r,cn(s,1,Gt,!0),n,c):[]});function TA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Je(s),Gn(r,s<0?0:s,m)):[]}function IA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Je(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function OA(r,s){return r&&r.length?Qa(r,Pe(s,3),!0,!0):[]}function FA(r,s){return r&&r.length?Qa(r,Pe(s,3),!0):[]}function BA(r,s,c,m){var k=r==null?0:r.length;return k?(c&&typeof c!="number"&&mn(r,s,c)&&(c=0,m=k),AS(r,s,c,m)):[]}function Og(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:Je(c);return k<0&&(k=tn(m+k,0)),Fa(r,Pe(s,3),k)}function Fg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m-1;return c!==n&&(k=Je(c),k=c<0?tn(m+k,0):fn(k,m-1)),Fa(r,Pe(s,3),k,!0)}function Bg(r){var s=r==null?0:r.length;return s?cn(r,1):[]}function DA(r){var s=r==null?0:r.length;return s?cn(r,Re):[]}function PA(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Je(s),cn(r,s)):[]}function RA(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var k=r[s];m[k[0]]=k[1]}return m}function Dg(r){return r&&r.length?r[0]:n}function LA(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:Je(c);return k<0&&(k=tn(m+k,0)),ds(r,s,k)}function jA(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var NA=tt(function(r){var s=Dt(r,Al);return s.length&&s[0]===r[0]?pl(s):[]}),$A=tt(function(r){var s=Jn(r),c=Dt(r,Al);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?pl(c,Pe(s,2)):[]}),MA=tt(function(r){var s=Jn(r),c=Dt(r,Al);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?pl(c,n,s):[]});function UA(r,s){return r==null?"":jE.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function VA(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m;return c!==n&&(k=Je(c),k=k<0?tn(m+k,0):fn(k,m-1)),s===s?xE(r,s,k):Fa(r,d0,k,!0)}function qA(r,s){return r&&r.length?W0(r,Je(s)):n}var WA=tt(Pg);function Pg(r,s){return r&&r.length&&s&&s.length?bl(r,s):r}function KA(r,s,c){return r&&r.length&&s&&s.length?bl(r,s,Pe(c,2)):r}function HA(r,s,c){return r&&r.length&&s&&s.length?bl(r,s,n,c):r}var zA=Pr(function(r,s){var c=r==null?0:r.length,m=ll(r,s);return z0(r,Dt(s,function(k){return Rr(k,c)?+k:k}).sort(rg)),m});function GA(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,k=[],P=r.length;for(s=Pe(s,3);++m<P;){var $=r[m];s($,m,r)&&(c.push($),k.push(m))}return z0(r,k),c}function Nl(r){return r==null?r:UE.call(r)}function JA(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&mn(r,s,c)?(s=0,c=m):(s=s==null?0:Je(s),c=c===n?m:Je(c)),Gn(r,s,c)):[]}function YA(r,s){return Xa(r,s)}function XA(r,s,c){return xl(r,s,Pe(c,2))}function QA(r,s){var c=r==null?0:r.length;if(c){var m=Xa(r,s);if(m<c&&ar(r[m],s))return m}return-1}function ZA(r,s){return Xa(r,s,!0)}function eC(r,s,c){return xl(r,s,Pe(c,2),!0)}function tC(r,s){var c=r==null?0:r.length;if(c){var m=Xa(r,s,!0)-1;if(ar(r[m],s))return m}return-1}function nC(r){return r&&r.length?J0(r):[]}function rC(r,s){return r&&r.length?J0(r,Pe(s,2)):[]}function iC(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function sC(r,s,c){return r&&r.length?(s=c||s===n?1:Je(s),Gn(r,0,s<0?0:s)):[]}function oC(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Je(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function aC(r,s){return r&&r.length?Qa(r,Pe(s,3),!1,!0):[]}function uC(r,s){return r&&r.length?Qa(r,Pe(s,3)):[]}var cC=tt(function(r){return ri(cn(r,1,Gt,!0))}),lC=tt(function(r){var s=Jn(r);return Gt(s)&&(s=n),ri(cn(r,1,Gt,!0),Pe(s,2))}),fC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ri(cn(r,1,Gt,!0),n,s)});function hC(r){return r&&r.length?ri(r):[]}function dC(r,s){return r&&r.length?ri(r,Pe(s,2)):[]}function pC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ri(r,n,s):[]}function $l(r){if(!(r&&r.length))return[];var s=0;return r=Qr(r,function(c){if(Gt(c))return s=tn(c.length,s),!0}),nl(s,function(c){return Dt(r,Zc(c))})}function Rg(r,s){if(!(r&&r.length))return[];var c=$l(r);return s==null?c:Dt(c,function(m){return On(s,n,m)})}var gC=tt(function(r,s){return Gt(r)?mo(r,s):[]}),yC=tt(function(r){return Sl(Qr(r,Gt))}),mC=tt(function(r){var s=Jn(r);return Gt(s)&&(s=n),Sl(Qr(r,Gt),Pe(s,2))}),bC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Sl(Qr(r,Gt),n,s)}),wC=tt($l);function vC(r,s){return Z0(r||[],s||[],yo)}function xC(r,s){return Z0(r||[],s||[],vo)}var EC=tt(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Rg(r,c)});function Lg(r){var s=D(r);return s.__chain__=!0,s}function SC(r,s){return s(r),r}function au(r,s){return s(r)}var AC=Pr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,k=function(P){return ll(P,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Rr(c)?this.thru(k):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:au,args:[k],thisArg:n}),new Hn(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function CC(){return Lg(this)}function _C(){return new Hn(this.value(),this.__chain__)}function kC(){this.__values__===n&&(this.__values__=Yg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function TC(){return this}function IC(r){for(var s,c=this;c instanceof Ha;){var m=Ig(c);m.__index__=0,m.__values__=n,s?k.__wrapped__=m:s=m;var k=m;c=c.__wrapped__}return k.__wrapped__=r,s}function OC(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:au,args:[Nl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Nl)}function FC(){return Q0(this.__wrapped__,this.__actions__)}var BC=Za(function(r,s,c){xt.call(r,c)?++r[c]:Br(r,c,1)});function DC(r,s,c){var m=We(r)?f0:SS;return c&&mn(r,s,c)&&(s=n),m(r,Pe(s,3))}function PC(r,s){var c=We(r)?Qr:R0;return c(r,Pe(s,3))}var RC=cg(Og),LC=cg(Fg);function jC(r,s){return cn(uu(r,s),1)}function NC(r,s){return cn(uu(r,s),Re)}function $C(r,s,c){return c=c===n?1:Je(c),cn(uu(r,s),c)}function jg(r,s){var c=We(r)?Wn:ni;return c(r,Pe(s,3))}function Ng(r,s){var c=We(r)?iE:P0;return c(r,Pe(s,3))}var MC=Za(function(r,s,c){xt.call(r,c)?r[c].push(s):Br(r,c,[s])});function UC(r,s,c,m){r=Sn(r)?r:Cs(r),c=c&&!m?Je(c):0;var k=r.length;return c<0&&(c=tn(k+c,0)),du(r)?c<=k&&r.indexOf(s,c)>-1:!!k&&ds(r,s,c)>-1}var VC=tt(function(r,s,c){var m=-1,k=typeof s=="function",P=Sn(r)?Z(r.length):[];return ni(r,function($){P[++m]=k?On(s,$,c):bo($,s,c)}),P}),qC=Za(function(r,s,c){Br(r,c,s)});function uu(r,s){var c=We(r)?Dt:U0;return c(r,Pe(s,3))}function WC(r,s,c,m){return r==null?[]:(We(s)||(s=s==null?[]:[s]),c=m?n:c,We(c)||(c=c==null?[]:[c]),K0(r,s,c))}var KC=Za(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function HC(r,s,c){var m=We(r)?Xc:g0,k=arguments.length<3;return m(r,Pe(s,4),c,k,ni)}function zC(r,s,c){var m=We(r)?sE:g0,k=arguments.length<3;return m(r,Pe(s,4),c,k,P0)}function GC(r,s){var c=We(r)?Qr:R0;return c(r,fu(Pe(s,3)))}function JC(r){var s=We(r)?O0:US;return s(r)}function YC(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=Je(s);var m=We(r)?bS:VS;return m(r,s)}function XC(r){var s=We(r)?wS:WS;return s(r)}function QC(r){if(r==null)return 0;if(Sn(r))return du(r)?gs(r):r.length;var s=hn(r);return s==Pt||s==Qe?r.size:yl(r).length}function ZC(r,s,c){var m=We(r)?Qc:KS;return c&&mn(r,s,c)&&(s=n),m(r,Pe(s,3))}var e3=tt(function(r,s){if(r==null)return[];var c=s.length;return c>1&&mn(r,s[0],s[1])?s=[]:c>2&&mn(s[0],s[1],s[2])&&(s=[s[0]]),K0(r,cn(s,1),[])}),cu=PE||function(){return un.Date.now()};function t3(r,s){if(typeof s!="function")throw new Kn(u);return r=Je(r),function(){if(--r<1)return s.apply(this,arguments)}}function $g(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Dr(r,B,n,n,n,n,s)}function Mg(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=Je(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Ml=tt(function(r,s,c){var m=w;if(c.length){var k=ei(c,Ss(Ml));m|=O}return Dr(r,m,s,c,k)}),Ug=tt(function(r,s,c){var m=w|T;if(c.length){var k=ei(c,Ss(Ug));m|=O}return Dr(s,m,r,c,k)});function Vg(r,s,c){s=c?n:s;var m=Dr(r,R,n,n,n,n,n,s);return m.placeholder=Vg.placeholder,m}function qg(r,s,c){s=c?n:s;var m=Dr(r,_,n,n,n,n,n,s);return m.placeholder=qg.placeholder,m}function Wg(r,s,c){var m,k,P,$,U,z,se=0,oe=!1,ae=!1,me=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,jt(c)&&(oe=!!c.leading,ae="maxWait"in c,P=ae?tn(Yn(c.maxWait)||0,s):P,me="trailing"in c?!!c.trailing:me);function ke(Jt){var ur=m,Nr=k;return m=k=n,se=Jt,$=r.apply(Nr,ur),$}function je(Jt){return se=Jt,U=So(it,s),oe?ke(Jt):$}function et(Jt){var ur=Jt-z,Nr=Jt-se,c1=s-ur;return ae?fn(c1,P-Nr):c1}function Ne(Jt){var ur=Jt-z,Nr=Jt-se;return z===n||ur>=s||ur<0||ae&&Nr>=P}function it(){var Jt=cu();if(Ne(Jt))return at(Jt);U=So(it,et(Jt))}function at(Jt){return U=n,me&&m?ke(Jt):(m=k=n,$)}function Pn(){U!==n&&eg(U),se=0,m=z=k=U=n}function bn(){return U===n?$:at(cu())}function Rn(){var Jt=cu(),ur=Ne(Jt);if(m=arguments,k=this,z=Jt,ur){if(U===n)return je(z);if(ae)return eg(U),U=So(it,s),ke(z)}return U===n&&(U=So(it,s)),$}return Rn.cancel=Pn,Rn.flush=bn,Rn}var n3=tt(function(r,s){return D0(r,1,s)}),r3=tt(function(r,s,c){return D0(r,Yn(s)||0,c)});function i3(r){return Dr(r,J)}function lu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,k=s?s.apply(this,m):m[0],P=c.cache;if(P.has(k))return P.get(k);var $=r.apply(this,m);return c.cache=P.set(k,$)||P,$};return c.cache=new(lu.Cache||Fr),c}lu.Cache=Fr;function fu(r){if(typeof r!="function")throw new Kn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function s3(r){return Mg(2,r)}var o3=HS(function(r,s){s=s.length==1&&We(s[0])?Dt(s[0],Fn(Pe())):Dt(cn(s,1),Fn(Pe()));var c=s.length;return tt(function(m){for(var k=-1,P=fn(m.length,c);++k<P;)m[k]=s[k].call(this,m[k]);return On(r,this,m)})}),Ul=tt(function(r,s){var c=ei(s,Ss(Ul));return Dr(r,O,n,s,c)}),Kg=tt(function(r,s){var c=ei(s,Ss(Kg));return Dr(r,F,n,s,c)}),a3=Pr(function(r,s){return Dr(r,W,n,n,n,s)});function u3(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:Je(s),tt(r,s)}function c3(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:tn(Je(s),0),tt(function(c){var m=c[s],k=si(c,0,s);return m&&Zr(k,m),On(r,this,k)})}function l3(r,s,c){var m=!0,k=!0;if(typeof r!="function")throw new Kn(u);return jt(c)&&(m="leading"in c?!!c.leading:m,k="trailing"in c?!!c.trailing:k),Wg(r,s,{leading:m,maxWait:s,trailing:k})}function f3(r){return $g(r,1)}function h3(r,s){return Ul(Cl(s),r)}function d3(){if(!arguments.length)return[];var r=arguments[0];return We(r)?r:[r]}function p3(r){return zn(r,C)}function g3(r,s){return s=typeof s=="function"?s:n,zn(r,C,s)}function y3(r){return zn(r,g|C)}function m3(r,s){return s=typeof s=="function"?s:n,zn(r,g|C,s)}function b3(r,s){return s==null||B0(r,s,sn(s))}function ar(r,s){return r===s||r!==r&&s!==s}var w3=ru(dl),v3=ru(function(r,s){return r>=s}),Bi=N0(function(){return arguments}())?N0:function(r){return Nt(r)&&xt.call(r,"callee")&&!A0.call(r,"callee")},We=Z.isArray,x3=s0?Fn(s0):IS;function Sn(r){return r!=null&&hu(r.length)&&!Lr(r)}function Gt(r){return Nt(r)&&Sn(r)}function E3(r){return r===!0||r===!1||Nt(r)&&yn(r)==xe}var oi=LE||Ql,S3=o0?Fn(o0):OS;function A3(r){return Nt(r)&&r.nodeType===1&&!Ao(r)}function C3(r){if(r==null)return!0;if(Sn(r)&&(We(r)||typeof r=="string"||typeof r.splice=="function"||oi(r)||As(r)||Bi(r)))return!r.length;var s=hn(r);if(s==Pt||s==Qe)return!r.size;if(Eo(r))return!yl(r).length;for(var c in r)if(xt.call(r,c))return!1;return!0}function _3(r,s){return wo(r,s)}function k3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?wo(r,s,n,c):!!m}function Vl(r){if(!Nt(r))return!1;var s=yn(r);return s==Le||s==Be||typeof r.message=="string"&&typeof r.name=="string"&&!Ao(r)}function T3(r){return typeof r=="number"&&_0(r)}function Lr(r){if(!jt(r))return!1;var s=yn(r);return s==_t||s==rn||s==ze||s==Ae}function Hg(r){return typeof r=="number"&&r==Je(r)}function hu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Te}function jt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Nt(r){return r!=null&&typeof r=="object"}var zg=a0?Fn(a0):BS;function I3(r,s){return r===s||gl(r,s,Bl(s))}function O3(r,s,c){return c=typeof c=="function"?c:n,gl(r,s,Bl(s),c)}function F3(r){return Gg(r)&&r!=+r}function B3(r){if(gA(r))throw new Ve(a);return $0(r)}function D3(r){return r===null}function P3(r){return r==null}function Gg(r){return typeof r=="number"||Nt(r)&&yn(r)==Rt}function Ao(r){if(!Nt(r)||yn(r)!=wt)return!1;var s=$a(r);if(s===null)return!0;var c=xt.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Ra.call(c)==OE}var ql=u0?Fn(u0):DS;function R3(r){return Hg(r)&&r>=-9007199254740991&&r<=Te}var Jg=c0?Fn(c0):PS;function du(r){return typeof r=="string"||!We(r)&&Nt(r)&&yn(r)==we}function Dn(r){return typeof r=="symbol"||Nt(r)&&yn(r)==pt}var As=l0?Fn(l0):RS;function L3(r){return r===n}function j3(r){return Nt(r)&&hn(r)==Et}function N3(r){return Nt(r)&&yn(r)==ht}var $3=ru(ml),M3=ru(function(r,s){return r<=s});function Yg(r){if(!r)return[];if(Sn(r))return du(r)?sr(r):En(r);if(lo&&r[lo])return bE(r[lo]());var s=hn(r),c=s==Pt?il:s==Qe?Ba:Cs;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Re||r===-1/0){var s=r<0?-1:1;return s*Xe}return r===r?r:0}function Je(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function Xg(r){return r?Ti(Je(r),0,ge):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return ve;if(jt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=jt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=y0(r);var c=Ze.test(r);return c||Ot.test(r)?tE(r.slice(2),c?2:8):rt.test(r)?ve:+r}function Qg(r){return br(r,An(r))}function U3(r){return r?Ti(Je(r),-9007199254740991,Te):r===0?r:0}function vt(r){return r==null?"":Bn(r)}var V3=xs(function(r,s){if(Eo(s)||Sn(s)){br(s,sn(s),r);return}for(var c in s)xt.call(s,c)&&yo(r,c,s[c])}),Zg=xs(function(r,s){br(s,An(s),r)}),pu=xs(function(r,s,c,m){br(s,An(s),r,m)}),q3=xs(function(r,s,c,m){br(s,sn(s),r,m)}),W3=Pr(ll);function K3(r,s){var c=vs(r);return s==null?c:F0(c,s)}var H3=tt(function(r,s){r=St(r);var c=-1,m=s.length,k=m>2?s[2]:n;for(k&&mn(s[0],s[1],k)&&(m=1);++c<m;)for(var P=s[c],$=An(P),U=-1,z=$.length;++U<z;){var se=$[U],oe=r[se];(oe===n||ar(oe,ms[se])&&!xt.call(r,se))&&(r[se]=P[se])}return r}),z3=tt(function(r){return r.push(n,yg),On(e1,n,r)});function G3(r,s){return h0(r,Pe(s,3),mr)}function J3(r,s){return h0(r,Pe(s,3),hl)}function Y3(r,s){return r==null?r:fl(r,Pe(s,3),An)}function X3(r,s){return r==null?r:L0(r,Pe(s,3),An)}function Q3(r,s){return r&&mr(r,Pe(s,3))}function Z3(r,s){return r&&hl(r,Pe(s,3))}function e_(r){return r==null?[]:Ja(r,sn(r))}function t_(r){return r==null?[]:Ja(r,An(r))}function Wl(r,s,c){var m=r==null?n:Ii(r,s);return m===n?c:m}function n_(r,s){return r!=null&&wg(r,s,CS)}function Kl(r,s){return r!=null&&wg(r,s,_S)}var r_=fg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=La.call(s)),r[s]=c},zl(Cn)),i_=fg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=La.call(s)),xt.call(r,s)?r[s].push(c):r[s]=[c]},Pe),s_=tt(bo);function sn(r){return Sn(r)?I0(r):yl(r)}function An(r){return Sn(r)?I0(r,!0):LS(r)}function o_(r,s){var c={};return s=Pe(s,3),mr(r,function(m,k,P){Br(c,s(m,k,P),m)}),c}function a_(r,s){var c={};return s=Pe(s,3),mr(r,function(m,k,P){Br(c,k,s(m,k,P))}),c}var u_=xs(function(r,s,c){Ya(r,s,c)}),e1=xs(function(r,s,c,m){Ya(r,s,c,m)}),c_=Pr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Dt(s,function(P){return P=ii(P,r),m||(m=P.length>1),P}),br(r,Ol(r),c),m&&(c=zn(c,g|v|C,rA));for(var k=s.length;k--;)El(c,s[k]);return c});function l_(r,s){return t1(r,fu(Pe(s)))}var f_=Pr(function(r,s){return r==null?{}:NS(r,s)});function t1(r,s){if(r==null)return{};var c=Dt(Ol(r),function(m){return[m]});return s=Pe(s),H0(r,c,function(m,k){return s(m,k[0])})}function h_(r,s,c){s=ii(s,r);var m=-1,k=s.length;for(k||(k=1,r=n);++m<k;){var P=r==null?n:r[wr(s[m])];P===n&&(m=k,P=c),r=Lr(P)?P.call(r):P}return r}function d_(r,s,c){return r==null?r:vo(r,s,c)}function p_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:vo(r,s,c,m)}var n1=pg(sn),r1=pg(An);function g_(r,s,c){var m=We(r),k=m||oi(r)||As(r);if(s=Pe(s,4),c==null){var P=r&&r.constructor;k?c=m?new P:[]:jt(r)?c=Lr(P)?vs($a(r)):{}:c={}}return(k?Wn:mr)(r,function($,U,z){return s(c,$,U,z)}),c}function y_(r,s){return r==null?!0:El(r,s)}function m_(r,s,c){return r==null?r:X0(r,s,Cl(c))}function b_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:X0(r,s,Cl(c),m)}function Cs(r){return r==null?[]:rl(r,sn(r))}function w_(r){return r==null?[]:rl(r,An(r))}function v_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Ti(Yn(r),s,c)}function x_(r,s,c){return s=jr(s),c===n?(c=s,s=0):c=jr(c),r=Yn(r),kS(r,s,c)}function E_(r,s,c){if(c&&typeof c!="boolean"&&mn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=jr(r),s===n?(s=r,r=0):s=jr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var k=k0();return fn(r+k*(s-r+eE("1e-"+((k+"").length-1))),s)}return wl(r,s)}var S_=Es(function(r,s,c){return s=s.toLowerCase(),r+(c?i1(s):s)});function i1(r){return Hl(vt(r).toLowerCase())}function s1(r){return r=vt(r),r&&r.replace(ln,dE).replace(Wx,"")}function A_(r,s,c){r=vt(r),s=Bn(s);var m=r.length;c=c===n?m:Ti(Je(c),0,m);var k=c;return c-=s.length,c>=0&&r.slice(c,k)==s}function C_(r){return r=vt(r),r&&as.test(r)?r.replace(Gr,pE):r}function __(r){return r=vt(r),r&&rr.test(r)?r.replace(Ir,"\\$&"):r}var k_=Es(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),T_=Es(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),I_=ug("toLowerCase");function O_(r,s,c){r=vt(r),s=Je(s);var m=s?gs(r):0;if(!s||m>=s)return r;var k=(s-m)/2;return nu(qa(k),c)+r+nu(Va(k),c)}function F_(r,s,c){r=vt(r),s=Je(s);var m=s?gs(r):0;return s&&m<s?r+nu(s-m,c):r}function B_(r,s,c){r=vt(r),s=Je(s);var m=s?gs(r):0;return s&&m<s?nu(s-m,c)+r:r}function D_(r,s,c){return c||s==null?s=0:s&&(s=+s),ME(vt(r).replace(Yr,""),s||0)}function P_(r,s,c){return(c?mn(r,s,c):s===n)?s=1:s=Je(s),vl(vt(r),s)}function R_(){var r=arguments,s=vt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var L_=Es(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function j_(r,s,c){return c&&typeof c!="number"&&mn(r,s,c)&&(s=c=n),c=c===n?ge:c>>>0,c?(r=vt(r),r&&(typeof s=="string"||s!=null&&!ql(s))&&(s=Bn(s),!s&&ps(r))?si(sr(r),0,c):r.split(s,c)):[]}var N_=Es(function(r,s,c){return r+(c?" ":"")+Hl(s)});function $_(r,s,c){return r=vt(r),c=c==null?0:Ti(Je(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function M_(r,s,c){var m=D.templateSettings;c&&mn(r,s,c)&&(s=n),r=vt(r),s=pu({},s,m,gg);var k=pu({},s.imports,m.imports,gg),P=sn(k),$=rl(k,P),U,z,se=0,oe=s.interpolate||Tn,ae="__p += '",me=sl((s.escape||Tn).source+"|"+oe.source+"|"+(oe===Jr?ct:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),ke="//# sourceURL="+(xt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jx+"]")+`
146
+ `;r.replace(me,function(Ne,it,at,Pn,bn,Rn){return at||(at=Pn),ae+=r.slice(se,Rn).replace(ir,gE),it&&(U=!0,ae+=`' +
147
147
  __e(`+it+`) +
148
- '`),wn&&(z=!0,ae+=`';
149
- `+wn+`;
148
+ '`),bn&&(z=!0,ae+=`';
149
+ `+bn+`;
150
150
  __p += '`),at&&(ae+=`' +
151
151
  ((__t = (`+at+`)) == null ? '' : __t) +
152
- '`),se=Rn+Le.length,Le}),ae+=`';
153
- `;var Re=xt.call(s,"variable")&&s.variable;if(!Re)ae=`with (obj) {
152
+ '`),se=Rn+Ne.length,Ne}),ae+=`';
153
+ `;var je=xt.call(s,"variable")&&s.variable;if(!je)ae=`with (obj) {
154
154
  `+ae+`
155
155
  }
156
- `;else if(ye.test(Re))throw new Ue(l);ae=(z?ae.replace(dt,""):ae).replace(ut,"$1").replace(ht,"$1;"),ae="function("+(Re||"obj")+`) {
157
- `+(Re?"":`obj || (obj = {});
156
+ `;else if(ye.test(je))throw new Ve(l);ae=(z?ae.replace(gt,""):ae).replace(ut,"$1").replace(dt,"$1;"),ae="function("+(je||"obj")+`) {
157
+ `+(je?"":`obj || (obj = {});
158
158
  `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
161
  `)+ae+`return __p
162
- }`;var Ze=a1(function(){return mt(P,Ce+"return "+ae).apply(n,$)});if(Ze.source=ae,Vl(Ze))throw Ze;return Ze}function U_(r){return wt(r).toLowerCase()}function V_(r){return wt(r).toUpperCase()}function q_(r,s,c){if(r=wt(r),r&&(c||s===n))return y0(r);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=sr(s),P=m0(m,k),$=b0(m,k)+1;return si(m,P,$).join("")}function W_(r,s,c){if(r=wt(r),r&&(c||s===n))return r.slice(0,v0(r)+1);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=b0(m,sr(s))+1;return si(m,0,k).join("")}function K_(r,s,c){if(r=wt(r),r&&(c||s===n))return r.replace(Yr,"");if(!r||!(s=Bn(s)))return r;var m=sr(r),k=m0(m,sr(s));return si(m,k).join("")}function H_(r,s){var c=fe,m=le;if(Nt(s)){var k="separator"in s?s.separator:k;c="length"in s?Ge(s.length):c,m="omission"in s?Bn(s.omission):m}r=wt(r);var P=r.length;if(ps(r)){var $=sr(r);P=$.length}if(c>=P)return r;var U=c-gs(m);if(U<1)return m;var z=$?si($,0,U).join(""):r.slice(0,U);if(k===n)return z+m;if($&&(U+=z.length-U),ql(k)){if(r.slice(U).search(k)){var se,oe=z;for(k.global||(k=sl(k.source,wt(lt.exec(k))+"g")),k.lastIndex=0;se=k.exec(oe);)var ae=se.index;z=z.slice(0,ae===n?U:ae)}}else if(r.indexOf(Bn(k),U)!=U){var me=z.lastIndexOf(k);me>-1&&(z=z.slice(0,me))}return z+m}function z_(r){return r=wt(r),r&&xi.test(r)?r.replace(st,EE):r}var G_=Es(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Hl=ug("toUpperCase");function o1(r,s,c){return r=wt(r),s=c?n:s,s===n?mE(r)?CE(r):uE(r):r.match(s)||[]}var a1=tt(function(r,s){try{return On(r,n,s)}catch(c){return Vl(c)?c:new Ue(c)}}),J_=Pr(function(r,s){return Wn(s,function(c){c=wr(c),Br(r,c,Ml(r[c],r))}),r});function Y_(r){var s=r==null?0:r.length,c=Be();return r=s?Pt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],tt(function(m){for(var k=-1;++k<s;){var P=r[k];if(On(P[0],this,m))return On(P[1],this,m)}})}function X_(r){return ES(zn(r,g))}function zl(r){return function(){return r}}function Q_(r,s){return r==null||r!==r?s:r}var Z_=lg(),e8=lg(!0);function _n(r){return r}function Gl(r){return M0(typeof r=="function"?r:zn(r,g))}function t8(r){return V0(zn(r,g))}function n8(r,s){return q0(r,zn(s,g))}var r8=tt(function(r,s){return function(c){return bo(c,r,s)}}),i8=tt(function(r,s){return function(c){return bo(r,c,s)}});function Jl(r,s,c){var m=rn(s),k=Ja(s,m);c==null&&!(Nt(s)&&(k.length||!m.length))&&(c=s,s=r,r=this,k=Ja(s,rn(s)));var P=!(Nt(c)&&"chain"in c)||!!c.chain,$=Lr(r);return Wn(k,function(U){var z=s[U];r[U]=z,$&&(r.prototype[U]=function(){var se=this.__chain__;if(P||se){var oe=r(this.__wrapped__),ae=oe.__actions__=Sn(this.__actions__);return ae.push({func:z,args:arguments,thisArg:r}),oe.__chain__=se,oe}return z.apply(r,Zr([this.value()],arguments))})}),r}function s8(){return un._===this&&(un._=FE),this}function Yl(){}function o8(r){return r=Ge(r),tt(function(s){return W0(s,r)})}var a8=kl(Pt),u8=kl(f0),c8=kl(Qc);function u1(r){return Pl(r)?Zc(wr(r)):$S(r)}function l8(r){return function(s){return r==null?n:Ii(r,s)}}var f8=hg(),h8=hg(!0);function Xl(){return[]}function Ql(){return!1}function d8(){return{}}function p8(){return""}function g8(){return!0}function y8(r,s){if(r=Ge(r),r<1||r>_e)return[];var c=ge,m=hn(r,ge);s=Be(s),r-=ge;for(var k=nl(m,s);++c<r;)s(c);return k}function m8(r){return qe(r)?Pt(r,wr):Dn(r)?[r]:Sn(Tg(wt(r)))}function b8(r){var s=++IE;return wt(r)+s}var w8=tu(function(r,s){return r+s},0),v8=Tl("ceil"),x8=tu(function(r,s){return r/s},1),E8=Tl("floor");function S8(r){return r&&r.length?Ga(r,_n,dl):n}function A8(r,s){return r&&r.length?Ga(r,Be(s,2),dl):n}function C8(r){return p0(r,_n)}function _8(r,s){return p0(r,Be(s,2))}function k8(r){return r&&r.length?Ga(r,_n,ml):n}function T8(r,s){return r&&r.length?Ga(r,Be(s,2),ml):n}var I8=tu(function(r,s){return r*s},1),O8=Tl("round"),F8=tu(function(r,s){return r-s},0);function B8(r){return r&&r.length?tl(r,_n):0}function D8(r,s){return r&&r.length?tl(r,Be(s,2)):0}return D.after=t3,D.ary=$g,D.assign=V3,D.assignIn=Zg,D.assignInWith=pu,D.assignWith=q3,D.at=W3,D.before=Mg,D.bind=Ml,D.bindAll=J_,D.bindKey=Ug,D.castArray=d3,D.chain=Lg,D.chunk=EA,D.compact=SA,D.concat=AA,D.cond=Y_,D.conforms=X_,D.constant=zl,D.countBy=BC,D.create=K3,D.curry=Vg,D.curryRight=qg,D.debounce=Wg,D.defaults=H3,D.defaultsDeep=z3,D.defer=n3,D.delay=r3,D.difference=CA,D.differenceBy=_A,D.differenceWith=kA,D.drop=TA,D.dropRight=IA,D.dropRightWhile=OA,D.dropWhile=FA,D.fill=BA,D.filter=PC,D.flatMap=jC,D.flatMapDeep=NC,D.flatMapDepth=$C,D.flatten=Bg,D.flattenDeep=DA,D.flattenDepth=PA,D.flip=i3,D.flow=Z_,D.flowRight=e8,D.fromPairs=RA,D.functions=e_,D.functionsIn=t_,D.groupBy=MC,D.initial=jA,D.intersection=NA,D.intersectionBy=$A,D.intersectionWith=MA,D.invert=r_,D.invertBy=i_,D.invokeMap=VC,D.iteratee=Gl,D.keyBy=qC,D.keys=rn,D.keysIn=Cn,D.map=uu,D.mapKeys=o_,D.mapValues=a_,D.matches=t8,D.matchesProperty=n8,D.memoize=lu,D.merge=u_,D.mergeWith=e1,D.method=r8,D.methodOf=i8,D.mixin=Jl,D.negate=fu,D.nthArg=o8,D.omit=c_,D.omitBy=l_,D.once=s3,D.orderBy=WC,D.over=a8,D.overArgs=o3,D.overEvery=u8,D.overSome=c8,D.partial=Ul,D.partialRight=Kg,D.partition=KC,D.pick=f_,D.pickBy=t1,D.property=u1,D.propertyOf=l8,D.pull=WA,D.pullAll=Pg,D.pullAllBy=KA,D.pullAllWith=HA,D.pullAt=zA,D.range=f8,D.rangeRight=h8,D.rearg=a3,D.reject=GC,D.remove=GA,D.rest=u3,D.reverse=Nl,D.sampleSize=YC,D.set=d_,D.setWith=p_,D.shuffle=XC,D.slice=JA,D.sortBy=e3,D.sortedUniq=nC,D.sortedUniqBy=rC,D.split=j_,D.spread=c3,D.tail=iC,D.take=sC,D.takeRight=oC,D.takeRightWhile=aC,D.takeWhile=uC,D.tap=SC,D.throttle=l3,D.thru=au,D.toArray=Yg,D.toPairs=n1,D.toPairsIn=r1,D.toPath=m8,D.toPlainObject=Qg,D.transform=g_,D.unary=f3,D.union=cC,D.unionBy=lC,D.unionWith=fC,D.uniq=hC,D.uniqBy=dC,D.uniqWith=pC,D.unset=y_,D.unzip=$l,D.unzipWith=Rg,D.update=m_,D.updateWith=b_,D.values=Cs,D.valuesIn=w_,D.without=gC,D.words=o1,D.wrap=h3,D.xor=yC,D.xorBy=mC,D.xorWith=bC,D.zip=wC,D.zipObject=vC,D.zipObjectDeep=xC,D.zipWith=EC,D.entries=n1,D.entriesIn=r1,D.extend=Zg,D.extendWith=pu,Jl(D,D),D.add=w8,D.attempt=a1,D.camelCase=S_,D.capitalize=i1,D.ceil=v8,D.clamp=v_,D.clone=p3,D.cloneDeep=y3,D.cloneDeepWith=m3,D.cloneWith=g3,D.conformsTo=b3,D.deburr=s1,D.defaultTo=Q_,D.divide=x8,D.endsWith=A_,D.eq=ar,D.escape=C_,D.escapeRegExp=__,D.every=DC,D.find=RC,D.findIndex=Og,D.findKey=G3,D.findLast=LC,D.findLastIndex=Fg,D.findLastKey=J3,D.floor=E8,D.forEach=jg,D.forEachRight=Ng,D.forIn=Y3,D.forInRight=X3,D.forOwn=Q3,D.forOwnRight=Z3,D.get=Wl,D.gt=w3,D.gte=v3,D.has=n_,D.hasIn=Kl,D.head=Dg,D.identity=_n,D.includes=UC,D.indexOf=LA,D.inRange=x_,D.invoke=s_,D.isArguments=Bi,D.isArray=qe,D.isArrayBuffer=x3,D.isArrayLike=An,D.isArrayLikeObject=zt,D.isBoolean=E3,D.isBuffer=oi,D.isDate=S3,D.isElement=A3,D.isEmpty=C3,D.isEqual=_3,D.isEqualWith=k3,D.isError=Vl,D.isFinite=T3,D.isFunction=Lr,D.isInteger=Hg,D.isLength=hu,D.isMap=zg,D.isMatch=I3,D.isMatchWith=O3,D.isNaN=F3,D.isNative=B3,D.isNil=P3,D.isNull=D3,D.isNumber=Gg,D.isObject=Nt,D.isObjectLike=$t,D.isPlainObject=Ao,D.isRegExp=ql,D.isSafeInteger=R3,D.isSet=Jg,D.isString=du,D.isSymbol=Dn,D.isTypedArray=As,D.isUndefined=L3,D.isWeakMap=j3,D.isWeakSet=N3,D.join=UA,D.kebabCase=k_,D.last=Jn,D.lastIndexOf=VA,D.lowerCase=T_,D.lowerFirst=I_,D.lt=$3,D.lte=M3,D.max=S8,D.maxBy=A8,D.mean=C8,D.meanBy=_8,D.min=k8,D.minBy=T8,D.stubArray=Xl,D.stubFalse=Ql,D.stubObject=d8,D.stubString=p8,D.stubTrue=g8,D.multiply=I8,D.nth=qA,D.noConflict=s8,D.noop=Yl,D.now=cu,D.pad=O_,D.padEnd=F_,D.padStart=B_,D.parseInt=D_,D.random=E_,D.reduce=HC,D.reduceRight=zC,D.repeat=P_,D.replace=R_,D.result=h_,D.round=O8,D.runInContext=H,D.sample=JC,D.size=QC,D.snakeCase=L_,D.some=ZC,D.sortedIndex=YA,D.sortedIndexBy=XA,D.sortedIndexOf=QA,D.sortedLastIndex=ZA,D.sortedLastIndexBy=eC,D.sortedLastIndexOf=tC,D.startCase=N_,D.startsWith=$_,D.subtract=F8,D.sum=B8,D.sumBy=D8,D.template=M_,D.times=y8,D.toFinite=jr,D.toInteger=Ge,D.toLength=Xg,D.toLower=U_,D.toNumber=Yn,D.toSafeInteger=U3,D.toString=wt,D.toUpper=V_,D.trim=q_,D.trimEnd=W_,D.trimStart=K_,D.truncate=H_,D.unescape=z_,D.uniqueId=b8,D.upperCase=G_,D.upperFirst=Hl,D.each=jg,D.eachRight=Ng,D.first=Dg,Jl(D,function(){var r={};return mr(D,function(s,c){xt.call(D.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),D.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){D[r].placeholder=D}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:en(Ge(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=hn(c,m.__takeCount__):m.__views__.push({size:hn(c,ge),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==Se||c==Fe;ot.prototype[r]=function(k){var P=this.clone();return P.__iteratees__.push({iteratee:Be(k,3),type:c}),P.__filtered__=P.__filtered__||m,P}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(_n)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=tt(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return bo(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(fu(Be(r)))},ot.prototype.slice=function(r,s){r=Ge(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ge(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(ge)},mr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),k=D[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);k&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,se=U[0],oe=z||qe($),ae=function(it){var at=k.apply(D,Zr([it],U));return m&&me?at[0]:at};oe&&c&&typeof se=="function"&&se.length!=1&&(z=oe=!1);var me=this.__chain__,Ce=!!this.__actions__.length,Re=P&&!me,Ze=z&&!Ce;if(!P&&oe){$=Ze?$:new ot(this);var Le=r.apply($,U);return Le.__actions__.push({func:au,args:[ae],thisArg:n}),new Hn(Le,me)}return Re&&Ze?r.apply(this,U):(Le=this.thru(ae),Re?m?Le.value()[0]:Le.value():Le)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Da[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var k=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(qe(P)?P:[],k)}return this[c](function($){return s.apply(qe($)?$:[],k)})}}),mr(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";xt.call(ws,m)||(ws[m]=[]),ws[m].push({name:s,func:c})}}),ws[eu(n,T).name]=[{name:"wrapper",func:n}],ot.prototype.clone=zE,ot.prototype.reverse=GE,ot.prototype.value=JE,D.prototype.at=AC,D.prototype.chain=CC,D.prototype.commit=_C,D.prototype.next=kC,D.prototype.plant=IC,D.prototype.reverse=OC,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=FC,D.prototype.first=D.prototype.head,lo&&(D.prototype[lo]=TC),D},ys=_E();Ai?((Ai.exports=ys)._=ys,Gc._=ys):un._=ys}).call(Xn)}(Xo,Xo.exports);var qr=Xo.exports;const ln=mu(qr),t2={ShortenedText:Ke.div`
162
+ }`;var et=a1(function(){return bt(P,ke+"return "+ae).apply(n,$)});if(et.source=ae,Vl(et))throw et;return et}function U_(r){return vt(r).toLowerCase()}function V_(r){return vt(r).toUpperCase()}function q_(r,s,c){if(r=vt(r),r&&(c||s===n))return y0(r);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=sr(s),P=m0(m,k),$=b0(m,k)+1;return si(m,P,$).join("")}function W_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.slice(0,v0(r)+1);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=b0(m,sr(s))+1;return si(m,0,k).join("")}function K_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.replace(Yr,"");if(!r||!(s=Bn(s)))return r;var m=sr(r),k=m0(m,sr(s));return si(m,k).join("")}function H_(r,s){var c=fe,m=le;if(jt(s)){var k="separator"in s?s.separator:k;c="length"in s?Je(s.length):c,m="omission"in s?Bn(s.omission):m}r=vt(r);var P=r.length;if(ps(r)){var $=sr(r);P=$.length}if(c>=P)return r;var U=c-gs(m);if(U<1)return m;var z=$?si($,0,U).join(""):r.slice(0,U);if(k===n)return z+m;if($&&(U+=z.length-U),ql(k)){if(r.slice(U).search(k)){var se,oe=z;for(k.global||(k=sl(k.source,vt(lt.exec(k))+"g")),k.lastIndex=0;se=k.exec(oe);)var ae=se.index;z=z.slice(0,ae===n?U:ae)}}else if(r.indexOf(Bn(k),U)!=U){var me=z.lastIndexOf(k);me>-1&&(z=z.slice(0,me))}return z+m}function z_(r){return r=vt(r),r&&xi.test(r)?r.replace(st,EE):r}var G_=Es(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Hl=ug("toUpperCase");function o1(r,s,c){return r=vt(r),s=c?n:s,s===n?mE(r)?CE(r):uE(r):r.match(s)||[]}var a1=tt(function(r,s){try{return On(r,n,s)}catch(c){return Vl(c)?c:new Ve(c)}}),J_=Pr(function(r,s){return Wn(s,function(c){c=wr(c),Br(r,c,Ml(r[c],r))}),r});function Y_(r){var s=r==null?0:r.length,c=Pe();return r=s?Dt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],tt(function(m){for(var k=-1;++k<s;){var P=r[k];if(On(P[0],this,m))return On(P[1],this,m)}})}function X_(r){return ES(zn(r,g))}function zl(r){return function(){return r}}function Q_(r,s){return r==null||r!==r?s:r}var Z_=lg(),e8=lg(!0);function Cn(r){return r}function Gl(r){return M0(typeof r=="function"?r:zn(r,g))}function t8(r){return V0(zn(r,g))}function n8(r,s){return q0(r,zn(s,g))}var r8=tt(function(r,s){return function(c){return bo(c,r,s)}}),i8=tt(function(r,s){return function(c){return bo(r,c,s)}});function Jl(r,s,c){var m=sn(s),k=Ja(s,m);c==null&&!(jt(s)&&(k.length||!m.length))&&(c=s,s=r,r=this,k=Ja(s,sn(s)));var P=!(jt(c)&&"chain"in c)||!!c.chain,$=Lr(r);return Wn(k,function(U){var z=s[U];r[U]=z,$&&(r.prototype[U]=function(){var se=this.__chain__;if(P||se){var oe=r(this.__wrapped__),ae=oe.__actions__=En(this.__actions__);return ae.push({func:z,args:arguments,thisArg:r}),oe.__chain__=se,oe}return z.apply(r,Zr([this.value()],arguments))})}),r}function s8(){return un._===this&&(un._=FE),this}function Yl(){}function o8(r){return r=Je(r),tt(function(s){return W0(s,r)})}var a8=kl(Dt),u8=kl(f0),c8=kl(Qc);function u1(r){return Pl(r)?Zc(wr(r)):$S(r)}function l8(r){return function(s){return r==null?n:Ii(r,s)}}var f8=hg(),h8=hg(!0);function Xl(){return[]}function Ql(){return!1}function d8(){return{}}function p8(){return""}function g8(){return!0}function y8(r,s){if(r=Je(r),r<1||r>Te)return[];var c=ge,m=fn(r,ge);s=Pe(s),r-=ge;for(var k=nl(m,s);++c<r;)s(c);return k}function m8(r){return We(r)?Dt(r,wr):Dn(r)?[r]:En(Tg(vt(r)))}function b8(r){var s=++IE;return vt(r)+s}var w8=tu(function(r,s){return r+s},0),v8=Tl("ceil"),x8=tu(function(r,s){return r/s},1),E8=Tl("floor");function S8(r){return r&&r.length?Ga(r,Cn,dl):n}function A8(r,s){return r&&r.length?Ga(r,Pe(s,2),dl):n}function C8(r){return p0(r,Cn)}function _8(r,s){return p0(r,Pe(s,2))}function k8(r){return r&&r.length?Ga(r,Cn,ml):n}function T8(r,s){return r&&r.length?Ga(r,Pe(s,2),ml):n}var I8=tu(function(r,s){return r*s},1),O8=Tl("round"),F8=tu(function(r,s){return r-s},0);function B8(r){return r&&r.length?tl(r,Cn):0}function D8(r,s){return r&&r.length?tl(r,Pe(s,2)):0}return D.after=t3,D.ary=$g,D.assign=V3,D.assignIn=Zg,D.assignInWith=pu,D.assignWith=q3,D.at=W3,D.before=Mg,D.bind=Ml,D.bindAll=J_,D.bindKey=Ug,D.castArray=d3,D.chain=Lg,D.chunk=EA,D.compact=SA,D.concat=AA,D.cond=Y_,D.conforms=X_,D.constant=zl,D.countBy=BC,D.create=K3,D.curry=Vg,D.curryRight=qg,D.debounce=Wg,D.defaults=H3,D.defaultsDeep=z3,D.defer=n3,D.delay=r3,D.difference=CA,D.differenceBy=_A,D.differenceWith=kA,D.drop=TA,D.dropRight=IA,D.dropRightWhile=OA,D.dropWhile=FA,D.fill=BA,D.filter=PC,D.flatMap=jC,D.flatMapDeep=NC,D.flatMapDepth=$C,D.flatten=Bg,D.flattenDeep=DA,D.flattenDepth=PA,D.flip=i3,D.flow=Z_,D.flowRight=e8,D.fromPairs=RA,D.functions=e_,D.functionsIn=t_,D.groupBy=MC,D.initial=jA,D.intersection=NA,D.intersectionBy=$A,D.intersectionWith=MA,D.invert=r_,D.invertBy=i_,D.invokeMap=VC,D.iteratee=Gl,D.keyBy=qC,D.keys=sn,D.keysIn=An,D.map=uu,D.mapKeys=o_,D.mapValues=a_,D.matches=t8,D.matchesProperty=n8,D.memoize=lu,D.merge=u_,D.mergeWith=e1,D.method=r8,D.methodOf=i8,D.mixin=Jl,D.negate=fu,D.nthArg=o8,D.omit=c_,D.omitBy=l_,D.once=s3,D.orderBy=WC,D.over=a8,D.overArgs=o3,D.overEvery=u8,D.overSome=c8,D.partial=Ul,D.partialRight=Kg,D.partition=KC,D.pick=f_,D.pickBy=t1,D.property=u1,D.propertyOf=l8,D.pull=WA,D.pullAll=Pg,D.pullAllBy=KA,D.pullAllWith=HA,D.pullAt=zA,D.range=f8,D.rangeRight=h8,D.rearg=a3,D.reject=GC,D.remove=GA,D.rest=u3,D.reverse=Nl,D.sampleSize=YC,D.set=d_,D.setWith=p_,D.shuffle=XC,D.slice=JA,D.sortBy=e3,D.sortedUniq=nC,D.sortedUniqBy=rC,D.split=j_,D.spread=c3,D.tail=iC,D.take=sC,D.takeRight=oC,D.takeRightWhile=aC,D.takeWhile=uC,D.tap=SC,D.throttle=l3,D.thru=au,D.toArray=Yg,D.toPairs=n1,D.toPairsIn=r1,D.toPath=m8,D.toPlainObject=Qg,D.transform=g_,D.unary=f3,D.union=cC,D.unionBy=lC,D.unionWith=fC,D.uniq=hC,D.uniqBy=dC,D.uniqWith=pC,D.unset=y_,D.unzip=$l,D.unzipWith=Rg,D.update=m_,D.updateWith=b_,D.values=Cs,D.valuesIn=w_,D.without=gC,D.words=o1,D.wrap=h3,D.xor=yC,D.xorBy=mC,D.xorWith=bC,D.zip=wC,D.zipObject=vC,D.zipObjectDeep=xC,D.zipWith=EC,D.entries=n1,D.entriesIn=r1,D.extend=Zg,D.extendWith=pu,Jl(D,D),D.add=w8,D.attempt=a1,D.camelCase=S_,D.capitalize=i1,D.ceil=v8,D.clamp=v_,D.clone=p3,D.cloneDeep=y3,D.cloneDeepWith=m3,D.cloneWith=g3,D.conformsTo=b3,D.deburr=s1,D.defaultTo=Q_,D.divide=x8,D.endsWith=A_,D.eq=ar,D.escape=C_,D.escapeRegExp=__,D.every=DC,D.find=RC,D.findIndex=Og,D.findKey=G3,D.findLast=LC,D.findLastIndex=Fg,D.findLastKey=J3,D.floor=E8,D.forEach=jg,D.forEachRight=Ng,D.forIn=Y3,D.forInRight=X3,D.forOwn=Q3,D.forOwnRight=Z3,D.get=Wl,D.gt=w3,D.gte=v3,D.has=n_,D.hasIn=Kl,D.head=Dg,D.identity=Cn,D.includes=UC,D.indexOf=LA,D.inRange=x_,D.invoke=s_,D.isArguments=Bi,D.isArray=We,D.isArrayBuffer=x3,D.isArrayLike=Sn,D.isArrayLikeObject=Gt,D.isBoolean=E3,D.isBuffer=oi,D.isDate=S3,D.isElement=A3,D.isEmpty=C3,D.isEqual=_3,D.isEqualWith=k3,D.isError=Vl,D.isFinite=T3,D.isFunction=Lr,D.isInteger=Hg,D.isLength=hu,D.isMap=zg,D.isMatch=I3,D.isMatchWith=O3,D.isNaN=F3,D.isNative=B3,D.isNil=P3,D.isNull=D3,D.isNumber=Gg,D.isObject=jt,D.isObjectLike=Nt,D.isPlainObject=Ao,D.isRegExp=ql,D.isSafeInteger=R3,D.isSet=Jg,D.isString=du,D.isSymbol=Dn,D.isTypedArray=As,D.isUndefined=L3,D.isWeakMap=j3,D.isWeakSet=N3,D.join=UA,D.kebabCase=k_,D.last=Jn,D.lastIndexOf=VA,D.lowerCase=T_,D.lowerFirst=I_,D.lt=$3,D.lte=M3,D.max=S8,D.maxBy=A8,D.mean=C8,D.meanBy=_8,D.min=k8,D.minBy=T8,D.stubArray=Xl,D.stubFalse=Ql,D.stubObject=d8,D.stubString=p8,D.stubTrue=g8,D.multiply=I8,D.nth=qA,D.noConflict=s8,D.noop=Yl,D.now=cu,D.pad=O_,D.padEnd=F_,D.padStart=B_,D.parseInt=D_,D.random=E_,D.reduce=HC,D.reduceRight=zC,D.repeat=P_,D.replace=R_,D.result=h_,D.round=O8,D.runInContext=H,D.sample=JC,D.size=QC,D.snakeCase=L_,D.some=ZC,D.sortedIndex=YA,D.sortedIndexBy=XA,D.sortedIndexOf=QA,D.sortedLastIndex=ZA,D.sortedLastIndexBy=eC,D.sortedLastIndexOf=tC,D.startCase=N_,D.startsWith=$_,D.subtract=F8,D.sum=B8,D.sumBy=D8,D.template=M_,D.times=y8,D.toFinite=jr,D.toInteger=Je,D.toLength=Xg,D.toLower=U_,D.toNumber=Yn,D.toSafeInteger=U3,D.toString=vt,D.toUpper=V_,D.trim=q_,D.trimEnd=W_,D.trimStart=K_,D.truncate=H_,D.unescape=z_,D.uniqueId=b8,D.upperCase=G_,D.upperFirst=Hl,D.each=jg,D.eachRight=Ng,D.first=Dg,Jl(D,function(){var r={};return mr(D,function(s,c){xt.call(D.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),D.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){D[r].placeholder=D}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:tn(Je(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=fn(c,m.__takeCount__):m.__views__.push({size:fn(c,ge),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==Se||c==De;ot.prototype[r]=function(k){var P=this.clone();return P.__iteratees__.push({iteratee:Pe(k,3),type:c}),P.__filtered__=P.__filtered__||m,P}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(Cn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=tt(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return bo(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(fu(Pe(r)))},ot.prototype.slice=function(r,s){r=Je(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Je(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(ge)},mr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),k=D[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);k&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,se=U[0],oe=z||We($),ae=function(it){var at=k.apply(D,Zr([it],U));return m&&me?at[0]:at};oe&&c&&typeof se=="function"&&se.length!=1&&(z=oe=!1);var me=this.__chain__,ke=!!this.__actions__.length,je=P&&!me,et=z&&!ke;if(!P&&oe){$=et?$:new ot(this);var Ne=r.apply($,U);return Ne.__actions__.push({func:au,args:[ae],thisArg:n}),new Hn(Ne,me)}return je&&et?r.apply(this,U):(Ne=this.thru(ae),je?m?Ne.value()[0]:Ne.value():Ne)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Da[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var k=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(We(P)?P:[],k)}return this[c](function($){return s.apply(We($)?$:[],k)})}}),mr(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";xt.call(ws,m)||(ws[m]=[]),ws[m].push({name:s,func:c})}}),ws[eu(n,T).name]=[{name:"wrapper",func:n}],ot.prototype.clone=zE,ot.prototype.reverse=GE,ot.prototype.value=JE,D.prototype.at=AC,D.prototype.chain=CC,D.prototype.commit=_C,D.prototype.next=kC,D.prototype.plant=IC,D.prototype.reverse=OC,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=FC,D.prototype.first=D.prototype.head,lo&&(D.prototype[lo]=TC),D},ys=_E();Ai?((Ai.exports=ys)._=ys,Gc._=ys):un._=ys}).call(Xn)}(Xo,Xo.exports);var qr=Xo.exports;const Mt=mu(qr),t2={ShortenedText:He.div`
163
163
  max-width: ${({$maxWidth:e})=>e}px;
164
164
  overflow: hidden;
165
165
  white-space: nowrap;
166
166
  text-overflow: ellipsis;
167
- `},Hi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return x.jsx(V.Tooltip,{title:e,placement:"top",children:i})}return x.jsx(V.Tooltip,{title:e,children:x.jsx(t2.ShortenedText,{$maxWidth:n,children:e})})},n2=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return x.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[x.jsx(V.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),x.jsxs(V.Space,{children:[x.jsx(V.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),x.jsx(V.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},r2=Ke.div`
167
+ `},Hi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return x.jsx(V.Tooltip,{title:e,placement:"top",children:i})}return x.jsx(V.Tooltip,{title:e,children:x.jsx(t2.ShortenedText,{$maxWidth:n,children:e})})},n2=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return x.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[x.jsx(V.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),x.jsxs(V.Space,{children:[x.jsx(V.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),x.jsx(V.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},r2=He.div`
168
168
  td {
169
169
  cursor: ${({$isCursorPointer:e})=>e&&"pointer"};
170
170
  }
@@ -204,7 +204,7 @@ function print() { __p += __j.call(arguments, '') }
204
204
  && .ant-table-expanded-row-fixed {
205
205
  width: auto !important;
206
206
  }
207
- `,i2=Ke.div`
207
+ `,i2=He.div`
208
208
  && .ant-table-row .hideable {
209
209
  display: none;
210
210
  }
@@ -214,29 +214,29 @@ function print() { __p += __j.call(arguments, '') }
214
214
  grid-template-columns: repeat(2, 1fr);
215
215
  column-gap: 4px;
216
216
  }
217
- `,jh={TableContainer:r2,HideableControls:i2},Nh=Ke(V.Button)`
217
+ `,jh={TableContainer:r2,HideableControls:i2},Nh=He(V.Button)`
218
218
  height: 24px !important;
219
- `,s2=Ke.div`
219
+ `,s2=He.div`
220
220
  text-align: ${({$align:e})=>e};
221
- `,$h=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>x.jsx(V.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?x.jsxs(V.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),x.jsx(V.Tooltip,{title:x.jsx(x.Fragment,{children:n(e.slice(t))}),children:x.jsxs(V.Tag,{children:["+",e.length-t]},"more")})]}):x.jsx(V.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Mh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Uh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>f===null?x.jsx("div",{children:"null"}):typeof f=="object"&&!Array.isArray(f)?Mh(f)?x.jsx($h,{tags:Object.entries(f).map(([h,d])=>`${h}: ${String(d)}`),trimLength:u}):x.jsx(Hi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(h=>h&&!Array.isArray(h))?x.jsx($h,{tags:f.map(h=>h?h.toLocaleString():"null"),trimLength:u}):x.jsx(Hi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?x.jsx(vn.CheckOutlined,{style:{color:"green"}}):x.jsx(vn.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?x.jsx(Hi,{trimLength:u,text:String(f)}):typeof f=="string"?x.jsx(Hi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?x.jsx(Hi,{trimLength:u,text:a}):x.jsx(Hi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:h,confirm:d,clearFilters:g,close:v})=>x.jsx(n2,{setSelectedKeys:f,selectedKeys:h,confirm:d,clearFilters:g,close:v}),filterIcon:f=>x.jsx(vn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,h)=>{const{dataIndex:d}=o,g=Array.isArray(d)?qr.get(h,d):h[d];if(typeof g=="object"&&!Array.isArray(g))return JSON.stringify(g).toLowerCase().includes(f.toLowerCase());if(Array.isArray(g))return g.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof g=="boolean"){const v=f.toLowerCase()==="true";return g===v}return typeof g=="number"?String(g).includes(f.toLowerCase()):typeof g=="string"?g.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,h)=>{const{dataIndex:d}=o,g=Array.isArray(d)?qr.get(f,d):f[d],v=Array.isArray(d)?qr.get(h,d):h[d];return typeof g=="object"&&!Array.isArray(g)&&g!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(g).length-Object.keys(v).length:Object.keys(g).length?-1:1:Array.isArray(g)?Array.isArray(v)?g.length-v.length:g.length?-1:1:typeof g=="boolean"?g===v?0:g?-1:1:typeof g=="number"?typeof v=="number"?g-v:g?-1:1:typeof g=="string"?typeof v=="string"?g.localeCompare(v):g?-1:1:0}}})},Vh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>x.jsxs(s2,{$align:"right",className:"hideable",children:[x.jsx(Nh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||x.jsx(vn.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),x.jsx(Nh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||x.jsx(vn.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},qh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:h,withoutControls:d=!1,tableProps:g})=>{const v=vr.useNavigate();if(!i)return null;const C=Uh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const S=d?C:Vh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:g?.editIcon,deleteIcon:g?.deleteIcon});if(!S)return null;const E=w=>`Total: ${w}`;return x.jsx(jh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:g?.borderless,$isTotalLeft:g?.isTotalLeft,children:x.jsx(jh.HideableControls,{children:x.jsx(V.Table,{dataSource:n,columns:S,pagination:{position:g?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:h?{type:"checkbox",selectedRowKeys:h.selectedRowKeys,onChange:(w,T)=>{h.onChange(w,T.map(({internalDataForControls:j})=>({name:j.entryName,endpoint:`${j.deletePathPrefix}/${j.apiGroupAndVersion}${j.namespace?`/namespaces/${j.namespace}`:""}/${j.typeName}/${j.entryName}`})))}}:void 0,onRow:w=>({onClick:()=>{if(o&&a){const T=qr.get(w,a),j=typeof T=="string"?T:JSON.stringify(T),R=o.replaceAll("~recordValue~",j);v(R)}}})})})})};function Qo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(h,d){if(!o[h]){if(!i[h]){var g=typeof Qo=="function"&&Qo;if(!d&&g)return g(h,!0);if(l)return l(h,!0);var v=new Error("Cannot find module '"+h+"'");throw v.code="MODULE_NOT_FOUND",v}var C=o[h]={exports:{}};i[h][0].call(C.exports,function(S){var E=i[h][1][S];return u(E||S)},C,C.exports,n,i,o,a)}return o[h].exports}for(var l=typeof Qo=="function"&&Qo,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,h,d,g,v,C,S,E,w,T,j,R,_,O,F,B;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],h={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},d={Data:1,Get:2,Set:4},g={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(p,A){if(!p)throw new Error("ASSERT: "+A)}function J(p){return p>=48&&p<=57}function fe(p){return"0123456789abcdefABCDEF".indexOf(p)>=0}function le(p){return"01234567".indexOf(p)>=0}function de(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(p)>=0}function be(p){return p===10||p===13||p===8232||p===8233}function Se(p){return p==64||p===36||p===95||p>=65&&p<=90||p>=97&&p<=122||p===92||p>=128&&v.NonAsciiIdentifierStart.test(String.fromCharCode(p))}function pe(p){return p===36||p===95||p>=65&&p<=90||p>=97&&p<=122||p>=48&&p<=57||p===92||p>=128&&v.NonAsciiIdentifierPart.test(String.fromCharCode(p))}function Fe(p){switch(p){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function De(p){switch(p){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function _e(p){return p==="eval"||p==="arguments"}function Ye(p){if(E&&De(p))return!0;switch(p.length){case 2:return p==="if"||p==="in"||p==="do";case 3:return p==="var"||p==="for"||p==="new"||p==="try"||p==="let";case 4:return p==="this"||p==="else"||p==="case"||p==="void"||p==="with"||p==="enum";case 5:return p==="while"||p==="break"||p==="catch"||p==="throw"||p==="const"||p==="yield"||p==="class"||p==="super";case 6:return p==="return"||p==="typeof"||p==="delete"||p==="switch"||p==="export"||p==="import";case 7:return p==="default"||p==="finally"||p==="extends";case 8:return p==="function"||p==="continue"||p==="debugger";case 10:return p==="instanceof";default:return!1}}function we(p,A,N,K,ne){var he;W(typeof N=="number","Comment must have valid position"),!(F.lastCommentStart>=N)&&(F.lastCommentStart=N,he={type:p,value:A},B.range&&(he.range=[N,K]),B.loc&&(he.loc=ne),B.comments.push(he),B.attachComment&&(B.leadingComments.push(he),B.trailingComments.push(he)))}function ge(p){var A,N,K,ne;for(A=w-p,N={start:{line:T,column:w-j-p}};w<R;)if(K=S.charCodeAt(w),++w,be(K)){B.comments&&(ne=S.slice(A+p,w-1),N.end={line:T,column:w-j-1},we("Line",ne,A,w-1,N)),K===13&&S.charCodeAt(w)===10&&++w,++T,j=w;return}B.comments&&(ne=S.slice(A+p,w),N.end={line:T,column:w-j},we("Line",ne,A,w,N))}function We(){var p,A,N,K;for(B.comments&&(p=w-2,A={start:{line:T,column:w-j-2}});w<R;)if(N=S.charCodeAt(w),be(N))N===13&&S.charCodeAt(w+1)===10&&++w,++T,++w,j=w,w>=R&&ke({},g.UnexpectedToken,"ILLEGAL");else if(N===42){if(S.charCodeAt(w+1)===47){++w,++w,B.comments&&(K=S.slice(p+2,w-2),A.end={line:T,column:w-j},we("Block",K,p,w,A));return}++w}else++w;ke({},g.UnexpectedToken,"ILLEGAL")}function Y(){var p,A;for(A=w===0;w<R;)if(p=S.charCodeAt(w),de(p))++w;else if(be(p))++w,p===13&&S.charCodeAt(w)===10&&++w,++T,j=w,A=!0;else if(p===47)if(p=S.charCodeAt(w+1),p===47)++w,++w,ge(2),A=!0;else if(p===42)++w,++w,We();else break;else if(A&&p===45)if(S.charCodeAt(w+1)===45&&S.charCodeAt(w+2)===62)w+=3,ge(3);else break;else if(p===60)if(S.slice(w+1,w+4)==="!--")++w,++w,++w,++w,ge(4);else break;else break}function X(p){var A,N,K,ne=0;for(N=p==="u"?4:2,A=0;A<N;++A)if(w<R&&fe(S[w]))K=S[w++],ne=ne*16+"0123456789abcdef".indexOf(K.toLowerCase());else return"";return String.fromCharCode(ne)}function re(){var p,A;for(p=S.charCodeAt(w++),A=String.fromCharCode(p),p===92&&(S.charCodeAt(w)!==117&&ke({},g.UnexpectedToken,"ILLEGAL"),++w,p=X("u"),(!p||p==="\\"||!Se(p.charCodeAt(0)))&&ke({},g.UnexpectedToken,"ILLEGAL"),A=p);w<R&&(p=S.charCodeAt(w),!!pe(p));)++w,A+=String.fromCharCode(p),p===92&&(A=A.substr(0,A.length-1),S.charCodeAt(w)!==117&&ke({},g.UnexpectedToken,"ILLEGAL"),++w,p=X("u"),(!p||p==="\\"||!pe(p.charCodeAt(0)))&&ke({},g.UnexpectedToken,"ILLEGAL"),A+=p);return A}function Ae(){var p,A;for(p=w++;w<R;){if(A=S.charCodeAt(w),A===92)return w=p,re();if(pe(A))++w;else break}return S.slice(p,w)}function He(){var p,A,N;return p=w,A=S.charCodeAt(w)===92?re():Ae(),A.length===1?N=u.Identifier:Ye(A)?N=u.Keyword:A==="null"?N=u.NullLiteral:A==="true"||A==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:A,lineNumber:T,lineStart:j,start:p,end:w}}function xe(){var p=w,A=S.charCodeAt(w),N,K=S[w],ne,he,ze;switch(A){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++w,B.tokenize&&(A===40?B.openParenToken=B.tokens.length:A===123&&(B.openCurlyToken=B.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(A),lineNumber:T,lineStart:j,start:p,end:w};default:if(N=S.charCodeAt(w+1),N===61)switch(A){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return w+=2,{type:u.Punctuator,value:String.fromCharCode(A)+String.fromCharCode(N),lineNumber:T,lineStart:j,start:p,end:w};case 33:case 61:return w+=2,S.charCodeAt(w)===61&&++w,{type:u.Punctuator,value:S.slice(p,w),lineNumber:T,lineStart:j,start:p,end:w}}}if(ze=S.substr(w,4),ze===">>>=")return w+=4,{type:u.Punctuator,value:ze,lineNumber:T,lineStart:j,start:p,end:w};if(he=ze.substr(0,3),he===">>>"||he==="<<="||he===">>=")return w+=3,{type:u.Punctuator,value:he,lineNumber:T,lineStart:j,start:p,end:w};if(ne=he.substr(0,2),K===ne[1]&&"+-<>&|".indexOf(K)>=0||ne==="=>")return w+=2,{type:u.Punctuator,value:ne,lineNumber:T,lineStart:j,start:p,end:w};if("<>=!+-*%&|^/".indexOf(K)>=0)return++w,{type:u.Punctuator,value:K,lineNumber:T,lineStart:j,start:p,end:w};ke({},g.UnexpectedToken,"ILLEGAL")}function Oe(p){for(var A="";w<R&&fe(S[w]);)A+=S[w++];return A.length===0&&ke({},g.UnexpectedToken,"ILLEGAL"),Se(S.charCodeAt(w))&&ke({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+A,16),lineNumber:T,lineStart:j,start:p,end:w}}function je(p){for(var A="0"+S[w++];w<R&&le(S[w]);)A+=S[w++];return(Se(S.charCodeAt(w))||J(S.charCodeAt(w)))&&ke({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(A,8),octal:!0,lineNumber:T,lineStart:j,start:p,end:w}}function Pe(){var p,A,N;if(N=S[w],W(J(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),A=w,p="",N!=="."){if(p=S[w++],N=S[w],p==="0"){if(N==="x"||N==="X")return++w,Oe(A);if(le(N))return je(A);N&&J(N.charCodeAt(0))&&ke({},g.UnexpectedToken,"ILLEGAL")}for(;J(S.charCodeAt(w));)p+=S[w++];N=S[w]}if(N==="."){for(p+=S[w++];J(S.charCodeAt(w));)p+=S[w++];N=S[w]}if(N==="e"||N==="E")if(p+=S[w++],N=S[w],(N==="+"||N==="-")&&(p+=S[w++]),J(S.charCodeAt(w)))for(;J(S.charCodeAt(w));)p+=S[w++];else ke({},g.UnexpectedToken,"ILLEGAL");return Se(S.charCodeAt(w))&&ke({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(p),lineNumber:T,lineStart:j,start:A,end:w}}function Ct(){var p="",A,N,K,ne,he,ze,yt=!1,Qt,Ht;for(Qt=T,Ht=j,A=S[w],W(A==="'"||A==='"',"String literal must starts with a quote"),N=w,++w;w<R;)if(K=S[w++],K===A){A="";break}else if(K==="\\")if(K=S[w++],!K||!be(K.charCodeAt(0)))switch(K){case"u":case"x":ze=w,he=X(K),he?p+=he:(w=ze,p+=K);break;case"n":p+=`
222
- `;break;case"r":p+="\r";break;case"t":p+=" ";break;case"b":p+="\b";break;case"f":p+="\f";break;case"v":p+="\v";break;default:le(K)?(ne="01234567".indexOf(K),ne!==0&&(yt=!0),w<R&&le(S[w])&&(yt=!0,ne=ne*8+"01234567".indexOf(S[w++]),"0123".indexOf(K)>=0&&w<R&&le(S[w])&&(ne=ne*8+"01234567".indexOf(S[w++]))),p+=String.fromCharCode(ne)):p+=K;break}else++T,K==="\r"&&S[w]===`
223
- `&&++w,j=w;else{if(be(K.charCodeAt(0)))break;p+=K}return A!==""&&ke({},g.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:p,octal:yt,startLineNumber:Qt,startLineStart:Ht,lineNumber:T,lineStart:j,start:N,end:w}}function nn(p,A){var N;try{N=new RegExp(p,A)}catch{ke({},g.InvalidRegExp)}return N}function Rt(){var p,A,N,K,ne;for(p=S[w],W(p==="/","Regular expression literal must start with a slash"),A=S[w++],N=!1,K=!1;w<R;)if(p=S[w++],A+=p,p==="\\")p=S[w++],be(p.charCodeAt(0))&&ke({},g.UnterminatedRegExp),A+=p;else if(be(p.charCodeAt(0)))ke({},g.UnterminatedRegExp);else if(N)p==="]"&&(N=!1);else if(p==="/"){K=!0;break}else p==="["&&(N=!0);return K||ke({},g.UnterminatedRegExp),ne=A.substr(1,A.length-2),{value:ne,literal:A}}function Lt(){var p,A,N,K;for(A="",N="";w<R&&(p=S[w],!!pe(p.charCodeAt(0)));)if(++w,p==="\\"&&w<R)if(p=S[w],p==="u"){if(++w,K=w,p=X("u"),p)for(N+=p,A+="\\u";K<w;++K)A+=S[K];else w=K,N+="u",A+="\\u";Ne({},g.UnexpectedToken,"ILLEGAL")}else A+="\\",Ne({},g.UnexpectedToken,"ILLEGAL");else N+=p,A+=p;return{value:N,literal:A}}function jt(){var p,A,N,K;return O=null,Y(),p=w,A=Rt(),N=Lt(),K=nn(A.value,N.value),B.tokenize?{type:u.RegularExpression,value:K,lineNumber:T,lineStart:j,start:p,end:w}:{literal:A.literal+N.literal,value:K,start:p,end:w}}function bt(){var p,A,N,K;return Y(),p=w,A={start:{line:T,column:w-j}},N=jt(),A.end={line:T,column:w-j},B.tokenize||(B.tokens.length>0&&(K=B.tokens[B.tokens.length-1],K.range[0]===p&&K.type==="Punctuator"&&(K.value==="/"||K.value==="/=")&&B.tokens.pop()),B.tokens.push({type:"RegularExpression",value:N.literal,range:[p,w],loc:A})),N}function Te(p){return p.type===u.Identifier||p.type===u.Keyword||p.type===u.BooleanLiteral||p.type===u.NullLiteral}function et(){var p,A;if(p=B.tokens[B.tokens.length-1],!p)return bt();if(p.type==="Punctuator"){if(p.value==="]")return xe();if(p.value===")")return A=B.tokens[B.openParenToken-1],A&&A.type==="Keyword"&&(A.value==="if"||A.value==="while"||A.value==="for"||A.value==="with")?bt():xe();if(p.value==="}"){if(B.tokens[B.openCurlyToken-3]&&B.tokens[B.openCurlyToken-3].type==="Keyword"){if(A=B.tokens[B.openCurlyToken-4],!A)return xe()}else if(B.tokens[B.openCurlyToken-4]&&B.tokens[B.openCurlyToken-4].type==="Keyword"){if(A=B.tokens[B.openCurlyToken-5],!A)return bt()}else return xe();return f.indexOf(A.value)>=0?xe():bt()}return bt()}return p.type==="Keyword"?bt():xe()}function gt(){var p;return Y(),w>=R?{type:u.EOF,lineNumber:T,lineStart:j,start:w,end:w}:(p=S.charCodeAt(w),Se(p)?He():p===40||p===41||p===59?xe():p===39||p===34?Ct():p===46?J(S.charCodeAt(w+1))?Pe():xe():J(p)?Pe():B.tokenize&&p===47?et():xe())}function vt(){var p,A,N;return Y(),p={start:{line:T,column:w-j}},A=gt(),p.end={line:T,column:w-j},A.type!==u.EOF&&(N=S.slice(A.start,A.end),B.tokens.push({type:l[A.type],value:N,range:[A.start,A.end],loc:p})),A}function ve(){var p;return p=O,w=p.end,T=p.lineNumber,j=p.lineStart,O=typeof B.tokens<"u"?vt():gt(),w=p.end,T=p.lineNumber,j=p.lineStart,p}function It(){var p,A,N;p=w,A=T,N=j,O=typeof B.tokens<"u"?vt():gt(),w=p,T=A,j=N}function an(p,A){this.line=p,this.column=A}function Xe(p,A,N,K){this.start=new an(p,A),this.end=new an(N,K)}C={name:"SyntaxTree",processComment:function(p){var A,N;if(!(p.type===h.Program&&p.body.length>0)){for(B.trailingComments.length>0?B.trailingComments[0].range[0]>=p.range[1]?(N=B.trailingComments,B.trailingComments=[]):B.trailingComments.length=0:B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments[0].range[0]>=p.range[1]&&(N=B.bottomRightStack[B.bottomRightStack.length-1].trailingComments,delete B.bottomRightStack[B.bottomRightStack.length-1].trailingComments);B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].range[0]>=p.range[0];)A=B.bottomRightStack.pop();A?A.leadingComments&&A.leadingComments[A.leadingComments.length-1].range[1]<=p.range[0]&&(p.leadingComments=A.leadingComments,delete A.leadingComments):B.leadingComments.length>0&&B.leadingComments[B.leadingComments.length-1].range[1]<=p.range[0]&&(p.leadingComments=B.leadingComments,B.leadingComments=[]),N&&(p.trailingComments=N),B.bottomRightStack.push(p)}},markEnd:function(p,A){return B.range&&(p.range=[A.start,w]),B.loc&&(p.loc=new Xe(A.startLineNumber===void 0?A.lineNumber:A.startLineNumber,A.start-(A.startLineStart===void 0?A.lineStart:A.startLineStart),T,w-j),this.postProcess(p)),B.attachComment&&this.processComment(p),p},postProcess:function(p){return B.source&&(p.loc.source=B.source),p},createArrayExpression:function(p){return{type:h.ArrayExpression,elements:p}},createAssignmentExpression:function(p,A,N){return{type:h.AssignmentExpression,operator:p,left:A,right:N}},createBinaryExpression:function(p,A,N){var K=p==="||"||p==="&&"?h.LogicalExpression:h.BinaryExpression;return{type:K,operator:p,left:A,right:N}},createBlockStatement:function(p){return{type:h.BlockStatement,body:p}},createBreakStatement:function(p){return{type:h.BreakStatement,label:p}},createCallExpression:function(p,A){return{type:h.CallExpression,callee:p,arguments:A}},createCatchClause:function(p,A){return{type:h.CatchClause,param:p,body:A}},createConditionalExpression:function(p,A,N){return{type:h.ConditionalExpression,test:p,consequent:A,alternate:N}},createContinueStatement:function(p){return{type:h.ContinueStatement,label:p}},createDebuggerStatement:function(){return{type:h.DebuggerStatement}},createDoWhileStatement:function(p,A){return{type:h.DoWhileStatement,body:p,test:A}},createEmptyStatement:function(){return{type:h.EmptyStatement}},createExpressionStatement:function(p){return{type:h.ExpressionStatement,expression:p}},createForStatement:function(p,A,N,K){return{type:h.ForStatement,init:p,test:A,update:N,body:K}},createForInStatement:function(p,A,N){return{type:h.ForInStatement,left:p,right:A,body:N,each:!1}},createFunctionDeclaration:function(p,A,N,K){return{type:h.FunctionDeclaration,id:p,params:A,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(p,A,N,K){return{type:h.FunctionExpression,id:p,params:A,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createIdentifier:function(p){return{type:h.Identifier,name:p}},createIfStatement:function(p,A,N){return{type:h.IfStatement,test:p,consequent:A,alternate:N}},createLabeledStatement:function(p,A){return{type:h.LabeledStatement,label:p,body:A}},createLiteral:function(p){return{type:h.Literal,value:p.value,raw:S.slice(p.start,p.end)}},createMemberExpression:function(p,A,N){return{type:h.MemberExpression,computed:p==="[",object:A,property:N}},createNewExpression:function(p,A){return{type:h.NewExpression,callee:p,arguments:A}},createObjectExpression:function(p){return{type:h.ObjectExpression,properties:p}},createPostfixExpression:function(p,A){return{type:h.UpdateExpression,operator:p,argument:A,prefix:!1}},createProgram:function(p){return{type:h.Program,body:p}},createProperty:function(p,A,N){return{type:h.Property,key:A,value:N,kind:p}},createReturnStatement:function(p){return{type:h.ReturnStatement,argument:p}},createSequenceExpression:function(p){return{type:h.SequenceExpression,expressions:p}},createSwitchCase:function(p,A){return{type:h.SwitchCase,test:p,consequent:A}},createSwitchStatement:function(p,A){return{type:h.SwitchStatement,discriminant:p,cases:A}},createThisExpression:function(){return{type:h.ThisExpression}},createThrowStatement:function(p){return{type:h.ThrowStatement,argument:p}},createTryStatement:function(p,A,N,K){return{type:h.TryStatement,block:p,guardedHandlers:A,handlers:N,finalizer:K}},createUnaryExpression:function(p,A){return p==="++"||p==="--"?{type:h.UpdateExpression,operator:p,argument:A,prefix:!0}:{type:h.UnaryExpression,operator:p,argument:A,prefix:!0}},createVariableDeclaration:function(p,A){return{type:h.VariableDeclaration,declarations:p,kind:A}},createVariableDeclarator:function(p,A){return{type:h.VariableDeclarator,id:p,init:A}},createWhileStatement:function(p,A){return{type:h.WhileStatement,test:p,body:A}},createWithStatement:function(p,A){return{type:h.WithStatement,object:p,body:A}}};function Bt(){var p,A,N,K;return p=w,A=T,N=j,Y(),K=T!==A,w=p,T=A,j=N,K}function ke(p,A){var N,K=Array.prototype.slice.call(arguments,2),ne=A.replace(/%(\d)/g,function(he,ze){return W(ze<K.length,"Message reference must be in range"),K[ze]});throw typeof p.lineNumber=="number"?(N=new Error("Line "+p.lineNumber+": "+ne),N.index=p.start,N.lineNumber=p.lineNumber,N.column=p.start-j+1):(N=new Error("Line "+T+": "+ne),N.index=w,N.lineNumber=T,N.column=w-j+1),N.description=ne,N}function Ne(){try{ke.apply(null,arguments)}catch(p){if(B.errors)B.errors.push(p);else throw p}}function Wt(p){if(p.type===u.EOF&&ke(p,g.UnexpectedEOS),p.type===u.NumericLiteral&&ke(p,g.UnexpectedNumber),p.type===u.StringLiteral&&ke(p,g.UnexpectedString),p.type===u.Identifier&&ke(p,g.UnexpectedIdentifier),p.type===u.Keyword){if(Fe(p.value))ke(p,g.UnexpectedReserved);else if(E&&De(p.value)){Ne(p,g.StrictReservedWord);return}ke(p,g.UnexpectedToken,p.value)}ke(p,g.UnexpectedToken,p.value)}function I(p){var A=ve();(A.type!==u.Punctuator||A.value!==p)&&Wt(A)}function y(p){var A=ve();(A.type!==u.Keyword||A.value!==p)&&Wt(A)}function b(p){return O.type===u.Punctuator&&O.value===p}function L(p){return O.type===u.Keyword&&O.value===p}function q(){var p;return O.type!==u.Punctuator?!1:(p=O.value,p==="="||p==="*="||p==="/="||p==="%="||p==="+="||p==="-="||p==="<<="||p===">>="||p===">>>="||p==="&="||p==="^="||p==="|=")}function G(){var p;if(S.charCodeAt(w)===59||b(";")){ve();return}p=T,Y(),T===p&&O.type!==u.EOF&&!b("}")&&Wt(O)}function ee(p){return p.type===h.Identifier||p.type===h.MemberExpression}function Me(){var p=[],A;for(A=O,I("[");!b("]");)b(",")?(ve(),p.push(null)):(p.push(yn()),b("]")||I(","));return ve(),_.markEnd(_.createArrayExpression(p),A)}function dt(p,A){var N,K,ne;return N=E,ne=O,K=ls(),A&&E&&_e(p[0].name)&&Ne(A,g.StrictParamName),E=N,_.markEnd(_.createFunctionExpression(null,p,[],K),ne)}function ut(){var p,A;return A=O,p=ve(),p.type===u.StringLiteral||p.type===u.NumericLiteral?(E&&p.octal&&Ne(p,g.StrictOctalLiteral),_.markEnd(_.createLiteral(p),A)):_.markEnd(_.createIdentifier(p.value),A)}function ht(){var p,A,N,K,ne,he;if(p=O,he=O,p.type===u.Identifier)return N=ut(),p.value==="get"&&!b(":")?(A=ut(),I("("),I(")"),K=dt([]),_.markEnd(_.createProperty("get",A,K),he)):p.value==="set"&&!b(":")?(A=ut(),I("("),p=O,p.type!==u.Identifier?(I(")"),Ne(p,g.UnexpectedToken,p.value),K=dt([])):(ne=[Ie()],I(")"),K=dt(ne,p)),_.markEnd(_.createProperty("set",A,K),he)):(I(":"),K=yn(),_.markEnd(_.createProperty("init",N,K),he));if(p.type===u.EOF||p.type===u.Punctuator)Wt(p);else return A=ut(),I(":"),K=yn(),_.markEnd(_.createProperty("init",A,K),he)}function st(){var p=[],A,N,K,ne,he={},ze=String,yt;for(yt=O,I("{");!b("}");)A=ht(),A.key.type===h.Identifier?N=A.key.name:N=ze(A.key.value),ne=A.kind==="init"?d.Data:A.kind==="get"?d.Get:d.Set,K="$"+N,Object.prototype.hasOwnProperty.call(he,K)?(he[K]===d.Data?E&&ne===d.Data?Ne({},g.StrictDuplicateProperty):ne!==d.Data&&Ne({},g.AccessorDataProperty):ne===d.Data?Ne({},g.AccessorDataProperty):he[K]&ne&&Ne({},g.AccessorGetSet),he[K]|=ne):he[K]=ne,p.push(A),b("}")||I(",");return I("}"),_.markEnd(_.createObjectExpression(p),yt)}function Gr(){var p;return I("("),p=M(),I(")"),p}function xi(){var p,A,N,K;if(b("("))return Gr();if(b("["))return Me();if(b("{"))return st();if(p=O.type,K=O,p===u.Identifier)N=_.createIdentifier(ve().value);else if(p===u.StringLiteral||p===u.NumericLiteral)E&&O.octal&&Ne(O,g.StrictOctalLiteral),N=_.createLiteral(ve());else if(p===u.Keyword){if(L("function"))return Hc();L("this")?(ve(),N=_.createThisExpression()):Wt(ve())}else p===u.BooleanLiteral?(A=ve(),A.value=A.value==="true",N=_.createLiteral(A)):p===u.NullLiteral?(A=ve(),A.value=null,N=_.createLiteral(A)):b("/")||b("/=")?(typeof B.tokens<"u"?N=_.createLiteral(bt()):N=_.createLiteral(jt()),It()):Wt(ve());return _.markEnd(N,K)}function as(){var p=[];if(I("("),!b(")"))for(;w<R&&(p.push(yn()),!b(")"));)I(",");return I(")"),p}function us(){var p,A;return A=O,p=ve(),Te(p)||Wt(p),_.markEnd(_.createIdentifier(p.value),A)}function cs(){return I("."),us()}function Jr(){var p;return I("["),p=M(),I("]"),p}function Ei(){var p,A,N;return N=O,y("new"),p=ro(),A=b("(")?as():[],_.markEnd(_.createNewExpression(p,A),N)}function no(){var p,A,N,K,ne;for(ne=O,p=F.allowIn,F.allowIn=!0,A=L("new")?Ei():xi(),F.allowIn=p;;){if(b("."))K=cs(),A=_.createMemberExpression(".",A,K);else if(b("("))N=as(),A=_.createCallExpression(A,N);else if(b("["))K=Jr(),A=_.createMemberExpression("[",A,K);else break;_.markEnd(A,ne)}return A}function ro(){var p,A,N,K;for(K=O,p=F.allowIn,A=L("new")?Ei():xi(),F.allowIn=p;b(".")||b("[");)b("[")?(N=Jr(),A=_.createMemberExpression("[",A,N)):(N=cs(),A=_.createMemberExpression(".",A,N)),_.markEnd(A,K);return A}function Ir(){var p,A,N=O;return p=no(),O.type===u.Punctuator&&(b("++")||b("--"))&&!Bt()&&(E&&p.type===h.Identifier&&_e(p.name)&&Ne({},g.StrictLHSPostfix),ee(p)||Ne({},g.InvalidLHSInAssignment),A=ve(),p=_.markEnd(_.createPostfixExpression(A.value,p),N)),p}function rr(){var p,A,N;return O.type!==u.Punctuator&&O.type!==u.Keyword?A=Ir():b("++")||b("--")?(N=O,p=ve(),A=rr(),E&&A.type===h.Identifier&&_e(A.name)&&Ne({},g.StrictLHSPrefix),ee(A)||Ne({},g.InvalidLHSInAssignment),A=_.createUnaryExpression(p.value,A),A=_.markEnd(A,N)):b("+")||b("-")||b("~")||b("!")?(N=O,p=ve(),A=rr(),A=_.createUnaryExpression(p.value,A),A=_.markEnd(A,N)):L("delete")||L("void")||L("typeof")?(N=O,p=ve(),A=rr(),A=_.createUnaryExpression(p.value,A),A=_.markEnd(A,N),E&&A.operator==="delete"&&A.argument.type===h.Identifier&&Ne({},g.StrictDelete)):A=Ir(),A}function Yr(p,A){var N=0;if(p.type!==u.Punctuator&&p.type!==u.Keyword)return 0;switch(p.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=A?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function io(){var p,A,N,K,ne,he,ze,yt,Qt,Ht;if(p=O,Qt=rr(),K=O,ne=Yr(K,F.allowIn),ne===0)return Qt;for(K.prec=ne,ve(),A=[p,O],ze=rr(),he=[Qt,K,ze];(ne=Yr(O,F.allowIn))>0;){for(;he.length>2&&ne<=he[he.length-2].prec;)ze=he.pop(),yt=he.pop().value,Qt=he.pop(),N=_.createBinaryExpression(yt,Qt,ze),A.pop(),p=A[A.length-1],_.markEnd(N,p),he.push(N);K=ve(),K.prec=ne,he.push(K),A.push(O),N=rr(),he.push(N)}for(Ht=he.length-1,N=he[Ht],A.pop();Ht>1;)N=_.createBinaryExpression(he[Ht-1].value,he[Ht-2],N),Ht-=2,p=A.pop(),_.markEnd(N,p);return N}function so(){var p,A,N,K,ne;return ne=O,p=io(),b("?")&&(ve(),A=F.allowIn,F.allowIn=!0,N=yn(),F.allowIn=A,I(":"),K=yn(),p=_.createConditionalExpression(p,N,K),_.markEnd(p,ne)),p}function yn(){var p,A,N,K,ne;return p=O,ne=O,K=A=so(),q()&&(ee(A)||Ne({},g.InvalidLHSInAssignment),E&&A.type===h.Identifier&&_e(A.name)&&Ne(p,g.StrictLHSAssignment),p=ve(),N=yn(),K=_.markEnd(_.createAssignmentExpression(p.value,A,N),ne)),K}function M(){var p,A=O;if(p=yn(),b(",")){for(p=_.createSequenceExpression([p]);w<R&&b(",");)ve(),p.expressions.push(yn());_.markEnd(p,A)}return p}function ce(){for(var p=[],A;w<R&&!(b("}")||(A=Xr(),typeof A>"u"));)p.push(A);return p}function ye(){var p,A;return A=O,I("{"),p=ce(),I("}"),_.markEnd(_.createBlockStatement(p),A)}function Ie(){var p,A;return A=O,p=ve(),p.type!==u.Identifier&&Wt(p),_.markEnd(_.createIdentifier(p.value),A)}function ct(p){var A=null,N,K;return K=O,N=Ie(),E&&_e(N.name)&&Ne({},g.StrictVarName),p==="const"?(I("="),A=yn()):b("=")&&(ve(),A=yn()),_.markEnd(_.createVariableDeclarator(N,A),K)}function lt(p){var A=[];do{if(A.push(ct(p)),!b(","))break;ve()}while(w<R);return A}function rt(){var p;return y("var"),p=lt(),G(),_.createVariableDeclaration(p,"var")}function Qe(p){var A,N;return N=O,y(p),A=lt(p),G(),_.markEnd(_.createVariableDeclaration(A,p),N)}function Xt(){return I(";"),_.createEmptyStatement()}function Ot(){var p=M();return G(),_.createExpressionStatement(p)}function Dt(){var p,A,N;return y("if"),I("("),p=M(),I(")"),A=In(),L("else")?(ve(),N=In()):N=null,_.createIfStatement(p,A,N)}function fn(){var p,A,N;return y("do"),N=F.inIteration,F.inIteration=!0,p=In(),F.inIteration=N,y("while"),I("("),A=M(),I(")"),b(";")&&ve(),_.createDoWhileStatement(p,A)}function Tn(){var p,A,N;return y("while"),I("("),p=M(),I(")"),N=F.inIteration,F.inIteration=!0,A=In(),F.inIteration=N,_.createWhileStatement(p,A)}function ir(){var p,A,N;return N=O,p=ve(),A=lt(),_.markEnd(_.createVariableDeclaration(A,p.value),N)}function Kt(){var p,A,N,K,ne,he,ze;return p=A=N=null,y("for"),I("("),b(";")?ve():(L("var")||L("let")?(F.allowIn=!1,p=ir(),F.allowIn=!0,p.declarations.length===1&&L("in")&&(ve(),K=p,ne=M(),p=null)):(F.allowIn=!1,p=M(),F.allowIn=!0,L("in")&&(ee(p)||Ne({},g.InvalidLHSInForIn),ve(),K=p,ne=M(),p=null)),typeof K>"u"&&I(";")),typeof K>"u"&&(b(";")||(A=M()),I(";"),b(")")||(N=M())),I(")"),ze=F.inIteration,F.inIteration=!0,he=In(),F.inIteration=ze,typeof K>"u"?_.createForStatement(p,A,N,he):_.createForInStatement(K,ne,he)}function Si(){var p=null,A;return y("continue"),S.charCodeAt(w)===59?(ve(),F.inIteration||ke({},g.IllegalContinue),_.createContinueStatement(null)):Bt()?(F.inIteration||ke({},g.IllegalContinue),_.createContinueStatement(null)):(O.type===u.Identifier&&(p=Ie(),A="$"+p.name,Object.prototype.hasOwnProperty.call(F.labelSet,A)||ke({},g.UnknownLabel,p.name)),G(),p===null&&!F.inIteration&&ke({},g.IllegalContinue),_.createContinueStatement(p))}function oo(){var p=null,A;return y("break"),S.charCodeAt(w)===59?(ve(),F.inIteration||F.inSwitch||ke({},g.IllegalBreak),_.createBreakStatement(null)):Bt()?(F.inIteration||F.inSwitch||ke({},g.IllegalBreak),_.createBreakStatement(null)):(O.type===u.Identifier&&(p=Ie(),A="$"+p.name,Object.prototype.hasOwnProperty.call(F.labelSet,A)||ke({},g.UnknownLabel,p.name)),G(),p===null&&!(F.inIteration||F.inSwitch)&&ke({},g.IllegalBreak),_.createBreakStatement(p))}function ao(){var p=null;return y("return"),F.inFunctionBody||Ne({},g.IllegalReturn),S.charCodeAt(w)===32&&Se(S.charCodeAt(w+1))?(p=M(),G(),_.createReturnStatement(p)):Bt()?_.createReturnStatement(null):(b(";")||!b("}")&&O.type!==u.EOF&&(p=M()),G(),_.createReturnStatement(p))}function Sa(){var p,A;return E&&(Y(),Ne({},g.StrictModeWith)),y("with"),I("("),p=M(),I(")"),A=In(),_.createWithStatement(p,A)}function Aa(){var p,A=[],N,K;for(K=O,L("default")?(ve(),p=null):(y("case"),p=M()),I(":");w<R&&!(b("}")||L("default")||L("case"));)N=In(),A.push(N);return _.markEnd(_.createSwitchCase(p,A),K)}function Ca(){var p,A,N,K,ne;if(y("switch"),I("("),p=M(),I(")"),I("{"),A=[],b("}"))return ve(),_.createSwitchStatement(p,A);for(K=F.inSwitch,F.inSwitch=!0,ne=!1;w<R&&!b("}");)N=Aa(),N.test===null&&(ne&&ke({},g.MultipleDefaultsInSwitch),ne=!0),A.push(N);return F.inSwitch=K,I("}"),_.createSwitchStatement(p,A)}function Vc(){var p;return y("throw"),Bt()&&ke({},g.NewlineAfterThrow),p=M(),G(),_.createThrowStatement(p)}function qc(){var p,A,N;return N=O,y("catch"),I("("),b(")")&&Wt(O),p=Ie(),E&&_e(p.name)&&Ne({},g.StrictCatchVariable),I(")"),A=ye(),_.markEnd(_.createCatchClause(p,A),N)}function Wc(){var p,A=[],N=null;return y("try"),p=ye(),L("catch")&&A.push(qc()),L("finally")&&(ve(),N=ye()),A.length===0&&!N&&ke({},g.NoCatchOrFinally),_.createTryStatement(p,[],A,N)}function Kc(){return y("debugger"),G(),_.createDebuggerStatement()}function In(){var p=O.type,A,N,K,ne;if(p===u.EOF&&Wt(O),p===u.Punctuator&&O.value==="{")return ye();if(ne=O,p===u.Punctuator)switch(O.value){case";":return _.markEnd(Xt(),ne);case"(":return _.markEnd(Ot(),ne)}if(p===u.Keyword)switch(O.value){case"break":return _.markEnd(oo(),ne);case"continue":return _.markEnd(Si(),ne);case"debugger":return _.markEnd(Kc(),ne);case"do":return _.markEnd(fn(),ne);case"for":return _.markEnd(Kt(),ne);case"function":return _.markEnd(fs(),ne);case"if":return _.markEnd(Dt(),ne);case"return":return _.markEnd(ao(),ne);case"switch":return _.markEnd(Ca(),ne);case"throw":return _.markEnd(Vc(),ne);case"try":return _.markEnd(Wc(),ne);case"var":return _.markEnd(rt(),ne);case"while":return _.markEnd(Tn(),ne);case"with":return _.markEnd(Sa(),ne)}return A=M(),A.type===h.Identifier&&b(":")?(ve(),K="$"+A.name,Object.prototype.hasOwnProperty.call(F.labelSet,K)&&ke({},g.Redeclaration,"Label",A.name),F.labelSet[K]=!0,N=In(),delete F.labelSet[K],_.markEnd(_.createLabeledStatement(A,N),ne)):(G(),_.markEnd(_.createExpressionStatement(A),ne))}function ls(){var p,A=[],N,K,ne,he,ze,yt,Qt,Ht;for(Ht=O,I("{");w<R&&!(O.type!==u.StringLiteral||(N=O,p=Xr(),A.push(p),p.expression.type!==h.Literal));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(E=!0,ne&&Ne(ne,g.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(he=F.labelSet,ze=F.inIteration,yt=F.inSwitch,Qt=F.inFunctionBody,F.labelSet={},F.inIteration=!1,F.inSwitch=!1,F.inFunctionBody=!0;w<R&&!(b("}")||(p=Xr(),typeof p>"u"));)A.push(p);return I("}"),F.labelSet=he,F.inIteration=ze,F.inSwitch=yt,F.inFunctionBody=Qt,_.markEnd(_.createBlockStatement(A),Ht)}function uo(p){var A,N=[],K,ne,he,ze,yt;if(I("("),!b(")"))for(he={};w<R&&(K=O,A=Ie(),ze="$"+K.value,E?(_e(K.value)&&(ne=K,yt=g.StrictParamName),Object.prototype.hasOwnProperty.call(he,ze)&&(ne=K,yt=g.StrictParamDupe)):p||(_e(K.value)?(p=K,yt=g.StrictParamName):De(K.value)?(p=K,yt=g.StrictReservedWord):Object.prototype.hasOwnProperty.call(he,ze)&&(p=K,yt=g.StrictParamDupe)),N.push(A),he[ze]=!0,!b(")"));)I(",");return I(")"),{params:N,stricted:ne,firstRestricted:p,message:yt}}function fs(){var p,A=[],N,K,ne,he,ze,yt,Qt,Ht;return Ht=O,y("function"),K=O,p=Ie(),E?_e(K.value)&&Ne(K,g.StrictFunctionName):_e(K.value)?(ze=K,yt=g.StrictFunctionName):De(K.value)&&(ze=K,yt=g.StrictReservedWord),he=uo(ze),A=he.params,ne=he.stricted,ze=he.firstRestricted,he.message&&(yt=he.message),Qt=E,N=ls(),E&&ze&&ke(ze,yt),E&&ne&&Ne(ne,yt),E=Qt,_.markEnd(_.createFunctionDeclaration(p,A,[],N),Ht)}function Hc(){var p,A=null,N,K,ne,he,ze=[],yt,Qt,Ht;return Ht=O,y("function"),b("(")||(p=O,A=Ie(),E?_e(p.value)&&Ne(p,g.StrictFunctionName):_e(p.value)?(K=p,ne=g.StrictFunctionName):De(p.value)&&(K=p,ne=g.StrictReservedWord)),he=uo(K),ze=he.params,N=he.stricted,K=he.firstRestricted,he.message&&(ne=he.message),Qt=E,yt=ls(),E&&K&&ke(K,ne),E&&N&&Ne(N,ne),E=Qt,_.markEnd(_.createFunctionExpression(A,ze,[],yt),Ht)}function Xr(){if(O.type===u.Keyword)switch(O.value){case"const":case"let":return Qe(O.value);case"function":return fs();default:return In()}if(O.type!==u.EOF)return In()}function hs(){for(var p,A=[],N,K,ne;w<R&&(N=O,!(N.type!==u.StringLiteral||(p=Xr(),A.push(p),p.expression.type!==h.Literal)));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(E=!0,ne&&Ne(ne,g.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(;w<R&&(p=Xr(),!(typeof p>"u"));)A.push(p);return A}function _a(){var p,A;return Y(),It(),A=O,E=!1,p=hs(),_.markEnd(_.createProgram(p),A)}function ka(){var p,A,N,K=[];for(p=0;p<B.tokens.length;++p)A=B.tokens[p],N={type:A.type,value:A.value},B.range&&(N.range=A.range),B.loc&&(N.loc=A.loc),K.push(N);B.tokens=K}function Ta(p,A){var N,K,ne;N=String,typeof p!="string"&&!(p instanceof String)&&(p=N(p)),_=C,S=p,w=0,T=S.length>0?1:0,j=0,R=S.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},A=A||{},A.tokens=!0,B.tokens=[],B.tokenize=!0,B.openParenToken=-1,B.openCurlyToken=-1,B.range=typeof A.range=="boolean"&&A.range,B.loc=typeof A.loc=="boolean"&&A.loc,typeof A.comment=="boolean"&&A.comment&&(B.comments=[]),typeof A.tolerant=="boolean"&&A.tolerant&&(B.errors=[]);try{if(It(),O.type===u.EOF)return B.tokens;for(K=ve();O.type!==u.EOF;)try{K=ve()}catch(he){if(K=O,B.errors){B.errors.push(he);break}else throw he}ka(),ne=B.tokens,typeof B.comments<"u"&&(ne.comments=B.comments),typeof B.errors<"u"&&(ne.errors=B.errors)}catch(he){throw he}finally{B={}}return ne}function Ia(p,A){var N,K;K=String,typeof p!="string"&&!(p instanceof String)&&(p=K(p)),_=C,S=p,w=0,T=S.length>0?1:0,j=0,R=S.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},typeof A<"u"&&(B.range=typeof A.range=="boolean"&&A.range,B.loc=typeof A.loc=="boolean"&&A.loc,B.attachComment=typeof A.attachComment=="boolean"&&A.attachComment,B.loc&&A.source!==null&&A.source!==void 0&&(B.source=K(A.source)),typeof A.tokens=="boolean"&&A.tokens&&(B.tokens=[]),typeof A.comment=="boolean"&&A.comment&&(B.comments=[]),typeof A.tolerant=="boolean"&&A.tolerant&&(B.errors=[]),B.attachComment&&(B.range=!0,B.comments=[],B.bottomRightStack=[],B.trailingComments=[],B.leadingComments=[]));try{N=_a(),typeof B.comments<"u"&&(N.comments=B.comments),typeof B.tokens<"u"&&(ka(),N.tokens=B.tokens),typeof B.errors<"u"&&(N.errors=B.errors)}catch(ne){throw ne}finally{B={}}return N}a.version="1.2.2",a.tokenize=Ta,a.parse=Ia,a.Syntax=function(){var p,A={};typeof Object.create=="function"&&(A=Object.create(null));for(p in h)h.hasOwnProperty(p)&&(A[p]=h[p]);return typeof Object.freeze=="function"&&Object.freeze(A),A}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(v,C,S,E,w,T,j){E.ast||(E.ast=f,f.initialize());var R=T.length-1;switch(w){case 1:return E.ast.set({expression:{type:"root",value:T[R]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:T[R-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:T[R-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:T[R]}});break;case 15:E.ast.set({expression:{type:"identifier",value:T[R]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:T[R]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(T[R])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:T[R].length>1?E.ast.set({expression:{type:"union",value:T[R]}}):this.$=T[R];break;case 25:this.$=[T[R]];break;case 26:this.$=T[R-2].concat(T[R]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(T[R])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:T[R]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:T[R]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:T[R]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:T[R]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:T[R]}},E.ast.set(this.$);break;case 33:this.$=T[R];break;case 34:this.$=T[R];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(v,C){if(C.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var C=this,S=[0],E=[null],w=[],T=this.table,j="",R=0,_=0,O=2,F=1,B=w.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;w.push(W);var J=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(){var ge;return ge=C.lexer.lex()||F,typeof ge!="number"&&(ge=C.symbols_[ge]||ge),ge}for(var le,de,be,Se,pe={},Fe,De,_e,Ye;;){if(de=S[S.length-1],this.defaultActions[de]?be=this.defaultActions[de]:((le===null||typeof le>"u")&&(le=fe()),be=T[de]&&T[de][le]),typeof be>"u"||!be.length||!be[0]){var we="";Ye=[];for(Fe in T[de])this.terminals_[Fe]&&Fe>O&&Ye.push("'"+this.terminals_[Fe]+"'");this.lexer.showPosition?we="Parse error on line "+(R+1)+`:
221
+ `,$h=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>x.jsx(V.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?x.jsxs(V.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),x.jsx(V.Tooltip,{title:x.jsx(x.Fragment,{children:n(e.slice(t))}),children:x.jsxs(V.Tag,{children:["+",e.length-t]},"more")})]}):x.jsx(V.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Mh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Uh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>f===null?x.jsx("div",{children:"null"}):typeof f=="object"&&!Array.isArray(f)?Mh(f)?x.jsx($h,{tags:Object.entries(f).map(([h,d])=>`${h}: ${String(d)}`),trimLength:u}):x.jsx(Hi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(h=>h&&!Array.isArray(h))?x.jsx($h,{tags:f.map(h=>h?h.toLocaleString():"null"),trimLength:u}):x.jsx(Hi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?x.jsx(wn.CheckOutlined,{style:{color:"green"}}):x.jsx(wn.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?x.jsx(Hi,{trimLength:u,text:String(f)}):typeof f=="string"?x.jsx(Hi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?x.jsx(Hi,{trimLength:u,text:a}):x.jsx(Hi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:h,confirm:d,clearFilters:g,close:v})=>x.jsx(n2,{setSelectedKeys:f,selectedKeys:h,confirm:d,clearFilters:g,close:v}),filterIcon:f=>x.jsx(wn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,h)=>{const{dataIndex:d}=o,g=Array.isArray(d)?qr.get(h,d):h[d];if(typeof g=="object"&&!Array.isArray(g))return JSON.stringify(g).toLowerCase().includes(f.toLowerCase());if(Array.isArray(g))return g.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof g=="boolean"){const v=f.toLowerCase()==="true";return g===v}return typeof g=="number"?String(g).includes(f.toLowerCase()):typeof g=="string"?g.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,h)=>{const{dataIndex:d}=o,g=Array.isArray(d)?qr.get(f,d):f[d],v=Array.isArray(d)?qr.get(h,d):h[d];return typeof g=="object"&&!Array.isArray(g)&&g!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(g).length-Object.keys(v).length:Object.keys(g).length?-1:1:Array.isArray(g)?Array.isArray(v)?g.length-v.length:g.length?-1:1:typeof g=="boolean"?g===v?0:g?-1:1:typeof g=="number"?typeof v=="number"?g-v:g?-1:1:typeof g=="string"?typeof v=="string"?g.localeCompare(v):g?-1:1:0}}})},Vh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>x.jsxs(s2,{$align:"right",className:"hideable",children:[x.jsx(Nh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||x.jsx(wn.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),x.jsx(Nh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||x.jsx(wn.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},qh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:h,withoutControls:d=!1,tableProps:g})=>{const v=vr.useNavigate();if(!i)return null;const C=Uh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const S=d?C:Vh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:g?.editIcon,deleteIcon:g?.deleteIcon});if(!S)return null;const E=w=>`Total: ${w}`;return x.jsx(jh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:g?.borderless,$isTotalLeft:g?.isTotalLeft,children:x.jsx(jh.HideableControls,{children:x.jsx(V.Table,{dataSource:n,columns:S,pagination:{position:g?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:h?{type:"checkbox",selectedRowKeys:h.selectedRowKeys,onChange:(w,T)=>{h.onChange(w,T.map(({internalDataForControls:j})=>({name:j.entryName,endpoint:`${j.deletePathPrefix}/${j.apiGroupAndVersion}${j.namespace?`/namespaces/${j.namespace}`:""}/${j.typeName}/${j.entryName}`})))}}:void 0,onRow:w=>({onClick:()=>{if(o&&a){const T=qr.get(w,a),j=typeof T=="string"?T:JSON.stringify(T),R=o.replaceAll("~recordValue~",j);v(R)}}})})})})};function Qo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(h,d){if(!o[h]){if(!i[h]){var g=typeof Qo=="function"&&Qo;if(!d&&g)return g(h,!0);if(l)return l(h,!0);var v=new Error("Cannot find module '"+h+"'");throw v.code="MODULE_NOT_FOUND",v}var C=o[h]={exports:{}};i[h][0].call(C.exports,function(S){var E=i[h][1][S];return u(E||S)},C,C.exports,n,i,o,a)}return o[h].exports}for(var l=typeof Qo=="function"&&Qo,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,h,d,g,v,C,S,E,w,T,j,R,_,O,F,B;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],h={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},d={Data:1,Get:2,Set:4},g={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(p,A){if(!p)throw new Error("ASSERT: "+A)}function J(p){return p>=48&&p<=57}function fe(p){return"0123456789abcdefABCDEF".indexOf(p)>=0}function le(p){return"01234567".indexOf(p)>=0}function de(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(p)>=0}function be(p){return p===10||p===13||p===8232||p===8233}function Se(p){return p==64||p===36||p===95||p>=65&&p<=90||p>=97&&p<=122||p===92||p>=128&&v.NonAsciiIdentifierStart.test(String.fromCharCode(p))}function pe(p){return p===36||p===95||p>=65&&p<=90||p>=97&&p<=122||p>=48&&p<=57||p===92||p>=128&&v.NonAsciiIdentifierPart.test(String.fromCharCode(p))}function De(p){switch(p){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Re(p){switch(p){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function Te(p){return p==="eval"||p==="arguments"}function Xe(p){if(E&&Re(p))return!0;switch(p.length){case 2:return p==="if"||p==="in"||p==="do";case 3:return p==="var"||p==="for"||p==="new"||p==="try"||p==="let";case 4:return p==="this"||p==="else"||p==="case"||p==="void"||p==="with"||p==="enum";case 5:return p==="while"||p==="break"||p==="catch"||p==="throw"||p==="const"||p==="yield"||p==="class"||p==="super";case 6:return p==="return"||p==="typeof"||p==="delete"||p==="switch"||p==="export"||p==="import";case 7:return p==="default"||p==="finally"||p==="extends";case 8:return p==="function"||p==="continue"||p==="debugger";case 10:return p==="instanceof";default:return!1}}function ve(p,A,N,K,ne){var he;W(typeof N=="number","Comment must have valid position"),!(F.lastCommentStart>=N)&&(F.lastCommentStart=N,he={type:p,value:A},B.range&&(he.range=[N,K]),B.loc&&(he.loc=ne),B.comments.push(he),B.attachComment&&(B.leadingComments.push(he),B.trailingComments.push(he)))}function ge(p){var A,N,K,ne;for(A=w-p,N={start:{line:T,column:w-j-p}};w<R;)if(K=S.charCodeAt(w),++w,be(K)){B.comments&&(ne=S.slice(A+p,w-1),N.end={line:T,column:w-j-1},ve("Line",ne,A,w-1,N)),K===13&&S.charCodeAt(w)===10&&++w,++T,j=w;return}B.comments&&(ne=S.slice(A+p,w),N.end={line:T,column:w-j},ve("Line",ne,A,w,N))}function Ke(){var p,A,N,K;for(B.comments&&(p=w-2,A={start:{line:T,column:w-j-2}});w<R;)if(N=S.charCodeAt(w),be(N))N===13&&S.charCodeAt(w+1)===10&&++w,++T,++w,j=w,w>=R&&Ce({},g.UnexpectedToken,"ILLEGAL");else if(N===42){if(S.charCodeAt(w+1)===47){++w,++w,B.comments&&(K=S.slice(p+2,w-2),A.end={line:T,column:w-j},ve("Block",K,p,w,A));return}++w}else++w;Ce({},g.UnexpectedToken,"ILLEGAL")}function Y(){var p,A;for(A=w===0;w<R;)if(p=S.charCodeAt(w),de(p))++w;else if(be(p))++w,p===13&&S.charCodeAt(w)===10&&++w,++T,j=w,A=!0;else if(p===47)if(p=S.charCodeAt(w+1),p===47)++w,++w,ge(2),A=!0;else if(p===42)++w,++w,Ke();else break;else if(A&&p===45)if(S.charCodeAt(w+1)===45&&S.charCodeAt(w+2)===62)w+=3,ge(3);else break;else if(p===60)if(S.slice(w+1,w+4)==="!--")++w,++w,++w,++w,ge(4);else break;else break}function X(p){var A,N,K,ne=0;for(N=p==="u"?4:2,A=0;A<N;++A)if(w<R&&fe(S[w]))K=S[w++],ne=ne*16+"0123456789abcdef".indexOf(K.toLowerCase());else return"";return String.fromCharCode(ne)}function re(){var p,A;for(p=S.charCodeAt(w++),A=String.fromCharCode(p),p===92&&(S.charCodeAt(w)!==117&&Ce({},g.UnexpectedToken,"ILLEGAL"),++w,p=X("u"),(!p||p==="\\"||!Se(p.charCodeAt(0)))&&Ce({},g.UnexpectedToken,"ILLEGAL"),A=p);w<R&&(p=S.charCodeAt(w),!!pe(p));)++w,A+=String.fromCharCode(p),p===92&&(A=A.substr(0,A.length-1),S.charCodeAt(w)!==117&&Ce({},g.UnexpectedToken,"ILLEGAL"),++w,p=X("u"),(!p||p==="\\"||!pe(p.charCodeAt(0)))&&Ce({},g.UnexpectedToken,"ILLEGAL"),A+=p);return A}function _e(){var p,A;for(p=w++;w<R;){if(A=S.charCodeAt(w),A===92)return w=p,re();if(pe(A))++w;else break}return S.slice(p,w)}function ze(){var p,A,N;return p=w,A=S.charCodeAt(w)===92?re():_e(),A.length===1?N=u.Identifier:Xe(A)?N=u.Keyword:A==="null"?N=u.NullLiteral:A==="true"||A==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:A,lineNumber:T,lineStart:j,start:p,end:w}}function xe(){var p=w,A=S.charCodeAt(w),N,K=S[w],ne,he,Ge;switch(A){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++w,B.tokenize&&(A===40?B.openParenToken=B.tokens.length:A===123&&(B.openCurlyToken=B.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(A),lineNumber:T,lineStart:j,start:p,end:w};default:if(N=S.charCodeAt(w+1),N===61)switch(A){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return w+=2,{type:u.Punctuator,value:String.fromCharCode(A)+String.fromCharCode(N),lineNumber:T,lineStart:j,start:p,end:w};case 33:case 61:return w+=2,S.charCodeAt(w)===61&&++w,{type:u.Punctuator,value:S.slice(p,w),lineNumber:T,lineStart:j,start:p,end:w}}}if(Ge=S.substr(w,4),Ge===">>>=")return w+=4,{type:u.Punctuator,value:Ge,lineNumber:T,lineStart:j,start:p,end:w};if(he=Ge.substr(0,3),he===">>>"||he==="<<="||he===">>=")return w+=3,{type:u.Punctuator,value:he,lineNumber:T,lineStart:j,start:p,end:w};if(ne=he.substr(0,2),K===ne[1]&&"+-<>&|".indexOf(K)>=0||ne==="=>")return w+=2,{type:u.Punctuator,value:ne,lineNumber:T,lineStart:j,start:p,end:w};if("<>=!+-*%&|^/".indexOf(K)>=0)return++w,{type:u.Punctuator,value:K,lineNumber:T,lineStart:j,start:p,end:w};Ce({},g.UnexpectedToken,"ILLEGAL")}function Fe(p){for(var A="";w<R&&fe(S[w]);)A+=S[w++];return A.length===0&&Ce({},g.UnexpectedToken,"ILLEGAL"),Se(S.charCodeAt(w))&&Ce({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+A,16),lineNumber:T,lineStart:j,start:p,end:w}}function Be(p){for(var A="0"+S[w++];w<R&&le(S[w]);)A+=S[w++];return(Se(S.charCodeAt(w))||J(S.charCodeAt(w)))&&Ce({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(A,8),octal:!0,lineNumber:T,lineStart:j,start:p,end:w}}function Le(){var p,A,N;if(N=S[w],W(J(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),A=w,p="",N!=="."){if(p=S[w++],N=S[w],p==="0"){if(N==="x"||N==="X")return++w,Fe(A);if(le(N))return Be(A);N&&J(N.charCodeAt(0))&&Ce({},g.UnexpectedToken,"ILLEGAL")}for(;J(S.charCodeAt(w));)p+=S[w++];N=S[w]}if(N==="."){for(p+=S[w++];J(S.charCodeAt(w));)p+=S[w++];N=S[w]}if(N==="e"||N==="E")if(p+=S[w++],N=S[w],(N==="+"||N==="-")&&(p+=S[w++]),J(S.charCodeAt(w)))for(;J(S.charCodeAt(w));)p+=S[w++];else Ce({},g.UnexpectedToken,"ILLEGAL");return Se(S.charCodeAt(w))&&Ce({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(p),lineNumber:T,lineStart:j,start:A,end:w}}function _t(){var p="",A,N,K,ne,he,Ge,mt=!1,Zt,zt;for(Zt=T,zt=j,A=S[w],W(A==="'"||A==='"',"String literal must starts with a quote"),N=w,++w;w<R;)if(K=S[w++],K===A){A="";break}else if(K==="\\")if(K=S[w++],!K||!be(K.charCodeAt(0)))switch(K){case"u":case"x":Ge=w,he=X(K),he?p+=he:(w=Ge,p+=K);break;case"n":p+=`
222
+ `;break;case"r":p+="\r";break;case"t":p+=" ";break;case"b":p+="\b";break;case"f":p+="\f";break;case"v":p+="\v";break;default:le(K)?(ne="01234567".indexOf(K),ne!==0&&(mt=!0),w<R&&le(S[w])&&(mt=!0,ne=ne*8+"01234567".indexOf(S[w++]),"0123".indexOf(K)>=0&&w<R&&le(S[w])&&(ne=ne*8+"01234567".indexOf(S[w++]))),p+=String.fromCharCode(ne)):p+=K;break}else++T,K==="\r"&&S[w]===`
223
+ `&&++w,j=w;else{if(be(K.charCodeAt(0)))break;p+=K}return A!==""&&Ce({},g.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:p,octal:mt,startLineNumber:Zt,startLineStart:zt,lineNumber:T,lineStart:j,start:N,end:w}}function rn(p,A){var N;try{N=new RegExp(p,A)}catch{Ce({},g.InvalidRegExp)}return N}function Pt(){var p,A,N,K,ne;for(p=S[w],W(p==="/","Regular expression literal must start with a slash"),A=S[w++],N=!1,K=!1;w<R;)if(p=S[w++],A+=p,p==="\\")p=S[w++],be(p.charCodeAt(0))&&Ce({},g.UnterminatedRegExp),A+=p;else if(be(p.charCodeAt(0)))Ce({},g.UnterminatedRegExp);else if(N)p==="]"&&(N=!1);else if(p==="/"){K=!0;break}else p==="["&&(N=!0);return K||Ce({},g.UnterminatedRegExp),ne=A.substr(1,A.length-2),{value:ne,literal:A}}function Rt(){var p,A,N,K;for(A="",N="";w<R&&(p=S[w],!!pe(p.charCodeAt(0)));)if(++w,p==="\\"&&w<R)if(p=S[w],p==="u"){if(++w,K=w,p=X("u"),p)for(N+=p,A+="\\u";K<w;++K)A+=S[K];else w=K,N+="u",A+="\\u";Oe({},g.UnexpectedToken,"ILLEGAL")}else A+="\\",Oe({},g.UnexpectedToken,"ILLEGAL");else N+=p,A+=p;return{value:N,literal:A}}function Lt(){var p,A,N,K;return O=null,Y(),p=w,A=Pt(),N=Rt(),K=rn(A.value,N.value),B.tokenize?{type:u.RegularExpression,value:K,lineNumber:T,lineStart:j,start:p,end:w}:{literal:A.literal+N.literal,value:K,start:p,end:w}}function wt(){var p,A,N,K;return Y(),p=w,A={start:{line:T,column:w-j}},N=Lt(),A.end={line:T,column:w-j},B.tokenize||(B.tokens.length>0&&(K=B.tokens[B.tokens.length-1],K.range[0]===p&&K.type==="Punctuator"&&(K.value==="/"||K.value==="/=")&&B.tokens.pop()),B.tokens.push({type:"RegularExpression",value:N.literal,range:[p,w],loc:A})),N}function kn(p){return p.type===u.Identifier||p.type===u.Keyword||p.type===u.BooleanLiteral||p.type===u.NullLiteral}function Ae(){var p,A;if(p=B.tokens[B.tokens.length-1],!p)return wt();if(p.type==="Punctuator"){if(p.value==="]")return xe();if(p.value===")")return A=B.tokens[B.openParenToken-1],A&&A.type==="Keyword"&&(A.value==="if"||A.value==="while"||A.value==="for"||A.value==="with")?wt():xe();if(p.value==="}"){if(B.tokens[B.openCurlyToken-3]&&B.tokens[B.openCurlyToken-3].type==="Keyword"){if(A=B.tokens[B.openCurlyToken-4],!A)return xe()}else if(B.tokens[B.openCurlyToken-4]&&B.tokens[B.openCurlyToken-4].type==="Keyword"){if(A=B.tokens[B.openCurlyToken-5],!A)return wt()}else return xe();return f.indexOf(A.value)>=0?xe():wt()}return wt()}return p.type==="Keyword"?wt():xe()}function Ue(){var p;return Y(),w>=R?{type:u.EOF,lineNumber:T,lineStart:j,start:w,end:w}:(p=S.charCodeAt(w),Se(p)?ze():p===40||p===41||p===59?xe():p===39||p===34?_t():p===46?J(S.charCodeAt(w+1))?Le():xe():J(p)?Le():B.tokenize&&p===47?Ae():xe())}function Qe(){var p,A,N;return Y(),p={start:{line:T,column:w-j}},A=Ue(),p.end={line:T,column:w-j},A.type!==u.EOF&&(N=S.slice(A.start,A.end),B.tokens.push({type:l[A.type],value:N,range:[A.start,A.end],loc:p})),A}function we(){var p;return p=O,w=p.end,T=p.lineNumber,j=p.lineStart,O=typeof B.tokens<"u"?Qe():Ue(),w=p.end,T=p.lineNumber,j=p.lineStart,p}function pt(){var p,A,N;p=w,A=T,N=j,O=typeof B.tokens<"u"?Qe():Ue(),w=p,T=A,j=N}function Wt(p,A){this.line=p,this.column=A}function Et(p,A,N,K){this.start=new Wt(p,A),this.end=new Wt(N,K)}C={name:"SyntaxTree",processComment:function(p){var A,N;if(!(p.type===h.Program&&p.body.length>0)){for(B.trailingComments.length>0?B.trailingComments[0].range[0]>=p.range[1]?(N=B.trailingComments,B.trailingComments=[]):B.trailingComments.length=0:B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments[0].range[0]>=p.range[1]&&(N=B.bottomRightStack[B.bottomRightStack.length-1].trailingComments,delete B.bottomRightStack[B.bottomRightStack.length-1].trailingComments);B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].range[0]>=p.range[0];)A=B.bottomRightStack.pop();A?A.leadingComments&&A.leadingComments[A.leadingComments.length-1].range[1]<=p.range[0]&&(p.leadingComments=A.leadingComments,delete A.leadingComments):B.leadingComments.length>0&&B.leadingComments[B.leadingComments.length-1].range[1]<=p.range[0]&&(p.leadingComments=B.leadingComments,B.leadingComments=[]),N&&(p.trailingComments=N),B.bottomRightStack.push(p)}},markEnd:function(p,A){return B.range&&(p.range=[A.start,w]),B.loc&&(p.loc=new Et(A.startLineNumber===void 0?A.lineNumber:A.startLineNumber,A.start-(A.startLineStart===void 0?A.lineStart:A.startLineStart),T,w-j),this.postProcess(p)),B.attachComment&&this.processComment(p),p},postProcess:function(p){return B.source&&(p.loc.source=B.source),p},createArrayExpression:function(p){return{type:h.ArrayExpression,elements:p}},createAssignmentExpression:function(p,A,N){return{type:h.AssignmentExpression,operator:p,left:A,right:N}},createBinaryExpression:function(p,A,N){var K=p==="||"||p==="&&"?h.LogicalExpression:h.BinaryExpression;return{type:K,operator:p,left:A,right:N}},createBlockStatement:function(p){return{type:h.BlockStatement,body:p}},createBreakStatement:function(p){return{type:h.BreakStatement,label:p}},createCallExpression:function(p,A){return{type:h.CallExpression,callee:p,arguments:A}},createCatchClause:function(p,A){return{type:h.CatchClause,param:p,body:A}},createConditionalExpression:function(p,A,N){return{type:h.ConditionalExpression,test:p,consequent:A,alternate:N}},createContinueStatement:function(p){return{type:h.ContinueStatement,label:p}},createDebuggerStatement:function(){return{type:h.DebuggerStatement}},createDoWhileStatement:function(p,A){return{type:h.DoWhileStatement,body:p,test:A}},createEmptyStatement:function(){return{type:h.EmptyStatement}},createExpressionStatement:function(p){return{type:h.ExpressionStatement,expression:p}},createForStatement:function(p,A,N,K){return{type:h.ForStatement,init:p,test:A,update:N,body:K}},createForInStatement:function(p,A,N){return{type:h.ForInStatement,left:p,right:A,body:N,each:!1}},createFunctionDeclaration:function(p,A,N,K){return{type:h.FunctionDeclaration,id:p,params:A,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(p,A,N,K){return{type:h.FunctionExpression,id:p,params:A,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createIdentifier:function(p){return{type:h.Identifier,name:p}},createIfStatement:function(p,A,N){return{type:h.IfStatement,test:p,consequent:A,alternate:N}},createLabeledStatement:function(p,A){return{type:h.LabeledStatement,label:p,body:A}},createLiteral:function(p){return{type:h.Literal,value:p.value,raw:S.slice(p.start,p.end)}},createMemberExpression:function(p,A,N){return{type:h.MemberExpression,computed:p==="[",object:A,property:N}},createNewExpression:function(p,A){return{type:h.NewExpression,callee:p,arguments:A}},createObjectExpression:function(p){return{type:h.ObjectExpression,properties:p}},createPostfixExpression:function(p,A){return{type:h.UpdateExpression,operator:p,argument:A,prefix:!1}},createProgram:function(p){return{type:h.Program,body:p}},createProperty:function(p,A,N){return{type:h.Property,key:A,value:N,kind:p}},createReturnStatement:function(p){return{type:h.ReturnStatement,argument:p}},createSequenceExpression:function(p){return{type:h.SequenceExpression,expressions:p}},createSwitchCase:function(p,A){return{type:h.SwitchCase,test:p,consequent:A}},createSwitchStatement:function(p,A){return{type:h.SwitchStatement,discriminant:p,cases:A}},createThisExpression:function(){return{type:h.ThisExpression}},createThrowStatement:function(p){return{type:h.ThrowStatement,argument:p}},createTryStatement:function(p,A,N,K){return{type:h.TryStatement,block:p,guardedHandlers:A,handlers:N,finalizer:K}},createUnaryExpression:function(p,A){return p==="++"||p==="--"?{type:h.UpdateExpression,operator:p,argument:A,prefix:!0}:{type:h.UnaryExpression,operator:p,argument:A,prefix:!0}},createVariableDeclaration:function(p,A){return{type:h.VariableDeclaration,declarations:p,kind:A}},createVariableDeclarator:function(p,A){return{type:h.VariableDeclarator,id:p,init:A}},createWhileStatement:function(p,A){return{type:h.WhileStatement,test:p,body:A}},createWithStatement:function(p,A){return{type:h.WithStatement,object:p,body:A}}};function ht(){var p,A,N,K;return p=w,A=T,N=j,Y(),K=T!==A,w=p,T=A,j=N,K}function Ce(p,A){var N,K=Array.prototype.slice.call(arguments,2),ne=A.replace(/%(\d)/g,function(he,Ge){return W(Ge<K.length,"Message reference must be in range"),K[Ge]});throw typeof p.lineNumber=="number"?(N=new Error("Line "+p.lineNumber+": "+ne),N.index=p.start,N.lineNumber=p.lineNumber,N.column=p.start-j+1):(N=new Error("Line "+T+": "+ne),N.index=w,N.lineNumber=T,N.column=w-j+1),N.description=ne,N}function Oe(){try{Ce.apply(null,arguments)}catch(p){if(B.errors)B.errors.push(p);else throw p}}function Kt(p){if(p.type===u.EOF&&Ce(p,g.UnexpectedEOS),p.type===u.NumericLiteral&&Ce(p,g.UnexpectedNumber),p.type===u.StringLiteral&&Ce(p,g.UnexpectedString),p.type===u.Identifier&&Ce(p,g.UnexpectedIdentifier),p.type===u.Keyword){if(De(p.value))Ce(p,g.UnexpectedReserved);else if(E&&Re(p.value)){Oe(p,g.StrictReservedWord);return}Ce(p,g.UnexpectedToken,p.value)}Ce(p,g.UnexpectedToken,p.value)}function I(p){var A=we();(A.type!==u.Punctuator||A.value!==p)&&Kt(A)}function y(p){var A=we();(A.type!==u.Keyword||A.value!==p)&&Kt(A)}function b(p){return O.type===u.Punctuator&&O.value===p}function L(p){return O.type===u.Keyword&&O.value===p}function q(){var p;return O.type!==u.Punctuator?!1:(p=O.value,p==="="||p==="*="||p==="/="||p==="%="||p==="+="||p==="-="||p==="<<="||p===">>="||p===">>>="||p==="&="||p==="^="||p==="|=")}function G(){var p;if(S.charCodeAt(w)===59||b(";")){we();return}p=T,Y(),T===p&&O.type!==u.EOF&&!b("}")&&Kt(O)}function ee(p){return p.type===h.Identifier||p.type===h.MemberExpression}function Me(){var p=[],A;for(A=O,I("[");!b("]");)b(",")?(we(),p.push(null)):(p.push(gn()),b("]")||I(","));return we(),_.markEnd(_.createArrayExpression(p),A)}function gt(p,A){var N,K,ne;return N=E,ne=O,K=ls(),A&&E&&Te(p[0].name)&&Oe(A,g.StrictParamName),E=N,_.markEnd(_.createFunctionExpression(null,p,[],K),ne)}function ut(){var p,A;return A=O,p=we(),p.type===u.StringLiteral||p.type===u.NumericLiteral?(E&&p.octal&&Oe(p,g.StrictOctalLiteral),_.markEnd(_.createLiteral(p),A)):_.markEnd(_.createIdentifier(p.value),A)}function dt(){var p,A,N,K,ne,he;if(p=O,he=O,p.type===u.Identifier)return N=ut(),p.value==="get"&&!b(":")?(A=ut(),I("("),I(")"),K=gt([]),_.markEnd(_.createProperty("get",A,K),he)):p.value==="set"&&!b(":")?(A=ut(),I("("),p=O,p.type!==u.Identifier?(I(")"),Oe(p,g.UnexpectedToken,p.value),K=gt([])):(ne=[Ie()],I(")"),K=gt(ne,p)),_.markEnd(_.createProperty("set",A,K),he)):(I(":"),K=gn(),_.markEnd(_.createProperty("init",N,K),he));if(p.type===u.EOF||p.type===u.Punctuator)Kt(p);else return A=ut(),I(":"),K=gn(),_.markEnd(_.createProperty("init",A,K),he)}function st(){var p=[],A,N,K,ne,he={},Ge=String,mt;for(mt=O,I("{");!b("}");)A=dt(),A.key.type===h.Identifier?N=A.key.name:N=Ge(A.key.value),ne=A.kind==="init"?d.Data:A.kind==="get"?d.Get:d.Set,K="$"+N,Object.prototype.hasOwnProperty.call(he,K)?(he[K]===d.Data?E&&ne===d.Data?Oe({},g.StrictDuplicateProperty):ne!==d.Data&&Oe({},g.AccessorDataProperty):ne===d.Data?Oe({},g.AccessorDataProperty):he[K]&ne&&Oe({},g.AccessorGetSet),he[K]|=ne):he[K]=ne,p.push(A),b("}")||I(",");return I("}"),_.markEnd(_.createObjectExpression(p),mt)}function Gr(){var p;return I("("),p=M(),I(")"),p}function xi(){var p,A,N,K;if(b("("))return Gr();if(b("["))return Me();if(b("{"))return st();if(p=O.type,K=O,p===u.Identifier)N=_.createIdentifier(we().value);else if(p===u.StringLiteral||p===u.NumericLiteral)E&&O.octal&&Oe(O,g.StrictOctalLiteral),N=_.createLiteral(we());else if(p===u.Keyword){if(L("function"))return Hc();L("this")?(we(),N=_.createThisExpression()):Kt(we())}else p===u.BooleanLiteral?(A=we(),A.value=A.value==="true",N=_.createLiteral(A)):p===u.NullLiteral?(A=we(),A.value=null,N=_.createLiteral(A)):b("/")||b("/=")?(typeof B.tokens<"u"?N=_.createLiteral(wt()):N=_.createLiteral(Lt()),pt()):Kt(we());return _.markEnd(N,K)}function as(){var p=[];if(I("("),!b(")"))for(;w<R&&(p.push(gn()),!b(")"));)I(",");return I(")"),p}function us(){var p,A;return A=O,p=we(),kn(p)||Kt(p),_.markEnd(_.createIdentifier(p.value),A)}function cs(){return I("."),us()}function Jr(){var p;return I("["),p=M(),I("]"),p}function Ei(){var p,A,N;return N=O,y("new"),p=ro(),A=b("(")?as():[],_.markEnd(_.createNewExpression(p,A),N)}function no(){var p,A,N,K,ne;for(ne=O,p=F.allowIn,F.allowIn=!0,A=L("new")?Ei():xi(),F.allowIn=p;;){if(b("."))K=cs(),A=_.createMemberExpression(".",A,K);else if(b("("))N=as(),A=_.createCallExpression(A,N);else if(b("["))K=Jr(),A=_.createMemberExpression("[",A,K);else break;_.markEnd(A,ne)}return A}function ro(){var p,A,N,K;for(K=O,p=F.allowIn,A=L("new")?Ei():xi(),F.allowIn=p;b(".")||b("[");)b("[")?(N=Jr(),A=_.createMemberExpression("[",A,N)):(N=cs(),A=_.createMemberExpression(".",A,N)),_.markEnd(A,K);return A}function Ir(){var p,A,N=O;return p=no(),O.type===u.Punctuator&&(b("++")||b("--"))&&!ht()&&(E&&p.type===h.Identifier&&Te(p.name)&&Oe({},g.StrictLHSPostfix),ee(p)||Oe({},g.InvalidLHSInAssignment),A=we(),p=_.markEnd(_.createPostfixExpression(A.value,p),N)),p}function rr(){var p,A,N;return O.type!==u.Punctuator&&O.type!==u.Keyword?A=Ir():b("++")||b("--")?(N=O,p=we(),A=rr(),E&&A.type===h.Identifier&&Te(A.name)&&Oe({},g.StrictLHSPrefix),ee(A)||Oe({},g.InvalidLHSInAssignment),A=_.createUnaryExpression(p.value,A),A=_.markEnd(A,N)):b("+")||b("-")||b("~")||b("!")?(N=O,p=we(),A=rr(),A=_.createUnaryExpression(p.value,A),A=_.markEnd(A,N)):L("delete")||L("void")||L("typeof")?(N=O,p=we(),A=rr(),A=_.createUnaryExpression(p.value,A),A=_.markEnd(A,N),E&&A.operator==="delete"&&A.argument.type===h.Identifier&&Oe({},g.StrictDelete)):A=Ir(),A}function Yr(p,A){var N=0;if(p.type!==u.Punctuator&&p.type!==u.Keyword)return 0;switch(p.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=A?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function io(){var p,A,N,K,ne,he,Ge,mt,Zt,zt;if(p=O,Zt=rr(),K=O,ne=Yr(K,F.allowIn),ne===0)return Zt;for(K.prec=ne,we(),A=[p,O],Ge=rr(),he=[Zt,K,Ge];(ne=Yr(O,F.allowIn))>0;){for(;he.length>2&&ne<=he[he.length-2].prec;)Ge=he.pop(),mt=he.pop().value,Zt=he.pop(),N=_.createBinaryExpression(mt,Zt,Ge),A.pop(),p=A[A.length-1],_.markEnd(N,p),he.push(N);K=we(),K.prec=ne,he.push(K),A.push(O),N=rr(),he.push(N)}for(zt=he.length-1,N=he[zt],A.pop();zt>1;)N=_.createBinaryExpression(he[zt-1].value,he[zt-2],N),zt-=2,p=A.pop(),_.markEnd(N,p);return N}function so(){var p,A,N,K,ne;return ne=O,p=io(),b("?")&&(we(),A=F.allowIn,F.allowIn=!0,N=gn(),F.allowIn=A,I(":"),K=gn(),p=_.createConditionalExpression(p,N,K),_.markEnd(p,ne)),p}function gn(){var p,A,N,K,ne;return p=O,ne=O,K=A=so(),q()&&(ee(A)||Oe({},g.InvalidLHSInAssignment),E&&A.type===h.Identifier&&Te(A.name)&&Oe(p,g.StrictLHSAssignment),p=we(),N=gn(),K=_.markEnd(_.createAssignmentExpression(p.value,A,N),ne)),K}function M(){var p,A=O;if(p=gn(),b(",")){for(p=_.createSequenceExpression([p]);w<R&&b(",");)we(),p.expressions.push(gn());_.markEnd(p,A)}return p}function ce(){for(var p=[],A;w<R&&!(b("}")||(A=Xr(),typeof A>"u"));)p.push(A);return p}function ye(){var p,A;return A=O,I("{"),p=ce(),I("}"),_.markEnd(_.createBlockStatement(p),A)}function Ie(){var p,A;return A=O,p=we(),p.type!==u.Identifier&&Kt(p),_.markEnd(_.createIdentifier(p.value),A)}function ct(p){var A=null,N,K;return K=O,N=Ie(),E&&Te(N.name)&&Oe({},g.StrictVarName),p==="const"?(I("="),A=gn()):b("=")&&(we(),A=gn()),_.markEnd(_.createVariableDeclarator(N,A),K)}function lt(p){var A=[];do{if(A.push(ct(p)),!b(","))break;we()}while(w<R);return A}function rt(){var p;return y("var"),p=lt(),G(),_.createVariableDeclaration(p,"var")}function Ze(p){var A,N;return N=O,y(p),A=lt(p),G(),_.markEnd(_.createVariableDeclaration(A,p),N)}function Qt(){return I(";"),_.createEmptyStatement()}function Ot(){var p=M();return G(),_.createExpressionStatement(p)}function Bt(){var p,A,N;return y("if"),I("("),p=M(),I(")"),A=In(),L("else")?(we(),N=In()):N=null,_.createIfStatement(p,A,N)}function ln(){var p,A,N;return y("do"),N=F.inIteration,F.inIteration=!0,p=In(),F.inIteration=N,y("while"),I("("),A=M(),I(")"),b(";")&&we(),_.createDoWhileStatement(p,A)}function Tn(){var p,A,N;return y("while"),I("("),p=M(),I(")"),N=F.inIteration,F.inIteration=!0,A=In(),F.inIteration=N,_.createWhileStatement(p,A)}function ir(){var p,A,N;return N=O,p=we(),A=lt(),_.markEnd(_.createVariableDeclaration(A,p.value),N)}function Ht(){var p,A,N,K,ne,he,Ge;return p=A=N=null,y("for"),I("("),b(";")?we():(L("var")||L("let")?(F.allowIn=!1,p=ir(),F.allowIn=!0,p.declarations.length===1&&L("in")&&(we(),K=p,ne=M(),p=null)):(F.allowIn=!1,p=M(),F.allowIn=!0,L("in")&&(ee(p)||Oe({},g.InvalidLHSInForIn),we(),K=p,ne=M(),p=null)),typeof K>"u"&&I(";")),typeof K>"u"&&(b(";")||(A=M()),I(";"),b(")")||(N=M())),I(")"),Ge=F.inIteration,F.inIteration=!0,he=In(),F.inIteration=Ge,typeof K>"u"?_.createForStatement(p,A,N,he):_.createForInStatement(K,ne,he)}function Si(){var p=null,A;return y("continue"),S.charCodeAt(w)===59?(we(),F.inIteration||Ce({},g.IllegalContinue),_.createContinueStatement(null)):ht()?(F.inIteration||Ce({},g.IllegalContinue),_.createContinueStatement(null)):(O.type===u.Identifier&&(p=Ie(),A="$"+p.name,Object.prototype.hasOwnProperty.call(F.labelSet,A)||Ce({},g.UnknownLabel,p.name)),G(),p===null&&!F.inIteration&&Ce({},g.IllegalContinue),_.createContinueStatement(p))}function oo(){var p=null,A;return y("break"),S.charCodeAt(w)===59?(we(),F.inIteration||F.inSwitch||Ce({},g.IllegalBreak),_.createBreakStatement(null)):ht()?(F.inIteration||F.inSwitch||Ce({},g.IllegalBreak),_.createBreakStatement(null)):(O.type===u.Identifier&&(p=Ie(),A="$"+p.name,Object.prototype.hasOwnProperty.call(F.labelSet,A)||Ce({},g.UnknownLabel,p.name)),G(),p===null&&!(F.inIteration||F.inSwitch)&&Ce({},g.IllegalBreak),_.createBreakStatement(p))}function ao(){var p=null;return y("return"),F.inFunctionBody||Oe({},g.IllegalReturn),S.charCodeAt(w)===32&&Se(S.charCodeAt(w+1))?(p=M(),G(),_.createReturnStatement(p)):ht()?_.createReturnStatement(null):(b(";")||!b("}")&&O.type!==u.EOF&&(p=M()),G(),_.createReturnStatement(p))}function Sa(){var p,A;return E&&(Y(),Oe({},g.StrictModeWith)),y("with"),I("("),p=M(),I(")"),A=In(),_.createWithStatement(p,A)}function Aa(){var p,A=[],N,K;for(K=O,L("default")?(we(),p=null):(y("case"),p=M()),I(":");w<R&&!(b("}")||L("default")||L("case"));)N=In(),A.push(N);return _.markEnd(_.createSwitchCase(p,A),K)}function Ca(){var p,A,N,K,ne;if(y("switch"),I("("),p=M(),I(")"),I("{"),A=[],b("}"))return we(),_.createSwitchStatement(p,A);for(K=F.inSwitch,F.inSwitch=!0,ne=!1;w<R&&!b("}");)N=Aa(),N.test===null&&(ne&&Ce({},g.MultipleDefaultsInSwitch),ne=!0),A.push(N);return F.inSwitch=K,I("}"),_.createSwitchStatement(p,A)}function Vc(){var p;return y("throw"),ht()&&Ce({},g.NewlineAfterThrow),p=M(),G(),_.createThrowStatement(p)}function qc(){var p,A,N;return N=O,y("catch"),I("("),b(")")&&Kt(O),p=Ie(),E&&Te(p.name)&&Oe({},g.StrictCatchVariable),I(")"),A=ye(),_.markEnd(_.createCatchClause(p,A),N)}function Wc(){var p,A=[],N=null;return y("try"),p=ye(),L("catch")&&A.push(qc()),L("finally")&&(we(),N=ye()),A.length===0&&!N&&Ce({},g.NoCatchOrFinally),_.createTryStatement(p,[],A,N)}function Kc(){return y("debugger"),G(),_.createDebuggerStatement()}function In(){var p=O.type,A,N,K,ne;if(p===u.EOF&&Kt(O),p===u.Punctuator&&O.value==="{")return ye();if(ne=O,p===u.Punctuator)switch(O.value){case";":return _.markEnd(Qt(),ne);case"(":return _.markEnd(Ot(),ne)}if(p===u.Keyword)switch(O.value){case"break":return _.markEnd(oo(),ne);case"continue":return _.markEnd(Si(),ne);case"debugger":return _.markEnd(Kc(),ne);case"do":return _.markEnd(ln(),ne);case"for":return _.markEnd(Ht(),ne);case"function":return _.markEnd(fs(),ne);case"if":return _.markEnd(Bt(),ne);case"return":return _.markEnd(ao(),ne);case"switch":return _.markEnd(Ca(),ne);case"throw":return _.markEnd(Vc(),ne);case"try":return _.markEnd(Wc(),ne);case"var":return _.markEnd(rt(),ne);case"while":return _.markEnd(Tn(),ne);case"with":return _.markEnd(Sa(),ne)}return A=M(),A.type===h.Identifier&&b(":")?(we(),K="$"+A.name,Object.prototype.hasOwnProperty.call(F.labelSet,K)&&Ce({},g.Redeclaration,"Label",A.name),F.labelSet[K]=!0,N=In(),delete F.labelSet[K],_.markEnd(_.createLabeledStatement(A,N),ne)):(G(),_.markEnd(_.createExpressionStatement(A),ne))}function ls(){var p,A=[],N,K,ne,he,Ge,mt,Zt,zt;for(zt=O,I("{");w<R&&!(O.type!==u.StringLiteral||(N=O,p=Xr(),A.push(p),p.expression.type!==h.Literal));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(E=!0,ne&&Oe(ne,g.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(he=F.labelSet,Ge=F.inIteration,mt=F.inSwitch,Zt=F.inFunctionBody,F.labelSet={},F.inIteration=!1,F.inSwitch=!1,F.inFunctionBody=!0;w<R&&!(b("}")||(p=Xr(),typeof p>"u"));)A.push(p);return I("}"),F.labelSet=he,F.inIteration=Ge,F.inSwitch=mt,F.inFunctionBody=Zt,_.markEnd(_.createBlockStatement(A),zt)}function uo(p){var A,N=[],K,ne,he,Ge,mt;if(I("("),!b(")"))for(he={};w<R&&(K=O,A=Ie(),Ge="$"+K.value,E?(Te(K.value)&&(ne=K,mt=g.StrictParamName),Object.prototype.hasOwnProperty.call(he,Ge)&&(ne=K,mt=g.StrictParamDupe)):p||(Te(K.value)?(p=K,mt=g.StrictParamName):Re(K.value)?(p=K,mt=g.StrictReservedWord):Object.prototype.hasOwnProperty.call(he,Ge)&&(p=K,mt=g.StrictParamDupe)),N.push(A),he[Ge]=!0,!b(")"));)I(",");return I(")"),{params:N,stricted:ne,firstRestricted:p,message:mt}}function fs(){var p,A=[],N,K,ne,he,Ge,mt,Zt,zt;return zt=O,y("function"),K=O,p=Ie(),E?Te(K.value)&&Oe(K,g.StrictFunctionName):Te(K.value)?(Ge=K,mt=g.StrictFunctionName):Re(K.value)&&(Ge=K,mt=g.StrictReservedWord),he=uo(Ge),A=he.params,ne=he.stricted,Ge=he.firstRestricted,he.message&&(mt=he.message),Zt=E,N=ls(),E&&Ge&&Ce(Ge,mt),E&&ne&&Oe(ne,mt),E=Zt,_.markEnd(_.createFunctionDeclaration(p,A,[],N),zt)}function Hc(){var p,A=null,N,K,ne,he,Ge=[],mt,Zt,zt;return zt=O,y("function"),b("(")||(p=O,A=Ie(),E?Te(p.value)&&Oe(p,g.StrictFunctionName):Te(p.value)?(K=p,ne=g.StrictFunctionName):Re(p.value)&&(K=p,ne=g.StrictReservedWord)),he=uo(K),Ge=he.params,N=he.stricted,K=he.firstRestricted,he.message&&(ne=he.message),Zt=E,mt=ls(),E&&K&&Ce(K,ne),E&&N&&Oe(N,ne),E=Zt,_.markEnd(_.createFunctionExpression(A,Ge,[],mt),zt)}function Xr(){if(O.type===u.Keyword)switch(O.value){case"const":case"let":return Ze(O.value);case"function":return fs();default:return In()}if(O.type!==u.EOF)return In()}function hs(){for(var p,A=[],N,K,ne;w<R&&(N=O,!(N.type!==u.StringLiteral||(p=Xr(),A.push(p),p.expression.type!==h.Literal)));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(E=!0,ne&&Oe(ne,g.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(;w<R&&(p=Xr(),!(typeof p>"u"));)A.push(p);return A}function _a(){var p,A;return Y(),pt(),A=O,E=!1,p=hs(),_.markEnd(_.createProgram(p),A)}function ka(){var p,A,N,K=[];for(p=0;p<B.tokens.length;++p)A=B.tokens[p],N={type:A.type,value:A.value},B.range&&(N.range=A.range),B.loc&&(N.loc=A.loc),K.push(N);B.tokens=K}function Ta(p,A){var N,K,ne;N=String,typeof p!="string"&&!(p instanceof String)&&(p=N(p)),_=C,S=p,w=0,T=S.length>0?1:0,j=0,R=S.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},A=A||{},A.tokens=!0,B.tokens=[],B.tokenize=!0,B.openParenToken=-1,B.openCurlyToken=-1,B.range=typeof A.range=="boolean"&&A.range,B.loc=typeof A.loc=="boolean"&&A.loc,typeof A.comment=="boolean"&&A.comment&&(B.comments=[]),typeof A.tolerant=="boolean"&&A.tolerant&&(B.errors=[]);try{if(pt(),O.type===u.EOF)return B.tokens;for(K=we();O.type!==u.EOF;)try{K=we()}catch(he){if(K=O,B.errors){B.errors.push(he);break}else throw he}ka(),ne=B.tokens,typeof B.comments<"u"&&(ne.comments=B.comments),typeof B.errors<"u"&&(ne.errors=B.errors)}catch(he){throw he}finally{B={}}return ne}function Ia(p,A){var N,K;K=String,typeof p!="string"&&!(p instanceof String)&&(p=K(p)),_=C,S=p,w=0,T=S.length>0?1:0,j=0,R=S.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},typeof A<"u"&&(B.range=typeof A.range=="boolean"&&A.range,B.loc=typeof A.loc=="boolean"&&A.loc,B.attachComment=typeof A.attachComment=="boolean"&&A.attachComment,B.loc&&A.source!==null&&A.source!==void 0&&(B.source=K(A.source)),typeof A.tokens=="boolean"&&A.tokens&&(B.tokens=[]),typeof A.comment=="boolean"&&A.comment&&(B.comments=[]),typeof A.tolerant=="boolean"&&A.tolerant&&(B.errors=[]),B.attachComment&&(B.range=!0,B.comments=[],B.bottomRightStack=[],B.trailingComments=[],B.leadingComments=[]));try{N=_a(),typeof B.comments<"u"&&(N.comments=B.comments),typeof B.tokens<"u"&&(ka(),N.tokens=B.tokens),typeof B.errors<"u"&&(N.errors=B.errors)}catch(ne){throw ne}finally{B={}}return N}a.version="1.2.2",a.tokenize=Ta,a.parse=Ia,a.Syntax=function(){var p,A={};typeof Object.create=="function"&&(A=Object.create(null));for(p in h)h.hasOwnProperty(p)&&(A[p]=h[p]);return typeof Object.freeze=="function"&&Object.freeze(A),A}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(v,C,S,E,w,T,j){E.ast||(E.ast=f,f.initialize());var R=T.length-1;switch(w){case 1:return E.ast.set({expression:{type:"root",value:T[R]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:T[R-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:T[R-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:T[R]}});break;case 15:E.ast.set({expression:{type:"identifier",value:T[R]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:T[R]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(T[R])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:T[R].length>1?E.ast.set({expression:{type:"union",value:T[R]}}):this.$=T[R];break;case 25:this.$=[T[R]];break;case 26:this.$=T[R-2].concat(T[R]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(T[R])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:T[R]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:T[R]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:T[R]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:T[R]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:T[R]}},E.ast.set(this.$);break;case 33:this.$=T[R];break;case 34:this.$=T[R];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(v,C){if(C.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var C=this,S=[0],E=[null],w=[],T=this.table,j="",R=0,_=0,O=2,F=1,B=w.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;w.push(W);var J=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(){var ge;return ge=C.lexer.lex()||F,typeof ge!="number"&&(ge=C.symbols_[ge]||ge),ge}for(var le,de,be,Se,pe={},De,Re,Te,Xe;;){if(de=S[S.length-1],this.defaultActions[de]?be=this.defaultActions[de]:((le===null||typeof le>"u")&&(le=fe()),be=T[de]&&T[de][le]),typeof be>"u"||!be.length||!be[0]){var ve="";Xe=[];for(De in T[de])this.terminals_[De]&&De>O&&Xe.push("'"+this.terminals_[De]+"'");this.lexer.showPosition?ve="Parse error on line "+(R+1)+`:
224
224
  `+this.lexer.showPosition()+`
225
- Expecting `+Ye.join(", ")+", got '"+(this.terminals_[le]||le)+"'":we="Parse error on line "+(R+1)+": Unexpected "+(le==F?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(we,{text:this.lexer.match,token:this.terminals_[le]||le,line:this.lexer.yylineno,loc:W,expected:Ye})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+de+", token: "+le);switch(be[0]){case 1:S.push(le),E.push(this.lexer.yytext),w.push(this.lexer.yylloc),S.push(be[1]),le=null,_=this.lexer.yyleng,j=this.lexer.yytext,R=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(De=this.productions_[be[1]][1],pe.$=E[E.length-De],pe._$={first_line:w[w.length-(De||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(De||1)].first_column,last_column:w[w.length-1].last_column},J&&(pe._$.range=[w[w.length-(De||1)].range[0],w[w.length-1].range[1]]),Se=this.performAction.apply(pe,[j,_,R,this.yy,be[1],E,w].concat(B)),typeof Se<"u")return Se;De&&(S=S.slice(0,-1*De*2),E=E.slice(0,-1*De),w=w.slice(0,-1*De)),S.push(this.productions_[be[1]][0]),E.push(pe.$),w.push(pe._$),_e=T[S[S.length-2]][S[S.length-1]],S.push(_e);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(g){for(var v in g)this._node[v]=g[v];return this._node},node:function(g){return arguments.length&&(this._node=g),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var g=this._nodes;return this.initialize(),g}},h=function(){var g={EOF:1,parseError:function(C,S){if(this.yy.parser)this.yy.parser.parseError(C,S);else throw new Error(C)},setInput:function(v){return this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var C=v.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},unput:function(v){var C=v.length,S=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C-1),this.offset-=C;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===E.length?this.yylloc.first_column:0)+E[E.length-S.length].length-S[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
225
+ Expecting `+Xe.join(", ")+", got '"+(this.terminals_[le]||le)+"'":ve="Parse error on line "+(R+1)+": Unexpected "+(le==F?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(ve,{text:this.lexer.match,token:this.terminals_[le]||le,line:this.lexer.yylineno,loc:W,expected:Xe})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+de+", token: "+le);switch(be[0]){case 1:S.push(le),E.push(this.lexer.yytext),w.push(this.lexer.yylloc),S.push(be[1]),le=null,_=this.lexer.yyleng,j=this.lexer.yytext,R=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(Re=this.productions_[be[1]][1],pe.$=E[E.length-Re],pe._$={first_line:w[w.length-(Re||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(Re||1)].first_column,last_column:w[w.length-1].last_column},J&&(pe._$.range=[w[w.length-(Re||1)].range[0],w[w.length-1].range[1]]),Se=this.performAction.apply(pe,[j,_,R,this.yy,be[1],E,w].concat(B)),typeof Se<"u")return Se;Re&&(S=S.slice(0,-1*Re*2),E=E.slice(0,-1*Re),w=w.slice(0,-1*Re)),S.push(this.productions_[be[1]][0]),E.push(pe.$),w.push(pe._$),Te=T[S[S.length-2]][S[S.length-1]],S.push(Te);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(g){for(var v in g)this._node[v]=g[v];return this._node},node:function(g){return arguments.length&&(this._node=g),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var g=this._nodes;return this.initialize(),g}},h=function(){var g={EOF:1,parseError:function(C,S){if(this.yy.parser)this.yy.parser.parseError(C,S);else throw new Error(C)},setInput:function(v){return this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var C=v.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},unput:function(v){var C=v.length,S=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C-1),this.offset-=C;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===E.length?this.yylloc.first_column:0)+E[E.length-S.length].length-S[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
226
226
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(v){this.unput(this.match.slice(v))},pastInput:function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var v=this.match;return v.length<20&&(v+=this._input.substr(0,20-v.length)),(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var v=this.pastInput(),C=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
227
227
  `+C+"^"},test_match:function(v,C){var S,E,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),E=v[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(v[0].length),this.matched+=v[0],S=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var T in w)this[T]=w[T];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,C,S,E;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),T=0;T<w.length;T++)if(S=this._input.match(this.rules[w[T]]),S&&(!C||S[0].length>C[0].length)){if(C=S,E=T,this.options.backtrack_lexer){if(v=this.test_match(S,w[T]),v!==!1)return v;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(v=this.test_match(C,w[E]),v!==!1?v:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
228
228
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,S,E,w){switch(E){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return S.yytext=S.yytext.substr(1,S.yyleng-2),32;case 11:return S.yytext=S.yytext.substr(1,S.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return g}();l.lexer=h;function d(){this.yy={}}return d.prototype=l,l.Parser=d,new d}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var h=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(h)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,h=function(){return this.initialize.apply(this,arguments)};h.prototype.initialize=function(){this.traverse=C(!0),this.descend=C()},h.prototype.keys=Object.keys,h.prototype.resolve=function(R){var _=[R.operation,R.scope,R.expression.type].join("-"),O=this._fns[_];if(!O)throw new Error("couldn't resolve key: "+_);return O.bind(this)},h.prototype.register=function(R,_){if(!_ instanceof Function)throw new Error("handler must be a function");this._fns[R]=_},h.prototype._fns={"member-child-identifier":function(R,_){var O=R.expression.value,F=_.value;if(F instanceof Object&&O in F)return[{value:F[O],path:_.path.concat(O)}]},"member-descendant-identifier":E(function(R,_,O){return R==O}),"subscript-child-numeric_literal":S(function(R,_,O){return R===O}),"member-child-numeric_literal":S(function(R,_,O){return String(R)===String(O)}),"subscript-descendant-numeric_literal":E(function(R,_,O){return R===O}),"member-child-wildcard":S(function(){return!0}),"member-descendant-wildcard":E(function(){return!0}),"subscript-descendant-wildcard":E(function(){return!0}),"subscript-child-wildcard":S(function(){return!0}),"subscript-child-slice":function(R,_){if(g(_.value)){var O=R.expression.value.split(":").map(j),F=_.value.map(function(B,W){return{value:B,path:_.path.concat(W)}});return u.apply(null,[F].concat(O))}},"subscript-child-union":function(R,_){var O=[];return R.expression.value.forEach(function(F){var B={operation:"subscript",scope:"child",expression:F.expression},W=this.resolve(B),J=W(B,_);J&&(O=O.concat(J))},this),T(O)},"subscript-descendant-union":function(R,_,O){var F=n(".."),B=this,W=[],J=F.nodes(_,"$..*").slice(1);return J.forEach(function(fe){W.length>=O||R.expression.value.forEach(function(le){var de={operation:"subscript",scope:"child",expression:le.expression},be=B.resolve(de),Se=be(de,fe);W=W.concat(Se)})}),T(W)},"subscript-child-filter_expression":function(R,_,O){var F=R.expression.value.slice(2,-1),B=a.parse(F).body[0].expression,W=function(J,fe){return w(B,{"@":fe})};return this.descend(_,null,W,O)},"subscript-descendant-filter_expression":function(R,_,O){var F=R.expression.value.slice(2,-1),B=a.parse(F).body[0].expression,W=function(J,fe){return w(B,{"@":fe})};return this.traverse(_,null,W,O)},"subscript-child-script_expression":function(R,_){var O=R.expression.value.slice(1,-1);return d(_,O,"$[{{value}}]")},"member-child-script_expression":function(R,_){var O=R.expression.value.slice(1,-1);return d(_,O,"$.{{value}}")},"member-descendant-script_expression":function(R,_){var O=R.expression.value.slice(1,-1);return d(_,O,"$..value")}},h.prototype._fns["subscript-child-string_literal"]=h.prototype._fns["member-child-identifier"],h.prototype._fns["member-descendant-numeric_literal"]=h.prototype._fns["subscript-descendant-string_literal"]=h.prototype._fns["member-descendant-identifier"];function d(R,_,O){var F=n("./index"),B=a.parse(_).body[0].expression,W=w(B,{"@":R.value}),J=O.replace(/\{\{\s*value\s*\}\}/g,W),fe=F.nodes(R.value,J);return fe.forEach(function(le){le.path=R.path.concat(le.path.slice(1))}),fe}function g(R){return Array.isArray(R)}function v(R){return R&&!(R instanceof Array)&&R instanceof Object}function C(R){return function(_,O,F,B){var W=_.value,J=_.path,fe=[],le=function(de,be){g(de)?(de.forEach(function(Se,pe){fe.length>=B||F(pe,Se,O)&&fe.push({path:be.concat(pe),value:Se})}),de.forEach(function(Se,pe){fe.length>=B||R&&le(Se,be.concat(pe))})):v(de)&&(this.keys(de).forEach(function(Se){fe.length>=B||F(Se,de[Se],O)&&fe.push({path:be.concat(Se),value:de[Se]})}),this.keys(de).forEach(function(Se){fe.length>=B||R&&le(de[Se],be.concat(Se))}))}.bind(this);return le(W,J),fe}}function S(R){return function(_,O,F){return this.descend(O,_.expression.value,R,F)}}function E(R){return function(_,O,F){return this.traverse(O,_.expression.value,R,F)}}function w(){try{return l.apply(this,arguments)}catch{}}function T(R){return R=R.filter(function(_){return _}),f(R,function(_){return _.path.map(function(O){return String(O).replace("-","--")}).join("-")})}function j(R){var _=String(R);return _.match(/^-?[0-9]+$/)?parseInt(_):null}i.exports=h},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),h=function(){this.initialize.apply(this,arguments)};h.prototype.initialize=function(){this.parser=new l,this.handlers=new f},h.prototype.parse=function(v){return a.ok(d(v),"we need a path"),this.parser.parse(v)},h.prototype.parent=function(v,C){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var S=this.nodes(v,C)[0];return S.path.pop(),this.value(v,S.path)},h.prototype.apply=function(v,C,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),a.equal(typeof S,"function","fn needs to be function");var E=this.nodes(v,C).sort(function(w,T){return T.path.length-w.path.length});return E.forEach(function(w){var T=w.path.pop(),j=this.value(v,this.stringify(w.path)),R=w.value=S.call(v,j[T]);j[T]=R},this),E},h.prototype.value=function(v,C,S){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),arguments.length>=3){var E=this.nodes(v,C).shift();if(!E)return this._vivify(v,C,S);var w=E.path.slice(-1).shift(),T=this.parent(v,this.stringify(E.path));T[w]=S}return this.query(v,this.stringify(C),1).shift()},h.prototype._vivify=function(v,C,S){var E=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var w=this.parser.parse(C).map(function(j){return j.expression.value}),T=function(j,R){var _=j.pop(),O=E.value(v,j);O||(T(j.concat(),typeof _=="string"?{}:[]),O=E.value(v,j)),O[_]=R};return T(w,S),this.query(v,C)[0]},h.prototype.query=function(v,C,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(d(C),"we need a path");var E=this.nodes(v,C,S).map(function(w){return w.value});return E},h.prototype.paths=function(v,C,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var E=this.nodes(v,C,S).map(function(w){return w.path});return E},h.prototype.nodes=function(v,C,S){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),S===0)return[];var E=this.parser.parse(C),w=this.handlers,T=[{path:["$"],value:v}],j=[];return E.length&&E[0].expression.type=="root"&&E.shift(),E.length?(E.forEach(function(R,_){if(!(j.length>=S)){var O=w.resolve(R),F=[];T.forEach(function(B){if(!(j.length>=S)){var W=O(R,B,S);_==E.length-1?j=j.concat(W||[]):F=F.concat(W||[])}}),T=F}}),S?j.slice(0,S):j):T},h.prototype.stringify=function(v){a.ok(v,"we need a path");var C="$",S={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(E){if(E.expression.type!="root"){var w=[E.scope,E.operation].join("-"),T=S[w],j;if(E.expression.type=="string_literal"?j=JSON.stringify(E.expression.value):j=E.expression.value,!T)throw new Error("couldn't find template "+w);C+=T.replace(/{{value}}/,j)}}),C},h.prototype._normalize=function(v){if(a.ok(v,"we need a path"),typeof v=="string")return this.parser.parse(v);if(Array.isArray(v)&&typeof v[0]=="string"){var C=[{expression:{type:"root",value:"$"}}];return v.forEach(function(S,E){if(!(S=="$"&&E===0))if(typeof S=="string"&&S.match("^"+u.identifier+"$"))C.push({operation:"member",scope:"child",expression:{value:S,type:"identifier"}});else{var w=typeof S=="number"?"numeric_literal":"string_literal";C.push({operation:"subscript",scope:"child",expression:{value:S,type:w}})}}),C}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function d(v){return Object.prototype.toString.call(v)=="[object String]"}h.Handlers=f,h.Parser=l;var g=new h;g.JSONPath=h,i.exports=g},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,h=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),h.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,h){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof h=="string")throw new Error("step cannot be a string");var d=u.length;if(h===0)throw new Error("step cannot be zero");if(h=h?a(h):1,l=l<0?d+l:l,f=f<0?d+f:f,l=a(l===0?0:l||(h>0?0:d-1)),f=a(f===0?0:f||(h>0?d:-1)),l=h>0?Math.max(0,l):Math.min(d,l),f=h>0?Math.min(f,d):Math.max(-1,f),h>0&&f<=l)return[];if(h<0&&l<=f)return[];for(var g=[],v=l;v!=f&&!(h<0&&v<=f||h>0&&v>=f);v+=h)g.push(u[v]);return g};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=C;f.AssertionError=function(O){this.name="AssertionError",this.actual=O.actual,this.expected=O.expected,this.operator=O.operator,O.message?(this.message=O.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var F=O.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,F);else{var B=new Error;if(B.stack){var W=B.stack,J=F.name,fe=W.indexOf(`
229
229
  `+J);if(fe>=0){var le=W.indexOf(`
230
- `,fe+1);W=W.substring(le+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function h(_,O){return a.isUndefined(O)?""+O:a.isNumber(O)&&!isFinite(O)||a.isFunction(O)||a.isRegExp(O)?O.toString():O}function d(_,O){return a.isString(_)?_.length<O?_:_.slice(0,O):_}function g(_){return d(JSON.stringify(_.actual,h),128)+" "+_.operator+" "+d(JSON.stringify(_.expected,h),128)}function v(_,O,F,B,W){throw new f.AssertionError({message:F,actual:_,expected:O,operator:B,stackStartFunction:W})}f.fail=v;function C(_,O){_||v(_,!0,O,"==",f.ok)}f.ok=C,f.equal=function(O,F,B){O!=F&&v(O,F,B,"==",f.equal)},f.notEqual=function(O,F,B){O==F&&v(O,F,B,"!=",f.notEqual)},f.deepEqual=function(O,F,B){S(O,F)||v(O,F,B,"deepEqual",f.deepEqual)};function S(_,O){if(_===O)return!0;if(a.isBuffer(_)&&a.isBuffer(O)){if(_.length!=O.length)return!1;for(var F=0;F<_.length;F++)if(_[F]!==O[F])return!1;return!0}else return a.isDate(_)&&a.isDate(O)?_.getTime()===O.getTime():a.isRegExp(_)&&a.isRegExp(O)?_.source===O.source&&_.global===O.global&&_.multiline===O.multiline&&_.lastIndex===O.lastIndex&&_.ignoreCase===O.ignoreCase:!a.isObject(_)&&!a.isObject(O)?_==O:w(_,O)}function E(_){return Object.prototype.toString.call(_)=="[object Arguments]"}function w(_,O){if(a.isNullOrUndefined(_)||a.isNullOrUndefined(O)||_.prototype!==O.prototype)return!1;if(a.isPrimitive(_)||a.isPrimitive(O))return _===O;var F=E(_),B=E(O);if(F&&!B||!F&&B)return!1;if(F)return _=u.call(_),O=u.call(O),S(_,O);var W=R(_),J=R(O),fe,le;if(W.length!=J.length)return!1;for(W.sort(),J.sort(),le=W.length-1;le>=0;le--)if(W[le]!=J[le])return!1;for(le=W.length-1;le>=0;le--)if(fe=W[le],!S(_[fe],O[fe]))return!1;return!0}f.notDeepEqual=function(O,F,B){S(O,F)&&v(O,F,B,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(O,F,B){O!==F&&v(O,F,B,"===",f.strictEqual)},f.notStrictEqual=function(O,F,B){O===F&&v(O,F,B,"!==",f.notStrictEqual)};function T(_,O){return!_||!O?!1:Object.prototype.toString.call(O)=="[object RegExp]"?O.test(_):_ instanceof O?!0:O.call({},_)===!0}function j(_,O,F,B){var W;a.isString(F)&&(B=F,F=null);try{O()}catch(J){W=J}if(B=(F&&F.name?" ("+F.name+").":".")+(B?" "+B:"."),_&&!W&&v(W,F,"Missing expected exception"+B),!_&&T(W,F)&&v(W,F,"Got unwanted exception"+B),_&&W&&F&&!T(W,F)||!_&&W)throw W}f.throws=function(_,O,F){j.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(_,O){j.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(_){if(_)throw _};var R=Object.keys||function(_){var O=[];for(var F in _)l.call(_,F)&&O.push(F);return O}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(Y){if(!J(Y)){for(var X=[],re=0;re<arguments.length;re++)X.push(d(arguments[re]));return X.join(" ")}for(var re=1,Ae=arguments,He=Ae.length,xe=String(Y).replace(l,function(je){if(je==="%%")return"%";if(re>=He)return je;switch(je){case"%s":return String(Ae[re++]);case"%d":return Number(Ae[re++]);case"%j":try{return JSON.stringify(Ae[re++])}catch{return"[Circular]"}default:return je}}),Oe=Ae[re];re<He;Oe=Ae[++re])F(Oe)||!be(Oe)?xe+=" "+Oe:xe+=" "+d(Oe);return xe},o.deprecate=function(Y,X){if(le(u.process))return function(){return o.deprecate(Y,X).apply(this,arguments)};if(a.noDeprecation===!0)return Y;var re=!1;function Ae(){if(!re){if(a.throwDeprecation)throw new Error(X);a.traceDeprecation?console.trace(X):console.error(X),re=!0}return Y.apply(this,arguments)}return Ae};var f={},h;o.debuglog=function(Y){if(le(h)&&(h=a.env.NODE_DEBUG||""),Y=Y.toUpperCase(),!f[Y])if(new RegExp("\\b"+Y+"\\b","i").test(h)){var X=a.pid;f[Y]=function(){var re=o.format.apply(o,arguments);console.error("%s %d: %s",Y,X,re)}}else f[Y]=function(){};return f[Y]};function d(Y,X){var re={seen:[],stylize:v};return arguments.length>=3&&(re.depth=arguments[2]),arguments.length>=4&&(re.colors=arguments[3]),O(X)?re.showHidden=X:X&&o._extend(re,X),le(re.showHidden)&&(re.showHidden=!1),le(re.depth)&&(re.depth=2),le(re.colors)&&(re.colors=!1),le(re.customInspect)&&(re.customInspect=!0),re.colors&&(re.stylize=g),S(re,Y,re.depth)}o.inspect=d,d.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function g(Y,X){var re=d.styles[X];return re?"\x1B["+d.colors[re][0]+"m"+Y+"\x1B["+d.colors[re][1]+"m":Y}function v(Y,X){return Y}function C(Y){var X={};return Y.forEach(function(re,Ae){X[re]=!0}),X}function S(Y,X,re){if(Y.customInspect&&X&&Fe(X.inspect)&&X.inspect!==o.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Ae=X.inspect(re,Y);return J(Ae)||(Ae=S(Y,Ae,re)),Ae}var He=E(Y,X);if(He)return He;var xe=Object.keys(X),Oe=C(xe);if(Y.showHidden&&(xe=Object.getOwnPropertyNames(X)),pe(X)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return w(X);if(xe.length===0){if(Fe(X)){var je=X.name?": "+X.name:"";return Y.stylize("[Function"+je+"]","special")}if(de(X))return Y.stylize(RegExp.prototype.toString.call(X),"regexp");if(Se(X))return Y.stylize(Date.prototype.toString.call(X),"date");if(pe(X))return w(X)}var Pe="",Ct=!1,nn=["{","}"];if(_(X)&&(Ct=!0,nn=["[","]"]),Fe(X)){var Rt=X.name?": "+X.name:"";Pe=" [Function"+Rt+"]"}if(de(X)&&(Pe=" "+RegExp.prototype.toString.call(X)),Se(X)&&(Pe=" "+Date.prototype.toUTCString.call(X)),pe(X)&&(Pe=" "+w(X)),xe.length===0&&(!Ct||X.length==0))return nn[0]+Pe+nn[1];if(re<0)return de(X)?Y.stylize(RegExp.prototype.toString.call(X),"regexp"):Y.stylize("[Object]","special");Y.seen.push(X);var Lt;return Ct?Lt=T(Y,X,re,Oe,xe):Lt=xe.map(function(jt){return j(Y,X,re,Oe,jt,Ct)}),Y.seen.pop(),R(Lt,Pe,nn)}function E(Y,X){if(le(X))return Y.stylize("undefined","undefined");if(J(X)){var re="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(re,"string")}if(W(X))return Y.stylize(""+X,"number");if(O(X))return Y.stylize(""+X,"boolean");if(F(X))return Y.stylize("null","null")}function w(Y){return"["+Error.prototype.toString.call(Y)+"]"}function T(Y,X,re,Ae,He){for(var xe=[],Oe=0,je=X.length;Oe<je;++Oe)We(X,String(Oe))?xe.push(j(Y,X,re,Ae,String(Oe),!0)):xe.push("");return He.forEach(function(Pe){Pe.match(/^\d+$/)||xe.push(j(Y,X,re,Ae,Pe,!0))}),xe}function j(Y,X,re,Ae,He,xe){var Oe,je,Pe;if(Pe=Object.getOwnPropertyDescriptor(X,He)||{value:X[He]},Pe.get?Pe.set?je=Y.stylize("[Getter/Setter]","special"):je=Y.stylize("[Getter]","special"):Pe.set&&(je=Y.stylize("[Setter]","special")),We(Ae,He)||(Oe="["+He+"]"),je||(Y.seen.indexOf(Pe.value)<0?(F(re)?je=S(Y,Pe.value,null):je=S(Y,Pe.value,re-1),je.indexOf(`
231
- `)>-1&&(xe?je=je.split(`
232
- `).map(function(Ct){return" "+Ct}).join(`
233
- `).substr(2):je=`
234
- `+je.split(`
235
- `).map(function(Ct){return" "+Ct}).join(`
236
- `))):je=Y.stylize("[Circular]","special")),le(Oe)){if(xe&&He.match(/^\d+$/))return je;Oe=JSON.stringify(""+He),Oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Oe=Oe.substr(1,Oe.length-2),Oe=Y.stylize(Oe,"name")):(Oe=Oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Oe=Y.stylize(Oe,"string"))}return Oe+": "+je}function R(Y,X,re){var Ae=Y.reduce(function(He,xe){return xe.indexOf(`
237
- `)>=0,He+xe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ae>60?re[0]+(X===""?"":X+`
230
+ `,fe+1);W=W.substring(le+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function h(_,O){return a.isUndefined(O)?""+O:a.isNumber(O)&&!isFinite(O)||a.isFunction(O)||a.isRegExp(O)?O.toString():O}function d(_,O){return a.isString(_)?_.length<O?_:_.slice(0,O):_}function g(_){return d(JSON.stringify(_.actual,h),128)+" "+_.operator+" "+d(JSON.stringify(_.expected,h),128)}function v(_,O,F,B,W){throw new f.AssertionError({message:F,actual:_,expected:O,operator:B,stackStartFunction:W})}f.fail=v;function C(_,O){_||v(_,!0,O,"==",f.ok)}f.ok=C,f.equal=function(O,F,B){O!=F&&v(O,F,B,"==",f.equal)},f.notEqual=function(O,F,B){O==F&&v(O,F,B,"!=",f.notEqual)},f.deepEqual=function(O,F,B){S(O,F)||v(O,F,B,"deepEqual",f.deepEqual)};function S(_,O){if(_===O)return!0;if(a.isBuffer(_)&&a.isBuffer(O)){if(_.length!=O.length)return!1;for(var F=0;F<_.length;F++)if(_[F]!==O[F])return!1;return!0}else return a.isDate(_)&&a.isDate(O)?_.getTime()===O.getTime():a.isRegExp(_)&&a.isRegExp(O)?_.source===O.source&&_.global===O.global&&_.multiline===O.multiline&&_.lastIndex===O.lastIndex&&_.ignoreCase===O.ignoreCase:!a.isObject(_)&&!a.isObject(O)?_==O:w(_,O)}function E(_){return Object.prototype.toString.call(_)=="[object Arguments]"}function w(_,O){if(a.isNullOrUndefined(_)||a.isNullOrUndefined(O)||_.prototype!==O.prototype)return!1;if(a.isPrimitive(_)||a.isPrimitive(O))return _===O;var F=E(_),B=E(O);if(F&&!B||!F&&B)return!1;if(F)return _=u.call(_),O=u.call(O),S(_,O);var W=R(_),J=R(O),fe,le;if(W.length!=J.length)return!1;for(W.sort(),J.sort(),le=W.length-1;le>=0;le--)if(W[le]!=J[le])return!1;for(le=W.length-1;le>=0;le--)if(fe=W[le],!S(_[fe],O[fe]))return!1;return!0}f.notDeepEqual=function(O,F,B){S(O,F)&&v(O,F,B,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(O,F,B){O!==F&&v(O,F,B,"===",f.strictEqual)},f.notStrictEqual=function(O,F,B){O===F&&v(O,F,B,"!==",f.notStrictEqual)};function T(_,O){return!_||!O?!1:Object.prototype.toString.call(O)=="[object RegExp]"?O.test(_):_ instanceof O?!0:O.call({},_)===!0}function j(_,O,F,B){var W;a.isString(F)&&(B=F,F=null);try{O()}catch(J){W=J}if(B=(F&&F.name?" ("+F.name+").":".")+(B?" "+B:"."),_&&!W&&v(W,F,"Missing expected exception"+B),!_&&T(W,F)&&v(W,F,"Got unwanted exception"+B),_&&W&&F&&!T(W,F)||!_&&W)throw W}f.throws=function(_,O,F){j.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(_,O){j.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(_){if(_)throw _};var R=Object.keys||function(_){var O=[];for(var F in _)l.call(_,F)&&O.push(F);return O}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(Y){if(!J(Y)){for(var X=[],re=0;re<arguments.length;re++)X.push(d(arguments[re]));return X.join(" ")}for(var re=1,_e=arguments,ze=_e.length,xe=String(Y).replace(l,function(Be){if(Be==="%%")return"%";if(re>=ze)return Be;switch(Be){case"%s":return String(_e[re++]);case"%d":return Number(_e[re++]);case"%j":try{return JSON.stringify(_e[re++])}catch{return"[Circular]"}default:return Be}}),Fe=_e[re];re<ze;Fe=_e[++re])F(Fe)||!be(Fe)?xe+=" "+Fe:xe+=" "+d(Fe);return xe},o.deprecate=function(Y,X){if(le(u.process))return function(){return o.deprecate(Y,X).apply(this,arguments)};if(a.noDeprecation===!0)return Y;var re=!1;function _e(){if(!re){if(a.throwDeprecation)throw new Error(X);a.traceDeprecation?console.trace(X):console.error(X),re=!0}return Y.apply(this,arguments)}return _e};var f={},h;o.debuglog=function(Y){if(le(h)&&(h=a.env.NODE_DEBUG||""),Y=Y.toUpperCase(),!f[Y])if(new RegExp("\\b"+Y+"\\b","i").test(h)){var X=a.pid;f[Y]=function(){var re=o.format.apply(o,arguments);console.error("%s %d: %s",Y,X,re)}}else f[Y]=function(){};return f[Y]};function d(Y,X){var re={seen:[],stylize:v};return arguments.length>=3&&(re.depth=arguments[2]),arguments.length>=4&&(re.colors=arguments[3]),O(X)?re.showHidden=X:X&&o._extend(re,X),le(re.showHidden)&&(re.showHidden=!1),le(re.depth)&&(re.depth=2),le(re.colors)&&(re.colors=!1),le(re.customInspect)&&(re.customInspect=!0),re.colors&&(re.stylize=g),S(re,Y,re.depth)}o.inspect=d,d.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function g(Y,X){var re=d.styles[X];return re?"\x1B["+d.colors[re][0]+"m"+Y+"\x1B["+d.colors[re][1]+"m":Y}function v(Y,X){return Y}function C(Y){var X={};return Y.forEach(function(re,_e){X[re]=!0}),X}function S(Y,X,re){if(Y.customInspect&&X&&De(X.inspect)&&X.inspect!==o.inspect&&!(X.constructor&&X.constructor.prototype===X)){var _e=X.inspect(re,Y);return J(_e)||(_e=S(Y,_e,re)),_e}var ze=E(Y,X);if(ze)return ze;var xe=Object.keys(X),Fe=C(xe);if(Y.showHidden&&(xe=Object.getOwnPropertyNames(X)),pe(X)&&(xe.indexOf("message")>=0||xe.indexOf("description")>=0))return w(X);if(xe.length===0){if(De(X)){var Be=X.name?": "+X.name:"";return Y.stylize("[Function"+Be+"]","special")}if(de(X))return Y.stylize(RegExp.prototype.toString.call(X),"regexp");if(Se(X))return Y.stylize(Date.prototype.toString.call(X),"date");if(pe(X))return w(X)}var Le="",_t=!1,rn=["{","}"];if(_(X)&&(_t=!0,rn=["[","]"]),De(X)){var Pt=X.name?": "+X.name:"";Le=" [Function"+Pt+"]"}if(de(X)&&(Le=" "+RegExp.prototype.toString.call(X)),Se(X)&&(Le=" "+Date.prototype.toUTCString.call(X)),pe(X)&&(Le=" "+w(X)),xe.length===0&&(!_t||X.length==0))return rn[0]+Le+rn[1];if(re<0)return de(X)?Y.stylize(RegExp.prototype.toString.call(X),"regexp"):Y.stylize("[Object]","special");Y.seen.push(X);var Rt;return _t?Rt=T(Y,X,re,Fe,xe):Rt=xe.map(function(Lt){return j(Y,X,re,Fe,Lt,_t)}),Y.seen.pop(),R(Rt,Le,rn)}function E(Y,X){if(le(X))return Y.stylize("undefined","undefined");if(J(X)){var re="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(re,"string")}if(W(X))return Y.stylize(""+X,"number");if(O(X))return Y.stylize(""+X,"boolean");if(F(X))return Y.stylize("null","null")}function w(Y){return"["+Error.prototype.toString.call(Y)+"]"}function T(Y,X,re,_e,ze){for(var xe=[],Fe=0,Be=X.length;Fe<Be;++Fe)Ke(X,String(Fe))?xe.push(j(Y,X,re,_e,String(Fe),!0)):xe.push("");return ze.forEach(function(Le){Le.match(/^\d+$/)||xe.push(j(Y,X,re,_e,Le,!0))}),xe}function j(Y,X,re,_e,ze,xe){var Fe,Be,Le;if(Le=Object.getOwnPropertyDescriptor(X,ze)||{value:X[ze]},Le.get?Le.set?Be=Y.stylize("[Getter/Setter]","special"):Be=Y.stylize("[Getter]","special"):Le.set&&(Be=Y.stylize("[Setter]","special")),Ke(_e,ze)||(Fe="["+ze+"]"),Be||(Y.seen.indexOf(Le.value)<0?(F(re)?Be=S(Y,Le.value,null):Be=S(Y,Le.value,re-1),Be.indexOf(`
231
+ `)>-1&&(xe?Be=Be.split(`
232
+ `).map(function(_t){return" "+_t}).join(`
233
+ `).substr(2):Be=`
234
+ `+Be.split(`
235
+ `).map(function(_t){return" "+_t}).join(`
236
+ `))):Be=Y.stylize("[Circular]","special")),le(Fe)){if(xe&&ze.match(/^\d+$/))return Be;Fe=JSON.stringify(""+ze),Fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Fe=Fe.substr(1,Fe.length-2),Fe=Y.stylize(Fe,"name")):(Fe=Fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Fe=Y.stylize(Fe,"string"))}return Fe+": "+Be}function R(Y,X,re){var _e=Y.reduce(function(ze,xe){return xe.indexOf(`
237
+ `)>=0,ze+xe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return _e>60?re[0]+(X===""?"":X+`
238
238
  `)+" "+Y.join(`,
239
- `)+" "+re[1]:re[0]+X+" "+Y.join(", ")+" "+re[1]}function _(Y){return Array.isArray(Y)}o.isArray=_;function O(Y){return typeof Y=="boolean"}o.isBoolean=O;function F(Y){return Y===null}o.isNull=F;function B(Y){return Y==null}o.isNullOrUndefined=B;function W(Y){return typeof Y=="number"}o.isNumber=W;function J(Y){return typeof Y=="string"}o.isString=J;function fe(Y){return typeof Y=="symbol"}o.isSymbol=fe;function le(Y){return Y===void 0}o.isUndefined=le;function de(Y){return be(Y)&&_e(Y)==="[object RegExp]"}o.isRegExp=de;function be(Y){return typeof Y=="object"&&Y!==null}o.isObject=be;function Se(Y){return be(Y)&&_e(Y)==="[object Date]"}o.isDate=Se;function pe(Y){return be(Y)&&(_e(Y)==="[object Error]"||Y instanceof Error)}o.isError=pe;function Fe(Y){return typeof Y=="function"}o.isFunction=Fe;function De(Y){return Y===null||typeof Y=="boolean"||typeof Y=="number"||typeof Y=="string"||typeof Y=="symbol"||typeof Y>"u"}o.isPrimitive=De,o.isBuffer=n("./support/isBuffer");function _e(Y){return Object.prototype.toString.call(Y)}function Ye(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}var we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ge(){var Y=new Date,X=[Ye(Y.getHours()),Ye(Y.getMinutes()),Ye(Y.getSeconds())].join(":");return[Y.getDate(),we[Y.getMonth()],X].join(" ")}o.log=function(){console.log("%s - %s",ge(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(Y,X){if(!X||!be(X))return Y;for(var re=Object.keys(X),Ae=re.length;Ae--;)Y[re[Ae]]=X[re[Ae]];return Y};function We(Y,X){return Object.prototype.hasOwnProperty.call(Y,X)}}).call(this,n("_process"),typeof Xn<"u"?Xn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(d,g){for(var v=0,C=d.length-1;C>=0;C--){var S=d[C];S==="."?d.splice(C,1):S===".."?(d.splice(C,1),v++):v&&(d.splice(C,1),v--)}if(g)for(;v--;v)d.unshift("..");return d}o.resolve=function(){for(var d="",g=!1,v=arguments.length-1;v>=-1&&!g;v--){var C=v>=0?arguments[v]:a.cwd();if(typeof C!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!C)continue;d=C+"/"+d,g=C.charAt(0)==="/"}return d=u(f(d.split("/"),function(S){return!!S}),!g).join("/"),(g?"/":"")+d||"."},o.normalize=function(d){var g=o.isAbsolute(d),v=h(d,-1)==="/";return d=u(f(d.split("/"),function(C){return!!C}),!g).join("/"),!d&&!g&&(d="."),d&&v&&(d+="/"),(g?"/":"")+d},o.isAbsolute=function(d){return d.charAt(0)==="/"},o.join=function(){var d=Array.prototype.slice.call(arguments,0);return o.normalize(f(d,function(g,v){if(typeof g!="string")throw new TypeError("Arguments to path.join must be strings");return g}).join("/"))},o.relative=function(d,g){d=o.resolve(d).substr(1),g=o.resolve(g).substr(1);function v(R){for(var _=0;_<R.length&&R[_]==="";_++);for(var O=R.length-1;O>=0&&R[O]==="";O--);return _>O?[]:R.slice(_,O-_+1)}for(var C=v(d.split("/")),S=v(g.split("/")),E=Math.min(C.length,S.length),w=E,T=0;T<E;T++)if(C[T]!==S[T]){w=T;break}for(var j=[],T=w;T<C.length;T++)j.push("..");return j=j.concat(S.slice(w)),j.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(d){if(typeof d!="string"&&(d=d+""),d.length===0)return".";for(var g=d.charCodeAt(0),v=g===47,C=-1,S=!0,E=d.length-1;E>=1;--E)if(g=d.charCodeAt(E),g===47){if(!S){C=E;break}}else S=!1;return C===-1?v?"/":".":v&&C===1?"/":d.slice(0,C)};function l(d){typeof d!="string"&&(d=d+"");var g=0,v=-1,C=!0,S;for(S=d.length-1;S>=0;--S)if(d.charCodeAt(S)===47){if(!C){g=S+1;break}}else v===-1&&(C=!1,v=S+1);return v===-1?"":d.slice(g,v)}o.basename=function(d,g){var v=l(d);return g&&v.substr(-1*g.length)===g&&(v=v.substr(0,v.length-g.length)),v},o.extname=function(d){typeof d!="string"&&(d=d+"");for(var g=-1,v=0,C=-1,S=!0,E=0,w=d.length-1;w>=0;--w){var T=d.charCodeAt(w);if(T===47){if(!S){v=w+1;break}continue}C===-1&&(S=!1,C=w+1),T===46?g===-1?g=w:E!==1&&(E=1):g!==-1&&(E=-1)}return g===-1||C===-1||E===0||E===1&&g===C-1&&g===v+1?"":d.slice(g,C)};function f(d,g){if(d.filter)return d.filter(g);for(var v=[],C=0;C<d.length;C++)g(d[C],C,d)&&v.push(d[C]);return v}var h="ab".substr(-1)==="b"?function(d,g,v){return d.substr(g,v)}:function(d,g,v){return g<0&&(g=d.length+g),d.substr(g,v)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=h}catch{l=h}})();function d(_){if(u===setTimeout)return setTimeout(_,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(_,0);try{return u(_,0)}catch{try{return u.call(null,_,0)}catch{return u.call(this,_,0)}}}function g(_){if(l===clearTimeout)return clearTimeout(_);if((l===h||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(_);try{return l(_)}catch{try{return l.call(null,_)}catch{return l.call(this,_)}}}var v=[],C=!1,S,E=-1;function w(){!C||!S||(C=!1,S.length?v=S.concat(v):E=-1,v.length&&T())}function T(){if(!C){var _=d(w);C=!0;for(var O=v.length;O;){for(S=v,v=[];++E<O;)S&&S[E].run();E=-1,O=v.length}S=null,C=!1,g(_)}}a.nextTick=function(_){var O=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)O[F-1]=arguments[F];v.push(new j(_,O)),v.length===1&&!C&&d(T)};function j(_,O){this.fun=_,this.array=O}j.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function R(){}a.on=R,a.addListener=R,a.once=R,a.off=R,a.removeListener=R,a.removeAllListeners=R,a.emit=R,a.prependListener=R,a.prependOnceListener=R,a.listeners=function(_){return[]},a.binding=function(_){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(_){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},h=function d(g,v){if(g.type==="Literal")return g.value;if(g.type==="UnaryExpression"){var C=d(g.argument);return g.operator==="+"?+C:g.operator==="-"?-C:g.operator==="~"?~C:g.operator==="!"?!C:f}else if(g.type==="ArrayExpression"){for(var S=[],E=0,w=g.elements.length;E<w;E++){var T=d(g.elements[E]);if(T===f)return f;S.push(T)}return S}else if(g.type==="ObjectExpression"){for(var j={},E=0;E<g.properties.length;E++){var R=g.properties[E],_=R.value===null?R.value:d(R.value);if(_===f)return f;j[R.key.value||R.key.name]=_}return j}else if(g.type==="BinaryExpression"||g.type==="LogicalExpression"){var w=d(g.left);if(w===f)return f;var O=d(g.right);if(O===f)return f;var F=g.operator;return F==="=="?w==O:F==="==="?w===O:F==="!="?w!=O:F==="!=="?w!==O:F==="+"?w+O:F==="-"?w-O:F==="*"?w*O:F==="/"?w/O:F==="%"?w%O:F==="<"?w<O:F==="<="?w<=O:F===">"?w>O:F===">="?w>=O:F==="|"?w|O:F==="&"?w&O:F==="^"?w^O:F==="&&"?w&&O:F==="||"?w||O:f}else{if(g.type==="Identifier")return{}.hasOwnProperty.call(l,g.name)?l[g.name]:f;if(g.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(g.type==="CallExpression"){var B=d(g.callee);if(B===f||typeof B!="function")return f;var W=g.callee.object?d(g.callee.object):f;W===f&&(W=null);for(var J=[],E=0,w=g.arguments.length;E<w;E++){var T=d(g.arguments[E]);if(T===f)return f;J.push(T)}return B.apply(W,J)}else if(g.type==="MemberExpression"){var j=d(g.object);if(j===f||typeof j=="function")return f;if(g.property.type==="Identifier")return j[g.property.name];var R=d(g.property);return R===f?f:j[R]}else if(g.type==="ConditionalExpression"){var C=d(g.test);return C===f?f:d(C?g.consequent:g.alternate)}else if(g.type==="ExpressionStatement"){var C=d(g.expression);return C===f?f:C}else{if(g.type==="ReturnStatement")return d(g.argument);if(g.type==="FunctionExpression"){var fe=g.body.body,le={};Object.keys(l).forEach(function(we){le[we]=l[we]});for(var E=0;E<g.params.length;E++){var de=g.params[E];if(de.type=="Identifier")l[de.name]=null;else return f}for(var E in fe)if(d(fe[E])===f)return f;l=le;var be=Object.keys(l),Se=be.map(function(we){return l[we]});return Function(be.join(", "),"return "+a(g)).apply(null,Se)}else if(g.type==="TemplateLiteral"){for(var pe="",E=0;E<g.expressions.length;E++)pe+=d(g.quasis[E]),pe+=d(g.expressions[E]);return pe+=d(g.quasis[E]),pe}else if(g.type==="TaggedTemplateExpression"){var Fe=d(g.tag),De=g.quasi,_e=De.quasis.map(d),Ye=De.expressions.map(d);return Fe.apply(null,[_e].concat(Ye))}else return g.type==="TemplateElement"?g.value.cooked:f}}}(u);return h===f?void 0:h}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Wh);var o2=Wh.exports;const Kh=mu(o2),Hh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let h="";f.includes("[")&&(h=JSON.stringify(f),o.push({dataIndex:h,jsonPath:f}));const d=f.split(".").slice(1);return{title:l,dataIndex:h||d,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"&&l!==null){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:h,jsonPath:d})=>{const g=Kh.query(l,`$${d}`);f[h]=Array.isArray(g)&&g.length===1?g[0]:g}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&l!==null&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},a2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:d,selectData:g,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:S}=Hh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return x.jsx(qh,{theme:e,baseprefix:t,dataSource:C,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:d,selectData:g,tableProps:v})};var u2="Expected a function",zh=NaN,c2="[object Symbol]",l2=/^\s+|\s+$/g,f2=/^[-+]0x[0-9a-f]+$/i,h2=/^0b[01]+$/i,d2=/^0o[0-7]+$/i,p2=parseInt,g2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,y2=typeof self=="object"&&self&&self.Object===Object&&self,m2=g2||y2||Function("return this")(),b2=Object.prototype,w2=b2.toString,v2=Math.max,x2=Math.min,Zu=function(){return m2.Date.now()};function E2(e,t,n){var i,o,a,u,l,f,h=0,d=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(u2);t=Gh(t)||0,ec(n)&&(d=!!n.leading,g="maxWait"in n,a=g?v2(Gh(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(F){var B=i,W=o;return i=o=void 0,h=F,u=e.apply(W,B),u}function S(F){return h=F,l=setTimeout(T,t),d?C(F):u}function E(F){var B=F-f,W=F-h,J=t-B;return g?x2(J,a-W):J}function w(F){var B=F-f,W=F-h;return f===void 0||B>=t||B<0||g&&W>=a}function T(){var F=Zu();if(w(F))return j(F);l=setTimeout(T,E(F))}function j(F){return l=void 0,v&&i?C(F):(i=o=void 0,u)}function R(){l!==void 0&&clearTimeout(l),h=0,i=f=o=l=void 0}function _(){return l===void 0?u:j(Zu())}function O(){var F=Zu(),B=w(F);if(i=arguments,o=this,f=F,B){if(l===void 0)return S(f);if(g)return l=setTimeout(T,t),C(f)}return l===void 0&&(l=setTimeout(T,t)),u}return O.cancel=R,O.flush=_,O}function ec(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function S2(e){return!!e&&typeof e=="object"}function A2(e){return typeof e=="symbol"||S2(e)&&w2.call(e)==c2}function Gh(e){if(typeof e=="number")return e;if(A2(e))return zh;if(ec(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ec(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(l2,"");var n=h2.test(e);return n||d2.test(e)?p2(e.slice(2),n?2:8):f2.test(e)?zh:+e}var C2=E2;const Jh=mu(C2);function _2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function k2(e,t=500,n){const i=Z.useRef();_2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=Jh(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Z.useEffect(()=>{i.current=Jh(e,t,n)},[e,t,n]),o}const Yh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return $e.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Wr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>xn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Yh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),tc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase());function Rs(e,t){const n=10**t;return Math.floor(e*n)/n}const T2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Rs(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Rs(n,1)},nc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Rs(t,1)}return 0},rc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Rs(t,1)}return 0},ic=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=ic(u,t,n,l);o=o.concat(f)}}return o},Xh=(e,t)=>{const n=ln.cloneDeep(e),i=ic(t,"type","rangeInputCpu");return ic(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=ln.get(n,u);(l||l===0)&&ln.set(n,u,rc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=ln.get(n,u);(l||l===0)&&ln.set(n,u,nc(l))}),n},sc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...sc(o,a)]:[a]}),Qh=e=>e.map((t,n)=>e.slice(0,n+1));function I2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(i){I2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function O2(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function F2(e,t){if(e==null)return{};var n=O2(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function B2(e,t){return D2(e)||P2(e,t)||R2(e,t)||L2()}function D2(e){if(Array.isArray(e))return e}function P2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function R2(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function L2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
239
+ `)+" "+re[1]:re[0]+X+" "+Y.join(", ")+" "+re[1]}function _(Y){return Array.isArray(Y)}o.isArray=_;function O(Y){return typeof Y=="boolean"}o.isBoolean=O;function F(Y){return Y===null}o.isNull=F;function B(Y){return Y==null}o.isNullOrUndefined=B;function W(Y){return typeof Y=="number"}o.isNumber=W;function J(Y){return typeof Y=="string"}o.isString=J;function fe(Y){return typeof Y=="symbol"}o.isSymbol=fe;function le(Y){return Y===void 0}o.isUndefined=le;function de(Y){return be(Y)&&Te(Y)==="[object RegExp]"}o.isRegExp=de;function be(Y){return typeof Y=="object"&&Y!==null}o.isObject=be;function Se(Y){return be(Y)&&Te(Y)==="[object Date]"}o.isDate=Se;function pe(Y){return be(Y)&&(Te(Y)==="[object Error]"||Y instanceof Error)}o.isError=pe;function De(Y){return typeof Y=="function"}o.isFunction=De;function Re(Y){return Y===null||typeof Y=="boolean"||typeof Y=="number"||typeof Y=="string"||typeof Y=="symbol"||typeof Y>"u"}o.isPrimitive=Re,o.isBuffer=n("./support/isBuffer");function Te(Y){return Object.prototype.toString.call(Y)}function Xe(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}var ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ge(){var Y=new Date,X=[Xe(Y.getHours()),Xe(Y.getMinutes()),Xe(Y.getSeconds())].join(":");return[Y.getDate(),ve[Y.getMonth()],X].join(" ")}o.log=function(){console.log("%s - %s",ge(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(Y,X){if(!X||!be(X))return Y;for(var re=Object.keys(X),_e=re.length;_e--;)Y[re[_e]]=X[re[_e]];return Y};function Ke(Y,X){return Object.prototype.hasOwnProperty.call(Y,X)}}).call(this,n("_process"),typeof Xn<"u"?Xn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(d,g){for(var v=0,C=d.length-1;C>=0;C--){var S=d[C];S==="."?d.splice(C,1):S===".."?(d.splice(C,1),v++):v&&(d.splice(C,1),v--)}if(g)for(;v--;v)d.unshift("..");return d}o.resolve=function(){for(var d="",g=!1,v=arguments.length-1;v>=-1&&!g;v--){var C=v>=0?arguments[v]:a.cwd();if(typeof C!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!C)continue;d=C+"/"+d,g=C.charAt(0)==="/"}return d=u(f(d.split("/"),function(S){return!!S}),!g).join("/"),(g?"/":"")+d||"."},o.normalize=function(d){var g=o.isAbsolute(d),v=h(d,-1)==="/";return d=u(f(d.split("/"),function(C){return!!C}),!g).join("/"),!d&&!g&&(d="."),d&&v&&(d+="/"),(g?"/":"")+d},o.isAbsolute=function(d){return d.charAt(0)==="/"},o.join=function(){var d=Array.prototype.slice.call(arguments,0);return o.normalize(f(d,function(g,v){if(typeof g!="string")throw new TypeError("Arguments to path.join must be strings");return g}).join("/"))},o.relative=function(d,g){d=o.resolve(d).substr(1),g=o.resolve(g).substr(1);function v(R){for(var _=0;_<R.length&&R[_]==="";_++);for(var O=R.length-1;O>=0&&R[O]==="";O--);return _>O?[]:R.slice(_,O-_+1)}for(var C=v(d.split("/")),S=v(g.split("/")),E=Math.min(C.length,S.length),w=E,T=0;T<E;T++)if(C[T]!==S[T]){w=T;break}for(var j=[],T=w;T<C.length;T++)j.push("..");return j=j.concat(S.slice(w)),j.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(d){if(typeof d!="string"&&(d=d+""),d.length===0)return".";for(var g=d.charCodeAt(0),v=g===47,C=-1,S=!0,E=d.length-1;E>=1;--E)if(g=d.charCodeAt(E),g===47){if(!S){C=E;break}}else S=!1;return C===-1?v?"/":".":v&&C===1?"/":d.slice(0,C)};function l(d){typeof d!="string"&&(d=d+"");var g=0,v=-1,C=!0,S;for(S=d.length-1;S>=0;--S)if(d.charCodeAt(S)===47){if(!C){g=S+1;break}}else v===-1&&(C=!1,v=S+1);return v===-1?"":d.slice(g,v)}o.basename=function(d,g){var v=l(d);return g&&v.substr(-1*g.length)===g&&(v=v.substr(0,v.length-g.length)),v},o.extname=function(d){typeof d!="string"&&(d=d+"");for(var g=-1,v=0,C=-1,S=!0,E=0,w=d.length-1;w>=0;--w){var T=d.charCodeAt(w);if(T===47){if(!S){v=w+1;break}continue}C===-1&&(S=!1,C=w+1),T===46?g===-1?g=w:E!==1&&(E=1):g!==-1&&(E=-1)}return g===-1||C===-1||E===0||E===1&&g===C-1&&g===v+1?"":d.slice(g,C)};function f(d,g){if(d.filter)return d.filter(g);for(var v=[],C=0;C<d.length;C++)g(d[C],C,d)&&v.push(d[C]);return v}var h="ab".substr(-1)==="b"?function(d,g,v){return d.substr(g,v)}:function(d,g,v){return g<0&&(g=d.length+g),d.substr(g,v)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=h}catch{l=h}})();function d(_){if(u===setTimeout)return setTimeout(_,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(_,0);try{return u(_,0)}catch{try{return u.call(null,_,0)}catch{return u.call(this,_,0)}}}function g(_){if(l===clearTimeout)return clearTimeout(_);if((l===h||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(_);try{return l(_)}catch{try{return l.call(null,_)}catch{return l.call(this,_)}}}var v=[],C=!1,S,E=-1;function w(){!C||!S||(C=!1,S.length?v=S.concat(v):E=-1,v.length&&T())}function T(){if(!C){var _=d(w);C=!0;for(var O=v.length;O;){for(S=v,v=[];++E<O;)S&&S[E].run();E=-1,O=v.length}S=null,C=!1,g(_)}}a.nextTick=function(_){var O=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)O[F-1]=arguments[F];v.push(new j(_,O)),v.length===1&&!C&&d(T)};function j(_,O){this.fun=_,this.array=O}j.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function R(){}a.on=R,a.addListener=R,a.once=R,a.off=R,a.removeListener=R,a.removeAllListeners=R,a.emit=R,a.prependListener=R,a.prependOnceListener=R,a.listeners=function(_){return[]},a.binding=function(_){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(_){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},h=function d(g,v){if(g.type==="Literal")return g.value;if(g.type==="UnaryExpression"){var C=d(g.argument);return g.operator==="+"?+C:g.operator==="-"?-C:g.operator==="~"?~C:g.operator==="!"?!C:f}else if(g.type==="ArrayExpression"){for(var S=[],E=0,w=g.elements.length;E<w;E++){var T=d(g.elements[E]);if(T===f)return f;S.push(T)}return S}else if(g.type==="ObjectExpression"){for(var j={},E=0;E<g.properties.length;E++){var R=g.properties[E],_=R.value===null?R.value:d(R.value);if(_===f)return f;j[R.key.value||R.key.name]=_}return j}else if(g.type==="BinaryExpression"||g.type==="LogicalExpression"){var w=d(g.left);if(w===f)return f;var O=d(g.right);if(O===f)return f;var F=g.operator;return F==="=="?w==O:F==="==="?w===O:F==="!="?w!=O:F==="!=="?w!==O:F==="+"?w+O:F==="-"?w-O:F==="*"?w*O:F==="/"?w/O:F==="%"?w%O:F==="<"?w<O:F==="<="?w<=O:F===">"?w>O:F===">="?w>=O:F==="|"?w|O:F==="&"?w&O:F==="^"?w^O:F==="&&"?w&&O:F==="||"?w||O:f}else{if(g.type==="Identifier")return{}.hasOwnProperty.call(l,g.name)?l[g.name]:f;if(g.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(g.type==="CallExpression"){var B=d(g.callee);if(B===f||typeof B!="function")return f;var W=g.callee.object?d(g.callee.object):f;W===f&&(W=null);for(var J=[],E=0,w=g.arguments.length;E<w;E++){var T=d(g.arguments[E]);if(T===f)return f;J.push(T)}return B.apply(W,J)}else if(g.type==="MemberExpression"){var j=d(g.object);if(j===f||typeof j=="function")return f;if(g.property.type==="Identifier")return j[g.property.name];var R=d(g.property);return R===f?f:j[R]}else if(g.type==="ConditionalExpression"){var C=d(g.test);return C===f?f:d(C?g.consequent:g.alternate)}else if(g.type==="ExpressionStatement"){var C=d(g.expression);return C===f?f:C}else{if(g.type==="ReturnStatement")return d(g.argument);if(g.type==="FunctionExpression"){var fe=g.body.body,le={};Object.keys(l).forEach(function(ve){le[ve]=l[ve]});for(var E=0;E<g.params.length;E++){var de=g.params[E];if(de.type=="Identifier")l[de.name]=null;else return f}for(var E in fe)if(d(fe[E])===f)return f;l=le;var be=Object.keys(l),Se=be.map(function(ve){return l[ve]});return Function(be.join(", "),"return "+a(g)).apply(null,Se)}else if(g.type==="TemplateLiteral"){for(var pe="",E=0;E<g.expressions.length;E++)pe+=d(g.quasis[E]),pe+=d(g.expressions[E]);return pe+=d(g.quasis[E]),pe}else if(g.type==="TaggedTemplateExpression"){var De=d(g.tag),Re=g.quasi,Te=Re.quasis.map(d),Xe=Re.expressions.map(d);return De.apply(null,[Te].concat(Xe))}else return g.type==="TemplateElement"?g.value.cooked:f}}}(u);return h===f?void 0:h}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Wh);var o2=Wh.exports;const Kh=mu(o2),Hh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let h="";f.includes("[")&&(h=JSON.stringify(f),o.push({dataIndex:h,jsonPath:f}));const d=f.split(".").slice(1);return{title:l,dataIndex:h||d,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"&&l!==null){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:h,jsonPath:d})=>{const g=Kh.query(l,`$${d}`);f[h]=Array.isArray(g)&&g.length===1?g[0]:g}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&l!==null&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},a2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:d,selectData:g,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:S}=Hh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return x.jsx(qh,{theme:e,baseprefix:t,dataSource:C,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:d,selectData:g,tableProps:v})};var u2="Expected a function",zh=NaN,c2="[object Symbol]",l2=/^\s+|\s+$/g,f2=/^[-+]0x[0-9a-f]+$/i,h2=/^0b[01]+$/i,d2=/^0o[0-7]+$/i,p2=parseInt,g2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,y2=typeof self=="object"&&self&&self.Object===Object&&self,m2=g2||y2||Function("return this")(),b2=Object.prototype,w2=b2.toString,v2=Math.max,x2=Math.min,Zu=function(){return m2.Date.now()};function E2(e,t,n){var i,o,a,u,l,f,h=0,d=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(u2);t=Gh(t)||0,ec(n)&&(d=!!n.leading,g="maxWait"in n,a=g?v2(Gh(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(F){var B=i,W=o;return i=o=void 0,h=F,u=e.apply(W,B),u}function S(F){return h=F,l=setTimeout(T,t),d?C(F):u}function E(F){var B=F-f,W=F-h,J=t-B;return g?x2(J,a-W):J}function w(F){var B=F-f,W=F-h;return f===void 0||B>=t||B<0||g&&W>=a}function T(){var F=Zu();if(w(F))return j(F);l=setTimeout(T,E(F))}function j(F){return l=void 0,v&&i?C(F):(i=o=void 0,u)}function R(){l!==void 0&&clearTimeout(l),h=0,i=f=o=l=void 0}function _(){return l===void 0?u:j(Zu())}function O(){var F=Zu(),B=w(F);if(i=arguments,o=this,f=F,B){if(l===void 0)return S(f);if(g)return l=setTimeout(T,t),C(f)}return l===void 0&&(l=setTimeout(T,t)),u}return O.cancel=R,O.flush=_,O}function ec(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function S2(e){return!!e&&typeof e=="object"}function A2(e){return typeof e=="symbol"||S2(e)&&w2.call(e)==c2}function Gh(e){if(typeof e=="number")return e;if(A2(e))return zh;if(ec(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ec(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(l2,"");var n=h2.test(e);return n||d2.test(e)?p2(e.slice(2),n?2:8):f2.test(e)?zh:+e}var C2=E2;const Jh=mu(C2);function _2(e){const t=Q.useRef(e);t.current=e,Q.useEffect(()=>()=>{t.current()},[])}function k2(e,t=500,n){const i=Q.useRef();_2(()=>{i.current&&i.current.cancel()});const o=Q.useMemo(()=>{const a=Jh(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Q.useEffect(()=>{i.current=Jh(e,t,n)},[e,t,n]),o}const Yh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return $e.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Wr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>vn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Yh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),tc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase());function Rs(e,t){const n=10**t;return Math.floor(e*n)/n}const T2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Rs(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Rs(n,1)},nc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Rs(t,1)}return 0},rc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Rs(t,1)}return 0},ic=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=ic(u,t,n,l);o=o.concat(f)}}return o},Xh=(e,t)=>{const n=Mt.cloneDeep(e),i=ic(t,"type","rangeInputCpu");return ic(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Mt.get(n,u);(l||l===0)&&Mt.set(n,u,rc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Mt.get(n,u);(l||l===0)&&Mt.set(n,u,nc(l))}),n},sc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...sc(o,a)]:[a]}),Qh=e=>e.map((t,n)=>e.slice(0,n+1));function I2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(i){I2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function O2(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function F2(e,t){if(e==null)return{};var n=O2(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function B2(e,t){return D2(e)||P2(e,t)||R2(e,t)||L2()}function D2(e){if(Array.isArray(e))return e}function P2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function R2(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function L2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
240
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function rd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nd(Object(n),!0).forEach(function(i){j2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function N2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function Ls(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function Zo(e){return{}.toString.call(e).includes("Object")}function $2(e){return!Object.keys(e).length}function js(e){return typeof e=="function"}function M2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function U2(e,t){return Zo(t)||Kr("changeType"),Object.keys(t).some(function(n){return!M2(e,n)})&&Kr("changeField"),t}function V2(e){js(e)||Kr("selectorType")}function q2(e){js(e)||Zo(e)||Kr("handlerType"),Zo(e)&&Object.values(e).some(function(t){return!js(t)})&&Kr("handlersType")}function W2(e){e||Kr("initialIsRequired"),Zo(e)||Kr("initialType"),$2(e)&&Kr("initialContent")}function K2(e,t){throw new Error(e[t]||e.default)}var H2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Kr=Ls(K2)(H2),ea={changes:U2,selector:V2,handler:q2,initial:W2};function z2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ea.initial(e),ea.handler(t);var n={current:e},i=Ls(Y2)(n,t),o=Ls(J2)(n),a=Ls(ea.changes)(e),u=Ls(G2)(n);function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return ea.selector(h),h(n.current)}function f(h){N2(i,o,a,u)(h)}return[l,f]}function G2(e,t){return js(t)?t(e.current):t}function J2(e,t){return e.current=rd(rd({},e.current),t),t}function Y2(e,t,n){return js(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var X2={create:z2},Q2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Z2(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function eb(e){return{}.toString.call(e).includes("Object")}function tb(e){return e||sd("configIsRequired"),eb(e)||sd("configType"),e.urls?(nb(),{paths:{vs:e.urls.monacoBase}}):e}function nb(){console.warn(id.deprecation)}function rb(e,t){throw new Error(e[t]||e.default)}var id={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
241
241
  You are using deprecated way of configuration.
242
242
 
@@ -246,8 +246,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
246
246
  monaco.config({ paths: { vs: '...' } })
247
247
 
248
248
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
249
- `},sd=Z2(rb)(id),ib={config:tb},sb=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function od(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],od(e[n],t[n]))}),ed(ed({},e),t)}var ob={type:"cancelation",msg:"operation is manually canceled"};function oc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(ob):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var ab=X2.create({config:Q2,isInitialized:!1,resolve:null,reject:null,monaco:null}),ad=B2(ab,2),Ns=ad[0],ta=ad[1];function ub(e){var t=ib.config(e),n=t.monaco,i=F2(t,["monaco"]);ta(function(o){return{config:od(o.config,i),monaco:n}})}function cb(){var e=Ns(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(ta({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),oc(ac);if(window.monaco&&window.monaco.editor)return ud(window.monaco),e.resolve(window.monaco),oc(ac);sb(lb,hb)(db)}return oc(ac)}function lb(e){return document.body.appendChild(e)}function fb(e){var t=document.createElement("script");return e&&(t.src=e),t}function hb(e){var t=Ns(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=fb("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function db(){var e=Ns(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){ud(n),e.resolve(n)},function(n){e.reject(n)})}function ud(e){Ns().monaco||ta({monaco:e})}function pb(){return Ns(function(e){var t=e.monaco;return t})}var ac=new Promise(function(e,t){return ta({resolve:e,reject:t})}),$s={config:ub,init:cb,__getMonacoInstance:pb},gb={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},uc=gb,yb={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},mb=yb;function bb({children:e}){return Z.createElement("div",{style:mb.container},e)}var wb=bb,vb=wb;function xb({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...uc.wrapper,width:e,height:t},...u},!n&&Z.createElement(vb,null,i),Z.createElement("div",{ref:o,style:{...uc.fullWidth,...!n&&uc.hide},className:a}))}var Eb=xb,cd=Z.memo(Eb);function Sb(e){Z.useEffect(e,[])}var cc=Sb;function Ab(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var kn=Ab;function Ms(){}function zi(e,t,n,i){return Cb(e,i)||_b(e,t,n,i)}function Cb(e,t){return e.editor.getModel(ld(e,t))}function _b(e,t,n,i){return e.editor.createModel(t,n,i?ld(e,i):void 0)}function ld(e,t){return e.Uri.parse(t)}function kb({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:d="Loading...",options:g={},height:v="100%",width:C="100%",className:S,wrapperProps:E={},beforeMount:w=Ms,onMount:T=Ms}){let[j,R]=Z.useState(!1),[_,O]=Z.useState(!0),F=Z.useRef(null),B=Z.useRef(null),W=Z.useRef(null),J=Z.useRef(T),fe=Z.useRef(w),le=Z.useRef(!1);cc(()=>{let pe=$s.init();return pe.then(Fe=>(B.current=Fe)&&O(!1)).catch(Fe=>Fe?.type!=="cancelation"&&console.error("Monaco initialization: error:",Fe)),()=>F.current?Se():pe.cancel()}),kn(()=>{if(F.current&&B.current){let pe=F.current.getOriginalEditor(),Fe=zi(B.current,e||"",i||n||"text",a||"");Fe!==pe.getModel()&&pe.setModel(Fe)}},[a],j),kn(()=>{if(F.current&&B.current){let pe=F.current.getModifiedEditor(),Fe=zi(B.current,t||"",o||n||"text",u||"");Fe!==pe.getModel()&&pe.setModel(Fe)}},[u],j),kn(()=>{let pe=F.current.getModifiedEditor();pe.getOption(B.current.editor.EditorOption.readOnly)?pe.setValue(t||""):t!==pe.getValue()&&(pe.executeEdits("",[{range:pe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),pe.pushUndoStop())},[t],j),kn(()=>{F.current?.getModel()?.original.setValue(e||"")},[e],j),kn(()=>{let{original:pe,modified:Fe}=F.current.getModel();B.current.editor.setModelLanguage(pe,i||n||"text"),B.current.editor.setModelLanguage(Fe,o||n||"text")},[n,i,o],j),kn(()=>{B.current?.editor.setTheme(h)},[h],j),kn(()=>{F.current?.updateOptions(g)},[g],j);let de=Z.useCallback(()=>{if(!B.current)return;fe.current(B.current);let pe=zi(B.current,e||"",i||n||"text",a||""),Fe=zi(B.current,t||"",o||n||"text",u||"");F.current?.setModel({original:pe,modified:Fe})},[n,t,o,e,i,a,u]),be=Z.useCallback(()=>{!le.current&&W.current&&(F.current=B.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...g}),de(),B.current?.editor.setTheme(h),R(!0),le.current=!0)},[g,h,de]);Z.useEffect(()=>{j&&J.current(F.current,B.current)},[j]),Z.useEffect(()=>{!_&&!j&&be()},[_,j,be]);function Se(){let pe=F.current?.getModel();l||pe?.original?.dispose(),f||pe?.modified?.dispose(),F.current?.dispose()}return Z.createElement(cd,{width:C,height:v,isEditorReady:j,loading:d,_ref:W,className:S,wrapperProps:E})}var Tb=kb,Ib=Z.memo(Tb);function Ob(){let[e,t]=Z.useState($s.__getMonacoInstance());return cc(()=>{let n;return e||(n=$s.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Fb=Ob;function Bb(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Db=Bb,na=new Map;function Pb({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:h={},overrideServices:d={},saveViewState:g=!0,keepCurrentModel:v=!1,width:C="100%",height:S="100%",className:E,wrapperProps:w={},beforeMount:T=Ms,onMount:j=Ms,onChange:R,onValidate:_=Ms}){let[O,F]=Z.useState(!1),[B,W]=Z.useState(!0),J=Z.useRef(null),fe=Z.useRef(null),le=Z.useRef(null),de=Z.useRef(j),be=Z.useRef(T),Se=Z.useRef(),pe=Z.useRef(i),Fe=Db(a),De=Z.useRef(!1),_e=Z.useRef(!1);cc(()=>{let ge=$s.init();return ge.then(We=>(J.current=We)&&W(!1)).catch(We=>We?.type!=="cancelation"&&console.error("Monaco initialization: error:",We)),()=>fe.current?we():ge.cancel()}),kn(()=>{let ge=zi(J.current,e||i||"",t||o||"",a||n||"");ge!==fe.current?.getModel()&&(g&&na.set(Fe,fe.current?.saveViewState()),fe.current?.setModel(ge),g&&fe.current?.restoreViewState(na.get(a)))},[a],O),kn(()=>{fe.current?.updateOptions(h)},[h],O),kn(()=>{!fe.current||i===void 0||(fe.current.getOption(J.current.editor.EditorOption.readOnly)?fe.current.setValue(i):i!==fe.current.getValue()&&(_e.current=!0,fe.current.executeEdits("",[{range:fe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),fe.current.pushUndoStop(),_e.current=!1))},[i],O),kn(()=>{let ge=fe.current?.getModel();ge&&o&&J.current?.editor.setModelLanguage(ge,o)},[o],O),kn(()=>{l!==void 0&&fe.current?.revealLine(l)},[l],O),kn(()=>{J.current?.editor.setTheme(u)},[u],O);let Ye=Z.useCallback(()=>{if(!(!le.current||!J.current)&&!De.current){be.current(J.current);let ge=a||n,We=zi(J.current,i||e||"",t||o||"",ge||"");fe.current=J.current?.editor.create(le.current,{model:We,automaticLayout:!0,...h},d),g&&fe.current.restoreViewState(na.get(ge)),J.current.editor.setTheme(u),l!==void 0&&fe.current.revealLine(l),F(!0),De.current=!0}},[e,t,n,i,o,a,h,d,g,u,l]);Z.useEffect(()=>{O&&de.current(fe.current,J.current)},[O]),Z.useEffect(()=>{!B&&!O&&Ye()},[B,O,Ye]),pe.current=i,Z.useEffect(()=>{O&&R&&(Se.current?.dispose(),Se.current=fe.current?.onDidChangeModelContent(ge=>{_e.current||R(fe.current.getValue(),ge)}))},[O,R]),Z.useEffect(()=>{if(O){let ge=J.current.editor.onDidChangeMarkers(We=>{let Y=fe.current.getModel()?.uri;if(Y&&We.find(X=>X.path===Y.path)){let X=J.current.editor.getModelMarkers({resource:Y});_?.(X)}});return()=>{ge?.dispose()}}return()=>{}},[O,_]);function we(){Se.current?.dispose(),v?g&&na.set(a,fe.current.saveViewState()):fe.current.getModel()?.dispose(),fe.current.dispose()}return Z.createElement(cd,{width:C,height:S,isEditorReady:O,loading:f,_ref:le,className:E,wrapperProps:w})}var Rb=Pb,fd=Z.memo(Rb),lc=fd;const Lb=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Ib,Editor:fd,default:lc,loader:$s,useMonaco:Fb},Symbol.toStringTag,{value:"Module"})),fc=Symbol.for("yaml.alias"),hc=Symbol.for("yaml.document"),Hr=Symbol.for("yaml.map"),hd=Symbol.for("yaml.pair"),pr=Symbol.for("yaml.scalar"),Gi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Ji=e=>!!e&&typeof e=="object"&&e[Mn]===fc,Us=e=>!!e&&typeof e=="object"&&e[Mn]===hc,Vs=e=>!!e&&typeof e=="object"&&e[Mn]===Hr,Ut=e=>!!e&&typeof e=="object"&&e[Mn]===hd,At=e=>!!e&&typeof e=="object"&&e[Mn]===pr,qs=e=>!!e&&typeof e=="object"&&e[Mn]===Gi;function Vt(e){if(e&&typeof e=="object")switch(e[Mn]){case Hr:case Gi:return!0}return!1}function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case fc:case Hr:case pr:case Gi:return!0}return!1}const jb=e=>(At(e)||Vt(e))&&!!e.anchor,pi=Symbol("break visit"),Nb=Symbol("skip children"),Ws=Symbol("remove node");function gi(e,t){const n=$b(t);Us(e)?Yi(null,e.contents,n,Object.freeze([e]))===Ws&&(e.contents=null):Yi(null,e,n,Object.freeze([]))}gi.BREAK=pi,gi.SKIP=Nb,gi.REMOVE=Ws;function Yi(e,t,n,i){const o=Mb(e,t,n,i);if(qt(o)||Ut(o))return Ub(e,i,o),Yi(e,o,n,i);if(typeof o!="symbol"){if(Vt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Yi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===pi)return pi;u===Ws&&(t.items.splice(a,1),a-=1)}}}else if(Ut(t)){i=Object.freeze(i.concat(t));const a=Yi("key",t.key,n,i);if(a===pi)return pi;a===Ws&&(t.key=null);const u=Yi("value",t.value,n,i);if(u===pi)return pi;u===Ws&&(t.value=null)}}return o}function $b(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Mb(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Vs(t))return n.Map?.(e,t,i);if(qs(t))return n.Seq?.(e,t,i);if(Ut(t))return n.Pair?.(e,t,i);if(At(t))return n.Scalar?.(e,t,i);if(Ji(t))return n.Alias?.(e,t,i)}function Ub(e,t,n){const i=t[t.length-1];if(Vt(i))i.items[e]=n;else if(Ut(i))e==="key"?i.key=n:i.value=n;else if(Us(i))i.contents=n;else{const o=Ji(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Vb={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},qb=e=>e.replace(/[!,[\]{}]/g,t=>Vb[t]);class pn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},pn.defaultYaml,t),this.tags=Object.assign({},pn.defaultTags,n)}clone(){const t=new pn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new pn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:pn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},pn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:pn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},pn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+qb(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&qt(t.contents)){const a={};gi(t.contents,(u,l)=>{qt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
250
- `)}}pn.defaultYaml={explicit:!1,version:"1.2"},pn.defaultTags={"!!":"tag:yaml.org,2002:"};function dd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function pd(e){const t=new Set;return gi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function gd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Wb(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=pd(e));const u=gd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(At(u.node)||Vt(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Xi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Xi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Xi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Xi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Xi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!jb(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class dc{constructor(t){Object.defineProperty(this,Mn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Us(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:h}of u.anchors.values())o(h,f);return typeof a=="function"?Xi(a,{"":l},"",l):l}}class pc extends dc{constructor(t){super(fc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return gi(t,{Node:(i,o)=>{if(o===this)return gi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Un(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=ra(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(dd(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function ra(e,t,n){if(Ji(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Vt(t)){let i=0;for(const o of t.items){const a=ra(e,o,n);a>i&&(i=a)}return i}else if(Ut(t)){const i=ra(e,t.key,n),o=ra(e,t.value,n);return Math.max(i,o)}return 1}const yd=e=>!e||typeof e!="function"&&typeof e!="object";class Ve extends dc{constructor(t){super(pr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}Ve.BLOCK_FOLDED="BLOCK_FOLDED",Ve.BLOCK_LITERAL="BLOCK_LITERAL",Ve.PLAIN="PLAIN",Ve.QUOTE_DOUBLE="QUOTE_DOUBLE",Ve.QUOTE_SINGLE="QUOTE_SINGLE";const Kb="tag:yaml.org,2002:";function Hb(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Ks(e,t,n){if(Us(e)&&(e=e.contents),qt(e))return e;if(Ut(e)){const g=n.schema[Hr].createNode?.(n.schema,null,n);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new pc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Kb+t.slice(2));let h=Hb(e,t,u.tags);if(!h){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new Ve(e);return f&&(f.node=g),g}h=e instanceof Map?u[Hr]:Symbol.iterator in Object(e)?u[Gi]:u[Hr]}a&&(a(h),delete n.onTagObj);const d=h?.createNode?h.createNode(n.schema,e,n):typeof h?.nodeClass?.from=="function"?h.nodeClass.from(n.schema,e,n):new Ve(e);return t?d.tag=t:h.default||(d.tag=h.tag),f&&(f.node=d),d}function ia(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Ks(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Hs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class md extends dc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>qt(i)||Ut(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Hs(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Vt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ia(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(Vt(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&At(a)?a.value:a:Vt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ut(n))return!1;const i=n.value;return i==null||t&&At(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Vt(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(Vt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ia(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const zb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const yi=(e,t,n)=>e.endsWith(`
249
+ `},sd=Z2(rb)(id),ib={config:tb},sb=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function od(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],od(e[n],t[n]))}),ed(ed({},e),t)}var ob={type:"cancelation",msg:"operation is manually canceled"};function oc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(ob):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var ab=X2.create({config:Q2,isInitialized:!1,resolve:null,reject:null,monaco:null}),ad=B2(ab,2),Ns=ad[0],ta=ad[1];function ub(e){var t=ib.config(e),n=t.monaco,i=F2(t,["monaco"]);ta(function(o){return{config:od(o.config,i),monaco:n}})}function cb(){var e=Ns(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(ta({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),oc(ac);if(window.monaco&&window.monaco.editor)return ud(window.monaco),e.resolve(window.monaco),oc(ac);sb(lb,hb)(db)}return oc(ac)}function lb(e){return document.body.appendChild(e)}function fb(e){var t=document.createElement("script");return e&&(t.src=e),t}function hb(e){var t=Ns(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=fb("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function db(){var e=Ns(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){ud(n),e.resolve(n)},function(n){e.reject(n)})}function ud(e){Ns().monaco||ta({monaco:e})}function pb(){return Ns(function(e){var t=e.monaco;return t})}var ac=new Promise(function(e,t){return ta({resolve:e,reject:t})}),$s={config:ub,init:cb,__getMonacoInstance:pb},gb={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},uc=gb,yb={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},mb=yb;function bb({children:e}){return Q.createElement("div",{style:mb.container},e)}var wb=bb,vb=wb;function xb({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Q.createElement("section",{style:{...uc.wrapper,width:e,height:t},...u},!n&&Q.createElement(vb,null,i),Q.createElement("div",{ref:o,style:{...uc.fullWidth,...!n&&uc.hide},className:a}))}var Eb=xb,cd=Q.memo(Eb);function Sb(e){Q.useEffect(e,[])}var cc=Sb;function Ab(e,t,n=!0){let i=Q.useRef(!0);Q.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=Ab;function Ms(){}function zi(e,t,n,i){return Cb(e,i)||_b(e,t,n,i)}function Cb(e,t){return e.editor.getModel(ld(e,t))}function _b(e,t,n,i){return e.editor.createModel(t,n,i?ld(e,i):void 0)}function ld(e,t){return e.Uri.parse(t)}function kb({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:d="Loading...",options:g={},height:v="100%",width:C="100%",className:S,wrapperProps:E={},beforeMount:w=Ms,onMount:T=Ms}){let[j,R]=Q.useState(!1),[_,O]=Q.useState(!0),F=Q.useRef(null),B=Q.useRef(null),W=Q.useRef(null),J=Q.useRef(T),fe=Q.useRef(w),le=Q.useRef(!1);cc(()=>{let pe=$s.init();return pe.then(De=>(B.current=De)&&O(!1)).catch(De=>De?.type!=="cancelation"&&console.error("Monaco initialization: error:",De)),()=>F.current?Se():pe.cancel()}),_n(()=>{if(F.current&&B.current){let pe=F.current.getOriginalEditor(),De=zi(B.current,e||"",i||n||"text",a||"");De!==pe.getModel()&&pe.setModel(De)}},[a],j),_n(()=>{if(F.current&&B.current){let pe=F.current.getModifiedEditor(),De=zi(B.current,t||"",o||n||"text",u||"");De!==pe.getModel()&&pe.setModel(De)}},[u],j),_n(()=>{let pe=F.current.getModifiedEditor();pe.getOption(B.current.editor.EditorOption.readOnly)?pe.setValue(t||""):t!==pe.getValue()&&(pe.executeEdits("",[{range:pe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),pe.pushUndoStop())},[t],j),_n(()=>{F.current?.getModel()?.original.setValue(e||"")},[e],j),_n(()=>{let{original:pe,modified:De}=F.current.getModel();B.current.editor.setModelLanguage(pe,i||n||"text"),B.current.editor.setModelLanguage(De,o||n||"text")},[n,i,o],j),_n(()=>{B.current?.editor.setTheme(h)},[h],j),_n(()=>{F.current?.updateOptions(g)},[g],j);let de=Q.useCallback(()=>{if(!B.current)return;fe.current(B.current);let pe=zi(B.current,e||"",i||n||"text",a||""),De=zi(B.current,t||"",o||n||"text",u||"");F.current?.setModel({original:pe,modified:De})},[n,t,o,e,i,a,u]),be=Q.useCallback(()=>{!le.current&&W.current&&(F.current=B.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...g}),de(),B.current?.editor.setTheme(h),R(!0),le.current=!0)},[g,h,de]);Q.useEffect(()=>{j&&J.current(F.current,B.current)},[j]),Q.useEffect(()=>{!_&&!j&&be()},[_,j,be]);function Se(){let pe=F.current?.getModel();l||pe?.original?.dispose(),f||pe?.modified?.dispose(),F.current?.dispose()}return Q.createElement(cd,{width:C,height:v,isEditorReady:j,loading:d,_ref:W,className:S,wrapperProps:E})}var Tb=kb,Ib=Q.memo(Tb);function Ob(){let[e,t]=Q.useState($s.__getMonacoInstance());return cc(()=>{let n;return e||(n=$s.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Fb=Ob;function Bb(e){let t=Q.useRef();return Q.useEffect(()=>{t.current=e},[e]),t.current}var Db=Bb,na=new Map;function Pb({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:h={},overrideServices:d={},saveViewState:g=!0,keepCurrentModel:v=!1,width:C="100%",height:S="100%",className:E,wrapperProps:w={},beforeMount:T=Ms,onMount:j=Ms,onChange:R,onValidate:_=Ms}){let[O,F]=Q.useState(!1),[B,W]=Q.useState(!0),J=Q.useRef(null),fe=Q.useRef(null),le=Q.useRef(null),de=Q.useRef(j),be=Q.useRef(T),Se=Q.useRef(),pe=Q.useRef(i),De=Db(a),Re=Q.useRef(!1),Te=Q.useRef(!1);cc(()=>{let ge=$s.init();return ge.then(Ke=>(J.current=Ke)&&W(!1)).catch(Ke=>Ke?.type!=="cancelation"&&console.error("Monaco initialization: error:",Ke)),()=>fe.current?ve():ge.cancel()}),_n(()=>{let ge=zi(J.current,e||i||"",t||o||"",a||n||"");ge!==fe.current?.getModel()&&(g&&na.set(De,fe.current?.saveViewState()),fe.current?.setModel(ge),g&&fe.current?.restoreViewState(na.get(a)))},[a],O),_n(()=>{fe.current?.updateOptions(h)},[h],O),_n(()=>{!fe.current||i===void 0||(fe.current.getOption(J.current.editor.EditorOption.readOnly)?fe.current.setValue(i):i!==fe.current.getValue()&&(Te.current=!0,fe.current.executeEdits("",[{range:fe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),fe.current.pushUndoStop(),Te.current=!1))},[i],O),_n(()=>{let ge=fe.current?.getModel();ge&&o&&J.current?.editor.setModelLanguage(ge,o)},[o],O),_n(()=>{l!==void 0&&fe.current?.revealLine(l)},[l],O),_n(()=>{J.current?.editor.setTheme(u)},[u],O);let Xe=Q.useCallback(()=>{if(!(!le.current||!J.current)&&!Re.current){be.current(J.current);let ge=a||n,Ke=zi(J.current,i||e||"",t||o||"",ge||"");fe.current=J.current?.editor.create(le.current,{model:Ke,automaticLayout:!0,...h},d),g&&fe.current.restoreViewState(na.get(ge)),J.current.editor.setTheme(u),l!==void 0&&fe.current.revealLine(l),F(!0),Re.current=!0}},[e,t,n,i,o,a,h,d,g,u,l]);Q.useEffect(()=>{O&&de.current(fe.current,J.current)},[O]),Q.useEffect(()=>{!B&&!O&&Xe()},[B,O,Xe]),pe.current=i,Q.useEffect(()=>{O&&R&&(Se.current?.dispose(),Se.current=fe.current?.onDidChangeModelContent(ge=>{Te.current||R(fe.current.getValue(),ge)}))},[O,R]),Q.useEffect(()=>{if(O){let ge=J.current.editor.onDidChangeMarkers(Ke=>{let Y=fe.current.getModel()?.uri;if(Y&&Ke.find(X=>X.path===Y.path)){let X=J.current.editor.getModelMarkers({resource:Y});_?.(X)}});return()=>{ge?.dispose()}}return()=>{}},[O,_]);function ve(){Se.current?.dispose(),v?g&&na.set(a,fe.current.saveViewState()):fe.current.getModel()?.dispose(),fe.current.dispose()}return Q.createElement(cd,{width:C,height:S,isEditorReady:O,loading:f,_ref:le,className:E,wrapperProps:w})}var Rb=Pb,fd=Q.memo(Rb),lc=fd;const Lb=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Ib,Editor:fd,default:lc,loader:$s,useMonaco:Fb},Symbol.toStringTag,{value:"Module"})),fc=Symbol.for("yaml.alias"),hc=Symbol.for("yaml.document"),Hr=Symbol.for("yaml.map"),hd=Symbol.for("yaml.pair"),pr=Symbol.for("yaml.scalar"),Gi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Ji=e=>!!e&&typeof e=="object"&&e[Mn]===fc,Us=e=>!!e&&typeof e=="object"&&e[Mn]===hc,Vs=e=>!!e&&typeof e=="object"&&e[Mn]===Hr,Ut=e=>!!e&&typeof e=="object"&&e[Mn]===hd,Ct=e=>!!e&&typeof e=="object"&&e[Mn]===pr,qs=e=>!!e&&typeof e=="object"&&e[Mn]===Gi;function Vt(e){if(e&&typeof e=="object")switch(e[Mn]){case Hr:case Gi:return!0}return!1}function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case fc:case Hr:case pr:case Gi:return!0}return!1}const jb=e=>(Ct(e)||Vt(e))&&!!e.anchor,pi=Symbol("break visit"),Nb=Symbol("skip children"),Ws=Symbol("remove node");function gi(e,t){const n=$b(t);Us(e)?Yi(null,e.contents,n,Object.freeze([e]))===Ws&&(e.contents=null):Yi(null,e,n,Object.freeze([]))}gi.BREAK=pi,gi.SKIP=Nb,gi.REMOVE=Ws;function Yi(e,t,n,i){const o=Mb(e,t,n,i);if(qt(o)||Ut(o))return Ub(e,i,o),Yi(e,o,n,i);if(typeof o!="symbol"){if(Vt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Yi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===pi)return pi;u===Ws&&(t.items.splice(a,1),a-=1)}}}else if(Ut(t)){i=Object.freeze(i.concat(t));const a=Yi("key",t.key,n,i);if(a===pi)return pi;a===Ws&&(t.key=null);const u=Yi("value",t.value,n,i);if(u===pi)return pi;u===Ws&&(t.value=null)}}return o}function $b(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Mb(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Vs(t))return n.Map?.(e,t,i);if(qs(t))return n.Seq?.(e,t,i);if(Ut(t))return n.Pair?.(e,t,i);if(Ct(t))return n.Scalar?.(e,t,i);if(Ji(t))return n.Alias?.(e,t,i)}function Ub(e,t,n){const i=t[t.length-1];if(Vt(i))i.items[e]=n;else if(Ut(i))e==="key"?i.key=n:i.value=n;else if(Us(i))i.contents=n;else{const o=Ji(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Vb={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},qb=e=>e.replace(/[!,[\]{}]/g,t=>Vb[t]);class dn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},dn.defaultYaml,t),this.tags=Object.assign({},dn.defaultTags,n)}clone(){const t=new dn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new dn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:dn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},dn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:dn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},dn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+qb(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&qt(t.contents)){const a={};gi(t.contents,(u,l)=>{qt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
250
+ `)}}dn.defaultYaml={explicit:!1,version:"1.2"},dn.defaultTags={"!!":"tag:yaml.org,2002:"};function dd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function pd(e){const t=new Set;return gi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function gd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Wb(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=pd(e));const u=gd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(Ct(u.node)||Vt(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Xi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Xi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Xi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Xi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Xi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!jb(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class dc{constructor(t){Object.defineProperty(this,Mn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Us(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:h}of u.anchors.values())o(h,f);return typeof a=="function"?Xi(a,{"":l},"",l):l}}class pc extends dc{constructor(t){super(fc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return gi(t,{Node:(i,o)=>{if(o===this)return gi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Un(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=ra(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(dd(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function ra(e,t,n){if(Ji(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Vt(t)){let i=0;for(const o of t.items){const a=ra(e,o,n);a>i&&(i=a)}return i}else if(Ut(t)){const i=ra(e,t.key,n),o=ra(e,t.value,n);return Math.max(i,o)}return 1}const yd=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends dc{constructor(t){super(pr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED",qe.BLOCK_LITERAL="BLOCK_LITERAL",qe.PLAIN="PLAIN",qe.QUOTE_DOUBLE="QUOTE_DOUBLE",qe.QUOTE_SINGLE="QUOTE_SINGLE";const Kb="tag:yaml.org,2002:";function Hb(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Ks(e,t,n){if(Us(e)&&(e=e.contents),qt(e))return e;if(Ut(e)){const g=n.schema[Hr].createNode?.(n.schema,null,n);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new pc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Kb+t.slice(2));let h=Hb(e,t,u.tags);if(!h){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new qe(e);return f&&(f.node=g),g}h=e instanceof Map?u[Hr]:Symbol.iterator in Object(e)?u[Gi]:u[Hr]}a&&(a(h),delete n.onTagObj);const d=h?.createNode?h.createNode(n.schema,e,n):typeof h?.nodeClass?.from=="function"?h.nodeClass.from(n.schema,e,n):new qe(e);return t?d.tag=t:h.default||(d.tag=h.tag),f&&(f.node=d),d}function ia(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Ks(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Hs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class md extends dc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>qt(i)||Ut(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Hs(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Vt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ia(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(Vt(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&Ct(a)?a.value:a:Vt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ut(n))return!1;const i=n.value;return i==null||t&&Ct(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Vt(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(Vt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ia(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const zb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const yi=(e,t,n)=>e.endsWith(`
251
251
  `)?Cr(n,t):n.includes(`
252
252
  `)?`
253
253
  `+Cr(n,t):(e.endsWith(" ")?"":" ")+n,bd="flow",gc="block",sa="quoted";function oa(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const h=[],d={};let g=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?h.push(0):g=o-i);let v,C,S=!1,E=-1,w=-1,T=-1;n===gc&&(E=wd(e,E,t.length),E!==-1&&(g=E+f));for(let R;R=e[E+=1];){if(n===sa&&R==="\\"){switch(w=E,e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}T=E}if(R===`
@@ -265,22 +265,22 @@ ${t}${e.slice(_+1,O)}`)}return j}function wd(e,t,n){let i=t,o=t+1,a=e[o];for(;a=
265
265
  ${n}`)+"'";return t.implicitKey?i:oa(i,n,bd,aa(t,!1))}function Qi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=zs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=yc:a&&!o?i=zs:i=n?yc:zs}return i(e,t)}let mc;try{mc=new RegExp(`(^|(?<!
266
266
  ))
267
267
  +(?!
268
- |$)`,"g")}catch{mc=/\n+(?!\n|$)/g}function ca({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Qi(n,i);const h=i.indent||(i.forceBlockIndent||ua(n)?" ":""),d=u==="literal"?!0:u==="folded"||t===Ve.BLOCK_FOLDED?!1:t===Ve.BLOCK_LITERAL?!0:!Gb(n,f,h.length);if(!n)return d?`|
268
+ |$)`,"g")}catch{mc=/\n+(?!\n|$)/g}function ca({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Qi(n,i);const h=i.indent||(i.forceBlockIndent||ua(n)?" ":""),d=u==="literal"?!0:u==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!Gb(n,f,h.length);if(!n)return d?`|
269
269
  `:`>
270
270
  `;let g,v;for(v=n.length;v>0;--v){const O=n[v-1];if(O!==`
271
271
  `&&O!==" "&&O!==" ")break}let C=n.substring(v);const S=C.indexOf(`
272
272
  `);S===-1?g="-":n===C||S!==C.length-1?(g="+",a&&a()):g="",C&&(n=n.slice(0,-C.length),C[C.length-1]===`
273
273
  `&&(C=C.slice(0,-1)),C=C.replace(mc,`$&${h}`));let E=!1,w,T=-1;for(w=0;w<n.length;++w){const O=n[w];if(O===" ")E=!0;else if(O===`
274
274
  `)T=w;else break}let j=n.substring(0,T<w?T+1:w);j&&(n=n.substring(j.length),j=j.replace(/\n+/g,`$&${h}`));let _=(E?h?"2":"1":"")+g;if(e&&(_+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!d){const O=n.replace(/\n+/g,`
275
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let F=!1;const B=aa(i,!0);u!=="folded"&&t!==Ve.BLOCK_FOLDED&&(B.onOverflow=()=>{F=!0});const W=oa(`${j}${O}${C}`,h,gc,B);if(!F)return`>${_}
275
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let F=!1;const B=aa(i,!0);u!=="folded"&&t!==qe.BLOCK_FOLDED&&(B.onOverflow=()=>{F=!0});const W=oa(`${j}${O}${C}`,h,gc,B);if(!F)return`>${_}
276
276
  ${h}${W}`}return n=n.replace(/\n+/g,`$&${h}`),`|${_}
277
277
  ${h}${j}${n}${C}`}function Jb(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:h,inFlow:d}=t;if(l&&a.includes(`
278
278
  `)||d&&/[[\]{},]/.test(a))return Qi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||d||!a.includes(`
279
- `)?Qi(a,t):ca(e,t,n,i);if(!l&&!d&&o!==Ve.PLAIN&&a.includes(`
279
+ `)?Qi(a,t):ca(e,t,n,i);if(!l&&!d&&o!==qe.PLAIN&&a.includes(`
280
280
  `))return ca(e,t,n,i);if(ua(a)){if(f==="")return t.forceBlockIndent=!0,ca(e,t,n,i);if(l&&f===h)return Qi(a,t)}const g=a.replace(/\n+/g,`$&
281
- ${f}`);if(u){const v=E=>E.default&&E.tag!=="tag:yaml.org,2002:str"&&E.test?.test(g),{compat:C,tags:S}=t.doc.schema;if(S.some(v)||C?.some(v))return Qi(a,t)}return l?g:oa(g,f,bd,aa(t,!1))}function bc(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==Ve.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=Ve.QUOTE_DOUBLE);const f=d=>{switch(d){case Ve.BLOCK_FOLDED:case Ve.BLOCK_LITERAL:return o||a?Qi(u.value,t):ca(u,t,n,i);case Ve.QUOTE_DOUBLE:return zs(u.value,t);case Ve.QUOTE_SINGLE:return yc(u.value,t);case Ve.PLAIN:return Jb(u,t,n,i);default:return null}};let h=f(l);if(h===null){const{defaultKeyType:d,defaultStringType:g}=t.options,v=o&&d||g;if(h=f(v),h===null)throw new Error(`Unsupported default string type ${v}`)}return h}function vd(e,t){const n=Object.assign({blockQuote:!0,commentString:zb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function Yb(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(At(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function Xb(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(At(e)||Vt(e))&&e.anchor;a&&dd(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function Zi(e,t,n,i){if(Ut(e))return e.toString(t,n,i);if(Ji(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=qt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Yb(t.doc.schema.tags,a));const u=Xb(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):At(a)?bc(a,t,n,i):a.toString(t,n,i);return u?At(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
- ${t.indent}${l}`:l}function Qb({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:h,indentSeq:d,simpleKeys:g}}=n;let v=qt(e)&&e.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Vt(e)||!qt(e)&&typeof e=="object"){const B="With simple keys, collection cannot be used as a key value";throw new Error(B)}}let C=!g&&(!e||v&&t==null&&!n.inFlow||Vt(e)||(At(e)?e.type===Ve.BLOCK_FOLDED||e.type===Ve.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(g||!a),indent:l+f});let S=!1,E=!1,w=Zi(e,n,()=>S=!0,()=>E=!0);if(!C&&!n.inFlow&&w.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=!0}if(n.inFlow){if(a||t==null)return S&&i&&i(),w===""?"?":C?`? ${w}`:w}else if(a&&!g||t==null&&C)return w=`? ${w}`,v&&!S?w+=yi(w,n.indent,h(v)):E&&o&&o(),w;S&&(v=null),C?(v&&(w+=yi(w,n.indent,h(v))),w=`? ${w}
283
- ${l}:`):(w=`${w}:`,v&&(w+=yi(w,n.indent,h(v))));let T,j,R;qt(t)?(T=!!t.spaceBefore,j=t.commentBefore,R=t.comment):(T=!1,j=null,R=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&At(t)&&(n.indentAtStart=w.length+1),E=!1,!d&&f.length>=2&&!n.inFlow&&!C&&qs(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let _=!1;const O=Zi(t,n,()=>_=!0,()=>E=!0);let F=" ";if(v||T||j){if(F=T?`
281
+ ${f}`);if(u){const v=E=>E.default&&E.tag!=="tag:yaml.org,2002:str"&&E.test?.test(g),{compat:C,tags:S}=t.doc.schema;if(S.some(v)||C?.some(v))return Qi(a,t)}return l?g:oa(g,f,bd,aa(t,!1))}function bc(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=qe.QUOTE_DOUBLE);const f=d=>{switch(d){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return o||a?Qi(u.value,t):ca(u,t,n,i);case qe.QUOTE_DOUBLE:return zs(u.value,t);case qe.QUOTE_SINGLE:return yc(u.value,t);case qe.PLAIN:return Jb(u,t,n,i);default:return null}};let h=f(l);if(h===null){const{defaultKeyType:d,defaultStringType:g}=t.options,v=o&&d||g;if(h=f(v),h===null)throw new Error(`Unsupported default string type ${v}`)}return h}function vd(e,t){const n=Object.assign({blockQuote:!0,commentString:zb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function Yb(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(Ct(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function Xb(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(Ct(e)||Vt(e))&&e.anchor;a&&dd(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function Zi(e,t,n,i){if(Ut(e))return e.toString(t,n,i);if(Ji(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=qt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Yb(t.doc.schema.tags,a));const u=Xb(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):Ct(a)?bc(a,t,n,i):a.toString(t,n,i);return u?Ct(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
+ ${t.indent}${l}`:l}function Qb({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:h,indentSeq:d,simpleKeys:g}}=n;let v=qt(e)&&e.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Vt(e)||!qt(e)&&typeof e=="object"){const B="With simple keys, collection cannot be used as a key value";throw new Error(B)}}let C=!g&&(!e||v&&t==null&&!n.inFlow||Vt(e)||(Ct(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(g||!a),indent:l+f});let S=!1,E=!1,w=Zi(e,n,()=>S=!0,()=>E=!0);if(!C&&!n.inFlow&&w.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=!0}if(n.inFlow){if(a||t==null)return S&&i&&i(),w===""?"?":C?`? ${w}`:w}else if(a&&!g||t==null&&C)return w=`? ${w}`,v&&!S?w+=yi(w,n.indent,h(v)):E&&o&&o(),w;S&&(v=null),C?(v&&(w+=yi(w,n.indent,h(v))),w=`? ${w}
283
+ ${l}:`):(w=`${w}:`,v&&(w+=yi(w,n.indent,h(v))));let T,j,R;qt(t)?(T=!!t.spaceBefore,j=t.commentBefore,R=t.comment):(T=!1,j=null,R=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&Ct(t)&&(n.indentAtStart=w.length+1),E=!1,!d&&f.length>=2&&!n.inFlow&&!C&&qs(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let _=!1;const O=Zi(t,n,()=>_=!0,()=>E=!0);let F=" ";if(v||T||j){if(F=T?`
284
284
  `:"",j){const B=h(j);F+=`
285
285
  ${Cr(B,n.indent)}`}O===""&&!n.inFlow?F===`
286
286
  `&&(F=`
@@ -289,34 +289,34 @@ ${Cr(B,n.indent)}`}O===""&&!n.inFlow?F===`
289
289
  ${n.indent}`}else if(!C&&Vt(t)){const B=O[0],W=O.indexOf(`
290
290
  `),J=W!==-1,fe=n.inFlow??t.flow??t.items.length===0;if(J||!fe){let le=!1;if(J&&(B==="&"||B==="!")){let de=O.indexOf(" ");B==="&"&&de!==-1&&de<W&&O[de+1]==="!"&&(de=O.indexOf(" ",de+1)),(de===-1||W<de)&&(le=!0)}le||(F=`
291
291
  ${n.indent}`)}}else(O===""||O[0]===`
292
- `)&&(F="");return w+=F+O,n.inFlow?_&&i&&i():R&&!_?w+=yi(w,n.indent,h(R)):E&&o&&o(),w}function xd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const la="<<",_r={identify:e=>e===la||typeof e=="symbol"&&e.description===la,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ve(Symbol(la)),{addToJSMap:Ed}),stringify:()=>la},Zb=(e,t)=>(_r.identify(t)||At(t)&&(!t.type||t.type===Ve.PLAIN)&&_r.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===_r.tag&&n.default);function Ed(e,t,n){if(n=e&&Ji(n)?n.resolve(e.doc):n,qs(n))for(const i of n.items)wc(e,t,i);else if(Array.isArray(n))for(const i of n)wc(e,t,i);else wc(e,t,n)}function wc(e,t,n){const i=e&&Ji(n)?n.resolve(e.doc):n;if(!Vs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Sd(e,t,{key:n,value:i}){if(qt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Zb(e,n))Ed(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=ew(n,o,e),u=Un(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function ew(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(qt(e)&&n?.doc){const i=vd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),xd(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function vc(e,t,n){const i=Ks(e,void 0,n),o=Ks(t,void 0,n);return new gn(i,o)}class gn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:hd}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return qt(n)&&(n=n.clone(t)),qt(i)&&(i=i.clone(t)),new gn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Sd(n,i,this)}toString(t,n,i){return t?.doc?Qb(this,t,n,i):JSON.stringify(this)}}function Ad(e,t,n){return(t.inFlow??e.flow?nw:tw)(e,t,n)}function tw({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:h}}=n,d=Object.assign({},n,{indent:a,type:null});let g=!1;const v=[];for(let S=0;S<t.length;++S){const E=t[S];let w=null;if(qt(E))!g&&E.spaceBefore&&v.push(""),fa(n,v,E.commentBefore,g),E.comment&&(w=E.comment);else if(Ut(E)){const j=qt(E.key)?E.key:null;j&&(!g&&j.spaceBefore&&v.push(""),fa(n,v,j.commentBefore,g))}g=!1;let T=Zi(E,d,()=>w=null,()=>g=!0);w&&(T+=yi(T,a,h(w))),g&&w&&(g=!1),v.push(i+T)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let S=1;S<v.length;++S){const E=v[S];C+=E?`
292
+ `)&&(F="");return w+=F+O,n.inFlow?_&&i&&i():R&&!_?w+=yi(w,n.indent,h(R)):E&&o&&o(),w}function xd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const la="<<",_r={identify:e=>e===la||typeof e=="symbol"&&e.description===la,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(la)),{addToJSMap:Ed}),stringify:()=>la},Zb=(e,t)=>(_r.identify(t)||Ct(t)&&(!t.type||t.type===qe.PLAIN)&&_r.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===_r.tag&&n.default);function Ed(e,t,n){if(n=e&&Ji(n)?n.resolve(e.doc):n,qs(n))for(const i of n.items)wc(e,t,i);else if(Array.isArray(n))for(const i of n)wc(e,t,i);else wc(e,t,n)}function wc(e,t,n){const i=e&&Ji(n)?n.resolve(e.doc):n;if(!Vs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Sd(e,t,{key:n,value:i}){if(qt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Zb(e,n))Ed(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=ew(n,o,e),u=Un(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function ew(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(qt(e)&&n?.doc){const i=vd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),xd(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function vc(e,t,n){const i=Ks(e,void 0,n),o=Ks(t,void 0,n);return new pn(i,o)}class pn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:hd}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return qt(n)&&(n=n.clone(t)),qt(i)&&(i=i.clone(t)),new pn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Sd(n,i,this)}toString(t,n,i){return t?.doc?Qb(this,t,n,i):JSON.stringify(this)}}function Ad(e,t,n){return(t.inFlow??e.flow?nw:tw)(e,t,n)}function tw({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:h}}=n,d=Object.assign({},n,{indent:a,type:null});let g=!1;const v=[];for(let S=0;S<t.length;++S){const E=t[S];let w=null;if(qt(E))!g&&E.spaceBefore&&v.push(""),fa(n,v,E.commentBefore,g),E.comment&&(w=E.comment);else if(Ut(E)){const j=qt(E.key)?E.key:null;j&&(!g&&j.spaceBefore&&v.push(""),fa(n,v,j.commentBefore,g))}g=!1;let T=Zi(E,d,()=>w=null,()=>g=!0);w&&(T+=yi(T,a,h(w))),g&&w&&(g=!1),v.push(i+T)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let S=1;S<v.length;++S){const E=v[S];C+=E?`
293
293
  ${f}${E}`:`
294
294
  `}}return e?(C+=`
295
295
  `+Cr(h(e),f),l&&l()):g&&u&&u(),C}function nw({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let h=!1,d=0;const g=[];for(let S=0;S<e.length;++S){const E=e[S];let w=null;if(qt(E))E.spaceBefore&&g.push(""),fa(t,g,E.commentBefore,!1),E.comment&&(w=E.comment);else if(Ut(E)){const j=qt(E.key)?E.key:null;j&&(j.spaceBefore&&g.push(""),fa(t,g,j.commentBefore,!1),j.comment&&(h=!0));const R=qt(E.value)?E.value:null;R?(R.comment&&(w=R.comment),R.commentBefore&&(h=!0)):E.value==null&&j?.comment&&(w=j.comment)}w&&(h=!0);let T=Zi(E,f,()=>w=null);S<e.length-1&&(T+=","),w&&(T+=yi(T,i,l(w))),!h&&(g.length>d||T.includes(`
296
296
  `))&&(h=!0),g.push(T),d=g.length}const{start:v,end:C}=n;if(g.length===0)return v+C;if(!h){const S=g.reduce((E,w)=>E+w.length+2,2);h=t.options.lineWidth>0&&S>t.options.lineWidth}if(h){let S=v;for(const E of g)S+=E?`
297
297
  ${a}${o}${E}`:`
298
298
  `;return`${S}
299
- ${o}${C}`}else return`${v}${u}${g.join(" ")}${u}${C}`}function fa({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=Cr(t(i),e);n.push(a.trimStart())}}function mi(e,t){const n=At(t)?t.value:t;for(const i of e)if(Ut(i)&&(i.key===t||i.key===n||At(i.key)&&i.key.value===n))return i}class Vn extends md{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Hr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,h)=>{if(typeof a=="function")h=a.call(n,f,h);else if(Array.isArray(a)&&!a.includes(f))return;(h!==void 0||o)&&u.items.push(vc(f,h,i))};if(n instanceof Map)for(const[f,h]of n)l(f,h);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Ut(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new gn(t,t?.value):i=new gn(t.key,t.value);const o=mi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);At(o.value)&&yd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=mi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=mi(this.items,t)?.value;return(!n&&At(o)?o.value:o)??void 0}has(t){return!!mi(this.items,t)}set(t,n){this.add(new gn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)Sd(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Ut(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Ad(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const es={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Vs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends md{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Gi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ha(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ha(t);if(typeof i!="number")return;const o=this.items[i];return!n&&At(o)?o.value:o}has(t){const n=ha(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ha(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];At(o)&&yd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Un(a,String(o++),n));return i}toString(t,n,i){return t?Ad(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Ks(l,void 0,i))}}return a}}function ha(e){let t=At(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ts={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return qs(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},da={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),bc(e,t,n,i)}},pa={identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ve(null),stringify:({source:e},t)=>typeof e=="string"&&pa.test.test(e)?e:t.options.nullStr},xc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ve(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&xc.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function er({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const Cd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},_d={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},kd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ve(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},ga=e=>typeof e=="bigint"||Number.isInteger(e),Ec=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Td(e,t,n){const{value:i}=e;return ga(i)&&i>=0?n+i.toString(t):er(e)}const Id={identify:e=>ga(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Ec(e,2,8,n),stringify:e=>Td(e,8,"0o")},Od={identify:ga,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Ec(e,0,10,n),stringify:er},Fd={identify:e=>ga(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Ec(e,2,16,n),stringify:e=>Td(e,16,"0x")},rw=[es,ts,da,pa,xc,Id,Od,Fd,Cd,_d,kd];function Bd(e){return typeof e=="bigint"||Number.isInteger(e)}const ya=({value:e})=>JSON.stringify(e),iw=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ya},{identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ya},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ya},{identify:Bd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Bd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ya}],sw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},ow=[es,ts].concat(iw,sw),Sc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let h=0;h<u.length;++h)f+=String.fromCharCode(u[h]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ve.BLOCK_LITERAL),t!==Ve.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),h=Math.ceil(l.length/f),d=new Array(h);for(let g=0,v=0;g<h;++g,v+=f)d[g]=l.substr(v,f);l=d.join(t===Ve.BLOCK_LITERAL?`
300
- `:" ")}return bc({comment:e,type:t,value:l},i,o,a)}};function Dd(e,t){if(qs(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Ut(i)){if(Vs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new gn(new Ve(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
299
+ ${o}${C}`}else return`${v}${u}${g.join(" ")}${u}${C}`}function fa({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=Cr(t(i),e);n.push(a.trimStart())}}function mi(e,t){const n=Ct(t)?t.value:t;for(const i of e)if(Ut(i)&&(i.key===t||i.key===n||Ct(i.key)&&i.key.value===n))return i}class Vn extends md{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Hr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,h)=>{if(typeof a=="function")h=a.call(n,f,h);else if(Array.isArray(a)&&!a.includes(f))return;(h!==void 0||o)&&u.items.push(vc(f,h,i))};if(n instanceof Map)for(const[f,h]of n)l(f,h);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Ut(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new pn(t,t?.value):i=new pn(t.key,t.value);const o=mi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);Ct(o.value)&&yd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=mi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=mi(this.items,t)?.value;return(!n&&Ct(o)?o.value:o)??void 0}has(t){return!!mi(this.items,t)}set(t,n){this.add(new pn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)Sd(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Ut(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Ad(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const es={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Vs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends md{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Gi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ha(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ha(t);if(typeof i!="number")return;const o=this.items[i];return!n&&Ct(o)?o.value:o}has(t){const n=ha(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ha(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];Ct(o)&&yd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Un(a,String(o++),n));return i}toString(t,n,i){return t?Ad(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Ks(l,void 0,i))}}return a}}function ha(e){let t=Ct(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ts={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return qs(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},da={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),bc(e,t,n,i)}},pa={identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qe(null),stringify:({source:e},t)=>typeof e=="string"&&pa.test.test(e)?e:t.options.nullStr},xc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new qe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&xc.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function er({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const Cd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},_d={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},kd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new qe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},ga=e=>typeof e=="bigint"||Number.isInteger(e),Ec=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Td(e,t,n){const{value:i}=e;return ga(i)&&i>=0?n+i.toString(t):er(e)}const Id={identify:e=>ga(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Ec(e,2,8,n),stringify:e=>Td(e,8,"0o")},Od={identify:ga,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Ec(e,0,10,n),stringify:er},Fd={identify:e=>ga(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Ec(e,2,16,n),stringify:e=>Td(e,16,"0x")},rw=[es,ts,da,pa,xc,Id,Od,Fd,Cd,_d,kd];function Bd(e){return typeof e=="bigint"||Number.isInteger(e)}const ya=({value:e})=>JSON.stringify(e),iw=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ya},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ya},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ya},{identify:Bd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Bd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ya}],sw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},ow=[es,ts].concat(iw,sw),Sc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let h=0;h<u.length;++h)f+=String.fromCharCode(u[h]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=qe.BLOCK_LITERAL),t!==qe.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),h=Math.ceil(l.length/f),d=new Array(h);for(let g=0,v=0;g<h;++g,v+=f)d[g]=l.substr(v,f);l=d.join(t===qe.BLOCK_LITERAL?`
300
+ `:" ")}return bc({comment:e,type:t,value:l},i,o,a)}};function Dd(e,t){if(qs(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Ut(i)){if(Vs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new pn(new qe(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
301
301
  ${o.key.commentBefore}`:i.commentBefore),i.comment){const a=o.value??o.key;a.comment=a.comment?`${i.comment}
302
- ${a.comment}`:i.comment}i=o}e.items[n]=Ut(i)?i:new gn(i)}}else t("Expected a sequence for this tag");return e}function Pd(e,t,n){const{replacer:i}=n,o=new bi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const h=Object.keys(u);if(h.length===1)l=h[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${h.length} keys`)}else l=u;o.items.push(vc(l,f,n))}return o}const Ac={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dd,createNode:Pd};class ns extends bi{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=ns.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Ut(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=Pd(t,n,i),a=new this;return a.items=o.items,a}}ns.tag="tag:yaml.org,2002:omap";const Cc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Dd(e,t),i=[];for(const{key:o}of n.items)At(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ns,n)},createNode:(e,t,n)=>ns.from(e,t,n)};function Rd({value:e,source:t},n){return t&&(e?Ld:jd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Ld={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ve(!0),stringify:Rd},jd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ve(!1),stringify:Rd},aw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},uw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},cw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ve(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:er},Gs=e=>typeof e=="bigint"||Number.isInteger(e);function ma(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function _c(e,t,n){const{value:i}=e;if(Gs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const lw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ma(e,2,2,n),stringify:e=>_c(e,2,"0b")},fw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ma(e,1,8,n),stringify:e=>_c(e,8,"0")},hw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ma(e,0,10,n),stringify:er},dw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ma(e,2,16,n),stringify:e=>_c(e,16,"0x")};class rs extends Vn{constructor(t){super(t),this.tag=rs.tag}add(t){let n;Ut(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new gn(t.key,null):n=new gn(t,null),mi(this.items,n.key)||this.items.push(n)}get(t,n){const i=mi(this.items,t);return!n&&Ut(i)?At(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=mi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new gn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(vc(u,null,i));return a}}rs.tag="tag:yaml.org,2002:set";const kc={collection:"map",identify:e=>e instanceof Set,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>rs.from(e,t,n),resolve(e,t){if(Vs(e)){if(e.hasAllNullValues(!0))return Object.assign(new rs,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Tc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function Nd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return er(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const $d={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Tc(e,n),stringify:Nd},Md={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Tc(e,!1),stringify:Nd},ba={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(ba.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let h=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const d=t[8];if(d&&d!=="Z"){let g=Tc(d,!1);Math.abs(g)<30&&(g*=60),h-=6e4*g}return new Date(h)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Ud=[es,ts,da,pa,Ld,jd,lw,fw,hw,dw,aw,uw,cw,Sc,_r,Cc,Ac,kc,$d,Md,ba],Vd=new Map([["core",rw],["failsafe",[es,ts,da]],["json",ow],["yaml11",Ud],["yaml-1.1",Ud]]),qd={binary:Sc,bool:xc,float:kd,floatExp:_d,floatNaN:Cd,floatTime:Md,int:Od,intHex:Fd,intOct:Id,intTime:$d,map:es,merge:_r,null:pa,omap:Cc,pairs:Ac,seq:ts,set:kc,timestamp:ba},pw={"tag:yaml.org,2002:binary":Sc,"tag:yaml.org,2002:merge":_r,"tag:yaml.org,2002:omap":Cc,"tag:yaml.org,2002:pairs":Ac,"tag:yaml.org,2002:set":kc,"tag:yaml.org,2002:timestamp":ba};function Ic(e,t,n){const i=Vd.get(t);if(i&&!e)return n&&!i.includes(_r)?i.concat(_r):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Vd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(_r)),o.reduce((a,u)=>{const l=typeof u=="string"?qd[u]:u;if(!l){const f=JSON.stringify(u),h=Object.keys(qd).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${h}`)}return a.includes(l)||a.push(l),a},[])}const gw=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Oc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Ic(t,"compat"):t?Ic(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?pw:{},this.tags=Ic(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Hr,{value:es}),Object.defineProperty(this,pr,{value:da}),Object.defineProperty(this,Gi,{value:ts}),this.sortMapEntries=typeof u=="function"?u:u===!0?gw:null}clone(){const t=Object.create(Oc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function yw(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=vd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(Cr(f,""))}let u=!1,l=null;if(e.contents){if(qt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const d=a(e.contents.commentBefore);n.push(Cr(d,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let h=Zi(e.contents,o,()=>l=null,f);l&&(h+=yi(h,"",a(l))),(h[0]==="|"||h[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${h}`:n.push(h)}else n.push(Zi(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
302
+ ${a.comment}`:i.comment}i=o}e.items[n]=Ut(i)?i:new pn(i)}}else t("Expected a sequence for this tag");return e}function Pd(e,t,n){const{replacer:i}=n,o=new bi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const h=Object.keys(u);if(h.length===1)l=h[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${h.length} keys`)}else l=u;o.items.push(vc(l,f,n))}return o}const Ac={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dd,createNode:Pd};class ns extends bi{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=ns.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Ut(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=Pd(t,n,i),a=new this;return a.items=o.items,a}}ns.tag="tag:yaml.org,2002:omap";const Cc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Dd(e,t),i=[];for(const{key:o}of n.items)Ct(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ns,n)},createNode:(e,t,n)=>ns.from(e,t,n)};function Rd({value:e,source:t},n){return t&&(e?Ld:jd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Ld={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Rd},jd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Rd},aw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},uw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},cw={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new qe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:er},Gs=e=>typeof e=="bigint"||Number.isInteger(e);function ma(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function _c(e,t,n){const{value:i}=e;if(Gs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const lw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ma(e,2,2,n),stringify:e=>_c(e,2,"0b")},fw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ma(e,1,8,n),stringify:e=>_c(e,8,"0")},hw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ma(e,0,10,n),stringify:er},dw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ma(e,2,16,n),stringify:e=>_c(e,16,"0x")};class rs extends Vn{constructor(t){super(t),this.tag=rs.tag}add(t){let n;Ut(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new pn(t.key,null):n=new pn(t,null),mi(this.items,n.key)||this.items.push(n)}get(t,n){const i=mi(this.items,t);return!n&&Ut(i)?Ct(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=mi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new pn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(vc(u,null,i));return a}}rs.tag="tag:yaml.org,2002:set";const kc={collection:"map",identify:e=>e instanceof Set,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>rs.from(e,t,n),resolve(e,t){if(Vs(e)){if(e.hasAllNullValues(!0))return Object.assign(new rs,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Tc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function Nd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return er(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const $d={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Tc(e,n),stringify:Nd},Md={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Tc(e,!1),stringify:Nd},ba={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(ba.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let h=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const d=t[8];if(d&&d!=="Z"){let g=Tc(d,!1);Math.abs(g)<30&&(g*=60),h-=6e4*g}return new Date(h)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Ud=[es,ts,da,pa,Ld,jd,lw,fw,hw,dw,aw,uw,cw,Sc,_r,Cc,Ac,kc,$d,Md,ba],Vd=new Map([["core",rw],["failsafe",[es,ts,da]],["json",ow],["yaml11",Ud],["yaml-1.1",Ud]]),qd={binary:Sc,bool:xc,float:kd,floatExp:_d,floatNaN:Cd,floatTime:Md,int:Od,intHex:Fd,intOct:Id,intTime:$d,map:es,merge:_r,null:pa,omap:Cc,pairs:Ac,seq:ts,set:kc,timestamp:ba},pw={"tag:yaml.org,2002:binary":Sc,"tag:yaml.org,2002:merge":_r,"tag:yaml.org,2002:omap":Cc,"tag:yaml.org,2002:pairs":Ac,"tag:yaml.org,2002:set":kc,"tag:yaml.org,2002:timestamp":ba};function Ic(e,t,n){const i=Vd.get(t);if(i&&!e)return n&&!i.includes(_r)?i.concat(_r):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Vd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(_r)),o.reduce((a,u)=>{const l=typeof u=="string"?qd[u]:u;if(!l){const f=JSON.stringify(u),h=Object.keys(qd).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${h}`)}return a.includes(l)||a.push(l),a},[])}const gw=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Oc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Ic(t,"compat"):t?Ic(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?pw:{},this.tags=Ic(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Hr,{value:es}),Object.defineProperty(this,pr,{value:da}),Object.defineProperty(this,Gi,{value:ts}),this.sortMapEntries=typeof u=="function"?u:u===!0?gw:null}clone(){const t=Object.create(Oc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function yw(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=vd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(Cr(f,""))}let u=!1,l=null;if(e.contents){if(qt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const d=a(e.contents.commentBefore);n.push(Cr(d,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let h=Zi(e.contents,o,()=>l=null,f);l&&(h+=yi(h,"",a(l))),(h[0]==="|"||h[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${h}`:n.push(h)}else n.push(Zi(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
303
303
  `)?(n.push("..."),n.push(Cr(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&u&&(f=f.replace(/^\n+/,"")),f&&((!u||l)&&n[n.length-1]!==""&&n.push(""),n.push(Cr(a(f),"")))}return n.join(`
304
304
  `)+`
305
- `}class Js{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:hc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new pn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Js.prototype,{[Mn]:{value:hc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=qt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){is(this.contents)&&this.contents.add(t)}addIn(t,n){is(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=pd(this);t.anchor=!n||i.has(n)?gd(n||"a",i):n}return new pc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const w=j=>typeof j=="number"||j instanceof String||j instanceof Number,T=n.filter(w).map(String);T.length>0&&(n=n.concat(T)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:h,tag:d}=i??{},{onAnchor:g,setAnchors:v,sourceObjects:C}=Wb(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:g,onTagObj:h,replacer:o,schema:this.schema,sourceObjects:C},E=Ks(t,d,S);return l&&Vt(E)&&(E.flow=!0),v(),E}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new gn(o,a)}delete(t){return is(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Hs(t)?this.contents==null?!1:(this.contents=null,!0):is(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Vt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Hs(t)?!n&&At(this.contents)?this.contents.value:this.contents:Vt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Vt(this.contents)?this.contents.has(t):!1}hasIn(t){return Hs(t)?this.contents!==void 0:Vt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ia(this.schema,[t],n):is(this.contents)&&this.contents.set(t,n)}setIn(t,n){Hs(t)?this.contents=n:this.contents==null?this.contents=ia(this.schema,Array.from(t),n):is(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new pn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new pn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Oc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:h,res:d}of l.anchors.values())a(d,h);return typeof u=="function"?Xi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return yw(this,t)}}function is(e){if(Vt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Wd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Ys extends Wd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class mw extends Wd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Kd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
305
+ `}class Js{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:hc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new dn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Js.prototype,{[Mn]:{value:hc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=qt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){is(this.contents)&&this.contents.add(t)}addIn(t,n){is(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=pd(this);t.anchor=!n||i.has(n)?gd(n||"a",i):n}return new pc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const w=j=>typeof j=="number"||j instanceof String||j instanceof Number,T=n.filter(w).map(String);T.length>0&&(n=n.concat(T)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:h,tag:d}=i??{},{onAnchor:g,setAnchors:v,sourceObjects:C}=Wb(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:g,onTagObj:h,replacer:o,schema:this.schema,sourceObjects:C},E=Ks(t,d,S);return l&&Vt(E)&&(E.flow=!0),v(),E}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new pn(o,a)}delete(t){return is(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Hs(t)?this.contents==null?!1:(this.contents=null,!0):is(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Vt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Hs(t)?!n&&Ct(this.contents)?this.contents.value:this.contents:Vt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Vt(this.contents)?this.contents.has(t):!1}hasIn(t){return Hs(t)?this.contents!==void 0:Vt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ia(this.schema,[t],n):is(this.contents)&&this.contents.set(t,n)}setIn(t,n){Hs(t)?this.contents=n:this.contents==null?this.contents=ia(this.schema,Array.from(t),n):is(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new dn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new dn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Oc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:h,res:d}of l.anchors.values())a(d,h);return typeof u=="function"?Xi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return yw(this,t)}}function is(e){if(Vt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Wd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Ys extends Wd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class mw extends Wd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Kd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
306
306
  `),u=l+u}if(/[^ ]/.test(u)){let l=1;const f=n.linePos[1];f&&f.line===i&&f.col>o&&(l=Math.max(1,Math.min(f.col-o,80-a)));const h=" ".repeat(a)+"^".repeat(l);n.message+=`:
307
307
 
308
308
  ${u}
309
309
  ${h}
310
310
  `}};function ss(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,h=l,d=l,g="",v="",C=!1,S=!1,E=null,w=null,T=null,j=null,R=null,_=null,O=null;for(const W of e)switch(S&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S=!1),E&&(h&&W.type!=="comment"&&W.type!=="newline"&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),E=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(E=W),d=!0;break;case"comment":{d||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const J=W.source.substring(1)||" ";g?g+=v+J:g=J,v="",h=!1;break}case"newline":h?g?g+=W.source:(!_||n!=="seq-item-ind")&&(f=!0):v+=W.source,h=!0,C=!0,(w||T)&&(j=W),d=!0;break;case"anchor":w&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=W,O===null&&(O=W.offset),h=!1,d=!1,S=!0;break;case"tag":{T&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),T=W,O===null&&(O=W.offset),h=!1,d=!1,S=!0;break}case n:(w||T)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),_&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),_=W,h=n==="seq-item-ind"||n==="explicit-key-ind",d=!1;break;case"comma":if(t){R&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),R=W,h=!1,d=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),h=!1,d=!1}const F=e[e.length-1],B=F?F.offset+F.source.length:o;return S&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E&&(h&&E.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:R,found:_,spaceBefore:f,comment:g,hasNewline:C,anchor:w,tag:T,newlineAfterProp:j,end:B,start:O??B}}function Xs(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
311
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Xs(t.key)||Xs(t.value))return!0}return!1;default:return!0}}function Fc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Xs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Hd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||At(a)&&At(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const zd="All mapping items must start at the same column";function bw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,h=null;for(const d of i.items){const{start:g,key:v,sep:C,value:S}=d,E=ss(g,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),w=!E.found;if(w){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",zd)),!E.anchor&&!E.tag&&!C){h=E.end,E.comment&&(l.comment?l.comment+=`
312
- `+E.comment:l.comment=E.comment);continue}(E.newlineAfterProp||Xs(v))&&o(v??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==i.indent&&o(f,"BAD_INDENT",zd);n.atKey=!0;const T=E.end,j=v?e(n,v,E,o):t(n,T,g,null,E,o);n.schema.compat&&Fc(i.indent,v,o),n.atKey=!1,Hd(n,l.items,j)&&o(T,"DUPLICATE_KEY","Map keys must be unique");const R=ss(C??[],{indicator:"map-value-ind",next:S,offset:j.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=R.end,R.found){w&&(S?.type==="block-map"&&!R.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<R.found.offset-1024&&o(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const _=S?e(n,S,R,o):t(n,f,C,null,R,o);n.schema.compat&&Fc(i.indent,S,o),f=_.range[2];const O=new gn(j,_);n.options.keepSourceTokens&&(O.srcToken=d),l.items.push(O)}else{w&&o(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),R.comment&&(j.comment?j.comment+=`
313
- `+R.comment:j.comment=R.comment);const _=new gn(j);n.options.keepSourceTokens&&(_.srcToken=d),l.items.push(_)}}return h&&h<f&&o(h,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,h??f],l}function ww({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??bi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,h=null;for(const{start:d,value:g}of i.items){const v=ss(d,{indicator:"seq-item-ind",next:g,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{h=v.end,v.comment&&(l.comment=v.comment);continue}const C=g?e(n,g,v,o):t(n,v.end,d,null,v,o);n.schema.compat&&Fc(i.indent,g,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,h??f],l}function Qs(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:h}=l;switch(h){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const d=f.substring(1)||" ";o?o+=u+d:o=d,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${h} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Bc="Block collections are not allowed within flow collections",Dc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function vw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:bi),h=new f(n.schema);h.flow=!0;const d=n.atRoot;d&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=i.offset+i.start.source.length;for(let w=0;w<i.items.length;++w){const T=i.items[w],{start:j,key:R,sep:_,value:O}=T,F=ss(j,{flow:l,indicator:"explicit-key-ind",next:R??_?.[0],offset:g,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!F.found){if(!F.anchor&&!F.tag&&!_&&!O){w===0&&F.comma?o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):w<i.items.length-1&&o(F.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),F.comment&&(h.comment?h.comment+=`
311
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Xs(t.key)||Xs(t.value))return!0}return!1;default:return!0}}function Fc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Xs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Hd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||Ct(a)&&Ct(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const zd="All mapping items must start at the same column";function bw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,h=null;for(const d of i.items){const{start:g,key:v,sep:C,value:S}=d,E=ss(g,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),w=!E.found;if(w){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",zd)),!E.anchor&&!E.tag&&!C){h=E.end,E.comment&&(l.comment?l.comment+=`
312
+ `+E.comment:l.comment=E.comment);continue}(E.newlineAfterProp||Xs(v))&&o(v??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==i.indent&&o(f,"BAD_INDENT",zd);n.atKey=!0;const T=E.end,j=v?e(n,v,E,o):t(n,T,g,null,E,o);n.schema.compat&&Fc(i.indent,v,o),n.atKey=!1,Hd(n,l.items,j)&&o(T,"DUPLICATE_KEY","Map keys must be unique");const R=ss(C??[],{indicator:"map-value-ind",next:S,offset:j.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=R.end,R.found){w&&(S?.type==="block-map"&&!R.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<R.found.offset-1024&&o(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const _=S?e(n,S,R,o):t(n,f,C,null,R,o);n.schema.compat&&Fc(i.indent,S,o),f=_.range[2];const O=new pn(j,_);n.options.keepSourceTokens&&(O.srcToken=d),l.items.push(O)}else{w&&o(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),R.comment&&(j.comment?j.comment+=`
313
+ `+R.comment:j.comment=R.comment);const _=new pn(j);n.options.keepSourceTokens&&(_.srcToken=d),l.items.push(_)}}return h&&h<f&&o(h,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,h??f],l}function ww({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??bi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,h=null;for(const{start:d,value:g}of i.items){const v=ss(d,{indicator:"seq-item-ind",next:g,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{h=v.end,v.comment&&(l.comment=v.comment);continue}const C=g?e(n,g,v,o):t(n,v.end,d,null,v,o);n.schema.compat&&Fc(i.indent,g,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,h??f],l}function Qs(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:h}=l;switch(h){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const d=f.substring(1)||" ";o?o+=u+d:o=d,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${h} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Bc="Block collections are not allowed within flow collections",Dc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function vw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:bi),h=new f(n.schema);h.flow=!0;const d=n.atRoot;d&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=i.offset+i.start.source.length;for(let w=0;w<i.items.length;++w){const T=i.items[w],{start:j,key:R,sep:_,value:O}=T,F=ss(j,{flow:l,indicator:"explicit-key-ind",next:R??_?.[0],offset:g,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!F.found){if(!F.anchor&&!F.tag&&!_&&!O){w===0&&F.comma?o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):w<i.items.length-1&&o(F.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),F.comment&&(h.comment?h.comment+=`
314
314
  `+F.comment:h.comment=F.comment),g=F.end;continue}!u&&n.options.strict&&Xs(R)&&o(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)F.comma&&o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(F.comma||o(F.start,"MISSING_CHAR",`Missing , between ${l} items`),F.comment){let B="";e:for(const W of j)switch(W.type){case"comma":case"space":break;case"comment":B=W.source.substring(1);break e;default:break e}if(B){let W=h.items[h.items.length-1];Ut(W)&&(W=W.value??W.key),W.comment?W.comment+=`
315
315
  `+B:W.comment=B,F.comment=F.comment.substring(B.length+1)}}if(!u&&!_&&!F.found){const B=O?e(n,O,F,o):t(n,F.end,_,null,F,o);h.items.push(B),g=B.range[2],Dc(O)&&o(B.range,"BLOCK_IN_FLOW",Bc)}else{n.atKey=!0;const B=F.end,W=R?e(n,R,F,o):t(n,B,j,null,F,o);Dc(R)&&o(W.range,"BLOCK_IN_FLOW",Bc),n.atKey=!1;const J=ss(_??[],{flow:l,indicator:"map-value-ind",next:O,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(J.found){if(!u&&!F.found&&n.options.strict){if(_)for(const de of _){if(de===J.found)break;if(de.type==="newline"){o(de,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}F.start<J.found.offset-1024&&o(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else O&&("source"in O&&O.source&&O.source[0]===":"?o(O,"MISSING_CHAR",`Missing space after : in ${l}`):o(J.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const fe=O?e(n,O,J,o):J.found?t(n,J.end,_,null,J,o):null;fe?Dc(O)&&o(fe.range,"BLOCK_IN_FLOW",Bc):J.comment&&(W.comment?W.comment+=`
316
- `+J.comment:W.comment=J.comment);const le=new gn(W,fe);if(n.options.keepSourceTokens&&(le.srcToken=T),u){const de=h;Hd(n,de.items,W)&&o(B,"DUPLICATE_KEY","Map keys must be unique"),de.items.push(le)}else{const de=new Vn(n.schema);de.flow=!0,de.items.push(le);const be=(fe??W).range;de.range=[W.range[0],be[1],be[2]],h.items.push(de)}g=fe?fe.range[2]:J.end}}const v=u?"}":"]",[C,...S]=i.end;let E=g;if(C&&C.source===v)E=C.offset+C.source.length;else{const w=l[0].toUpperCase()+l.substring(1),T=d?`${w} must end with a ${v}`:`${w} in block collection must be sufficiently indented and end with a ${v}`;o(g,d?"MISSING_CHAR":"BAD_INDENT",T),C&&C.source.length!==1&&S.unshift(C)}if(S.length>0){const w=Qs(S,E,n.options.strict,o);w.comment&&(h.comment?h.comment+=`
317
- `+w.comment:h.comment=w.comment),h.range=[i.offset,E,w.offset]}else h.range=[i.offset,E,E];return h}function Pc(e,t,n,i,o,a){const u=n.type==="block-map"?bw(e,t,n,i,a):n.type==="block-seq"?ww(e,t,n,i,a):vw(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function xw(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,v=>o(a,"TAG_RESOLVE_FAILED",v)):null;if(n.type==="block-seq"){const{anchor:v,newlineAfterProp:C}=i,S=v&&a?v.offset>a.offset?v:a:v??a;S&&(!C||C.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===Vn.tagName&&l==="map"||u===bi.tagName&&l==="seq")return Pc(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Pc(e,t,n,o,u)}const h=Pc(e,t,n,o,u,f),d=f.resolve?.(h,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??h,g=qt(d)?d:new Ve(d);return g.range=h.range,g.tag=u,f?.format&&(g.format=f.format),g}function Ew(e,t,n){const i=t.offset,o=Sw(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?Ve.BLOCK_FOLDED:Ve.BLOCK_LITERAL,u=t.source?Aw(t.source):[];let l=u.length;for(let E=u.length-1;E>=0;--E){const w=u[E][1];if(w===""||w==="\r")l=E;else break}if(l===0){const E=o.chomp==="+"&&u.length>0?`
316
+ `+J.comment:W.comment=J.comment);const le=new pn(W,fe);if(n.options.keepSourceTokens&&(le.srcToken=T),u){const de=h;Hd(n,de.items,W)&&o(B,"DUPLICATE_KEY","Map keys must be unique"),de.items.push(le)}else{const de=new Vn(n.schema);de.flow=!0,de.items.push(le);const be=(fe??W).range;de.range=[W.range[0],be[1],be[2]],h.items.push(de)}g=fe?fe.range[2]:J.end}}const v=u?"}":"]",[C,...S]=i.end;let E=g;if(C&&C.source===v)E=C.offset+C.source.length;else{const w=l[0].toUpperCase()+l.substring(1),T=d?`${w} must end with a ${v}`:`${w} in block collection must be sufficiently indented and end with a ${v}`;o(g,d?"MISSING_CHAR":"BAD_INDENT",T),C&&C.source.length!==1&&S.unshift(C)}if(S.length>0){const w=Qs(S,E,n.options.strict,o);w.comment&&(h.comment?h.comment+=`
317
+ `+w.comment:h.comment=w.comment),h.range=[i.offset,E,w.offset]}else h.range=[i.offset,E,E];return h}function Pc(e,t,n,i,o,a){const u=n.type==="block-map"?bw(e,t,n,i,a):n.type==="block-seq"?ww(e,t,n,i,a):vw(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function xw(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,v=>o(a,"TAG_RESOLVE_FAILED",v)):null;if(n.type==="block-seq"){const{anchor:v,newlineAfterProp:C}=i,S=v&&a?v.offset>a.offset?v:a:v??a;S&&(!C||C.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===Vn.tagName&&l==="map"||u===bi.tagName&&l==="seq")return Pc(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Pc(e,t,n,o,u)}const h=Pc(e,t,n,o,u,f),d=f.resolve?.(h,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??h,g=qt(d)?d:new qe(d);return g.range=h.range,g.tag=u,f?.format&&(g.format=f.format),g}function Ew(e,t,n){const i=t.offset,o=Sw(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?qe.BLOCK_FOLDED:qe.BLOCK_LITERAL,u=t.source?Aw(t.source):[];let l=u.length;for(let E=u.length-1;E>=0;--E){const w=u[E][1];if(w===""||w==="\r")l=E;else break}if(l===0){const E=o.chomp==="+"&&u.length>0?`
318
318
  `.repeat(Math.max(1,u.length-1)):"";let w=i+o.length;return t.source&&(w+=t.source.length),{value:E,type:a,comment:o.comment,range:[i,w,w]}}let f=t.indent+o.indent,h=t.offset+o.length,d=0;for(let E=0;E<l;++E){const[w,T]=u[E];if(T===""||T==="\r")o.indent===0&&w.length>f&&(f=w.length);else{w.length<f&&n(h+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=w.length),d=E,f===0&&!e.atRoot&&n(h,"BAD_INDENT","Block scalar values in collections must be indented");break}h+=w.length+T.length+1}for(let E=u.length-1;E>=l;--E)u[E][0].length>f&&(l=E+1);let g="",v="",C=!1;for(let E=0;E<d;++E)g+=u[E][0].slice(f)+`
319
- `;for(let E=d;E<l;++E){let[w,T]=u[E];h+=w.length+T.length+1;const j=T[T.length-1]==="\r";if(j&&(T=T.slice(0,-1)),T&&w.length<f){const _=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(h-T.length-(j?2:1),"BAD_INDENT",_),w=""}a===Ve.BLOCK_LITERAL?(g+=v+w.slice(f)+T,v=`
319
+ `;for(let E=d;E<l;++E){let[w,T]=u[E];h+=w.length+T.length+1;const j=T[T.length-1]==="\r";if(j&&(T=T.slice(0,-1)),T&&w.length<f){const _=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(h-T.length-(j?2:1),"BAD_INDENT",_),w=""}a===qe.BLOCK_LITERAL?(g+=v+w.slice(f)+T,v=`
320
320
  `):w.length>f||T[0]===" "?(v===" "?v=`
321
321
  `:!C&&v===`
322
322
  `&&(v=`
@@ -329,7 +329,7 @@ ${h}
329
329
  `+u[E][0].slice(f);g[g.length-1]!==`
330
330
  `&&(g+=`
331
331
  `);break;default:g+=`
332
- `}const S=i+o.length+t.source.length;return{value:g,type:a,comment:o.comment,range:[i,S,S]}}function Sw({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let v=1;v<o.length;++v){const C=o[v];if(!l&&(C==="-"||C==="+"))l=C;else{const S=Number(C);!u&&S?u=S:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let h=!1,d="",g=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":h=!0;case"newline":g+=C.source.length;break;case"comment":n&&!h&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=C.source.length,d=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),g+=C.source.length;break;default:{const S=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",S);const E=C.source;E&&typeof E=="string"&&(g+=E.length)}}}return{mode:a,indent:u,chomp:l,comment:d,length:g}}function Aw(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function Cw(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const h=(v,C,S)=>n(i+v,C,S);switch(o){case"scalar":l=Ve.PLAIN,f=_w(a,h);break;case"single-quoted-scalar":l=Ve.QUOTE_SINGLE,f=kw(a,h);break;case"double-quoted-scalar":l=Ve.QUOTE_DOUBLE,f=Tw(a,h);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const d=i+a.length,g=Qs(u,d,t,n);return{value:f,type:l,comment:g.comment,range:[i,d,g.offset]}}function _w(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Gd(e)}function kw(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Gd(e.slice(1,-1)).replace(/''/g,"'")}function Gd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
332
+ `}const S=i+o.length+t.source.length;return{value:g,type:a,comment:o.comment,range:[i,S,S]}}function Sw({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let v=1;v<o.length;++v){const C=o[v];if(!l&&(C==="-"||C==="+"))l=C;else{const S=Number(C);!u&&S?u=S:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let h=!1,d="",g=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":h=!0;case"newline":g+=C.source.length;break;case"comment":n&&!h&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=C.source.length,d=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),g+=C.source.length;break;default:{const S=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",S);const E=C.source;E&&typeof E=="string"&&(g+=E.length)}}}return{mode:a,indent:u,chomp:l,comment:d,length:g}}function Aw(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function Cw(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const h=(v,C,S)=>n(i+v,C,S);switch(o){case"scalar":l=qe.PLAIN,f=_w(a,h);break;case"single-quoted-scalar":l=qe.QUOTE_SINGLE,f=kw(a,h);break;case"double-quoted-scalar":l=qe.QUOTE_DOUBLE,f=Tw(a,h);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const d=i+a.length,g=Qs(u,d,t,n);return{value:f,type:l,comment:g.comment,range:[i,d,g.offset]}}function _w(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Gd(e)}function kw(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Gd(e.slice(1,-1)).replace(/''/g,"'")}function Gd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
333
333
  `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
334
334
  `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],a=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?a===`
335
335
  `?o+=a:a=`
@@ -344,10 +344,10 @@ ${h}
344
344
  `);)i===`
345
345
  `&&(n+=`
346
346
  `),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Ow={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
347
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Fw(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function Jd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Ew(e,t,i):Cw(t,e.options.strict,i),f=n?e.directives.tagName(n.source,g=>i(n,"TAG_RESOLVE_FAILED",g)):null;let h;e.options.stringKeys&&e.atKey?h=e.schema[pr]:f?h=Bw(e.schema,o,f,n,i):t.type==="scalar"?h=Dw(e,o,t,i):h=e.schema[pr];let d;try{const g=h.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);d=At(g)?g:new Ve(g)}catch(g){const v=g instanceof Error?g.message:String(g);i(n??t,"TAG_RESOLVE_FAILED",v),d=new Ve(o)}return d.range=l,d.source=o,a&&(d.type=a),f&&(d.tag=f),h.format&&(d.format=h.format),u&&(d.comment=u),d}function Bw(e,t,n,i,o){if(n==="!")return e[pr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[pr])}function Dw({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[pr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[pr];if(u.tag!==l.tag){const f=t.tagString(u.tag),h=t.tagString(l.tag),d=`Value may be parsed as either ${f} or ${h}`;a(o,"TAG_RESOLVE_FAILED",d,!0)}}return u}function Pw(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const Rw={composeNode:Yd,composeEmptyNode:Rc};function Yd(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let h,d=!0;switch(t.type){case"alias":h=Lw(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=Jd(e,t,f,i),l&&(h.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":h=xw(Rw,e,t,n,i),l&&(h.anchor=l.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",g),h=Rc(e,t.offset,void 0,null,n,i),d=!1}}return l&&h.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!At(h)||typeof h.value!="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(h.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?h.comment=u:h.commentBefore=u),e.options.keepSourceTokens&&d&&(h.srcToken=t),h}function Rc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},h){const d={type:"scalar",offset:Pw(t,n,i),indent:-1,source:""},g=Jd(e,d,l,h);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&h(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),a&&(g.comment=a,g.range[2]=f),g}function Lw({options:e},{offset:t,source:n,end:i},o){const a=new pc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=Qs(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function jw(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Js(void 0,l),h={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},d=ss(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});d.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!d.hasNewline&&u(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?Yd(h,o,d,u):Rc(h,d.end,i,null,d,u);const g=f.contents.range[2],v=Qs(a,g,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,g,v.offset],f}function Zs(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Xd(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
347
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Fw(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function Jd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Ew(e,t,i):Cw(t,e.options.strict,i),f=n?e.directives.tagName(n.source,g=>i(n,"TAG_RESOLVE_FAILED",g)):null;let h;e.options.stringKeys&&e.atKey?h=e.schema[pr]:f?h=Bw(e.schema,o,f,n,i):t.type==="scalar"?h=Dw(e,o,t,i):h=e.schema[pr];let d;try{const g=h.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);d=Ct(g)?g:new qe(g)}catch(g){const v=g instanceof Error?g.message:String(g);i(n??t,"TAG_RESOLVE_FAILED",v),d=new qe(o)}return d.range=l,d.source=o,a&&(d.type=a),f&&(d.tag=f),h.format&&(d.format=h.format),u&&(d.comment=u),d}function Bw(e,t,n,i,o){if(n==="!")return e[pr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[pr])}function Dw({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[pr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[pr];if(u.tag!==l.tag){const f=t.tagString(u.tag),h=t.tagString(l.tag),d=`Value may be parsed as either ${f} or ${h}`;a(o,"TAG_RESOLVE_FAILED",d,!0)}}return u}function Pw(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const Rw={composeNode:Yd,composeEmptyNode:Rc};function Yd(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let h,d=!0;switch(t.type){case"alias":h=Lw(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=Jd(e,t,f,i),l&&(h.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":h=xw(Rw,e,t,n,i),l&&(h.anchor=l.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",g),h=Rc(e,t.offset,void 0,null,n,i),d=!1}}return l&&h.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!Ct(h)||typeof h.value!="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(h.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?h.comment=u:h.commentBefore=u),e.options.keepSourceTokens&&d&&(h.srcToken=t),h}function Rc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},h){const d={type:"scalar",offset:Pw(t,n,i),indent:-1,source:""},g=Jd(e,d,l,h);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&h(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),a&&(g.comment=a,g.range[2]=f),g}function Lw({options:e},{offset:t,source:n,end:i},o){const a=new pc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=Qs(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function jw(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Js(void 0,l),h={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},d=ss(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});d.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!d.hasNewline&&u(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?Yd(h,o,d,u):Rc(h,d.end,i,null,d,u);const g=f.contents.range[2],v=Qs(a,g,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,g,v.offset],f}function Zs(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Xd(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
348
348
 
349
349
  `:`
350
- `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Nw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=Zs(n);a?this.warnings.push(new mw(u,i,o)):this.errors.push(new Ys(u,i,o))},this.directives=new pn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=Xd(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
350
+ `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Nw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=Zs(n);a?this.warnings.push(new mw(u,i,o)):this.errors.push(new Ys(u,i,o))},this.directives=new dn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=Xd(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
351
351
  ${i}`:i;else if(o||t.directives.docStart||!a)t.commentBefore=i;else if(Vt(a)&&!a.flow&&a.items.length>0){let u=a.items[0];Ut(u)&&(u=u.key);const l=u.commentBefore;u.commentBefore=l?`${i}
352
352
  ${l}`:i}else{const u=a.commentBefore;a.commentBefore=u?`${i}
353
353
  ${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Xd(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=Zs(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=jw(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Ys(Zs(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new Ys(Zs(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=Qs(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
@@ -376,28 +376,28 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
376
376
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
377
377
  `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(wi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(rp(n.key)&&!wi(n.sep,"newline")){const u=os(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(wi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=os(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):wi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||wi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=va(i),a=os(o);ip(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
378
378
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
379
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=va(t),i=os(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=va(t),i=os(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Kw(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new qw||null,prettyErrors:t}}function Hw(e,t={}){const{lineCounter:n,prettyErrors:i}=Kw(t),o=new Ww(n?.addNewLine),a=new Nw(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new Ys(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Kd(e,n)),u.warnings.forEach(Kd(e,n))),u}function sp(e,t,n){let i;const o=Hw(e,n);if(!o)return null;if(o.warnings.forEach(a=>xd(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function op(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Us(e)&&!i?e.toString(n):new Js(e,i,n).toString(n)}const zw={BorderRadiusContainer:Ke.div`
379
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=va(t),i=os(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=va(t),i=os(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Kw(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new qw||null,prettyErrors:t}}function Hw(e,t={}){const{lineCounter:n,prettyErrors:i}=Kw(t),o=new Ww(n?.addNewLine),a=new Nw(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new Ys(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Kd(e,n)),u.warnings.forEach(Kd(e,n))),u}function sp(e,t,n){let i;const o=Hw(e,n);if(!o)return null;if(o.warnings.forEach(a=>xd(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function op(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Us(e)&&!i?e.toString(n):new Js(e,i,n).toString(n)}const zw={BorderRadiusContainer:He.div`
380
380
  height: 100%;
381
381
 
382
382
  .monaco-editor,
383
383
  .overflow-guard {
384
384
  border-radius: 8px;
385
385
  }
386
- `},Gw=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(op(t))},[t]),x.jsx(zw.BorderRadiusContainer,{children:x.jsx(lc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(sp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Jw=Ke.div`
386
+ `},Gw=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Q.useState("");return Q.useEffect(()=>{o(op(t))},[t]),x.jsx(zw.BorderRadiusContainer,{children:x.jsx(lc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(sp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Jw=He.div`
387
387
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
388
388
 
389
389
  .monaco-editor,
390
390
  .overflow-guard {
391
391
  border-radius: 8px;
392
392
  }
393
- `,Yw=Ke.div`
393
+ `,Yw=He.div`
394
394
  margin-top: 10px;
395
395
  display: flex;
396
396
  align-items: center;
397
397
  background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
398
398
  border-radius: 8px;
399
399
  padding: 4px;
400
- `,ap={BorderRadiusContainer:Jw,ControlsRowContainer:Yw},Xw=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:h,designNewLayoutHeight:d})=>{const{token:g}=V.theme.useToken(),v=vr.useNavigate(),[C,S]=Z.useState(""),[E,w]=Z.useState(!1),[T,j]=Z.useState();Z.useEffect(()=>{S(op(n))},[n]);const R=()=>{w(!0),j(void 0);const _=sp(C),{namespace:O}=_.metadata,{name:F}=_.metadata,B=_,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${O}`:""}/${l}/${o?"":F}`;o?Jo({endpoint:W,body:B}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),w(!1),j(J)}):Yo({endpoint:W,body:B}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),w(!1),j(J)})};return x.jsxs(x.Fragment,{children:[T&&x.jsx(V.Alert,{message:`An error has occurred: ${T?.response?.data?.message} `,type:"error"}),x.jsx(ap.BorderRadiusContainer,{$designNewLayoutHeight:d,children:x.jsx(lc,{defaultLanguage:"yaml",width:"100%",height:d||"75vh",value:C,onChange:_=>{S(_||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),x.jsx(ap.ControlsRowContainer,{$bgColor:g.colorPrimaryBg,$designNewLayout:h,children:x.jsxs(V.Flex,{gap:h?10:16,align:"center",children:[x.jsx(V.Button,{type:"primary",onClick:R,loading:E,children:"Submit"}),f&&x.jsx(V.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},Tt=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},up=Z.createContext(void 0),Qw=({value:e,children:t})=>x.jsx(up.Provider,{value:e,children:t}),nr=()=>Z.useContext(up),cp=Z.createContext(void 0),Zw=({value:e,children:t})=>x.jsx(cp.Provider,{value:e,children:t}),ev=()=>Z.useContext(cp),lp=Z.createContext(void 0),tv=({value:e,children:t})=>x.jsx(lp.Provider,{value:e,children:t}),nv=()=>Z.useContext(lp),fp=Z.createContext({}),hp=Z.createContext(void 0),rv=({value:e,children:t})=>{const[n,i]=Z.useState(e);return x.jsx(fp.Provider,{value:n,children:x.jsx(hp.Provider,{value:i,children:t})})},iv=()=>Z.useContext(fp),sv=()=>{const e=Z.useContext(hp);if(!e)throw new Error("useUpdateIsTouchedPersisted must be used within a IsTouchedPersistedProvider");return e},ov=Ke.div`
400
+ `,ap={BorderRadiusContainer:Jw,ControlsRowContainer:Yw},Xw=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:h,designNewLayoutHeight:d})=>{const{token:g}=V.theme.useToken(),v=vr.useNavigate(),[C,S]=Q.useState(""),[E,w]=Q.useState(!1),[T,j]=Q.useState();Q.useEffect(()=>{S(op(n))},[n]);const R=()=>{w(!0),j(void 0);const _=sp(C),{namespace:O}=_.metadata,{name:F}=_.metadata,B=_,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${O}`:""}/${l}/${o?"":F}`;o?Jo({endpoint:W,body:B}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),w(!1),j(J)}):Yo({endpoint:W,body:B}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),w(!1),j(J)})};return x.jsxs(x.Fragment,{children:[T&&x.jsx(V.Alert,{message:`An error has occurred: ${T?.response?.data?.message} `,type:"error"}),x.jsx(ap.BorderRadiusContainer,{$designNewLayoutHeight:d,children:x.jsx(lc,{defaultLanguage:"yaml",width:"100%",height:d||"75vh",value:C,onChange:_=>{S(_||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),x.jsx(ap.ControlsRowContainer,{$bgColor:g.colorPrimaryBg,$designNewLayout:h,children:x.jsxs(V.Flex,{gap:h?10:16,align:"center",children:[x.jsx(V.Button,{type:"primary",onClick:R,loading:E,children:"Submit"}),f&&x.jsx(V.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},It=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},up=Q.createContext(void 0),Qw=({value:e,children:t})=>x.jsx(up.Provider,{value:e,children:t}),nr=()=>Q.useContext(up),cp=Q.createContext(void 0),Zw=({value:e,children:t})=>x.jsx(cp.Provider,{value:e,children:t}),ev=()=>Q.useContext(cp),lp=Q.createContext(void 0),tv=({value:e,children:t})=>x.jsx(lp.Provider,{value:e,children:t}),nv=()=>Q.useContext(lp),fp=Q.createContext({}),hp=Q.createContext(void 0),rv=({value:e,children:t})=>{const[n,i]=Q.useState(e);return x.jsx(fp.Provider,{value:n,children:x.jsx(hp.Provider,{value:i,children:t})})},iv=()=>Q.useContext(fp),sv=()=>{const e=Q.useContext(hp);if(!e)throw new Error("useUpdateIsTouchedPersisted must be used within a IsTouchedPersistedProvider");return e},ov=He.div`
401
401
  display: flex;
402
402
  flex-direction: column;
403
403
  gap: ${({$designNewLayout:e})=>e?"4px":"8px"};
@@ -411,52 +411,52 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
411
411
  0 6px 16px 0 #00000014,
412
412
  0 3px 6px -4px #0000001f,
413
413
  0 9px 28px 8px #0000000d`:"initial"};
414
- `,av=Ke.div`
414
+ `,av=He.div`
415
415
  display: flex;
416
416
  align-items: center;
417
417
  justify-content: flex-start;
418
418
  gap: 4px;
419
419
  cursor: pointer;
420
- `,uv=Ke.div`
420
+ `,uv=He.div`
421
421
  display: ${({$isOpen:e})=>e?"block":"none"};
422
422
  padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
423
- `,Nc={Container:ov,TitleBar:av,Content:uv},cv=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=V.theme.useToken(),h=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),d=nr(),g=()=>{h?n.onExpandClose(t):n.onExpandOpen(t)};return x.jsxs(Nc.Container,{$designNewLayout:d,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsxs(Nc.TitleBar,{onClick:()=>g(),children:[!d&&x.jsx("div",{children:h?x.jsx(vn.CaretDownOutlined,{size:14}):x.jsx(vn.CaretRightOutlined,{size:14})}),x.jsx("div",{children:e}),d&&x.jsx("div",{children:h?x.jsx(Ah,{}):x.jsx(Sh,{})})]}),x.jsxs(V.Flex,{gap:4,children:[o&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>a(),children:x.jsx(sn,{})}),u&&x.jsx(V.Button,{size:"small",type:"text",onClick:u,children:x.jsx(sn,{})}),i]})]}),x.jsx(Nc.Content,{$isOpen:h,$designNewLayout:d,children:l})]})},vi=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return x.jsx("div",{children:x.jsx(V.Button,{size:"small",type:"text",onClick:o,children:i?x.jsx(kh,{}):x.jsx(Th,{})})})},lv=Ke.div`
423
+ `,Nc={Container:ov,TitleBar:av,Content:uv},cv=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=V.theme.useToken(),h=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),d=nr(),g=()=>{h?n.onExpandClose(t):n.onExpandOpen(t)};return x.jsxs(Nc.Container,{$designNewLayout:d,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsxs(Nc.TitleBar,{onClick:()=>g(),children:[!d&&x.jsx("div",{children:h?x.jsx(wn.CaretDownOutlined,{size:14}):x.jsx(wn.CaretRightOutlined,{size:14})}),x.jsx("div",{children:e}),d&&x.jsx("div",{children:h?x.jsx(Ah,{}):x.jsx(Sh,{})})]}),x.jsxs(V.Flex,{gap:4,children:[o&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>a(),children:x.jsx(on,{})}),u&&x.jsx(V.Button,{size:"small",type:"text",onClick:u,children:x.jsx(on,{})}),i]})]}),x.jsx(Nc.Content,{$isOpen:h,$designNewLayout:d,children:l})]})},vi=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return x.jsx("div",{children:x.jsx(V.Button,{size:"small",type:"text",onClick:o,children:i?x.jsx(kh,{}):x.jsx(Th,{})})})},lv=He.div`
424
424
  display: ${({$isHidden:e})=>e?"none":"block"};
425
- `,kr=Ke(V.Form.Item)`
425
+ `,kr=He(V.Form.Item)`
426
426
  margin-bottom: 8px;
427
- `,Tr=Ke.div`
427
+ `,Tr=He.div`
428
428
  font-size: ${({$designNewLayout:e})=>e?"16px":"14px"};
429
429
  line-height: ${({$designNewLayout:e})=>e?"24px":"22px"};
430
- `,fv={Content:Ke.div`
430
+ `,fv={Content:He.div`
431
431
  padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
432
- `},hv=({children:e})=>{const t=nr();return x.jsx(fv.Content,{$designNewLayout:t,children:e})},dv=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},dp=(e,t)=>{if(!e)return!1;for(const n of e)if(dv(n,t))return!0;return!1},gr=({name:e,secondName:t,children:n})=>{const i=ev(),o=e?dp(i,Array.isArray(e)?e:[e]):!1,a=t?dp(i,Array.isArray(t)?t:[t]):!1;return x.jsx(lv,{$isHidden:!i||o||a,children:n})},pp=Ke.div`
432
+ `},hv=({children:e})=>{const t=nr();return x.jsx(fv.Content,{$designNewLayout:t,children:e})},dv=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},dp=(e,t)=>{if(!e)return!1;for(const n of e)if(dv(n,t))return!0;return!1},gr=({name:e,secondName:t,children:n})=>{const i=ev(),o=e?dp(i,Array.isArray(e)?e:[e]):!1,a=t?dp(i,Array.isArray(t)?t:[t]):!1;return x.jsx(lv,{$isHidden:!i||o||a,children:n})},pp=He.div`
433
433
  height: ${({$height:e})=>e}px;
434
- `,pv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:d,urlParams:g,onRemoveByMinus:v})=>{const C=nr(),S=nv(),E=iv(),w=sv(),{clusterName:T,namespace:j,syntheticProject:R,entryName:_}=g,O=V.Form.useFormInstance(),F=V.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,O),B=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,W=V.Form.useWatch(d.relatedValuePath,O),J=d.relatedValuePath?W:void 0,fe=d.relatedValuePath?O.isFieldTouched(d.relatedValuePath):"hehe",le=Z.useRef(!1),de=Z.useRef("unset"),be=Z.useRef(!1);Z.useEffect(()=>{d.relatedValuePath&&fe&&w(re=>({...re,[d.relatedValuePath?.join(".")||"your doing it wrong"]:!0}))},[d.relatedValuePath,fe,w]),Z.useEffect(()=>{d.relatedValuePath&&E[d.relatedValuePath.join(".")]&&J&&!be.current&&(de.current=J,be.current=!0,O.setFieldValue(n||B,void 0),S?.())},[d.relatedValuePath,fe,E,J,O,n,B,S]),Z.useEffect(()=>{!d.relatedValuePath||de.current==="unset"||((!J||de.current!=="unset"&&de.current!==J)&&!le.current?(O.setFieldValue(n||B,void 0),S?.(),le.current=!0,de.current=J):J&&le.current&&(le.current=!1))},[d.relatedValuePath,O,n,B,J,S,E]);const Se=St({template:d.valueUri,replaceValues:{clusterName:T,namespace:j,syntheticProject:R,relatedFieldValue:J,entryName:_}}),{data:pe,isError:Fe,isLoading:De}=tn({uri:Se,refetchInterval:!1,queryKey:[Se||"",JSON.stringify(e)],isEnabled:!!Se&&(!d.relatedValuePath||d.relatedValuePath&&!!J)});if(De&&(!d.relatedValuePath||d.relatedValuePath&&J))return x.jsx(pp,{$height:64,children:"Loading"});if(Fe&&(!d.relatedValuePath||d.relatedValuePath&&J))return x.jsx(pp,{$height:64,children:"Error"});const _e=!Fe&&!De&&pe?ln.get(pe,["items"]):[],Ye=d.criteria?_e.filter(re=>{const Ae=ln.get(re,d.criteria?.keysToValue||[]);return d.criteria?.type==="equals"?Ae===d.criteria?.value:Ae!==d.criteria?.value}):_e,we=d.criteria?.keepPrefilled!==!1?_e.find(re=>ln.get(re,d.keysToValue)===F):void 0,ge=we?[we,...Ye]:Ye,Y=(Array.isArray(ge)?ge.map(re=>({value:ln.get(re,d.keysToValue),label:d.keysToLabel?ln.get(re,d.keysToLabel):ln.get(re,d.keysToValue)})).map(({value:re,label:Ae})=>({label:typeof Ae=="string"?Ae:JSON.stringify(Ae),value:typeof re=="string"?re:JSON.stringify(re)})):[]).reduce((re,Ae)=>(re.some(xe=>xe.value===Ae.value)||re.push(Ae),re),[]),X=x.jsxs(x.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:C,children:u?x.jsx(V.Tooltip,{title:u,children:X}):X}),x.jsxs(V.Flex,{gap:4,children:[l&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:x.jsx(sn,{})}),v&&x.jsx(V.Button,{size:"small",type:"text",onClick:v,children:x.jsx(sn,{})}),x.jsx(vi,{formName:i||e,persistedControls:h,type:"arr"})]})]}),x.jsx(kr,{name:n||B,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:Vr}:!0,children:x.jsx(V.Select,{mode:d.mode,placeholder:"Select",options:Y,filterOption:tc,disabled:d.relatedValuePath&&!W,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},yr=({valueObj:e,keysToValue:t,logic:n})=>{const i=ln.get(e,t);return n==="cpuLike"?nc(i):rc(i)},gp=({value:e})=>Number(e.toFixed(1)),yp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},mp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},gv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:h,maxAddSecondValueObj:d,logic:g})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=yr({valueObj:t,keysToValue:e.min.keysToValue,logic:g});v=gp({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=yr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:g}),E=yr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=yp({valueFirst:S,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=yr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:g}),E=yr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=mp({valueFirst:S,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=yr({valueObj:u,keysToValue:e.max.keysToValue,logic:g});C=gp({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=yr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:g}),E=yr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=yp({valueFirst:S,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof h=="object"&&h!==null&&typeof d=="object"&&d!==null){const S=yr({valueObj:h,keysToValue:e.max.firstValuesKeysToValue,logic:g}),E=yr({valueObj:d,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=mp({valueFirst:S,valueSecond:E})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},yv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,persistedControls:u,description:l,onRemoveByMinus:f,initialValue:h,max:d,min:g,step:v=1,...C})=>{const S=nr(),[E,w]=Z.useState(h||g);Z.useEffect(()=>{(Number.isNaN(E)||E<g)&&w(g),E>d&&w(d),w(E)},[E,g,d]);const T=x.jsxs(x.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:S,children:l?x.jsx(V.Tooltip,{title:l,children:T}):T}),x.jsxs(V.Flex,{gap:4,children:[f&&x.jsx(V.Button,{size:"small",type:"text",onClick:f,children:x.jsx(sn,{})}),x.jsx(vi,{formName:i||e,persistedControls:u,type:"number"})]})]}),x.jsxs(V.Row,{children:[x.jsxs(V.Col,{span:12,children:[x.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:x.jsx(V.Slider,{min:g,max:d,step:v,...C})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),x.jsx(V.Typography.Text,{children:x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx("span",{children:g}),x.jsx("span",{children:d})]})})]}),x.jsx(V.Col,{span:4,children:x.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:x.jsx(V.InputNumber,{min:g,max:d,step:v,value:E,disabled:C.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},mv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:h,urlParams:d,onRemoveByMinus:g})=>{const{clusterName:v,namespace:C,syntheticProject:S,entryName:E}=d,w=l?h.edit:h.add,T=w.min.type==="resourceValue"?St({template:w.min.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,j=w.min.type==="substractResourceValues"?St({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,R=w.min.type==="substractResourceValues"?St({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,_=w.min.type==="addResourceValues"?St({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,O=w.min.type==="addResourceValues"?St({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,F=w.max.type==="resourceValue"?St({template:w.max.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,B=w.max.type==="substractResourceValues"?St({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,W=w.max.type==="substractResourceValues"?St({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,J=w.max.type==="addResourceValues"?St({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,fe=w.max.type==="addResourceValues"?St({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,{data:le,isError:de,isLoading:be}=tn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:Se,isError:pe,isLoading:Fe}=tn({uri:j||"",refetchInterval:!1,queryKey:[j||"",JSON.stringify(e)],isEnabled:!!j}),{data:De,isError:_e,isLoading:Ye}=tn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:we,isError:ge,isLoading:We}=tn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:Y,isError:X,isLoading:re}=tn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Ae,isError:He,isLoading:xe}=tn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Oe,isError:je,isLoading:Pe}=tn({uri:B||"",refetchInterval:!1,queryKey:[B||"",JSON.stringify(e)],isEnabled:!!B}),{data:Ct,isError:nn,isLoading:Rt}=tn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:Lt,isError:jt,isLoading:bt}=tn({uri:J||"",refetchInterval:!1,queryKey:[J||"",JSON.stringify(e)],isEnabled:!!J}),{data:Te,isError:et,isLoading:gt}=tn({uri:fe||"",refetchInterval:!1,queryKey:[fe||"",JSON.stringify(e)],isEnabled:!!fe}),{minValue:vt,maxValue:ve}=gv({minMaxAndStep:w,minValueObj:le,minSubstractFirstValueObj:Se,minSubstractSecondValueObj:De,minAddFirstValueObj:we,minAddSecondValueObj:Y,maxValueObj:Ae,maxSubstractFirstValueObj:Oe,maxSubstractSecondValueObj:Ct,maxAddFirstValueObj:Lt,maxAddSecondValueObj:Te,logic:h.logic}),It=l?h.edit.step:h.add.step;return w.min.type==="resourceValue"&&be||w.min.type==="substractResourceValues"&&(Fe||Ye)||w.min.type==="addResourceValues"&&(We||re)||w.max.type==="resourceValue"&&xe||w.max.type==="substractResourceValues"&&(Pe||Rt)||w.max.type==="addResourceValues"&&(bt||gt)?x.jsx("div",{children:"Loading"}):w.min.type==="resourceValue"&&de||w.min.type==="substractResourceValues"&&(pe||_e)||w.min.type==="addResourceValues"&&(ge||X)||w.max.type==="resourceValue"&&He||w.max.type==="substractResourceValues"&&(je||nn)||w.max.type==="addResourceValues"&&(jt||et)?x.jsx("div",{children:"Error"}):x.jsx(yv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,min:vt,max:ve,step:It,persistedControls:f,onRemoveByMinus:g})},bv=({name:e,namespaceData:t,isAdditionalProperties:n,removeField:i})=>{const o=nr();return t?x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsxs(Tr,{$designNewLayout:o,children:["namespace",x.jsx(V.Typography.Text,{type:"danger",children:"*"})]}),x.jsx(V.Flex,{gap:4,children:n&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>i({path:e}),children:x.jsx(sn,{})})})]}),x.jsx(kr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:o?{icons:Vr}:!0,children:x.jsx(V.Select,{placeholder:"Select namespace",options:t.selectValues,filterOption:t.filterSelectOptions,allowClear:!0,disabled:t.disabled,showSearch:!0})})]}):null},wv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,onRemoveByMinus:d})=>{const g=nr(),v=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,C=x.jsxs(x.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:g,children:u?x.jsx(V.Tooltip,{title:u,children:C}):C}),x.jsxs(V.Flex,{gap:4,children:[l&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:x.jsx(sn,{})}),d&&x.jsx(V.Button,{size:"small",type:"text",onClick:d,children:x.jsx(sn,{})}),x.jsx(vi,{formName:i||e,persistedControls:h,type:"str"})]})]}),x.jsx(kr,{name:n||v,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:g?{icons:Vr}:!0,children:x.jsx(V.Input,{placeholder:Tt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},vv=Ke.div`
434
+ `,pv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:d,urlParams:g,onRemoveByMinus:v})=>{const C=nr(),S=nv(),E=iv(),w=sv(),{clusterName:T,namespace:j,syntheticProject:R,entryName:_}=g,O=V.Form.useFormInstance(),F=V.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,O),B=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,W=V.Form.useWatch(d.relatedValuePath,O),J=d.relatedValuePath?W:void 0,fe=d.relatedValuePath?O.isFieldTouched(d.relatedValuePath):"~",le=Q.useRef(!1),de=Q.useRef("unset"),be=Q.useRef(!1);Q.useEffect(()=>{d.relatedValuePath&&fe&&w(re=>({...re,[d.relatedValuePath?.join(".")||"your doing it wrong"]:!0}))},[d.relatedValuePath,fe,w]),Q.useEffect(()=>{d.relatedValuePath&&E[d.relatedValuePath.join(".")]&&J&&!be.current&&(de.current=J,be.current=!0,O.setFieldValue(n||B,void 0),S?.())},[d.relatedValuePath,fe,E,J,O,n,B,S]),Q.useEffect(()=>{!d.relatedValuePath||de.current==="unset"||((!J||de.current!=="unset"&&de.current!==J)&&!le.current?(O.setFieldValue(n||B,void 0),S?.(),le.current=!0,de.current=J):J&&le.current&&(le.current=!1))},[d.relatedValuePath,O,n,B,J,S,E]);const Se=At({template:d.valueUri,replaceValues:{clusterName:T,namespace:j,syntheticProject:R,relatedFieldValue:J,entryName:_}}),{data:pe,isError:De,isLoading:Re}=nn({uri:Se,refetchInterval:!1,queryKey:[Se||"",JSON.stringify(e)],isEnabled:!!Se&&(!d.relatedValuePath||d.relatedValuePath&&!!J)});if(Re&&(!d.relatedValuePath||d.relatedValuePath&&J))return x.jsx(pp,{$height:64,children:"Loading"});if(De&&(!d.relatedValuePath||d.relatedValuePath&&J))return x.jsx(pp,{$height:64,children:"Error"});const Te=!De&&!Re&&pe?Mt.get(pe,["items"]):[],Xe=d.criteria?Te.filter(re=>{const _e=Mt.get(re,d.criteria?.keysToValue||[]);return d.criteria?.type==="equals"?_e===d.criteria?.value:_e!==d.criteria?.value}):Te,ve=d.criteria?.keepPrefilled!==!1?Te.find(re=>Mt.get(re,d.keysToValue)===F):void 0,ge=ve?[ve,...Xe]:Xe,Y=(Array.isArray(ge)?ge.map(re=>({value:Mt.get(re,d.keysToValue),label:d.keysToLabel?Mt.get(re,d.keysToLabel):Mt.get(re,d.keysToValue)})).map(({value:re,label:_e})=>({label:typeof _e=="string"?_e:JSON.stringify(_e),value:typeof re=="string"?re:JSON.stringify(re)})):[]).reduce((re,_e)=>(re.some(xe=>xe.value===_e.value)||re.push(_e),re),[]),X=x.jsxs(x.Fragment,{children:[It(e),o?.includes(It(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:C,children:u?x.jsx(V.Tooltip,{title:u,children:X}):X}),x.jsxs(V.Flex,{gap:4,children:[l&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:x.jsx(on,{})}),v&&x.jsx(V.Button,{size:"small",type:"text",onClick:v,children:x.jsx(on,{})}),x.jsx(vi,{formName:i||e,persistedControls:h,type:"arr"})]})]}),x.jsx(kr,{name:n||B,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:Vr}:!0,children:x.jsx(V.Select,{mode:d.mode,placeholder:"Select",options:Y,filterOption:tc,disabled:d.relatedValuePath&&!W,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},yr=({valueObj:e,keysToValue:t,logic:n})=>{const i=Mt.get(e,t);return n==="cpuLike"?nc(i):rc(i)},gp=({value:e})=>Number(e.toFixed(1)),yp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},mp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},gv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:h,maxAddSecondValueObj:d,logic:g})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=yr({valueObj:t,keysToValue:e.min.keysToValue,logic:g});v=gp({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=yr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:g}),E=yr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=yp({valueFirst:S,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=yr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:g}),E=yr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=mp({valueFirst:S,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=yr({valueObj:u,keysToValue:e.max.keysToValue,logic:g});C=gp({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=yr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:g}),E=yr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=yp({valueFirst:S,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof h=="object"&&h!==null&&typeof d=="object"&&d!==null){const S=yr({valueObj:h,keysToValue:e.max.firstValuesKeysToValue,logic:g}),E=yr({valueObj:d,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=mp({valueFirst:S,valueSecond:E})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},yv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,persistedControls:u,description:l,onRemoveByMinus:f,initialValue:h,max:d,min:g,step:v=1,...C})=>{const S=nr(),[E,w]=Q.useState(h||g);Q.useEffect(()=>{(Number.isNaN(E)||E<g)&&w(g),E>d&&w(d),w(E)},[E,g,d]);const T=x.jsxs(x.Fragment,{children:[It(e),o?.includes(It(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:S,children:l?x.jsx(V.Tooltip,{title:l,children:T}):T}),x.jsxs(V.Flex,{gap:4,children:[f&&x.jsx(V.Button,{size:"small",type:"text",onClick:f,children:x.jsx(on,{})}),x.jsx(vi,{formName:i||e,persistedControls:u,type:"number"})]})]}),x.jsxs(V.Row,{children:[x.jsxs(V.Col,{span:12,children:[x.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:x.jsx(V.Slider,{min:g,max:d,step:v,...C})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),x.jsx(V.Typography.Text,{children:x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx("span",{children:g}),x.jsx("span",{children:d})]})})]}),x.jsx(V.Col,{span:4,children:x.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:x.jsx(V.InputNumber,{min:g,max:d,step:v,value:E,disabled:C.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},mv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:h,urlParams:d,onRemoveByMinus:g})=>{const{clusterName:v,namespace:C,syntheticProject:S,entryName:E}=d,w=l?h.edit:h.add,T=w.min.type==="resourceValue"?At({template:w.min.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,j=w.min.type==="substractResourceValues"?At({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,R=w.min.type==="substractResourceValues"?At({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,_=w.min.type==="addResourceValues"?At({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,O=w.min.type==="addResourceValues"?At({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,F=w.max.type==="resourceValue"?At({template:w.max.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,B=w.max.type==="substractResourceValues"?At({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,W=w.max.type==="substractResourceValues"?At({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,J=w.max.type==="addResourceValues"?At({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,fe=w.max.type==="addResourceValues"?At({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:E}}):void 0,{data:le,isError:de,isLoading:be}=nn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:Se,isError:pe,isLoading:De}=nn({uri:j||"",refetchInterval:!1,queryKey:[j||"",JSON.stringify(e)],isEnabled:!!j}),{data:Re,isError:Te,isLoading:Xe}=nn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:ve,isError:ge,isLoading:Ke}=nn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:Y,isError:X,isLoading:re}=nn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:_e,isError:ze,isLoading:xe}=nn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Fe,isError:Be,isLoading:Le}=nn({uri:B||"",refetchInterval:!1,queryKey:[B||"",JSON.stringify(e)],isEnabled:!!B}),{data:_t,isError:rn,isLoading:Pt}=nn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:Rt,isError:Lt,isLoading:wt}=nn({uri:J||"",refetchInterval:!1,queryKey:[J||"",JSON.stringify(e)],isEnabled:!!J}),{data:kn,isError:Ae,isLoading:Ue}=nn({uri:fe||"",refetchInterval:!1,queryKey:[fe||"",JSON.stringify(e)],isEnabled:!!fe}),{minValue:Qe,maxValue:we}=gv({minMaxAndStep:w,minValueObj:le,minSubstractFirstValueObj:Se,minSubstractSecondValueObj:Re,minAddFirstValueObj:ve,minAddSecondValueObj:Y,maxValueObj:_e,maxSubstractFirstValueObj:Fe,maxSubstractSecondValueObj:_t,maxAddFirstValueObj:Rt,maxAddSecondValueObj:kn,logic:h.logic}),pt=l?h.edit.step:h.add.step;return w.min.type==="resourceValue"&&be||w.min.type==="substractResourceValues"&&(De||Xe)||w.min.type==="addResourceValues"&&(Ke||re)||w.max.type==="resourceValue"&&xe||w.max.type==="substractResourceValues"&&(Le||Pt)||w.max.type==="addResourceValues"&&(wt||Ue)?x.jsx("div",{children:"Loading"}):w.min.type==="resourceValue"&&de||w.min.type==="substractResourceValues"&&(pe||Te)||w.min.type==="addResourceValues"&&(ge||X)||w.max.type==="resourceValue"&&ze||w.max.type==="substractResourceValues"&&(Be||rn)||w.max.type==="addResourceValues"&&(Lt||Ae)?x.jsx("div",{children:"Error"}):x.jsx(yv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,min:Qe,max:we,step:pt,persistedControls:f,onRemoveByMinus:g})},bv=({name:e,namespaceData:t,isAdditionalProperties:n,removeField:i})=>{const o=nr();return t?x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsxs(Tr,{$designNewLayout:o,children:["namespace",x.jsx(V.Typography.Text,{type:"danger",children:"*"})]}),x.jsx(V.Flex,{gap:4,children:n&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>i({path:e}),children:x.jsx(on,{})})})]}),x.jsx(kr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:o?{icons:Vr}:!0,children:x.jsx(V.Select,{placeholder:"Select namespace",options:t.selectValues,filterOption:t.filterSelectOptions,allowClear:!0,disabled:t.disabled,showSearch:!0})})]}):null},wv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,onRemoveByMinus:d})=>{const g=nr(),v=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,C=x.jsxs(x.Fragment,{children:[It(e),o?.includes(It(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:g,children:u?x.jsx(V.Tooltip,{title:u,children:C}):C}),x.jsxs(V.Flex,{gap:4,children:[l&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:x.jsx(on,{})}),d&&x.jsx(V.Button,{size:"small",type:"text",onClick:d,children:x.jsx(on,{})}),x.jsx(vi,{formName:i||e,persistedControls:h,type:"str"})]})]}),x.jsx(kr,{name:n||v,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:g?{icons:Vr}:!0,children:x.jsx(V.Input,{placeholder:It(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},vv=He.div`
435
435
  display: flex;
436
- `,xv=Ke.div`
436
+ `,xv=He.div`
437
437
  margin-left: 4px;
438
438
  cursor: pointer;
439
439
  padding-top: 11px;
440
- `,bp={SwitchAndCrossContainer:vv,CrossContainer:xv},Ev=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>{const f=nr(),h=x.jsx(x.Fragment,{children:Tt(e)});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:f,children:i?x.jsx(V.Tooltip,{title:i,children:h}):h}),x.jsxs(V.Flex,{gap:4,children:[a&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>u({path:e}),children:x.jsx(sn,{})}),l&&x.jsx(V.Button,{size:"small",type:"text",onClick:l,children:x.jsx(sn,{})})]})]}),x.jsxs(bp.SwitchAndCrossContainer,{children:[x.jsx(kr,{name:n||e,children:x.jsx(V.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),x.jsx(bp.CrossContainer,{onClick:()=>{o&&o(e)},children:x.jsx(Ch,{})})]})]})},Sv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:d,onRemoveByMinus:g})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,S=x.jsxs(x.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:v,children:u?x.jsx(V.Tooltip,{title:u,children:S}):S}),x.jsxs(V.Flex,{gap:4,children:[l&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:x.jsx(sn,{})}),g&&x.jsx(V.Button,{size:"small",type:"text",onClick:g,children:x.jsx(sn,{})}),x.jsx(vi,{formName:i||e,persistedControls:d,type:"str"})]})]}),x.jsx(kr,{name:n||C,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:x.jsx(V.Select,{options:h.map(E=>({value:E,label:E})),placeholder:Tt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},Av=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g})=>{const v=nr(),C=x.jsxs(x.Fragment,{children:[Tt(t),a?.includes(Tt(t))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:t,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:v,children:l?x.jsx(V.Tooltip,{title:l,children:C}):C}),x.jsxs(V.Flex,{gap:4,children:[f&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>h({path:t}),children:x.jsx(sn,{})}),g&&x.jsx(V.Button,{size:"small",type:"text",onClick:g,children:x.jsx(sn,{})}),x.jsx(vi,{formName:o||t,persistedControls:d,type:"number"})]})]}),x.jsx(kr,{name:i||t,rules:[{required:u===!1&&a?.includes(Tt(t))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:x.jsx(V.InputNumber,{placeholder:Tt(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},wp=({name:e,persistName:t,selfRequired:n,hiddenFormName:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:h,collapseFormName:d,data:g,inputProps:v,onRemoveByMinus:C})=>{const S=nr(),[E,w]=Z.useState(),T=()=>{if(E&&E.length>0){const R=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(h)]:[e,String(h)],name:E,type:R.type,items:R.items,nestedProperties:R.properties||{},required:R.required}),w(void 0)}},j=x.jsxs(x.Fragment,{children:[Tt(h),n&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsx(gr,{name:e,secondName:i,children:x.jsxs(cv,{title:x.jsx(Tr,{$designNewLayout:S,children:o?x.jsx(V.Tooltip,{title:o,children:j}):j}),formName:d,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:x.jsx(vi,{formName:t||e,persistedControls:f,type:"obj"}),children:[g,v&&x.jsx(V.Input,{placeholder:"Enter field name",allowClear:!0,value:E,onChange:R=>w(R.target.value),suffix:x.jsx(V.Button,{size:"small",type:"text",onClick:T,children:x.jsx(Xu,{})})})]},Array.isArray(e)?e.join("-"):e)})},Cv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),h=x.jsxs(x.Fragment,{children:[Tt(e),n?.includes(Tt(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:f,children:i?x.jsx(V.Tooltip,{title:i,children:h}):h}),x.jsxs(V.Flex,{gap:4,children:[o&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>a({path:e}),children:x.jsx(sn,{})}),l&&x.jsx(V.Button,{size:"small",type:"text",onClick:l,children:x.jsx(sn,{})}),x.jsx(vi,{formName:t||e,persistedControls:u,type:"arr"})]})]})},_v=Ke.div`
440
+ `,bp={SwitchAndCrossContainer:vv,CrossContainer:xv},Ev=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>{const f=nr(),h=x.jsx(x.Fragment,{children:It(e)});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:f,children:i?x.jsx(V.Tooltip,{title:i,children:h}):h}),x.jsxs(V.Flex,{gap:4,children:[a&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>u({path:e}),children:x.jsx(on,{})}),l&&x.jsx(V.Button,{size:"small",type:"text",onClick:l,children:x.jsx(on,{})})]})]}),x.jsxs(bp.SwitchAndCrossContainer,{children:[x.jsx(kr,{name:n||e,children:x.jsx(V.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),x.jsx(bp.CrossContainer,{onClick:()=>{o&&o(e)},children:x.jsx(Ch,{})})]})]})},Sv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:d,onRemoveByMinus:g})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,S=x.jsxs(x.Fragment,{children:[It(e),o?.includes(It(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:e,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:v,children:u?x.jsx(V.Tooltip,{title:u,children:S}):S}),x.jsxs(V.Flex,{gap:4,children:[l&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:x.jsx(on,{})}),g&&x.jsx(V.Button,{size:"small",type:"text",onClick:g,children:x.jsx(on,{})}),x.jsx(vi,{formName:i||e,persistedControls:d,type:"str"})]})]}),x.jsx(kr,{name:n||C,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:x.jsx(V.Select,{options:h.map(E=>({value:E,label:E})),placeholder:It(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},Av=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g})=>{const v=nr(),C=x.jsxs(x.Fragment,{children:[It(t),a?.includes(It(t))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(gr,{name:t,children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:v,children:l?x.jsx(V.Tooltip,{title:l,children:C}):C}),x.jsxs(V.Flex,{gap:4,children:[f&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>h({path:t}),children:x.jsx(on,{})}),g&&x.jsx(V.Button,{size:"small",type:"text",onClick:g,children:x.jsx(on,{})}),x.jsx(vi,{formName:o||t,persistedControls:d,type:"number"})]})]}),x.jsx(kr,{name:i||t,rules:[{required:u===!1&&a?.includes(It(t))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:x.jsx(V.InputNumber,{placeholder:It(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},wp=({name:e,persistName:t,selfRequired:n,hiddenFormName:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:h,collapseFormName:d,data:g,inputProps:v,onRemoveByMinus:C})=>{const S=nr(),[E,w]=Q.useState(),T=()=>{if(E&&E.length>0){const R=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(h)]:[e,String(h)],name:E,type:R.type,items:R.items,nestedProperties:R.properties||{},required:R.required}),w(void 0)}},j=x.jsxs(x.Fragment,{children:[It(h),n&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsx(gr,{name:e,secondName:i,children:x.jsxs(cv,{title:x.jsx(Tr,{$designNewLayout:S,children:o?x.jsx(V.Tooltip,{title:o,children:j}):j}),formName:d,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:x.jsx(vi,{formName:t||e,persistedControls:f,type:"obj"}),children:[g,v&&x.jsx(V.Input,{placeholder:"Enter field name",allowClear:!0,value:E,onChange:R=>w(R.target.value),suffix:x.jsx(V.Button,{size:"small",type:"text",onClick:T,children:x.jsx(Xu,{})})})]},Array.isArray(e)?e.join("-"):e)})},Cv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),h=x.jsxs(x.Fragment,{children:[It(e),n?.includes(It(e))&&x.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(Tr,{$designNewLayout:f,children:i?x.jsx(V.Tooltip,{title:i,children:h}):h}),x.jsxs(V.Flex,{gap:4,children:[o&&x.jsx(V.Button,{size:"small",type:"text",onClick:()=>a({path:e}),children:x.jsx(on,{})}),l&&x.jsx(V.Button,{size:"small",type:"text",onClick:l,children:x.jsx(on,{})}),x.jsx(vi,{formName:t||e,persistedControls:u,type:"arr"})]})]})},_v=He.div`
441
441
  display: grid;
442
442
  grid-template-columns: repeat(2, 1fr);
443
443
  gap: ${({$designNewLayout:e})=>e?"36px":"8px"};
444
444
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
445
- `,kv=Ke.div`
445
+ `,kv=He.div`
446
446
  overflow-x: auto;
447
447
  scrollbar-width: thin;
448
- `,Tv=Ke(V.Form.List)`
448
+ `,Tv=He(V.Form.List)`
449
449
  margin-bottom: 8px;
450
- `,Iv=Ke.div`
450
+ `,Iv=He.div`
451
451
  margin-top: 10px;
452
452
  display: flex;
453
453
  align-items: center;
454
454
  background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
455
455
  border-radius: 8px;
456
456
  padding: 4px;
457
- `,Ov=Ke.div`
457
+ `,Ov=He.div`
458
458
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
459
- `,eo={ResetedFormList:Tv,Container:_v,OverflowContainer:kv,ControlsRowContainer:Iv,DebugContainer:Ov},vp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,namespaceData:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&l?x.jsx(bv,{name:e,namespaceData:l,isAdditionalProperties:f,removeField:h}):x.jsx(wv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g}),Fv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:d,onRemoveByMinus:g})=>x.jsx(Sv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:d,onRemoveByMinus:g}),xp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g})=>x.jsx(Av,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g}),Ep=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:h,urlParams:d,onRemoveByMinus:g})=>x.jsx(mv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,customProps:h,persistedControls:f,urlParams:d,onRemoveByMinus:g}),Sp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:d,urlParams:g,onRemoveByMinus:v})=>x.jsx(pv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:d,urlParams:g,onRemoveByMinus:v}),Ap=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>x.jsx(Ev,{name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l}),Cp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,makeValueUndefined:h,addField:d,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w,onRemoveByMinus:T})=>e.type==="array"?x.jsxs(gr,{name:t,children:[x.jsx(Cv,{name:t,persistName:a,required:u,description:f,isAdditionalProperties:g,removeField:v,persistedControls:E,onRemoveByMinus:T}),x.jsx(eo.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Tt(t))?[{validator:async(j,R)=>{if(!R||R.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(j,{add:R,remove:_},{errors:O})=>x.jsxs(x.Fragment,{children:[j.map(F=>{const B=e.items?.type,W=e.items?.description,J=e.items;return x.jsxs(hv,{children:[B!=="object"&&x.jsxs(x.Fragment,{children:[B==="string"&&vp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:E,onRemoveByMinus:()=>_(F.name)}),(B==="number"||B==="integer")&&xp({isNumber:B==="number",name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:E,onRemoveByMinus:()=>_(F.name)}),(B==="rangeInputCpu"||B==="rangeInputMemory")&&Ep({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,isEdit:C,persistedControls:E,customProps:e.items.customProps,urlParams:w,onRemoveByMinus:()=>_(F.name)}),B==="listInput"&&Sp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:E,customProps:e.items.customProps,urlParams:w,onRemoveByMinus:()=>_(F.name)}),B==="boolean"&&Ap({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],description:W,makeValueUndefined:h,removeField:v,onRemoveByMinus:()=>_(F.name)}),B==="array"&&Cp({schema:e.items,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,makeValueUndefined:h,addField:d,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w,onRemoveByMinus:()=>_(F.name)})]}),B==="object"&&J?.properties&&_p({properties:J.properties,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],required:J.required,forceNonRequired:l,description:W,makeValueUndefined:h,addField:d,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w,onRemoveByMinus:()=>_(F.name)})]},F.key)}),x.jsxs(kr,{children:[x.jsx(V.Button,{type:"text",size:"small",onClick:()=>R(),children:x.jsx(Xu,{})}),x.jsx(V.Form.ErrorList,{errors:O})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,xa=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,namespaceData:h,makeValueUndefined:d,addField:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w})=>x.jsx(gr,{name:t,children:Object.keys(e).map(T=>{if(e[T].type==="string"&&e[T].enum)return Fv({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:E,options:e[T].enum||[]});if(e[T].type==="string"&&!e[T].enum||Object.keys(e[T]).includes("x-kubernetes-int-or-string"))return vp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,namespaceData:h,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:E});if(e[T].type==="number"||e[T].type==="integer")return xp({isNumber:e[T].type==="number",name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:E});if(e[T].type==="rangeInputCpu"||e[T].type==="rangeInputMemory")return Ep({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isEdit:C,customProps:e[T].customProps,persistedControls:E,urlParams:w});if(e[T].type==="listInput")return Sp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,customProps:e[T].customProps,removeField:v,persistedControls:E,urlParams:w});if(e[T].type==="boolean")return Ap({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,description:e[T].description,makeValueUndefined:d,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v});if(e[T].type==="array")return Cp({schema:e[T],name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,makeValueUndefined:d,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w});if(e[T].additionalProperties){const j=e[T].properties?xa({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:e[T].required,forceNonRequired:l,description:e[T].description,namespaceData:h,makeValueUndefined:d,addField:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w}):void 0;return x.jsx(wp,{name:t,persistName:a,hiddenFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],description:f,removeField:v,expandedControls:S,persistedControls:E,collapseTitle:T,collapseFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],data:j,inputProps:{addField:g,additionalProperties:e[T]?.additionalProperties}},Array.isArray(t)?[...t,String(T)].join("-"):[t,String(T)].join("-"))}return e[T].type==="object"&&e[T].properties?_p({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,selfRequired:u?.includes(T),required:e[T].required,forceNonRequired:l||!u?.includes(T),description:e[T].description,namespaceData:h,makeValueUndefined:d,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w}):e[T].type==="object"&&e[T]["x-kubernetes-preserve-unknown-fields"]?x.jsx(V.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(T)):null})}),_p=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,description:h,namespaceData:d,makeValueUndefined:g,addField:v,isAdditionalProperties:C,removeField:S,isEdit:E,expandedControls:w,persistedControls:T,urlParams:j,onRemoveByMinus:R})=>{const _=xa({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,description:h,namespaceData:d,makeValueUndefined:g,addField:v,removeField:S,isEdit:E,expandedControls:w,persistedControls:T,urlParams:j});return x.jsx(wp,{name:t,persistName:a,selfRequired:u,description:h,isAdditionalProperties:C,removeField:S,expandedControls:w,persistedControls:T,collapseTitle:t,collapseFormName:o||t,data:_,onRemoveByMinus:R})},kp=({error:e,expandedKeys:t})=>{const i=(e.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),o=Array.from({length:i.length},(f,h)=>i.slice(0,h+1)),a=[...t,...o],u=new Set;return a.filter(f=>{const h=Array.isArray(f)?JSON.stringify(f):f;return u.has(h)?!1:(u.add(h),!0)})},Bv=({error:e,expandedKeys:t})=>{const n=e.errorFields.reduce((h,d)=>[...h,d.name],[]),o=n.filter(h=>Array.isArray(h)).flatMap(h=>Array.from({length:h.length},(d,g)=>h.slice(0,g+1))),a=n.filter(h=>!Array.isArray(h)),u=[...t,...a,...o],l=new Set;return u.filter(h=>{const d=Array.isArray(h)?JSON.stringify(h):h;return l.has(d)?!1:(l.add(d),!0)})},Dv=Z.lazy(()=>Promise.resolve().then(()=>Lb)),Tp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefills:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:h,prefillValuesSchema:d,prefillValueNamespaceOnly:g,isNameSpaced:v,isCreate:C,type:S,apiGroupApiVersion:E,kindName:w,typeName:T,backlink:j,designNewLayout:R,designNewLayoutHeight:_})=>{const{token:O}=V.theme.useToken(),F=vr.useNavigate(),[B]=V.Form.useForm(),W=V.Form.useWatch(["metadata","namespace"],B),[J,fe]=Z.useState(a),[le,de]=Z.useState(),be=k2(de,500),[Se,pe]=Z.useState(!1),[Fe,De]=Z.useState(),[_e,Ye]=Z.useState(!1),[we,ge]=Z.useState(f||[]),[We,Y]=Z.useState(h||[]),X=Z.useRef(null),re=Wr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),Ae=Wr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),He=()=>{if(X.current){const{scrollHeight:Te,clientHeight:et}=X.current;X.current.scrollTo({top:Te-et,behavior:"smooth"})}B.validateFields().then(()=>{pe(!0),De(void 0);const Te=B.getFieldValue(["metadata","name"]),et=B.getFieldValue(["metadata","namespace"]),vt={values:B.getFieldsValue(),persistedKeys:We,properties:J};$e.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",vt).then(({data:ve})=>{const It=ve,an=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${E}${v?`/namespaces/${et}`:""}/${T}/${C?"":Te}`;C?Jo({endpoint:an,body:It}).then(Xe=>{console.log(Xe),j&&F(j)}).catch(Xe=>{if(console.log("Form submit error",Xe),pe(!1),X.current){const{scrollHeight:Bt,clientHeight:ke}=X.current;X.current.scrollTo({top:Bt-ke,behavior:"smooth"})}if(Go(Xe)&&Xe.response?.data.message.includes("Required value")){const Bt=kp({error:Xe,expandedKeys:we});ge([...Bt])}De(Xe)}):Yo({endpoint:an,body:It}).then(Xe=>{console.log(Xe),j&&F(j)}).catch(Xe=>{if(console.log("Form submit error",Xe),pe(!1),X.current){const{scrollHeight:Bt,clientHeight:ke}=X.current;X.current.scrollTo({top:Bt-ke,behavior:"smooth"})}if(Go(Xe)&&Xe.response?.data.message.includes("Required value")){const Bt=kp({error:Xe,expandedKeys:we});ge([...Bt])}De(Xe)})}).catch(ve=>{if(console.log("BFF Transform Error",ve),pe(!1),X.current){const{scrollHeight:It,clientHeight:an}=X.current;X.current.scrollTo({top:It-an,behavior:"smooth"})}De(ve)})}).catch(Te=>{console.log("Validating error",Te);const et=Bv({error:Te,expandedKeys:we});ge([...et])})},xe=Z.useCallback(()=>{const et={values:B.getFieldsValue(),persistedKeys:We,properties:J};$e.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",et).then(({data:gt})=>be(gt))},[B,be,J,We]),Oe=Te=>{const et={values:Te,properties:J};$e.post("/openapi-bff/forms/formSync/getFormValuesByYaml",et).then(({data:gt})=>{gt&&B.setFieldsValue(gt)})};if(Z.useEffect(()=>{if(o&&o.spec.values.forEach(({path:Te,value:et})=>{B.setFieldValue(Te,et)}),g&&B.setFieldValue(["metadata","namespace"],g),C&&B.setFieldsValue({apiVersion:E==="api/v1"?"v1":E,kind:w}),d){const Te=Xh(d,J);B.setFieldsValue(Te)}xe()},[d,B,o,S,E,T,xe,J,g,C,w]),Z.useEffect(()=>{let Te=[];o&&(Te=o.spec.values.flatMap(({path:ve})=>Qh(ve))),d&&typeof d=="object"&&d!==null&&(Te=[...Te,...sc(d)]);const et=[...we,...Te],gt=new Set,vt=et.filter(ve=>{const It=Array.isArray(ve)?JSON.stringify(ve):ve;return gt.has(It)?!1:(gt.add(It),!0)});ge([...vt])},[E,o,d,S,T]),!J)return null;const je=v?{filterSelectOptions:tc,selectValues:v.map(Te=>({label:Te,value:Te})),disabled:!!g}:void 0,Pe=Te=>{B.setFieldValue(Te,void 0),xe()},Ct=({path:Te,name:et,type:gt,items:vt,nestedProperties:ve,required:It})=>{const Xe=(Array.isArray(Te)?Te:[Te]).reduceRight((Ne,Wt)=>({[Wt]:{properties:Ne}}),{[et]:{type:gt,items:vt,properties:ve,required:It,isAdditionalProperties:!0}}),Bt=ln.cloneDeep(J),ke=ln.merge(Bt,Xe);console.log("newObject",Xe),console.log("newProperties",ke),fe(ke)},nn=({path:Te})=>{const gt=(Array.isArray(Te)?Te:[Te]).flatMap(ve=>[ve,"properties"]).slice(0,-1),vt=ln.cloneDeep(J);ln.unset(vt,gt),fe(vt)},Rt=Te=>{ge([...we,Te])},Lt=Te=>{ge([...we.filter(et=>JSON.stringify(et)!==JSON.stringify(Te))])},jt=(Te,et)=>{et&&B.getFieldValue(Te)===void 0&&(et==="str"&&B.setFieldValue(Te,""),et==="number"&&B.setFieldValue(Te,0),et==="arr"&&B.setFieldValue(Te,[]),et==="obj"&&B.setFieldValue(Te,{})),Y([...We,Te])},bt=Te=>{console.log(Te),Y([...We.filter(et=>JSON.stringify(et)!==JSON.stringify(Te))])};return x.jsxs(x.Fragment,{children:[x.jsxs(eo.Container,{$designNewLayout:R,$designNewLayoutHeight:_,children:[x.jsx(eo.OverflowContainer,{ref:X,children:x.jsxs(V.Form,{form:B,onValuesChange:xe,children:[x.jsx(Qw,{value:R,children:x.jsx(tv,{value:xe,children:x.jsx(rv,{value:{},children:x.jsx(Zw,{value:l,children:xa({properties:J,name:[],required:u,namespaceData:je,makeValueUndefined:Pe,addField:Ct,removeField:nn,isEdit:!C,expandedControls:{onExpandOpen:Rt,onExpandClose:Lt,expandedKeys:we},persistedControls:{onPersistMark:jt,onPersistUnmark:bt,persistedKeys:We},urlParams:n})})})})}),!R&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),C&&re.data?.status.allowed===!1&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&Ae.data?.status.allowed===!1&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Fe&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{message:`An error has occurred: ${Fe?.response?.data?.message} `,type:"error"})]})]})}),x.jsx("div",{children:x.jsx(Gw,{theme:t,currentValues:le||{},onChange:Oe})})]}),x.jsx(eo.ControlsRowContainer,{$bgColor:O.colorPrimaryBg,$designNewLayout:R,children:x.jsxs(V.Flex,{gap:R?10:16,align:"center",children:[x.jsx(V.Button,{type:"primary",onClick:He,loading:Se,children:"Submit"}),j&&x.jsx(V.Button,{onClick:()=>F(j),children:"Cancel"}),x.jsx(V.Button,{onClick:()=>Ye(!0),icon:x.jsx(vn.BugOutlined,{})}),R&&x.jsx("div",{children:x.jsx(V.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),_e&&x.jsx(V.Modal,{open:_e,onOk:()=>Ye(!1),onCancel:()=>Ye(!1),onClose:()=>Ye(!1),title:"Debug for properties",width:"90vw",children:x.jsx(eo.DebugContainer,{$designNewLayoutHeight:_,children:x.jsx(Z.Suspense,{fallback:x.jsx("div",{children:"Loading..."}),children:x.jsx(Dv,{defaultLanguage:"json",width:"100%",height:_||"75vh",theme:"vs-dark",value:JSON.stringify(J,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},Pv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,data:o,customizationId:a,isCreate:u,backlink:l,modeData:f,designNewLayout:h,designNewLayoutHeight:d})=>{const[g,v]=Z.useState(),[C,S]=Z.useState(!1),[E,w]=Z.useState(!1),[T,j]=Z.useState(!1),R=Z.useCallback(()=>{f&&(f.onChange("Manual"),f.onDisabled())},[f]);return Z.useEffect(()=>{S(!0);const _={data:o,clusterName:t,customizationId:a};$e.post("/openapi-bff/forms/formPrepare/prepareFormProps",_).then(({data:O})=>{O.isNamespaced&&w(!0),O.result==="error"?(j(O.error),console.log(O.error),R()):v({properties:O.properties,required:O.required||[],hiddenPaths:O.hiddenPaths,expandedPaths:O.expandedPaths||[],persistedPaths:O.persistedPaths||[],kindName:O.kindName||"",formPrefills:O.formPrefills,namespacesData:O.namespacesData})}).catch(O=>{j(O.message)}).finally(()=>{S(!1)})},[t,o,a,R]),C?x.jsx(V.Spin,{}):f?.current==="Manual"?x.jsx(Xw,{theme:e,cluster:t,prefillValuesSchema:o.prefillValuesSchema,isCreate:u,type:o.type,isNameSpaced:E,apiGroupApiVersion:o.type==="builtin"?"api/v1":`${o.apiGroup}/${o.apiVersion}`,typeName:o.typeName,backlink:l,designNewLayout:h,designNewLayoutHeight:d}):!g?.properties&&!T||!g?.properties?null:T?x.jsx(V.Alert,{message:T,type:"error"}):x.jsx(Tp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefills:g.formPrefills,staticProperties:g.properties,required:g.required,hiddenPaths:g.hiddenPaths,expandedPaths:g.expandedPaths,persistedPaths:g.persistedPaths,prefillValuesSchema:o.prefillValuesSchema,prefillValueNamespaceOnly:o.prefillValueNamespaceOnly,isCreate:u,type:o.type,isNameSpaced:E?g.namespacesData:!1,apiGroupApiVersion:o.type==="builtin"?"api/v1":`${o.apiGroup}/${o.apiVersion}`,kindName:g.kindName,typeName:o.typeName,backlink:l,designNewLayout:h,designNewLayoutHeight:d},JSON.stringify(g.properties)+JSON.stringify(g.required)+JSON.stringify(g.hiddenPaths)+JSON.stringify(o))},Rv={CustomCard:Ke(V.Card)`
459
+ `,eo={ResetedFormList:Tv,Container:_v,OverflowContainer:kv,ControlsRowContainer:Iv,DebugContainer:Ov},vp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,namespaceData:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&l?x.jsx(bv,{name:e,namespaceData:l,isAdditionalProperties:f,removeField:h}):x.jsx(wv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g}),Fv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:d,onRemoveByMinus:g})=>x.jsx(Sv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:d,onRemoveByMinus:g}),xp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g})=>x.jsx(Av,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:d,onRemoveByMinus:g}),Ep=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:h,urlParams:d,onRemoveByMinus:g})=>x.jsx(mv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,customProps:h,persistedControls:f,urlParams:d,onRemoveByMinus:g}),Sp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:d,urlParams:g,onRemoveByMinus:v})=>x.jsx(pv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:d,urlParams:g,onRemoveByMinus:v}),Ap=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>x.jsx(Ev,{name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l}),Cp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,makeValueUndefined:h,addField:d,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w,onRemoveByMinus:T})=>e.type==="array"?x.jsxs(gr,{name:t,children:[x.jsx(Cv,{name:t,persistName:a,required:u,description:f,isAdditionalProperties:g,removeField:v,persistedControls:E,onRemoveByMinus:T}),x.jsx(eo.ResetedFormList,{name:i||t,rules:!l&&u?.includes(It(t))?[{validator:async(j,R)=>{if(!R||R.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(j,{add:R,remove:_},{errors:O})=>x.jsxs(x.Fragment,{children:[j.map(F=>{const B=e.items?.type,W=e.items?.description,J=e.items;return x.jsxs(hv,{children:[B!=="object"&&x.jsxs(x.Fragment,{children:[B==="string"&&vp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:E,onRemoveByMinus:()=>_(F.name)}),(B==="number"||B==="integer")&&xp({isNumber:B==="number",name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:E,onRemoveByMinus:()=>_(F.name)}),(B==="rangeInputCpu"||B==="rangeInputMemory")&&Ep({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,isEdit:C,persistedControls:E,customProps:e.items.customProps,urlParams:w,onRemoveByMinus:()=>_(F.name)}),B==="listInput"&&Sp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:E,customProps:e.items.customProps,urlParams:w,onRemoveByMinus:()=>_(F.name)}),B==="boolean"&&Ap({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],description:W,makeValueUndefined:h,removeField:v,onRemoveByMinus:()=>_(F.name)}),B==="array"&&Cp({schema:e.items,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,makeValueUndefined:h,addField:d,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w,onRemoveByMinus:()=>_(F.name)})]}),B==="object"&&J?.properties&&_p({properties:J.properties,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],required:J.required,forceNonRequired:l,description:W,makeValueUndefined:h,addField:d,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w,onRemoveByMinus:()=>_(F.name)})]},F.key)}),x.jsxs(kr,{children:[x.jsx(V.Button,{type:"text",size:"small",onClick:()=>R(),children:x.jsx(Xu,{})}),x.jsx(V.Form.ErrorList,{errors:O})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,xa=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,namespaceData:h,makeValueUndefined:d,addField:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w})=>x.jsx(gr,{name:t,children:Object.keys(e).map(T=>{if(e[T].type==="string"&&e[T].enum)return Fv({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:E,options:e[T].enum||[]});if(e[T].type==="string"&&!e[T].enum||Object.keys(e[T]).includes("x-kubernetes-int-or-string"))return vp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,namespaceData:h,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:E});if(e[T].type==="number"||e[T].type==="integer")return xp({isNumber:e[T].type==="number",name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:E});if(e[T].type==="rangeInputCpu"||e[T].type==="rangeInputMemory")return Ep({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isEdit:C,customProps:e[T].customProps,persistedControls:E,urlParams:w});if(e[T].type==="listInput")return Sp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,customProps:e[T].customProps,removeField:v,persistedControls:E,urlParams:w});if(e[T].type==="boolean")return Ap({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,description:e[T].description,makeValueUndefined:d,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v});if(e[T].type==="array")return Cp({schema:e[T],name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,makeValueUndefined:d,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w});if(e[T].additionalProperties){const j=e[T].properties?xa({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:e[T].required,forceNonRequired:l,description:e[T].description,namespaceData:h,makeValueUndefined:d,addField:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w}):void 0;return x.jsx(wp,{name:t,persistName:a,hiddenFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],description:f,removeField:v,expandedControls:S,persistedControls:E,collapseTitle:T,collapseFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],data:j,inputProps:{addField:g,additionalProperties:e[T]?.additionalProperties}},Array.isArray(t)?[...t,String(T)].join("-"):[t,String(T)].join("-"))}return e[T].type==="object"&&e[T].properties?_p({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,selfRequired:u?.includes(T),required:e[T].required,forceNonRequired:l||!u?.includes(T),description:e[T].description,namespaceData:h,makeValueUndefined:d,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:S,persistedControls:E,urlParams:w}):e[T].type==="object"&&e[T]["x-kubernetes-preserve-unknown-fields"]?x.jsx(V.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(T)):null})}),_p=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,description:h,namespaceData:d,makeValueUndefined:g,addField:v,isAdditionalProperties:C,removeField:S,isEdit:E,expandedControls:w,persistedControls:T,urlParams:j,onRemoveByMinus:R})=>{const _=xa({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,description:h,namespaceData:d,makeValueUndefined:g,addField:v,removeField:S,isEdit:E,expandedControls:w,persistedControls:T,urlParams:j});return x.jsx(wp,{name:t,persistName:a,selfRequired:u,description:h,isAdditionalProperties:C,removeField:S,expandedControls:w,persistedControls:T,collapseTitle:t,collapseFormName:o||t,data:_,onRemoveByMinus:R})},kp=({error:e,expandedKeys:t})=>{const i=(e.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),o=Array.from({length:i.length},(f,h)=>i.slice(0,h+1)),a=[...t,...o],u=new Set;return a.filter(f=>{const h=Array.isArray(f)?JSON.stringify(f):f;return u.has(h)?!1:(u.add(h),!0)})},Bv=({error:e,expandedKeys:t})=>{const n=e.errorFields.reduce((h,d)=>[...h,d.name],[]),o=n.filter(h=>Array.isArray(h)).flatMap(h=>Array.from({length:h.length},(d,g)=>h.slice(0,g+1))),a=n.filter(h=>!Array.isArray(h)),u=[...t,...a,...o],l=new Set;return u.filter(h=>{const d=Array.isArray(h)?JSON.stringify(h):h;return l.has(d)?!1:(l.add(d),!0)})},Dv=Q.lazy(()=>Promise.resolve().then(()=>Lb)),Tp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefills:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:h,prefillValuesSchema:d,prefillValueNamespaceOnly:g,isNameSpaced:v,isCreate:C,type:S,apiGroupApiVersion:E,kindName:w,typeName:T,backlink:j,designNewLayout:R,designNewLayoutHeight:_})=>{const{token:O}=V.theme.useToken(),F=vr.useNavigate(),[B]=V.Form.useForm(),W=V.Form.useWatch(["metadata","namespace"],B),[J,fe]=Q.useState(a),[le,de]=Q.useState(),be=k2(de,500),[Se,pe]=Q.useState(!1),[De,Re]=Q.useState(),[Te,Xe]=Q.useState(!1),[ve,ge]=Q.useState(f||[]),[Ke,Y]=Q.useState(h||[]),X=Q.useRef(null),re=Wr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),_e=Wr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),ze=()=>{if(X.current){const{scrollHeight:Ae,clientHeight:Ue}=X.current;X.current.scrollTo({top:Ae-Ue,behavior:"smooth"})}B.validateFields().then(()=>{pe(!0),Re(void 0);const Ae=B.getFieldValue(["metadata","name"]),Ue=B.getFieldValue(["metadata","namespace"]),we={values:B.getFieldsValue(),persistedKeys:Ke,properties:J};$e.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",we).then(({data:pt})=>{const Wt=pt,Et=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${E}${v?`/namespaces/${Ue}`:""}/${T}/${C?"":Ae}`;C?Jo({endpoint:Et,body:Wt}).then(ht=>{console.log(ht),j&&F(j)}).catch(ht=>{if(console.log("Form submit error",ht),pe(!1),X.current){const{scrollHeight:Ce,clientHeight:Oe}=X.current;X.current.scrollTo({top:Ce-Oe,behavior:"smooth"})}if(Go(ht)&&ht.response?.data.message.includes("Required value")){const Ce=kp({error:ht,expandedKeys:ve});ge([...Ce])}Re(ht)}):Yo({endpoint:Et,body:Wt}).then(ht=>{console.log(ht),j&&F(j)}).catch(ht=>{if(console.log("Form submit error",ht),pe(!1),X.current){const{scrollHeight:Ce,clientHeight:Oe}=X.current;X.current.scrollTo({top:Ce-Oe,behavior:"smooth"})}if(Go(ht)&&ht.response?.data.message.includes("Required value")){const Ce=kp({error:ht,expandedKeys:ve});ge([...Ce])}Re(ht)})}).catch(pt=>{if(console.log("BFF Transform Error",pt),pe(!1),X.current){const{scrollHeight:Wt,clientHeight:Et}=X.current;X.current.scrollTo({top:Wt-Et,behavior:"smooth"})}Re(pt)})}).catch(Ae=>{console.log("Validating error",Ae);const Ue=Bv({error:Ae,expandedKeys:ve});ge([...Ue])})},xe=Q.useCallback(Ae=>{const Qe={values:Ae||B.getFieldsValue(),persistedKeys:Ke,properties:J};$e.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",Qe).then(({data:we})=>be(we))},[B,be,J,Ke]),Fe=Q.useCallback(Ae=>{const Ue={values:Ae,properties:J};$e.post("/openapi-bff/forms/formSync/getFormValuesByYaml",Ue).then(({data:Qe})=>{Qe&&B.setFieldsValue(Qe)})},[B,J]),Be=Q.useMemo(()=>{const Ae={};if(C&&(Mt.set(Ae,["apiVersion"],E==="api/v1"?"v1":E),Mt.set(Ae,["kind"],w)),o&&o.spec.values.forEach(({path:Qe,value:we})=>{Mt.set(Ae,Qe,we)}),g&&Mt.set(Ae,["metadata","namespace"],g),d){const Qe=Xh(d,J);Object.entries(Qe).forEach(([we,pt])=>{Mt.set(Ae,we.split("."),pt)})}return Object.fromEntries(Object.entries(Ae).sort(([Qe],[we])=>Qe.localeCompare(we)))},[o,g,C,E,w,d,J]);if(Q.useEffect(()=>{Be&&xe(Be)},[xe,Be]),Q.useEffect(()=>{let Ae=[];o&&(Ae=o.spec.values.flatMap(({path:pt})=>Qh(pt))),d&&typeof d=="object"&&d!==null&&(Ae=[...Ae,...sc(d)]);const Ue=[...ve,...Ae],Qe=new Set,we=Ue.filter(pt=>{const Wt=Array.isArray(pt)?JSON.stringify(pt):pt;return Qe.has(Wt)?!1:(Qe.add(Wt),!0)});ge([...we])},[E,o,d,S,T]),!J)return null;const Le=v?{filterSelectOptions:tc,selectValues:v.map(Ae=>({label:Ae,value:Ae})),disabled:!!g}:void 0,_t=Ae=>{B.setFieldValue(Ae,void 0),xe()},rn=({path:Ae,name:Ue,type:Qe,items:we,nestedProperties:pt,required:Wt})=>{const ht=(Array.isArray(Ae)?Ae:[Ae]).reduceRight((Kt,I)=>({[I]:{properties:Kt}}),{[Ue]:{type:Qe,items:we,properties:pt,required:Wt,isAdditionalProperties:!0}}),Ce=Mt.cloneDeep(J),Oe=Mt.merge(Ce,ht);console.log("newObject",ht),console.log("newProperties",Oe),fe(Oe)},Pt=({path:Ae})=>{const Qe=(Array.isArray(Ae)?Ae:[Ae]).flatMap(pt=>[pt,"properties"]).slice(0,-1),we=Mt.cloneDeep(J);Mt.unset(we,Qe),fe(we)},Rt=Ae=>{ge([...ve,Ae])},Lt=Ae=>{ge([...ve.filter(Ue=>JSON.stringify(Ue)!==JSON.stringify(Ae))])},wt=(Ae,Ue)=>{Ue&&B.getFieldValue(Ae)===void 0&&(Ue==="str"&&B.setFieldValue(Ae,""),Ue==="number"&&B.setFieldValue(Ae,0),Ue==="arr"&&B.setFieldValue(Ae,[]),Ue==="obj"&&B.setFieldValue(Ae,{})),Y([...Ke,Ae])},kn=Ae=>{console.log(Ae),Y([...Ke.filter(Ue=>JSON.stringify(Ue)!==JSON.stringify(Ae))])};return x.jsxs(x.Fragment,{children:[x.jsxs(eo.Container,{$designNewLayout:R,$designNewLayoutHeight:_,children:[x.jsx(eo.OverflowContainer,{ref:X,children:x.jsxs(V.Form,{form:B,initialValues:Be,onValuesChange:(Ae,Ue)=>xe(Ue),children:[x.jsx(Qw,{value:R,children:x.jsx(tv,{value:xe,children:x.jsx(rv,{value:{},children:x.jsx(Zw,{value:l,children:xa({properties:J,name:[],required:u,namespaceData:Le,makeValueUndefined:_t,addField:rn,removeField:Pt,isEdit:!C,expandedControls:{onExpandOpen:Rt,onExpandClose:Lt,expandedKeys:ve},persistedControls:{onPersistMark:wt,onPersistUnmark:kn,persistedKeys:Ke},urlParams:n})})})})}),!R&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),C&&re.data?.status.allowed===!1&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&_e.data?.status.allowed===!1&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),De&&x.jsxs(x.Fragment,{children:[x.jsx(Ar,{$space:10,$samespace:!0}),x.jsx(V.Alert,{message:`An error has occurred: ${De?.response?.data?.message} `,type:"error"})]})]})}),x.jsx("div",{children:x.jsx(Gw,{theme:t,currentValues:le||{},onChange:Fe})})]}),x.jsx(eo.ControlsRowContainer,{$bgColor:O.colorPrimaryBg,$designNewLayout:R,children:x.jsxs(V.Flex,{gap:R?10:16,align:"center",children:[x.jsx(V.Button,{type:"primary",onClick:ze,loading:Se,children:"Submit"}),j&&x.jsx(V.Button,{onClick:()=>F(j),children:"Cancel"}),x.jsx(V.Button,{onClick:()=>Xe(!0),icon:x.jsx(wn.BugOutlined,{})}),R&&x.jsx("div",{children:x.jsx(V.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),Te&&x.jsx(V.Modal,{open:Te,onOk:()=>Xe(!1),onCancel:()=>Xe(!1),onClose:()=>Xe(!1),title:"Debug for properties",width:"90vw",children:x.jsx(eo.DebugContainer,{$designNewLayoutHeight:_,children:x.jsx(Q.Suspense,{fallback:x.jsx("div",{children:"Loading..."}),children:x.jsx(Dv,{defaultLanguage:"json",width:"100%",height:_||"75vh",theme:"vs-dark",value:JSON.stringify(J,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},Pv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,data:o,customizationId:a,isCreate:u,backlink:l,modeData:f,designNewLayout:h,designNewLayoutHeight:d})=>{const[g,v]=Q.useState(),[C,S]=Q.useState(!1),[E,w]=Q.useState(!1),[T,j]=Q.useState(!1),R=Q.useCallback(()=>{f&&(f.onChange("Manual"),f.onDisabled())},[f]);return Q.useEffect(()=>{S(!0);const _={data:o,clusterName:t,customizationId:a};$e.post("/openapi-bff/forms/formPrepare/prepareFormProps",_).then(({data:O})=>{O.isNamespaced&&w(!0),O.result==="error"?(j(O.error),console.log(O.error),R()):v({properties:O.properties,required:O.required||[],hiddenPaths:O.hiddenPaths,expandedPaths:O.expandedPaths||[],persistedPaths:O.persistedPaths||[],kindName:O.kindName||"",formPrefills:O.formPrefills,namespacesData:O.namespacesData})}).catch(O=>{j(O.message)}).finally(()=>{S(!1)})},[t,o,a,R]),C?x.jsx(V.Spin,{}):f?.current==="Manual"?x.jsx(Xw,{theme:e,cluster:t,prefillValuesSchema:o.prefillValuesSchema,isCreate:u,type:o.type,isNameSpaced:E,apiGroupApiVersion:o.type==="builtin"?"api/v1":`${o.apiGroup}/${o.apiVersion}`,typeName:o.typeName,backlink:l,designNewLayout:h,designNewLayoutHeight:d}):!g?.properties&&!T||!g?.properties?null:T?x.jsx(V.Alert,{message:T,type:"error"}):x.jsx(Tp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefills:g.formPrefills,staticProperties:g.properties,required:g.required,hiddenPaths:g.hiddenPaths,expandedPaths:g.expandedPaths,persistedPaths:g.persistedPaths,prefillValuesSchema:o.prefillValuesSchema,prefillValueNamespaceOnly:o.prefillValueNamespaceOnly,isCreate:u,type:o.type,isNameSpaced:E?g.namespacesData:!1,apiGroupApiVersion:o.type==="builtin"?"api/v1":`${o.apiGroup}/${o.apiVersion}`,kindName:g.kindName,typeName:o.typeName,backlink:l,designNewLayout:h,designNewLayoutHeight:d},JSON.stringify(g.properties)+JSON.stringify(g.required)+JSON.stringify(g.hiddenPaths)+JSON.stringify(o))},Rv={CustomCard:He(V.Card)`
460
460
  display: flex;
461
461
  justify-content: center;
462
462
  align-items: center;
@@ -475,7 +475,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
475
475
  overflow-x: auto;
476
476
  padding: 8px;
477
477
  }
478
- `},Lv=({onAddClick:e})=>x.jsx(Rv.CustomCard,{onClick:e,children:x.jsx(vn.PlusOutlined,{})}),on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function jv(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let $c;const Nv=new Uint8Array(16);function $v(){if(!$c){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$c=crypto.getRandomValues.bind(crypto)}return $c(Nv)}const Ip={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mv(e,t,n){if(Ip.randomUUID&&!e)return Ip.randomUUID();e=e||{};const i=e.random||(e.rng||$v)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,jv(i)}const Uv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:h})=>{const[d]=V.Form.useForm(),g=V.Form.useWatch("type",d),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=E=>{if(typeof a=="boolean"){Jo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Mv()},spec:{...E}}}).then(()=>{u(!1),f()}).catch(w=>{(Go(w)||w instanceof Error)&&l(w)}).finally(()=>u(!1));return}Yo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...E}}}).then(()=>{u(!1),h()}).catch(w=>{(Go(w)||w instanceof Error)&&l(w)}).finally(()=>u(!1))},S=()=>{d.validateFields().then(()=>{C(d.getFieldsValue())}).catch(()=>console.log("Validating error"))};return x.jsx(V.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S(),children:x.jsxs(V.Form,{form:d,name:"control-hooks",initialValues:{...v},children:[x.jsx(V.Form.Item,{label:"Name",name:"name",children:x.jsx(V.Input,{required:!0})}),x.jsx(V.Form.Item,{label:"Description",name:"description",children:x.jsx(V.Input,{required:!0})}),x.jsx(V.Form.Item,{label:"Icon",name:"icon",children:x.jsx(V.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),x.jsx(V.Form.Item,{label:"Resources type",name:"type",children:x.jsx(V.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),x.jsx(V.Form.Item,{label:"Enter API group",name:"apiGroup",children:x.jsx(V.Input,{disabled:g==="direct"||g==="built-in"})}),x.jsx(V.Form.Item,{label:"Enter API version",name:"apiVersion",children:x.jsx(V.Input,{disabled:g==="direct"})}),x.jsx(V.Form.Item,{label:"Enter resource type",name:"typeName",children:x.jsx(V.Input,{disabled:g==="direct"})}),x.jsx(V.Form.Item,{label:"Enter path",name:"pathToNav",children:x.jsx(V.Input,{disabled:g!=="direct"})}),x.jsx(V.Form.Item,{label:"Tags",name:"tags",children:x.jsx(V.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),x.jsx(V.Form.Item,{label:"Disabled",name:"disabled",children:x.jsx(V.Switch,{})}),x.jsx(V.Form.Item,{label:"Hidden",name:"hidden",children:x.jsx(V.Switch,{})})]})})},Vv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},qv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/forms/crds/${a}/${u}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/forms/apis/${a}/${u}/${o}`:`/${l}/${e}/${t}/forms/builtin/${u}/${o}`,Wv=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,Kv=Ke(V.Card)`
478
+ `},Lv=({onAddClick:e})=>x.jsx(Rv.CustomCard,{onClick:e,children:x.jsx(wn.PlusOutlined,{})}),an=[];for(let e=0;e<256;++e)an.push((e+256).toString(16).slice(1));function jv(e,t=0){return(an[e[t+0]]+an[e[t+1]]+an[e[t+2]]+an[e[t+3]]+"-"+an[e[t+4]]+an[e[t+5]]+"-"+an[e[t+6]]+an[e[t+7]]+"-"+an[e[t+8]]+an[e[t+9]]+"-"+an[e[t+10]]+an[e[t+11]]+an[e[t+12]]+an[e[t+13]]+an[e[t+14]]+an[e[t+15]]).toLowerCase()}let $c;const Nv=new Uint8Array(16);function $v(){if(!$c){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$c=crypto.getRandomValues.bind(crypto)}return $c(Nv)}const Ip={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mv(e,t,n){if(Ip.randomUUID&&!e)return Ip.randomUUID();e=e||{};const i=e.random||(e.rng||$v)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,jv(i)}const Uv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:h})=>{const[d]=V.Form.useForm(),g=V.Form.useWatch("type",d),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=E=>{if(typeof a=="boolean"){Jo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Mv()},spec:{...E}}}).then(()=>{u(!1),f()}).catch(w=>{(Go(w)||w instanceof Error)&&l(w)}).finally(()=>u(!1));return}Yo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...E}}}).then(()=>{u(!1),h()}).catch(w=>{(Go(w)||w instanceof Error)&&l(w)}).finally(()=>u(!1))},S=()=>{d.validateFields().then(()=>{C(d.getFieldsValue())}).catch(()=>console.log("Validating error"))};return x.jsx(V.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S(),children:x.jsxs(V.Form,{form:d,name:"control-hooks",initialValues:{...v},children:[x.jsx(V.Form.Item,{label:"Name",name:"name",children:x.jsx(V.Input,{required:!0})}),x.jsx(V.Form.Item,{label:"Description",name:"description",children:x.jsx(V.Input,{required:!0})}),x.jsx(V.Form.Item,{label:"Icon",name:"icon",children:x.jsx(V.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),x.jsx(V.Form.Item,{label:"Resources type",name:"type",children:x.jsx(V.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),x.jsx(V.Form.Item,{label:"Enter API group",name:"apiGroup",children:x.jsx(V.Input,{disabled:g==="direct"||g==="built-in"})}),x.jsx(V.Form.Item,{label:"Enter API version",name:"apiVersion",children:x.jsx(V.Input,{disabled:g==="direct"})}),x.jsx(V.Form.Item,{label:"Enter resource type",name:"typeName",children:x.jsx(V.Input,{disabled:g==="direct"})}),x.jsx(V.Form.Item,{label:"Enter path",name:"pathToNav",children:x.jsx(V.Input,{disabled:g!=="direct"})}),x.jsx(V.Form.Item,{label:"Tags",name:"tags",children:x.jsx(V.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),x.jsx(V.Form.Item,{label:"Disabled",name:"disabled",children:x.jsx(V.Switch,{})}),x.jsx(V.Form.Item,{label:"Hidden",name:"hidden",children:x.jsx(V.Switch,{})})]})})},Vv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},qv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/forms/crds/${a}/${u}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/forms/apis/${a}/${u}/${o}`:`/${l}/${e}/${t}/forms/builtin/${u}/${o}`,Wv=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,Kv=He(V.Card)`
479
479
  position: relative;
480
480
  width: 238px;
481
481
  overflow-x: auto;
@@ -494,7 +494,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
494
494
  overflow-x: auto;
495
495
  padding: 8px;
496
496
  }
497
- `,Hv=Ke.div`
497
+ `,Hv=He.div`
498
498
  min-width: 45px;
499
499
  min-height: 45px;
500
500
  padding: 6px;
@@ -503,11 +503,11 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
503
503
  width: 45px;
504
504
  height: 45px;
505
505
  }
506
- `,zv=Ke.div`
506
+ `,zv=He.div`
507
507
  overflow-x: auto;
508
508
  scrollbar-width: thin;
509
509
  margin-bottom: 20px;
510
- `,Gv=Ke.div`
510
+ `,Gv=He.div`
511
511
  padding-left: 6px;
512
512
  padding-right: 6px;
513
513
  font-size: 16px;
@@ -516,7 +516,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
516
516
  span {
517
517
  font-weight: 700;
518
518
  }
519
- `,Jv=Ke.div`
519
+ `,Jv=He.div`
520
520
  margin-top: 6px;
521
521
  margin-bottom: 6px;
522
522
  padding-left: 6px;
@@ -524,21 +524,21 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
524
524
  display: flex;
525
525
  flex-flow: row wrap;
526
526
  align-items: flex-start;
527
- `,Yv=Ke(V.Tag)`
527
+ `,Yv=He(V.Tag)`
528
528
  margin-right: 4px;
529
529
  margin-bottom: 4px;
530
530
 
531
531
  &:last-child {
532
532
  margin-right: 0;
533
533
  }
534
- `,Xv=Ke.div`
534
+ `,Xv=He.div`
535
535
  padding-left: 6px;
536
536
  padding-right: 6px;
537
- `,Qv=Ke.div`
537
+ `,Qv=He.div`
538
538
  position: absolute;
539
539
  bottom: 6px;
540
540
  right: 6px;
541
- `,zr={CustomCard:Kv,ImageContainer:Hv,OverflowContainer:zv,TitleContainer:Gv,TagsContainer:Jv,CustomTag:Yv,DescriptionContainer:Xv,EditButtonContainer:Qv},Mc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:d,tags:g,disabled:v,isEditMode:C,onDeleteClick:S,onEditClick:E,addedMode:w})=>{const{useToken:T}=V.theme,{token:j}=T(),R=vr.useNavigate();let _="";try{_=window.atob(i)}catch{_="Can't decode"}const O=w?Vv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:d,baseprefix:e}):qv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:d,baseprefix:e}),F=w&&u!=="direct"?Wv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:h,apiVersion:d}):void 0,{data:B,error:W}=tn({uri:F||"",queryKey:[F||""],refetchInterval:!1,isEnabled:w&&F!==void 0});return w&&(W||u==="direct")?null:x.jsx(zr.CustomCard,{$isDisabled:v,$hoverColor:j.colorPrimary,onClick:()=>v?null:R(O),children:x.jsxs(V.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(zr.ImageContainer,{dangerouslySetInnerHTML:{__html:_}}),C&&x.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),S&&S()},children:x.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),x.jsxs(zr.OverflowContainer,{children:[x.jsxs(zr.TitleContainer,{children:[n," ",w&&x.jsxs("span",{children:["x",B?.items?.length]})]}),x.jsx(zr.TagsContainer,{children:g.map(J=>x.jsx(zr.CustomTag,{children:J},J))}),x.jsx(zr.DescriptionContainer,{children:x.jsx(V.Typography.Text,{type:"secondary",children:t})})]}),x.jsx(zr.EditButtonContainer,{children:C&&x.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),E&&E()},children:x.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},Zv=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return x.jsx(V.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},ex={BigValue:Ke.div`
541
+ `,zr={CustomCard:Kv,ImageContainer:Hv,OverflowContainer:zv,TitleContainer:Gv,TagsContainer:Jv,CustomTag:Yv,DescriptionContainer:Xv,EditButtonContainer:Qv},Mc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:d,tags:g,disabled:v,isEditMode:C,onDeleteClick:S,onEditClick:E,addedMode:w})=>{const{useToken:T}=V.theme,{token:j}=T(),R=vr.useNavigate();let _="";try{_=window.atob(i)}catch{_="Can't decode"}const O=w?Vv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:d,baseprefix:e}):qv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:d,baseprefix:e}),F=w&&u!=="direct"?Wv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:h,apiVersion:d}):void 0,{data:B,error:W}=nn({uri:F||"",queryKey:[F||""],refetchInterval:!1,isEnabled:w&&F!==void 0});return w&&(W||u==="direct")?null:x.jsx(zr.CustomCard,{$isDisabled:v,$hoverColor:j.colorPrimary,onClick:()=>v?null:R(O),children:x.jsxs(V.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx(zr.ImageContainer,{dangerouslySetInnerHTML:{__html:_}}),C&&x.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),S&&S()},children:x.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),x.jsxs(zr.OverflowContainer,{children:[x.jsxs(zr.TitleContainer,{children:[n," ",w&&x.jsxs("span",{children:["x",B?.items?.length]})]}),x.jsx(zr.TagsContainer,{children:g.map(J=>x.jsx(zr.CustomTag,{children:J},J))}),x.jsx(zr.DescriptionContainer,{children:x.jsx(V.Typography.Text,{type:"secondary",children:t})})]}),x.jsx(zr.EditButtonContainer,{children:C&&x.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),E&&E()},children:x.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},Zv=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return x.jsx(V.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},ex={BigValue:He.div`
542
542
  font-size: 36px;
543
543
  line-height: 36px;
544
544
  font-weight: 700;
@@ -551,10 +551,10 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
551
551
  -webkit-box-orient: vertical;
552
552
  line-clamp: 1;
553
553
  word-break: break-all;
554
- `},Op=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=V.notification.useNotification(),[h,d]=Z.useState(!1),[g,v]=Z.useState(!1),[C,S]=Z.useState(!1),[E,w]=Z.useState(),[T,j]=Z.useState(),[R,_]=Z.useState([]),[O,F]=Z.useState([]),[B,W]=Z.useState([]),[J,fe]=Z.useState([]),{data:le,isLoading:de,error:be}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),Se=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),pe=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Fe=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),De=()=>l.success({message:"Card created",key:"create-marketplace-success"}),_e=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{le&&(h?(_(le.items.map(({spec:we})=>we).sort()),W(le.items.flatMap(({spec:we})=>we.tags).filter((we,ge,We)=>We.indexOf(we)===ge))):(_(le.items.map(({spec:we})=>we).filter(({hidden:we})=>we!==!0).sort()),W(le.items.filter(({spec:we})=>we.hidden!==!0).flatMap(({spec:we})=>we.tags).filter((we,ge,We)=>We.indexOf(we)===ge))))},[le,h]),Z.useEffect(()=>{let we=[];J&&J.length>0?we=R.filter(({name:ge,description:We,tags:Y})=>J.some(X=>ge.toLowerCase().includes(X.toLowerCase()))||J.some(X=>We.toLowerCase().includes(X.toLowerCase()))||J.some(X=>Y.some(re=>re.toLowerCase().includes(X.toLowerCase())))).sort():we=R.sort(),F(we)},[J,R]),be)return x.jsx("div",{children:JSON.stringify(be)});if(de)return x.jsx(V.Spin,{});if(!le)return x.jsx("div",{children:"No panels"});const Ye=()=>{d(!h)};return x.jsxs(x.Fragment,{children:[f,x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx("div",{children:x.jsxs(V.Flex,{gap:12,vertical:!0,children:[x.jsx("div",{children:x.jsx(V.Typography.Text,{type:"secondary",children:"Available Products"})}),x.jsx("div",{children:x.jsx(ex.BigValue,{children:"Marketplace"})})]})}),x.jsx("div",{children:x.jsxs(V.Flex,{gap:12,vertical:!0,children:[x.jsx(Zv,{uniqueTags:B,selectedTags:J,onSelectedTags:fe}),(Se.data?.status.allowed||pe.data?.status.allowed||Fe.data?.status.allowed)&&x.jsxs(V.Flex,{align:"center",gap:8,children:[x.jsx(V.Switch,{defaultChecked:!0,checked:h,onClick:Ye})," Edit Mode"]})]})})]}),x.jsx(Ar,{$space:20,$samespace:!0}),E&&x.jsx(V.Alert,{description:JSON.stringify(E),message:"Card was not created",onClose:()=>w(void 0),type:"error"}),T&&x.jsx(V.Alert,{description:JSON.stringify(T),message:"Card was not deleted",onClose:()=>j(void 0),type:"error"}),x.jsxs(V.Flex,{gap:22,wrap:!0,children:[e&&t&&O.map(({name:we,description:ge,icon:We,type:Y,pathToNav:X,typeName:re,apiGroup:Ae,apiVersion:He,tags:xe,disabled:Oe})=>x.jsx(Mc,{baseprefix:u,description:ge,disabled:Oe,icon:We,isEditMode:h,name:we,clusterName:e,namespace:t,type:Y,pathToNav:X,typeName:re,apiGroup:Ae,apiVersion:He,tags:xe,onDeleteClick:()=>{const je=le.items.find(({spec:Pe})=>Pe.name===we);S(je?{name:je.metadata.name}:!1)},onEditClick:()=>{v(le.items.find(({spec:je})=>je.name===we)||!1)}},we)),h&&x.jsx(Lv,{onAddClick:()=>{v(!0)}})]}),g&&x.jsx(Uv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:g,setError:w,setIsOpen:v,onCreateSuccess:De,onUpdateSuccess:_e}),typeof C!="boolean"&&x.jsx(Yu,{name:C.name,onClose:()=>S(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${C.name}`})]})},tx=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:x.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:x.jsxs(V.Flex,{align:"center",gap:8,children:[x.jsx(Eh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:x.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:x.jsxs(V.Flex,{align:"center",gap:8,children:[x.jsx(xh,{}),"Delete"]})})}),i};return x.jsx(V.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:x.jsx(V.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:x.jsx(vn.EllipsisOutlined,{})})})},nx=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:x.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return x.jsx(V.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:x.jsxs(V.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},rx=Ke.div`
554
+ `},Op=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=V.notification.useNotification(),[h,d]=Q.useState(!1),[g,v]=Q.useState(!1),[C,S]=Q.useState(!1),[E,w]=Q.useState(),[T,j]=Q.useState(),[R,_]=Q.useState([]),[O,F]=Q.useState([]),[B,W]=Q.useState([]),[J,fe]=Q.useState([]),{data:le,isLoading:de,error:be}=nn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),Se=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),pe=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),De=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Re=()=>l.success({message:"Card created",key:"create-marketplace-success"}),Te=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Q.useEffect(()=>{le&&(h?(_(le.items.map(({spec:ve})=>ve).sort()),W(le.items.flatMap(({spec:ve})=>ve.tags).filter((ve,ge,Ke)=>Ke.indexOf(ve)===ge))):(_(le.items.map(({spec:ve})=>ve).filter(({hidden:ve})=>ve!==!0).sort()),W(le.items.filter(({spec:ve})=>ve.hidden!==!0).flatMap(({spec:ve})=>ve.tags).filter((ve,ge,Ke)=>Ke.indexOf(ve)===ge))))},[le,h]),Q.useEffect(()=>{let ve=[];J&&J.length>0?ve=R.filter(({name:ge,description:Ke,tags:Y})=>J.some(X=>ge.toLowerCase().includes(X.toLowerCase()))||J.some(X=>Ke.toLowerCase().includes(X.toLowerCase()))||J.some(X=>Y.some(re=>re.toLowerCase().includes(X.toLowerCase())))).sort():ve=R.sort(),F(ve)},[J,R]),be)return x.jsx("div",{children:JSON.stringify(be)});if(de)return x.jsx(V.Spin,{});if(!le)return x.jsx("div",{children:"No panels"});const Xe=()=>{d(!h)};return x.jsxs(x.Fragment,{children:[f,x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx("div",{children:x.jsxs(V.Flex,{gap:12,vertical:!0,children:[x.jsx("div",{children:x.jsx(V.Typography.Text,{type:"secondary",children:"Available Products"})}),x.jsx("div",{children:x.jsx(ex.BigValue,{children:"Marketplace"})})]})}),x.jsx("div",{children:x.jsxs(V.Flex,{gap:12,vertical:!0,children:[x.jsx(Zv,{uniqueTags:B,selectedTags:J,onSelectedTags:fe}),(Se.data?.status.allowed||pe.data?.status.allowed||De.data?.status.allowed)&&x.jsxs(V.Flex,{align:"center",gap:8,children:[x.jsx(V.Switch,{defaultChecked:!0,checked:h,onClick:Xe})," Edit Mode"]})]})})]}),x.jsx(Ar,{$space:20,$samespace:!0}),E&&x.jsx(V.Alert,{description:JSON.stringify(E),message:"Card was not created",onClose:()=>w(void 0),type:"error"}),T&&x.jsx(V.Alert,{description:JSON.stringify(T),message:"Card was not deleted",onClose:()=>j(void 0),type:"error"}),x.jsxs(V.Flex,{gap:22,wrap:!0,children:[e&&t&&O.map(({name:ve,description:ge,icon:Ke,type:Y,pathToNav:X,typeName:re,apiGroup:_e,apiVersion:ze,tags:xe,disabled:Fe})=>x.jsx(Mc,{baseprefix:u,description:ge,disabled:Fe,icon:Ke,isEditMode:h,name:ve,clusterName:e,namespace:t,type:Y,pathToNav:X,typeName:re,apiGroup:_e,apiVersion:ze,tags:xe,onDeleteClick:()=>{const Be=le.items.find(({spec:Le})=>Le.name===ve);S(Be?{name:Be.metadata.name}:!1)},onEditClick:()=>{v(le.items.find(({spec:Be})=>Be.name===ve)||!1)}},ve)),h&&x.jsx(Lv,{onAddClick:()=>{v(!0)}})]}),g&&x.jsx(Uv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:g,setError:w,setIsOpen:v,onCreateSuccess:Re,onUpdateSuccess:Te}),typeof C!="boolean"&&x.jsx(Yu,{name:C.name,onClose:()=>S(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${C.name}`})]})},tx=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:x.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:x.jsxs(V.Flex,{align:"center",gap:8,children:[x.jsx(Eh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:x.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:x.jsxs(V.Flex,{align:"center",gap:8,children:[x.jsx(xh,{}),"Delete"]})})}),i};return x.jsx(V.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:x.jsx(V.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:x.jsx(wn.EllipsisOutlined,{})})})},nx=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:x.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return x.jsx(V.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:x.jsxs(V.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},rx=He.div`
555
555
  width: 45.33px;
556
556
  height: 1px;
557
- `;Ke.div`
557
+ `;He.div`
558
558
  font-size: 36px;
559
559
  line-height: 36px;
560
560
  font-weight: 700;
@@ -567,5 +567,5 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
567
567
  -webkit-box-orient: vertical;
568
568
  line-clamp: 1;
569
569
  word-break: break-all;
570
- `;const ix={ActionMenuPlaceholder:rx},Fp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:h,children:d})=>{const g=vr.useNavigate(),{data:v,isLoading:C}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:S,isLoading:E,error:w}=tn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[T,j]=Z.useState(!1),R=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),_=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),O=Z.useCallback(()=>{g(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,g]);if(E)return x.jsx(V.Spin,{});if(!S||w)return null;const F=S.status.conditions.find(({type:B})=>B==="Ready");return x.jsxs(x.Fragment,{children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx("div",{children:d}),x.jsx("div",{children:x.jsxs(V.Flex,{gap:24,vertical:!0,children:[x.jsx(V.Flex,{justify:"flex-end",children:F?.status==="True"&&(R.data?.status.allowed||_.data?.status.allowed)?x.jsx(tx,{onDelete:_.data?.status.allowed?()=>{j(!0)}:void 0,onUpdate:R.data?.status.allowed?O:void 0}):x.jsx(ix.ActionMenuPlaceholder,{})}),x.jsx(nx,{accessGroups:h})]})})]}),x.jsx(Ar,{$space:24,$samespace:!0}),x.jsx(V.Typography.Text,{type:"secondary",children:"Added Products"}),x.jsx(Ar,{$space:12,$samespace:!0}),x.jsxs(V.Flex,{gap:22,wrap:!0,children:[C&&x.jsx(V.Spin,{}),e&&t&&v?.items.map(({spec:B})=>B).sort().map(({name:B,description:W,icon:J,type:fe,pathToNav:le,typeName:de,apiGroup:be,apiVersion:Se,tags:pe,disabled:Fe})=>x.jsx(Mc,{baseprefix:f,description:W,disabled:Fe,icon:J,isEditMode:!1,name:B,clusterName:e,namespace:t,type:fe,pathToNav:le,typeName:de,apiGroup:be,apiVersion:Se,tags:pe,addedMode:!0},B))]}),T&&x.jsx(Yu,{name:S.metadata.name,onClose:()=>{j(!1),g(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${S.metadata.name}`})]})},Uc=({items:e,components:t})=>x.jsx(x.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return x.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);let a=n.data;if(typeof n.data=="object"&&n.data!==null&&"items"in n.data&&Array.isArray(n.data.items)){const{items:l,...f}=n.data;a={...f,items:l.map(h=>({...h,children:Array.isArray(h.children)?x.jsx(Uc,{items:h.children,components:t}):h.children}))}}const u=n.children?x.jsx(Uc,{items:n.children,components:t}):null;return x.jsx(Z.Fragment,{children:x.jsx(o,{data:a,children:u})},i)})}),Bp=e=>x.jsx(Uc,{...e}),sx=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return x.jsxs(V.Typography.Text,{...o,children:[i,t]})},ox=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Card,{...i,children:t})},ax=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Flex,{...i,children:t})},ux=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Row,{...i,children:t})},cx=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Col,{...i,children:t})},lx=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Tabs,{...i,children:t})},fx=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return x.jsxs(V.Button,{...o,children:[e.text,t]})},Dp=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return x.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Z.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Pp=Dp(),hx=Pp.Provider,to=Pp.useTypedContext,dx=({data:e})=>{const n=to().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=St({template:e.text,replaceValues:n});return x.jsx("span",{children:i})},Rp=Z.createContext(void 0),px=({urls:e,children:t})=>{const n=xn.useQueries({queries:e.map((f,h)=>({queryKey:["multi",h,f],queryFn:async()=>(await $e.get(f)).data}))}),i={},o=[];n.forEach((f,h)=>{i[`req${h}`]=f.data,o[h]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Z.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return x.jsx(Rp.Provider,{value:l,children:t})},Ea=()=>{const e=Z.useContext(Rp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},gx={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx("div",{...i,children:t})},antdText:sx,antdCard:ox,antdFlex:ax,antdRow:ux,antdCol:cx,antdTabs:lx,antdButton:fx,partsOfUrl:dx,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ea(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const h=parseInt(l,10),d=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),g=qr.get(t[`req${h}`],d);return g!=null?String(g):""}catch{return u}}):"",[e?.text,t]);return n?x.jsx("div",{children:"Loading..."}):i?x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:o.map((u,l)=>u&&x.jsx("li",{children:u.message},l))})]}):x.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ea(),a=to(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(h,d,g)=>{try{const v=parseInt(d,10),C=Array.from(g.matchAll(/['"]([^'"]+)['"]/g)).map(E=>E[1]),S=qr.get(t[`req${v}`],C);return S!=null?String(S):""}catch{return h}}):"",[e?.text,t]);if(n)return x.jsx("div",{children:"Loading..."});if(i)return x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:o.map((h,d)=>h&&x.jsx("li",{children:h.message},d))})]});const l=a.partsOfUrl.reduce((h,d,g)=>(h[g.toString()]=d,h),{}),f=St({template:u,replaceValues:l});return x.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,accessGroups:a,...u}=e,{data:l,isError:f,errors:h}=Ea(),g=to().partsOfUrl.reduce((E,w,T)=>(E[T.toString()]=w,E),{}),v=St({template:i,replaceValues:g}),C=St({template:o,replaceValues:g}),S=a.map(E=>{const w=E.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(j,R,_)=>{try{const O=parseInt(R,10),F=Array.from(_.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),B=qr.get(l[`req${O}`],F);return B!=null?String(B):""}catch{return j}});return St({template:w,replaceValues:g})});return f?x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:h.map((E,w)=>E&&x.jsx("li",{children:E.message},w))})]}):x.jsx(Fp,{clusterName:v,namespace:C,accessGroups:S,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=to().partsOfUrl.reduce((d,g,v)=>(d[v.toString()]=g,d),{}),f=St({template:i,replaceValues:l}),h=St({template:o,replaceValues:l});return x.jsx(Op,{clusterName:f,namespace:h,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(Ih,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(Ar,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...h}=e,{data:d,isLoading:g,isError:v,errors:C}=Ea();let S;try{[S]=Kh.query(d[`req${i}`],`$${o}`)}catch(w){return x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:JSON.stringify(w)})]})}const E=a==="equals"?u===S:u!==S;return g?x.jsx("div",{children:"Loading..."}):v?x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:C.map((w,T)=>w&&x.jsx("li",{children:w.message},T))})]}):x.jsxs(V.Typography.Text,{type:E?"success":"danger",...h,children:[E?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=to().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return x.jsx(Lh,{replaceValues:a,...i})}},Lp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>St({template:i,replaceValues:n}))},yx=e=>{const t=vr.useLocation(),{urlsToFetch:n}=e,i=Lp({urls:n,locationPathname:t.pathname});return x.jsx(hx,{value:{partsOfUrl:t.pathname.split("/")},children:x.jsx(px,{urls:i,children:x.jsx(Bp,{...e})})})},mx=e=>typeof e=="object"&&"value"in e&&"highlight"in e,bx=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const h=f.slice(-2).join("."),d=f.slice(0,-2).reverse();let g=t[h]=t[h]||{};for(const v of d)g[v]=g[v]||{},g=g[v];g[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(mx(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},wx=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),vx=async({namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})=>{const a={namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o};return(await $e.post("/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped",a)).data},jp=async({namespace:e,data:t,clusterName:n})=>{const i={namespace:e,data:t,clusterName:n};return(await $e.post("/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",i)).data},xx=async({clusterName:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:h})=>h==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:h})=>!o.includes(h)&&!h.includes(".k8s.io")).sort((h,d)=>h.name.localeCompare(d.name)),l=t?.groups.sort((h,d)=>h.name.localeCompare(d.name)),f=await jp({namespace:i,data:n,clusterName:e});return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},Ex=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:d,apiExtensionVersion:g,crdName:v,pathname:C})=>e.map(({pathToMatch:E,pathToNavigate:w,keysToParse:T})=>({pathToMatch:E?St({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:d,apiExtensionVersion:g,crdName:v}}):void 0,pathToNavigate:w?St({template:w,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:d,apiExtensionVersion:g,crdName:v}}):void 0,keysToParse:T})).find(({pathToMatch:E})=>E?vr.matchPath(E,C):!1),Np=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),$p=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Mp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Up=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Sx=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Np(n)?n.spec.additionalPrinterColumns:void 0,o=$p(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Mp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Up(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},Vp=async()=>$e.get("/clusterlist"),qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return $e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Wp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Kp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return $e.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Hp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>$e.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),zp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Gp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Jp=async({clusterName:e})=>$e.get(`/api/clusters/${e}/k8s/apis/`),Yp=async({clusterName:e,apiGroup:t,apiVersion:n})=>$e.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Xp=async({clusterName:e})=>$e.get(`/api/clusters/${e}/k8s/api/v1`),Qp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>$e.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),Ax=async({clusterName:e})=>$e.get(`/openapi-bff/swagger/swagger/${e}`),Cx=async({typeName:e,apiGroup:t,apiVersion:n,clusterName:i})=>{const o={typeName:e,apiGroup:t,apiVersion:n,clusterName:i},{data:a}=await $e.post("/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped",o);return a},_x=async({typeName:e,clusterName:t})=>{const n={typeName:e,clusterName:t},{data:i}=await $e.post("/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped",n);return i},kx=({refetchInterval:e})=>xn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Vp()).data,refetchInterval:e!==void 0?e:5e3}),Tx=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>xn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await qp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),Ix=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>xn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Wp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),Ox=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>xn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Kp({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),Fx=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>xn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Hp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),Bx=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>xn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await zp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),Dx=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>xn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Gp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),Px=({clusterName:e})=>xn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Jp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),Rx=({clusterName:e,apiGroup:t,apiVersion:n})=>xn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Yp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),Lx=({clusterName:e})=>xn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Xp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),jx=({clusterName:e,apiExtensionVersion:t,crdName:n})=>xn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Qp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});ue.BackToDefaultIcon=Ch,ue.BlackholeForm=Tp,ue.BlackholeFormDataProvider=Pv,ue.ContentCard=Ih,ue.DeleteIcon=xh,ue.DeleteModal=Yu,ue.DeleteModalMany=Gm,ue.DownIcon=Ah,ue.DynamicComponents=gx,ue.DynamicRenderer=Bp,ue.DynamicRendererWithProviders=yx,ue.EditIcon=Eh,ue.EnrichedTable=qh,ue.EnrichedTableProvider=a2,ue.LockedIcon=kh,ue.ManageableBreadcrumbs=Bh,ue.ManageableBreadcrumbsWithDataProvider=Qm,ue.ManageableSidebar=Rh,ue.ManageableSidebarWithDataProvider=Lh,ue.MarketPlace=Op,ue.MarketplaceCard=Mc,ue.MinusIcon=sn,ue.PlusIcon=Xu,ue.ProjectInfoCard=Fp,ue.Spacer=Ar,ue.SuccessIcon=_h,ue.TreeWithSearch=_y,ue.UnlockedIcon=Th,ue.UpIcon=Sh,ue.checkIfApiInstanceNamespaceScoped=Cx,ue.checkIfBuiltInInstanceNamespaceScoped=_x,ue.checkPermission=Yh,ue.createContextFactory=Dp,ue.createNewEntry=Jo,ue.deleteEntry=Ju,ue.feedbackIcons=Vr,ue.filterIfApiInstanceNamespaceScoped=vx,ue.filterIfBuiltInInstanceNamespaceScoped=jp,ue.filterSelectOptions=tc,ue.floorToDecimal=Rs,ue.getAllPathsFromObj=sc,ue.getApiResourceSingle=Wp,ue.getApiResourceTypes=Jp,ue.getApiResourceTypesByApiGroup=Yp,ue.getApiResources=qp,ue.getBuiltinResourceSingle=Hp,ue.getBuiltinResourceTypes=Xp,ue.getBuiltinResources=Kp,ue.getBuiltinTreeData=wx,ue.getClusterList=Vp,ue.getCrdData=Qp,ue.getCrdResourceSingle=Gp,ue.getCrdResources=zp,ue.getDirectUnknownResource=Oh,ue.getEnrichedColumns=Uh,ue.getEnrichedColumnsWithControls=Vh,ue.getGroupsByCategory=xx,ue.getObjectFormItemsDraft=xa,ue.getPrefixSubarrays=Qh,ue.getStringByName=Tt,ue.getSwagger=Ax,ue.groupsToTreeData=bx,ue.isFlatObject=Mh,ue.isWithAdditionalPrinterColumns=Np,ue.isWithAdditionalPrinterColumnsColWidths=Up,ue.isWithAdditionalPrinterColumnsTrimLengths=Mp,ue.isWithAdditionalPrinterColumnsUndefinedValues=$p,ue.normalizeValuesForQuotasToNumber=Xh,ue.parseCustomOverrides=Sx,ue.parseQuotaValue=T2,ue.parseQuotaValueCpu=nc,ue.parseQuotaValueMemoryAndStorage=rc,ue.prepareDataForEnrichedColumns=Hh,ue.prepareDataForManageableBreadcrumbs=Fh,ue.prepareDataForManageableSidebar=Ph,ue.prepareTableMappings=Ex,ue.prepareTemplate=St,ue.prepareUrlsToFetchForDynamicRenderer=Lp,ue.updateEntry=Yo,ue.useApiResourceSingle=Ix,ue.useApiResourceTypesByGroup=Rx,ue.useApiResources=Tx,ue.useApisResourceTypes=Px,ue.useBuiltinResourceSingle=Fx,ue.useBuiltinResourceTypes=Lx,ue.useBuiltinResources=Ox,ue.useClusterList=kx,ue.useCrdData=jx,ue.useCrdResourceSingle=Dx,ue.useCrdResources=Bx,ue.useDirectUnknownResource=tn,ue.usePermissions=Wr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
570
+ `;const ix={ActionMenuPlaceholder:rx},Fp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:h,children:d})=>{const g=vr.useNavigate(),{data:v,isLoading:C}=nn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:S,isLoading:E,error:w}=nn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[T,j]=Q.useState(!1),R=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),_=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),O=Q.useCallback(()=>{g(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,g]);if(E)return x.jsx(V.Spin,{});if(!S||w)return null;const F=S.status.conditions.find(({type:B})=>B==="Ready");return x.jsxs(x.Fragment,{children:[x.jsxs(V.Flex,{justify:"space-between",children:[x.jsx("div",{children:d}),x.jsx("div",{children:x.jsxs(V.Flex,{gap:24,vertical:!0,children:[x.jsx(V.Flex,{justify:"flex-end",children:F?.status==="True"&&(R.data?.status.allowed||_.data?.status.allowed)?x.jsx(tx,{onDelete:_.data?.status.allowed?()=>{j(!0)}:void 0,onUpdate:R.data?.status.allowed?O:void 0}):x.jsx(ix.ActionMenuPlaceholder,{})}),x.jsx(nx,{accessGroups:h})]})})]}),x.jsx(Ar,{$space:24,$samespace:!0}),x.jsx(V.Typography.Text,{type:"secondary",children:"Added Products"}),x.jsx(Ar,{$space:12,$samespace:!0}),x.jsxs(V.Flex,{gap:22,wrap:!0,children:[C&&x.jsx(V.Spin,{}),e&&t&&v?.items.map(({spec:B})=>B).sort().map(({name:B,description:W,icon:J,type:fe,pathToNav:le,typeName:de,apiGroup:be,apiVersion:Se,tags:pe,disabled:De})=>x.jsx(Mc,{baseprefix:f,description:W,disabled:De,icon:J,isEditMode:!1,name:B,clusterName:e,namespace:t,type:fe,pathToNav:le,typeName:de,apiGroup:be,apiVersion:Se,tags:pe,addedMode:!0},B))]}),T&&x.jsx(Yu,{name:S.metadata.name,onClose:()=>{j(!1),g(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${S.metadata.name}`})]})},Uc=({items:e,components:t})=>x.jsx(x.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return x.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);let a=n.data;if(typeof n.data=="object"&&n.data!==null&&"items"in n.data&&Array.isArray(n.data.items)){const{items:l,...f}=n.data;a={...f,items:l.map(h=>({...h,children:Array.isArray(h.children)?x.jsx(Uc,{items:h.children,components:t}):h.children}))}}const u=n.children?x.jsx(Uc,{items:n.children,components:t}):null;return x.jsx(Q.Fragment,{children:x.jsx(o,{data:a,children:u})},i)})}),Bp=e=>x.jsx(Uc,{...e}),sx=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return x.jsxs(V.Typography.Text,{...o,children:[i,t]})},ox=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Card,{...i,children:t})},ax=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Flex,{...i,children:t})},ux=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Row,{...i,children:t})},cx=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Col,{...i,children:t})},lx=({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(V.Tabs,{...i,children:t})},fx=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return x.jsxs(V.Button,{...o,children:[e.text,t]})},Dp=()=>{const e=Q.createContext(null);return{Provider:({children:i,value:o})=>{const a=Q.useMemo(()=>o,Object.values(o));return x.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Q.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Pp=Dp(),hx=Pp.Provider,to=Pp.useTypedContext,dx=({data:e})=>{const n=to().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=At({template:e.text,replaceValues:n});return x.jsx("span",{children:i})},Rp=Q.createContext(void 0),px=({urls:e,children:t})=>{const n=vn.useQueries({queries:e.map((f,h)=>({queryKey:["multi",h,f],queryFn:async()=>(await $e.get(f)).data}))}),i={},o=[];n.forEach((f,h)=>{i[`req${h}`]=f.data,o[h]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Q.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return x.jsx(Rp.Provider,{value:l,children:t})},Ea=()=>{const e=Q.useContext(Rp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},gx={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx("div",{...i,children:t})},antdText:sx,antdCard:ox,antdFlex:ax,antdRow:ux,antdCol:cx,antdTabs:lx,antdButton:fx,partsOfUrl:dx,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ea(),a=Q.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const h=parseInt(l,10),d=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),g=qr.get(t[`req${h}`],d);return g!=null?String(g):""}catch{return u}}):"",[e?.text,t]);return n?x.jsx("div",{children:"Loading..."}):i?x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:o.map((u,l)=>u&&x.jsx("li",{children:u.message},l))})]}):x.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ea(),a=to(),u=Q.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(h,d,g)=>{try{const v=parseInt(d,10),C=Array.from(g.matchAll(/['"]([^'"]+)['"]/g)).map(E=>E[1]),S=qr.get(t[`req${v}`],C);return S!=null?String(S):""}catch{return h}}):"",[e?.text,t]);if(n)return x.jsx("div",{children:"Loading..."});if(i)return x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:o.map((h,d)=>h&&x.jsx("li",{children:h.message},d))})]});const l=a.partsOfUrl.reduce((h,d,g)=>(h[g.toString()]=d,h),{}),f=At({template:u,replaceValues:l});return x.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,accessGroups:a,...u}=e,{data:l,isError:f,errors:h}=Ea(),g=to().partsOfUrl.reduce((E,w,T)=>(E[T.toString()]=w,E),{}),v=At({template:i,replaceValues:g}),C=At({template:o,replaceValues:g}),S=a.map(E=>{const w=E.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(j,R,_)=>{try{const O=parseInt(R,10),F=Array.from(_.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),B=qr.get(l[`req${O}`],F);return B!=null?String(B):""}catch{return j}});return At({template:w,replaceValues:g})});return f?x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:h.map((E,w)=>E&&x.jsx("li",{children:E.message},w))})]}):x.jsx(Fp,{clusterName:v,namespace:C,accessGroups:S,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=to().partsOfUrl.reduce((d,g,v)=>(d[v.toString()]=g,d),{}),f=At({template:i,replaceValues:l}),h=At({template:o,replaceValues:l});return x.jsx(Op,{clusterName:f,namespace:h,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(Ih,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return x.jsx(Ar,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...h}=e,{data:d,isLoading:g,isError:v,errors:C}=Ea();let S;try{[S]=Kh.query(d[`req${i}`],`$${o}`)}catch(w){return x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:JSON.stringify(w)})]})}const E=a==="equals"?u===S:u!==S;return g?x.jsx("div",{children:"Loading..."}):v?x.jsxs("div",{children:[x.jsx("h4",{children:"Errors:"}),x.jsx("ul",{children:C.map((w,T)=>w&&x.jsx("li",{children:w.message},T))})]}):x.jsxs(V.Typography.Text,{type:E?"success":"danger",...h,children:[E?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=to().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return x.jsx(Lh,{replaceValues:a,...i})}},Lp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>At({template:i,replaceValues:n}))},yx=e=>{const t=vr.useLocation(),{urlsToFetch:n}=e,i=Lp({urls:n,locationPathname:t.pathname});return x.jsx(hx,{value:{partsOfUrl:t.pathname.split("/")},children:x.jsx(px,{urls:i,children:x.jsx(Bp,{...e})})})},mx=e=>typeof e=="object"&&"value"in e&&"highlight"in e,bx=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const h=f.slice(-2).join("."),d=f.slice(0,-2).reverse();let g=t[h]=t[h]||{};for(const v of d)g[v]=g[v]||{},g=g[v];g[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(mx(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},wx=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),vx=async({namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})=>{const a={namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o};return(await $e.post("/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped",a)).data},jp=async({namespace:e,data:t,clusterName:n})=>{const i={namespace:e,data:t,clusterName:n};return(await $e.post("/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",i)).data},xx=async({clusterName:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:h})=>h==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:h})=>!o.includes(h)&&!h.includes(".k8s.io")).sort((h,d)=>h.name.localeCompare(d.name)),l=t?.groups.sort((h,d)=>h.name.localeCompare(d.name)),f=await jp({namespace:i,data:n,clusterName:e});return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},Ex=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:d,apiExtensionVersion:g,crdName:v,pathname:C})=>e.map(({pathToMatch:E,pathToNavigate:w,keysToParse:T})=>({pathToMatch:E?At({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:d,apiExtensionVersion:g,crdName:v}}):void 0,pathToNavigate:w?At({template:w,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:d,apiExtensionVersion:g,crdName:v}}):void 0,keysToParse:T})).find(({pathToMatch:E})=>E?vr.matchPath(E,C):!1),Np=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),$p=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Mp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Up=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Sx=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Np(n)?n.spec.additionalPrinterColumns:void 0,o=$p(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Mp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Up(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},Vp=async()=>$e.get("/clusterlist"),qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return $e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Wp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Kp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return $e.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Hp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>$e.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),zp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Gp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Jp=async({clusterName:e})=>$e.get(`/api/clusters/${e}/k8s/apis/`),Yp=async({clusterName:e,apiGroup:t,apiVersion:n})=>$e.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Xp=async({clusterName:e})=>$e.get(`/api/clusters/${e}/k8s/api/v1`),Qp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>$e.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),Ax=async({clusterName:e})=>$e.get(`/openapi-bff/swagger/swagger/${e}`),Cx=async({typeName:e,apiGroup:t,apiVersion:n,clusterName:i})=>{const o={typeName:e,apiGroup:t,apiVersion:n,clusterName:i},{data:a}=await $e.post("/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped",o);return a},_x=async({typeName:e,clusterName:t})=>{const n={typeName:e,clusterName:t},{data:i}=await $e.post("/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped",n);return i},kx=({refetchInterval:e})=>vn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Vp()).data,refetchInterval:e!==void 0?e:5e3}),Tx=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>vn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await qp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),Ix=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>vn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Wp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),Ox=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>vn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Kp({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),Fx=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>vn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Hp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),Bx=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>vn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await zp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),Dx=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>vn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Gp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),Px=({clusterName:e})=>vn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Jp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),Rx=({clusterName:e,apiGroup:t,apiVersion:n})=>vn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Yp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),Lx=({clusterName:e})=>vn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Xp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),jx=({clusterName:e,apiExtensionVersion:t,crdName:n})=>vn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Qp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});ue.BackToDefaultIcon=Ch,ue.BlackholeForm=Tp,ue.BlackholeFormDataProvider=Pv,ue.ContentCard=Ih,ue.DeleteIcon=xh,ue.DeleteModal=Yu,ue.DeleteModalMany=Gm,ue.DownIcon=Ah,ue.DynamicComponents=gx,ue.DynamicRenderer=Bp,ue.DynamicRendererWithProviders=yx,ue.EditIcon=Eh,ue.EnrichedTable=qh,ue.EnrichedTableProvider=a2,ue.LockedIcon=kh,ue.ManageableBreadcrumbs=Bh,ue.ManageableBreadcrumbsWithDataProvider=Qm,ue.ManageableSidebar=Rh,ue.ManageableSidebarWithDataProvider=Lh,ue.MarketPlace=Op,ue.MarketplaceCard=Mc,ue.MinusIcon=on,ue.PlusIcon=Xu,ue.ProjectInfoCard=Fp,ue.Spacer=Ar,ue.SuccessIcon=_h,ue.TreeWithSearch=_y,ue.UnlockedIcon=Th,ue.UpIcon=Sh,ue.checkIfApiInstanceNamespaceScoped=Cx,ue.checkIfBuiltInInstanceNamespaceScoped=_x,ue.checkPermission=Yh,ue.createContextFactory=Dp,ue.createNewEntry=Jo,ue.deleteEntry=Ju,ue.feedbackIcons=Vr,ue.filterIfApiInstanceNamespaceScoped=vx,ue.filterIfBuiltInInstanceNamespaceScoped=jp,ue.filterSelectOptions=tc,ue.floorToDecimal=Rs,ue.getAllPathsFromObj=sc,ue.getApiResourceSingle=Wp,ue.getApiResourceTypes=Jp,ue.getApiResourceTypesByApiGroup=Yp,ue.getApiResources=qp,ue.getBuiltinResourceSingle=Hp,ue.getBuiltinResourceTypes=Xp,ue.getBuiltinResources=Kp,ue.getBuiltinTreeData=wx,ue.getClusterList=Vp,ue.getCrdData=Qp,ue.getCrdResourceSingle=Gp,ue.getCrdResources=zp,ue.getDirectUnknownResource=Oh,ue.getEnrichedColumns=Uh,ue.getEnrichedColumnsWithControls=Vh,ue.getGroupsByCategory=xx,ue.getObjectFormItemsDraft=xa,ue.getPrefixSubarrays=Qh,ue.getStringByName=It,ue.getSwagger=Ax,ue.groupsToTreeData=bx,ue.isFlatObject=Mh,ue.isWithAdditionalPrinterColumns=Np,ue.isWithAdditionalPrinterColumnsColWidths=Up,ue.isWithAdditionalPrinterColumnsTrimLengths=Mp,ue.isWithAdditionalPrinterColumnsUndefinedValues=$p,ue.normalizeValuesForQuotasToNumber=Xh,ue.parseCustomOverrides=Sx,ue.parseQuotaValue=T2,ue.parseQuotaValueCpu=nc,ue.parseQuotaValueMemoryAndStorage=rc,ue.prepareDataForEnrichedColumns=Hh,ue.prepareDataForManageableBreadcrumbs=Fh,ue.prepareDataForManageableSidebar=Ph,ue.prepareTableMappings=Ex,ue.prepareTemplate=At,ue.prepareUrlsToFetchForDynamicRenderer=Lp,ue.updateEntry=Yo,ue.useApiResourceSingle=Ix,ue.useApiResourceTypesByGroup=Rx,ue.useApiResources=Tx,ue.useApisResourceTypes=Px,ue.useBuiltinResourceSingle=Fx,ue.useBuiltinResourceTypes=Lx,ue.useBuiltinResources=Ox,ue.useClusterList=kx,ue.useCrdData=jx,ue.useCrdResourceSingle=Dx,ue.useCrdResources=Bx,ue.useDirectUnknownResource=nn,ue.usePermissions=Wr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
571
571
  //# sourceMappingURL=openapi-k8s-toolkit.umd.js.map